gdb/python: Add architecture method to gdb.PendingFrame
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
87dbc774
AB
12020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * NEWS: Mention new Python API method.
4 * python/py-unwind.c (pending_framepy_architecture): New function.
5 (pending_frame_object_methods): Add architecture method.
6
3bc98c0c
AB
72020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
8
9 * gdbarch.c: Regenerate.
10 * gdbarch.h: Regenerate.
11 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
12 (gdbarch_data): Use internal_error for the case where
13 deprecated_set_gdbarch_data was originally needed.
14 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
15 and use passed in obstack.
16 (libunwind_frame_set_descr): Should no longer get back NULL from
17 gdbarch_data.
18 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
19 type.
20 * user-regs.c (user_regs_init): Update parameters, and use passed
21 in obstack.
22 (user_reg_add): Should no longer get back NULL from gdbarch_data.
23 (_initialize_user_regs): Register as a pre-init gdbarch data type.
24
d8cc8af6
TV
252020-07-06 Tom de Vries <tdevries@suse.de>
26
27 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
28 End-Of-Sequence in lte_is_less_than.
29 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
30 "gdb: Don't reorder line table entries too much when sorting".
31
947f7597
TV
322020-07-06 Tom de Vries <tdevries@suse.de>
33
34 PR tui/26205
35 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
36
1e7c1b22
TV
372020-07-05 Tom de Vries <tdevries@suse.de>
38
39 PR build/26187
40 * inferior.h (struct infcall_suspend_state_deleter): If available, use
41 std::uncaught_exceptions instead of deprecated
42 std::uncaught_exception.
43
a36158ec
SM
442020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
45
46 * macroexp.h (macro_stringify): Return
47 gdb::unique_xmalloc_ptr<char>.
48 * macroexp.c (macro_stringify): Likewise.
49 * macrotab.c (fixup_definition): Update.
50
14d960c8
SM
512020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
52
53 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
54 (lex_one_token): Update.
55 * macroexp.c (struct macro_buffer) <release>: Return
56 gdb::unique_xmalloc_ptr<char>.
57 (macro_stringify): Update.
58 (macro_expand): Update.
59 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
60 * macroexp.h (macro_expand_next): Likewise.
61
211d5b1c
SM
622020-07-02 Simon Marchi <simon.marchi@efficios.com>
63
64 * macroexp.h (macro_lookup_ftype): Remove.
65 (macro_expand, macro_expand_once, macro_expand_next): Remove
66 lookup function parameters, add scope parameter.
67 * macroexp.c (scan, substitute_args, expand, maybe_expand,
68 macro_expand, macro_expand_once, macro_expand_next): Likewise.
69 * macroscope.h (standard_macro_lookup): Change parameter type
70 to macro_scope.
71 * macroscope.c (standard_macro_lookup): Likewise.
72 * c-exp.y (lex_one_token): Update.
73 * macrocmd.c (macro_expand_command): Likewise.
74 (macro_expand_once_command): Likewise.
75
b1a35af2
SM
762020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
77
78 * inf-loop.c (inferior_event_handler): Remove client_data param.
79 * inf-loop.h (inferior_event_handler): Likewise.
80 * infcmd.c (step_1): Adjust.
81 * infrun.c (proceed): Adjust.
82 (fetch_inferior_event): Remove client_data param.
83 (infrun_async_inferior_event_handler): Adjust.
84 * infrun.h (fetch_inferior_event): Remove `void *` param.
85 * linux-nat.c (handle_target_event): Adjust.
86 * record-btrace.c (record_btrace_handle_async_inferior_event):
87 Adjust.
88 * record-full.c (record_full_async_inferior_event_handler):
89 Adjust.
90 * remote.c (remote_async_inferior_event_handler): Adjust.
91
1cdf9e33
TT
922020-07-01 Tom Tromey <tom@tromey.com>
93
94 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
95 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
96
32c1e210
TT
972020-07-01 Tom Tromey <tom@tromey.com>
98
99 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
100 tui_gen_win_info.
101 (tui_win_info::make_window): Merge with
102 tui_gen_win_info::make_window.
103 (tui_win_info::make_visible): Move from tui_gen_win_info.
104 * tui/tui-win.c (tui_win_info::max_width): Move from
105 tui_gen_win_info.
106 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
107 type.
108 <window_factory>: Likewise.
109 * tui/tui-layout.c (tui_win_info::resize): Move from
110 tui_gen_win_info.
111 (make_standard_window): Change return type.
112 (get_locator_window, tui_get_window_by_name): Likewise.
113 (tui_layout_window::apply): Remove a cast.
114 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
115 (struct tui_win_info): Merge with tui_gen_win_info.
116 (struct tui_gen_win_info): Remove.
117
a30cb6da
TT
1182020-07-01 Tom Tromey <tom@tromey.com>
119
120 * tui/tui-stack.h (struct tui_locator_window): Derive from
121 tui_win_info.
122 <do_scroll_horizontal, do_scroll_vertical>: New methods.
123 <can_box>: New method.
124
1eb2161f
TT
1252020-07-01 Tom Tromey <tom@tromey.com>
126
127 * tui/tui-stack.h (struct tui_locator_window): Remove body.
128
7134f2eb
TT
1292020-07-01 Tom Tromey <tom@tromey.com>
130
131 * tui/tui-regs.c (tui_data_window::display_registers_from)
132 (tui_data_window::display_registers_from)
133 (tui_data_window::first_data_item_displayed)
134 (tui_data_window::delete_data_content_windows): Update.
135 (tui_data_window::refresh_window, tui_data_window::no_refresh):
136 Remove.
137 (tui_data_window::check_register_values): Update.
138 (tui_data_item_window::rerender): Add parameters. Update.
139 (tui_data_item_window::refresh_window): Remove.
140 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
141 virtual.
142 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
143 tui_gen_win_info.
144 <refresh_window, max_height, min_height>: Remove.
145 <rerender>: Add parameters.
146 <x, y, visible>: New members.
147 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
148 <m_item_width>: New member.
149
22b7b041
TT
1502020-07-01 Tom Tromey <tom@tromey.com>
151
152 * tui/tui-regs.c (tui_data_window::show_register_group)
153 (tui_data_window::check_register_values): Update.
154 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
155 from item_no.
156
c9753adb
TT
1572020-07-01 Tom Tromey <tom@tromey.com>
158
159 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
160 useless "if".
161
9ab26b4a
TT
1622020-07-01 Tom Tromey <tom@tromey.com>
163
164 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
165 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
166
e555083f
TT
1672020-07-01 Tom Tromey <tom@tromey.com>
168
169 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
170 * tui/tui-winsource.h (enum tui_line_or_address_kind)
171 (struct tui_line_or_address): Move from tui-data.h.
172 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
173 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
174 (tui_cmd_window, tui_source_window_base, tui_source_window)
175 (tui_disasm_window): Don't declare.
176 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
177 to tui-winsource.h.
178 (SINGLE_KEY): Move to tui-stack.c.
179
7a02bab7
TT
1802020-07-01 Tom Tromey <tom@tromey.com>
181
182 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
183 std::string.
184 * tui/tui-regs.c (class tab_expansion_file): New.
185 (tab_expansion_file::write): New method.
186 (tui_register_format): Change return type. Use
187 tab_expansion_file.
188 (tui_get_register, tui_data_window::display_registers_from)
189 (tui_data_item_window::rerender): Update.
190 * tui/tui-io.h (tui_expand_tabs): Don't declare.
191 * tui/tui-io.c (tui_expand_tabs): Remove.
192
ea68593b
TT
1932020-07-01 Tom Tromey <tom@tromey.com>
194
195 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
196
a8caed5d
FS
1972020-07-01 Fangrui Song <maskray@google.com>
198
199 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
200
9cdf9820
AKS
2012020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
202
203 * dwarf2/read.c (set_die_type): Removed conditions to restrict
204 forms for DW_AT_associated and DW_AT_allocated attributes,
205 which is already checked in function attr_to_dynamic_prop.
206
a1520ad8
TT
2072020-06-30 Tom Tromey <tromey@adacore.com>
208
209 * dwarf2/read.c (quirk_rust_enum): Correctly call
210 alloc_rust_variant for default-less enum.
211
5ac58899
TT
2122020-06-30 Tom Tromey <tromey@adacore.com>
213
214 PR build/26183:
215 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
216 gdb::to_string.
217
19b187a9
SM
2182020-06-29 Simon Marchi <simon.marchi@efficios.com>
219
220 * gdbarch.sh (displaced_step_copy_insn): Update doc.
221 * gdbarch.h: Re-generate.
222
cd4c4c07
TT
2232020-06-28 Tom Tromey <tom@tromey.com>
224
225 * command.h (cmd_types): Remove.
226 (cmd_type): Don't declare.
227 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
228 typedef.
229 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
230 * cli/cli-decode.c (cmd_type): Remove.
231
05779d57
PA
2322020-06-27 Pedro Alves <palves@redhat.com>
233
234 * fork-child.c (prefork_hook): Adjust.
235 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
236 Delete.
237 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
238 * inferior.c (inferior::set_tty, inferior::tty): New methods.
239 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
240 Remove declarations.
241 (struct inferior) <set_tty, tty>: New methods.
242 (struct inferior) <terminal>: Rename to ...
243 (struct inferior) <m_terminal>: ... this and make private.
244 * main.c (captured_main_1): Adjust.
245 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
246 (mi_cmd_inferior_tty_show): Adjust.
247 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
248 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
249
1776e3e5
NA
2502020-06-26 Nick Alcock <nick.alcock@oracle.com>
251
252 * configure.ac: Add --enable-libctf: handle --disable-static
253 properly.
254 * acinclude.m4: sinclude ../config/enable.m4.
255 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
256 (LIBCTF): Substitute in.
257 (CTF_DEPS): New, likewise.
258 (CLIBS): libctf needs symbols from libbfd: move earlier.
259 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
260 flags.
261 * ctfread.c: Surround in ENABLE_LIBCTF.
262 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
263 * configure: Regenerate.
264 * config.in: Likewise.
265
58373b80
SM
2662020-06-25 Simon Marchi <simon.marchi@efficios.com>
267
268 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
269
277474ee
SM
2702020-06-25 Simon Marchi <simon.marchi@efficios.com>
271
272 * inferior.h (struct inferior) <terminal>: Change type to
273 gdb::unique_xmalloc_ptr<char>.
274 * inferior.c (inferior::~inferior): Don't free inf->terminal.
275 * infcmd.c (set_inferior_io_terminal): Don't free terminal
276 field, adjust to unique pointer.
277 (get_inferior_io_terminal): Adjust to unique pointer.
278
6d74da72
AB
2792020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
280
281 * riscv-tdep.c (riscv_print_registers_info): Loop over all
282 registers, not just the known core set of registers.
283
2e52d038
AB
2842020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
285
286 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
287 fflags, frm, and fcsr registers.
288 (riscv_register_reggroup_p): Remove unknown CSRs from save and
289 restore groups.
290 (riscv_tdesc_unknown_reg): New function.
291 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
292 tdesc_use_registers.
293 * riscv-tdep.h (struct gdbarch_tdep): Add
294 unknown_csrs_first_regnum, unknown_csrs_count,
295 duplicate_fflags_regnum, duplicate_frm_regnum, and
296 duplicate_fcsr_regnum fields.
297
be64fd07
AB
2982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
299
300 * target-descriptions.c (tdesc_use_registers): Add new parameter a
301 callback, use the callback (when not null) to help number unknown
302 registers.
303 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
304 (tdesc_use_registers): Add extra parameter to declaration.
305
3b9fce96
AB
3062020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
307
308 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
309 in the file.
310 (class riscv_pending_register_alias): Likewise.
311 (riscv_register_feature::register_info): Change 'required_p' field
312 to 'required', and change its type. Add 'check' member function.
313 (riscv_register_feature::register_info::check): Define new member
314 function.
315 (riscv_xreg_feature): Change initialisation of 'required' field.
316 (riscv_freg_feature): Likewise.
317 (riscv_virtual_feature): Likewise.
318 (riscv_csr_feature): Likewise.
319 (riscv_check_tdesc_feature): Take extra parameter, the csr
320 tdesc_feature, rewrite the function to use the new
321 riscv_register_feature::register_info::check function.
322 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
323
865bad26
AB
3242020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
325
326 * features/Makefile: Remove all references to the deleted files
327 below.
328 * features/riscv/32bit-csr.c: Deleted.
329 * features/riscv/32bit-csr.xml: Deleted.
330 * features/riscv/64bit-csr.c: Deleted.
331 * features/riscv/64bit-csr.xml: Deleted.
332 * features/riscv/rebuild-csr-xml.sh: Deleted.
333
ed69cbc8
AB
3342020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
335
336 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
337 whitespace error for declaration of names member variable.
338 (struct riscv_register_feature): Add new prefer_first_name member
339 variable, and fix whitespace error in declaration of registers.
340 (riscv_xreg_feature): Initialize prefer_first_name field.
341 (riscv_freg_feature): Likewise.
342 (riscv_virtual_feature): Likewise.
343 (riscv_csr_feature): Likewise.
344 (riscv_register_name): Expand on comments. Remove register name
345 modifications for CSR and virtual registers.
346
4445e8f5
AB
3472020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
348
349 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
350 errors.
351
767a879e
AB
3522020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
353
354 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
355 riscv-opc.h.
356 (class riscv_pending_register_alias): New class.
357 (riscv_check_tdesc_feature): Take vector of pending aliases and
358 populate it as appropriate.
359 (riscv_setup_register_aliases): Delete.
360 (riscv_gdbarch_init): Create vector of pending aliases and pass it
361 to riscv_check_tdesc_feature in all cases. Use the vector to
362 create the register aliases.
363
bb6e55f3
RO
3642020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
365
366 * sol2-tdep.c (sol2_static_transform_name): Remove.
367 (sol2_init_abi): Don't register it.
368 * gdbarch.sh (static_transform_name): Remove.
369 * gdbarch.c, gdbarch.h: Regenerate.
370
371 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
372 gdbarch_static_transform_name.
373 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
374 * stabsread.c (define_symbol) <'X'>: Remove.
375 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
376 handling.
377 <'V'>: Likewise.
378 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
379 <'S'>: Remove call to gdbarch_static_transform_name.
380
c6d36836
RO
3812020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
382
383 * procfs.c (procfs_pre_trace): New function.
384 (procfs_target::create_inferior): Pass it to fork_inferior.
385
a7e6196b
RO
3862020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
387
388 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
389 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
390 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
391 sol2-tdep.o, sparc-sol2-tdep.o.
392 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
393 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
394 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
395 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
396
d412e696
RO
3972020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
398
399 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
400 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
401 Call sol2_init_abi.
402 Remove calls to set_gdbarch_skip_solib_resolver,
403 set_gdbarch_core_pid_to_str.
404 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
405 (i386_sol2_static_transform_name): Remove.
406 (i386_sol2_init_abi): Call sol2_init_abi.
407 Remove calls to set_gdbarch_sofun_address_maybe_missing,
408 set_gdbarch_static_transform_name,
409 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
410 Use sol2_sigtramp_p.
411 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
412 (sol2_sigtramp_p): New function.
413 (sol2_static_transform_name): New function.
414 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
415 (sol2_init_abi): New function.
416 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
417 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
418 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
419 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
420 (sparc_sol2_static_transform_name): Remove.
421 (sparc32_sol2_init_abi): Call sol2_init_abi.
422 Remove calls to set_gdbarch_sofun_address_maybe_missing,
423 set_gdbarch_static_transform_name,
424 set_gdbarch_skip_solib_resolver,
425 set_gdbarch_core_pid_to_str.
426 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
427 (sparc_sol2_static_transform_name): Remove
428 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
429 call sol2_sigtramp_p.
430 (sparc64_sol2_init_abi): Call sol2_init_abi.
431 Remove calls to set_gdbarch_sofun_address_maybe_missing,
432 set_gdbarch_static_transform_name,
433 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
434
a8654e7d
PW
4352020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
436
437 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
438 * exec.c (validate_exec_file): If from_tty, set both
439 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
440 * symfile.c (symbol_file_add_with_addrs): if always_confirm
441 and from_tty, unconditionally ask a confirmation.
442
caa7fd04
AB
4432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
444
445 * target-descriptions.c (tdesc_architecture_name): Protect against
446 NULL pointer dereference.
447 (maint_print_xml_tdesc_cmd): New function.
448 (_initialize_target_descriptions): Register new 'maint print
449 xml-tdesc' command and give it the filename completer.
450 * NEWS: Mention new 'maint print xml-tdesc' command.
451
fbf42f4e
AB
4522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
453
454 * target-descriptions.c (class tdesc_compatible_info): New class.
455 (struct target_desc): Change type of compatible vector.
456 (tdesc_compatible_p): Update for change in type of
457 target_desc::compatible.
458 (tdesc_compatible_info_list): New function.
459 (tdesc_compatible_info_arch_name): New function.
460 (tdesc_add_compatible): Update for change in type of
461 target_desc::compatible.
462 (print_c_tdesc::visit_pre): Likewise.
463
20821f4e
AB
4642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
465
466 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
467 whitespace to underscore.
468 (maint_print_c_tdesc_cmd): Use fake filename for target
469 descriptions that came from the target.
470 (_initialize_target_descriptions): Add filename command completion
471 for 'maint print c-tdesc'.
472
1fb5ee62
SM
4732020-06-23 Simon Marchi <simon.marchi@efficios.com>
474
475 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
476 lines.
477
fc3ecb3e
SM
4782020-06-23 Simon Marchi <simon.marchi@efficios.com>
479
480 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
481 lines.
482 (dwarf2_find_location_expression): Likewise.
483 (call_site_parameter_matches): Likewise.
484 (dwarf2_compile_expr_to_ax): Likewise.
485 (disassemble_dwarf_expression): Likewise.
486 (loclist_describe_location): Likewise.
487
236ef034
PA
4882020-06-23 Pedro Alves <palves@redhat.com>
489
490 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
491 progspace-and-thread.h. Include scoped-mock-context.h instead.
492 (register_to_value_test): Use scoped_mock_context.
493 * regcache.c: Include "scoped-mock-context.h".
494 (cooked_read_test): Don't error out if a target is already pushed.
495 Use scoped_mock_context. Adjust.
496 * scoped-mock-context.h: New file.
497
39e7ecca
AB
4982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
499
500 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
501 initializer.
502 (ada_language::is_string_type_p): New member function.
503 * c-lang.c (c_language_data): Delete la_is_string_type_p
504 initializer.
505 (cplus_language_data): Likewise.
506 (asm_language_data): Likewise.
507 (minimal_language_data): Likewise.
508 * d-lang.c (d_language_data): Likewise.
509 * f-lang.c (f_is_string_type_p): Delete function, implementation
510 moved to f_language::is_string_type_p.
511 (f_language_data): Delete la_is_string_type_p initializer.
512 (f_language::is_string_type_p): New member function,
513 implementation from f_is_string_type_p.
514 * go-lang.c (go_is_string_type_p): Delete function, implementation
515 moved to go_language::is_string_type_p.
516 (go_language_data): Delete la_is_string_type_p initializer.
517 (go_language::is_string_type_p): New member function,
518 implementation from go_is_string_type_p.
519 * language.c (language_defn::is_string_type_p): Define new member
520 function.
521 (default_is_string_type_p): Make static, add comment copied from
522 header file.
523 (unknown_language_data): Delete la_is_string_type_p initializer.
524 (unknown_language::is_string_type_p): New member function.
525 (auto_language_data): Delete la_is_string_type_p initializer.
526 (auto_language::is_string_type_p): New member function.
527 * language.h (language_data): Delete la_is_string_type_p field.
528 (language_defn::is_string_type_p): Declare new function.
529 (default_is_string_type_p): Delete desclaration, move comment to
530 definition.
531 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
532 moved to m2_language::is_string_type_p.
533 (m2_language_data): Delete la_is_string_type_p initializer.
534 (m2_language::is_string_type_p): New member function,
535 implementation from m2_is_string_type_p.
536 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
537 initializer.
538 * opencl-lang.c (opencl_language_data): Likewise.
539 * p-lang.c (pascal_is_string_type_p): Delete function,
540 implementation moved to pascal_language::is_string_type_p.
541 (pascal_language_data): Delete la_is_string_type_p initializer.
542 (pascal_language::is_string_type_p): New member function,
543 implementation from pascal_is_string_type_p.
544 * rust-lang.c (rust_is_string_type_p): Delete function,
545 implementation moved to rust_language::is_string_type_p.
546 (rust_language_data): Delete la_is_string_type_p initializer.
547 (rust_language::is_string_type_p): New member function,
548 implementation from rust_is_string_type_p.
549 * valprint.c (val_print_scalar_or_string_type_p): Update call to
550 is_string_type_p.
551
4ffc13fb
AB
5522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
553
554 * ada-lang.c (ada_language_data): Delete la_print_typedef
555 initializer.
556 (ada_language::print_typedef): New member function.
557 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
558 (cplus_language_data): Likewise.
559 (asm_language_data): Likewise.
560 (minimal_language_data): Likewise.
561 * d-lang.c (d_language_data): Likewise.
562 * f-lang.c (f_language_data): Likewise.
563 (f_language::print_typedef): New member function.
564 * go-lang.c (go_language_data): Delete la_print_typedef
565 initializer.
566 * language.c (language_defn::print_typedef): Define member
567 function.
568 (unknown_language_data): Delete la_print_typedef initializer.
569 (unknown_language::print_typedef): New member function.
570 (auto_language_data): Delete la_print_typedef initializer.
571 (auto_language::print_typedef): New member function.
572 * language.h (language_data): Delete la_print_typedef field.
573 (language_defn::print_typedef): Declare new member function.
574 (LA_PRINT_TYPEDEF): Update call to print_typedef.
575 (default_print_typedef): Delete declaration.
576 * m2-lang.c (m2_language_data): Delete la_print_typedef
577 initializer.
578 (m2_language::print_typedef): New member function.
579 * objc-lang.c (objc_language_data): Delete la_print_typedef
580 initializer.
581 * opencl-lang.c (opencl_language_data): Likewise.
582 * p-lang.c (pascal_language_data): Likewise.
583 (pascal_language::print_typedef): New member function.
584 * rust-lang.c (rust_print_typedef): Delete function,
585 implementation moved to rust_language::print_typedef.
586 (rust_language): Delete la_print_typedef initializer.
587 (rust_language::print_typedef): New member function,
588 implementation from rust_print_typedef.
589 * typeprint.c (default_print_typedef): Delete.
590
d711ee67
AB
5912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
592
593 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
594 (ada_language::printstr): New member function.
595 * c-lang.c (c_language_data): Delete la_printstr initializer.
596 (cplus_language_data): Likewise.
597 (asm_language_data): Likewise.
598 (minimal_language_data): Likewise.
599 * d-lang.c (d_language_data): Likewise.
600 * f-lang.c (f_printstr): Rename to f_language::printstr.
601 (f_language_data): Delete la_printstr initializer.
602 (f_language::printstr): New member function, implementation from
603 f_printstr.
604 * go-lang.c (go_language_data): Delete la_printstr initializer.
605 * language.c (language_defn::printstr): Define new member
606 function.
607 (unk_lang_printstr): Delete.
608 (unknown_language_data): Delete la_printstr initializer.
609 (unknown_language::printstr): New member function.
610 (auto_language_data): Delete la_printstr initializer.
611 (auto_language::printstr): New member function.
612 * language.h (language_data): Delete la_printstr field.
613 (language_defn::printstr): Declare new member function.
614 (LA_PRINT_STRING): Update call to printstr.
615 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
616 (m2_language_data): Delete la_printstr initializer.
617 (m2_language::printstr): New member function, implementation from
618 m2_printstr.
619 * objc-lang.c (objc_language_data): Delete la_printstr
620 initializer.
621 * opencl-lang.c (opencl_language_data): Likewise.
622 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
623 (pascal_language_data): Delete la_printstr initializer.
624 (pascal_language::printstr): New member function, implementation
625 from pascal_printstr.
626 * p-lang.h (pascal_printstr): Delete declaration.
627 * rust-lang.c (rust_printstr): Update header comment.
628 (rust_language_data): Delete la_printstr initializer.
629 (rust_language::printstr): New member function.
630
52b50f2c
AB
6312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
632
633 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
634 (ada_language::printchar): New member function.
635 * c-lang.c (c_language_data): Delete la_printchar initializer.
636 (cplus_language_data): Likewise.
637 (asm_language_data): Likewise.
638 (minimal_language_data): Likewise.
639 * d-lang.c (d_language_data): Likewise.
640 * f-lang.c (f_printchar): Rename to f_language::printchar.
641 (f_language_data): Delete la_printchar initializer.
642 (f_language::printchar): New member function, implementation from
643 f_printchar.
644 * go-lang.c (go_language_data): Delete la_printchar initializer.
645 * language.c (unk_lang_printchar): Delete.
646 (language_defn::printchar): Define new member function.
647 (unknown_language_data): Delete la_printchar initializer.
648 (unknown_language::printchar): New member function.
649 (auto_language_data): Delete la_printchar initializer.
650 (auto_language::printchar): New member function.
651 * language.h (language_data): Delete la_printchar field.
652 (language_defn::printchar): Declare new member function.
653 (LA_PRINT_CHAR): Update call to printchar.
654 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
655 (m2_language::printchar): New member function.
656 * objc-lang.c (objc_language_data): Delete la_printchar
657 initializer.
658 * opencl-lang.c (opencl_language_data): Likewise.
659 * p-lang.c (pascal_language_data): Delete la_printchar
660 initializer.
661 (pascal_language::printchar): New member function.
662 * rust-lang.c (rust_printchar): Rename to
663 rust_language::printchar.
664 (rust_language_data): Delete la_printchar initializer.
665 (rust_language::printchar): New member function, implementation
666 from rust_printchar.
667
ec8cec5b
AB
6682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
669
670 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
671 (ada_language_data): Delete la_emitchar initializer.
672 (ada_language::emitchar): New member function, implementation from
673 emit_char.
674 * c-lang.c (c_language_data): Delete la_emitchar initializer.
675 (cplus_language_data): Likewise.
676 (asm_language_data): Likewise.
677 (minimal_language_data): Likewise.
678 * d-lang.c (d_language_data): Likewise.
679 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
680 (f_language_data): Delete la_emitchar initializer.
681 (f_language::emitchar): New member function, implementation from
682 f_emit_char.
683 * go-lang.c (go_language_data): Delete la_emitchar initializer.
684 * language.c (unk_lang_emit_char): Delete.
685 (language_defn::emitchar): New member function definition.
686 (unknown_language_data): Delete la_emitchar initializer.
687 (unknown_language::emitchar): New member function.
688 (auto_language_data): Delete la_emitchar initializer.
689 (auto_language::emitchar): New member function.
690 * language.h (language_data): Delete la_emitchar field.
691 (language_defn::emitchar): New member field declaration.
692 (LA_EMIT_CHAR): Update call to emitchar.
693 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
694 (m2_language_data): Delete la_emitchar initializer.
695 (m2_language::emitchar): New member function, implementation from
696 m2_emit_char.
697 * objc-lang.c (objc_language_data): Delete la_emitchar
698 initializer.
699 * opencl-lang.c (opencl_language_data): Likewise.
700 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
701 (pascal_language_data): Delete la_emitchar initializer.
702 (pascal_language::emitchar): New member function, implementation
703 from pascal_emit_char.
704 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
705 (rust_language_data): Delete la_emitchar initializer.
706 (rust_language::emitchar): New member function, implementation
707 from rust_emitchar.
708
1bf9c363
AB
7092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
710
711 * ada-lang.c (resolve): Rename to ada_language::post_parser.
712 (ada_language_data): Delete la_post_parser initializer.
713 (ada_language::post_parser): New member function.
714 * c-lang.c (c_language_data): Delete la_post_parser initializer.
715 (cplus_language_data): Likewise.
716 (asm_language_data): Likewise.
717 (minimal_language_data): Likewise.
718 * d-lang.c (d_language_data): Likewise.
719 * f-lang.c (f_language_data): Likewise.
720 * go-lang.c (go_language_data): Likewise.
721 * language.c (unknown_language_data): Likewise.
722 (auto_language_data): Likewise.
723 * language.h (language_data): Delete la_post_parser field.
724 (language_defn::post_parser): New member function.
725 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
726 * objc-lang.c (objc_language_data): Likewise.
727 * opencl-lang.c (opencl_language_data): Likewise.
728 * p-lang.c (pascal_language_data): Likewise.
729 * parse.c (parse_exp_in_context): Update call to post_parser.
730 (null_post_parser): Delete definition.
731 * parser-defs.h (null_post_parser): Delete declaration.
732 * rust-lang.c (rust_language_data): Delete la_post_parser
733 initializer.
734
87afa652
AB
7352020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
736
737 * ada-lang.c (parse): Rename to ada_language::parser.
738 (ada_language_data): Delete la_parser initializer.
739 (ada_language::parser): New member function, implementation from
740 parse.
741 * c-lang.c (c_language_data): Delete la_parser initializer.
742 (cplus_language_data): Likewise.
743 (asm_language_data): Likewise.
744 (minimal_language_data): Likewise.
745 * d-lang.c (d_language_data): Likewise.
746 (d_language::parser): New member function.
747 * f-lang.c (f_language_data): Delete la_parser initializer.
748 (f_language::parser): New member function.
749 * go-lang.c (go_language_data): Delete la_parser initializer.
750 (go_language::parser): New member function.
751 * language.c (unk_lang_parser): Delete.
752 (language_defn::parser): Define new member function.
753 (unknown_language_data): Delete la_parser initializer.
754 (unknown_language::parser): New member function.
755 (auto_language_data): Delete la_parser initializer.
756 (auto_language::parser): New member function.
757 * language.h (language_data): Delete la_parser field.
758 (language_defn::parser): Declare new member function.
759 * m2-lang.c (m2_language_data): Delete la_parser initializer.
760 (m2_language::parser): New member function.
761 * objc-lang.c (objc_language_data): Delete la_parser initializer.
762 * opencl-lang.c (opencl_language_data): Likewise.
763 * p-lang.c (pascal_language_data): Likewise.
764 (pascal_language::parser): New member function.
765 * parse.c (parse_exp_in_context): Update call to parser.
766 * rust-lang.c (rust_language_data): Delete la_parser initializer.
767 (rust_language::parser): New member function.
768
37825800
AB
7692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
770
771 * top.c (print_gdb_configuration): Print --with-python-libdir
772 configuration value.
773
5b860c93
PW
7742020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
775
776 * NEWS: Mention change to the alias command.
777
cf00cd6f
PW
7782020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
779
780 * cli/cli-cmds.c (lookup_cmd_for_default_args)
781 (alias_command_completer)
782 (make_alias_options_def_group): New functions.
783 (alias_opts, alias_option_defs): New struct and array.
784 (alias_usage_error): Update usage.
785 (alias_command): Handles optional DEFAULT-ARGS... arguments.
786 Use option framework.
787 (_initialize_cli_cmds): Update alias command help.
788 Update aliases command help.
789 (show_user):
790 Add NULL for new default_args lookup_cmd argument.
791 (valid_command_p): Rename to validate_aliased_command.
792 Add NULL for new default_args lookup_cmd argument. Verify that the
793 aliased_command has no default args.
794 * cli/cli-decode.c (help_cmd): Show aliases definitions.
795 (lookup_cmd_1, lookup_cmd): New argument default_args.
796 (add_alias_cmd):
797 Add NULL for new default_args lookup_cmd argument.
798 (print_help_for_command): Show default args under the layout
799 alias some_alias = some_aliased_cmd some_alias_default_arg.
800 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
801 xfree default_args in destructor.
802 * cli/cli-script.c (process_next_line, do_define_command):
803 Add NULL for new default_args lookup_cmd argument.
804 * command.h: Declare new default_args argument in lookup_cmd
805 and lookup_cmd_1.
806 * completer.c (complete_line_internal_1):
807 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
808 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
809 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
810 Likewise.
811 * infcmd.c (_initialize_infcmd): Likewise.
812 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
813 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
814 * python/py-param.c (add_setshow_generic): Likewise.
815 * remote.c (_initialize_remote): Likewise.
816 * top.c (execute_command): Prepend default_args if command has some.
817 (set_verbose):
818 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
819 * tracepoint.c (validate_actionline, encode_actions_1):
820 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
821
bd920864
TBA
8222020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
823
824 * jit.c (jit_read_descriptor): Use bool as the return type.
825 (jit_breakpoint_re_set_internal): Use bool as the return type.
826 Invert the return value logic; return true if the jit breakpoint
827 has been successfully initialized.
828 (jit_inferior_init): Update the call to
829 jit_breakpoint_re_set_internal.
830
f8098322
PA
8312020-06-22 Pedro Alves <palves@redhat.com>
832
833 PR gdb/25939
834 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
835 Use the current inferior instead. Don't return
836 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
837 wait again.
838 * sol-thread.c (sol_thread_target::wait): Don't reference
839 inferior_ptid.
840 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
841 (sol_update_thread_list_callback): Use the current inferior's pid
842 instead of inferior_ptid.
843
196535a6
RO
8442020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
845
846 * procfs.c: Cleanup many comments.
847
848 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
849 (AFTER_WATCHFLAG): Replace by value.
850
851 (MAIN_PROC_NAME_FORMAT): Inline ...
852 (create_procinfo): ... here.
853
854 (procfs_debug_inferior): Remove SYS_exec handling.
855 (syscall_is_exec): Likewise.
856 (procfs_set_exec_trap): Likewise.
857
858 (syscall_is_lwp_exit): Inline in callers.
859 (syscall_is_exit): Likewise.
860 (syscall_is_exec): Likewise.
861 (syscall_is_lwp_create): Likewise.
862
863 (invalidate_cache): Remove #if 0 code.
864
865 (make_signal_thread_runnable): Remove.
866 (procfs_target::resume): Remove #if 0 code.
867
cf6f3e86
RO
8682020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
869
870 PR gdb/25939
871 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
872 call ...
873 (procfs_target::create_inferior): ... here.
874
48e9cc84
PW
8752020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
876
877 * exec.c (validate_exec_file): Ensure the build-id is up to
878 date by calling reopen_exec_file (that checks file timestamp
879 to decide to re-read the file).
880
3922b302
PA
8812020-06-18 Pedro Alves <palves@redhat.com>
882
883 PR gdb/25412
884 * gdbthread.h (delete_thread, delete_thread_silent)
885 (find_thread_ptid): Update comments.
886 * thread.c (current_thread_): New global.
887 (is_current_thread): Move higher, and reimplement.
888 (inferior_thread): Reimplement.
889 (set_thread_exited): Use bool. Add assertions.
890 (add_thread_silent): Simplify thread-reuse handling by always
891 calling delete_thread.
892 (delete_thread): Remove intro comment.
893 (find_thread_ptid): Skip exited threads.
894 (switch_to_thread_no_regs): Write to current_thread_.
895 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
896 INFERIOR_PTID. Clear current_thread_.
897
6dbdab44
PA
8982020-06-18 Pedro Alves <palves@redhat.com>
899
900 * aix-thread.c (pd_update): Use switch_to_thread.
901
2da4b788
PA
9022020-06-18 Pedro Alves <palves@redhat.com>
903
904 * ravenscar-thread.c (ravenscar_thread_target): Update.
905 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
906 (ravenscar_thread_target::add_active_thread): ... this. Don't
907 set m_base_ptid here. Update to avoid referencing inferior_ptid.
908 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
909
50838d1b
PA
9102020-06-18 Pedro Alves <palves@redhat.com>
911
912 * nat/windows-nat.c (current_windows_thread): Remove.
913 * nat/windows-nat.h (current_windows_thread): Remove.
914 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
915 Adjust.
916 (display_selectors): Adjust to fetch the current
917 windows_thread_info based on inferior_ptid.
918 (fake_create_process): No longer write to current_windows_thread.
919 (windows_nat_target::get_windows_debug_event):
920 Don't set inferior_ptid or current_windows_thread.
921 (windows_nat_target::wait): Adjust to not rely on
922 current_windows_thread.
923 (do_initial_windows_stuff): Now a method of windows_nat_target.
924 Switch to the last_ptid thread.
925 (windows_nat_target::attach): Adjust.
926 (windows_nat_target::detach): Use switch_to_no_thread instead of
927 writing to inferior_ptid directly.
928 (windows_nat_target::create_inferior): Adjust.
929
31ce04e9
PA
9302020-06-18 Pedro Alves <palves@redhat.com>
931
932 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
933
1ee1a363
PA
9342020-06-18 Pedro Alves <palves@redhat.com>
935
936 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
937 after creating it, instead of writing to inferior_ptid. Don't
938 write to inferior_ptid.
939
6d350754
PA
9402020-06-18 Pedro Alves <palves@redhat.com>
941
942 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
943
5d971d48
PA
9442020-06-18 Pedro Alves <palves@redhat.com>
945
946 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
947 it, instead of writing to inferior_ptid.
948
86e57d1b
PA
9492020-06-18 Pedro Alves <palves@redhat.com>
950
951 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
952 to inferior_ptid.
953
f2e1c129
PA
9542020-06-18 Pedro Alves <palves@redhat.com>
955
956 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
957 instead of writing to inferior_ptid directly.
958
60db1b85
PA
9592020-06-18 Pedro Alves <palves@redhat.com>
960
961 * corelow.c (core_target::close): Use switch_to_no_thread instead
962 of writing to inferior_ptid directly.
963 (add_to_thread_list, core_target_open): Use switch_to_thread
964 instead of writing to inferior_ptid directly.
965
fe7d6a8d
PA
9662020-06-18 Pedro Alves <palves@redhat.com>
967
968 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
969 inferior_ptid.
970 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
971 inferior_ptid.
972 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
973 inferior_ptid directly.
974 (darwin_nat_target::init_thread_list): Switch to thread, instead
975 of writing to inferior_ptid.
976 (darwin_nat_target::attach): Don't write to inferior_ptid.
977 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
978
975f8708
PA
9792020-06-18 Pedro Alves <palves@redhat.com>
980
981 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
982 thread.
983 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
984 Instead use switch_to_thread.
985 (gnu_nat_target::detach): Use switch_to_no_thread
986 instead of writing to inferior_ptid directly. Used passed-in
987 inferior instead of looking up the inferior by pid.
988
1a204730
PA
9892020-06-18 Pedro Alves <palves@redhat.com>
990
991 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
992 inferior_ptid.
993
ebe84f23
PA
9942020-06-18 Pedro Alves <palves@redhat.com>
995
996 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
997 inferior_ptid.
998 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
999 thread.
1000 (nto_procfs_target::detach): Avoid referencing
1001 inferior_ptid. Use switch_to_no_thread instead of writing to
1002 inferior_ptid directly.
1003 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1004 instead of writing to inferior_ptid directly.
1005 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1006 to thread.
1007
191f02e5
PA
10082020-06-18 Pedro Alves <palves@redhat.com>
1009
1010 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1011 after creating it, instead of writing to inferior_ptid.
1012 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1013 to inferior_ptid directly.
1014 (gdbsim_target::wait): Don't write to inferior_ptid.
1015
0ac55310
PA
10162020-06-18 Pedro Alves <palves@redhat.com>
1017
1018 * remote.c (remote_target::remote_notice_new_inferior): Use
1019 switch_to_thread instead of writing to inferior_ptid directly.
1020 (remote_target::add_current_inferior_and_thread): Use
1021 switch_to_no_thread instead of writing to inferior_ptid directly.
1022 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1023 and switch_to_thread instead of using set_current_inferior or
1024 writing to inferior_ptid directly.
1025
5233f39b
PA
10262020-06-18 Pedro Alves <palves@redhat.com>
1027
1028 * tracectf.c (ctf_target_open): Switch to added thread instead of
1029 writing to inferior_ptid directly.
1030 (ctf_target::close): Use switch_to_no_thread instead of writing to
1031 inferior_ptid directly.
1032
087e161b
PA
10332020-06-18 Pedro Alves <palves@redhat.com>
1034
1035 * tracefile-tfile.c (tfile_target_open): Don't write to
1036 inferior_ptid directly, instead switch to added thread.
1037 (tfile_target::close): Use switch_to_no_thread instead of writing
1038 to inferior_ptid directly.
1039
7fb43e53
PA
10402020-06-18 Pedro Alves <palves@redhat.com>
1041
1042 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1043 (procfs_target::detach): Use switch_to_no_thread
1044 instead of writing to inferior_ptid directly.
1045 (do_attach): Change return type to void. Switch to the added
1046 thread.
1047 (procfs_target::create_inferior): Switch to the added thread.
1048 (procfs_do_thread_registers): Don't write to inferior_ptid.
1049
18493a00
PA
10502020-06-18 Pedro Alves <palves@redhat.com>
1051
1052 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1053 of writing to inferior_ptid.
1054 (scoped_restore_exited_inferior): Delete.
1055 (handle_vfork_child_exec_or_exit): Simplify using
1056 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1057 instead of writing to inferior_ptid.
1058 (THREAD_STOPPED_BY): Delete.
1059 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1060 (thread_stopped_by_hw_breakpoint): Delete.
1061 (save_waitstatus): Use
1062 scoped_restore_current_thread+switch_to_thread, and call
1063 target_stopped_by_watchpoint instead of
1064 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1065 instead of thread_stopped_by_sw_breakpoint, and
1066 target_stopped_by_hw_breakpoint instead of
1067 thread_stopped_by_hw_breakpoint.
1068 (handle_inferior_event)
1069 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1070 inferior_ptid directly, nor
1071 set_current_inferior/set_current_program_space. Use
1072 switch_to_thread / switch_to_inferior_no_thread instead.
1073
a0776b13
PA
10742020-06-18 Pedro Alves <palves@redhat.com>
1075
1076 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1077 instead of writing to inferior_ptid.
1078
6155c136
PA
10792020-06-18 Pedro Alves <palves@redhat.com>
1080
1081 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1082 added thread.
1083 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1084 to the added thread.
1085 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1086 instead of writing to inferior_ptid.
1087
c5316fc6
PA
10882020-06-18 Pedro Alves <palves@redhat.com>
1089
1090 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1091 (register_to_value_test): Mock a program_space too. Heap-allocate
1092 the address space. Don't write to inferior_ptid. Use
1093 switch_to_thread instead.
1094
8df01799
PA
10952020-06-18 Pedro Alves <palves@redhat.com>
1096
1097 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1098 Delete.
1099 (find_signalled_thread()): New, factored out from
1100 linux_make_corefile_notes and adjusted to handle exited threads.
1101 (linux_make_corefile_notes): Adjust to use the new
1102 find_signalled_thread.
1103
41792d68
PA
11042020-06-18 Pedro Alves <palves@redhat.com>
1105
1106 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1107 of saving/restoring inferior_ptid.
1108
612f258a
TT
11092020-06-17 Tom Tromey <tom@tromey.com>
1110
1111 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1112 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1113 declare.
1114 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1115
efb763a5
SM
11162020-06-15 Simon Marchi <simon.marchi@efficios.com>
1117
1118 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1119 of partial symtabs.
1120
2951f6c0
SM
11212020-06-17 Simon Marchi <simon.marchi@efficios.com>
1122
1123 * regformats/reg-arm.dat: Remove.
1124 * regformats/reg-bfin.dat: Remove.
1125 * regformats/reg-cris.dat: Remove.
1126 * regformats/reg-crisv32.dat: Remove.
1127 * regformats/reg-m32r.dat: Remove.
1128 * regformats/reg-tilegx.dat: Remove.
1129 * regformats/reg-tilegx32.dat: Remove.
1130
7d458ea5
SM
11312020-06-17 Simon Marchi <simon.marchi@efficios.com>
1132
1133 * features/Makefile (WHICH): Remove arm files.
1134 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1135 * regformats/arm/arm-with-neon.dat: Remove.
1136 * regformats/arm/arm-with-vfpv2.dat: Remove.
1137 * regformats/arm/arm-with-vfpv3.dat: Remove.
1138
3af96c0d
SM
11392020-06-17 Simon Marchi <simon.marchi@efficios.com>
1140
1141 * features/Makefile (XMLTOC): Remove rx.xml.
1142
b25e22fd
PA
11432020-06-17 Pedro Alves <palves@redhat.com>
1144
1145 * gdbthread.h (thread_control_state) <trap_expected> Update
1146 comments.
1147
a78a19b1
AB
11482020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1149
1150 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1151 ada_language::lookup_symbol_nonlocal.
1152 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1153 (ada_language::lookup_symbol_nonlocal): New member function,
1154 implementation from ada_lookup_symbol_nonlocal.
1155 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1156 initializer.
1157 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1158 initializer.
1159 (cplus_language::lookup_symbol_nonlocal): New member function.
1160 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1161 (minimal_language_data) Likewise.
1162 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1163 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1164 initializer.
1165 (d_language::lookup_symbol_nonlocal): New member function.
1166 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1167 initializer.
1168 (f_language::lookup_symbol_nonlocal): New member function.
1169 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1170 initializer.
1171 * language.c (unknown_language_data): Likewise.
1172 (auto_language_data): Likewise.
1173 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1174 field.
1175 (language_defn::lookup_symbol_nonlocal): New member function.
1176 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1177 initializer.
1178 * objc-lang.c (objc_language_data): Likewise.
1179 * opencl-lang.c (opencl_language_data): Likewise.
1180 * p-lang.c (pascal_language_data): Likewise.
1181 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1182 rust_language::lookup_symbol_nonlocal.
1183 (rust_language_data): Delete la_lookup_symbol_nonlocal
1184 initializer.
1185 (rust_language::lookup_symbol_nonlocal): New member function,
1186 implementation from rust_lookup_symbol_nonlocal.
1187 * symtab.c (lookup_symbol_aux): Update call to
1188 lookup_symbol_nonlocal.
1189 (basic_lookup_symbol_nonlocal): Rename to...
1190 (language_defn::lookup_symbol_nonlocal): ...this, and update
1191 header comment. Remove language_defn parameter, and replace with
1192 uses of `this'.
1193 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1194
ebe2334e
AB
11952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1196
1197 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1198 initializer.
1199 (ada_language::value_print_inner): New member function.
1200 * c-lang.c (c_language_data): Delete la_value_print_inner
1201 initializer.
1202 (cplus_language_data): Likewise.
1203 (asm_language_data): Likewise.
1204 (minimal_language_data): Likewise.
1205 * d-lang.c (d_language_data): Likewise.
1206 (d_language::value_print_inner): New member function.
1207 * f-lang.c (f_language_data): Delete la_value_print_inner
1208 initializer.
1209 (f_language::value_print_inner): New member function.
1210 * f-lang.h (f_value_print_innner): Rename to...
1211 (f_value_print_inner): ...this (note spelling of 'inner').
1212 * f-valprint.c (f_value_print_innner): Rename to...
1213 (f_value_print_inner): ...this (note spelling of 'inner').
1214 * go-lang.c (go_language_data): Delete la_value_print_inner
1215 initializer.
1216 (go_language::value_print_inner): New member function.
1217 * language.c (language_defn::value_print_inner): Define new member
1218 function.
1219 (unk_lang_value_print_inner): Delete.
1220 (unknown_language_data): Delete la_value_print_inner initializer.
1221 (unknown_language::value_print_inner): New member function.
1222 (auto_language_data): Delete la_value_print_inner initializer.
1223 (auto_language::value_print_inner): New member function.
1224 * language.h (language_data): Delete la_value_print_inner field.
1225 (language_defn::value_print_inner): Delcare new member function.
1226 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1227 initializer.
1228 (m2_language::value_print_inner): New member function.
1229 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1230 initializer.
1231 * opencl-lang.c (opencl_language_data): Likewise.
1232 * p-lang.c (pascal_language_data): Likewise.
1233 (pascal_language::value_print_inner): New member function.
1234 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1235 initializer.
1236 (rust_language::value_print_inner): New member function.
1237 * valprint.c (do_val_print): Update call to value_print_inner.
1238
a1d1fa3e
AB
12392020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1240
1241 * ada-lang.c (ada_language_data): Delete la_value_print
1242 initializer.
1243 (ada_language::value_print): New member function.
1244 * c-lang.c (c_language_data): Delete la_value_print initializer.
1245 (cplus_language_data): Likewise.
1246 (asm_language_data): Likewise.
1247 (minimal_language_data): Likewise.
1248 * d-lang.c (d_language_data): Likewise.
1249 * f-lang.c (f_language_data): Likewise.
1250 * go-lang.c (go_language_data): Likewise.
1251 * language.c (unk_lang_value_print): Delete.
1252 (language_defn::value_print): Define new member function.
1253 (unknown_language_data): Delete la_value_print initializer.
1254 (unknown_language::value_print): New member function.
1255 (auto_language_data): Delete la_value_print initializer.
1256 (auto_language::value_print): New member function.
1257 * language.h (language_data): Delete la_value_print field.
1258 (language_defn::value_print): Declare new member function.
1259 (LA_VALUE_PRINT): Update call to value_print.
1260 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1261 * objc-lang.c (objc_language_data): Likewise.
1262 * opencl-lang.c (opencl_language_data): Likewise.
1263 * p-lang.c (pascal_language_data): Likewise.
1264 (pascal_language::value_print): New member function.
1265 * rust-lang.c (rust_language_data): Delete la_value_print
1266 initializer.
1267
f16a9f57
AB
12682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1269
1270 * ada-lang.c (ada_watch_location_expression): Rename to
1271 ada_language::watch_location_expression.
1272 (ada_language_data): Delete la_watch_location_expression
1273 initializer.
1274 (ada_language::watch_location_expression): New member function,
1275 implementation from ada_watch_location_expression.
1276 * breakpoint.c (watch_command_1): Update call to
1277 watch_location_expression.
1278 * c-lang.c (c_watch_location_expression): Rename to
1279 language_defn::watch_location_expression.
1280 (c_language_data): Delete la_watch_location_expression
1281 initializer.
1282 (cplus_language_data): Likewise.
1283 (asm_language_data): Likewise.
1284 (minimal_language_data): Likewise.
1285 * c-lang.h (c_watch_location_expression): Delete declaration.
1286 * d-lang.c (d_language_data): Delete la_watch_location_expression
1287 initializer.
1288 * f-lang.c (f_language_data): Likewise.
1289 * go-lang.c (go_language_data): Likewise.
1290 * language.c (language_defn::watch_location_expression): Member
1291 function implementation from c_watch_location_expression.
1292 (unknown_language_data): Delete la_watch_location_expression
1293 initializer.
1294 (auto_language_data): Likewise.
1295 * language.h (language_data): Delete la_watch_location_expression
1296 field.
1297 (language_defn::watch_location_expression): Declare new member
1298 function.
1299 * m2-lang.c (m2_language_data): Delete
1300 la_watch_location_expression initializer.
1301 * objc-lang.c (objc_language_data): Likewise.
1302 * opencl-lang.c (opencl_language_data): Likewise.
1303 * p-lang.c (pascal_language_data): Likewise.
1304 * rust-lang.c (rust_watch_location_expression): Rename to
1305 rust_language::watch_location_expression.
1306 (rust_language_data): Delete la_watch_location_expression
1307 initializer.
1308 (rust_language::watch_location_expression): New member function,
1309 implementation from rust_watch_location_expression.
1310
7e56227d
AB
13112020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1312
1313 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1314 ada_language::collect_symbol_completion_matches.
1315 (ada_language_data): Delete la_collect_symbol_completion_matches
1316 initializer.
1317 (ada_language::collect_symbol_completion_matches): New member
1318 function, implementation from
1319 ada_collect_symbol_completion_matches.
1320 * c-lang.c (c_language_data): Delete
1321 la_collect_symbol_completion_matches initializer.
1322 (cplus_language_data): Likewise.
1323 (asm_language_data): Likewise.
1324 (minimal_language_data): Likewise.
1325 * d-lang.c (d_language_data): Likewise.
1326 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1327 f_language::collect_symbol_completion_matches.
1328 (f_language_data): Delete la_collect_symbol_completion_matches
1329 initializer.
1330 (f_language::collect_symbol_completion_matches) New member
1331 function, implementation from f_collect_symbol_completion_matches.
1332 * go-lang.c (go_language_data): Delete
1333 la_collect_symbol_completion_matches initializer.
1334 * language.c (unknown_language_data): Likewise.
1335 (auto_language_data): Likewise.
1336 * language.h (language_data): Delete
1337 la_collect_symbol_completion_matches field.
1338 (language_defn::collect_symbol_completion_matches): New member
1339 function.
1340 * m2-lang.c (m2_language_data): Delete
1341 la_collect_symbol_completion_matches initializer.
1342 * objc-lang.c (objc_language_data): Likewise.
1343 * opencl-lang.c (opencl_language_data): Likewise.
1344 * p-lang.c (pascal_language_data): Likewise.
1345 * rust-lang.c (rust_language_data): Likewise.
1346 * symtab.c (default_collect_symbol_completion_matches): Delete.
1347 (collect_symbol_completion_matches): Update call to
1348 collect_symbol_completion_matches.
1349 (collect_symbol_completion_matches_type): Likewise.
1350 * symtab.h (default_collect_symbol_completion_matches): Delete
1351 declaration.
1352
53fc67f8
AB
13532020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1354
1355 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1356 (ada_language_data): Delete la_word_break_characters initializer.
1357 (ada_language::word_break_characters): New member function.
1358 * c-lang.c (c_language_data): Delete la_word_break_characters
1359 initializer.
1360 (cplus_language_data): Likewise.
1361 (asm_language_data): Likewise.
1362 (minimal_language_data): Likewise.
1363 * completer.c: Update global comment.
1364 (advance_to_expression_complete_word_point): Update call to
1365 word_break_characters.
1366 (complete_files_symbols): Likewise.
1367 (complete_line_internal_1): Likewise.
1368 (default_completer_handle_brkchars): Likewise.
1369 (skip_quoted_chars): Likewise.
1370 * d-lang.c (d_language_data): Delete la_word_break_characters
1371 initializer.
1372 * f-lang.c (f_word_break_characters): Delete.
1373 (f_language_data): Delete la_word_break_characters initializer.
1374 (f_language::word_break_characters): New member function.
1375 * go-lang.c (go_language_data): Delete la_word_break_characters
1376 initializer.
1377 * language.c (unknown_language_data): Likewise.
1378 (auto_language_data): Likewise.
1379 * language.h (default_word_break_characters): Move declaration to
1380 earlier in the file.
1381 (language_data): Delete la_word_break_characters field.
1382 (language_defn::word_break_characters): New member function.
1383 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1384 initializer.
1385 * objc-lang.c (objc_language_data): Likewise.
1386 * opencl-lang.c (opencl_language_data): Likewise.
1387 * p-lang.c (pascal_language_data): Likewise.
1388 * rust-lang.c (rust_language_data): Likewise.
1389
c9debfb9
AB
13902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1391
1392 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1393 (ada_language_data): Delete la_get_symbol_name_matcher
1394 initializer.
1395 (language_defn::get_symbol_name_matcher_inner): New member
1396 function.
1397 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1398 initializer.
1399 (cplus_language_data): Likewise.
1400 (cplus_language::get_symbol_name_matcher_inner): New member
1401 function.
1402 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1403 (minimal_language_data): Likewise.
1404 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1405 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1406 initializer.
1407 * dictionary.c (iter_match_first_hashed): Update call to
1408 get_symbol_name_matcher.
1409 (iter_match_next_hashed): Likewise.
1410 (iter_match_next_linear): Likewise.
1411 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1412 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1413 initializer.
1414 (f_language::get_symbol_name_matcher_inner): New member function.
1415 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1416 initializer.
1417 * language.c (default_symbol_name_matcher): Update header comment,
1418 make static.
1419 (language_defn::get_symbol_name_matcher): New definition.
1420 (language_defn::get_symbol_name_matcher_inner): Likewise.
1421 (get_symbol_name_matcher): Delete.
1422 (unknown_language_data): Delete la_get_symbol_name_matcher
1423 initializer.
1424 (auto_language_data): Likewise.
1425 * language.h (language_data): Delete la_get_symbol_name_matcher
1426 field.
1427 (language_defn::get_symbol_name_matcher): New member function.
1428 (language_defn::get_symbol_name_matcher_inner): Likewise.
1429 (default_symbol_name_matcher): Delete declaration.
1430 * linespec.c (find_methods): Update call to
1431 get_symbol_name_matcher.
1432 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1433 initializer.
1434 * minsyms.c (lookup_minimal_symbol): Update call to
1435 get_symbol_name_matcher.
1436 (iterate_over_minimal_symbols): Likewise.
1437 * objc-lang.c (objc_language_data): Delete
1438 la_get_symbol_name_matcher initializer.
1439 * opencl-lang.c (opencl_language_data): Likewise.
1440 * p-lang.c (pascal_language_data): Likewise.
1441 * psymtab.c (psymbol_name_matches): Update call to
1442 get_symbol_name_matcher.
1443 * rust-lang.c (rust_language_data): Delete
1444 la_get_symbol_name_matcher initializer.
1445 * symtab.c (symbol_matches_search_name): Update call to
1446 get_symbol_name_matcher.
1447 (compare_symbol_name): Likewise.
1448
9a49ad8c
AB
14492020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1450
1451 * ada-lang.c (ada_language_data): Delete la_compute_program
1452 initializer.
1453 * c-lang.c (c_language_data): Likewise.
1454 (c_language::compute_program): New member function.
1455 (cplus_language_data): Delete la_compute_program initializer.
1456 (cplus_language::compute_program): New member function.
1457 (asm_language_data): Delete la_compute_program initializer.
1458 (minimal_language_data): Likewise.
1459 * c-lang.h (c_compute_program): Update comment.
1460 (cplus_compute_program): Likewise.
1461 * compile/compile-c-support.c (c_compute_program): Likewise.
1462 (cplus_compute_program): Likewise.
1463 * compile/compile.c (compile_to_object): Update call to
1464 la_compute_program.
1465 * d-lang.c (d_language_data): Delete la_compute_program
1466 initializer.
1467 * f-lang.c (f_language_data): Likewise.
1468 * go-lang.c (go_language_data): Likewise.
1469 * language.c (unknown_language_data): Likewise.
1470 (auto_language_data): Likewise.
1471 * language.h (language_data): Delete la_compute_program field.
1472 (language_defn::compute_program): New member function.
1473 * m2-lang.c (m2_language_data): Delete la_compute_program
1474 initializer.
1475 * objc-lang.c (objc_language_data): Likewise.
1476 * opencl-lang.c (opencl_language_data): Likewise.
1477 * p-lang.c (pascal_language_data): Likewise.
1478 * rust-lang.c (rust_language_data): Likewise.
1479
eff93b4d
AB
14802020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1481
1482 * ada-lang.c (ada_language_data) Delete
1483 la_class_name_from_physname initializer.
1484 * c-lang.c (c_language_data): Likewise.
1485 (cplus_language_data): Likewise.
1486 (cplus_language::class_name_from_physname): New member function.
1487 (asm_language_data): Delete la_class_name_from_physname
1488 initializer.
1489 (minimal_language_data): Likewise.
1490 * d-lang.c (d_language_data): Likewise.
1491 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1492 method on language_defn class.
1493 (guess_full_die_structure_name): Likewise.
1494 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1495 initializer.
1496 * go-lang.c (go_language_data): Likewise.
1497 * language.c (language_class_name_from_physname): Delete.
1498 (unk_lang_class_name): Delete.
1499 (unknown_language_data): Delete la_class_name_from_physname
1500 initializer.
1501 (auto_language_data): Likewise.
1502 * language.h (language_data): Delete la_class_name_from_physname
1503 field.
1504 (language_defn::class_name_from_physname): New function.
1505 (language_class_name_from_physname): Delete declaration.
1506 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1507 initializer.
1508 * objc-lang.c (objc_language_data): Likewise.
1509 * opencl-lang.c (opencl_language_data): Likewise.
1510 * p-lang.c (pascal_language_data): Likewise.
1511 * rust-lang.c (rust_language_data): Likewise.
1512
de543742
TT
15132020-06-16 Tom Tromey <tom@tromey.com>
1514
1515 * tui/tui-data.h (STATUS_NAME): New macro.
1516 * tui/tui-layout.c (tui_remove_some_windows)
1517 (initialize_known_windows, tui_register_window)
1518 (tui_layout_split::remove_windows, initialize_layouts)
1519 (tui_new_layout_command): Don't use hard-coded window names.
1520
a350efd4
TT
15212020-06-16 Tom Tromey <tom@tromey.com>
1522
1523 PR tui/25348:
1524 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1525 tui_initialize_readline. Only run once. Call rl_initialize.
1526 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1527 tui_initialize_readline.
1528 * tui/tui-io.c (tui_setup_io): Call
1529 tui_ensure_readline_initialized.
1530 * tui/tui-interp.c (tui_interp::init): Update.
1531
39ec0490
TT
15322020-06-16 Tom Tromey <tom@tromey.com>
1533
1534 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1535 Also preserve the status window.
1536
d2d1ea20
TT
15372020-06-16 Tom Tromey <tom@tromey.com>
1538
1539 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1540 where m_window==nullptr.
1541
66920317
TT
15422020-06-15 Tom Tromey <tromey@adacore.com>
1543
1544 * windows-nat.c (windows_nat::handle_output_debug_string):
1545 Update.
1546 (windows_nat::handle_ms_vc_exception): Update.
1547 * target.h (target_read_string): Change API.
1548 * target.c (target_read_string): Change API.
1549 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1550 Update.
1551 * solib-frv.c (frv_current_sos): Update.
1552 * solib-dsbt.c (dsbt_current_sos): Update.
1553 * solib-darwin.c (darwin_current_sos): Update.
1554 * linux-thread-db.c (inferior_has_bug): Update.
1555 * expprint.c (print_subexp_standard): Update.
1556 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1557 (ada_exception_message_1): Update.
1558
a5d871dd
TT
15592020-06-15 Tom Tromey <tromey@adacore.com>
1560
1561 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1562
670e35fa
TT
15632020-06-15 Tom Tromey <tromey@adacore.com>
1564
1565 * valprint.c (read_string): Update comment.
1566 * target.c (MIN): Remove.
1567 (target_read_string): Rewrite.
1568
f5272a3b
TT
15692020-06-15 Tom Tromey <tromey@adacore.com>
1570
1571 * corefile.c (read_memory_string): Remove.
1572 * ada-valprint.c (ada_value_print_ptr): Update.
1573 * ada-lang.h (ada_tag_name): Change return type.
1574 * ada-lang.c (type_from_tag): Update.
1575 (ada_tag_name_from_tsd): Change return type. Use
1576 target_read_string.
1577 (ada_tag_name): Likewise.
1578 * gdbcore.h (read_memory_string): Don't declare.
1579
2c074f49
HD
15802020-06-14 Hannes Domani <ssbssa@yahoo.de>
1581
1582 * symtab.c (rbreak_command): Ignore Windows drive colon.
1583
6a17d503
SM
15842020-06-12 Simon Marchi <simon.marchi@efficios.com>
1585
1586 * NEWS: Mention removed GDBserver host support.
1587
453c733f
NC
15882020-06-12 Nelson Chu <nelson.chu@sifive.com>
1589
1590 * features/riscv/rebuild-csr-xml.sh: Updated.
1591
2b4e6a3f
TT
15922020-06-11 Tom Tromey <tom@tromey.com>
1593
1594 PR gdb/18318:
1595 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1596
4412332f
JG
15972020-06-09 Jonny Grant <jg@jguk.org>
15982020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1599
1600 * main.c (captured_main_1): Don't print new line after help.
1601 (print_gdb_help): add mailing list and IRC channel information
1602 to --help. Add new lines between items in the footer. Remove
1603 quotes around bug url.
1604
2f33032a
KS
16052020-06-11 Keith Seitz <keiths@redhat.com>
1606
1607 PR gdb/21356
1608 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1609 Resolve typedefs for type length calculations.
1610
7ab96794
TV
16112020-06-10 Tom de Vries <tdevries@suse.de>
1612
1613 PR ada/24713
1614 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1615 (write_psymbols): Enable .gdb_index for ada.
1616 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1617 ada.
1618
e5f3ece2
TV
16192020-06-10 Tom de Vries <tdevries@suse.de>
1620
1621 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1622 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1623 namei" instead of "const char *name" argument.
1624 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1625 dw2_symtab_iter_init.
1626
940da03e
SM
16272020-06-08 Simon Marchi <simon.marchi@efficios.com>
1628
1629 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1630 to use type::field and field::type instead.
1631
b6cdac4b
SM
16322020-06-08 Simon Marchi <simon.marchi@efficios.com>
1633
1634 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1635 to use field::type instead.
1636
5d14b6e5
SM
16372020-06-08 Simon Marchi <simon.marchi@efficios.com>
1638
1639 * gdbtypes.h (struct field) <type, set_type>: New methods.
1640 Rename `type` field to...
1641 <m_type>: ... this. Change references throughout to use type or
1642 set_type methods.
1643 (FIELD_TYPE): Use field::type. Change call sites that modify
1644 the field's type to use field::set_type instead.
1645
3d967001
SM
16462020-06-08 Simon Marchi <simon.marchi@efficios.com>
1647
1648 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1649 to use type::index_type instead.
1650
262abc0d
SM
16512020-06-08 Simon Marchi <simon.marchi@efficios.com>
1652
1653 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1654 methods.
1655 (TYPE_INDEX_TYPE): Use type::index_type.
1656 * gdbtypes.c (create_array_type_with_stride): Likewise.
1657
82836c92
TT
16582020-06-07 Tom Tromey <tom@tromey.com>
1659
1660 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1661 parameter.
1662 (generic_value_print): Update.
1663
940dace9
AB
16642020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1665
1666 Revert commit 982a38f60b0.
1667 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1668
982a38f6
AB
16692020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1670
1671 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1672 avoid use after free.
1673
82f06518
TV
16742020-06-05 Tom de Vries <tdevries@suse.de>
1675
1676 * NEWS: Fix typos.
1677
f8c41851
SM
16782020-06-04 Simon Marchi <simon.marchi@efficios.com>
1679
1680 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1681 the per_bfd object.
1682 (dwarf2_read_debug_names): Likewise.
1683 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1684 object when re-using a per_bfd object with an index.
1685
f9b5d5ea
TV
16862020-06-03 Tom de Vries <tdevries@suse.de>
1687
1688 PR symtab/26046
1689 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1690 children for C++.
1691 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1692 DW_TAG_subprogram.
1693
f6eee2d0
AB
16942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1695
1696 * ada-lang.c (ada_language_data): Delete skip_trampoline
1697 initializer.
1698 * c-lang.c (c_language_data): Likewise.
1699 (cplus_language_data): Likewise.
1700 (cplus_language::skip_trampoline): New member function.
1701 (asm_language_data): Delete skip_trampoline initializer.
1702 (minimal_language_data): Likewise.
1703 * d-lang.c (d_language_data): Likewise.
1704 * f-lang.c (f_language_data): Likewise.
1705 * go-lang.c (go_language_data): Likewise.
1706 * language.c (unk_lang_trampoline): Delete function.
1707 (skip_language_trampoline): Update.
1708 (unknown_language_data): Delete skip_trampoline initializer.
1709 (auto_language_data): Likewise.
1710 * language.h (language_data): Delete skip_trampoline field.
1711 (language_defn::skip_trampoline): New function.
1712 * m2-lang.c (m2_language_data): Delete skip_trampoline
1713 initializer.
1714 * objc-lang.c (objc_skip_trampoline): Delete function, move
1715 implementation to objc_language::skip_trampoline.
1716 (objc_language_data): Delete skip_trampoline initializer.
1717 (objc_language::skip_trampoline): New member function with
1718 implementation from objc_skip_trampoline.
1719 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1720 initializer.
1721 * p-lang.c (pascal_language_data): Likewise.
1722 * rust-lang.c (rust_language_data): Likewise.
1723
0a50df5d
AB
17242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1725
1726 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1727 (ada_language::demangle): New member function.
1728 * c-lang.c (c_language_data): Delete la_demangle initializer.
1729 (cplus_language_data): Delete la_demangle initializer.
1730 (cplus_language::demangle): New member function.
1731 (asm_language_data): Delete la_demangle initializer.
1732 (minimal_language_data): Delete la_demangle initializer.
1733 * d-lang.c (d_language_data): Delete la_demangle initializer.
1734 (d_language::demangle): New member function.
1735 * f-lang.c (f_language_data): Delete la_demangle initializer.
1736 (f_language::demangle): New member function.
1737 * go-lang.c (go_language_data): Delete la_demangle initializer.
1738 (go_language::demangle): New member function.
1739 * language.c (language_demangle): Update.
1740 (unk_lang_demangle): Delete.
1741 (unknown_language_data): Delete la_demangle initializer.
1742 (unknown_language::demangle): New member function.
1743 (auto_language_data): Delete la_demangle initializer.
1744 (auto_language::demangle): New member function.
1745 * language.h (language_data): Delete la_demangle field.
1746 (language_defn::demangle): New function.
1747 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1748 * objc-lang.c (objc_language_data): Delete la_demangle
1749 initializer.
1750 (objc_language::demangle): New member function.
1751 * opencl-lang.c (opencl_language_data): Delete la_demangle
1752 initializer.
1753 * p-lang.c (pascal_language_data): Likewise.
1754 * rust-lang.c (rust_language_data): Likewise.
1755 (rust_language::demangle): New member function.
1756
fbfb0a46
AB
17572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1758
1759 * ada-lang.c (ada_language_data): Delete la_print_type
1760 initializer.
1761 (ada_language::print_type): New member function.
1762 * c-lang.c (c_language_data): Delete la_print_type initializer.
1763 (c_language::print_type): New member function.
1764 (cplus_language_data): Delete la_print_type initializer.
1765 (cplus_language::print_type): New member function.
1766 (asm_language_data): Delete la_print_type initializer.
1767 (asm_language::print_type): New member function.
1768 (minimal_language_data): Delete la_print_type initializer.
1769 (minimal_language::print_type): New member function.
1770 * d-lang.c (d_language_data): Delete la_print_type initializer.
1771 (d_language::print_type): New member function.
1772 * f-lang.c (f_language_data): Delete la_print_type initializer.
1773 (f_language::print_type): New member function.
1774 * go-lang.c (go_language_data): Delete la_print_type initializer.
1775 (go_language::print_type): New member function.
1776 * language.c (unk_lang_print_type): Delete.
1777 (unknown_language_data): Delete la_print_type initializer.
1778 (unknown_language::print_type): New member function.
1779 (auto_language_data): Delete la_print_type initializer.
1780 (auto_language::print_type): New member function.
1781 * language.h (language_data): Delete la_print_type field.
1782 (language_defn::print_type): New function.
1783 (LA_PRINT_TYPE): Update.
1784 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1785 (m2_language::print_type): New member function.
1786 * objc-lang.c (objc_language_data): Delete la_print_type
1787 initializer.
1788 (objc_language::print_type): New member function.
1789 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1790 to opencl_language::print_type.
1791 (opencl_language_data): Delete la_print_type initializer.
1792 (opencl_language::print_type): New member function, implementation
1793 from opencl_print_type.
1794 * p-lang.c (pascal_language_data): Delete la_print_type
1795 initializer.
1796 (pascal_language::print_type): New member function.
1797 * rust-lang.c (rust_print_type): Delete, implementation moved to
1798 rust_language::print_type.
1799 (rust_language_data): Delete la_print_type initializer.
1800 (rust_language::print_type): New member function, implementation
1801 from rust_print_type.
1802
6f827019
AB
18032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1804
1805 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1806 implementation moves to...
1807 (ada_language::sniff_from_mangled_name): ...here. Update return
1808 type.
1809 (ada_language_data): Delete la_sniff_from_mangled_name
1810 initializer.
1811 * c-lang.c (c_language_data): Likewise.
1812 (cplus_language_data): Likewise.
1813 (cplus_language::sniff_from_mangled_name): New member function,
1814 implementation taken from gdb_sniff_from_mangled_name.
1815 (asm_language_data): Delete la_sniff_from_mangled_name
1816 initializer.
1817 (minimal_language_data): Likewise.
1818 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1819 implementation moves to cplus_language::sniff_from_mangled_name.
1820 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1821 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1822 moves to...
1823 (d_language::sniff_from_mangled_name): ...here.
1824 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1825 * f-lang.c (f_language_data): Likewise.
1826 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1827 moves to...
1828 (go_language::sniff_from_mangled_name): ...here.
1829 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1830 * language.c (language_sniff_from_mangled_name): Delete.
1831 (unknown_language_data): Delete la_sniff_from_mangled_name
1832 initializer.
1833 (auto_language_data): Likewise.
1834 * language.h (language_data): Delete la_sniff_from_mangled_name
1835 field.
1836 (language_defn::sniff_from_mangled_name): New function.
1837 (language_sniff_from_mangled_name): Delete declaration.
1838 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1839 field.
1840 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1841 implementation moves to...
1842 (objc_language::sniff_from_mangled_name): ...here.
1843 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1844 * opencl-lang.c (opencl_language_data): Likewise.
1845 * p-lang.c (pascal_language_data): Likewise.
1846 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1847 implementation moves to...
1848 (rust_language::sniff_from_mangled_name): ...here.
1849 (rust_language_data): Delete la_sniff_from_mangled_name
1850 initializer.
1851 * symtab.c (symbol_find_demangled_name): Call
1852 sniff_from_mangled_name member function.
1853
fb8006fd
AB
18542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1855
1856 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1857 initializer.
1858 * c-lang.c (c_language_data): Likewise.
1859 (cplus_language_data): Likewise.
1860 (cplus_language::search_name_hash): New member function.
1861 (asm_language_data): Delete la_search_name_hash initializer.
1862 (minimal_language_data): Likewise.
1863 * d-lang.c (d_language_data): Likewise.
1864 * dictionary.c (default_search_name_hash): Rename to...
1865 (language_defn::search_name_hash): ...this.
1866 * f-lang.c (f_language_data): Likewise.
1867 (f_language::search_name_hash): New member function.
1868 * go-lang.c (go_language_data): Delete la_search_name_hash
1869 initializer.
1870 * language.c (unknown_language_data): Likewise.
1871 (auto_language_data): Likewise.
1872 * language.h (struct language_data): Delete la_search_name_hash
1873 field.
1874 (language_defn::search_name_hash): Declare new member function.
1875 (default_search_name_hash): Delete declaration.
1876 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1877 initializer.
1878 * objc-lang.c (objc_language_data): Likewise.
1879 * opencl-lang.c (opencl_language_data): Likewise.
1880 * p-lang.c (pascal_language_data): Likewise.
1881 * rust-lang.c (rust_language_data): Likewise.
1882 * symtab.c (search_name_hash): Update call.
1883
8e25bafe
AB
18842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1885
1886 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1887 initializer.
1888 * c-lang.c (class compile_instance): Declare.
1889 (c_language_data): Delete la_get_compile_instance initializer.
1890 (c_language::get_compile_instance): New member function.
1891 (cplus_language_data): Delete la_get_compile_instance initializer.
1892 (cplus_language::get_compile_instance): New member function.
1893 (asm_language_data): Delete la_get_compile_instance initializer.
1894 (minimal_language_data): Likewise.
1895 * c-lang.h (c_get_compile_context): Update comment.
1896 (cplus_get_compile_context): Update comment.
1897 * compile/compile.c (compile_to_object): Update calls, don't rely
1898 on function pointer being NULL.
1899 * d-lang.c (d_language_data): Delete la_get_compile_instance
1900 initializer.
1901 * f-lang.c (f_language_data): Likewise.
1902 * go-lang.c (go_language_data): Likewise.
1903 * language.c (unknown_language_data): Likewise.
1904 (auto_language_data): Likewise.
1905 * language.h (language_data): Delete la_get_compile_instance field.
1906 (language_defn::get_compile_instance): New member function.
1907 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1908 initializer.
1909 * objc-lang.c (objc_language_data): Likewise.
1910 * opencl-lang.c (opencl_language_data): Likewise.
1911 * p-lang.c (pascal_language_data): Likewise.
1912 * rust-lang.c (rust_language_data): Likewise.
1913
4009ee92
AB
19142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1915
1916 * ada-lang.c (ada_add_all_symbols): Update comment.
1917 (ada_iterate_over_symbols): Delete, move implementation to...
1918 (ada_language::iterate_over_symbols): ...here, a new member
1919 function, rewrite to use range based for loop.
1920 (ada_language_data): Delete la_iterate_over_symbols initializer.
1921 * c-lang.c (c_language_data): Likewise.
1922 (cplus_language_data): Likewise.
1923 (asm_language_data): Likewise.
1924 (minimal_language_data): Likewise.
1925 * d-lang.c (d_language_data): Likewise.
1926 * f-lang.c (f_language_data): Likewise.
1927 * go-lang.c (go_language_data): Likewise.
1928 * language.c (unknown_language_data): Likewise.
1929 (auto_language_data): Likewise.
1930 * language.h (language_data): Delete la_iterate_over_symbols field.
1931 (language_defn::iterate_over_symbols): New member function.
1932 (LA_ITERATE_OVER_SYMBOLS): Update.
1933 * linespec.c (iterate_over_all_matching_symtabs): Update.
1934 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
1935 initializer.
1936 * objc-lang.c (objc_language_data): Likewise.
1937 * opencl-lang.c (opencl_language_data): Likewise.
1938 * p-lang.c (pascal_language_data): Likewise.
1939 * rust-lang.c (rust_language_data): Likewise.
1940
54f4ca46
AB
19412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1942
1943 * ada-lang.c (ada_language_data): Delete
1944 la_lookup_transparent_type initializer.
1945 * c-lang.c (c_language_data): Likewise.
1946 (cplus_language_data): Likewise.
1947 (cplus_language::lookup_transparent_type): New member function.
1948 (asm_language_data): Delete la_lookup_transparent_type
1949 initializer.
1950 (minimal_language_data): Likewise.
1951 * d-lang.c (d_language_data): Likewise.
1952 * f-lang.c (f_language_data): Likewise.
1953 * go-lang.c (go_language_data): Likewise.
1954 * language.c (unknown_language_data): Likewise.
1955 (auto_language_data): Likewise.
1956 * language.h (struct language_data): Delete
1957 la_lookup_transparent_type field.
1958 (language_defn::lookup_transparent_type): New member function.
1959 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
1960 initializer.
1961 * objc-lang.c (objc_language_data): Likewise.
1962 * opencl-lang.c (opencl_language_data): Likewise.
1963 * p-lang.c (pascal_language_data): Likewise.
1964 * rust-lang.c (rust_language_data): Likewise.
1965 * symtab.c (symbol_matches_domain): Update call.
1966
1fb314aa
AB
19672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1968
1969 * ada-lang.c (ada_language_arch_info): Delete function, move
1970 implementation to...
1971 (ada_language::language_arch_info): ...here, a new member
1972 function.
1973 (ada_language_data): Delete la_language_arch_info.
1974 * c-lang.c (c_language_data): Likewise.
1975 (c_language::language_arch_info): New member function.
1976 (cplus_language_arch_info): Delete function, move
1977 implementation to...
1978 (cplus_language::language_arch_info): ...here, a new member
1979 function.
1980 (cplus_language_data): Delete la_language_arch_info.
1981 (asm_language_data): Likewise.
1982 (asm_language::language_arch_info): New member function.
1983 (minimal_language_data): Delete la_language_arch_info.
1984 (minimal_language::language_arch_info): New member function.
1985 * d-lang.c (d_language_arch_info): Delete function, move
1986 implementation to...
1987 (d_language::language_arch_info): ...here, a new member
1988 function.
1989 (d_language_data): Delete la_language_arch_info.
1990 * f-lang.c (f_language_arch_info): Delete function, move
1991 implementation to...
1992 (f_language::language_arch_info): ...here, a new member
1993 function.
1994 (f_language_data): Delete la_language_arch_info.
1995 * go-lang.c (go_language_arch_info): Delete function, move
1996 implementation to...
1997 (go_language::language_arch_info): ...here, a new member
1998 function.
1999 (go_language_data): Delete la_language_arch_info.
2000 * language.c (unknown_language_data): Likewise.
2001 (unknown_language::language_arch_info): New member function.
2002 (auto_language_data): Delete la_language_arch_info.
2003 (auto_language::language_arch_info): New member function.
2004 (language_gdbarch_post_init): Update call to
2005 la_language_arch_info.
2006 * language.h (language_data): Delete la_language_arch_info
2007 function pointer.
2008 (language_defn::language_arch_info): New function.
2009 * m2-lang.c (m2_language_arch_info): Delete function, move
2010 implementation to...
2011 (m2_language::language_arch_info): ...here, a new member
2012 function.
2013 (m2_language_data): Delete la_language_arch_info.
2014 * objc-lang.c (objc_language_arch_info): Delete function, move
2015 implementation to...
2016 (objc_language::language_arch_info): ...here, a new member
2017 function.
2018 (objc_language_data): Delete la_language_arch_info.
2019 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2020 implementation to...
2021 (opencl_language::language_arch_info): ...here, a new member
2022 function.
2023 (opencl_language_data): Delete la_language_arch_info.
2024 * p-lang.c (pascal_language_arch_info): Delete function, move
2025 implementation to...
2026 (pascal_language::language_arch_info): ...here, a new member
2027 function.
2028 (pascal_language_data): Delete la_language_arch_info.
2029 * rust-lang.c (rust_language_arch_info): Delete function, move
2030 implementation to...
2031 (rust_language::language_arch_info): ...here, a new member
2032 function.
2033 (rust_language_data): Delete la_language_arch_info.
2034
48448202
AB
20352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2036
2037 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2038 initializer.
2039 * c-lang.c (c_language_data): Likewise.
2040 (cplus_language_data): Likewise.
2041 (cplus_language::pass_by_reference_info): New method.
2042 (asm_language_data): Delete la_pass_by_reference initializer.
2043 (minimal_language_data): Likewise.
2044 * cp-abi.c (cp_pass_by_reference): Remove use of
2045 default_pass_by_reference.
2046 * d-lang.c (d_language_data): Likewise.
2047 * f-lang.c (f_language_data): Likewise.
2048 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2049 default_pass_by_reference.
2050 * go-lang.c (go_language_data): Likewise.
2051 * language.c (language_pass_by_reference): Update.
2052 (default_pass_by_reference): Delete.
2053 (unknown_language_data): Delete la_pass_by_reference
2054 initializer.
2055 (auto_language_data): Likewise.
2056 * language.h (struct language_data): Delete la_pass_by_reference
2057 field.
2058 (language_defn::pass_by_reference_info): New member function.
2059 (default_pass_by_reference): Delete declaration.
2060 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2061 initializer.
2062 * objc-lang.c (objc_language_data): Likewise.
2063 * opencl-lang.c (opencl_language_data): Likewise.
2064 * p-lang.c (pascal_language_data): Likewise.
2065 * rust-lang.c (rust_language_data): Likewise.
2066
15e5fd35
AB
20672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2068
2069 * ada-lang.c (ada_read_var_value): Delete function, move
2070 implementation to...
2071 (ada_language::read_var_value): ...here.
2072 (ada_language_data): Delete la_read_var_value initializer.
2073 * c-lang.c (c_language_data): Likewise.
2074 (cplus_language_data): Likewise.
2075 (minimal_language_data): Likewise.
2076 * d-lang.c (d_language_data): Likewise.
2077 * f-lang.c (f_language_data): Likewise.
2078 * findvar.c (default_read_var_value): Rename to...
2079 (language_defn::read_var_value): ...this.
2080 * findvar.c (read_var_value): Update header comment, and change to
2081 call member function instead of function pointer.
2082 * go-lang.c (go_language_data): Likewise.
2083 * language.c (unknown_language_data): Delete la_read_var_value
2084 initializer.
2085 (auto_language_data): Likewise.
2086 * language.h (struct language_data): Delete la_read_var_value
2087 field.
2088 (language_defn::read_var_value): New member function.
2089 (default_read_var_value): Delete declaration.
2090 * m2-lang.c (m2_language_data): Delete la_read_var_value
2091 initializer.
2092 * objc-lang.c (objc_language_data): Likewise.
2093 * opencl-lang.c (opencl_language_data): Likewise.
2094 * p-lang.c (pascal_language_data): Likewise.
2095 * rust-lang.c (rust_language_data): Likewise.
2096 * value.h (default_read_var_value): Delete declaration.
2097
5bd40f2a
AB
20982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2099
2100 * ada-lang.c (ada_print_array_index): Delete function, move
2101 implementation to...
2102 (ada_language::print_array_index): ...here.
2103 (ada_language_data): Delete la_print_array_index initializer.
2104 * c-lang.c (c_language_data): Likewise.
2105 (cplus_language_data): Likewise.
2106 (minimal_language_data): Likewise.
2107 * d-lang.c (d_language_data): Likewise.
2108 * f-lang.c (f_language_data): Likewise.
2109 * go-lang.c (go_language_data): Likewise.
2110 * language.c (default_print_array_index): Delete function, move
2111 implementation to...
2112 (language_defn::print_array_index): ...here.
2113 (unknown_language_data): Delete la_print_array_index initializer.
2114 (auto_language_data): Likewise.
2115 * language.h (struct language_data): Delete la_print_array_index
2116 field.
2117 (language_defn::print_array_index): New member function.
2118 (LA_PRINT_ARRAY_INDEX): Update.
2119 (default_print_array_index): Delete declaration.
2120 * m2-lang.c (m2_language_data): Delete la_print_array_index
2121 initializer.
2122 * objc-lang.c (objc_language_data): Likewise.
2123 * opencl-lang.c (opencl_language_data): Likewise.
2124 * p-lang.c (pascal_language_data): Likewise.
2125 * rust-lang.c (rust_language_data): Likewise.
2126
0874fd07
AB
21272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2128
2129 * gdb/ada-lang.c (ada_language_defn): Convert to...
2130 (ada_language_data): ...this.
2131 (class ada_language): New class.
2132 (ada_language_defn): New static global.
2133 * gdb/c-lang.c (c_language_defn): Convert to...
2134 (c_language_data): ...this.
2135 (class c_language): New class.
2136 (c_language_defn): New static global.
2137 (cplus_language_defn): Convert to...
2138 (cplus_language_data): ...this.
2139 (class cplus_language): New class.
2140 (cplus_language_defn): New static global.
2141 (asm_language_defn): Convert to...
2142 (asm_language_data): ...this.
2143 (class asm_language): New class.
2144 (asm_language_defn): New static global.
2145 (minimal_language_defn): Convert to...
2146 (minimal_language_data): ...this.
2147 (class minimal_language): New class.
2148 (minimal_language_defn): New static global.
2149 * gdb/d-lang.c (d_language_defn): Convert to...
2150 (d_language_data): ...this.
2151 (class d_language): New class.
2152 (d_language_defn): New static global.
2153 * gdb/f-lang.c (f_language_defn): Convert to...
2154 (f_language_data): ...this.
2155 (class f_language): New class.
2156 (f_language_defn): New static global.
2157 * gdb/go-lang.c (go_language_defn): Convert to...
2158 (go_language_data): ...this.
2159 (class go_language): New class.
2160 (go_language_defn): New static global.
2161 * gdb/language.c (unknown_language_defn): Remove declaration.
2162 (current_language): Initialize to nullptr, real initialization is
2163 moved to _initialize_language.
2164 (languages): Delete global.
2165 (language_defn::languages): Define.
2166 (set_language_command): Use language_defn::languages.
2167 (set_language): Likewise.
2168 (range_error): Likewise.
2169 (language_enum): Likewise.
2170 (language_def): Likewise.
2171 (add_set_language_command): Use language_def::languages for the
2172 language list, and language_def to lookup language pointers.
2173 (skip_language_trampoline): Use language_defn::languages.
2174 (unknown_language_defn): Convert to...
2175 (unknown_language_data): ...this.
2176 (class unknown_language): New class.
2177 (unknown_language_defn): New static global.
2178 (auto_language_defn): Convert to...
2179 (auto_language_data): ...this.
2180 (class auto_language): New class.
2181 (auto_language_defn): New static global.
2182 (language_gdbarch_post_init): Use language_defn::languages.
2183 (_initialize_language): Initialize current_language.
2184 * gdb/language.h (struct language_defn): Rename to...
2185 (struct language_data): ...this.
2186 (struct language_defn): New.
2187 (auto_language_defn): Delete.
2188 (unknown_language_defn): Delete.
2189 (minimal_language_defn): Delete.
2190 (ada_language_defn): Delete.
2191 (asm_language_defn): Delete.
2192 (c_language_defn): Delete.
2193 (cplus_language_defn): Delete.
2194 (d_language_defn): Delete.
2195 (f_language_defn): Delete.
2196 (go_language_defn): Delete.
2197 (m2_language_defn): Delete.
2198 (objc_language_defn): Delete.
2199 (opencl_language_defn): Delete.
2200 (pascal_language_defn): Delete.
2201 (rust_language_defn): Delete.
2202 * gdb/m2-lang.c (m2_language_defn): Convert to...
2203 (m2_language_data): ...this.
2204 (class m2_language): New class.
2205 (m2_language_defn): New static global.
2206 * gdb/objc-lang.c (objc_language_defn): Convert to...
2207 (objc_language_data): ...this.
2208 (class objc_language): New class.
2209 (objc_language_defn): New static global.
2210 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2211 (opencl_language_data): ...this.
2212 (class opencl_language): New class.
2213 (opencl_language_defn): New static global.
2214 * gdb/p-lang.c (pascal_language_defn): Convert to...
2215 (pascal_language_data): ...this.
2216 (class pascal_language): New class.
2217 (pascal_language_defn): New static global.
2218 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2219 language pointer, update comment format.
2220 * gdb/rust-lang.c (rust_language_defn): Convert to...
2221 (rust_language_data): ...this.
2222 (class rust_language): New class.
2223 (rust_language_defn): New static global.
2224
1313c56e
AB
22252020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2226
2227 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2228 member variable.
2229 <m_stmt_at_address>: New member variable.
2230 (lnp_state_machine::record_line): Don't record some lines, update
2231 tracking of is_stmt at the same address.
2232 (lnp_state_machine::lnp_state_machine): Initialise new member
2233 variables.
2234
b7ed9f3d
ST
22352020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2236
2237 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2238 "-include gnu-nat-mig.h".
2239 * gnu-nat-mig.h: New file.
2240 * gnu-nat.c: Include "gnu-nat-mig.h".
2241 (exc_server, msg_reply_server, notify_server,
2242 process_reply_server): Remove declarations.
2243
14a8ad62
ST
22442020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2245
2246 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2247 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2248 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2249 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2250 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2251 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2252 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2253 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2254 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2255 to gnu_nat_target class.
2256 * gnu-nat.c: Likewise.
2257 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2258 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2259 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2260 object.
2261 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2262 instead of `gnu_target'.
2263
0af5e106
ST
22642020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2265
2266 * i386-gnu-tdep.c: Include "gdbcore.h"
2267 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2268 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2269 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2270 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2271 i386_gnu_sigcontext_addr): New functions
2272 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2273 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2274 tdep.
2275
078f2fc9
ST
22762020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2277
2278 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2279 before fork_inferior call. Avoid calling it if target_is_pushed returns
2280 true.
2281
53dff92c
ST
22822020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2283
2284 * gnu-nat.h (gnu_target): New variable declaration.
2285 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2286 gnu_target.
2287 * gnu-nat.c (gnu_target): New variable.
2288 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2289 add_thread_silent, and add_thread calls.
2290 (gnu_nat_target::create_inferior): Pass gnu_target to
2291 add_thread_silent, thread_change_ptid call.
2292 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2293 call.
2294
5a8b8627
ST
22952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2296
2297 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2298 (gnu_nat_target::find_memory_regions): Remove unused
2299 `old_address' variable.
2300
366f550a
ST
23012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2302
2303 * gnu-nat.c: Include "gdbarch.h".
2304
f14871bf
ST
23052020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2306
2307 * reply_mig_hack.awk (Error return): Cast function through
2308 void *, to bypass compiler function call check.
2309
c6887cfb
ST
23102020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2311
2312 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2313 $(srcdir)/reply_mig_hack.awk.
2314
6930bffe
ST
23152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2316
2317 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2318
112c22ed
JG
23192020-05-30 Jonny Grant <jg@jguk.org>
2320
2321 * configure.ac (ACX_BUGURL): change bug URL to https.
2322
f68f85b5
PA
23232020-05-30 Pedro Alves <palves@redhat.com>
2324
2325 * cp-support.c (replace_typedefs_template): New.
2326 (replace_typedefs_qualified_name): Handle
2327 DEMANGLE_COMPONENT_TEMPLATE.
2328
976ca316
SM
23292020-05-29 Simon Marchi <simon.marchi@efficios.com>
2330
2331 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2332 dwarf2/index-cache.h, dwarf2/index-write.c,
2333 dwarf2/index-write.h, dwarf2/line-header.c,
2334 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2335 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2336 variables and fields from `dwarf2_per_objfile` to just
2337 `per_objfile` throughout.
2338
989ade05
SM
23392020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2340
2341 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2342 <push_dwarf_reg_entry_value>: Add comment.
2343
c47bae85
KB
23442020-05-28 Kevin Buettner <kevinb@redhat.com>
2345 Keith Seitz <keiths@redhat.com>
2346
2347 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2348 instead of PyEval_ReleaseLock.
2349 (class gdbpy_gil): Move to earlier in file.
2350 (finalize_python): Set gdb_python_initialized.
2351 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2352 when not initialized.
2353
44486dcf
SM
23542020-05-28 Simon Marchi <simon.marchi@efficios.com>
2355
2356 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2357 <push_dwarf_reg_entry_value>: Remove assert. Override
2358 per_objfile with caller_per_objfile.
2359
f030440d
TV
23602020-05-28 Tom de Vries <tdevries@suse.de>
2361
2362 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2363 PR gold/15646 workaround to symbol kind "type".
2364
f0fbb768
TT
23652020-05-27 Tom Tromey <tromey@adacore.com>
2366
2367 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2368
af0b2a3e
TT
23692020-05-27 Tom Tromey <tromey@adacore.com>
2370
2371 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2372 Use htab_find_with_hash.
2373 <add_abbrev>: Remove "abbrev_number" parameter.
2374 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2375 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2376 (hash_abbrev): Add comment.
2377 (abbrev_table::lookup_abbrev): Move to header file.
2378 (abbrev_table::read): Update.
2379
7d00ffec
TT
23802020-05-27 Tom Tromey <tromey@adacore.com>
2381
2382 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2383 method.
2384 <canonical_name>: New member.
2385 <raw_name>: Rename from "name".
2386 (partial_die_info): Initialize canonical_name.
2387 (scan_partial_symbols): Check raw_name.
2388 (partial_die_parent_scope, partial_die_full_name)
2389 (add_partial_symbol, add_partial_subprogram)
2390 (add_partial_enumeration, load_partial_dies): Use "name" method.
2391 (partial_die_info::name): New method.
2392 (partial_die_info::read, guess_partial_die_structure_name)
2393 (partial_die_info::fixup): Update.
2394
697bba18
TT
23952020-05-27 Tom Tromey <tromey@adacore.com>
2396
2397 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2398 <get_ref_die_offset>: Inline.
2399 <get_ref_die_offset_complaint>: New method.
2400 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2401 (attribute::get_ref_die_offset_complaint): Rename from
2402 get_ref_die_offset. Just issue complaint.
2403
c17ace43
HD
24042020-05-27 Hannes Domani <ssbssa@yahoo.de>
2405
2406 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2407
96445f0b
HD
24082020-05-27 Hannes Domani <ssbssa@yahoo.de>
2409
2410 * exec.c (exec_file_attach): Use errno value of first openp failure.
2411
ac637ec3
HD
24122020-05-27 Hannes Domani <ssbssa@yahoo.de>
2413
2414 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2415 Don't close thread handle.
2416
17ee85fc
TT
24172020-05-27 Tom Tromey <tom@tromey.com>
2418 Simon Marchi <simon.marchi@efficios.com>
2419
2420 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2421 shared_ptr.
2422 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2423 member.
2424 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2425 dwarf2_per_bfd_objfile_data_key>: New globals.
2426 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2427 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2428 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2429 shared.
2430 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2431 short-circuit when sharing.
2432 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2433 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2434
39b16f87
SM
24352020-05-27 Simon Marchi <simon.marchi@efficios.com>
2436
2437 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2438 to...
2439 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2440 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2441
fcf23d5b
SM
24422020-05-27 Simon Marchi <simon.marchi@efficios.com>
2443
2444 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2445 build_name_components, find_name_components_bounds>:
2446 Add per_objfile parameter.
2447 (struct mapped_index) <symbol_name_at>: Likewise.
2448 (struct mapped_debug_names): Remove constructor.
2449 <dwarf2_per_objfile>: Remove field.
2450 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2451 (mapped_index_base::find_name_components_bounds,
2452 mapped_index_base::build_name_components,
2453 dw2_expand_symtabs_matching_symbol): Likewise.
2454 (class mock_mapped_index) <symbol_name_at>: Likewise.
2455 (check_match): Likewise.
2456 (check_find_bounds_finds): Likewise.
2457 (test_mapped_index_find_name_component_bounds): Update.
2458 (CHECK_MATCH): Update.
2459 (dw2_expand_symtabs_matching): Update.
2460 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2461 per_objfile parameter.
2462 <find_vec_in_debug_names>: Likewise.
2463 <m_per_objfile>: New field.
2464 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2465 parameter.
2466 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2467 (dw2_debug_names_iterator::next): Update.
2468 (dw2_debug_names_lookup_symbol): Update.
2469 (dw2_debug_names_expand_symtabs_for_function): Update.
2470 (dw2_debug_names_map_matching_symbols): Update.
2471 (dw2_debug_names_expand_symtabs_matching): Update.
2472 (dwarf2_read_debug_names): Update.
2473
7188ed02
SM
24742020-05-27 Simon Marchi <simon.marchi@efficios.com>
2475
2476 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2477 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2478 move to dwarf2_per_objfile.
2479 <read_in_chain>: Remove.
2480 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2481 remove_all_cus, age_comp_units>: New methods.
2482 <m_dwarf2_cus>: New member.
2483 (struct dwarf2_per_cu_data) <cu>: Remove.
2484 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2485 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2486 moved to methods of dwarf2_per_objfile.
2487 (dwarf2_clear_marks): Remove.
2488 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2489 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2490 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2491 (dwarf2_per_objfile::remove_all_cus): New.
2492 (class free_cached_comp_units) <~free_cached_comp_units>:
2493 Update.
2494 (load_cu): Update.
2495 (dw2_do_instantiate_symtab): Adjust.
2496 (fill_in_sig_entry_from_dwo_entry): Adjust.
2497 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2498 (cutu_reader::cutu_reader): Likewise.
2499 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2500 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2501 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2502 and dwarf2_per_objfile::age_comp_units.
2503 (load_partial_comp_unit): Update.
2504 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2505 (process_queue): Likewise.
2506 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2507 backlink.
2508 (dwarf2_read_addr_index): Likewise.
2509 (follow_die_offset): Likewise.
2510 (dwarf2_fetch_die_loc_sect_off): Likewise.
2511 (dwarf2_fetch_constant_bytes): Likewise.
2512 (dwarf2_fetch_die_type_sect_off): Likewise.
2513 (follow_die_sig_1): Likewise.
2514 (load_full_type_unit): Likewise.
2515 (read_signatured_type): Likewise.
2516 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2517 (dwarf2_cu::~dwarf2_cu): Remove.
2518 (dwarf2_per_objfile::get_cu): New.
2519 (dwarf2_per_objfile::set_cu): New.
2520 (age_cached_comp_units): Rename to...
2521 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2522 to std::unordered_map.
2523 (free_one_cached_comp_unit): Rename to...
2524 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2525 to std::unordered_map.
2526 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2527 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2528 a dwarf2_per_objfile in data.
2529 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2530 (dwarf2_clear_marks): Remove.
2531
2e671100
SM
25322020-05-27 Simon Marchi <simon.marchi@efficios.com>
2533
2534 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2535 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2536 (init_tu_and_read_dwo_dies): Likewise.
2537 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2538 (cutu_reader::cutu_reader): Likewise.
2539 (load_partial_comp_unit): Likewise.
2540 (process_psymtab_comp_unit): Update.
2541 (build_type_psymtabs_1): Update.
2542 (process_skeletonless_type_unit): Update.
2543 (load_full_comp_unit): Update.
2544 (find_partial_die): Update.
2545 (dwarf2_read_addr_index): Update.
2546 (read_signatured_type): Update.
2547
2e6a9f79
SM
25482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2549
2550 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2551 m_header_read_in>: New fields.
2552 <get_header>: New method.
2553 * dwarf2/read.c (per_cu_header_read_in): Remove.
2554 (dwarf2_per_cu_data::get_header): New.
2555 (dwarf2_per_cu_data::addr_size): Update.
2556 (dwarf2_per_cu_data::offset_size): Update.
2557 (dwarf2_per_cu_data::ref_addr_size): Update.
2558
1b555f17
SM
25592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2560
2561 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2562 (dw2_do_instantiate_symtab): Update.
2563 (queue_and_load_all_dwo_tus): Change parameter from
2564 dwarf2_per_cu_data to dwarf2_cu.
2565 (dwarf2_fetch_die_loc_sect_off): Update.
2566 (dwarf2_fetch_constant_bytes): Update.
2567 (dwarf2_fetch_die_type_sect_off): Update.
2568
8fc0b21d
SM
25692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2570
2571 * dwarf2/read.c (process_full_comp_unit,
2572 process_full_type_unit): Remove per_cu, per_objfile paramters.
2573 Add dwarf2_cu parameter.
2574 (process_queue): Update.
2575
168c9250
SM
25762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2577
2578 * dwarf2/read.c (create_cu_from_index_list): Replace
2579 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2580 (create_cus_from_index_list): Likewise.
2581 (create_cus_from_index): Likewise.
2582 (create_signatured_type_table_from_index): Likewise.
2583 (create_cus_from_debug_names_list): Likewise.
2584 (create_cus_from_debug_names): Likewise.
2585 (dwarf2_read_gdb_index): Update.
2586 (dwarf2_read_debug_names): Update.
2587
e286671b
TT
25882020-05-27 Tom Tromey <tom@tromey.com>
2589 Simon Marchi <simon.marchi@efficios.com>
2590
2591 * dwarf2/read.h (struct dwarf2_per_objfile)
2592 <get_type_for_signatured_type, set_type_for_signatured_type>:
2593 New methods.
2594 <m_type_map>: New member.
2595 (struct signatured_type) <type>: Remove.
2596 * dwarf2/read.c
2597 (dwarf2_per_objfile::get_type_for_signatured_type,
2598 dwarf2_per_objfile::set_type_for_signatured_type): New.
2599 (get_signatured_type): Use new methods.
2600
8adb8487
TT
26012020-05-27 Tom Tromey <tom@tromey.com>
2602 Simon Marchi <simon.marchi@efficios.com>
2603
2604 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2605 (struct dwarf2_per_objfile) <type_units>: New member.
2606 <get_type_unit_group_unshareable>: New method.
2607 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2608 num_symtabs, symtabs>: Remove; move to
2609 type_unit_group_unshareable.
2610 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2611 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2612 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2613
127bbf4b
SM
26142020-05-27 Simon Marchi <simon.marchi@efficios.com>
2615
2616 * dwarf2/read.h (struct dwarf2_per_cu_data):
2617 <dwarf2_per_objfile>: Remove.
2618 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2619 dwarf2_per_objfile.
2620 (create_signatured_type_table_from_index): Likewise.
2621 (create_signatured_type_table_from_debug_names): Likewise.
2622 (create_debug_type_hash_table): Likewise.
2623 (fill_in_sig_entry_from_dwo_entry): Likewise.
2624 (create_type_unit_group): Likewise.
2625 (read_comp_units_from_section): Likewise.
2626 (create_cus_hash_table): Likewise.
2627
f6e649dd
SM
26282020-05-27 Simon Marchi <simon.marchi@efficios.com>
2629
2630 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2631 dwarf2_per_cu_data::dwarf2_per_objfile.
2632 (compute_compunit_symtab_includes): Likewise.
2633 (dwarf2_cu::start_symtab): Likewise.
2634
aa66c379
SM
26352020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2636
2637 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2638 parameter.
2639 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2640 (read_namespace_alias): Update.
2641 (lookup_die_type): Update.
2642 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2643 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2644 Update.
2645 (disassemble_dwarf_expression): Update.
2646
120ce1b5
SM
26472020-05-27 Simon Marchi <simon.marchi@efficios.com>
2648
2649 * dwarf2/read.h (struct dwarf2_queue_item): Add
2650 dwarf2_per_objfile parameter, assign new parameter.
2651 <per_objfile>: New field.
2652 * dwarf2/read.c (free_one_cached_comp_unit): Add
2653 dwarf2_per_objfile parameter.
2654 (queue_comp_unit): Likewise.
2655 (dw2_do_instantiate_symtab): Update.
2656 (process_psymtab_comp_unit): Update.
2657 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2658 (process_imported_unit_die): Update.
2659 (queue_and_load_dwo_tu): Update.
2660 (follow_die_offset): Update.
2661 (follow_die_sig_1): Update.
2662
9f47c707
SM
26632020-05-27 Simon Marchi <simon.marchi@efficios.com>
2664
2665 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2666 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2667 (read_call_site_scope): Assign per_objfile.
2668 (dwarf2_per_cu_data::objfile): Remove.
2669 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2670 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2671 dwarf2_per_objfile parameter.
2672 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2673 dwarf2_per_objfile parameter.
2674 (dwarf_expr_reg_to_entry_parameter): Add output
2675 dwarf2_per_objfile parameter.
2676 (locexpr_get_frame_base): Update.
2677 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2678 <push_dwarf_reg_entry_value>: Update.
2679 <call_site_to_target_addr>: Update.
2680 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2681 parameter.
2682 (value_of_dwarf_reg_entry): Update.
2683 (rw_pieced_value): Update.
2684 (indirect_synthetic_pointer): Update.
2685 (dwarf2_evaluate_property): Update.
2686 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2687 parameter.
2688 (locexpr_read_variable): Update.
2689 (locexpr_get_symbol_read_needs): Update.
2690 (loclist_read_variable): Update.
2691
14095eb3
SM
26922020-05-27 Simon Marchi <simon.marchi@efficios.com>
2693
2694 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2695 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2696 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2697 parameter.
2698 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2699 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2700 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2701 parameter.
2702 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2703 sect_variable_value): Add dwarf2_per_objfile parameter.
2704 (class dwarf_evaluate_loc_desc) <dwarf_call,
2705 dwarf_variable_value>: Update.
2706 (fetch_const_value_from_synthetic_pointer): Add
2707 dwarf2_per_objfile parameter.
2708 (fetch_const_value_from_synthetic_pointer): Update.
2709 (coerced_pieced_ref): Update.
2710 (class symbol_needs_eval_context) <dwarf_call,
2711 dwarf_variable_value>: Update.
2712 (dwarf2_compile_expr_to_ax): Update.
2713
3c3cd3d4
SM
27142020-05-27 Simon Marchi <simon.marchi@efficios.com>
2715
2716 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2717 parameter.
2718 (dwarf2_evaluate_loc_desc_full): Update.
2719
82ca3f51
SM
27202020-05-27 Simon Marchi <simon.marchi@efficios.com>
2721
2722 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2723 parameter.
2724 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2725 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2726 dwarf2_per_objfile parameter.
2727 (decode_debug_loc_dwo_addresses): Likewise.
2728 (dwarf2_find_location_expression): Update.
2729 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2730 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2731 parameter.
2732 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2733 parameter.
2734 (locexpr_describe_location_1): Likewise.
2735 (locexpr_describe_location): Update.
2736
4b167ea1
SM
27372020-05-27 Simon Marchi <simon.marchi@efficios.com>
2738
2739 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2740 Remove.
2741 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2742 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2743 (dwarf2_compile_property_to_c): Update.
2744 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2745 use text offset from objfile.
2746 (locexpr_tracepoint_var_ref): Update.
2747 (locexpr_generate_c_location): Update.
2748 (loclist_describe_location): Update.
2749 (loclist_tracepoint_var_ref): Update.
2750 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2751 dwarf2_per_objfile parameter.
2752 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2753 use text offset from objfile.
2754 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2755
89b07335
SM
27562020-05-27 Simon Marchi <simon.marchi@efficios.com>
2757
2758 * dwarf2/expr.h (struct dwarf_expr_context)
2759 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2760 <offset>: Remove.
2761 <per_objfile>: New member.
2762 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2763 dwarf2_per_objfile parameter. Don't set offset, set
2764 per_objfile.
2765 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2766 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2767 a dwarf2_per_objfile object instead of an offset.
2768 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2769 constructor.
2770 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2771 to dwarf2_expr_executor constructor. Don't set offset.
2772 (dwarf2_fetch_cfa_info): Update.
2773 (struct dwarf2_frame_cache) <text_offset>: Remove.
2774 <per_objfile>: New field.
2775 (dwarf2_frame_cache): Update.
2776 (dwarf2_frame_prev_register): Update.
2777 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2778 <dwarf_evaluate_loc_desc>: Add constructor.
2779 (dwarf2_evaluate_loc_desc_full): Update.
2780 (dwarf2_locexpr_baton_eval): Update.
2781 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2782 Add constructor.
2783 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2784
293e7e51
SM
27852020-05-27 Simon Marchi <simon.marchi@efficios.com>
2786
2787 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2788 addr_sized_int_type>: Move to dwarf2_cu.
2789 <int_type>: Move to dwarf2_per_objfile.
2790 (struct dwarf2_per_objfile) <int_type>: Move here.
2791 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2792 addr_sized_int_type>: Move here.
2793 (read_func_scope): Update.
2794 (read_array_type): Update.
2795 (read_tag_string_type): Update.
2796 (attr_to_dynamic_prop): Update.
2797 (dwarf2_per_cu_data::int_type): Rename to...
2798 (dwarf2_per_objfile::int_type): ... this.
2799 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2800 (dwarf2_cu::addr_sized_int_type): ... this.
2801 (read_subrange_type): Update.
2802 (dwarf2_per_cu_data::addr_type): Rename to...
2803 (dwarf2_cu::addr_type): ... this.
2804 (set_die_type): Update.
2805
64874a40
SM
28062020-05-27 Simon Marchi <simon.marchi@efficios.com>
2807
2808 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2809 data through per_cu->cu.
2810
4ab09049
SM
28112020-05-27 Simon Marchi <simon.marchi@efficios.com>
2812
2813 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2814 dwarf2_per_cu_data parameter fo dwarf2_cu.
2815 (lookup_dwo_type_unit): Likewise.
2816 (read_cutu_die_from_dwo): Likewise.
2817 (lookup_dwo_unit): Likewise.
2818 (open_and_init_dwo_file): Likewise.
2819 (lookup_dwo_cutu): Likewise.
2820 (lookup_dwo_comp_unit): Likewise.
2821 (lookup_dwo_type_unit): Likewise.
2822 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2823 (cutu_reader::cutu_reader): Update.
2824
47b14e86
SM
28252020-05-27 Simon Marchi <simon.marchi@efficios.com>
2826
2827 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2828 parameter.
2829 (process_full_type_unit): Likewise.
2830 (process_queue): Update.
2831
43182c09
SM
28322020-05-27 Simon Marchi <simon.marchi@efficios.com>
2833
2834 * dwarf2/read.c (recursively_compute_inclusions): Add
2835 dwarf2_per_objfile parameter.
2836 (compute_compunit_symtab_includes): Likewise.
2837 (process_cu_includes): Update.
2838
7aa104c4
SM
28392020-05-27 Simon Marchi <simon.marchi@efficios.com>
2840
2841 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2842 parameter.
2843 (create_type_unit_group): Update.
2844 (process_psymtab_comp_unit_reader): Update.
2845 (build_type_psymtabs_reader): Update.
2846
e3beb21d
SM
28472020-05-27 Simon Marchi <simon.marchi@efficios.com>
2848
2849 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2850 object through m_this_cu->cu.
2851
d460f660
SM
28522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2853
2854 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2855 the info parameter.
2856 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2857
ab432490
SM
28582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2859
2860 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2861 per_objfile parameter.
2862 (load_full_type_unit): Add per_objfile parameter.
2863 (read_signatured_type): Likewise.
2864 (load_full_comp_unit): Likewise.
2865 (load_cu): Likewise.
2866 (dw2_do_instantiate_symtab): Likewise.
2867 (dw2_get_file_names): Likewise.
2868 (dw2_map_symtabs_matching_filename): Update.
2869 (dw_expand_symtabs_matching_file_matcher): Update.
2870 (dw2_map_symbol_filenames): Update.
2871 (process_psymtab_comp_unit): Add per_objfile parameter.
2872 (build_type_psymtabs_1): Update.
2873 (process_skeletonless_type_unit): Update.
2874 (dwarf2_build_psymtabs_hard): Update.
2875 (load_partial_comp_unit): Add per_objfile parameter.
2876 (scan_partial_symbols): Update.
2877 (load_full_comp_unit): Add per_objfile parameter.
2878 (process_imported_unit_die): Update.
2879 (create_cus_hash_table): Update.
2880 (find_partial_die): Update.
2881 (dwarf2_read_addr_index): Update.
2882 (follow_die_offset): Update.
2883 (dwarf2_fetch_die_loc_sect_off): Update.
2884 (dwarf2_fetch_constant_bytes): Update.
2885 (dwarf2_fetch_die_type_sect_off): Update.
2886 (follow_die_sig_1): Update.
2887 (load_full_type_unit): Add per_objfile parameter.
2888 (read_signatured_type): Likewise.
2889
313bad1b
SM
28902020-05-27 Simon Marchi <simon.marchi@efficios.com>
2891
2892 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2893 of objfile_name.
2894
c3699833
SM
28952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2896
2897 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2898 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2899 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2900 field.
2901 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2902 (create_cus_from_index): Update.
2903 (dwarf2_read_gdb_index): Update.
2904 (create_cus_from_debug_names): Update.
2905 (dwarf2_read_debug_names): Update.
2906 (get_abbrev_section_for_cu): Update.
2907 (create_all_comp_units): Update.
2908 (read_attribute_value): Update.
2909 (get_debug_line_section): Update.
2910 * dwarf2/index-cache.c (index_cache::store): Update.
2911 * dwarf2/index-write.c (save_gdb_index_command): Update.
2912 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2913
1859c670
SM
29142020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2915
2916 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
2917 member.
2918 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
2919 dwarf2_per_cu_data::per_bfd.
2920 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
2921 (create_type_unit_group): Likewise.
2922 (queue_comp_unit): Remove reference to
2923 per_cu->dwarf2_per_objfile.
2924 (maybe_queue_comp_unit): Likewise.
2925 (fill_in_sig_entry_from_dwo_entry): Assign new field.
2926 (create_cus_hash_table): Assign new field.
2927
5e22e966
SM
29282020-05-27 Simon Marchi <simon.marchi@efficios.com>
2929
2930 * dwarf2/read.c: Replace
2931 dwarf2_cu->per_cu->dwarf2_per_objfile references with
2932 dwarf2_cu->per_objfile throughout.
2933
97a1449a
SM
29342020-05-27 Simon Marchi <simon.marchi@efficios.com>
2935
2936 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
2937 parameter, don't use per_cu->dwarf2_per_objfile.
2938 (dw2_instantiate_symtab): Likewise.
2939 (dw2_find_last_source_symtab): Update.
2940 (dw2_map_expand_apply): Update.
2941 (dw2_lookup_symbol): Update.
2942 (dw2_expand_symtabs_for_function): Update.
2943 (dw2_expand_all_symtabs): Update.
2944 (dw2_expand_symtabs_with_fullname): Update.
2945 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
2946 don't use per_cu->dwarf2_per_objfile.
2947 (dw2_expand_marked_cus): Update.
2948 (dw2_find_pc_sect_compunit_symtab): Update.
2949 (dw2_debug_names_lookup_symbol): Update.
2950 (dw2_debug_names_expand_symtabs_for_function): Update.
2951 (dw2_debug_names_map_matching_symbols): Update.
2952 (dwarf2_psymtab::expand_psymtab): Update.
2953
9e021579
SM
29542020-05-27 Simon Marchi <simon.marchi@efficios.com>
2955
2956 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
2957 <per_objfile>: New member.
2958 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
2959 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
2960 call to dwarf2_cu.
2961 (cutu_reader::cutu_reader): Update.
2962 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
2963
ae090bdb
SM
29642020-05-27 Simon Marchi <simon.marchi@efficios.com>
2965
2966 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
2967 struct dwarf2_per_objfile.
2968 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
2969 dwarf2_per_bfd.
2970 * dwarf2/read.c (set_die_type): Update.
2971 (get_die_type_at_offset): Update.
2972
af758d11
SM
29732020-05-27 Tom Tromey <tom@tromey.com>
2974 Simon Marchi <simon.marchi@efficios.com>
2975
2976 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
2977 method.
2978 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
2979 get_symtab, set_symtab>: New methods.
2980 <m_symtabs>: New field.
2981 (struct dwarf2_psymtab): Derive from partial_symtab.
2982 <readin_p, get_compunit_symtab>: Declare methods.
2983 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
2984 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
2985 New methods.
2986 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
2987 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
2988 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
2989 (dw2_symtab_iter_next, dw2_print_stats)
2990 (dw2_expand_symtabs_with_fullname)
2991 (dw2_expand_symtabs_matching_one)
2992 (dw_expand_symtabs_matching_file_matcher)
2993 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
2994 (dw2_debug_names_iterator::next)
2995 (dw2_debug_names_map_matching_symbols)
2996 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
2997 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
2998 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
2999 New methods.
3000 (get_compunit_symtab, process_full_comp_unit)
3001 (process_full_type_unit): Update.
3002 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3003
5989a64e
SM
30042020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3005
3006 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3007 then introduce a new dwarf2_per_objfile type.
3008 <read_line_string>: Move to the new dwarf2_per_objfile type.
3009 <objfile>: Likewise.
3010 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3011 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3012 dwarf2_per_objfile->per_bfd.
3013 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3014 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3015 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3016 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3017 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3018 (dwarf2_per_objfile::locate_sections): Rename to...
3019 (dwarf2_per_bfd::locate_sections): ... this.
3020 (dwarf2_per_objfile::get_cutu): Rename to...
3021 (dwarf2_per_bfd::get_cutu): ... this.
3022 (dwarf2_per_objfile::get_cu): Rename to...
3023 (dwarf2_per_bfd::get_cu): ... this.
3024 (dwarf2_per_objfile::get_tu): Rename to...
3025 (dwarf2_per_bfd::get_tu): ... this.
3026 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3027 (dwarf2_per_bfd::allocate_per_cu): ... this.
3028 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3029 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3030 (get_gdb_index_contents_ftype): Change parameter from
3031 dwarf2_per_objfile to dwarf2_per_bfd.
3032 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3033 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3034
a50264ba
TT
30352020-05-27 Tom Tromey <tom@tromey.com>
3036 Simon Marchi <simon.marchi@efficios.com>
3037
3038 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3039 (allocate_piece_closure): Set "per_objfile" member.
3040 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3041 (locexpr_describe_location, loclist_describe_location): Use new
3042 member.
3043 * dwarf2/read.c (read_call_site_scope)
3044 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3045 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3046 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3047 handle_data_member_location): Set per_objfile member.
3048 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3049 member.
3050 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3051
d3473f0c
TT
30522020-05-27 Tom Tromey <tom@tromey.com>
3053
3054 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3055 allocate_signatured_type>: Declare new methods.
3056 <m_num_psymtabs>: New member.
3057 (struct dwarf2_per_cu_data) <index>: New member.
3058 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3059 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3060 (create_cu_from_index_list): Use allocate_per_cu.
3061 (create_signatured_type_table_from_index)
3062 (create_signatured_type_table_from_debug_names)
3063 (create_debug_type_hash_table, add_type_unit)
3064 (read_comp_units_from_section): Use allocate_signatured_type.
3065
5717c425
TT
30662020-05-27 Tom Tromey <tom@tromey.com>
3067
3068 * psymtab.c (partial_map_expand_apply)
3069 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3070 (psym_lookup_global_symbol_language)
3071 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3072 (psym_print_stats, psym_expand_symtabs_for_function)
3073 (psym_map_symbol_filenames, psym_map_matching_symbols)
3074 (psym_expand_symtabs_matching)
3075 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3076 (maintenance_check_psymtabs): Update.
3077 * psympriv.h (struct partial_symtab) <readin_p,
3078 get_compunit_symtab>: Add objfile parameter.
3079 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3080 Likewise.
3081 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3082 get_compunit_symtab>: Likewise.
3083 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3084
45940949
TT
30852020-05-27 Tom Tromey <tom@tromey.com>
3086
3087 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3088 member.
3089 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3090 (create_cu_from_index_list)
3091 (create_signatured_type_table_from_index)
3092 (create_signatured_type_table_from_debug_names)
3093 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3094 (dwarf2_create_include_psymtab)
3095 (create_debug_type_hash_table, add_type_unit)
3096 (create_type_unit_group, read_comp_units_from_section)
3097 (dwarf2_compute_name, create_cus_hash_table)
3098 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3099 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3100 obstack.
3101 (dw2_get_real_path): Likewise. Change argument to
3102 dwarf2_per_objfile.
3103
f8c6d152
LM
31042020-05-27 Luis Machado <luis.machado@linaro.org>
3105
3106 PR tdep/26000
3107 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3108 for ldrd (immediate).
3109
e98d2e6d
PW
31102020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3111
3112 * command.h: Add comment giving the name of class_tui.
3113 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3114 create the fake command for the help for class_tui.
3115
53a47a3e
TT
31162020-05-26 Tom Tromey <tromey@adacore.com>
3117
3118 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3119 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3120 (val_atr): New function.
3121 (value_val_atr): Use it.
3122 * ada-valprint.c (print_optional_low_bound): Change low bound
3123 handling for enums.
3124 (val_print_packed_array_elements): Don't call discrete_position.
3125 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3126 discrete_position for enum types.
3127 * language.c (default_print_array_index): Change type.
3128 * language.h (struct language_defn) <la_print_array_index>: Add
3129 index_type parameter, change type of index_value.
3130 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3131 (default_print_array_index): Update.
3132 * valprint.c (maybe_print_array_index): Don't call
3133 value_from_longest. Update.
3134 (value_print_array_elements): Don't call discrete_position.
3135
0bc2354b
TT
31362020-05-26 Tom Tromey <tromey@adacore.com>
3137
3138 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3139 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3140
1218a4bf
CDA
31412020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3142
3143 PR gdb/13519
3144 * avr-tdep.c (avr_integer_to_address): Return data or code
3145 address accordingly to the second 'type' argument of the
3146 function.
3147
92651b1d
MW
31482020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3149
3150 * infcmd.c, inferior.h: (construct_inferior_arguments):
3151 Moved function from here to gdbsupport/common-inferior.{h,cc}
3152
0a4f5f8c
TT
31532020-05-23 Tom Tromey <tom@tromey.com>
3154
3155 Revert commit eca1f90c:
3156 * NEWS: Remove entry for completion styling.
3157 * completer.c (_rl_completion_prefix_display_length): Move
3158 declaration later.
3159 (gdb_fnprint): Revert.
3160 (gdb_display_match_list_1): Likewise.
3161 * cli/cli-style.c (completion_prefix_style)
3162 (completion_difference_style, completion_suffix_style): Remove.
3163 (_initialize_cli_style): Revert.
3164 * cli/cli-style.h (completion_prefix_style)
3165 (completion_difference_style, completion_suffix_style): Don't
3166 declare.
3167
e08bd6c5
PA
31682020-05-24 Pedro Alves <palves@redhat.com>
3169
3170 * symtab.c (completion_list_add_name): Return boolean indication
3171 of whether the symbol matched.
3172 (completion_list_add_symbol): Don't try to remove C++ aliases if
3173 the symbol didn't match in the first place.
3174 * symtab.h (completion_list_add_name): Return bool.
3175
ceacbf6e
SM
31762020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3177
3178 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3179 type::field.
3180
26f16254
JB
31812020-05-23 Joel Brobecker <brobecker@adacore.com>
3182
3183 GDB 9.2 released.
3184
eca1f90c
TT
31852020-05-23 Tom Tromey <tom@tromey.com>
3186
3187 * NEWS: Add entry for completion styling.
3188 * completer.c (_rl_completion_prefix_display_length): Move
3189 declaration earlier.
3190 (gdb_fnprint): Use completion_style.
3191 (gdb_display_match_list_1): Likewise.
3192 * cli/cli-style.c (completion_prefix_style)
3193 (completion_difference_style, completion_suffix_style): New
3194 globals.
3195 (_initialize_cli_style): Register new globals.
3196 * cli/cli-style.h (completion_prefix_style)
3197 (completion_difference_style, completion_suffix_style): Declare.
3198
51e2cfa2
PA
31992020-05-23 Pedro Alves <palves@redhat.com>
3200
3201 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3202 (parse_escape): Use ISDIGIT instead of isdigit.
3203 (puts_debug): Use gdb_isprint instead of isprint.
3204 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3205 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3206 ISSPACE instead of isspace.
3207 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3208 instead of isspace.
3209 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3210 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3211 instead of isxdigit and ISDIGIT instead of isdigit.
3212
80fc5e77
SM
32132020-05-22 Simon Marchi <simon.marchi@efficios.com>
3214
3215 * gdbtypes.h (struct type) <field>: New method.
3216 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3217 or type::field.
3218
3cabb6b0
SM
32192020-05-22 Simon Marchi <simon.marchi@efficios.com>
3220
3221 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3222 (TYPE_FIELDS): Use type::fields. Change all call sites that
3223 modify the propery to use type::set_fields instead.
3224
1f704f76
SM
32252020-05-22 Simon Marchi <simon.marchi@efficios.com>
3226
3227 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3228 type::num_fields instead.
3229
5e33d5f4
SM
32302020-05-22 Simon Marchi <simon.marchi@efficios.com>
3231
3232 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3233 methods.
3234 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3235 that modify the number of fields to use type::set_num_fields
3236 instead.
3237
9392ebb3
TT
32382020-05-22 Tom Tromey <tromey@adacore.com>
3239
3240 * compile/compile-object-load.h (munmap_list_free): Don't
3241 declare.
3242
7c13f4e8
AB
32432020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3244
3245 * annotate.c (annotate_source_line): Update return type, add call
3246 to update current symtab and line.
3247 * annotate.h (annotate_source_line): Update return type, and
3248 extend header comment.
3249 * source.c (info_line_command): Check annotation_level before
3250 calling annotate_source_line.
3251 * stack.c (print_frame_info): If calling annotate_source_line
3252 returns true, then don't print any other source line information.
3253
aa370940
SM
32542020-05-21 Simon Marchi <simon.marchi@efficios.com>
3255
3256 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3257
84d53fa9
SM
32582020-05-21 Simon Marchi <simon.marchi@efficios.com>
3259
3260 * coffread.c (patch_type): Remove NULL check before xfree.
3261 * corefile.c (set_gnutarget): Likewise.
3262 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3263 * exec.c (build_section_table): Likewise.
3264 * remote.c (remote_target::pass_signals): Likewise.
3265 * utils.c (n_spaces): Likewise.
3266 * cli/cli-script.c (document_command): Likewise.
3267 * i386-windows-tdep.c (core_process_module_section): Likewise.
3268 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3269
9d428aae
SM
32702020-05-20 Simon Marchi <simon.marchi@efficios.com>
3271
3272 * symfile.c (reread_symbols): Clear objfile's section_offsets
3273 vector and section indices, re-compute them by calling
3274 sym_offsets.
3275
250106a7
TT
32762020-05-20 Tom Tromey <tromey@adacore.com>
3277
3278 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3279 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3280
9a0bacfb
TV
32812020-05-20 Tom de Vries <tdevries@suse.de>
3282
3283 PR symtab/25833
3284 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3285
7b958a48
AM
32862020-05-20 Alan Modra <amodra@gmail.com>
3287
3288 PR 25993
3289 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3290 bfd_set_filename.
3291 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3292 passed to bfd_set_filename.
3293 * symfile-mem.c (add_vsyscall_page): Likewise for string
3294 passed to symbol_file_add_from_memory.
3295 (symbol_file_add_from_memory): Make name param a const char* and
3296 don't strdup.
3297
c7e97679
AM
32982020-05-20 Alan Modra <amodra@gmail.com>
3299
3300 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3301 rather than accessing bfd->filename directly.
3302 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3303 and use bfd_section_name.
3304 * dwarf2/frame.c (decode_frame_entry): Likewise.
3305 * exec.c (exec_set_section_address): Likewise.
3306 * solib-aix.c (solib_aix_bfd_open): Likewise.
3307 * stap-probe.c (get_stap_base_address): Likewise.
3308 * symfile.c (reread_symbols): Likewise.
3309
563c591b
TT
33102020-05-19 Tom Tromey <tromey@adacore.com>
3311
3312 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3313
f408d82c
SM
33142020-05-19 Simon Marchi <simon.marchi@efficios.com>
3315
3316 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3317
98c59b52
PA
33182020-05-19 Pedro Alves <palves@redhat.com>
3319
3320 * NEWS (set exec-file-mismatch): Adjust entry.
3321 * exec.c: Include "build-id.h".
3322 (validate_exec_file): Try to match build IDs instead of filenames.
3323 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3324 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3325 and pass down 'warn_if_slow'.
3326 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3327 gdb_bfd_open_closure to pass it down.
3328 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3329
4111f652
PA
33302020-05-19 Pedro Alves <palves@redhat.com>
3331
3332 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3333 * target.c (target_fileio_open_1): Rename to target_fileio_open
3334 and make extern. Use bool.
3335 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3336 (target_fileio_read_alloc_1): Adjust.
3337 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3338 (target_fileio_open_warn_if_slow): Delete declaration.
3339
ad80db5b
PA
33402020-05-19 Pedro Alves <palves@redhat.com>
3341
3342 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3343 Adjust all callers.
3344
1d6ce4d3
YS
33452020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3346
3347 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3348 whether disp is negative.
3349
9005fbbb
SM
33502020-05-19 Simon Marchi <simon.marchi@efficios.com>
3351
3352 * symfile.h (struct symfile_segment_data)
3353 <~symfile_segment_data>: Remove.
3354 <segment_info>: Change to std::vector.
3355 * symfile.c (default_symfile_segments): Update.
3356 * elfread.c (elf_symfile_segments): Update.
3357
68b888ff
SM
33582020-05-19 Simon Marchi <simon.marchi@efficios.com>
3359
3360 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3361 <segments>: New.
3362 <segment_bases, segment_sizes>: Remove.
3363 * symfile.c (default_symfile_segments): Update.
3364 * elfread.c (elf_symfile_segments): Update.
3365 * remote.c (remote_target::get_offsets): Update.
3366 * solib-target.c (solib_target_relocate_section_addresses):
3367 Update.
3368
62982abd
SM
33692020-05-19 Simon Marchi <simon.marchi@efficios.com>
3370
3371 * symfile.h (struct symfile_segment_data): Initialize fields.
3372 <~symfile_segment_data>: Add.
3373 (symfile_segment_data_up): New.
3374 (struct sym_fns) <sym_segments>: Return a
3375 symfile_segment_data_up.
3376 (default_symfile_segments): Return a symfile_segment_data_up.
3377 (free_symfile_segment_data): Remove.
3378 (get_symfile_segment_data): Return a symfile_segment_data_up.
3379 * symfile.c (default_symfile_segments): Likewise.
3380 (get_symfile_segment_data): Likewise.
3381 (free_symfile_segment_data): Remove.
3382 (symfile_find_segment_sections): Update.
3383 * elfread.c (elf_symfile_segments): Return a
3384 symfile_segment_data_up.
3385 * remote.c (remote_target::get_offsets): Update.
3386 * solib-target.c (solib_target_relocate_section_addresses):
3387 Update.
3388 * symfile-debug.c (debug_sym_segments): Return a
3389 symfile_segment_data_up.
3390
7f204339
RO
33912020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3392
e52a0f1b
RO
3393 PR build/25981
3394 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3395 Hardcode register numbers.
3396
7f204339
RO
3397 PR build/25981
3398 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3399 procfs_find_LDT_entry): Remove.
3400 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3401 procfs_find_LDT_entry): Remove.
3402 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3403 Remove.
3404
7f32a4d5
PA
34052020-05-17 Pedro Alves <palves@redhat.com>
3406 Andrew Burgess <andrew.burgess@embecosm.com>
3407 Keno Fischer <keno@juliacomputing.com>
3408
3409 PR gdb/25741
3410 * breakpoint.c (build_target_condition_list): Update comments.
3411 (build_target_command_list): Update comments and skip matching
3412 locations.
3413 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3414 a separate function. Simplify "set breakpoint auto-hw off"
3415 handling.
3416 (insert_breakpoints): Update comment.
3417 (tracepoint_locations_match): New parameter. For breakpoints,
3418 compare location types too, if the caller wants to.
3419 (handle_automatic_hardware_breakpoints): New functions.
3420 (bp_location_is_less_than): Also sort by location type and
3421 hardware breakpoint length.
3422 (update_global_location_list): Handle "set breakpoint auto-hw on"
3423 here.
3424 (update_breakpoint_locations): Ask breakpoint_locations_match to
3425 ignore location types.
3426
7d93a1e0
SM
34272020-05-16 Simon Marchi <simon.marchi@efficios.com>
3428
3429 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3430 type::name instead.
3431
d0e39ea2
SM
34322020-05-16 Simon Marchi <simon.marchi@efficios.com>
3433
3434 * gdbtypes.h (struct type) <name, set_name>: New methods.
3435 (TYPE_CODE): Use type::name. Change all call sites used to set
3436 the name to use type::set_name instead.
3437
2dab0c7b
TT
34382020-05-16 Tom Tromey <tom@tromey.com>
3439
3440 * top.c (quit_force): Update.
3441 * infrun.c (handle_no_resumed): Update.
3442 * top.h (all_uis): New function.
3443 (ALL_UIS): Remove.
3444
59f7bd8d
SM
34452020-05-16 Simon Marchi <simon.marchi@efficios.com>
3446
3447 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3448
9bf058f0
PA
34492020-05-16 Pedro Alves <palves@redhat.com>
3450
3451 * ia64-linux-nat.c
3452 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3453 Declare method.
3454 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3455
8f86ae1a
SM
34562020-05-15 Simon Marchi <simon.marchi@efficios.com>
3457
3458 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3459 (sparc64_adi_info): Likewise.
3460
d6bc0792
TT
34612020-05-15 Tom Tromey <tom@tromey.com>
3462
3463 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3464 block_objfile.
3465 (lookup_objfile_from_block): Remove.
3466 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3467 (lookup_global_symbol): Use block_objfile.
3468 * symtab.h (lookup_objfile_from_block): Don't declare.
3469 * printcmd.c (clear_dangling_display_expressions): Use
3470 block_objfile.
3471 * parse.c (operator_check_standard): Use block_objfile.
3472
8c14c3a3
TT
34732020-05-15 Tom Tromey <tom@tromey.com>
3474
3475 * language.c (language_alloc_type_symbol): Set
3476 SYMBOL_SECTION.
3477 * symtab.c (initialize_objfile_symbol): Remove.
3478 (allocate_symbol): Remove.
3479 (allocate_template_symbol): Remove.
3480 * dwarf2/read.c (fixup_go_packaging): Use "new".
3481 (new_symbol): Use "new".
3482 (read_variable): Don't call initialize_objfile_symbol. Use
3483 "new".
3484 (read_func_scope): Use "new".
3485 * xcoffread.c (process_xcoff_symbol): Don't call
3486 initialize_objfile_symbol.
3487 (SYMBOL_DUP): Remove.
3488 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3489 "new".
3490 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3491 (allocate_template_symbol): Don't declare.
3492 (struct symbol): Add copy constructor. Change defaults.
3493 * jit.c (finalize_symtab): Use "new".
3494 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3495 Use "new".
3496 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3497 (common_block_end): Use "new".
3498 * mdebugread.c (parse_symbol): Use "new".
3499 (new_symbol): Likewise.
3500
5b4a1a8d
PW
35012020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3502
3503 * NEWS: Mention changes to help and apropos.
3504
57b4f16e
PW
35052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3506
3507 * command.h (enum command_class): Improve comments, document
3508 that class_alias is for user-defined aliases, give the class
3509 name for each class, remove unused class_xdb.
3510 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3511 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3512 by a precise class.
3513 * infcmd.c (_initialize_infcmd): Likewise.
3514 * reverse.c (_initialize_reverse): Likewise.
3515 * stack.c (_initialize_stack): Likewise.
3516 * symfile.c (_initialize_symfile): Likewise.
3517 * tracepoint.c (_initialize_tracepoint): Likewise.
3518
7c05caf7
PW
35192020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3520
3521 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3522 when their aliased command is traversed.
3523 (help_cmd): Add fput_command_names_styled call to
3524 output command name and aliases when command has an alias.
3525
3b3aaacb
PW
35262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3527
3528 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3529 * cli/cli-decode.c (help_cmd_list): Declare as static,
3530 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3531 a command together with the command.
3532 (fput_command_name_styled, fput_command_names_styled): New functions.
3533 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3534 fput_command_name_styled.
3535 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3536 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3537
7aa1b46f
PW
35382020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3539
3540 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3541 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3542 * command.h (cmd_show_list): Likewise.
3543 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3544 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3545
89bcba74
PW
35462020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3547
3548 * unittests/command-def-selftests.c (traverse_command_structure):
3549 Verify all commands of a list have the same prefix command and
3550 that only the top cmdlist commands have a null prefix.
3551
3f4d92eb
PW
35522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3553
3554 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3555 as prefix, not one of its aliases.
3556 (set_cmd_prefix): Remove.
3557 (do_add_cmd): Centralize the setting of the prefix of a command, when
3558 command is defined after its full chain of prefix commands.
3559 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3560 (add_setshow_cmd_full): Likewise.
3561 (update_prefix_field_of_prefixed_commands): New function.
3562 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3563 update_prefix_field_of_prefixed_commands.
3564 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3565 addresses of remote_set_cmdlist and remote_show_cmdlist given
3566 as argument, not the address of an argument.
3567 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3568 * gdb/remote.c (_initialize_remote): Likewise.
3569
0605465f
PW
35702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3571
3572 * cli/cli-cmds.c (alias_command): Check for an existing alias
3573 using lookup_cmd_composition, as valid_command_p is too strict
3574 and forbids aliases that are the prefix of an existing alias
3575 or command.
3576 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3577 command is properly recognised as a valid command.
3578
58e6ac70
PW
35792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3580
3581 * unittests/help-doc-selftests.c: Rename to
3582 unittests/command-def-selftests.c
3583 * unittests/command-def-selftests.c (help_doc_tests): Update some
3584 comments.
3585 (command_structure_tests, traverse_command_structure): New namespace
3586 and function.
3587 (command_structure_invariants_tests): New function.
3588 (_initialize_command_def_selftests) Renamed from
3589 _initialize_help_doc_selftests, register command_structure_invariants
3590 selftest.
3591
a7b9ceb8
PW
35922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3593
3594 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3595 an alias of 'show'.
3596
b2188a06
JB
35972020-05-15 Joel Brobecker <brobecker@adacore.com>
3598
3599 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3600 ada_is_fixed_point_type. Update all callers.
3601 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3602 all callers.
3603 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3604 Update all callers.
3605 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3606 print_fixed_point_type. Update all callers.
3607 * ada-valprint.c (ada_value_print_num): Replace call to
3608 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3609
a51951c2
KB
36102020-05-14 Kevin Buettner <kevinb@redhat.com>
3611
3612 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3613 processors.
3614 (cpu_supports_bts): Add CV_AMD case.
3615
29d6859f
LM
36162020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3617 Simon Marchi <simon.marchi@efficios.com>
3618
3619 * infrun.c (stop_all_threads): Collect multiple wait events at
3620 each pass.
3621
78134374
SM
36222020-05-14 Simon Marchi <simon.marchi@efficios.com>
3623
3624 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3625 type::code instead.
3626
67607e24
SM
36272020-05-14 Simon Marchi <simon.marchi@efficios.com>
3628
3629 * gdbtypes.h (struct type) <code, set_code>: New methods.
3630 (TYPE_CODE): Use type::code. Change all call sites used to set
3631 the code to use type::set_code instead.
3632
a05575d3
TBA
36332020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3634 Tom de Vries <tdevries@suse.de>
3635 Pedro Alves <palves@redhat.com>
3636
3637 PR threads/25478
3638 * infrun.c (stop_all_threads): Do NOT ignore
3639 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3640 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3641 received.
3642 (handle_no_resumed): Remove code handling a live inferior with no
3643 threads.
3644 * remote.c (has_single_non_exited_thread): New.
3645 (remote_target::update_thread_list): Do not delete a thread if is
3646 the last thread of the process.
3647 * thread.c (thread_select): Call delete_exited_threads instead of
3648 prune_threads.
3649
6ad82919
TBA
36502020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3651
3652 * infrun.c (stop_all_threads): Enable/disable thread events of all
3653 targets. Move a debug message denoting the end of the function
3654 into the SCOPED_EXIT block.
3655
d890404b
TBA
36562020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3657
3658 * process-stratum-target.h: Include <set>.
3659 (all_non_exited_process_targets, switch_to_target_no_thread): New
3660 function declarations.
3661 * process-stratum-target.c (all_non_exited_process_targets)
3662 (switch_to_target_no_thread): New function implementations.
3663
293b3ebc
TBA
36642020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3665
3666 * infrun.c (handle_inferior_event): Extract out a piece of code
3667 into...
3668 (mark_non_executing_threads): ...this new function.
3669
7ca9b62a
TBA
36702020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3671
3672 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3673 use.
3674
fc75c28b
TBA
36752020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3676
3677 * regcache.c (regcache_read_pc_protected): New function
3678 implementation that returns 0 if the PC cannot read via
3679 'regcache_read_pc'.
3680 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3681 instead of 'regcache_read_pc'.
3682 (keep_going_pass_signal): Ditto.
3683
a89febbd
TT
36842020-05-13 Tom Tromey <tromey@adacore.com>
3685
3686 * ada-lang.c (align_value): Remove.
3687 (ada_template_to_fixed_record_type_1): Use align_up.
3688
f7e23710
TBA
36892020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3690
3691 * async-event.c: Update the copyright year.
3692 * async-event.h: Update the copyright year.
3693
02ff80c2
SM
36942020-05-12 Simon Marchi <simon.marchi@efficios.com>
3695
3696 * objfiles.h (is_addr_in_objfile,
3697 shared_objfile_contains_address_p): Return bool.
3698 * objfile.c (is_addr_in_objfile,
3699 shared_objfile_contains_address_p): Return bool.
3700
4fd6c7e8
TT
37012020-05-11 Tom Tromey <tromey@adacore.com>
3702
3703 * cli/cli-cmds.c (info_command): Restore.
3704 (_initialize_cli_cmds): Use add_prefix_command for "info".
3705 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3706
5eb68a39
TT
37072020-05-11 Tom Tromey <tromey@adacore.com>
3708
3709 * ada-lang.c (ada_value_primitive_field): Now public.
3710 * ada-lang.h (ada_value_primitive_field): Declare.
3711 * ada-valprint.c (print_field_values): Use
3712 ada_value_primitive_field for wrapper fields.
3713
7666722f
TV
37142020-05-11 Tom de Vries <tdevries@suse.de>
3715
3716 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3717 MODULE_DOMAIN.
3718
3ee6bb11
TV
37192020-05-11 Tom de Vries <tdevries@suse.de>
3720
3721 PR symtab/25941
3722 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3723 with length 0, if not gdb-produced.
3724 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3725
43434996
TV
37262020-05-09 Tom de Vries <tdevries@suse.de>
3727
3728 PR gdb/25955
3729 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3730 calculation.
3731
2f78cffc
TT
37322020-05-09 Tom Tromey <tom@tromey.com>
3733
3734 * top.c (server_command): Now bool.
3735 * top.h (server_command): Now bool.
3736
4f7bc5ed
TT
37372020-05-08 Tom Tromey <tromey@adacore.com>
3738
3739 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3740 already being processed.
3741
8be4b118
TT
37422020-05-08 Tom Tromey <tom@tromey.com>
3743
3744 * printcmd.c (struct display) <next>: Remove.
3745 <display>: New constructor.
3746 <exp_string>: Now a std::string.
3747 <enabled_p>: Now a bool.
3748 (display_number): Move definition earlier.
3749 (displays): Rename from display_chain. Now a std::vector.
3750 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3751 (display_command): Update.
3752 (do_one_display, disable_display)
3753 (enable_disable_display_command, do_enable_disable_display):
3754 Update.
3755 (free_display): Remove.
3756 (clear_displays): Rewrite.
3757 (delete_display): Update.
3758 (map_display_numbers): Use function_view. Remove "data"
3759 parameter. Update.
3760 (do_delete_display): Remove.
3761 (undisplay_command): Update.
3762 (do_one_display, do_displays, disable_display)
3763 (info_display_command): Update.
3764 (do_enable_disable_display): Remove.
3765 (enable_disable_display_command)
3766 (clear_dangling_display_expressions): Update.
3767
94c93c35
TT
37682020-05-08 Tom Tromey <tom@tromey.com>
3769
3770 * symtab.c (set_symbol_cache_size)
3771 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3772 (maintenance_print_symbol_cache_statistics): Update.
3773 * symmisc.c (print_symbol_bcache_statistics)
3774 (print_objfile_statistics, maintenance_print_objfiles)
3775 (maintenance_info_symtabs, maintenance_check_symtabs)
3776 (maintenance_expand_symtabs, maintenance_info_line_tables):
3777 Update.
3778 * symfile-debug.c (set_debug_symfile): Update.
3779 * source.c (forget_cached_source_info): Update.
3780 * python/python.c (gdbpy_progspaces): Update.
3781 * psymtab.c (maintenance_info_psymtabs): Update.
3782 * probe.c (parse_probes): Update.
3783 * linespec.c (iterate_over_all_matching_symtabs)
3784 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3785 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3786 * exec.c (exec_target::close): Update.
3787 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3788 * breakpoint.c (print_one_breakpoint_location)
3789 (create_longjmp_master_breakpoint)
3790 (create_std_terminate_master_breakpoint): Update.
3791 * progspace.c (program_spaces): Now a std::vector.
3792 (maybe_new_address_space): Update.
3793 (add_program_space): Remove.
3794 (program_space::program_space): Update.
3795 (remove_program_space): Update.
3796 (number_of_program_spaces): Remove.
3797 (print_program_space, update_address_spaces): Update.
3798 * progspace.h (program_spaces): Change type.
3799 (ALL_PSPACES): Remove.
3800 (number_of_program_spaces): Don't declare.
3801 (struct program_space) <next>: Remove.
3802
a1fd1ac9
TT
38032020-05-08 Tom Tromey <tom@tromey.com>
3804
3805 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3806 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3807 (enable_break): Update.
3808 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3809 (frv_fdpic_find_canonical_descriptor): Update.
3810 (frv_fetch_objfile_link_map): Update.
3811 * progspace.c (program_space::free_all_objfiles): Update.
3812 (program_space::solibs): New method.
3813 * progspace.h (struct program_space) <solibs>: New method.
3814 * solist.h (master_so_list): Don't declare.
3815 (ALL_SO_LIBS): Remove.
3816 * solib.h (so_list_head): Remove.
3817 (update_solib_list): Update comment.
3818 * solib.c (master_so_list): Remove.
3819 (solib_used, update_solib_list, solib_add)
3820 (info_sharedlibrary_command, clear_solib)
3821 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3822
38eae084
TT
38232020-05-08 Tom Tromey <tom@tromey.com>
3824
3825 * extension.c (extension_languages): Now a std::array.
3826 (ALL_EXTENSION_LANGUAGES): Remove.
3827 (get_ext_lang_defn, get_ext_lang_of_file)
3828 (eval_ext_lang_from_control_command): Update.
3829 (finish_ext_lang_initialization)
3830 (auto_load_ext_lang_scripts_for_objfile)
3831 (ext_lang_type_printers::ext_lang_type_printers)
3832 (apply_ext_lang_type_printers)
3833 (ext_lang_type_printers::~ext_lang_type_printers)
3834 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3835 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3836 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3837 (get_matching_xmethod_workers, ext_lang_colorize)
3838 (ext_lang_before_prompt): Update.
3839 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3840
596dc4ad
TT
38412020-05-08 Tom Tromey <tom@tromey.com>
3842
3843 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3844 overload.
3845 <swap_string, m_string>: Remove.
3846 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3847 Update.
3848 * stabsread.c (define_symbol, read_type): Update.
3849 * linespec.c (find_linespec_symbols): Update.
3850 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3851 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3852 * dbxread.c (read_dbx_symtab): Update.
3853 * cp-support.h (cp_canonicalize_string_full)
3854 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3855 Return unique_xmalloc_ptr.
3856 * cp-support.c (inspect_type): Update.
3857 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3858 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3859 Likewise.
3860 * c-typeprint.c (print_name_maybe_canonical): Update.
3861 * break-catch-throw.c (check_status_exception_catchpoint):
3862 Update.
3863
bf4cb9be
TV
38642020-05-08 Tom de Vries <tdevries@suse.de>
3865
3866 * infrun.c (follow_fork): Copy current_line and current_symtab to
3867 child thread.
3868
a1b68f28
SM
38692020-05-07 Simon Marchi <simon.marchi@efficios.com>
3870
3871 * async-event.c (struct async_signal_handler, struct
3872 async_event_handler): Reformat, remove typedef.
3873
98d48915
SM
38742020-05-07 Simon Marchi <simon.marchi@efficios.com>
3875
3876 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3877 access thistype->main_type->dyn_prop_list directly.
3878
7aa91313
SM
38792020-05-07 Simon Marchi <simon.marchi@efficios.com>
3880
3881 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3882 (remove_dyn_prop): Remove. Update all users to use
3883 type::remove_dyn_prop.
3884 * gdbtypes.c (remove_dyn_prop): Rename to...
3885 (type::remove_dyn_prop): ... this.
3886
5c54719c
SM
38872020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3888
3889 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3890 (add_dyn_prop): Remove. Update all users to use
3891 type::add_dyn_prop.
3892 * gdbtypes.c (add_dyn_prop): Rename to...
3893 (type::add_dyn_prop): ... this.
3894
24e99c6c
SM
38952020-05-07 Simon Marchi <simon.marchi@efficios.com>
3896
3897 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3898 (get_dyn_prop): Remove. Update all users to use
3899 type::dyn_prop.
3900 * gdbtypes.c (get_dyn_prop): Rename to...
3901 (type::dyn_prop): ... this.
3902
0d4bf016
SM
39032020-05-06 Simon Marchi <simon.marchi@efficios.com>
3904
3905 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3906
ac4a4f1c
SM
39072020-05-06 Simon Marchi <simon.marchi@efficios.com>
3908
3909 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3910 instruction, skip it if it's there.
3911
a3bbacc1
SM
39122020-05-05 Simon Marchi <simon.marchi@efficios.com>
3913
3914 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
3915
c3236f84
SM
39162020-05-04 Simon Marchi <simon.marchi@efficios.com>
3917
3918 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
3919 * gdbtypes.c (recursive_dump_type): Remove use of
3920 TYPE_INCOMPLETE.
3921
3b6acaee
TT
39222020-05-03 Tom Tromey <tom@tromey.com>
3923
3924 * breakpoint.c (catch_command, tcatch_command): Remove.
3925 (_initialize_breakpoint): Use add_basic_prefix_cmd,
3926 add_show_prefix_cmd.
3927 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
3928 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3929 Remove.
3930 (add_internal_problem_command): Use add_basic_prefix_cmd,
3931 add_show_prefix_cmd.
3932 * mips-tdep.c (set_mipsfpu_command): Remove.
3933 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
3934 * dwarf2/index-cache.c (set_index_cache_command): Remove.
3935 (_initialize_index_cache): Use add_basic_prefix_cmd.
3936 * memattr.c (dummy_cmd): Remove.
3937 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
3938 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
3939 (_initialize_tui_win): Use add_basic_prefix_cmd,
3940 add_show_prefix_cmd.
3941 * cli/cli-logging.c (set_logging_command): Remove.
3942 (_initialize_cli_logging): Use add_basic_prefix_cmd,
3943 add_show_prefix_cmd.
3944 (show_logging_command): Remove.
3945 * target.c (target_command): Remove.
3946 (add_target): Use add_basic_prefix_cmd.
3947
a51119cd
HD
39482020-05-02 Hannes Domani <ssbssa@yahoo.de>
3949
3950 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
3951
652fc23a 39522020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3953
652fc23a
PW
3954 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
3955 info_command.
3956
117539e6
KR
39572020-04-30 Kamil Rytarowski <n54@gmx.com>
3958
3959 * nbsd-nat.c (nbsd_enable_proc_events)
3960 (nbsd_nat_target::post_startup_inferior): Add.
3961 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
3962 (nbsd_nat_target::update_thread_list): Rewrite.
3963 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
3964 "PTRACE_LWP_CREATE".
3965 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
3966
102e38eb 39672020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3968
102e38eb
PW
3969 * stack.c (_initialize_stack): Remove duplicated creation
3970 of "frame" command and "f" alias.
3971
ee9d1e5f
HD
39722020-04-30 Hannes Domani <ssbssa@yahoo.de>
3973
3974 PR gdb/18706
3975 * gdbtypes.c (check_typedef): Calculate size of array of
3976 stubbed type.
3977
627c7fb8
HD
39782020-04-30 Hannes Domani <ssbssa@yahoo.de>
3979
3980 PR gdb/15559
3981 * i386-tdep.c (i386_push_dummy_call): Call
3982 i386_thiscall_push_dummy_call.
3983 (i386_thiscall_push_dummy_call): New function.
3984 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
3985 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
3986 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
3987
ffc2844e
SM
39882020-04-29 Simon Marchi <simon.marchi@efficios.com>
3989
3990 * gdbarch.sh (do_read): Add shellcheck disable directive for
3991 warning SC2162.
3992
1207375d
SM
39932020-04-29 Simon Marchi <simon.marchi@efficios.com>
3994
3995 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
3996 "referenced but not assigned" warning.
3997
9fdb2916
SM
39982020-04-29 Simon Marchi <simon.marchi@efficios.com>
3999
4000 * gdbarch.sh: Remove code that sets fallbackdefault.
4001
759cea5e
SM
40022020-04-29 Simon Marchi <simon.marchi@efficios.com>
4003
4004 * gdbarch.sh: Use shell operators && and || instead of
4005 -a and -o.
4006
cb02ab24
SM
40072020-04-29 Simon Marchi <simon.marchi@efficios.com>
4008
4009 * gdbarch.sh: Use $(...) instead of `...`.
4010
a6fc5ffc
SM
40112020-04-29 Simon Marchi <simon.marchi@efficios.com>
4012
4013 * gdbarch.sh: Use double quotes around variables.
4014
8d113d13
SM
40152020-04-29 Simon Marchi <simon.marchi@efficios.com>
4016
4017 * gdbarch.sh: Use %s with printf, instead of variables in the
4018 format string.
4019
ed6acedd
TT
40202020-04-29 Tom Tromey <tromey@adacore.com>
4021
4022 PR ada/25875:
4023 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4024 type fields here.
4025 (read_enumeration_type): Call
4026 update_enumeration_type_from_children later. Update comments.
4027 (process_enumeration_scope): Don't create type fields.
4028
b68b1b58
KR
40292020-04-29 Kamil Rytarowski <n54@gmx.com>
4030
4031 * nbsd-tdep.c: Include "xml-syscall.h".
4032 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4033
f94b2e03
KR
40342020-04-29 Kamil Rytarowski <n54@gmx.com>
4035
4036 * nbsd-nat.c: Include "sys/wait.h".
4037 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4038 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4039 (nbsd_nat_target::remove_exec_catchpoint)
4040 (nbsd_nat_target::set_syscall_catchpoint): Add.
4041 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4042 (nbsd_nat_target::insert_exec_catchpoint)
4043 (nbsd_nat_target::remove_exec_catchpoint)
4044 (nbsd_nat_target::set_syscall_catchpoint): Add.
4045 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4046 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4047 `nbsd_get_syscall_number'.
4048
fc49bc72
TT
40492020-04-29 Tom Tromey <tom@tromey.com>
4050
4051 * stack.c (print_block_frame_labels): Remove.
4052
d642b692
HD
40532020-04-29 Hannes Domani <ssbssa@yahoo.de>
4054
4055 PR gdb/17320
4056 * ada-valprint.c (val_print_packed_array_elements): Move array
4057 end bracket to new line.
4058 (ada_val_print_string): Remove extra spaces before first array
4059 element.
4060 * c-valprint.c (c_value_print_array): Likewise.
4061 * m2-valprint.c (m2_print_array_contents): Likewise.
4062 (m2_value_print_inner): Likewise.
4063 * p-valprint.c (pascal_value_print_inner): Likewise.
4064 * valprint.c (generic_val_print_array): Likewise.
4065 (value_print_array_elements): Move first array element and array
4066 end bracket to new line.
4067
ea90f227
TV
40682020-04-29 Tom de Vries <tdevries@suse.de>
4069
4070 PR symtab/25889
4071 * linespec.c (find_method): Fix ix calculation.
4072
4498ef4f
KR
40732020-04-28 Kamil Rytarowski <n54@gmx.com>
4074
4075 * syscalls/update-netbsd.sh: New file.
4076 * syscalls/netbsd.xml: Regenerate.
4077 * data-directory/Makefile.in: Register `netbsd.xml' in
4078 `SYSCALLS_FILES'.
4079
a55e30b5
SM
40802020-04-28 Simon Marchi <simon.marchi@efficios.com>
4081
4082 * syscalls/update-freebsd.sh: Add double quotes.
4083
2b2fbab8
TT
40842020-04-28 Tom Tromey <tom@tromey.com>
4085
4086 * NEWS: Update.
4087 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4088 (cmdpy_init): Allow class_tui.
4089
a65189c9
TV
40902020-04-28 Mark Williams <mark@myosotissp.com>
4091
4092 PR gdb/24480
4093 * dwarf2read.c: Add missing assingments to list_in_scope when
4094 start_symtab was already called.
4095
1b95cdb7
SM
40962020-04-28 Simon Marchi <simon.marchi@efficios.com>
4097
4098 PR gdb/25881
4099 * dwarf2/read.c (offset_map_type): Use
4100 gdb:hash_enum<sect_offset> as hash function.
4101
15cd93d0
TV
41022020-04-28 Tom de Vries <tdevries@suse.de>
4103
4104 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4105 with DW_AT_signature.
4106
1eb39914
SM
41072020-04-27 Simon Marchi <simon.marchi@efficios.com>
4108
4109 * configure.ac: Remove check for fs_base/gs_base in
4110 user_regs_struct.
4111 * configure: Re-generate.
4112 * config.in: Re-generate.
4113 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4114 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4115 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4116
991a3e2e
LM
41172020-04-27 Luis Machado <luis.machado@linaro.org>
4118
4119 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4120 problematic inline frame unwinding situation.
4121 * frame.c (frame_id_computed_p): New function.
4122 * frame.h (frame_id_computed_p): New prototype.
4123
361ba0e8
TT
41242020-04-26 Tom Tromey <tom@tromey.com>
4125
4126 * command.h (enum command_class) <class_pseudo>: Remove.
4127
bc3609fd
PW
41282020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4129
4130 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4131 and whitespace.
4132
b9771db7
KR
41332020-04-25 Kamil Rytarowski <n54@gmx.com>
4134
ec16513e
SM
4135 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4136 `PT_GET_PROCESS_STATE' block.
b9771db7 4137
7151c1af
TT
41382020-04-24 Tom Tromey <tom@tromey.com>
4139
4140 * symtab.h (symbol_get_demangled_name): Don't declare.
4141 * symtab.c (symbol_get_demangled_name): Remove.
4142 (general_symbol_info::natural_name)
4143 (general_symbol_info::demangled_name): Update.
4144
906bb4c5
TT
41452020-04-24 Tom Tromey <tom@tromey.com>
4146
4147 PR rust/25025:
4148 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4149
bcfe6157
TT
41502020-04-24 Tom Tromey <tom@tromey.com>
4151
4152 PR symtab/12707:
4153 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4154 exists.
4155 (new_symbol): Likewise.
4156 * compile/compile-object-load.c (get_out_value_type): Use
4157 symbol_matches_search_name.
4158
f049a313
TT
41592020-04-24 Tom Tromey <tom@tromey.com>
4160
4161 * dwarf2/read.c (add_partial_symbol): Do not call
4162 compute_and_set_names.
4163
76e288d1
TT
41642020-04-24 Tom Tromey <tom@tromey.com>
4165
4166 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4167 overload.
4168
2467f4f6
TT
41692020-04-24 Tom Tromey <tom@tromey.com>
4170
4171 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4172 (add_psymbol_to_list): New overload. Make old overload call new
4173 one.
4174 * psympriv.h (add_psymbol_to_list): New overload.
4175
e61108c9
TT
41762020-04-24 Tom Tromey <tom@tromey.com>
4177
4178 * dwarf2/read.c (partial_die_info::read) <case
4179 DW_AT_linkage_name>: Use value_as_string.
4180 (dwarf2_string_attr): Use value_as_string.
4181 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4182 method.
4183 * dwarf2/attribute.c (attribute::value_as_string): New method.
4184
8c87a452
TT
41852020-04-24 Tom Tromey <tom@tromey.com>
4186
4187 * symtab.c (general_symbol_info::natural_name)
4188 (general_symbol_info::demangled_name): Check for language_rust.
4189
787de330
TT
41902020-04-24 Tom Tromey <tom@tromey.com>
4191
4192 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4193 (dwarf2_physname): ... from here.
4194 (partial_die_info::read): Add Rust "{" hack.
4195
ff985671
TT
41962020-04-24 Tom Tromey <tom@tromey.com>
4197
4198 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4199 method.
4200 (symbol_set_demangled_name): Don't declare.
4201 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4202 symbol_set_demangled_name.
4203 (general_symbol_info::set_language)
4204 (general_symbol_info::compute_and_set_names): Update.
4205 * minsyms.c (minimal_symbol_reader::install): Update.
4206 * dwarf2/read.c (new_symbol): Update.
4207
1acda803
TT
42082020-04-24 Tom Tromey <tromey@adacore.com>
4209
4210 PR python/23662:
4211 * python/py-type.c (convert_field): Handle
4212 FIELD_LOC_KIND_DWARF_BLOCK.
4213 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4214 (typy_get_dynamic): Nw function.
4215 (type_object_getset): Add "dynamic".
4216 * NEWS: Add entry.
4217
d656f129
TT
42182020-04-24 Tom Tromey <tromey@adacore.com>
4219
4220 * ada-typeprint.c (print_choices, print_variant_part)
4221 (print_record_field_types_dynamic): New functions.
4222 (print_record_field_types): Use print_record_field_types_dynamic.
4223
7d79de9a
TT
42242020-04-24 Tom Tromey <tromey@adacore.com>
4225
4226 * dwarf2/read.c (handle_data_member_location): New overload.
4227 (dwarf2_add_field): Use it.
4228 (decode_locdesc): Add "computed" parameter. Update comment.
4229 * gdbtypes.c (is_dynamic_type_internal): Also look for
4230 FIELD_LOC_KIND_DWARF_BLOCK.
4231 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4232 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4233 virtual base classes.
4234 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4235 FIELD_LOC_KIND_DWARF_BLOCK.
4236
f8e89861
TT
42372020-04-24 Tom Tromey <tromey@adacore.com>
4238
4239 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4240 * gdbtypes.c (is_dynamic_type_internal): Check
4241 TYPE_HAS_DYNAMIC_LENGTH.
4242 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4243 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4244 New macros.
4245 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4246 constant.
4247
9c6a1327
TT
42482020-04-24 Tom Tromey <tromey@adacore.com>
4249
4250 * dwarf2/read.c (struct variant_field): Rewrite.
4251 (struct variant_part_builder): New.
4252 (struct nextfield): Remove "variant" field. Add "offset".
4253 (struct field_info): Add "current_variant_part" and
4254 "variant_parts".
4255 (alloc_discriminant_info): Remove.
4256 (alloc_rust_variant): New function.
4257 (quirk_rust_enum): Update.
4258 (dwarf2_add_field): Set "offset" member. Don't handle
4259 DW_TAG_variant_part.
4260 (offset_map_type): New typedef.
4261 (convert_variant_range, create_one_variant)
4262 (create_one_variant_part, create_variant_parts)
4263 (add_variant_property): New functions.
4264 (dwarf2_attach_fields_to_type): Call add_variant_property.
4265 (read_structure_type): Don't handle DW_TAG_variant_part.
4266 (handle_variant_part, handle_variant): New functions.
4267 (handle_struct_member_die): Use them.
4268 (process_structure_scope): Don't handle variant parts.
4269 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4270 (struct discriminant_info): Remove.
4271 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4272 (struct main_type) <flag_discriminated_union>: Remove.
4273 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4274 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4275 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4276 Update.
4277 * valops.c (value_union_variant): Remove.
4278 * value.h (value_union_variant): Don't declare.
4279
b249d2c2
TT
42802020-04-24 Tom Tromey <tromey@adacore.com>
4281
4282 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4283 (ada_value_primitive_packed_val): Update.
4284 * ada-valprint.c (ada_value_print_1): Update.
4285 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4286 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4287 just an address. Use evaluate_for_locexpr_baton.
4288 (dwarf2_evaluate_property): Update.
4289 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4290 array_view.
4291 * findvar.c (default_read_var_value): Update.
4292 * gdbtypes.c (compute_variant_fields_inner)
4293 (resolve_dynamic_type_internal): Update.
4294 (resolve_dynamic_type): Change type of valaddr parameter.
4295 * gdbtypes.h (resolve_dynamic_type): Update.
4296 * valarith.c (value_subscripted_rvalue): Update.
4297 * value.c (value_from_contents_and_address): Update.
4298
61122aa9
TT
42992020-04-24 Tom Tromey <tromey@adacore.com>
4300
4301 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4302 "push_initial_value" parameter.
4303 (dwarf2_evaluate_property): Likewise.
4304 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4305
ef83a141
TT
43062020-04-24 Tom Tromey <tromey@adacore.com>
4307
4308 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4309 (variant::matches, compute_variant_fields_recurse)
4310 (compute_variant_fields_inner, compute_variant_fields): New
4311 functions.
4312 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4313 Use resolved_type after type is made.
4314 (operator==): Add new cases.
4315 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4316 (struct discriminant_range, struct variant, struct variant_part):
4317 New.
4318 (union dynamic_prop_data) <variant_parts, original_type>: New
4319 members.
4320 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4321 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4322 constants.
4323 * value.c (unpack_bits_as_long): Now public.
4324 * value.h (unpack_bits_as_long): Declare.
4325
675127ec
TT
43262020-04-24 Tom Tromey <tromey@adacore.com>
4327
4328 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4329 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4330
9852ceef
HD
43312020-04-24 Hannes Domani <ssbssa@yahoo.de>
4332
4333 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4334
7632c6ce
KR
43352020-04-24 Kamil Rytarowski <n54@gmx.com>
4336
4337 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4338 (remove_fork_catchpoint, post_startup_inferior)
4339 (post_attach): Move...
4340 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4341 (remove_fork_catchpoint, post_startup_inferior)
4342 (post_attach): ...here.
4343 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4344 (remove_fork_catchpoint, post_startup_inferior)
4345 (post_attach): Move...
4346 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4347 (remove_fork_catchpoint, post_startup_inferior)
4348 (post_attach): ...here.
4349
7be2bb4f
TT
43502020-04-24 Tom Tromey <tromey@adacore.com>
4351
4352 * nat/windows-nat.h (struct windows_thread_info)
4353 <pc_adjusted>: New member.
4354 * windows-nat.c (windows_fetch_one_register): Check
4355 pc_adjusted.
4356 (windows_nat_target::get_windows_debug_event)
4357 (windows_nat_target::wait): Set pc_adjusted.
4358
f80cb3b4
TV
43592020-04-24 Tom de Vries <tdevries@suse.de>
4360
4361 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4362 Run gdb-add-index inside temp dir.
4363
29514b87
TT
43642020-04-23 Tom Tromey <tromey@adacore.com>
4365
4366 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4367 in loop.
4368
5939967b
LM
43692020-04-23 Luis Machado <luis.machado@linaro.org>
4370
4371 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4372 get_frame_register instead of gdbarch_unwind_pc.
4373
70bc38f5
TV
43742020-04-23 Tom de Vries <tdevries@suse.de>
4375
4376 * symtab.c (lookup_global_symbol): Prefer def over decl.
4377
de82891c
TV
43782020-04-23 Tom de Vries <tdevries@suse.de>
4379
4380 PR symtab/25807
4381 * block.c (best_symbol, better_symbol): Promote to external.
4382 * block.h (best_symbol, better_symbol): Declare.
4383 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4384 decl.
4385
ecc6c606
TT
43862020-04-23 Tom Tromey <tromey@adacore.com>
4387
4388 PR ada/25837:
4389 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4390 "const char *", not a "const std::string &".
4391 <name_and_matcher::operator==>: Update.
4392 * unittests/lookup_name_info-selftests.c: Change type of
4393 "result".
4394
740480b8
TT
43952020-04-23 Tom Tromey <tom@tromey.com>
4396
4397 * inferior.h (iterate_over_inferiors): Don't declare.
4398 * inferior.c (iterate_over_inferiors): Remove.
4399 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4400 Remove.
4401 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4402 use iterate_over_inferiors.
4403 (darwin_resume_inferior_it)
4404 (struct resume_inferior_threads_param)
4405 (darwin_resume_inferior_threads_it): Remove.
4406 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4407
ae3ab1f0
TV
44082020-04-23 Tom de Vries <tdevries@suse.de>
4409
4410 * blockframe.c (find_pc_partial_function): Use
4411 find_pc_sect_compunit_symtab rather than
4412 objfile->sf->qf->find_pc_sect_compunit_symtab.
4413
317d2668
TV
44142020-04-22 Tom de Vries <tdevries@suse.de>
4415
4416 PR symtab/25764
4417 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4418 in psymtabs.
4419
eea9e357
TV
44202020-04-22 Tom de Vries <tdevries@suse.de>
4421
4422 PR symtab/25801
4423 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4424 symtabs.
4425
3d5afab3
TV
44262020-04-22 Tom de Vries <tdevries@suse.de>
4427
4428 PR symtab/25700
4429 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4430 CU if already created.
4431
d43b7a2d
TBA
44322020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4433
4434 * infrun.c (displaced_step_fixup): Switch to the event_thread
4435 before calling displaced_step_restore, not after.
4436
d89edf9b
MM
44372020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4438
4439 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4440 its inferior is not recorded by us.
4441 (record_btrace_target_open): Replace call to
4442 all_non_exited_threads () with call to current_inferior
4443 ()->non_exited_threads ().
4444 (record_btrace_target::stop_recording): Likewise.
4445 (record_btrace_target::close): Likewise.
4446 (record_btrace_target::wait): Likewise.
4447 (record_btrace_target::record_stop_replaying): Likewise.
4448
5897fd49
MM
44492020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4450
4451 * btrace.c (btrace_enable): Throw an error on double enables and
4452 when enabling recording fails.
4453 (btrace_disable): Throw an error if the thread is not recorded.
4454
1a476b6d
MM
44552020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4456
4457 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4458 request if we do not have a thread_info.
4459
4778a5f8
TV
44602020-04-21 Tom de Vries <tdevries@suse.de>
4461
4462 PR gdb/25471
4463 * thread.c
4464 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4465 exception in get_frame_id.
4466
0fa7617d
TT
44672020-04-20 Tom Tromey <tromey@adacore.com>
4468
4469 * python/python.c (struct gdbpy_event): Mark move constructor as
4470 noexcept.
4471 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4472 constructor as noexcept.
4473 * completer.h (struct completion_result): Mark move constructor as
4474 noexcept.
4475 * completer.c (completion_result::completion_result): Use
4476 initialization style. Don't call reset_match_list.
4477
ad23bda0
MS
44782020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4479
4480 * MAINTAINERS (Write After Approval): Add myself.
4481
45e1f031
TT
44822020-04-18 Tom Tromey <tom@tromey.com>
4483
4484 * windows-tdep.c (init_w32_command_list)
4485 (w32_prefix_command_valid): Restore.
4486 (_initialize_windows_tdep): Call init_w32_command_list.
4487
08feed99
TT
44882020-04-18 Tom Tromey <tom@tromey.com>
4489
4490 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4491 * value.c (value_fn_field): Update.
4492 * valops.c (find_function_in_inferior)
4493 (value_allocate_space_in_inferior): Update.
4494 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4495 Update.
4496 * tui/tui-source.c (tui_source_window::set_contents): Update.
4497 * symtab.c (lookup_global_or_static_symbol)
4498 (find_function_start_sal_1, skip_prologue_sal)
4499 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4500 * symmisc.c (dump_msymbols, dump_symtab_1)
4501 (maintenance_print_one_line_table): Update.
4502 * symfile.c (init_entry_point_info, section_is_mapped)
4503 (list_overlays_command, simple_read_overlay_table)
4504 (simple_overlay_update_1): Update.
4505 * stap-probe.c (handle_stap_probe): Update.
4506 * stabsread.c (dbx_init_float_type, define_symbol)
4507 (read_one_struct_field, read_enum_type, read_range_type): Update.
4508 * source.c (info_line_command): Update.
4509 * python/python.c (gdbpy_source_objfile_script)
4510 (gdbpy_execute_objfile_script): Update.
4511 * python/py-type.c (save_objfile_types): Update.
4512 * python/py-objfile.c (py_free_objfile): Update.
4513 * python/py-inferior.c (python_new_objfile): Update.
4514 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4515 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4516 (maintenance_check_psymtabs): Update.
4517 * printcmd.c (info_address_command): Update.
4518 * objfiles.h (struct objfile) <arch>: New method, from
4519 get_objfile_arch.
4520 (get_objfile_arch): Don't declare.
4521 * objfiles.c (get_objfile_arch): Remove.
4522 (filter_overlapping_sections): Update.
4523 * minsyms.c (msymbol_is_function): Update.
4524 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4525 (output_nondebug_symbol): Update.
4526 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4527 (mdebug_expand_psymtab): Update.
4528 * machoread.c (macho_add_oso_symfile): Update.
4529 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4530 Update.
4531 * linux-fork.c (checkpoint_command): Update.
4532 * linespec.c (convert_linespec_to_sals): Update.
4533 * jit.c (finalize_symtab): Update.
4534 * infrun.c (insert_exception_resume_from_probe): Update.
4535 * ia64-tdep.c (ia64_find_unwind_table): Update.
4536 * hppa-tdep.c (internalize_unwinds): Update.
4537 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4538 Update.
4539 * gcore.c (call_target_sbrk): Update.
4540 * elfread.c (record_minimal_symbol, elf_symtab_read)
4541 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4542 (elf_gnu_ifunc_resolve_by_got): Update.
4543 * dwarf2/read.c (create_addrmap_from_index)
4544 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4545 (read_debug_names_from_section)
4546 (process_psymtab_comp_unit_reader, add_partial_symbol)
4547 (add_partial_subprogram, process_full_comp_unit)
4548 (read_file_scope, read_func_scope, read_lexical_block_scope)
4549 (read_call_site_scope, dwarf2_ranges_read)
4550 (dwarf2_record_block_ranges, dwarf2_add_field)
4551 (mark_common_block_symbol_computed, read_tag_pointer_type)
4552 (read_tag_string_type, dwarf2_init_float_type)
4553 (dwarf2_init_complex_target_type, read_base_type)
4554 (partial_die_info::read, partial_die_info::read)
4555 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4556 (dwarf2_fetch_die_loc_sect_off): Update.
4557 * dwarf2/loc.c (dwarf2_find_location_expression)
4558 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4559 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4560 (dwarf2_loc_desc_get_symbol_read_needs)
4561 (locexpr_describe_location_piece, locexpr_describe_location_1)
4562 (loclist_describe_location): Update.
4563 * dwarf2/index-write.c (write_debug_names): Update.
4564 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4565 * dtrace-probe.c (dtrace_process_dof): Update.
4566 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4567 (process_one_symbol): Update.
4568 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4569 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4570 (coff_read_enum_type): Update.
4571 * cli/cli-cmds.c (edit_command, list_command): Update.
4572 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4573 * breakpoint.c (create_overlay_event_breakpoint)
4574 (create_longjmp_master_breakpoint)
4575 (create_std_terminate_master_breakpoint)
4576 (create_exception_master_breakpoint, get_sal_arch): Update.
4577 * block.c (block_gdbarch): Update.
4578 * annotate.c (annotate_source_line): Update.
4579
0743fc83
TT
45802020-04-17 Tom Tromey <tromey@adacore.com>
4581
4582 * auto-load.c (show_auto_load_cmd): Remove.
4583 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4584 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4585 (maintenance_print_arc_command): Remove.
4586 * tui/tui-win.c (tui_command): Remove.
4587 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4588 * tui/tui-layout.c (tui_layout_command): Remove.
4589 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4590 * python/python.c (user_set_python, user_show_python): Remove.
4591 (_initialize_python): Use add_basic_prefix_cmd,
4592 add_show_prefix_cmd.
4593 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4594 (install_gdb_commands): Use add_basic_prefix_cmd,
4595 add_show_prefix_cmd.
4596 (info_guile_command): Remove.
4597 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4598 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4599 add_show_prefix_cmd.
4600 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4601 Remove do_set and do_show parameters.
4602 * cli/cli-style.c (set_style, show_style): Remove.
4603 (_initialize_cli_style): Use add_basic_prefix_cmd,
4604 add_show_prefix_cmd.
4605 (cli_style_option::add_setshow_commands): Remove do_set and
4606 do_show parameters.
4607 (cli_style_option::add_setshow_commands): Use
4608 add_basic_prefix_cmd, add_show_prefix_cmd.
4609 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4610 (set_style_name): Remove.
4611 * cli/cli-dump.c (dump_command, append_command): Remove.
4612 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4613 (tekhex_dump_command, binary_dump_command)
4614 (binary_append_command): Remove.
4615 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4616 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4617 (init_w32_command_list): Remove; move into ...
4618 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4619 * valprint.c (set_print, show_print, set_print_raw)
4620 (show_print_raw): Remove.
4621 (_initialize_valprint): Use add_basic_prefix_cmd,
4622 add_show_prefix_cmd.
4623 * typeprint.c (set_print_type, show_print_type): Remove.
4624 (_initialize_typeprint): Use add_basic_prefix_cmd,
4625 add_show_prefix_cmd.
4626 * record.c (set_record_command, show_record_command): Remove.
4627 (_initialize_record): Use add_basic_prefix_cmd,
4628 add_show_prefix_cmd.
4629 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4630 add_show_prefix_cmd.
4631 (info_command, show_command, set_debug, show_debug): Remove.
4632 * top.h (set_history, show_history): Don't declare.
4633 * top.c (set_history, show_history): Remove.
4634 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4635 (unset_tdesc_cmd): Remove.
4636 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4637 add_show_prefix_cmd.
4638 * symtab.c (info_module_command): Remove.
4639 (_initialize_symtab): Use add_basic_prefix_cmd.
4640 * symfile.c (overlay_command): Remove.
4641 (_initialize_symfile): Use add_basic_prefix_cmd.
4642 * sparc64-tdep.c (info_adi_command): Remove.
4643 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4644 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4645 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4646 add_show_prefix_cmd.
4647 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4648 (_initialize_serial): Use add_basic_prefix_cmd,
4649 add_show_prefix_cmd.
4650 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4651 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4652 add_show_prefix_cmd.
4653 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4654 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4655 add_show_prefix_cmd.
4656 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4657 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4658 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4659 add_show_prefix_cmd.
4660 * remote.c (remote_command, set_remote_cmd): Remove.
4661 (_initialize_remote): Use add_basic_prefix_cmd.
4662 * record-full.c (set_record_full_command)
4663 (show_record_full_command): Remove.
4664 (_initialize_record_full): Use add_basic_prefix_cmd,
4665 add_show_prefix_cmd.
4666 * record-btrace.c (cmd_set_record_btrace)
4667 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4668 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4669 (cmd_show_record_btrace_pt): Remove.
4670 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4671 add_show_prefix_cmd.
4672 * ravenscar-thread.c (set_ravenscar_command)
4673 (show_ravenscar_command): Remove.
4674 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4675 add_show_prefix_cmd.
4676 * mips-tdep.c (show_mips_command, set_mips_command)
4677 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4678 add_show_prefix_cmd.
4679 * maint.c (maintenance_command, maintenance_info_command)
4680 (maintenance_check_command, maintenance_print_command)
4681 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4682 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4683 add_show_prefix_cmd.
4684 (show_per_command_cmd): Remove.
4685 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4686 Remove.
4687 (maintenance_show_test_settings_cmd): Remove.
4688 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4689 add_show_prefix_cmd.
4690 * maint-test-options.c (maintenance_test_options_command):
4691 Remove.
4692 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4693 * macrocmd.c (macro_command): Remove
4694 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4695 * language.c (set_check, show_check): Remove.
4696 (_initialize_language): Use add_basic_prefix_cmd,
4697 add_show_prefix_cmd.
4698 * infcmd.c (unset_command): Remove.
4699 (_initialize_infcmd): Use add_basic_prefix_cmd.
4700 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4701 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4702 add_show_prefix_cmd.
4703 * go32-nat.c (go32_info_dos_command): Remove.
4704 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4705 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4706 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4707 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4708 (_initialize_frame): Use add_basic_prefix_cmd,
4709 add_show_prefix_cmd.
4710 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4711 (_initialize_dcache): Use add_basic_prefix_cmd,
4712 add_show_prefix_cmd.
4713 * cp-support.c (maint_cplus_command): Remove.
4714 (_initialize_cp_support): Use add_basic_prefix_cmd.
4715 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4716 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4717 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4718 add_basic_prefix_cmd, add_show_prefix_cmd.
4719 * breakpoint.c (save_command): Remove.
4720 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4721 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4722 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4723 add_show_prefix_cmd.
4724 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4725 (set_ada_command, show_ada_command): Remove.
4726 (_initialize_ada_language): Use add_basic_prefix_cmd,
4727 add_show_prefix_cmd.
4728 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4729
3557f442
KR
47302020-04-16 Kamil Rytarowski <n54@gmx.com>
4731
4732 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4733 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4734
16197208
SM
47352020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4736
4737 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4738 warning messages.
4739
00ac85d3
SM
47402020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4741
4742 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4743 import table is not at beginning of .idata section.
4744
381ce63f
PA
47452020-04-16 Pedro Alves <palves@redhat.com>
4746
4747 * inferior.c (delete_inferior): Use delete operator directly
4748 instead of delete_program_space.
4749 * progspace.c (add_program_space): New, factored out from
4750 program_space::program_space.
4751 (remove_program_space): New, factored out from
4752 delete_program_space.
4753 (program_space::program_space): Remove intro comment. Rewrite.
4754 (program_space::~program_space): Remove intro comment. Call
4755 remove_program_space.
4756 (delete_program_space): Delete.
4757 * progspace.h (program_space::program_space): Make explicit. Move
4758 intro comment here, adjusted.
4759 (program_space::~program_space): Move intro comment here,
4760 adjusted.
4761 (delete_program_space): Remove.
4762
a010605f
TT
47632020-04-16 Tom Tromey <tromey@adacore.com>
4764
4765 * windows-nat.c (windows_nat::handle_access_violation): New
4766 function.
4767 * nat/windows-nat.h (handle_access_violation): Declare.
4768 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4769 windows-nat.c. Call handle_access_violation.
4770
efba5c23
TV
47712020-04-16 Tom de Vries <tdevries@suse.de>
4772
4773 PR symtab/25791
4774 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4775 CUs without psymtab.
4776
97ed802d
KB
47772020-04-16 Kevin Buettner <kevinb@redhat.com>
4778
4779 * python/python.c (do_start_initialization): Don't call
4780 PyEval_InitThreads for Python 3.9 and beyond.
4781
c7d64809
KR
47822020-04-15 Kamil Rytarowski <n54@gmx.com>
4783
4784 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4785 thread functions.
4786 (obsd_nat_target::wait): Likewise.
4787
ce127a96
TT
47882020-04-15 Tom Tromey <tromey@adacore.com>
4789
4790 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4791 (DEBUG_EXCEPT): Use debug_printf.
4792
99f1bc6a
AB
47932020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4794
4795 * completer.c (class completion_tracker::completion_hash_entry)
4796 <hash_name>: New member function.
4797 (completion_tracker::discard_completions): New callback to hash a
4798 completion_hash_entry, pass this to htab_create_alloc.
4799
a0e9b532
JT
48002016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4801
4802 * windows-nat.c (windows_make_so): Warn rather than stopping with
4803 an error if realpath() fails.
4804
06ca5dd4
KR
48052020-04-14 Kamil Rytarowski <n54@gmx.com>
4806
4807 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4808 (nbsd_nat_target::info_proc): Add do_status.
4809
194d088f
TV
48102020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4811 Tom de Vries <tdevries@suse.de>
4812
4813 PR symtab/25718
4814 * psympriv.h (struct partial_symtab::read_symtab)
4815 (struct partial_symtab::expand_psymtab)
4816 (struct partial_symtab::read_dependencies): Update comments.
4817 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4818 read_symtab for includer.
4819 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4820 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4821 (struct dwarf2_include_psymtab::m_readin): Remove.
4822 (struct dwarf2_include_psymtab::includer): New member function.
4823 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4824
c1a66c06
TV
48252020-04-14 Tom de Vries <tdevries@suse.de>
4826
4827 PR symtab/25720
4828 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4829 with NULL symbol_matcher and lookup_name.
4830 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4831 and lookup_name.
4832 * dwarf2/read.c (dw2_expand_symtabs_matching)
4833 (dw2_debug_names_expand_symtabs_matching): Same.
4834 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4835 Make lookup_name a pointer. Update comment.
4836 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4837 lookup_name being a pointer.
4838 * symfile.c (expand_symtabs_matching): Same.
4839 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4840 * linespec.c (iterate_over_all_matching_symtabs): Same.
4841
400b5eca
TT
48422020-04-13 Tom Tromey <tom@tromey.com>
4843
4844 * run-on-main-thread.c: Update include.
4845 * unittests/main-thread-selftests.c: Update include.
4846 * tui/tui-win.c: Update include.
4847 * tui/tui-io.c: Update include.
4848 * tui/tui-interp.c: Update include.
4849 * tui/tui-hooks.c: Update include.
4850 * top.h: Update include.
4851 * top.c: Update include.
4852 * ser-base.c: Update include.
4853 * remote.c: Update include.
4854 * remote-notif.c: Update include.
4855 * remote-fileio.c: Update include.
4856 * record-full.c: Update include.
4857 * record-btrace.c: Update include.
4858 * python/python.c: Update include.
4859 * posix-hdep.c: Update include.
4860 * mingw-hdep.c: Update include.
4861 * mi/mi-main.c: Update include.
4862 * mi/mi-interp.c: Update include.
4863 * main.c: Update include.
4864 * linux-nat.c: Update include.
4865 * interps.c: Update include.
4866 * infrun.c: Update include.
4867 * inf-loop.c: Update include.
4868 * event-top.c: Update include.
4869 * event-loop.c: Move to ../gdbsupport/.
4870 * event-loop.h: Move to ../gdbsupport/.
4871 * async-event.h: Update include.
4872 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4873
93b54c8e
TT
48742020-04-13 Tom Tromey <tom@tromey.com>
4875
4876 * tui/tui-win.c: Include async-event.h.
4877 * remote.c: Include async-event.h.
4878 * remote-notif.c: Include async-event.h.
4879 * record-full.c: Include async-event.h.
4880 * record-btrace.c: Include async-event.h.
4881 * infrun.c: Include async-event.h.
4882 * event-top.c: Include async-event.h.
4883 * event-loop.h: Move some declarations to async-event.h.
4884 * event-loop.c: Don't include ser-event.h or top.h. Move some
4885 code to async-event.c.
4886 * async-event.h: New file.
4887 * async-event.c: New file.
4888 * Makefile.in (COMMON_SFILES): Add async-event.c.
4889 (HFILES_NO_SRCDIR): Add async-event.h.
4890
c1cd3163
TT
48912020-04-13 Tom Tromey <tom@tromey.com>
4892
4893 * utils.c (flush_streams): New function.
4894 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4895
29f2bf4f
TT
48962020-04-13 Tom Tromey <tom@tromey.com>
4897
4898 * event-loop.c (handle_file_event): Use warning, not
4899 printf_unfiltered.
4900
98029d02
TT
49012020-04-13 Tom Tromey <tom@tromey.com>
4902
4903 * event-loop.c: Include <chrono>.
4904
06cc9596
TT
49052020-04-13 Tom Tromey <tom@tromey.com>
4906
4907 * gdb_select.h: Move to ../gdbsupport/.
4908 * event-loop.c: Update include path.
4909 * top.c: Update include path.
4910 * ser-base.c: Update include path.
4911 * ui-file.c: Update include path.
4912 * ser-tcp.c: Update include path.
4913 * guile/scm-ports.c: Update include path.
4914 * posix-hdep.c: Update include path.
4915 * ser-unix.c: Update include path.
4916 * gdb_usleep.c: Update include path.
4917 * mingw-hdep.c: Update include path.
4918 * inflow.c: Update include path.
4919 * infrun.c: Update include path.
4920 * event-top.c: Update include path.
4921
8ae8e197
TT
49222020-04-13 Tom Tromey <tom@tromey.com>
4923
4924 * configure: Rebuild.
4925 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
4926
58cf28e8
TT
49272020-04-13 Tom Tromey <tom@tromey.com>
4928
4929 * event-loop.h (start_event_loop): Don't declare.
4930 * event-loop.c (start_event_loop): Move...
4931 * main.c (start_event_loop): ...here. Now static.
4932
b7f999ae
SDJ
49332020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
4934
4935 * MAINTAINERS: Update my email address.
4936
1085dfd4
KR
49372020-04-12 Kamil Rytarowski <n54@gmx.com>
4938
4939 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
4940 IP_ALL.
4941
49d1d1f5
KR
49422020-04-12 Kamil Rytarowski <n54@gmx.com>
4943
4944 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 4945 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 4946
b4848d2a
KR
49472020-04-12 Kamil Rytarowski <n54@gmx.com>
4948
4949 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 4950 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 4951
51c133d5
KR
49522020-04-12 Kamil Rytarowski <n54@gmx.com>
4953
4954 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
4955
54b8cbd0
KR
49562020-04-11 Kamil Rytarowski <n54@gmx.com>
4957
4958 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
4959 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
4960 (nbsd_nat_target::info_proc): New functions.
4961 * nbsd-nat.c (kinfo_get_vmmap): New function.
4962 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
4963 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
4964 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
4965 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
4966 functions.
4967 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
4968 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
4969 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
4970 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
4971 (KINFO_VME_FLAG_GROWS_DOWN): New.
4972
cf83625d
AS
49732020-04-10 Artur Shepilko <nomadbyte@gmail.com>
4974
4975 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
4976 bit shift.
4977
0c4311ab
TT
49782020-04-10 Tom Tromey <tromey@adacore.com>
4979
4980 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
4981
3e65b3e9
TT
49822020-04-10 Tom Tromey <tromey@adacore.com>
4983
4984 * symtab.c (get_symbol_address, get_msymbol_address): Skip
4985 separate debug files.
4986
13302e95
HD
49872020-04-10 Hannes Domani <ssbssa@yahoo.de>
4988
4989 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4990 Move to...
4991 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4992 ... here.
4993 * windows-nat.c (windows_nat_target::get_windows_debug_event):
4994 Check for STATUS_WX86_BREAKPOINT.
4995 (windows_nat_target::wait): Same.
4996
bdfc1e8a
TV
49972020-04-10 Tom de Vries <tdevries@suse.de>
4998
4999 PR cli/25808
5000 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5001
f4460aec
SM
50022020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5003
5004 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5005 (Write After Approval): Remove Tom de Vries.
5006
a25198bb
BE
50072020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5008
5009 revert partially:
5010 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5011
aac66a4c
SM
5012 * buildsym.c (record_line): Fix undefined behavior and preserve
5013 lines at eof.
a25198bb 5014
206c98a6
KR
50152020-04-09 Kamil Rytarowski <n54@gmx.com>
5016
5017 * auxv.h (svr4_auxv_parse): New.
5018 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5019 and generic_auxv_parse.
5020 (svr4_auxv_parse): Add.
5021 * obsd-tdep.c: Include "auxv.h".
5022 (obsd_auxv_parse): Remove.
5023 (obsd_init_abi): Remove comment.
5024 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5025 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5026 * nbsd-tdep.c: Include "auxv.h".
5027 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5028
71fbdbaf
TT
50292020-04-08 Tom Tromey <tromey@adacore.com>
5030
5031 * nat/windows-nat.h (last_wait_event): Don't declare.
5032 (wait_for_debug_event): Update comment.
5033 * nat/windows-nat.c (last_wait_event): Now static.
5034
2c1d95e8
TT
50352020-04-08 Tom Tromey <tromey@adacore.com>
5036
5037 * windows-nat.c (wait_for_debug_event): Move to
5038 nat/windows-nat.c.
5039 * nat/windows-nat.h (wait_for_debug_event): Declare.
5040 * nat/windows-nat.c (wait_for_debug_event): Move from
5041 windows-nat.c. No longer static.
5042
d2977bc4
TT
50432020-04-08 Tom Tromey <tromey@adacore.com>
5044
5045 * windows-nat.c (get_windows_debug_event): Use
5046 fetch_pending_stop.
5047 * nat/windows-nat.h (fetch_pending_stop): Declare.
5048 * nat/windows-nat.c (fetch_pending_stop): New function.
5049
e758e19c
TT
50502020-04-08 Tom Tromey <tromey@adacore.com>
5051
5052 * windows-nat.c (windows_continue): Use matching_pending_stop and
5053 continue_last_debug_event.
5054 * nat/windows-nat.h (matching_pending_stop)
5055 (continue_last_debug_event): Declare.
5056 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5057 (matching_pending_stop, continue_last_debug_event): New
5058 functions.
5059
8d30e395
TT
50602020-04-08 Tom Tromey <tromey@adacore.com>
5061
5062 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5063 (handle_exception_result): Move to nat/windows-nat.h.
5064 (DEBUG_EXCEPTION_SIMPLE): Remove.
5065 (windows_nat::handle_ms_vc_exception): New function.
5066 (handle_exception): Move to nat/windows-nat.c.
5067 (get_windows_debug_event): Update.
5068 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5069 nat/windows-nat.c.
5070 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5071 (handle_exception_result): Move from windows-nat.c.
5072 (handle_exception): Declare.
5073 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5074 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5075 windows-nat.c.
5076
29de418d
TT
50772020-04-08 Tom Tromey <tromey@adacore.com>
5078
5079 * windows-nat.c (exception_count, event_count): Remove.
5080 (handle_exception, get_windows_debug_event)
5081 (do_initial_windows_stuff): Update.
5082
a816ba18
TT
50832020-04-08 Tom Tromey <tromey@adacore.com>
5084
5085 * windows-nat.c (windows_nat::handle_load_dll)
5086 (windows_nat::handle_unload_dll): Rename. No longer static.
5087 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5088 Declare.
5089
a00caa12
TT
50902020-04-08 Tom Tromey <tromey@adacore.com>
5091
5092 * complaints.h (stop_whining): Declare at top-level.
5093 (complaint): Don't declare stop_whining.
5094
d41b524f
TT
50952020-04-08 Tom Tromey <tromey@adacore.com>
5096
5097 * windows-nat.c (windows_nat::handle_output_debug_string):
5098 Rename. No longer static.
5099 * nat/windows-nat.h (handle_output_debug_string): Declare.
5100
3c76026d
TT
51012020-04-08 Tom Tromey <tromey@adacore.com>
5102
5103 * windows-nat.c (current_process_handle, current_process_id)
5104 (main_thread_id, last_sig, current_event, last_wait_event)
5105 (current_windows_thread, desired_stop_thread_id, pending_stops)
5106 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5107 (display_selectors, fake_create_process)
5108 (get_windows_debug_event): Update.
5109 * nat/windows-nat.h (current_process_handle, current_process_id)
5110 (main_thread_id, last_sig, current_event, last_wait_event)
5111 (current_windows_thread, desired_stop_thread_id, pending_stops)
5112 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5113 * nat/windows-nat.c (current_process_handle, current_process_id)
5114 (main_thread_id, last_sig, current_event, last_wait_event)
5115 (current_windows_thread, desired_stop_thread_id, pending_stops)
5116 (siginfo_er): New globals. Move from windows-nat.c.
5117
9d8679cc
TT
51182020-04-08 Tom Tromey <tromey@adacore.com>
5119
5120 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5121 (handle_load_dll): Update.
5122 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5123
28688adf
TT
51242020-04-08 Tom Tromey <tromey@adacore.com>
5125
5126 * windows-nat.c (enum thread_disposition_type): Move to
5127 nat/windows-nat.h.
5128 (windows_nat::thread_rec): Rename from thread_rec. No longer
5129 static.
5130 (windows_add_thread, windows_nat_target::fetch_registers)
5131 (windows_nat_target::store_registers, handle_exception)
5132 (windows_nat_target::resume, get_windows_debug_event)
5133 (windows_nat_target::get_tib_address)
5134 (windows_nat_target::thread_name)
5135 (windows_nat_target::thread_alive): Update.
5136 * nat/windows-nat.h (enum thread_disposition_type): Move from
5137 windows-nat.c.
5138 (thread_rec): Declare.
5139
4834dad0
TT
51402020-04-08 Tom Tromey <tromey@adacore.com>
5141
5142 * windows-nat.c: Add "using namespace".
5143 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5144 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5145
65bafd5b
TT
51462020-04-08 Tom Tromey <tromey@adacore.com>
5147
5148 * nat/windows-nat.h (struct windows_thread_info): Declare
5149 destructor.
5150 * nat/windows-nat.c (~windows_thread_info): New.
5151
0a4afda3
TT
51522020-04-08 Tom Tromey <tromey@adacore.com>
5153
5154 PR gdb/22992
5155 * windows-nat.c (current_event): Update comment.
5156 (last_wait_event, desired_stop_thread_id): New globals.
5157 (struct pending_stop): New.
5158 (pending_stops): New global.
5159 (windows_nat_target) <stopped_by_sw_breakpoint>
5160 <supports_stopped_by_sw_breakpoint>: New methods.
5161 (windows_fetch_one_register): Add assertions. Adjust PC.
5162 (windows_continue): Handle pending stops. Suspend other threads
5163 when stepping. Use last_wait_event
5164 (wait_for_debug_event): New function.
5165 (get_windows_debug_event): Use wait_for_debug_event. Handle
5166 pending stops. Queue spurious stops.
5167 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5168 (windows_nat_target::kill): Use wait_for_debug_event.
5169 * nat/windows-nat.h (struct windows_thread_info)
5170 <stopped_at_software_breakpoint>: New field.
5171 * nat/windows-nat.c (windows_thread_info::resume): Clear
5172 stopped_at_software_breakpoint.
5173
8e61ebec
TT
51742020-04-08 Tom Tromey <tromey@adacore.com>
5175
5176 * windows-nat.c (enum thread_disposition_type): New.
5177 (thread_rec): Replace "get_context" parameter with "disposition";
5178 change type.
5179 (windows_add_thread, windows_nat_target::fetch_registers)
5180 (windows_nat_target::store_registers, handle_exception)
5181 (windows_nat_target::resume, get_windows_debug_event)
5182 (windows_nat_target::get_tib_address)
5183 (windows_nat_target::thread_name)
5184 (windows_nat_target::thread_alive): Update.
5185
98a03287
TT
51862020-04-08 Tom Tromey <tromey@adacore.com>
5187
5188 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5189 (windows_continue): Use windows_continue::resume.
5190 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5191 resume>: Declare new methods.
5192 * nat/windows-nat.c: New file.
5193 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5194
7c7411bc
TT
51952020-04-08 Tom Tromey <tromey@adacore.com>
5196
5197 * windows-nat.c (windows_add_thread, windows_delete_thread)
5198 (windows_nat_target::fetch_registers)
5199 (windows_nat_target::store_registers, fake_create_process)
5200 (windows_nat_target::resume, windows_nat_target::resume)
5201 (get_windows_debug_event, windows_nat_target::wait)
5202 (windows_nat_target::pid_to_str)
5203 (windows_nat_target::get_tib_address)
5204 (windows_nat_target::get_ada_task_ptid)
5205 (windows_nat_target::thread_name)
5206 (windows_nat_target::thread_alive): Use lwp, not tid.
5207
2950fdf7
TT
52082020-04-08 Tom Tromey <tromey@adacore.com>
5209
5210 * windows-nat.c (handle_exception)
5211 (windows_nat_target::thread_name): Update.
5212 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5213 <name>: Now unique_xmalloc_ptr.
5214
62fe396b
TT
52152020-04-08 Tom Tromey <tromey@adacore.com>
5216
5217 * windows-nat.c (thread_rec)
5218 (windows_nat_target::fetch_registers): Update.
5219 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5220 Update comment.
5221 <debug_registers_changed, reload_context>: Now bool.
5222
e9534bd2
TT
52232020-04-08 Tom Tromey <tromey@adacore.com>
5224
5225 * windows-nat.c (windows_add_thread): Use new.
5226 (windows_init_thread_list, windows_delete_thread): Use delete.
5227 (get_windows_debug_event): Update.
5228 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5229 destructor, and initializers.
5230
ae1f8880
TT
52312020-04-08 Tom Tromey <tromey@adacore.com>
5232
5233 * windows-nat.c (struct windows_thread_info): Remove.
5234 * nat/windows-nat.h: New file.
5235
55a1e039
TT
52362020-04-08 Tom Tromey <tromey@adacore.com>
5237
5238 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5239 (thread_rec, windows_add_thread, windows_delete_thread)
5240 (windows_continue): Update.
5241
93366324
TT
52422020-04-08 Tom Tromey <tromey@adacore.com>
5243
5244 * windows-nat.c (struct windows_thread_info): Remove typedef.
5245 (thread_head): Remove.
5246 (thread_list): New global.
5247 (thread_rec, windows_add_thread, windows_init_thread_list)
5248 (windows_delete_thread, windows_continue): Update.
5249
0f2265e2
SM
52502020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5251
5252 * windows-tdep.h (windows_init_abi): Add comment.
5253 (cygwin_init_abi): New declaration.
5254 * windows-tdep.c: Split signal enumeration in two, one for
5255 Windows and one for Cygwin.
5256 (windows_gdb_signal_to_target): Only deal with signal of the
5257 Windows OS ABI.
5258 (cygwin_gdb_signal_to_target): New function.
5259 (windows_init_abi): Rename to windows_init_abi_common, don't set
5260 gdb_signal_to_target gdbarch method. Add new new function with
5261 this name.
5262 (cygwin_init_abi): New function.
5263 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5264 comment. Don't call windows_init_abi.
5265 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5266 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5267 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5268 i386_windows_init_abi_common, don't call windows_init_abi. Add
5269 a new function of this name.
5270 (i386_cygwin_init_abi): New function.
5271 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5272 OS ABI Cygwin.
5273
3810f182
SM
52742020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5275
5276 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5277 parameter.c.
5278 (dwarf2_read_gdb_index): Update.
5279
063f8e80
KR
52802020-04-07 Kamil Rytarowski <n54@gmx.com>
5281
5282 * nbsd-tdep.c: Include "objfiles.h".
5283 (nbsd_skip_solib_resolver): New.
5284 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5285
85a9510c 52862020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5287
5288 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5289 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5290 with DW_LLE_base_addressx are being emitted in DWARFv5.
5291 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5292 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5293 unsigned integer.
5294
9fc3eaae 52952020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5296
5297 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5298 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5299 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5300 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5301 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5302 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5303 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5304
5305
41144253 53062020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5307
5308 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5309 (read_loclist_index): New function definition.
5310 (lookup_loclist_base): New function definition.
5311 (read_loclist_header): New function definition.
5312 (dwarf2_cu): Add loclist_base and loclist_header field.
5313 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5314 (read_full_die_1): Read the value of DW_AT_loclists_base.
5315 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5316 (read_attribute_value): Handle DW_FORM_loclistx.
5317 (skip_one_die): Handle DW_FORM_loclistx.
5318 (loclist_header): New structure declaration.
5319 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5320
9f4e76a4
SM
53212020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5322
5323 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5324 constructor. Remove `addr` parameter from other constructor and
5325 add `per_cu` parameter.
5326 * dwarf2/read.c (create_partial_symtab): Update.
5327
25c11aca
TV
53282020-04-07 Tom de Vries <tdevries@suse.de>
5329
5330 PR symtab/25796
5331 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5332 (partial_die_info::fixup): Inherit has_const_value.
5333
5707e24b
TV
53342020-04-07 Tom de Vries <tdevries@suse.de>
5335
5336 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5337 symbols without address.
5338
05f00e22
KR
53392020-04-06 Kamil Rytarowski <n54@gmx.com>
5340
5341 * nbsd-nat.h (struct thread_info): Add forward declaration.
5342 (nbsd_nat_target::thread_alive): Add.
5343 (nbsd_nat_target::thread_name): Likewise.
5344 (nbsd_nat_target::update_thread_list): Likewise.
5345 (update_thread_list::post_attach): Likewise.
5346 (post_attach::pid_to_str): Likewise.
5347 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5348 (nbsd_thread_lister): Add.
5349 (nbsd_nat_target::thread_alive): Likewise.
5350 (nbsd_nat_target::thread_name): Likewise.
5351 (nbsd_add_threads): Likewise.
5352 (update_thread_list::post_attach): Likewise.
5353 (nbsd_nat_target::update_thread_list): Likewise.
5354 (post_attach::pid_to_str): Likewise.
5355
6ee448cc
TT
53562020-04-06 Tom Tromey <tromey@adacore.com>
5357
5358 * ada-valprint.c (print_variant_part): Extract the variant field.
5359 (print_field_values): Use the field as the outer value when
5360 recursing.
5361
dea34e8c
TT
53622020-04-06 Tom Tromey <tromey@adacore.com>
5363
5364 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5365 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5366 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5367 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5368 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5369
93689ce9
TT
53702020-04-06 Tom Tromey <tromey@adacore.com>
5371
5372 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5373 TYPE_CODE_ERROR.
5374
79743962
KR
53752020-04-06 Kamil Rytarowski <n54@gmx.com>
5376
5377 * nbsd-tdep.c: Include "gdbarch.h".
5378 Define enum with NetBSD signal numbers.
5379 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5380 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5381 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5382 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5383 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5384 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5385 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5386 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5387 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5388 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5389 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5390 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5391
9e7c9a03
HD
53922020-04-03 Hannes Domani <ssbssa@yahoo.de>
5393
5394 PR gdb/25325
5395 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5396
d9e49b61
TT
53972020-04-03 Tom Tromey <tromey@adacore.com>
5398
5399 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5400 Read constant block.
5401
e0fc5c3f
SM
54022020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5403
5404 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5405 (gdb_bfd_get_full_section_contents): New declaration.
5406 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5407 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5408 gdb_bfd_get_full_section_contents.
5409
e2ff18a0
SM
54102020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5411
5412 * exec.c (build_section_table): Replace internal_error with
5413 gdb_assert.
5414 (section_table_xfer_memory_partial): Likewise.
5415 * mdebugread.c (parse_partial_symbols): Likewise.
5416 * psymtab.c (lookup_partial_symbol): Likewise.
5417 * utils.c (wrap_here): Likewise.
5418
0830d301
TT
54192020-04-02 Tom Tromey <tromey@adacore.com>
5420
5421 * f-lang.c (build_fortran_types): Use arch_type to initialize
5422 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5423
e7da7f8f
TT
54242020-04-02 Tom Tromey <tromey@adacore.com>
5425
5426 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5427 of attributes.
5428
c90d28ac
AB
54292020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5430 Bernd Edlinger <bernd.edlinger@hotmail.de>
5431 Tom Tromey <tromey@adacore.com>
5432
5433 * buildsym.c (buildsym_compunit::record_line): Remove
5434 deduplication code.
5435
1aa98955
TV
54362020-04-02 Tom de Vries <tdevries@suse.de>
5437
5438 PR ada/24671
5439 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5440
d3214198
TV
54412020-04-02 Tom de Vries <tdevries@suse.de>
5442
5443 * dwarf2/read.c (dwarf2_gdb_index_functions,
5444 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5445 NULL.
5446 * psymtab.c (psym_lookup_global_symbol_language): New function.
5447 (psym_functions): Init psym_lookup_global_symbol_language with
5448 psym_lookup_global_symbol_language.
5449 * symfile-debug.c (debug_sym_quick_functions): Init
5450 lookup_global_symbol_language with NULL.
5451 * symfile.c (set_initial_language): Remove fixme comment.
5452 * symfile.h (struct quick_symbol_functions): Add
5453 lookup_global_symbol_language.
5454 * symtab.c (find_quick_global_symbol_language): New function.
5455 (find_main_name): Use find_quick_global_symbol_language.
5456
2836752f
SM
54572020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5458
5459 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5460
64dc2d4b
BE
54612020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5462
5463 * buildsym.c (record_line): Fix undefined behavior and preserve
5464 lines at eof.
5465
bbe3dc41
BE
54662020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5467
5468 * buildsym.c (record_line): Fix the resizing condition.
5469
6b4a335b
TT
54702020-04-01 Tom Tromey <tom@tromey.com>
5471
5472 * value.h (value_literal_complex): Add comment.
5473 * valops.c (value_literal_complex): Refer to value.h.
5474
3638a098
TT
54752020-04-01 Tom Tromey <tom@tromey.com>
5476
5477 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5478 (scalar_type): New rule, from typebase.
5479 (typebase): Use scalar_type. Recognize complex types.
5480 (field_name): Handle FLOAT_KEYWORD.
5481 (ident_tokens): Add _Complex and __complex__.
5482
c34e8714
TT
54832020-04-01 Tom Tromey <tom@tromey.com>
5484
5485 PR exp/25299:
5486 * valarith.c (promotion_type, complex_binop): New functions.
5487 (scalar_binop): Handle complex numbers. Use promotion_type.
5488 (value_pos, value_neg, value_complement): Handle complex numbers.
5489
fa649bb7
TT
54902020-04-01 Tom Tromey <tom@tromey.com>
5491
5492 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5493 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5494 (parse_number): Handle complex numbers.
5495
981c08ce
TT
54962020-04-01 Tom Tromey <tom@tromey.com>
5497
5498 * c-valprint.c (c_decorations): Change complex suffix to "i".
5499
4c99290d
TT
55002020-04-01 Tom Tromey <tom@tromey.com>
5501
5502 * valprint.c (generic_value_print_complex): Use accessors.
5503 * value.h (value_real_part, value_imaginary_part): Declare.
5504 * valops.c (value_real_part, value_imaginary_part): New
5505 functions.
5506 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5507
5b930b45
TT
55082020-04-01 Tom Tromey <tom@tromey.com>
5509
5510 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5511 (read_range_type): Update.
5512 * mdebugread.c (basic_type): Update.
5513 * go-lang.c (build_go_types): Use init_complex_type.
5514 * gdbtypes.h (struct main_type) <complex_type>: New member.
5515 (init_complex_type): Update.
5516 (arch_complex_type): Don't declare.
5517 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5518 Make name if none given. Use alloc_type_copy. Look for cached
5519 complex type.
5520 (arch_complex_type): Remove.
5521 (gdbtypes_post_init): Use init_complex_type.
5522 * f-lang.c (build_fortran_types): Use init_complex_type.
5523 * dwarf2/read.c (read_base_type): Update.
5524 * d-lang.c (build_d_types): Use init_complex_type.
5525 * ctfread.c (read_base_type): Update.
5526
53cccef1
TBA
55272020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5528
5529 * infrun.c (stop_all_threads): Update assertion, plus when
5530 stopping threads, take into account that we might be trying
5531 to stop an all-stop target.
5532 (stop_waiting): Call 'stop_all_threads' if there exists a
5533 non-stop target.
5534
a0714d30
TBA
55352020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5536
5537 * target.h (exists_non_stop_target): New function declaration.
5538 * target.c (exists_non_stop_target): New function.
5539
60e22c1e
HD
55402020-04-01 Hannes Domani <ssbssa@yahoo.de>
5541
5542 PR gdb/24789
5543 * eval.c (is_integral_or_integral_reference): New function.
5544 (evaluate_subexp_standard): Allow integer references in
5545 pointer arithmetic.
5546
e139a727
TBA
55472020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5548
5549 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5550 check for no ptid in the stop reply when the target is non-stop.
5551
e0802d59
TT
55522020-04-01 Tom Tromey <tromey@adacore.com>
5553
5554 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5555 "name" parameter to rvalue reference. Initialize m_name_holder.
5556 <lookup_name_info>: New overloads.
5557 <name>: Return gdb::string_view.
5558 <c_str>: New method.
5559 <make_ignore_params>: Update.
5560 <search_name_hash>: Update.
5561 <language_lookup_name>: Return const char *.
5562 <m_name>: Change type.
5563 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5564 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5565 (lookup_name_info::match_any): Update.
5566 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5567 Update.
5568 * minsyms.c (linkage_name_str): Update.
5569 * language.c (default_symbol_name_matcher): Update.
5570 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5571 Update.
5572 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5573 (ada_lookup_name_info::ada_lookup_name_info): Update.
5574 (literal_symbol_name_matcher): Update.
5575
8c072cb6
TT
55762020-04-01 Tom Tromey <tromey@adacore.com>
5577
5578 * psymtab.c (psymtab_search_name): Remove function.
5579 (psym_lookup_symbol): Create search name and lookup name here.
5580 (lookup_partial_symbol): Remove "name" parameter; add
5581 lookup_name.
5582 (psym_expand_symtabs_for_function): Update.
5583
6f29a534
TT
55842020-03-31 Joel Jones <joelkevinjones@gmail.com>
5585
5586 PR tui/25597:
5587 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5588
af62665e
TT
55892020-03-31 Tom Tromey <tromey@adacore.com>
5590
5591 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5592 memcpy.
5593
d1a89da5
NC
55942020-03-30 Nelson Chu <nelson.chu@sifive.com>
5595
5596 * features/riscv/32bit-csr.xml: Regenerated.
5597 * features/riscv/64bit-csr.xml: Regenerated.
5598
d8af9068
TT
55992020-03-30 Tom Tromey <tromey@adacore.com>
5600
5601 * ada-valprint.c (print_variant_part): Update.
5602 * ada-lang.h (ada_which_variant_applies): Update.
5603 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5604 outer_valaddr parameters; replace with "outer" value parameter.
5605 (to_fixed_variant_branch_type): Update.
5606
227c0bf4
PFC
56072020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5608
5609 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5610 <list>. Remove inclusion of observable.h.
5611 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5612 (struct arch_lwp_info): New struct.
5613 (class ppc_linux_dreg_interface): New class.
5614 (struct ppc_linux_process_info): New struct.
5615 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5616 <low_new_clone, low_forget_process, low_prepare_to_resume>
5617 <copy_thread_dreg_state, mark_thread_stale>
5618 <mark_debug_registers_changed, register_hw_breakpoint>
5619 <clear_hw_breakpoint, register_wp, clear_wp>
5620 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5621 <num_memory_accesses, get_trigger_type>
5622 <create_watchpoint_request, hwdebug_point_cmp>
5623 <init_arch_lwp_info, get_arch_lwp_info>
5624 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5625 methods.
5626 <struct ptid_hash>: New inner struct.
5627 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5628 members.
5629 (saved_dabr_value, hwdebug_info, max_slots_number)
5630 (struct hw_break_tuple, struct thread_points, ppc_threads)
5631 (have_ptrace_hwdebug_interface)
5632 (hwdebug_find_thread_points_by_tid)
5633 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5634 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5635 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5636 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5637 use m_dreg_interface.
5638 (hwdebug_point_cmp): Change to...
5639 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5640 reference arguments instead of pointers.
5641 (ppc_linux_nat_target::ranged_break_num_registers): Use
5642 m_dreg_interface.
5643 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5644 m_dreg_interface. Call register_hw_breakpoint.
5645 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5646 m_dreg_interface. Call clear_hw_breakpoint.
5647 (get_trigger_type): Change to...
5648 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5649 comment.
5650 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5651 use m_dreg_interface. Call register_hw_breakpoint.
5652 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5653 use m_dreg_interface. Call clear_hw_breakpoint.
5654 (can_use_watchpoint_cond_accel): Change to...
5655 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5656 method. Update comment, use m_dreg_interface and
5657 m_process_info.
5658 (calculate_dvc): Change to...
5659 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5660 m_dreg_interface.
5661 (num_memory_accesses): Change to...
5662 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5663 (check_condition): Change to...
5664 (ppc_linux_nat_target::check_condition): ...this method.
5665 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5666 comment, use m_dreg_interface.
5667 (create_watchpoint_request): Change to...
5668 (ppc_linux_nat_target::create_watchpoint_request): ...this
5669 method. Use m_dreg_interface.
5670 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5671 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5672 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5673 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5674 (ppc_linux_nat_target::low_forget_process)
5675 (ppc_linux_nat_target::low_new_fork)
5676 (ppc_linux_nat_target::low_new_clone)
5677 (ppc_linux_nat_target::low_delete_thread)
5678 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5679 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5680 only call mark_thread_stale.
5681 (ppc_linux_thread_exit): Remove.
5682 (ppc_linux_nat_target::stopped_data_address): Change to...
5683 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5684 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5685 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5686 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5687 comment. Call low_stopped_data_address.
5688 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5689 m_dreg_interface.
5690 (ppc_linux_nat_target::masked_watch_num_registers): Use
5691 m_dreg_interface.
5692 (ppc_linux_nat_target::copy_thread_dreg_state)
5693 (ppc_linux_nat_target::mark_thread_stale)
5694 (ppc_linux_nat_target::mark_debug_registers_changed)
5695 (ppc_linux_nat_target::register_hw_breakpoint)
5696 (ppc_linux_nat_target::clear_hw_breakpoint)
5697 (ppc_linux_nat_target::register_wp)
5698 (ppc_linux_nat_target::clear_wp)
5699 (ppc_linux_nat_target::init_arch_lwp_info)
5700 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5701 (_initialize_ppc_linux_nat): Remove observer callback.
5702
4db10d8f
PFC
57032020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5704
5705 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5706 (ppc_linux_nat_target::auxv_parse)
5707 (ppc_linux_nat_target::read_description)
5708 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5709 Move up.
5710
1310c1b0
PFC
57112020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5712
5713 * linux-nat.h (low_new_clone): New method.
5714 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5715
69b037c3
SM
57162020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5717
5718 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5719 (dbx_expand_psymtab): ... this.
5720 (start_psymtab): Update.
5721 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5722 (mdebug_expand_psymtab): ... this.
5723 (parse_partial_symbols): Update.
5724 (new_psymtab): Update.
5725 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5726 (xcoff_expand_psymtab): ... this.
5727 (xcoff_start_psymtab): Update.
5728
48993951
SM
57292020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5730
5731 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5732 <expand_dependencies>: ... this.
5733 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5734 (partial_symtab::expand_dependencies): ... this.
5735 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5736 Update.
5737 (dwarf2_psymtab::expand_psymtab): Update.
5738 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5739 * mdebugread.c (psymtab_to_symtab_1): Update.
5740 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5741
3ad83046
SM
57422020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5743
5744 * psympriv.h (discard_psymtab): Remove.
5745 * dbxread.c (dbx_end_psymtab): Update.
5746 * xcoffread.c (xcoff_end_psymtab): Update.
5747
4d1b9ab6
TT
57482020-03-28 Tom Tromey <tom@tromey.com>
5749
5750 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5751 comment.
5752
f1749218
TT
57532020-03-28 Tom Tromey <tom@tromey.com>
5754
5755 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5756
ebea7626
HD
57572020-03-27 Hannes Domani <ssbssa@yahoo.de>
5758
5759 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5760
a879b4d5
JB
57612020-03-26 John Baldwin <jhb@FreeBSD.org>
5762
5763 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5764
0826b30a
TT
57652020-03-26 Tom Tromey <tom@tromey.com>
5766
5767 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5768 (mark_common_block_symbol_computed, read_tag_string_type)
5769 (attr_to_dynamic_prop, read_subrange_type): Update.
5770 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5771 to be methods on struct attribute.
5772 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5773 (read_call_site_scope, partial_die_info::read)
5774 (partial_die_info::read, lookup_die_type, follow_die_ref):
5775 Update.
5776 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5777 from dwarf2_get_ref_die_offset.
5778 (attribute::constant_value): New method, from
5779 dwarf2_get_attr_constant_value.
5780 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5781 Declare method.
5782 <constant_value>: New method.
5783
2b2558bf
TT
57842020-03-26 Tom Tromey <tom@tromey.com>
5785
5786 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5787 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5788 (dwarf_type_encoding_name): Move to stringify.c.
5789 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5790 * dwarf2/stringify.c: New file.
5791 * dwarf2/stringify.h: New file.
5792
eeb64781
TT
57932020-03-26 Tom Tromey <tom@tromey.com>
5794
5795 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5796 Rewrite.
5797
a39fdb41
TT
57982020-03-26 Tom Tromey <tom@tromey.com>
5799
5800 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5801 methods.
5802 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5803 (lookup_ranges_base): Likewise.
5804 (read_cutu_die_from_dwo, read_full_die_1): Update.
5805
436c571c
TT
58062020-03-26 Tom Tromey <tom@tromey.com>
5807
5808 * dwarf2/read.c (read_import_statement, read_file_scope)
5809 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5810 (read_lexical_block_scope, read_call_site_scope)
5811 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5812 (handle_struct_member_die, process_structure_scope)
5813 (update_enumeration_type_from_children)
5814 (process_enumeration_scope, read_array_type, read_common_block)
5815 (read_namespace, read_module, read_subroutine_type): Update.
5816 (sibling_die): Remove.
5817
052c8bb8
TT
58182020-03-26 Tom Tromey <tom@tromey.com>
5819
5820 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5821 (build_type_psymtabs_reader, read_structure_type)
5822 (read_enumeration_type, read_full_die_1): Update.
5823 (dwarf2_attr_no_follow): Move to die.h.
5824 * dwarf2/die.h (struct die_info) <attr>: New method.
5825
2b24b6e4
TT
58262020-03-26 Tom Tromey <tom@tromey.com>
5827
5828 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5829 <base_address>: Now an optional.
5830 (dwarf2_find_base_address, dwarf2_rnglists_process)
5831 (dwarf2_ranges_process, fill_in_loclist_baton)
5832 (dwarf2_symbol_mark_computed): Update.
5833
c2d50fd0
TT
58342020-03-26 Tom Tromey <tom@tromey.com>
5835
5836 * dwarf2/read.c (struct die_info): Move to die.h.
5837 * dwarf2/die.h: New file.
5838
0df7ad3a
TT
58392020-03-26 Tom Tromey <tom@tromey.com>
5840
5841 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5842 * dwarf2/read.c
5843 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5844 Move to line-header.c.
5845 (read_checked_initial_length_and_offset, read_formatted_entries):
5846 Likewise.
5847 (dwarf_decode_line_header): Split into two.
5848 * dwarf2/line-header.c
5849 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5850 Move from read.c.
5851 (read_checked_initial_length_and_offset, read_formatted_entries):
5852 Likewise.
5853 (dwarf_decode_line_header): New function, split from read.c.
5854
86c0bb4c
TT
58552020-03-26 Tom Tromey <tom@tromey.com>
5856
5857 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5858 Declare method.
5859 * dwarf2/read.c (read_attribute_value): Update.
5860 (dwarf2_per_objfile::read_line_string): Rename from
5861 read_indirect_line_string.
5862 (read_formatted_entries): Update.
5863
2ef46c2f
TT
58642020-03-26 Tom Tromey <tom@tromey.com>
5865
5866 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5867 variable.
5868
4f9c1eda
TT
58692020-03-26 Tom Tromey <tom@tromey.com>
5870
5871 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5872 const.
5873 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5874 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5875 parameter const.
5876
5a0e026f
TT
58772020-03-26 Tom Tromey <tom@tromey.com>
5878
5879 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5880 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5881 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5882 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5883
8844c11b
TT
58842020-03-26 Tom Tromey <tom@tromey.com>
5885
5886 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5887 file_names_size, file_full_name, file_file_name>: Use const.
5888 <file_name_at, file_names>: Add const overload.
5889 * dwarf2/line-header.c (line_header::file_file_name)
5890 (line_header::file_full_name): Update.
5891
c90ec28a
TT
58922020-03-26 Tom Tromey <tom@tromey.com>
5893
5894 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5895 (macro_start_file, consume_improper_spaces)
5896 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5897 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5898 (dwarf_decode_macros): Move to macro.c.
5899 * dwarf2/macro.c: New file.
5900 * dwarf2/macro.h: New file.
5901 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5902
4f44ae6c
TT
59032020-03-26 Tom Tromey <tom@tromey.com>
5904
5905 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5906 method.
5907 * dwarf2/section.c: New method. From
5908 read_indirect_string_at_offset_from.
5909 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5910 (read_indirect_string_at_offset_from): Move to section.c.
5911 (read_indirect_string_at_offset): Rewrite.
5912 (read_indirect_line_string_at_offset): Remove.
5913 (read_indirect_string, read_indirect_line_string)
5914 (dwarf_decode_macro_bytes): Update.
5915
a0194fa8
TT
59162020-03-26 Tom Tromey <tom@tromey.com>
5917
5918 * dwarf2/section.h (struct dwarf2_section_info)
5919 <overload_complaint>: Declare.
5920 (dwarf2_section_buffer_overflow_complaint): Don't declare.
5921 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
5922 Rename from dwarf2_section_buffer_overflow_complaint.
5923 * dwarf2/read.c (skip_one_die, partial_die_info::read)
5924 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
5925
3d27bbdb
TT
59262020-03-26 Tom Tromey <tom@tromey.com>
5927
5928 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
5929 Declare.
5930 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
5931 Move from read.c.
5932 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
5933 to section.c.
5934
9eac9650
TT
59352020-03-26 Tom Tromey <tom@tromey.com>
5936
5937 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
5938
bf80d710
TT
59392020-03-26 Tom Tromey <tom@tromey.com>
5940
5941 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
5942 "builder".
5943 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
5944 parameter.
5945 (dwarf_decode_macros): Update.
5946
0314b390
TT
59472020-03-26 Tom Tromey <tom@tromey.com>
5948
5949 * dwarf2/read.c (read_attribute_value): Update.
5950 (read_indirect_string_from_dwz): Move to dwz.c; change into
5951 method.
5952 (dwarf_decode_macro_bytes): Update.
5953 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
5954 * dwarf2/dwz.c: New file.
5955 * Makefile.in (COMMON_SFILES): Add dwz.c.
5956
9fda78b6
TT
59572020-03-26 Tom Tromey <tom@tromey.com>
5958
5959 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
5960 * dwarf2/read.c: Add include.
5961 * dwarf2/index-write.c: Add include.
5962 * dwarf2/index-cache.c: Add include.
5963 * dwarf2/dwz.h: New file.
5964
33aa3c10
TT
59652020-03-25 Tom Tromey <tom@tromey.com>
5966
5967 * compile/compile-object-load.c (get_out_value_type): Mention
5968 correct symbol name in error message.
5969
d503b685
HD
59702020-03-25 Hannes Domani <ssbssa@yahoo.de>
5971
5972 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5973
7b1eff95
TV
59742020-03-25 Tom de Vries <tdevries@suse.de>
5975
5976 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
5977 * symmisc.c (dump_symtab_1): Print user and includes fields.
5978 (maintenance_info_symtabs): Same.
5979
dd895392
AB
59802020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
5981
5982 PR gdb/25534
5983 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
5984 (riscv_regcache_cooked_write): New function.
5985 (riscv_push_dummy_call): Use new function.
5986 (riscv_return_value): Likewise.
5987
5ab2fbf1
SM
59882020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
5989
5990 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
5991 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
5992 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
5993 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
5994 * infrun.c (follow_fork): Likewise.
5995 (follow_fork_inferior): Likewise.
5996 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
5997 * linux-nat.h (class linux_nat_target): Likewise.
5998 * remote.c (class remote_target) <follow_fork>: Likewise.
5999 (remote_target::follow_fork): Likewise.
6000 * target-delegates.c: Re-generate.
6001 * target.c (default_follow_fork): Likewise.
6002 (target_follow_fork): Likewise.
6003 * target.h (struct target_ops) <follow_fork>: Likewise.
6004 (target_follow_fork): Likewise.
6005
a64fafb5
TV
60062020-03-24 Tom de Vries <tdevries@suse.de>
6007
6008 * psymtab.c (maintenance_info_psymtabs): Print user field.
6009
fe26d3a3
TT
60102020-03-20 Tom Tromey <tromey@adacore.com>
6011
6012 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6013 const.
6014 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6015 const.
6016
c884cc46
SM
60172020-03-20 Simon Marchi <simon.marchi@efficios.com>
6018
6019 * ptrace.m4: Don't check for ptrace declaration.
6020 * config.in: Re-generate.
6021 * configure: Re-generate.
6022 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6023 not defined.
6024
1ff700c2
KR
60252020-03-20 Kamil Rytarowski <n54@gmx.com>
6026
6027 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6028 `PTRACE_TYPE_RET'.
6029 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6030 * sparc-nat.c (gdb_ptrace): Likewise.
6031 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6032
f7d4f0b1
TT
60332020-03-20 Tom Tromey <tromey@adacore.com>
6034
6035 * c-exp.y (lex_one_token): Fix assert.
6036
f67210ff
TT
60372020-03-20 Tom Tromey <tromey@adacore.com>
6038
6039 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6040 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6041 strncpy call.
6042
1773be9e
TT
60432020-03-20 Tom Tromey <tromey@adacore.com>
6044
6045 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6046
70304be9
TT
60472020-03-20 Tom Tromey <tromey@adacore.com>
6048
6049 * ada-valprint.c (print_variant_part): Remove parameters; switch
6050 to value-based API.
6051 (print_field_values): Likewise.
6052 (ada_val_print_struct_union): Likewise.
6053 (ada_value_print_1): Update.
6054
9faa006d
KR
60552020-03-20 Kamil Rytarowski <n54@gmx.com>
6056
6057 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6058 nbsd_nat_target instead of inf_ptrace_target.
6059 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6060 nbsd_nat_target.
6061
4a90f062
KR
60622020-03-20 Kamil Rytarowski <n54@gmx.com>
6063
6064 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6065 it to the ptrace call.
6066 * (store_registers): Likewise.
6067
60682020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6069
6070 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6071 it to the ptrace call.
6072 * (store_registers): Likewise.
6073
2d07da27
LM
60742020-03-19 Luis Machado <luis.machado@linaro.org>
6075
6076 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6077 valid, fetch vg value from ptrace.
6078
f09db380
KR
60792020-03-19 Kamil Rytarowski <n54@gmx.com>
6080 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6081 * inf-ptrace.c: Likewise.
6082 * (gdb_ptrace): Add.
6083 * (inf_ptrace_target::resume): Update.
6084 * (inf_ptrace_target::xfer_partial): Likewise.
6085 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6086 * (inf_ptrace_peek_poke): Update.
6087
fcc7376e
KR
60882020-03-19 Kamil Rytarowski <n54@gmx.com>
6089
6090 * x86-bsd-nat.c (gdb_ptrace): New.
6091 * (x86bsd_dr_set): Add new argument `ptid'.
6092 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6093 x86bsd_dr_set_addr): Update.
6094
cada5fc9
AB
60952020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6096
6097 * remote.c (remote_target::process_stop_reply): Handle events for
6098 all threads differently.
6099
19a2740f
AB
61002020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6101
6102 * completer.c (completion_tracker::remove_completion): Define new
6103 function.
6104 * completer.h (completion_tracker::remove_completion): Declare new
6105 function.
6106 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6107 when adding a C++ function symbol.
6108
724fd9ba
AB
61092020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6110
6111 * completer.c (completion_tracker::completion_hash_entry): Define
6112 new class.
6113 (advance_to_filename_complete_word_point): Call
6114 recompute_lowest_common_denominator.
6115 (completion_tracker::completion_tracker): Call discard_completions
6116 to setup the hash table.
6117 (completion_tracker::discard_completions): Allow for being called
6118 from the constructor, pass new equal function, and element deleter
6119 when constructing the hash table. Initialise new class member
6120 variables.
6121 (completion_tracker::maybe_add_completion): Remove use of
6122 m_entries_vec, and store more information into m_entries_hash.
6123 (completion_tracker::recompute_lcd_visitor): New function, most
6124 content taken from...
6125 (completion_tracker::recompute_lowest_common_denominator):
6126 ...here, this now just visits each item in the hash calling the
6127 above visitor.
6128 (completion_tracker::build_completion_result): Remove use of
6129 m_entries_vec, call recompute_lowest_common_denominator.
6130 * completer.h (completion_tracker::have_completions): Remove use
6131 of m_entries_vec.
6132 (completion_tracker::completion_hash_entry): Declare new class.
6133 (completion_tracker::recompute_lowest_common_denominator): Change
6134 function signature.
6135 (completion_tracker::recompute_lcd_visitor): Declare new function.
6136 (completion_tracker::m_entries_vec): Delete.
6137 (completion_tracker::m_entries_hash): Initialize to NULL.
6138 (completion_tracker::m_lowest_common_denominator_valid): New
6139 member variable.
6140 (completion_tracker::m_lowest_common_denominator_max_length): New
6141 member variable.
6142
5a82b8a1
KR
61432020-03-17 Kamil Rytarowski <n54@gmx.com>
6144
6145 * regformats/regdef.h: Put reg in gdb namespace.
6146
fb516a69
KR
61472020-03-17 Kamil Rytarowski <n54@gmx.com>
6148
6149 * i386-bsd-nat.c (gdb_ptrace): New.
6150 * (i386bsd_fetch_inferior_registers,
6151 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6152 * (i386bsd_fetch_inferior_registers,
6153 i386bsd_store_inferior_registers) Use gdb_ptrace.
6154
1c0aa1fb
KR
61552020-03-17 Kamil Rytarowski <n54@gmx.com>
6156
6157 * amd64-bsd-nat.c (gdb_ptrace): New.
6158 * (amd64bsd_fetch_inferior_registers,
6159 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6160 * (amd64bsd_fetch_inferior_registers,
6161 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6162
5ccd2fb7
KR
61632020-03-17 Kamil Rytarowski <n54@gmx.com>
6164
6165 * user-regs.c (user_reg::read): Rename to...
6166 (user_reg::xread): ...this.
6167 * (append_user_reg): Rename argument `read' to `xread'.
6168 * (user_reg_add_builtin): Likewise.
6169 * (user_reg_add): Likewise.
6170 * (value_of_user_reg): Likewise.
6171
2108a63a
KR
61722020-03-17 Kamil Rytarowski <n54@gmx.com>
6173
6174 * sparc-nat.c (gdb_ptrace): New.
6175 * sparc-nat.c (sparc_fetch_inferior_registers)
6176 (sparc_store_inferior_registers) Remove obsolete comment.
6177 * sparc-nat.c (sparc_fetch_inferior_registers)
6178 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6179 * sparc-nat.c (sparc_fetch_inferior_registers)
6180 (sparc_store_inferior_registers) Use gdb_ptrace.
6181
a225c9a8
KR
61822020-03-17 Kamil Rytarowski <n54@gmx.com>
6183
6184 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6185 it to the ptrace call.
6186 * sh-nbsd-nat.c (store_registers): Likewise.
6187
98097623
KR
61882020-03-17 Kamil Rytarowski <n54@gmx.com>
6189
6190 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6191 nbsd_nat_target instead of inf_ptrace_target.
6192 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6193 nbsd_nat_target.
6194
9e38d619
KR
61952020-03-17 Kamil Rytarowski <n54@gmx.com>
6196
6197 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6198
a2ecbe9f
KR
61992020-03-17 Kamil Rytarowski <n54@gmx.com>
6200
6201 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6202 <sys/sysctl.h>.
6203 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6204
58990295
TV
62052020-03-17 Tom de Vries <tdevries@suse.de>
6206
6207 PR gdb/23710
6208 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6209 fields.
6210 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6211 fields.
6212 (process_imported_unit_die): Skip import of c++ CUs.
6213
771dd3a8
TT
62142020-03-16 Tom Tromey <tom@tromey.com>
6215
6216 * p-valprint.c (pascal_object_print_value): Initialize
6217 base_value.
6218
817a7585
AK
62192020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6220 Shahab Vahedi <shahab@synopsys.com>
6221
6222 * Makefile.in: Add arch/arc.o
6223 * configure.tgt: Likewise.
6224 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6225 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6226 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6227 * arc-tdep.h (arc_read_description): Add proto type.
6228 * arch/arc.c: New file.
6229 * arch/arc.h: Likewise.
6230 * features/Makefile: Replace old target descriptions with new.
6231 * features/arc-arcompact.c: Remove.
6232 * features/arc-arcompact.xml: Likewise.
6233 * features/arc-v2.c: Likewise
6234 * features/arc-v2.xml: Likewise
6235 * features/arc/aux-arcompact.xml: New file.
6236 * features/arc/aux-v2.xml: Likewise.
6237 * features/arc/core-arcompact.xml: Likewise.
6238 * features/arc/core-v2.xml: Likewise.
6239 * features/arc/aux-arcompact.c: Generate.
6240 * features/arc/aux-v2.c: Likewise.
6241 * features/arc/core-arcompact.c: Likewise.
6242 * features/arc/core-v2.c: Likewise.
6243 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6244
67430cd0
TT
62452020-03-16 Tom Tromey <tromey@adacore.com>
6246
6247 PR gdb/25663:
6248 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6249 putting value into bcache.
6250
30efb6c7
SM
62512020-03-16 Simon Marchi <simon.marchi@efficios.com>
6252
6253 PR gdb/21500
6254 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6255 to...
6256 (amd64_windows_init_abi_common): ... this. Don't set size of
6257 long type.
6258 (amd64_windows_init_abi): New function.
6259 (amd64_cygwin_init_abi): New function.
6260 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6261 the Cygwin OS ABI.
6262 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6263 comment.
6264
8db52437
SM
62652020-03-16 Simon Marchi <simon.marchi@efficios.com>
6266
6267 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6268 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6269 (pe_import_directory_entry): New struct type.
6270 (is_linked_with_cygwin_dll): New function.
6271 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6272 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6273 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6274
5982a56a
SM
62752020-03-16 Simon Marchi <simon.marchi@efficios.com>
6276
6277 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6278 i386_cygwin_core_osabi_sniffer.
6279
7a1998df
SM
62802020-03-16 Simon Marchi <simon.marchi@efficios.com>
6281
6282 * i386-cygwin-tdep.c: Rename to...
6283 * i386-windows-tdep.c: ... this.
6284 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6285 i386-windows-tdep.c.
6286 * configure.tgt: Likewise.
6287
053205cc
SM
62882020-03-16 Simon Marchi <simon.marchi@efficios.com>
6289
6290 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6291 * osabi.c (gdb_osabi_names): Add "Windows".
6292 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6293 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6294 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6295 i386_cygwin_osabi_sniffer.
6296 (_initialize_i386_cygwin_tdep): Register OS ABI
6297 GDB_OSABI_WINDOWS for i386.
6298 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6299 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6300 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6301 for x86-64.
6302 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6303 when the target matches '*-*-mingw*'.
6304
fe4b2ee6
SM
63052020-03-16 Simon Marchi <simon.marchi@efficios.com>
6306
6307 * defs.h (enum gdb_osabi): Move to...
6308 * osabi.h (enum gdb_osabi): ... here.
6309 * gdbarch.sh: Include osabi.h in gdbarch.h.
6310 * gdbarch.h: Re-generate.
6311
cb9b645d
SM
63122020-03-16 Simon Marchi <simon.marchi@efficios.com>
6313
6314 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6315 function.
6316 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6317
3293bbaf
TT
63182020-03-14 Tom Tromey <tom@tromey.com>
6319
6320 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6321 for C++.
6322 (c_type_print_modifier): Likewise. Add "language" parameter.
6323 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6324 (c_type_print_base_1): Update.
6325 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6326 constants.
6327 * type-stack.c (type_stack::insert): Handle tp_atomic and
6328 tp_restrict.
6329 (type_stack::follow_type_instance_flags): Likewise.
6330 (type_stack::follow_types): Likewise. Merge type-following code.
6331 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6332 (space_identifier, cv_with_space_id)
6333 (const_or_volatile_or_space_identifier_noopt)
6334 (const_or_volatile_or_space_identifier): Remove.
6335 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6336 rules.
6337 (ptr_operator, typebase): Update.
6338 (enum token_flag) <FLAG_C>: New constant.
6339 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6340 "_Atomic".
6341 (lex_one_token): Handle FLAG_C.
6342
154151a6
KR
63432020-03-14 Kamil Rytarowski <n54@gmx.com>
6344
6345 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6346 it to the ptrace call.
6347 * m68k-bsd-nat.c (store_registers): Likewise.
6348
bc107784
KR
63492020-03-14 Kamil Rytarowski <n54@gmx.com>
6350
6351 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6352 gdb_byte *.
6353 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6354 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6355 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6356
01a80117
KR
63572020-03-14 Kamil Rytarowski <n54@gmx.com>
6358
6359 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6360 nbsd_nat_target instead of inf_ptrace_target.
6361 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6362 nbsd_nat_target.
6363
f90280ca
KR
63642020-03-14 Kamil Rytarowski <n54@gmx.com>
6365
6366 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6367 register_t.
6368
6def66f1
KR
63692020-03-14 Kamil Rytarowski <n54@gmx.com>
6370
6371 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6372 it to the ptrace call.
6373 * alpha-bsd-nat.c (store_registers): Likewise.
6374
66eaca97
KR
63752020-03-14 Kamil Rytarowski <n54@gmx.com>
6376
6377 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6378 includes.
6379 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6380 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6381 fill_fpregset): Likewise.
6382
4fed520b
KR
63832020-03-14 Kamil Rytarowski <n54@gmx.com>
6384
6385 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6386 nbsd_nat_target instead of inf_ptrace_target.
6387 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6388 nbsd_nat_target.
6389
2190cf06
KR
63902020-03-14 Kamil Rytarowski <n54@gmx.com>
6391
6392 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6393 register_t.
6394
75c56d3d
KR
63952020-03-14 Kamil Rytarowski <n54@gmx.com>
6396
6397 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6398 it to the ptrace call.
6399 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6400 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6401 * arm-nbsd-nat.c (store_register): Likewise.
6402 * arm-nbsd-nat.c (store_regs): Likewise.
6403 * arm-nbsd-nat.c (store_fp_register): Likewise.
6404 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6405
6018d381
KR
64062020-03-14 Kamil Rytarowski <n54@gmx.com>
6407
6408 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6409 nbsd_nat_target instead of inf_ptrace_target.
6410 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6411 nbsd_nat_target.
6412
013f99f0
KR
64132020-03-14 Kamil Rytarowski <n54@gmx.com>
6414
6415 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6416 it to the ptrace call.
6417 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6418
12753073
KR
64192020-03-14 Kamil Rytarowski <n54@gmx.com>
6420
6227b330
KR
6421 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6422 it to the ptrace call.
6423 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6424
64252020-03-14 Kamil Rytarowski <n54@gmx.com>
6426
6427 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6428 gdb_byte *.
12753073
KR
6429 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6430
d5be5fa4
KR
64312020-03-14 Kamil Rytarowski <n54@gmx.com>
6432
6433 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6434 instead of inf_ptrace_target.
6435 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6436 nbsd_nat_target.
6437
8110f842
KR
64382020-03-14 Kamil Rytarowski <n54@gmx.com>
6439
6440 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6441 register_t.
6442
52feded7
KR
64432020-03-14 Kamil Rytarowski <n54@gmx.com>
6444
6445 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6446 register_t.
6447
25567eee
KR
64482020-03-14 Kamil Rytarowski <n54@gmx.com>
6449
6450 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6451 register_t.
6452
426a9c18
TT
64532020-03-13 Tom Tromey <tom@tromey.com>
6454
6455 * value.h (val_print): Don't declare.
6456 * valprint.h (val_print_array_elements)
6457 (val_print_scalar_formatted, generic_val_print): Don't declare.
6458 * valprint.c (generic_val_print_array): Take a struct value.
6459 (generic_val_print_ptr, generic_val_print_memberptr)
6460 (generic_val_print_bool, generic_val_print_int)
6461 (generic_val_print_char, generic_val_print_complex)
6462 (generic_val_print): Remove.
6463 (generic_value_print): Update.
6464 (do_val_print): Remove unused parameters. Don't call
6465 la_val_print.
6466 (val_print): Remove.
6467 (common_val_print): Update. Don't call value_check_printable.
6468 (val_print_scalar_formatted, val_print_array_elements): Remove.
6469 * rust-lang.c (rust_val_print): Remove.
6470 (rust_language_defn): Update.
6471 * p-valprint.c (pascal_val_print): Remove.
6472 (pascal_value_print_inner): Update.
6473 (pascal_object_print_val_fields, pascal_object_print_val):
6474 Remove.
6475 (pascal_object_print_static_field): Update.
6476 * p-lang.h (pascal_val_print): Don't declare.
6477 * p-lang.c (pascal_language_defn): Update.
6478 * opencl-lang.c (opencl_language_defn): Update.
6479 * objc-lang.c (objc_language_defn): Update.
6480 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6481 * m2-lang.h (m2_val_print): Don't declare.
6482 * m2-lang.c (m2_language_defn): Update.
6483 * language.h (struct language_defn) <la_val_print>: Remove.
6484 * language.c (unk_lang_value_print_inner): Rename. Change
6485 argument types.
6486 (unknown_language_defn, auto_language_defn): Update.
6487 * go-valprint.c (go_val_print): Remove.
6488 * go-lang.h (go_val_print): Don't declare.
6489 * go-lang.c (go_language_defn): Update.
6490 * f-valprint.c (f_val_print): Remove.
6491 * f-lang.h (f_value_print): Don't declare.
6492 * f-lang.c (f_language_defn): Update.
6493 * d-valprint.c (d_val_print): Remove.
6494 * d-lang.h (d_value_print): Don't declare.
6495 * d-lang.c (d_language_defn): Update.
6496 * cp-valprint.c (cp_print_value_fields)
6497 (cp_print_value_fields_rtti, cp_print_value): Remove.
6498 (cp_print_static_field): Update.
6499 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6500 (c_val_print_struct, c_val_print_union, c_val_print_int)
6501 (c_val_print_memberptr, c_val_print): Remove.
6502 * c-lang.h (c_val_print_array, cp_print_value_fields)
6503 (cp_print_value_fields_rtti): Don't declare.
6504 * c-lang.c (c_language_defn, cplus_language_defn)
6505 (asm_language_defn, minimal_language_defn): Update.
6506 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6507 (ada_val_print_enum): Take a struct value.
6508 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6509 (ada_val_print): Remove.
6510 (ada_value_print_1): Update.
6511 (printable_val_type): Remove.
6512 * ada-lang.h (ada_val_print): Don't declare.
6513 * ada-lang.c (ada_language_defn): Update.
6514
42331a1e
TT
65152020-03-13 Tom Tromey <tom@tromey.com>
6516
6517 * valprint.c (do_val_print): Update.
6518 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6519 a struct value.
6520 (value_to_value_object_no_release): Declare.
6521 * python/py-value.c (value_to_value_object_no_release): New
6522 function.
6523 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6524 struct value.
6525 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6526 function.
6527 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6528 a struct value.
6529 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6530 Declare.
6531 (gdbscm_apply_val_pretty_printer): Take a struct value.
6532 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6533 value.
6534 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6535 value.
6536 * extension-priv.h (struct extension_language_ops)
6537 <apply_val_pretty_printer>: Take a struct value.
6538 * cp-valprint.c (cp_print_value): Create a struct value.
6539 (cp_print_value): Update.
6540
3a916a97
TT
65412020-03-13 Tom Tromey <tom@tromey.com>
6542
6543 * ada-valprint.c (print_field_values): Call common_val_print.
6544
b59eac37
TT
65452020-03-13 Tom Tromey <tom@tromey.com>
6546
6547 * ada-valprint.c (val_print_packed_array_elements): Remove
6548 bitoffset and val parameters. Call common_val_print.
6549 (ada_val_print_string): Remove offset, address, and original_value
6550 parameters.
6551 (ada_val_print_array): Update.
6552 (ada_value_print_array): New function.
6553 (ada_value_print_1): Call it.
6554
03371129
TT
65552020-03-13 Tom Tromey <tom@tromey.com>
6556
6557 * ada-valprint.c (ada_value_print): Use common_val_print.
6558
2e088f8b
TT
65592020-03-13 Tom Tromey <tom@tromey.com>
6560
6561 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6562
39ef85a8
TT
65632020-03-13 Tom Tromey <tom@tromey.com>
6564
6565 * ada-valprint.c (ada_value_print_num): New function.
6566 (ada_value_print_1): Use it.
6567
b9fa6e07
TT
65682020-03-13 Tom Tromey <tom@tromey.com>
6569
6570 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6571
416595d6
TT
65722020-03-13 Tom Tromey <tom@tromey.com>
6573
6574 * ada-valprint.c (ada_value_print_ptr): New function.
6575 (ada_value_print_1): Use it.
6576
5b5e15ec
TT
65772020-03-13 Tom Tromey <tom@tromey.com>
6578
6579 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6580 call common_val_print.
6581 (ada_val_print_1): Update.
6582 (ada_value_print_1): New function.
6583 (ada_value_print_inner): Rewrite.
6584
fbf54e75
TT
65852020-03-13 Tom Tromey <tom@tromey.com>
6586
6587 * cp-valprint.c (cp_print_value_fields): Update.
6588 (cp_print_value): New function.
6589
64b653ca
TT
65902020-03-13 Tom Tromey <tom@tromey.com>
6591
6592 * m2-valprint.c (m2_value_print_inner): Use
6593 cp_print_value_fields.
6594 * cp-valprint.c (cp_print_value_fields): New function.
6595 * c-valprint.c (c_value_print_struct): New function.
6596 (c_value_print_inner): Use c_value_print_struct.
6597 * c-lang.h (cp_print_value_fields): Declare.
6598
6999f067
TT
65992020-03-13 Tom Tromey <tom@tromey.com>
6600
6601 * c-valprint.c (c_value_print_array): New function.
6602 (c_value_print_inner): Use it.
6603
ce80b8bd
TT
66042020-03-13 Tom Tromey <tom@tromey.com>
6605
6606 * c-valprint.c (c_value_print_memberptr): New function.
6607 (c_value_print_inner): Use it.
6608
2faac269
TT
66092020-03-13 Tom Tromey <tom@tromey.com>
6610
6611 * c-valprint.c (c_value_print_int): New function.
6612 (c_value_print_inner): Use it.
6613
da3e2c29
TT
66142020-03-13 Tom Tromey <tom@tromey.com>
6615
6616 * c-valprint.c (c_value_print_ptr): New function.
6617 (c_value_print_inner): Use it.
6618
50836231
TT
66192020-03-13 Tom Tromey <tom@tromey.com>
6620
6621 * c-valprint.c (c_value_print_inner): Rewrite.
6622
4f412b6e
TT
66232020-03-13 Tom Tromey <tom@tromey.com>
6624
6625 * valprint.c (generic_value_print_complex): New function.
6626 (generic_value_print): Use it.
6627
f5354008
TT
66282020-03-13 Tom Tromey <tom@tromey.com>
6629
6630 * valprint.c (generic_val_print_float): Don't call
6631 val_print_scalar_formatted.
6632 (generic_val_print, generic_value_print): Update.
6633
3eec3b05
TT
66342020-03-13 Tom Tromey <tom@tromey.com>
6635
6636 * valprint.c (generic_value_print_char): New function
6637 (generic_value_print): Use it.
6638
fdddfccb
TT
66392020-03-13 Tom Tromey <tom@tromey.com>
6640
6641 * valprint.c (generic_value_print_int): New function.
6642 (generic_value_print): Use it.
6643
6dde7521
TT
66442020-03-13 Tom Tromey <tom@tromey.com>
6645
6646 * valprint.c (generic_value_print_bool): New function.
6647 (generic_value_print): Use it.
6648
4112d2e6
TT
66492020-03-13 Tom Tromey <tom@tromey.com>
6650
6651 * valprint.c (generic_val_print_func): Simplify.
6652 (generic_val_print, generic_value_print): Update.
6653
65786af6
TT
66542020-03-13 Tom Tromey <tom@tromey.com>
6655
6656 * valprint.c (generic_val_print_flags): Remove.
6657 (generic_val_print, generic_value_print): Update.
6658 (val_print_type_code_flags): Add original_value parameter.
6659
40f3ce18
TT
66602020-03-13 Tom Tromey <tom@tromey.com>
6661
6662 * valprint.c (generic_val_print): Update.
6663 (generic_value_print): Update.
6664 * valprint.c (generic_val_print_enum): Don't call
6665 val_print_scalar_formatted.
6666
2a5b130b
TT
66672020-03-13 Tom Tromey <tom@tromey.com>
6668
6669 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6670 * valprint.c (generic_value_print_ptr): New function.
6671
abc66ce9
TT
66722020-03-13 Tom Tromey <tom@tromey.com>
6673
6674 * valprint.c (generic_value_print): Rewrite.
6675
07a32858
TT
66762020-03-13 Tom Tromey <tom@tromey.com>
6677
6678 * p-valprint.c (pascal_object_print_value_fields)
6679 (pascal_object_print_value): New functions.
6680
64d64d3a
TT
66812020-03-13 Tom Tromey <tom@tromey.com>
6682
6683 * p-valprint.c (pascal_value_print_inner): Rewrite.
6684
6a95a1f5
TT
66852020-03-13 Tom Tromey <tom@tromey.com>
6686
6687 * f-valprint.c (f_value_print_innner): Rewrite.
6688
59fcdac6
TT
66892020-03-13 Tom Tromey <tom@tromey.com>
6690
6691 * m2-valprint.c (m2_print_unbounded_array): New overload.
6692 (m2_print_unbounded_array): Update.
6693 (m2_print_array_contents): Take a struct value.
6694 (m2_value_print_inner): Rewrite.
6695
d133c3e1
TT
66962020-03-13 Tom Tromey <tom@tromey.com>
6697
6698 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6699 (d_value_print_inner): New function.
6700 * d-lang.h (d_value_print_inner): Declare.
6701 * d-lang.c (d_language_defn): Use d_value_print_inner.
6702
23b0f06b
TT
67032020-03-13 Tom Tromey <tom@tromey.com>
6704
6705 * go-valprint.c (go_value_print_inner): New function.
6706 * go-lang.h (go_value_print_inner): Declare.
6707 * go-lang.c (go_language_defn): Use go_value_print_inner.
6708
5f56f7cb
TT
67092020-03-13 Tom Tromey <tom@tromey.com>
6710
6711 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6712 API.
6713 (rust_val_print): Rewrite.
6714 (rust_value_print_inner): New function, from rust_val_print.
6715 (rust_language_defn): Use rust_value_print_inner.
6716
26792ee0
TT
67172020-03-13 Tom Tromey <tom@tromey.com>
6718
6719 * ada-valprint.c (ada_value_print_inner): New function.
6720 * ada-lang.h (ada_value_print_inner): Declare.
6721 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6722
24051bbe
TT
67232020-03-13 Tom Tromey <tom@tromey.com>
6724
6725 * f-valprint.c (f_value_print_innner): New function.
6726 * f-lang.h (f_value_print_innner): Declare.
6727 * f-lang.c (f_language_defn): Use f_value_print_innner.
6728
c0941be6
TT
67292020-03-13 Tom Tromey <tom@tromey.com>
6730
6731 * p-valprint.c (pascal_value_print_inner): New function.
6732 * p-lang.h (pascal_value_print_inner): Declare.
6733 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6734
62c4663d
TT
67352020-03-13 Tom Tromey <tom@tromey.com>
6736
6737 * m2-valprint.c (m2_value_print_inner): New function.
6738 * m2-lang.h (m2_value_print_inner): Declare.
6739 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6740
62182190
TT
67412020-03-13 Tom Tromey <tom@tromey.com>
6742
6743 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6744 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6745 * c-valprint.c (c_value_print_inner): New function.
6746 * c-lang.h (c_value_print_inner): Declare.
6747 * c-lang.c (c_language_defn, cplus_language_defn)
6748 (asm_language_defn, minimal_language_defn): Use
6749 c_value_print_inner.
6750
1e592a8a
TT
67512020-03-13 Tom Tromey <tom@tromey.com>
6752
6753 * p-valprint.c (pascal_object_print_value_fields): Now static.
6754 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6755
7fe471e9
TT
67562020-03-13 Tom Tromey <tom@tromey.com>
6757
6758 * c-valprint.c (c_val_print_array): Simplify.
6759
d121c6ce
TT
67602020-03-13 Tom Tromey <tom@tromey.com>
6761
6762 * valprint.c (value_print_array_elements): New function.
6763 * valprint.h (value_print_array_elements): Declare.
6764
4dba70ee
TT
67652020-03-13 Tom Tromey <tom@tromey.com>
6766
6767 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6768 * mips-tdep.c (mips_print_register): Use
6769 value_print_scalar_formatted.
6770
4f9ae810
TT
67712020-03-13 Tom Tromey <tom@tromey.com>
6772
6773 * valprint.h (value_print_scalar_formatted): Declare.
6774 * valprint.c (value_print_scalar_formatted): New function.
6775
156bfec9
TT
67762020-03-13 Tom Tromey <tom@tromey.com>
6777
6778 * valprint.h (generic_value_print): Declare.
6779 * valprint.c (generic_value_print): New function.
6780
2b4e573d
TT
67812020-03-13 Tom Tromey <tom@tromey.com>
6782
6783 * valprint.c (do_val_print): Call la_value_print_inner, if
6784 available.
6785 * rust-lang.c (rust_language_defn): Update.
6786 * p-lang.c (pascal_language_defn): Update.
6787 * opencl-lang.c (opencl_language_defn): Update.
6788 * objc-lang.c (objc_language_defn): Update.
6789 * m2-lang.c (m2_language_defn): Update.
6790 * language.h (struct language_defn) <la_value_print_inner>: New
6791 member.
6792 * language.c (unknown_language_defn, auto_language_defn): Update.
6793 * go-lang.c (go_language_defn): Update.
6794 * f-lang.c (f_language_defn): Update.
6795 * d-lang.c (d_language_defn): Update.
6796 * c-lang.c (c_language_defn, cplus_language_defn)
6797 (asm_language_defn, minimal_language_defn): Update.
6798 * ada-lang.c (ada_language_defn): Update.
6799
a1f6a07c
TT
68002020-03-13 Tom Tromey <tom@tromey.com>
6801
6802 * c-valprint.c (c_value_print): Use common_val_print.
6803
410cf315
TT
68042020-03-13 Tom Tromey <tom@tromey.com>
6805
6806 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6807
72a45c93
TT
68082020-03-13 Tom Tromey <tom@tromey.com>
6809
6810 * f-valprint.c (f77_print_array_1, f_val_print): Use
6811 common_val_print.
6812
040f66bd
TT
68132020-03-13 Tom Tromey <tom@tromey.com>
6814
6815 * riscv-tdep.c (riscv_print_one_register_info): Use
6816 common_val_print.
6817
a6e05a6c
TT
68182020-03-13 Tom Tromey <tom@tromey.com>
6819
6820 * mi/mi-main.c (output_register): Use common_val_print.
6821
3444c526
TT
68222020-03-13 Tom Tromey <tom@tromey.com>
6823
6824 * infcmd.c (default_print_one_register_info): Use
6825 common_val_print.
6826
c2a44efe
TT
68272020-03-13 Tom Tromey <tom@tromey.com>
6828
6829 * valprint.h (common_val_print_checked): Declare.
6830 * valprint.c (common_val_print_checked): New function.
6831 * stack.c (print_frame_arg): Use common_val_print_checked.
6832
b0c26e99
TT
68332020-03-13 Tom Tromey <tom@tromey.com>
6834
6835 * valprint.c (do_val_print): New function, from val_print.
6836 (val_print): Use do_val_print.
6837 (common_val_print): Use do_val_print.
6838
ce3acbe9
TT
68392020-03-13 Tom Tromey <tom@tromey.com>
6840
6841 * valprint.c (value_print): Use scoped_value_mark.
6842
96c7f873
TV
68432020-03-13 Tom de Vries <tdevries@suse.de>
6844
6845 PR symtab/25646
6846 * psymtab.c (partial_symtab::partial_symtab): Don't set
6847 globals_offset and statics_offset. Push element onto
6848 current_global_psymbols and current_static_psymbols stacks.
6849 (concat): New function.
6850 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6851 element from current_global_psymbols and current_static_psymbols
6852 stacks. Concat popped elements to global_psymbols and
6853 static_symbols.
6854 (add_psymbol_to_list): Use current_global_psymbols and
6855 current_static_psymbols stacks.
6856 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6857 current_static_psymbols fields.
6858
6ba0a321
CB
68592020-03-12 Christian Biesinger <cbiesinger@google.com>
6860
6861 * corelow.c (sniff_core_bfd): Remove.
6862 (class core_target) <m_core_vec>: Remove.
6863 (core_target::core_target): Update.
6864 (core_file_fns): Remove.
6865 (deprecated_add_core_fns): Remove.
6866 (default_core_sniffer): Remove.
6867 (sniff_core_bfd): Remove.
6868 (default_check_format): Remove.
6869 (gdb_check_format): Remove.
6870 (core_target_open): Update.
6871 (core_target::get_core_register_section): Update.
6872 (get_core_registers_cb): Update.
6873 (core_target::fetch_registers): Update.
6874 * gdbcore.h (struct core_fns): Remove.
6875 (deprecated_add_core_fns): Remove.
6876 (default_core_sniffer): Remove.
6877 (default_check_format): Remove.
6878
227031b2
TT
68792020-03-12 Tom Tromey <tom@tromey.com>
6880
6881 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6882 CORE_ADDR.
6883 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6884
53807e9f
TT
68852020-03-12 Tom Tromey <tom@tromey.com>
6886
6887 * remote.c (remote_target::download_tracepoint)
6888 (remote_target::enable_tracepoint)
6889 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6890 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6891 sprintf_vma.
6892
64f25102
TT
68932020-03-12 Tom Tromey <tom@tromey.com>
6894
6895 * symfile-mem.c: Update CORE_ADDR size assert.
6896
272cd5a3
SM
68972020-03-12 Simon Marchi <simon.marchi@efficios.com>
6898
6899 * selftest.m4: Move to gdbsupport/.
6900 * acinclude.m4: Update path to selftest.m4.
6901
74cd3f9d
SM
69022020-03-12 Simon Marchi <simon.marchi@efficios.com>
6903
6904 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6905 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6906 gdbarch-selfselftests.c and selftest-arch.c.
6907 (SUBDIR_UNITTESTS_OBS): Rename to...
6908 (SELFTESTS_OBS): ... this.
6909 (COMMON_SFILES): Remove disasm-selftests.c and
6910 gdbarch-selftests.c.
6911 * configure.ac: Don't add selftest-arch.{c,o} to
6912 CONFIG_{SRCS,OBS}.
6913 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
6914 preprocessor conditions.
6915
db6878ac
SM
69162020-03-12 Simon Marchi <simon.marchi@efficios.com>
6917
6918 * configure.ac: Don't source bfd/development.sh.
6919 * selftest.m4: Modify comment.
6920 * configure: Re-generate.
6921
4d696a5c
SM
69222020-03-12 Simon Marchi <simon.marchi@efficios.com>
6923
6924 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
6925 not "true" or "false".
6926 * configure: Re-generate.
6927
8dd8e1c7
CB
69282020-03-12 Christian Biesinger <cbiesinger@google.com>
6929
6930 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
6931 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
6932 renamed to arm_nbsd_supply_gregset.
6933 (fetch_register): Update to call arm_nbsd_supply_gregset.
6934 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
6935 (arm_netbsd_nat_target::fetch_registers): Update.
6936 (fetch_elfcore_registers): Removed.
6937 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
6938 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
6939 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
6940 not require NetBSD system headers.
6941 (arm_nbsd_regset): New struct.
6942 (arm_nbsd_iterate_over_regset_sections): New function.
6943 (arm_netbsd_init_abi_common): Updated to call
6944 set_gdbarch_iterate_over_regset_sections.
6945 * arm-nbsd-tdep.h: New file.
6946
dd69bf7a
KB
69472020-03-11 Kevin Buettner <kevinb@redhat.com>
6948
6949 * symtab.c (find_pc_sect_line): Add check which prevents infinite
6950 recursion.
6951
a0761e34
SM
69522020-03-11 Simon Marchi <simon.marchi@efficios.com>
6953
6954 * configure: Re-generate.
6955
e7a82140
TT
69562020-03-11 Tom Tromey <tromey@adacore.com>
6957
6958 * ada-typeprint.c (print_choices): Fix comment.
6959
dcc050c8
AB
69602020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
6961
6962 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
6963 previous item in the list, when the list has no items.
6964
1c33af77
TV
69652020-03-11 Tom de Vries <tdevries@suse.de>
6966
6967 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
6968 PROP_LOCLIST handling code.
6969
8c95582d
AB
69702020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
6971
6972 * buildsym-legacy.c (record_line): Pass extra parameter to
6973 record_line.
6974 * buildsym.c (buildsym_compunit::record_line): Take an extra
6975 parameter, reduce duplication in the line table, and record the
6976 is_stmt flag in the line table.
6977 * buildsym.h (buildsym_compunit::record_line): Add extra
6978 parameter.
6979 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
6980 non-statement lines.
6981 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
6982 this to the symtab builder.
6983 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
6984 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
6985 through to dwarf_record_line_1.
6986 * infrun.c (process_event_stop_test): When stepping, don't stop at
6987 a non-statement instruction, and only refresh the step info when
6988 we land in the middle of a line's range. Also add an extra
6989 comment.
6990 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
6991 field.
6992 * record-btrace.c (btrace_find_line_range): Only record lines
6993 marked as is-statement.
6994 * stack.c (frame_show_address): Show the frame address if we are
6995 in a non-statement sal.
6996 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
6997 (maintenance_print_one_line_table): Print a header for the is_stmt
6998 column, and include is_stmt information in the output.
6999 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7000 preference to non-statements.
7001 (find_pcs_for_symtab_line): Prefer is-statement entries.
7002 (find_line_common): Likewise.
7003 * symtab.h (struct linetable_entry): Add is_stmt field.
7004 (struct symtab_and_line): Likewise.
7005 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7006 arranging the line table.
7007
e4003a34
TV
70082020-03-07 Tom de Vries <tdevries@suse.de>
7009
7010 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7011 DIE.
7012
e8932576
TT
70132020-03-07 Tom Tromey <tom@tromey.com>
7014
7015 * valops.c (value_literal_complex): Remove obsolete comment.
7016 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7017 comment.
7018
29734269
SM
70192020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7020
7021 * infrun.h: Forward-declare thread_info.
7022 (set_step_info): Add thread_info parameter, add doc.
7023 * infrun.c (set_step_info): Add thread_info parameter, move doc
7024 to header.
7025 * infrun.c (process_event_stop_test): Pass thread to
7026 set_step_info call.
7027 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7028 set_step_info.
7029 (prepare_one_step): Add thread_info parameter, pass it to
7030 set_step_frame and prepare_one_step (recursive) call.
7031 (step_1): Pass thread to prepare_one_step call.
7032 (step_command_fsm::should_stop): Pass thread to
7033 prepare_one_step.
7034 (until_next_fsm): Pass thread to set_step_frame call.
7035 (finish_command): Pass thread to set_step_info call.
7036
b7d64b29
HD
70372020-03-06 Hannes Domani <ssbssa@yahoo.de>
7038
7039 * windows-tdep.c (windows_solib_create_inferior_hook):
7040 Check if inferior is running.
7041
09f2921c
TV
70422020-03-06 Tom de Vries <tdevries@suse.de>
7043
7044 * NEWS: Fix "the the".
7045 * ctfread.c: Same.
7046
fd760e79
TV
70472020-03-06 Tom de Vries <tdevries@suse.de>
7048
7049 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7050
20ea4a60
AB
70512020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7052
7053 * .dir-locals.el: Add a comment referencing the other copies of
7054 this file.
7055
0afbabf0
JB
70562020-03-05 John Baldwin <jhb@FreeBSD.org>
7057
7058 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7059 psargs.
7060
842806cb
TBA
70612020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7062
7063 * .gitattributes: New file.
7064
be1e3d3e
TT
70652020-03-04 Tom Tromey <tom@tromey.com>
7066
7067 * symmisc.c (print_symbol_bcache_statistics)
7068 (print_objfile_statistics): Update.
7069 * symfile.c (allocate_symtab): Use intern.
7070 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7071 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7072 macro_cache>: Remove.
7073 <string_cache>: New member.
7074 (struct objfile) <intern>: New methods.
7075 * elfread.c (elf_symtab_read): Use intern.
7076 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7077 (dwarf2_compute_name, dwarf2_physname)
7078 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7079 names.
7080 (guess_partial_die_structure_name): Update.
7081 (partial_die_info::fixup): Intern name.
7082 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7083 name.
7084 (dwarf2_name): Intern name. Update.
7085 * buildsym.c (buildsym_compunit::get_macro_table): Use
7086 string_cache.
7087
4e7625fd
TT
70882020-03-04 Tom Tromey <tom@tromey.com>
7089
7090 * jit.c (bfd_open_from_target_memory): Make "target" const.
7091 * corefile.c (gnutarget): Now const.
7092 * gdbcore.h (gnutarget): Now const.
7093
46f9f931
HD
70942020-03-04 Hannes Domani <ssbssa@yahoo.de>
7095
7096 * NEWS: Mention support for WOW64 processes.
7097 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7098 (amd64_windows_segment_register_p): Remove static.
7099 (_initialize_amd64_windows_nat): Update.
7100 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7101 * i386-windows-nat.c (context_offset): Update.
7102 (i386_mappings): Rename and remove static.
7103 (i386_windows_segment_register_p): Remove static.
7104 (_initialize_i386_windows_nat): Update.
7105 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7106 (STATUS_WX86_SINGLE_STEP): New macro.
7107 (EnumProcessModulesEx): New macro.
7108 (Wow64SuspendThread): New macro.
7109 (Wow64GetThreadContext): New macro.
7110 (Wow64SetThreadContext): New macro.
7111 (Wow64GetThreadSelectorEntry): New macro.
7112 (windows_set_context_register_offsets): Add static.
7113 (windows_set_segment_register_p): Likewise.
7114 (windows_add_thread): Adapt for WOW64 processes.
7115 (windows_fetch_one_register): Likewise.
7116 (windows_nat_target::fetch_registers): Likewise.
7117 (windows_store_one_register): Likewise.
7118 (display_selector): Likewise.
7119 (display_selectors): Likewise.
7120 (handle_exception): Likewise.
7121 (windows_continue): Likewise.
7122 (windows_nat_target::resume): Likewise.
7123 (windows_add_all_dlls): Likewise.
7124 (do_initial_windows_stuff): Likewise.
7125 (windows_nat_target::attach): Likewise.
7126 (windows_get_exec_module_filename): Likewise.
7127 (windows_nat_target::create_inferior): Likewise.
7128 (windows_xfer_siginfo): Likewise.
7129 (_initialize_loadable): Initialize Wow64SuspendThread,
7130 Wow64GetThreadContext, Wow64SetThreadContext,
7131 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7132 * windows-nat.h (windows_set_context_register_offsets):
7133 Remove declaration.
7134 (windows_set_segment_register_p): Likewise.
7135 (i386_windows_segment_register_p): Add declaration.
7136 (amd64_windows_segment_register_p): Likewise.
7137
440cf44e
LM
71382020-03-04 Luis Machado <luis.machado@linaro.org>
7139
7140 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7141 in "info registers" for AArch64/ARM.
7142
7143 The change caused "info registers" to not print GPR's.
7144
7145 gdb/ChangeLog:
7146
7147 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7148
7149 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7150 when reg->group is empty and reggroup is not.
7151
1009d92f
TT
71522020-03-03 Tom Tromey <tromey@adacore.com>
7153
7154 * dwarf2/frame.c (struct dwarf2_frame_cache)
7155 <checked_tailcall_bottom, entry_cfa_sp_offset,
7156 entry_cfa_sp_offset_p>: Remove members.
7157 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7158 (dwarf2_frame_prev_register): Don't call
7159 dwarf2_tailcall_sniffer_first.
7160 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7161 * frame-unwind.c (add_unwinder): New fuction.
7162 (frame_unwind_init): Use it. Add tailcall unwinder.
7163
5e5d66b6
AB
71642020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7165 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7166
7167 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7168 value should be printed as true.
7169
584cf46d
HD
71702020-03-03 Hannes Domani <ssbssa@yahoo.de>
7171
7172 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7173 (windows_init_abi): Set and use windows_so_ops.
7174
7b973adc
SDJ
71752020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7176
7177 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7178 when verifying if dealing with a convenience variable.
7179
bb7b70ab
LM
71802020-03-03 Luis Machado <luis.machado@linaro.org>
7181
7182 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7183
9822cb57
SM
71842020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7185
7186 * infrun.c (gdbarch_supports_displaced_stepping): New.
7187 (use_displaced_stepping): Break up conditions in smaller pieces.
7188 Use gdbarch_supports_displaced_stepping.
7189 (displaced_step_prepare_throw): Use
7190 gdbarch_supports_displaced_stepping.
7191
63e163f2
AB
71922020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7193
7194 * NEWS: Mention new behaviour of the history filename.
7195 * top.c (write_history_p): Add comment.
7196 (show_write_history_p): Add header comment, give a different
7197 message when history writing is on, but the history filename is
7198 empty.
7199 (history_filename): Add comment.
7200 (history_filename_empty): New function.
7201 (show_history_filename): Add header comment, give a different
7202 message when the filename is empty.
7203 (init_history): Compare history_filename against nullptr, and only
7204 read history if the filename is not empty.
7205 (set_history_filename): Add header comment, and only make
7206 non-empty filenames absolute.
7207 (init_main): Make the filename argument to 'set history filename'
7208 optional.
7209
81b86b97
CB
72102020-03-02 Christian Biesinger <cbiesinger@google.com>
7211
7212 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7213 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7214 (fetch_fp_register): Update.
7215 (fetch_fp_regs): Update.
7216 (store_fp_register): Update.
7217 (store_fp_regs): Update.
7218 (arm_netbsd_nat_target::read_description): New function.
7219 (fetch_elfcore_registers): Update.
7220
24ed6739
AB
72212020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7222
7223 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7224 general_thread if the stop reply is missing a thread-id.
7225 (remote_target::process_stop_reply): Use the first non-exited
7226 thread if the target didn't pass a thread-id.
7227 * infrun.c (do_target_wait): Move call to
7228 switch_to_inferior_no_thread to ....
7229 (do_target_wait_1): ... here.
7230
a84bb2a0
JT
72312020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7232
7233 * debuginfod-support.c: Include defs.h first.
7234
658dadf0
TV
72352020-02-28 Tom de Vries <tdevries@suse.de>
7236
7237 * symfile.c (set_initial_language): Use default language for lookup.
7238
4ebe4877
SM
72392020-02-28 Simon Marchi <simon.marchi@efficios.com>
7240
7241 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7242 reader variable, pass `this` to read_cutu_die_from_dwo.
7243
e5da1139
AM
72442020-02-27 Aaron Merey <amerey@redhat.com>
7245
7246 * source.c (open_source_file): Check for nullptr when computing
7247 srcpath.
7248
317f7127
TT
72492020-02-27 Tom Tromey <tromey@adacore.com>
7250
7251 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7252 member.
7253 (dwarf2_add_field): Don't update nfields.
7254 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7255
3104d9ee
AB
72562020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7257
7258 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7259 abs.
7260
b83470bf
TT
72612020-02-26 Tom Tromey <tom@tromey.com>
7262
7263 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7264 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7265 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7266 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7267 per_cu_data.
7268
edfe0a0c
TT
72692020-02-26 Tom Tromey <tom@tromey.com>
7270
7271 * dwarf2/index-write.c (psym_index_map): Change type.
7272 (add_address_entry_worker, write_one_signatured_type)
7273 (recursively_count_psymbols, recursively_write_psymbols)
7274 (class debug_names, psyms_seen_size, write_gdbindex)
7275 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7276
0d79cdc4
AM
72772020-02-26 Aaron Merey <amerey@redhat.com>
7278
7279 * Makefile.in: Handle optional debuginfod support.
7280 * NEWS: Update.
7281 * README: Add --with-debuginfod summary.
7282 * config.in: Regenerate.
7283 * configure: Regenerate.
7284 * configure.ac: Handle optional debuginfod support.
7285 * debuginfod-support.c: debuginfod helper functions.
7286 * debuginfod-support.h: Ditto.
7287 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7288 summary.
7289 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7290 when a dwz file cannot be found.
7291 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7292 debuginfo file cannot be found.
7293 * source.c (open_source_file): Query debuginfod servers when a
7294 source file cannot be found.
7295 * top.c (print_gdb_configuration): Include
7296 --{with,without}-debuginfod in the output.
7297
b65ce565
JG
72982020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7299
7300 * thread.c (thr_try_catch_cmd): Print thread name.
7301
d4c9a4f8
SM
73022020-02-26 Simon Marchi <simon.marchi@efficios.com>
7303
7304 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7305 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7306 dwarf2_fetch_die_type_sect_off): Move to...
7307 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7308 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7309 dwarf2_fetch_die_type_sect_off): ... here.
7310 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7311 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7312 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7313
0dce4280
TV
73142020-02-26 Tom de Vries <tdevries@suse.de>
7315
7316 PR gdb/25603
7317 * symfile.c (set_initial_language): Exit-early if
7318 language_mode == language_mode_manual.
7319
450a1bfc
SM
73202020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7321
7322 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7323 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7324 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7325
9e80cfa1
AB
73262020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7327
7328 * gdbtypes.c (create_array_type_with_stride): Handle negative
7329 array strides.
7330 * valarith.c (value_subscripted_rvalue): Likewise.
7331
09624f1f
LM
73322020-02-25 Luis Machado <luis.machado@linaro.org>
7333
7334 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7335
8cb5117c
SM
73362020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7337
7338 * loc.h (dwarf2_get_die_type): Move to...
7339 * read.h (dwarf2_get_die_type): ... here.
7340 * read.c (dwarf2_get_die_type): Move doc to header.
7341
c325c44e
JB
73422020-02-25 Joel Brobecker <brobecker@adacore.com>
7343
7344 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7345 'gnulib/Makefile.in' to the list.
7346
4ac93832
TT
73472020-02-24 Tom Tromey <tom@tromey.com>
7348
7349 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7350 Remove.
7351 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7352 XOBNEWVEC.
7353
197400e8
TT
73542020-02-24 Tom Tromey <tom@tromey.com>
7355
7356 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7357 New method.
7358 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7359 (dw2_do_instantiate_symtab, dw2_get_file_names)
7360 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7361
76935768
TT
73622020-02-24 Tom Tromey <tom@tromey.com>
7363
7364 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7365 make_scoped_restore.
7366 (dwarf2_psymtab::read_symtab): Don't clear
7367 reading_partial_symbols.
7368
a88ef40d
TV
73692020-02-24 Tom de Vries <tdevries@suse.de>
7370
7371 PR gdb/25592
7372 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7373
c9af6521
TV
73742020-02-24 Tom de Vries <tdevries@suse.de>
7375
7376 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7377 commands layout next/prev/regs.
7378
5707a07a
TT
73792020-02-22 Tom Tromey <tom@tromey.com>
7380
7381 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7382 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7383
3b0fb49e
TT
73842020-02-22 Tom Tromey <tom@tromey.com>
7385
7386 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7387
283be8bf
TT
73882020-02-22 Tom Tromey <tom@tromey.com>
7389
7390 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7391 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7392 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7393 * tui/tui.c (_initialize_tui): Add usage text.
7394
ca793b96
TT
73952020-02-22 Tom Tromey <tom@tromey.com>
7396
7397 * tui/tui-win.c (tui_set_focus_command)
7398 (tui_set_win_height_command): Use error_no_arg.
7399 (_initialize_tui_win): Update help text.
7400 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7401
432b5c40
TT
74022020-02-22 Tom Tromey <tom@tromey.com>
7403
7404 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7405 * tui/tui-disasm.h (struct tui_disasm_window)
7406 <display_start_addr>: Declare.
7407 * tui/tui-source.h (struct tui_source_window)
7408 <display_start_addr>: Declare.
7409 * tui/tui-winsource.h (struct tui_source_window_base)
7410 <show_source_line, display_start_addr>: New methods.
7411 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7412 Rename and move to protected section.
7413 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7414 (tui_source_window_base::do_erase_source_content): Update.
7415 (tui_source_window_base::show_source_line): Now a method.
7416 (tui_source_window_base::show_source_content)
7417 (tui_source_window_base::tui_source_window_base)
7418 (tui_source_window_base::rerender)
7419 (tui_source_window_base::refill)
7420 (tui_source_window_base::do_scroll_horizontal)
7421 (tui_source_window_base::set_is_exec_point_at)
7422 (tui_source_window_base::update_breakpoint_info)
7423 (tui_source_window_base::update_exec_info): Update.
7424 * tui/tui-source.c (tui_source_window::set_contents)
7425 (tui_source_window::showing_source_p)
7426 (tui_source_window::do_scroll_vertical)
7427 (tui_source_window::location_matches_p)
7428 (tui_source_window::line_is_displayed): Update.
7429 (tui_source_window::display_start_addr): New method.
7430 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7431 (tui_disasm_window::do_scroll_vertical)
7432 (tui_disasm_window::location_matches_p): Update.
7433 (tui_disasm_window::display_start_addr): New method.
7434
01b1af32
TT
74352020-02-22 Tom Tromey <tom@tromey.com>
7436
7437 * NEWS: Add entry for gdb.register_window_type.
7438 * tui/tui-layout.h (window_factory): New typedef.
7439 (tui_register_window): Declare.
7440 * tui/tui-layout.c (saved_tui_windows): New global.
7441 (tui_apply_current_layout): Use it.
7442 (tui_register_window): New function.
7443 * python/python.c (do_start_initialization): Call
7444 gdbpy_initialize_tui.
7445 (python_GdbMethods): Add "register_window_type" function.
7446 * python/python-internal.h (gdbpy_register_tui_window)
7447 (gdbpy_initialize_tui): Declare.
7448 * python/py-tui.c: New file.
7449 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7450
fc96d20b
TT
74512020-02-22 Tom Tromey <tom@tromey.com>
7452
7453 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7454
935c78c0
TT
74552020-02-22 Tom Tromey <tom@tromey.com>
7456
7457 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7458 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7459 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7460 (tui_set_win_focus_to): Move from tui-win.c.
7461
0240c8f1
TT
74622020-02-22 Tom Tromey <tom@tromey.com>
7463
7464 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7465 functions.
7466 (known_window_types): New global.
7467 (tui_get_window_by_name): Reimplement.
7468 (initialize_known_windows): New function.
7469 (validate_window_name): Rewrite.
7470 (_initialize_tui_layout): Call initialize_known_windows.
7471
fdb01f0c
TT
74722020-02-22 Tom Tromey <tom@tromey.com>
7473
7474 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7475 Remove constants.
7476 * tui/tui-winsource.h (struct tui_source_window_base)
7477 <tui_source_window_base>: Remove parameter.
7478 * tui/tui-winsource.c
7479 (tui_source_window_base::tui_source_window_base): Remove
7480 parameter.
7481 (tui_source_window_base::refill): Update.
7482 * tui/tui-stack.h (struct tui_locator_window)
7483 <tui_locator_window>: Update.
7484 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7485 Default the constructor.
7486 * tui/tui-regs.h (struct tui_data_item_window)
7487 <tui_data_item_window>: Default the constructor.
7488 (struct tui_data_window) <tui_data_window>: Likewise.
7489 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7490 Default the constructor.
7491 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7492 Default the constructor.
7493 <type>: Remove.
7494 (struct tui_win_info) <tui_win_info>: Default the constructor.
7495 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7496 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7497 Default the constructor.
7498
865a5aec
TT
74992020-02-22 Tom Tromey <tom@tromey.com>
7500
7501 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7502 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7503 * tui/tui-win.c (tui_resize_all): Don't call
7504 tui_delete_invisible_windows.
7505 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7506 done.
7507 (tui_set_layout): Update.
7508 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7509 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7510 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7511
e098d18c
TT
75122020-02-22 Tom Tromey <tom@tromey.com>
7513
7514 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7515 correctly.
7516
eb9c8874
TT
75172020-02-22 Tom Tromey <tom@tromey.com>
7518
7519 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7520
7eed1a8e
TT
75212020-02-22 Tom Tromey <tom@tromey.com>
7522
7523 * tui/tui-winsource.h (struct tui_source_window_iterator)
7524 <inner_iterator>: New etytypedef.
7525 <tui_source_window_iterator>: Take "end" parameter.
7526 <tui_source_window_iterator>: Take iterator.
7527 <operator*, advance>: Update.
7528 <m_iter>: Change type.
7529 <m_end>: New field.
7530 (struct tui_source_windows) <begin, end>: Update.
7531 * tui/tui-layout.c (tui_windows): New global.
7532 (tui_apply_current_layout): Clear tui_windows.
7533 (tui_layout_window::apply): Update tui_windows.
7534 * tui/tui-data.h (tui_windows): Declare.
7535 (all_tui_windows): Now inline function.
7536 (class tui_window_iterator, struct all_tui_windows): Remove.
7537
7c043ba6
TT
75382020-02-22 Tom Tromey <tom@tromey.com>
7539
7540 PR tui/17850:
7541 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7542 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7543 "height" argument.
7544 (class tui_layout_window) <get_sizes>: Likewise.
7545 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7546 argument.
7547 <get_sizes>: Add "height" argument.
7548 <m_vertical>: New field.
7549 * tui/tui-layout.c (tui_layout_split::clone): Update.
7550 (tui_layout_split::get_sizes): Add "height" argument.
7551 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7552 (tui_new_layout_command): Parse "-horizontal".
7553 (_initialize_tui_layout): Update help string.
7554 (tui_layout_split::specification): Add "-horizontal" when needed.
7555 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7556 argument.
7557 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7558 New methods.
7559
6bc56648
TT
75602020-02-22 Tom Tromey <tom@tromey.com>
7561
7562 * tui/tui-layout.h (enum tui_adjust_result): New.
7563 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7564 (class tui_layout_window) <adjust_size>: Return
7565 tui_adjust_result. Rewrite.
7566 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7567 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7568
c22fef7e
TT
75692020-02-22 Tom Tromey <tom@tromey.com>
7570
7571 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7572 parameter and return types.
7573 (class tui_layout_base) <specification>: Add "depth".
7574 (class tui_layout_window) <specification>: Add "depth".
7575 (class tui_layout_split) <specification>: Add "depth".
7576 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7577 and return types.
7578 (tui_new_layout_command): Parse sub-layouts.
7579 (_initialize_tui_layout): Update help string.
7580 (tui_layout_window::specification): Add "depth".
7581 (add_layout_command): Update.
7582
ee325b61
TT
75832020-02-22 Tom Tromey <tom@tromey.com>
7584
7585 * NEWS: Add "tui new-layout" item.
7586 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7587 Add new-layout command to help text.
7588 (validate_window_name): New function.
7589 (tui_new_layout_command): New function.
7590 (_initialize_tui_layout): Register "new-layout".
7591 (tui_layout_window::specification): New method.
7592 (tui_layout_window::specification): New method.
7593 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7594 method.
7595 (class tui_layout_window) <specification>: New method.
7596 (class tui_layout_split) <specification>: New method.
7597
416eb92d
TT
75982020-02-22 Tom Tromey <tom@tromey.com>
7599
7600 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7601 * tui/tui-win.c (window_name_completer): Update comment.
7602 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7603 Declare method.
7604 (class tui_layout_window) <replace_window>: Likewise.
7605 (class tui_layout_split) <replace_window>: Likewise.
7606 (tui_set_layout): Don't declare.
7607 (tui_set_initial_layout): Declare function.
7608 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7609 (asm_regs_layout): New globals.
7610 (tui_current_layout, show_layout): Remove.
7611 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7612 (find_layout, tui_apply_layout): New function.
7613 (layout_completer): Remove.
7614 (tui_next_layout): Reimplement.
7615 (tui_next_layout_command): New function.
7616 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7617 (tui_regs_layout): Reimplement.
7618 (tui_regs_layout_command): New function.
7619 (extract_display_start_addr): Rewrite.
7620 (next_layout, prev_layout): Remove.
7621 (tui_layout_window::replace_window): New method.
7622 (tui_layout_split::replace_window): New method.
7623 (destroy_layout): New function.
7624 (layout_list): New global.
7625 (add_layout_command): New function.
7626 (initialize_layouts): Update.
7627 (tui_layout_command): New function.
7628 (_initialize_tui_layout): Install "layout" commands.
7629 * tui/tui-data.h (enum tui_layout_type): Remove.
7630 (tui_current_layout): Don't declare.
7631
0dbc2fc7
TT
76322020-02-22 Tom Tromey <tom@tromey.com>
7633
7634 * tui/tui-regs.c (tui_reg_layout): Remove.
7635 (tui_reg_command): Use tui_regs_layout.
7636 * tui/tui-layout.h (tui_reg_command): Declare.
7637 * tui/tui-layout.c (tui_reg_command): New function.
7638
5afe342e
TT
76392020-02-22 Tom Tromey <tom@tromey.com>
7640
7641 * tui/tui.c (tui_rl_delete_other_windows): Call
7642 tui_remove_some_windows.
7643 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7644 Declare method.
7645 (class tui_layout_window) <remove_windows>: New method.
7646 (class tui_layout_split) <remove_windows>: Declare.
7647 (tui_remove_some_windows): Declare.
7648 * tui/tui-layout.c (tui_remove_some_windows): New function.
7649 (tui_layout_split::remove_windows): New method.
7650
427326a8
TT
76512020-02-22 Tom Tromey <tom@tromey.com>
7652
7653 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7654 * tui/tui-layout.h (tui_next_layout): Declare.
7655 * tui/tui-layout.c (tui_next_layout): New function.
7656
3fe12b6d
TT
76572020-02-22 Tom Tromey <tom@tromey.com>
7658
7659 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7660 correct coordinates.
7661
59b8b5d2
TT
76622020-02-22 Tom Tromey <tom@tromey.com>
7663
7664 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7665 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7666 DATA_WIN case.
7667
2a3d458b
TT
76682020-02-22 Tom Tromey <tom@tromey.com>
7669
7670 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7671 TUI_DISASM_WIN, not tui_win_list.
7672
3f0cbb04
TT
76732020-02-22 Tom Tromey <tom@tromey.com>
7674
7675 * valprint.c (generic_val_print_enum_1)
7676 (val_print_type_code_flags): Style member names.
7677 * rust-lang.c (val_print_struct, rust_print_enum)
7678 (rust_print_struct_def, rust_internal_print_type): Style member
7679 names.
7680 * p-valprint.c (pascal_object_print_value_fields): Style member
7681 names. Only call fprintf_symbol_filtered for static members.
7682 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7683 * f-valprint.c (f_val_print): Style member names.
7684 * f-typeprint.c (f_type_print_base): Style member names.
7685 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7686 call fprintf_symbol_filtered for static members.
7687 (cp_print_class_member): Style member names.
7688 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7689 member names.
7690 * ada-valprint.c (ada_print_scalar): Style enum names.
7691 (ada_val_print_enum): Likewise.
7692 * ada-typeprint.c (print_enum_type): Style enum names.
7693
d4d947ae
TT
76942020-02-21 Tom Tromey <tom@tromey.com>
7695
7696 * psympriv.h (struct partial_symtab): Update comment.
7697
e94e944b
TT
76982020-02-21 Tom Tromey <tromey@adacore.com>
7699
7700 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7701 type is CORE_ADDR.
7702
1eb73179
TV
77032020-02-21 Tom de Vries <tdevries@suse.de>
7704
7705 PR gdb/25534
7706 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7707 if dependencies[i]->user != NULL.
7708
4f180d53
AT
77092020-02-21 Ali Tamur <tamur@google.com>
7710
7711 * dwarf2/read.c (dwarf2_name): Add null check.
7712
22b6cd70
TT
77132020-02-20 Tom Tromey <tom@tromey.com>
7714
7715 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7716 ">=", in binary search.
7717 (dwarf2_find_containing_comp_unit): New overload.
7718 (run_test): New self-test.
7719 (_initialize_dwarf2_read): Register new test.
7720
bd0cf5a6
NC
77212020-02-20 Nelson Chu <nelson.chu@sifive.com>
7722
7723 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7724 * riscv-tdep.h: Likewise.
7725 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7726 rv32-only CSR.
7727 * features/riscv/64bit-csr.xml: Regenerated.
7728
3f702acd
SDJ
77292020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7730 Tom Tromey <tom@tromey.com>
7731
7732 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7733 of 'fputc_unfiltered'.
7734 (putchar_unfiltered): Call 'fputc_unfiltered'.
7735 (fputc_unfiltered): Call 'fputs_unfiltered'.
7736
d13c7322
AB
77372020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7738
7739 * config.in: Regenerate.
7740 * configure: Regenerate.
7741 * configure.ac: Add --with-python-libdir option.
7742 * main.c: Use WITH_PYTHON_LIBDIR.
7743
869d8950
TT
77442020-02-19 Tom Tromey <tom@tromey.com>
7745
7746 * symtab.c (general_symbol_info::compute_and_set_names): Use
7747 obstack_strndup. Simplify call to symbol_set_demangled_name.
7748
298e9637
SM
77492020-02-19 Simon Marchi <simon.marchi@efficios.com>
7750
7751 * dwarf2/read.c (allocate_signatured_type_table,
7752 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7753 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7754 Remove objfile parameter, update all callers.
7755
08410482
DE
77562020-02-19 Doug Evans <dje@google.com>
7757
7758 PR rust/25535
7759 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7760 rust_enum_variant calculation.
7761
dfdeeca1
TT
77622020-02-19 Tom Tromey <tromey@adacore.com>
7763
7764 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7765
2ef5453b
TT
77662020-02-19 Tom Tromey <tromey@adacore.com>
7767
7768 * ada-lang.c (cache_symbol): Use obstack_strdup.
7769
9f1528a1
AB
77702020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7771
7772 * configure: Regenerate.
7773
d3c22fa8
TT
77742020-02-19 Tom Tromey <tromey@adacore.com>
7775
7776 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7777 NULL check.
7778
bf84f706
MR
77792020-02-19 Maciej W. Rozycki <macro@wdc.com>
7780
7781 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7782
d1c9b20f
AB
77832020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7784
7785 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7786 if GDBSERVER is not defined.
7787 (riscv_tdesc_cache): Likewise, also store const target_desc.
7788 (STATIC_IN_GDB): Define.
7789 (riscv_create_target_description): Update declaration with
7790 STATIC_IN_GDB.
7791 (riscv_lookup_target_description): New function, only define if
7792 GDBSERVER is not defined.
7793 * arch/riscv.h (riscv_create_target_description): Declare only
7794 when GDBSERVER is defined.
7795 (riscv_lookup_target_description): New declaration when GDBSERVER
7796 is not defined.
7797 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7798 (riscv_linux_read_features): ...this, and return
7799 riscv_gdbarch_features instead of target_desc.
7800 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7801 (riscv_linux_read_description): Rename to...
7802 (riscv_linux_read_features): ...this.
7803 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7804 Update to use riscv_gdbarch_features and
7805 riscv_lookup_target_description.
7806 * riscv-tdep.c (riscv_find_default_target_description): Use
7807 riscv_lookup_target_description instead of
7808 riscv_create_target_description.
7809
373d7ac0
SM
78102020-02-18 Simon Marchi <simon.marchi@efficios.com>
7811
7812 * valprint.c (generic_val_print_enum_1): When printing a flag
7813 enum with value 0 and there is no enumerator with value 0, print
7814 just "0" instead of "(unknown: 0x0)".
7815
b29a2df0
SM
78162020-02-18 Simon Marchi <simon.marchi@efficios.com>
7817
7818 * valprint.c (generic_val_print_enum_1): Print unknown part of
7819 flag enum in hex.
7820
6740f0cc
SM
78212020-02-18 Simon Marchi <simon.marchi@efficios.com>
7822
7823 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7824 flag enums to contain duplicate enumerators.
7825 * valprint.c (generic_val_print_enum_1): Update comment.
7826
edd45eb0
SM
78272020-02-18 Simon Marchi <simon.marchi@efficios.com>
7828
7829 * dwarf2/read.c: Include "count-one-bits.h".
7830 (update_enumeration_type_from_children): If an enumerator has
7831 multiple bits set, don't treat the enumeration as a "flag enum".
7832 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7833 of flag enums have 0 or 1 bit set.
7834
6d0cf446
BE
78352020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7836
7837 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7838 conversion.
7839 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7840 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7841 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7842 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7843 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7844
7001c1b7
SM
78452020-02-18 Simon Marchi <simon.marchi@efficios.com>
7846
7847 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7848
fdb61c6c
SM
78492020-02-14 Simon Marchi <simon.marchi@efficios.com>
7850
7851 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7852 displaced_step_closure_up.
7853 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7854 (struct displaced_step_closure_up):
7855 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7856 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7857 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7858 Likewise.
7859 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7860 * gdbarch.c, gdbarch.h: Re-generate.
7861 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7862 displaced_step_closure_up.
7863 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7864 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7865 * infrun.h (displaced_step_closure_up): New type alias.
7866 (struct displaced_step_inferior_state) <step_closure>: Change
7867 type to displaced_step_closure_up.
7868 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7869 displaced_step_closure_up.
7870 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7871
a4a38eb4
TT
78722020-02-14 Tom Tromey <tom@tromey.com>
7873
7874 * minidebug.c (gnu_debug_key): New global.
7875 (find_separate_debug_file_in_section): Use it.
7876
e8217e61
SM
78772020-02-14 Simon Marchi <simon.marchi@efficios.com>
7878
7879 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7880 std::unique_ptr.
7881 * gdbarch.c: Re-generate.
7882 * gdbarch.h: Re-generate.
7883 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7884 change.
7885 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7886 type to std::unique_ptr.
7887 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7888 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7889 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7890 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7891 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7892 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7893 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7894 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7895 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7896
d8d83535
SM
78972020-02-14 Simon Marchi <simon.marchi@efficios.com>
7898
7899 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7900 std::unique_ptr.
7901 (displaced_step_clear): Rename to...
7902 (displaced_step_reset): ... this. Just call displaced->reset ().
7903 (displaced_step_clear_cleanup): Rename to...
7904 (displaced_step_reset_cleanup): ... this.
7905 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7906 (displaced_step_fixup): Likewise.
7907 (resume_1): Likewise.
7908 (handle_inferior_event): Restore child's memory before calling
7909 displaced_step_fixup on the parent.
7910 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
7911 to std::unique_ptr.
7912 <step_closure>: Change type to std::unique_ptr.
7913
5f661e03
SM
79142020-02-14 Simon Marchi <simon.marchi@efficios.com>
7915
7916 * arm-tdep.c: Include count-one-bits.h.
7917 (cleanup_block_store_pc): Use count_one_bits.
7918 (cleanup_block_load_pc): Use count_one_bits.
7919 (arm_copy_block_xfer): Use count_one_bits.
7920 (thumb2_copy_block_xfer): Use count_one_bits.
7921 (thumb_copy_pop_pc_16bit): Use count_one_bits.
7922 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
7923 (thumb_get_next_pcs_raw): Use count_one_bits.
7924 (arm_get_next_pcs_raw): Use count_one_bits_l.
7925 * arch/arm.c (bitcount): Remove.
7926 * arch/arm.h (bitcount): Remove.
7927
8084e579
TT
79282020-02-14 Tom Tromey <tromey@adacore.com>
7929
7930 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
7931 Update.
7932 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
7933 * dwarf2/loc.c (call_site_find_chain_1): Return
7934 unique_xmalloc_ptr.
7935 (call_site_find_chain): Likewise.
7936
258bf0ee
RB
79372020-02-14 Richard Biener <rguenther@suse.de>
7938
7939 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
7940 on expression with division operators.
7941
f98a8458
AKS
79422020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7943
7944 * MAINTAINERS (Write After Approval): Adding myself.
7945
d1437c0e
TT
79462020-02-12 Tom Tromey <tom@tromey.com>
7947
7948 * event-loop.c (event_data, gdb_event, event_handler_func):
7949 Remove.
7950
3d4560f7
TT
79512020-02-12 Tom Tromey <tom@tromey.com>
7952
7953 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
7954 (dwarf2_frame_objfile_data): Add comment.
7955 (find_comp_unit, set_comp_unit): New functions.
7956 (dwarf2_frame_find_fde): Use find_comp_unit.
7957 (dwarf2_build_frame_info): Use set_comp_unit.
7958
21982304
TT
79592020-02-12 Tom Tromey <tom@tromey.com>
7960
7961 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
7962 (comp_unit): Don't initialize objfile.
7963 (execute_cfa_program): Add text_offset parameter.
7964 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
7965 (dwarf2_frame_cache): Update.
7966 (dwarf2_build_frame_info): Don't set "objfile" member.
7967
4debb237
TT
79682020-02-12 Tom Tromey <tom@tromey.com>
7969
7970 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
7971 (decode_frame_entry): Likewise.
7972 (dwarf2_build_frame_info): Update.
7973
0d404d44
TT
79742020-02-12 Tom Tromey <tom@tromey.com>
7975
7976 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
7977 (decode_frame_entry_1): Use the comp_unit obstack.
7978
a7a3ae5c
TT
79792020-02-12 Tom Tromey <tom@tromey.com>
7980
7981 * dwarf2/frame.c (struct comp_unit): Add initializers and
7982 constructor.
7983 (dwarf2_frame_objfile_data): Store a comp_unit.
7984 (dwarf2_frame_find_fde): Update.
7985 (dwarf2_build_frame_info): Use "new".
7986
a9d65418
TT
79872020-02-12 Tom Tromey <tom@tromey.com>
7988
7989 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
7990 (dwarf2_fde_table): Typedef for std::vector.
7991 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
7992 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
7993 (decode_frame_entry): Update.
7994 (dwarf2_build_frame_info): Use "new".
7995
7559c217
CB
79962020-02-12 Christian Biesinger <cbiesinger@google.com>
7997
7998 * arm-tdep.c (arm_gdbarch_init): Update.
7999 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8000 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8001 have_neon, is_m>: Change to bool.
8002
aeefc73c
CB
80032020-02-12 Christian Biesinger <cbiesinger@google.com>
8004
8005 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8006
d27b8e5f
TT
80072020-02-12 Tom Tromey <tom@tromey.com>
8008
8009 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8010
cd5900f3
HD
80112020-02-12 Hannes Domani <ssbssa@yahoo.de>
8012
8013 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8014 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8015
f056b22b
TT
80162020-02-11 Tom Tromey <tom@tromey.com>
8017
8018 * psymtab.h: Update comment.
8019
f92ff6b5
TT
80202020-02-11 Tom Tromey <tom@tromey.com>
8021
8022 * gdb_obstack.h (struct auto_obstack): Use
8023 DISABLE_COPY_AND_ASSIGN.
8024
3fd6912b
TT
80252020-02-11 Tom Tromey <tom@tromey.com>
8026
8027 * dwarf2/frame.h (struct objfile): Don't forward declare.
8028
69ed9b74
CB
80292020-02-11 Christian Biesinger <cbiesinger@google.com>
8030
8031 * cris-tdep.c (cris_supply_gregset): Change signature to match
8032 what struct regset expects.
8033 (cris_regset): New struct.
8034 (fetch_core_registers): Remove.
8035 (cris_iterate_over_regset_sections): New function.
8036 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8037 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8038
bda874f6
CB
80392020-02-11 Christian Biesinger <cbiesinger@google.com>
8040
8041 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8042 registers.
8043
754e1564
CB
80442020-02-11 Christian Biesinger <cbiesinger@google.com>
8045
8046 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8047
8ddd8e0e
SM
80482020-02-11 Simon Marchi <simon.marchi@efficios.com>
8049
8050 * configure: Re-generate.
8051
898e7f60
SM
80522020-02-11 Simon Marchi <simon.marchi@efficios.com>
8053
8054 * configure: Re-generate.
8055
58df732b
SM
80562020-02-11 Simon Marchi <simon.marchi@efficios.com>
8057
8058 * acinclude: Update warning.m4 path.
8059 * warning.m4: Move to gdbsupport.
8060
da5bd37e
TT
80612020-02-11 Tom Tromey <tromey@adacore.com>
8062
8063 * remote.c (remote_console_output): Update.
8064 * printcmd.c (printf_command): Update.
8065 * event-loop.c (gdb_wait_for_event): Update.
8066 * linux-nat.c (sigchld_handler): Update.
8067 * remote-sim.c (gdb_os_write_stdout): Update.
8068 (gdb_os_flush_stdout): Update.
8069 (gdb_os_flush_stderr): Update.
8070 (gdb_os_write_stderr): Update.
8071 * exceptions.c (print_exception): Update.
8072 * remote-fileio.c (remote_fileio_func_read): Update.
8073 (remote_fileio_func_write): Update.
8074 * tui/tui.c (tui_enable): Update.
8075 * tui/tui-interp.c (tui_interp::init): Update.
8076 * utils.c (init_page_info): Update.
8077 (putchar_unfiltered, fputc_unfiltered): Update.
8078 (gdb_flush): Update.
8079 (emit_style_escape): Update.
8080 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8081 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8082 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8083 (stderr_file::write): Update.
8084 (stderr_file::puts): Update.
8085 * ui-file.h (ui_file_isatty, ui_file_write)
8086 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8087 (ui_file_puts): Don't declare.
8088
85f0dd3c
TV
80892020-02-10 Tom de Vries <tdevries@suse.de>
8090
8091 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8092 sentinel to char *.
8093
2e927613
TV
80942020-02-09 Tom de Vries <tdevries@suse.de>
8095
8096 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8097 filename if it matches "<artificial>".
8098
6bafc845
HD
80992020-02-09 Hannes Domani <ssbssa@yahoo.de>
8100
8101 * windows-tdep.c (struct enum_value_name): New struct.
8102 (create_enum): New function.
8103 (windows_get_siginfo_type): Create and use enum types.
8104
7928d571
HD
81052020-02-09 Hannes Domani <ssbssa@yahoo.de>
8106
8107 * NEWS: Mention $_siginfo support for Windows.
8108 * windows-nat.c (handle_exception): Set siginfo_er.
8109 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8110 (windows_xfer_siginfo): New function.
8111 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8112 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8113 (init_windows_gdbarch_data): New function.
8114 (get_windows_gdbarch_data): New function.
8115 (windows_get_siginfo_type): New function.
8116 (windows_init_abi): Register windows_get_siginfo_type.
8117 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8118
6751ebae
TT
81192020-02-08 Tom Tromey <tom@tromey.com>
8120
8121 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8122 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8123 <keep>: Declare method.
8124 <m_keep>: Remove member.
8125 <~cutu_reader>: Remove.
8126 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8127 (cutu_reader::cutu_reader): Update.
8128 (cutu_reader::keep): Rename from ~cutu_reader.
8129 (process_psymtab_comp_unit, build_type_psymtabs_1)
8130 (process_skeletonless_type_unit, load_partial_comp_unit)
8131 (load_full_comp_unit, dwarf2_read_addr_index)
8132 (read_signatured_type): Update.
8133
135f5437
TT
81342020-02-08 Tom Tromey <tom@tromey.com>
8135
8136 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8137 "want_partial_unit" parameter.
8138 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8139 Inline check for DW_TAG_partial_unit.
8140 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8141
9f66ff1c
TT
81422020-02-08 Tom Tromey <tom@tromey.com>
8143
8144 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8145 read.c.
8146 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8147 read.c.
8148
c8a7a66f
TT
81492020-02-08 Tom Tromey <tom@tromey.com>
8150
8151 * dwarf2/read.c (read_address): Move to comp-unit.c.
8152 (dwarf2_rnglists_process, dwarf2_ranges_process)
8153 (read_attribute_value, dwarf_decode_lines_1)
8154 (var_decode_location, decode_locdesc): Update.
8155 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8156 read.c. Remove "cu" parameter.
8157 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8158 method.
8159
8266302d
TT
81602020-02-08 Tom Tromey <tom@tromey.com>
8161
8162 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8163 (read_indirect_line_string): Update.
8164 * dwarf2/comp-unit.c (read_offset): Remove.
8165 (read_comp_unit_head): Update.
8166 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8167 method.
8168 (read_offset): Don't declare.
8169
4057dfde
TT
81702020-02-08 Tom Tromey <tom@tromey.com>
8171
8172 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8173 * dwarf2/read.c (struct comp_unit_head): Move to
8174 dwarf2/comp-unit.h.
8175 (enum class rcuh_kind): Move to comp-unit.h.
8176 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8177 (read_comp_unit_head, error_check_comp_unit_head)
8178 (read_and_check_comp_unit_head): Move to comp-unit.c.
8179 (read_offset, dwarf_unit_type_name): Likewise.
8180 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8181 (cutu_reader::cutu_reader, read_call_site_scope)
8182 (find_partial_die, follow_die_offset): Update.
8183 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8184
24aa364d
TT
81852020-02-08 Tom Tromey <tom@tromey.com>
8186
8187 * dwarf2/read.c (read_offset_1): Move to leb.c.
8188 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8189 (dwarf_decode_macro_bytes): Update.
8190 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8191 * dwarf2/leb.h (read_offset): Declare.
8192
2c7d5afc
TT
81932020-02-08 Tom Tromey <tom@tromey.com>
8194
8195 * dwarf2/read.c (dwarf2_section_size): Remove.
8196 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8197 Update.
8198 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8199
4075cb26
TT
82002020-02-08 Tom Tromey <tom@tromey.com>
8201
8202 * dwarf2/read.c (read_initial_length): Move to leb.c.
8203 * dwarf2/leb.h (read_initial_length): Declare.
8204 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8205 handle_nonstd parameter.
8206 * dwarf2/frame.c (read_initial_length): Remove.
8207 (decode_frame_entry_1): Update.
8208
09ba997f
TT
82092020-02-08 Tom Tromey <tom@tromey.com>
8210
8211 * dwarf2/loc.c (dwarf2_find_location_expression)
8212 (dwarf_evaluate_loc_desc::get_tls_address)
8213 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8214 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8215 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8216 (dwarf2_compile_property_to_c)
8217 (dwarf2_loc_desc_get_symbol_read_needs)
8218 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8219 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8220 (loclist_describe_location, loclist_tracepoint_var_ref)
8221 (loclist_generate_c_location): Update.
8222 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8223 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8224 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8225 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8226 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8227 (dwarf2_per_cu_data::addr_size)
8228 (dwarf2_per_cu_data::ref_addr_size)
8229 (dwarf2_per_cu_data::text_offset)
8230 (dwarf2_per_cu_data::addr_type): Now methods.
8231 (per_cu_header_read_in): Make per_cu "const".
8232 (dwarf2_version): Remove.
8233 (dwarf2_per_cu_data::int_type): Now a method.
8234 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8235 (set_die_type, read_array_type, read_subrange_index_type)
8236 (read_tag_string_type, read_subrange_type): Update.
8237 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8238 offset_size, ref_addr_size, text_offset, addr_type, version,
8239 objfile, int_type, addr_sized_int_type>: Declare methods.
8240
96c738c0
TT
82412020-02-08 Tom Tromey <tom@tromey.com>
8242
8243 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8244 Move earlier.
8245
8fdd972c
TT
82462020-02-08 Tom Tromey <tom@tromey.com>
8247
8248 * dwarf2/read.h (dwarf_line_debug): Declare.
8249 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8250 * dwarf2/read.c: Move line_header code to new files.
8251 (dwarf_line_debug): No longer static.
8252 * dwarf2/line-header.c: New file.
8253 * dwarf2/line-header.h: New file.
8254
03075812
TT
82552020-02-08 Tom Tromey <tom@tromey.com>
8256
8257 * dwarf2/read.c (struct line_header) <file_full_name,
8258 file_file_name>: Return unique_xmalloc_ptr.
8259 (line_header::file_file_name): Update.
8260 (line_header::file_full_name): Update.
8261 (dw2_get_file_names_reader): Update.
8262 (macro_start_file): Update.
8263
bb822404
TT
82642020-02-08 Tom Tromey <tom@tromey.com>
8265
8266 * dwarf2/read.c (struct line_header) <file_full_name,
8267 file_file_name>: Declare methods.
8268 (dw2_get_file_names_reader): Update.
8269 (file_file_name): Now a method.
8270 (file_full_name): Likewise.
8271 (macro_start_file): Update.
8272
009b64fc
TT
82732020-02-08 Tom Tromey <tom@tromey.com>
8274
8275 * dwarf2/read.c (dwarf_always_disassemble)
8276 (show_dwarf_always_disassemble): Move to loc.c.
8277 (_initialize_dwarf2_read): Move "always-disassemble" registration
8278 to loc.c.
8279 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8280 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8281 static.
8282 (show_dwarf_always_disassemble): Move from read.c.
8283 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8284
5895093f
TT
82852020-02-08 Tom Tromey <tom@tromey.com>
8286
8287 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8288 (create_quick_file_names_table): Return htab_up.
8289 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8290 Update.
8291 * dwarf2/read.h (struct dwarf2_per_objfile)
8292 <quick_file_names_table>: Now htab_up.
8293
b3b32279
TT
82942020-02-08 Tom Tromey <tom@tromey.com>
8295
8296 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8297
1d33d811
TT
82982020-02-08 Tom Tromey <tom@tromey.com>
8299
8300 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8301 Rewrite.
8302 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8303 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8304 (abbrev_table::abbrev_table): No longer inline.
8305 (ABBREV_HASH_SIZE): Remove.
8306 (abbrev_table::m_abbrevs): Now an htab_up.
8307
86de1d91
TT
83082020-02-08 Tom Tromey <tom@tromey.com>
8309
8310 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8311 (cutu_reader): Update.
8312 (build_type_psymtabs_1): Update.
8313 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8314 (abbrev_table::alloc_abbrev): Update.
8315 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8316 (abbrev_table::read): New static method, renamed from
8317 abbrev_table_read_table.
8318 (abbrev_table::alloc_abbrev)
8319 (abbrev_table::add_abbrev): Now private.
8320 (abbrev_table::abbrev_table): Now private.
8321 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8322
0335378b
TT
83232020-02-08 Tom Tromey <tom@tromey.com>
8324
8325 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8326 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8327 htab_up.
8328
48b490f2
TT
83292020-02-08 Tom Tromey <tom@tromey.com>
8330
8331 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8332 htab_up.
8333 (lookup_dwo_unit_in_dwp): Update.
8334 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8335 on obstack.
8336
bc68fb19
TT
83372020-02-08 Tom Tromey <tom@tromey.com>
8338
8339 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8340 obstack.
8341
d15acc42
TT
83422020-02-08 Tom Tromey <tom@tromey.com>
8343
8344 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8345 line_header_hash.
8346 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8347 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8348 Change type to htab_up.
8349
eaa5fa8b
TT
83502020-02-08 Tom Tromey <tom@tromey.com>
8351
8352 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8353 htab_up. Don't allocate on obstack.
8354 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8355 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8356 Change type to htab_up.
8357
b0b6a987
TT
83582020-02-08 Tom Tromey <tom@tromey.com>
8359
8360 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8361 Change type to htab_up.
8362 * dwarf2/read.c (create_signatured_type_table_from_index)
8363 (create_signatured_type_table_from_debug_names)
8364 (create_all_type_units, add_type_unit)
8365 (lookup_dwo_signatured_type, lookup_signatured_type)
8366 (process_skeletonless_type_unit): Update.
8367 (create_debug_type_hash_table, create_debug_types_hash_table):
8368 Change type of types_htab.
8369 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8370 htab_up. Don't allocate on obstack.
8371 (create_cus_hash_table): Change type of cus_htab parameter.
8372 (struct dwo_file) <cus, tus>: Now htab_up.
8373 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8374 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8375 (queue_and_load_all_dwo_tus): Update.
8376 * dwarf2/index-write.c (write_gdbindex): Update.
8377 (write_debug_names): Update.
8378
39856def
TT
83792020-02-08 Tom Tromey <tom@tromey.com>
8380
8381 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8382 dwarf2/read.c. Remove "next" member. Add constructor ntad
8383 destructor.
8384 (struct dwarf2_per_objfile) <queue>: New member.
8385 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8386 dwarf2/read.h.
8387 (dwarf2_queue, dwarf2_queue_tail): Remove.
8388 (class dwarf2_queue_guard): Add parameter to constructor. Use
8389 DISABLE_COPY_AND_ASSIGN.
8390 <m_per_objfile>: New member.
8391 <~dwarf2_queue_guard>: Rewrite.
8392 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8393 Update.
8394 (~dwarf2_queue_item): New.
8395
3e225074
TT
83962020-02-08 Tom Tromey <tom@tromey.com>
8397
8398 * dwarf2/read.c (struct die_info) <has_children>: New member.
8399 (dw2_get_file_names_reader): Remove has_children.
8400 (dw2_get_file_names): Update.
8401 (read_cutu_die_from_dwo): Remove has_children.
8402 (cutu_reader::init_tu_and_read_dwo_dies)
8403 (cutu_reader::cutu_reader): Update.
8404 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8405 Remove has_children.
8406 (build_type_psymtabs_1, process_skeletonless_type_unit)
8407 (load_partial_comp_unit, load_full_comp_unit): Update.
8408 (create_dwo_cu_reader): Remove has_children.
8409 (create_cus_hash_table, read_die_and_children): Update.
8410 (read_full_die_1,read_full_die): Remove has_children.
8411 (read_signatured_type): Update.
8412 (class cutu_reader) <has_children>: Remove.
8413
82ca8957
TT
84142020-02-08 Tom Tromey <tom@tromey.com>
8415
8416 * dwarf2/expr.c: Rename from dwarf2expr.c.
8417 * dwarf2/expr.h: Rename from dwarf2expr.h.
8418 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8419 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8420 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8421 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8422 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8423 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8424 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8425 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8426 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8427 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8428 * dwarf2/loc.c: Rename from dwarf2loc.c.
8429 * dwarf2/loc.h: Rename from dwarf2loc.h.
8430 * dwarf2/read.c: Rename from dwarf2read.c.
8431 * dwarf2/read.h: Rename from dwarf2read.h.
8432 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8433 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8434 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8435 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8436 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8437 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8438 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8439 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8440 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8441 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8442 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8443 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8444 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8445 Update.
8446 * Makefile.in (COMMON_SFILES): Update.
8447 (HFILES_NO_SRCDIR): Update.
8448
9e35d499
TT
84492020-02-08 Tom Tromey <tom@tromey.com>
8450
8451 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8452 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8453
1eba2311
TT
84542020-02-08 Tom Tromey <tom@tromey.com>
8455
8456 * dwarf2read.h (struct die_info): Don't declare.
8457
e41c2da2
TT
84582020-02-08 Tom Tromey <tom@tromey.com>
8459
8460 * dwarf2read.h (die_info_ptr): Remove typedef.
8461
4fc6c0d5
TT
84622020-02-08 Tom Tromey <tom@tromey.com>
8463
8464 * dwarf2read.c (read_call_site_scope)
8465 (handle_data_member_location, dwarf2_add_member_fn)
8466 (mark_common_block_symbol_computed, read_common_block)
8467 (attr_to_dynamic_prop, partial_die_info::read)
8468 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8469 (dwarf2_symbol_mark_computed, set_die_type): Update.
8470 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8471 method.
8472 (attr_form_is_block): Don't declare.
8473 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8474
cd6c91b4
TT
84752020-02-08 Tom Tromey <tom@tromey.com>
8476
8477 * dwarf2read.c (dwarf2_find_base_address, )
8478 (read_call_site_scope, rust_containing_type)
8479 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8480 (handle_data_member_location, dwarf2_add_member_fn)
8481 (get_alignment, read_structure_type, process_structure_scope)
8482 (mark_common_block_symbol_computed, read_common_block)
8483 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8484 (partial_die_info::read, read_attribute_value, new_symbol)
8485 (lookup_die_type, dwarf2_get_ref_die_offset)
8486 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8487 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8488 (dwarf2_symbol_mark_computed): Update.
8489 * dwarf2/attribute.h (struct attribute) <value_as_address,
8490 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8491 methods.
8492 (value_as_address, attr_form_is_section_offset)
8493 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8494 * dwarf2/attribute.c (attribute::value_as_address)
8495 (attribute::form_is_section_offset, attribute::form_is_constant)
8496 (attribute::form_is_ref): Now methods.
8497
162dce55
TT
84982020-02-08 Tom Tromey <tom@tromey.com>
8499
8500 * dwarf2read.c (struct attribute, DW_STRING)
8501 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8502 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8503 (attr_form_is_block, attr_form_is_section_offset)
8504 (attr_form_is_constant, attr_form_is_ref): Move.
8505 * dwarf2/attribute.h: New file.
8506 * dwarf2/attribute.c: New file, from dwarf2read.c.
8507 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8508
3054dd54
TT
85092020-02-08 Tom Tromey <tom@tromey.com>
8510
8511 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8512 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8513 Move.
8514 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8515 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8516 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8517 abbrev.c.
8518 * dwarf2/abbrev.h: New file.
8519 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8520 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8521
96b79293
TT
85222020-02-08 Tom Tromey <tom@tromey.com>
8523
8524 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8525 (dwarf2_section_size, dwarf2_get_section_info)
8526 (create_signatured_type_table_from_debug_names)
8527 (create_addrmap_from_aranges, read_debug_names_from_section)
8528 (get_gdb_index_contents_from_section, read_comp_unit_head)
8529 (error_check_comp_unit_head, read_abbrev_offset)
8530 (create_debug_type_hash_table, init_cu_die_reader)
8531 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8532 (read_comp_units_from_section, create_cus_hash_table)
8533 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8534 (create_dwp_v2_section, dwarf2_rnglists_process)
8535 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8536 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8537 (read_indirect_string_from_dwz, read_addr_index_1)
8538 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8539 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8540 (fill_in_loclist_baton): Update.
8541 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8542 get_containing_section, get_bfd_owner, get_bfd_section,
8543 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8544 (dwarf2_read_section, get_section_name, get_section_file_name)
8545 (get_containing_section, get_section_bfd_owner)
8546 (get_section_bfd_section, get_section_name, get_section_file_name)
8547 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8548 declare.
8549 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8550 (dwarf2_section_info::get_bfd_owner)
8551 (dwarf2_section_info::get_bfd_section)
8552 (dwarf2_section_info::get_name)
8553 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8554 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8555 (dwarf2_section_info::read): Now methods.
8556 * dwarf-index-write.c (class debug_names): Update.
8557
2c86cff9
TT
85582020-02-08 Tom Tromey <tom@tromey.com>
8559
8560 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8561 Move to dwarf2/section.h.
8562 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8563 (get_section_bfd_section, get_section_name)
8564 (get_section_file_name, get_section_id, get_section_flags)
8565 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8566 dwarf2/section.c.
8567 * dwarf2/section.h: New file.
8568 * dwarf2/section.c: New file, from dwarf2read.c.
8569 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8570
f4382c45
TT
85712020-02-08 Tom Tromey <tom@tromey.com>
8572
8573 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8574 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8575 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8576 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8577 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8578 * dwarf2/leb.h: New file, from dwarf2read.c.
8579 * dwarf2/leb.c: New file, from dwarf2read.c.
8580 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8581 Remove.
8582 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8583 (COMMON_SFILES): Add dwarf2/leb.c.
8584
01840b7a
JB
85852020-02-08 Joel Brobecker <brobecker@adacore.com>
8586
8587 GDB 9.1 released.
8588
dfcb27e4
IB
85892020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8590
8591 PR gdb/25190:
aac66a4c
SM
8592 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8593 * gdb/remote.c (remote_console_output): Update.
8594 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8595 (ui_file_puts): ...this.
8596 * gdb/ui-file.h (ui_file_puts): Add declaration.
8597 * gdb/utils.c (emit_style_escape): Update.
8598 (flush_wrap_buffer): Update.
8599 (fputs_maybe_filtered): Update.
8600 (fputs_unfiltered): Add function.
dfcb27e4 8601
faa17681
IB
86022020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8603
aac66a4c
SM
8604 * gdb/event-loop.c (gdb_wait_for_event): Update.
8605 * gdb/printcmd.c (printf_command): Update.
8606 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8607 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8608 (gdb_os_flush_stderr): Update.
8609 * gdb/remote.c (remote_console_output): Update.
8610 * gdb/ui-file.c (gdb_flush): Rename to...
8611 (ui_file_flush): ...this.
8612 (stderr_file::write): Update.
8613 (stderr_file::puts): Update.
8614 * gdb/ui-file.h (gdb_flush): Rename to...
8615 (ui_file_flush): ...this.
8616 * gdb/utils.c (gdb_flush): Add function.
8617 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8618
5abbbe1d
TT
86192020-02-07 Tom Tromey <tromey@adacore.com>
8620
8621 PR breakpoints/24915:
8622 * source.c (find_and_open_source): Do not check basenames_may_differ.
8623
919adfe8
TT
86242020-02-07 Tom Tromey <tom@tromey.com>
8625
8626 * README: Update gdbserver documentation.
8627 * gdbserver: Move to top level.
8628 * configure.tgt (build_gdbserver): Remove.
8629 * configure.ac: Remove --enable-gdbserver.
8630 * configure: Rebuild.
8631 * Makefile.in (distclean): Don't mention gdbserver.
8632
1d5d29e7
SV
86332020-02-06 Shahab Vahedi <shahab@synopsys.com>
8634
8635 * source-cache.c (source_cache::ensure): Surround
8636 get_plain_source_lines with a try/catch.
8637 (source_cache::get_line_charpos): Get rid of try/catch
8638 and only check for the return value of "ensure".
8639 * tui/tui-source.c (tui_source_window::set_contents):
8640 Simplify "nlines" calculation.
8641
6eb1129c
SV
86422020-02-06 Shahab Vahedi <shahab@synopsys.com>
8643
8644 * MAINTAINERS (Write After Approval): Add myself.
8645
c6a42d11
CB
86462020-02-05 Christian Biesinger <cbiesinger@google.com>
8647
8648 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8649 function call.
8650
c8ecdda6
CB
86512020-02-05 Christian Biesinger <cbiesinger@google.com>
8652
8653 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8654
f6480e70
MR
86552020-02-05 Maciej W. Rozycki <macro@wdc.com>
8656
8657 * nat/riscv-linux-tdesc.h: New file.
8658 * nat/riscv-linux-tdesc.c: New file, taking code from...
8659 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8660 ... here.
8661 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8662 NATDEPFILES.
8663
dcc9fbc6
AB
86642020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8665
8666 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8667 we don't set the fake simulator ptid to the null_ptid.
8668
719546c4
SM
86692020-02-03 Simon Marchi <simon.marchi@efficios.com>
8670
8671 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8672 * gdbthread.h (class thread_info) <resumed>: Likewise.
8673 * infrun.c (resume_1): Likewise.
8674 (proceed): Likewise.
8675 (infrun_thread_stop_requested): Likewise.
8676 (stop_all_threads): Likewise.
8677 (handle_inferior_event): Likewise.
8678 (restart_threads): Likewise.
8679 (finish_step_over): Likewise.
8680 (keep_going_stepped_thread): Likewise.
8681 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8682 (linux_handle_extended_wait): Likewise.
8683 * record-btrace.c (get_thread_current_frame_id): Likewise.
8684 * record-full.c (record_full_wait_1): Likewise.
8685 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8686 * target.c (target_resume): Likewise.
8687 * thread.c (set_running_thread): Likewise.
8688
e409c542
AKS
86892020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8690
8691 * f-valprint.c (f77_print_array_1): Changed datatype of index
8692 variable to LONGEST from int to enable it to contain bound
8693 values correctly.
8694
ee98c0da
MR
86952020-02-03 Maciej W. Rozycki <macro@wdc.com>
8696
8697 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8698 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8699 offsets according to FLEN determined.
8700 (riscv_linux_nat_target::read_description): Determine FLEN
8701 dynamically.
8702 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8703 according to FLEN determined.
8704 (riscv_linux_nat_target::store_registers): Likewise.
8705
aa66aac4
SV
87062020-02-01 Shahab Vahedi <shahab@synopsys.com>
8707
8708 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8709 when reg->group is empty and reggroup is not.
8710
fd9faca8
TT
87112020-01-31 Tom Tromey <tromey@adacore.com>
8712
8713 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8714 Call beneath target's mourn_inferior after unpushing.
8715
42330a68
AB
87162020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8717
8718 PR tui/9765
8719 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8720 have enough lines to fill the screen, still return the lowest
8721 address we found.
8722
7a27a45b
AB
87232020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8724
8725 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8726 '-', '<', and '>' commands.
8727
c47f70e2
PA
87282020-01-29 Pedro Alves <palves@redhat.com>
8729 Sergio Durigan Junior <sergiodj@redhat.com>
8730
8731 * infcmd.c (construct_inferior_arguments): Assert that
8732 'argc' is greater than 0.
8733
5133a315
LM
87342020-01-29 Luis Machado <luis.machado@linaro.org>
8735
8736 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8737 (BRK_INSN_MASK): Define to 0xd4200000.
8738 (aarch64_program_breakpoint_here_p): New function.
8739 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8740 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8741 breakpoint.c.
8742 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8743 breakpoint.h
8744 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8745 call gdbarch_program_breakpoint_here_p.
8746 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8747 default_program_breakpoint_here_p, changed return type to bool and
8748 simplified.
8749 * breakpoint.h (program_breakpoint_here): Moved prototype to
8750 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8751 return type to bool.
8752 * gdbarch.c: Regenerate.
8753 * gdbarch.h: Regenerate.
8754 * gdbarch.sh (program_breakpoint_here_p): New method.
8755 * infrun.c (handle_signal_stop): Call
8756 gdbarch_program_breakpoint_here_p.
8757
168f8c6b
TT
87582020-01-26 Tom Tromey <tom@tromey.com>
8759
8760 * ctfread.c (struct ctf_fp_info): Reindent.
8761 (_initialize_ctfread): Remove.
8762
128a391f
TT
87632020-01-26 Tom Tromey <tom@tromey.com>
8764
8765 * psymtab.c (partial_map_expand_apply)
8766 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8767 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8768 (psym_print_stats, psym_expand_symtabs_for_function)
8769 (psym_map_symbol_filenames, psym_map_matching_symbols)
8770 (psym_expand_symtabs_matching)
8771 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8772 (maintenance_check_psymtabs): Use new methods.
8773 * psympriv.h (struct partial_symtab) <readin_p,
8774 get_compunit_symtab>: New methods.
8775 <readin, compunit_symtab>: Remove members.
8776 (struct standard_psymtab): New.
8777 (struct legacy_psymtab): Derive from standard_psymtab.
8778 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8779 standard_psymtab.
8780 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8781
0494dbec
TT
87822020-01-26 Tom Tromey <tom@tromey.com>
8783
8784 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8785 read_dependencies. Add assert.
8786 * psymtab.c (partial_symtab::read_dependencies): New method.
8787 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8788 method.
8789 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8790 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8791 read_dependencies.
8792 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8793 Add assert.
8794
8566b89b
TT
87952020-01-26 Tom Tromey <tom@tromey.com>
8796
8797 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8798 Call expand_psymtab.
8799 (xcoff_read_symtab): Call expand_psymtab.
8800 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8801 legacy_expand_psymtab.
8802 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8803 method.
8804 (struct legacy_psymtab) <expand_psymtab>: Implement.
8805 <legacy_expand_psymtab>: New member.
8806 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8807 (parse_partial_symbols): Set legacy_expand_psymtab.
8808 (psymtab_to_symtab_1): Change argument order. Call
8809 expand_psymtab.
8810 (new_psymtab): Set legacy_expand_psymtab.
8811 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8812 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8813 expand_psymtab.
8814 (dwarf2_psymtab::expand_psymtab): Rename from
8815 psymtab_to_symtab_1. Call expand_psymtab.
8816 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8817 (dbx_end_psymtab): Likewise.
8818 (dbx_psymtab_to_symtab_1): Change argument order. Call
8819 expand_psymtab.
8820 (dbx_read_symtab): Call expand_psymtab.
8821 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8822 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8823 (ctf_psymtab::read_symtab): Call expand_psymtab.
8824
077cbab2
TT
88252020-01-26 Tom Tromey <tom@tromey.com>
8826
8827 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8828 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8829 messages.
8830 * mdebugread.c (mdebug_read_symtab): Remove prints.
8831 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8832 assert.
8833 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8834
891813be
TT
88352020-01-26 Tom Tromey <tom@tromey.com>
8836
8837 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8838 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8839 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8840 legacy_symtab.
8841 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8842 * psymtab.c (psymtab_to_symtab): Call method.
8843 (dump_psymtab): Update.
8844 * psympriv.h (struct partial_symtab): Add virtual destructor.
8845 <read_symtab>: New method.
8846 (struct legacy_symtab): New.
8847 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8848 (struct pst_map) <pst>: Now a legacy_psymtab.
8849 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8850 (new_psymtab): Use legacy_psymtab.
8851 * dwarf2read.h (struct dwarf2_psymtab): New.
8852 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8853 * dwarf2read.c (dwarf2_create_include_psymtab)
8854 (dwarf2_build_include_psymtabs, create_type_unit_group)
8855 (create_partial_symtab, process_psymtab_comp_unit_reader)
8856 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8857 (set_partial_user): Use dwarf2_psymtab.
8858 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8859 (psymtab_to_symtab_1, process_full_comp_unit)
8860 (process_full_type_unit, dwarf2_ranges_read)
8861 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8862 (dwarf_decode_lines): Use dwarf2_psymtab.
8863 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8864 (add_address_entry_worker, write_one_signatured_type)
8865 (recursively_count_psymbols, recursively_write_psymbols)
8866 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8867 (write_debug_names): Likewise.
8868 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8869 <pst>: Now a legacy_psymtab.
8870 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8871 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8872 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8873 * ctfread.c (struct ctf_psymtab): New.
8874 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8875 ctf_psymtab.
8876 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8877 (create_partial_symtab): Return a ctf_psymtab.
8878 (scan_partial_symbols): Update.
8879
c3693a1d
TT
88802020-01-26 Tom Tromey <tom@tromey.com>
8881
8882 * xcoffread.c (xcoff_start_psymtab): Use new.
8883 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8884 renamed from start_psymtab_common.
8885 * psympriv.h (struct partial_symtab): Add new constructor.
8886 (start_psymtab_common): Don't declare.
8887 * mdebugread.c (parse_partial_symbols): Use new.
8888 * dwarf2read.c (create_partial_symtab): Use new.
8889 * dbxread.c (start_psymtab): Use new.
8890 * ctfread.c (create_partial_symtab): Use new.
8891
32caafd0
TT
88922020-01-26 Tom Tromey <tom@tromey.com>
8893
8894 * xcoffread.c (xcoff_end_psymtab): Use new.
8895 * psymtab.c (start_psymtab_common): Use new.
8896 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8897 Update.
8898 * psympriv.h (struct partial_symtab): Add parameters to
8899 constructor. Don't inline.
8900 (allocate_psymtab): Don't declare.
8901 * mdebugread.c (new_psymtab): Use new.
8902 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8903 * dbxread.c (dbx_end_psymtab): Use new.
8904
abaa2f23
TT
89052020-01-26 Tom Tromey <tom@tromey.com>
8906
8907 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8908 allocate_psymtab. Update documentation.
8909 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8910 allocate_psymtab. Do not use new.
8911 (allocate_psymtab): Use new. Update.
8912
6d94535f
TT
89132020-01-26 Tom Tromey <tom@tromey.com>
8914
8915 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8916 * psymtab.c (psym_print_stats): Update.
8917 * psympriv.h (struct partial_symtab) <readin,
8918 psymtabs_addrmap_supported, anonymous>: Now bool.
8919 * mdebugread.c (psymtab_to_symtab_1): Update.
8920 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
8921 (build_type_psymtabs_reader, psymtab_to_symtab_1)
8922 (process_full_comp_unit, process_full_type_unit): Update.
8923 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8924 * ctfread.c (psymtab_to_symtab): Update.
8925
6f17252b
TT
89262020-01-26 Tom Tromey <tom@tromey.com>
8927
8928 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
8929 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
8930 * psymtab.c (psymtab_storage): Delete psymtabs.
8931 (psymtab_storage::allocate_psymtab): Use new.
8932 (psymtab_storage::discard_psymtab): Use delete.
8933 * psympriv.h (struct partial_symtab): Add constructor and
8934 initializers.
8935
f6f1cebc
TT
89362020-01-26 Tom Tromey <tom@tromey.com>
8937
8938 * machoread.c: Do not include psympriv.h.
8939
e47e48f6
PW
89402020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8941
8942 * NEWS: Mention the new option and the set/show commands.
8943
a2fedca9
PW
89442020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8945
8946 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
8947 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
8948 (validate_exec_file): New variables, enums, functions.
8949 (exec_file_locate_attach, print_section_info): Style the filenames.
8950 (_initialize_exec): Install show_exec_file_mismatch_command and
8951 set_exec_file_mismatch_command.
8952 * gdbcore.h (validate_exec_file): Declare.
8953 * infcmd.c (attach_command): Call validate_exec_file.
8954 * remote.c ( remote_target::remote_add_inferior): Likewise.
8955
7ffa82e1
AB
89562020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8957
8958 * frame.c (find_frame_sal): Move call to get_next_frame into more
8959 inner scope.
8960 * inline-frame.c (inilne_state) <inline_state>: Update argument
8961 types.
8962 (inilne_state) <skipped_symbol>: Rename to...
8963 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
8964 (skip_inline_frames): Build vector of skipped symbols and use this
8965 to reate the inline_state.
8966 (inline_skipped_symbol): Add a comment and some assertions, fetch
8967 skipped symbol from the list.
8968
3d92a3e3
AB
89692020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8970
8971 * buildsym.c (lte_is_less_than): Delete.
8972 (buildsym_compunit::end_symtab_with_blockvector): Create local
8973 lambda function to sort line table entries, and use
8974 std::stable_sort instead of std::sort.
8975 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
8976 markers when looking for a previous line.
8977
94a72be7
AB
89782020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8979
8980 * dwarf2read.c (lnp_state_machine::record_line): Include
8981 end_sequence parameter in debug print out. Record the line if we
8982 are at an end_sequence marker even if it's not the start of a
8983 statement.
8984 * symmisc.c (maintenance_print_one_line_table): Print end of
8985 sequence markers with 'END' not '0'.
8986
53af73bf
PA
89872020-01-24 Pedro Alves <palves@redhat.com>
8988
8989 PR gdb/25410
8990 * thread.c (scoped_restore_current_thread::restore): Use
8991 switch_to_inferior_no_thread.
8992 * exec.c: Include "progspace-and-thread.h".
8993 (add_target_sections, remove_target_sections):
8994 scoped_restore_current_pspace_and_thread instead of
8995 scoped_restore_current_thread.
8996 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
8997 and aspace to the inferior before calling clone_program_space.
8998 Remove stale comment.
8999
3050c6f4
CB
90002020-01-24 Christian Biesinger <cbiesinger@google.com>
9001
9002 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9003 (arm_netbsd_nat_target::fetch_registers): ...this.
9004 (arm_nbsd_nat_target::store_registers): Rename to...
9005 (arm_netbsd_nat_target::store_registers): ...this.
9006
73685c7e
CB
90072020-01-24 Christian Biesinger <cbiesinger@google.com>
9008
9009 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9010 register_t.
9011
89203d40
CB
90122020-01-24 Christian Biesinger <cbiesinger@google.com>
9013
9014 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9015 Update comment.
9016 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9017 Likewise.
9018 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9019 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9020 the correct replacement (iterate_over_regset_sections).
9021 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9022 Update comment.
9023
1ba1ac88
AB
90242020-01-24 Graham Markall <graham.markall@embecosm.com>
9025
9026 PR gdb/23718
9027 * gdb/python/python.c (execute_gdb_command): Call
9028 async_enable_stdin in catch block.
9029
f3364a6d
AB
90302020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9031
9032 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9033 SWITCH_THRU_ALL_UIS.
9034
733d0a67
AB
90352020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9036
9037 PR tui/9765
9038 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9039 comment, add extra parameter, and update to store previous symbol
9040 when appropriate.
9041 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9042 add extra parameter.
9043 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9044 remove unneeded parameter, add try/catch around gdb_print_insn,
9045 rewrite to add items to asm_lines vector.
9046 (tui_find_backward_disassembly_start_address): New function.
9047 (tui_find_disassembly_address): Updated throughout.
9048 (tui_disasm_window::set_contents): Update for changes to
9049 tui_disassemble.
9050 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9051 number of lines to scroll.
9052
b3b3bada
SM
90532020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9054
9055 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9056 (SECT_OFF_DATA): Likewise.
9057 (SECT_OFF_RODATA): Likewise.
9058 (SECT_OFF_TEXT): Likewise.
9059 (SECT_OFF_BSS): Likewise.
9060 (struct objfile) <text_section_offset, data_section_offset>: New
9061 methods.
9062 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9063 objfile::text_section_offset.
9064 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9065 * coffread.c (coff_symtab_read): Likewise.
9066 (enter_linenos): Likewise.
9067 (process_coff_symbol): Likewise.
9068 * ctfread.c (get_objfile_text_range): Likewise.
9069 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9070 Use objfile::data_section_offset.
9071 * dwarf2-frame.c (execute_cfa_program): Use
9072 objfile::text_section_offset.
9073 (dwarf2_frame_find_fde): Likewise.
9074 * dwarf2read.c (create_addrmap_from_index): Likewise.
9075 (create_addrmap_from_aranges): Likewise.
9076 (dw2_find_pc_sect_compunit_symtab): Likewise.
9077 (process_psymtab_comp_unit_reader): Likewise.
9078 (add_partial_symbol): Likewise.
9079 (add_partial_subprogram): Likewise.
9080 (process_full_comp_unit): Likewise.
9081 (read_file_scope): Likewise.
9082 (read_func_scope): Likewise.
9083 (read_lexical_block_scope): Likewise.
9084 (read_call_site_scope): Likewise.
9085 (dwarf2_rnglists_process): Likewise.
9086 (dwarf2_ranges_process): Likewise.
9087 (dwarf2_ranges_read): Likewise.
9088 (dwarf_decode_lines_1): Likewise.
9089 (new_symbol): Likewise.
9090 (dwarf2_fetch_die_loc_sect_off): Likewise.
9091 (dwarf2_per_cu_text_offset): Likewise.
9092 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9093 * hppa-tdep.c (read_unwind_info): Likewise.
9094 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9095 * psympriv.h (struct partial_symtab): Likewise.
9096 * psymtab.c (find_pc_sect_psymtab): Likewise.
9097 * solib-svr4.c (enable_break): Likewise.
9098 * stap-probe.c (relocate_address): Use
9099 objfile::data_section_offset.
9100 * xcoffread.c (enter_line_range): Use
9101 objfile::text_section_offset.
9102 (read_xcoff_symtab): Likewise.
9103
ab53f382
SM
91042020-01-23 Simon Marchi <simon.marchi@efficios.com>
9105
9106 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9107 declaration to narrower scopes.
9108
e7eee665
SM
91092020-01-23 Simon Marchi <simon.marchi@efficios.com>
9110
9111 * darwin-nat.h (struct darwin_exception_msg, enum
9112 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9113 Move up.
9114 (class darwin_nat_target) <wait_1, check_new_threads,
9115 decode_exception_message, decode_message, stop_inferior,
9116 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9117 * darwin-nat.c (darwin_check_new_threads): Rename to...
9118 (darwin_nat_target::check_new_threads): ... this.
9119 (darwin_suspend_inferior_it): Remove.
9120 (darwin_decode_exception_message): Rename to...
9121 (darwin_nat_target::decode_exception_message): ... this.
9122 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9123 (darwin_decode_message): Rename to...
9124 (darwin_nat_target::decode_message): ... this.
9125 (cancel_breakpoint): Rename to...
9126 (darwin_nat_target::cancel_breakpoint): ... this.
9127 (darwin_wait): Rename to...
9128 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9129 instead of iterate_over_inferiors.
9130 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9131 (darwin_stop_inferior): Rename to...
9132 (darwin_nat_target::stop_inferior): ... this.
9133 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9134 (darwin_init_thread_list): Rename to...
9135 (darwin_nat_target::init_thread_list): ... this.
9136 (darwin_ptrace_him): Rename to...
9137 (darwin_nat_target::ptrace_him): ... this.
9138 (darwin_nat_target::create_inferior): Pass lambda function to
9139 fork_inferior.
9140 (darwin_nat_target::detach): Call stop_inferior instead of
9141 darwin_stop_inferior.
9142 * fork-inferior.h (fork_inferior): Change init_trace_fun
9143 parameter to gdb::function_view.
9144 * fork-inferior.c (fork_inferior): Likewise.
9145
c162ed3e
HD
91462020-01-23 Hannes Domani <ssbssa@yahoo.de>
9147
9148 * i386-cygwin-tdep.c (core_process_module_section): Update.
9149 * windows-nat.c (struct lm_info_windows): Add text_offset.
9150 (windows_xfer_shared_libraries): Update.
9151 * windows-tdep.c (windows_xfer_shared_library):
9152 Add text_offset_cached argument.
9153 * windows-tdep.h (windows_xfer_shared_library): Update.
9154
a1237872
SM
91552020-01-21 Simon Marchi <simon.marchi@efficios.com>
9156
9157 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9158
b3ee6dd9
SM
91592020-01-21 Simon Marchi <simon.marchi@efficios.com>
9160
9161 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9162 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9163 replace with range-based for.
9164 (gdbsim_interrupt_inferior): Remove.
9165 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9166 with a range-based for. Inline code from
9167 gdbsim_interrupt_inferior.
9168
f9fac3c8
SM
91692020-01-21 Simon Marchi <simon.marchi@efficios.com>
9170
9171 * infrun.c (proceed): Fix indentation.
9172
f6474de9
TT
91732020-01-21 Tom Tromey <tromey@adacore.com>
9174
9175 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9176 * python/python.c (python_extension_ops): Update.
9177 (gdbpy_colorize): New function.
9178 * python/lib/gdb/__init__.py (colorize): New function.
9179 * extension.h (ext_lang_colorize): Declare.
9180 * extension.c (ext_lang_colorize): New function.
9181 * extension-priv.h (struct extension_language_ops) <colorize>: New
9182 member.
9183 * cli/cli-style.c (_initialize_cli_style): Update help text.
9184
f0c702d4
LM
91852020-01-21 Luis Machado <luis.machado@linaro.org>
9186
9187 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9188 <cond>: Change type to bool.
9189 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9190 (aarch64_displaced_step_cb): Likewise.
9191 (aarch64_displaced_step_tb): Likewise.
9192
1ab139e5
LM
91932020-01-21 Luis Machado <luis.machado@linaro.org>
9194
9195 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9196 output.
9197
0c271889
LM
91982020-01-21 Luis Machado <luis.machado@linaro.org>
9199
9200 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9201 <pc_adjust>: Adjust the documentation.
9202 (aarch64_displaced_step_fixup): Check if PC really moved before
9203 adjusting it.
9204
4d89c1c7
TT
92052020-01-19 Tom Tromey <tom@tromey.com>
9206
9207 * disasm.c (~gdb_disassembler): New destructor.
9208 (gdb_buffered_insn_length): Call disassemble_free_target.
9209 * disasm.h (class gdb_disassembler): Declare destructor. Use
9210 DISABLE_COPY_AND_ASSIGN.
9211
c0ab21c2
TT
92122020-01-19 Tom Tromey <tom@tromey.com>
9213
9214 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9215 (die_reader_func_ftype): Remove.
9216 (cutu_reader): New class.
9217 (dw2_get_file_names_reader): Remove "data" parameter.
9218 (dw2_get_file_names): Use cutu_reader.
9219 (create_debug_type_hash_table): Update.
9220 (read_cutu_die_from_dwo): Update comment.
9221 (lookup_dwo_unit): Add dwo_name parameter.
9222 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9223 die_reader_func_ftype and data parameters.
9224 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9225 Remove die_reader_func_ftype and data parameters.
9226 (~cutu_reader): New; from init_cutu_and_read_dies.
9227 (cutu_reader::cutu_reader): Rename from
9228 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9229 and data parameters.
9230 (init_cutu_and_read_dies_simple): Remove.
9231 (struct process_psymtab_comp_unit_data): Remove.
9232 (process_psymtab_comp_unit_reader): Remove data parameter; add
9233 want_partial_unit and pretend_language parameters.
9234 (process_psymtab_comp_unit): Use cutu_reader.
9235 (build_type_psymtabs_reader): Remove data parameter.
9236 (build_type_psymtabs_1): Use cutu_reader.
9237 (process_skeletonless_type_unit): Likewise.
9238 (load_partial_comp_unit_reader): Remove.
9239 (load_partial_comp_unit): Use cutu_reader.
9240 (load_full_comp_unit_reader): Remove.
9241 (load_full_comp_unit): Use cutu_reader.
9242 (struct create_dwo_cu_data): Remove.
9243 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9244 dwo_unit parameters.
9245 (create_cus_hash_table): Use cutu_reader.
9246 (struct dwarf2_read_addr_index_data): Remove.
9247 (dwarf2_read_addr_index_reader): Remove.
9248 (dwarf2_read_addr_index): Use cutu_reader.
9249 (read_signatured_type_reader): Remove.
9250 (read_signatured_type): Use cutu_reader.
9251
45bbae5c
TT
92522020-01-19 Tom Tromey <tom@tromey.com>
9253
9254 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9255 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9256 (tui_wrefresh): Declare.
9257 * tui/tui-wingeneral.c (suppress_output): New global.
9258 (tui_suppress_output, ~tui_suppress_output): New constructor and
9259 destructor.
9260 (tui_wrefresh): New function.
9261 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9262 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9263 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9264 method.
9265 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9266 tui_wrefresh.
9267 (tui_data_window::no_refresh): New method.
9268 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9269 (tui_reg_command): Use tui_suppress_output
9270 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9271 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9272 method.
9273 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9274
4f13c1c0
TT
92752020-01-19 Tom Tromey <tom@tromey.com>
9276
9277 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9278 Handle case where symtab is null.
9279
fa47e446
SM
92802020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9281
9282 * linux-fork.c (one_fork_p): Simplify.
9283
26f42329
SM
92842020-01-17 Simon Marchi <simon.marchi@efficios.com>
9285
9286 * top.c (struct qt_args): Remove.
9287 (kill_or_detach): Change return type to void, replace `void *`
9288 parameter with a proper one.
9289 (print_inferior_quit_action): Likewise.
9290 (quit_confirm): Use range-based for loop to iterate over inferiors.
9291 (quit_force): Likewise.
9292
a9ac81b1
SM
92932020-01-17 Simon Marchi <simon.marchi@efficios.com>
9294
9295 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9296 `void *` parameter with proper parameters.
9297 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9298 (print_one_inferior): Change return type to void, replace `void *`
9299 parameter with proper parameters.
9300 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9301 inferiors.
9302 (get_other_inferior): Remove.
9303 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9304 inferiors.
9305
788eca49
SM
93062020-01-17 Simon Marchi <simon.marchi@efficios.com>
9307
9308 * mi/mi-interp.c (report_initial_inferior): Remove.
9309 (mi_interp::init): Use range-based for to iterate over inferiors.
9310
d9bc85b6
SM
93112020-01-17 Simon Marchi <simon.marchi@efficios.com>
9312
9313 * python/py-inferior.c (build_inferior_list): Remove.
9314 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9315
40c94099
CB
93162020-01-16 Christian Biesinger <cbiesinger@google.com>
9317
9318 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9319 (btrace_stitch_trace): Likewise.
9320 * charset.c (intermediate_encoding): Likewise (vaild).
9321 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9322 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9323 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9324
e0cdfe3c
HD
93252020-01-16 Hannes Domani <ssbssa@yahoo.de>
9326
9327 * windows-tdep.c (windows_get_tlb_type):
9328 Add rtl_user_process_parameters type.
9329
790f1718 93302020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9331 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9332
9333 PR build/24805
9334 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9335 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9336 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9337 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9338 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9339 (ps_plog): Redeclare exported functions with default visibility.
9340
3112ed97
NA
93412020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9342
9343 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9344 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9345
8dc3273e
SM
93462020-01-15 Simon Marchi <simon.marchi@efficios.com>
9347
9348 * infcmd.c (post_create_inferior): Use get_thread_regcache
9349 instead of get_current_regcache.
9350
ff47f4f0
TT
93512020-01-14 Tom Tromey <tom@tromey.com>
9352
9353 PR symtab/12535:
9354 * python/python.c (gdbpy_decode_line): Treat empty string the same
9355 as no argument.
9356
975f45b7
TT
93572020-01-14 Tom Tromey <tom@tromey.com>
9358
9359 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9360
25e57356
TT
93612020-01-14 Tom Tromey <tom@tromey.com>
9362
9363 * nat/linux-btrace.c: Don't include <config.h>.
9364 * nat/linux-ptrace.c: Don't include <config.h>.
9365 * nat/x86-linux-dregs.c: Don't include <config.h>.
9366
05ea2a05
TT
93672020-01-14 Tom Tromey <tom@tromey.com>
9368
9369 * configure: Rebuild.
9370 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9371
01027315
TT
93722020-01-14 Tom Tromey <tom@tromey.com>
9373
9374 * nat/x86-linux-dregs.c: Include configh.h.
9375 * nat/linux-ptrace.c: Include configh.h.
9376 * nat/linux-btrace.c: Include configh.h.
9377 * defs.h: Include config.h, bfd.h.
9378 * configure.ac: Don't source common.host.
9379 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9380 * configure: Rebuild.
9381 * acinclude.m4: Update path.
9382 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9383 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9384 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9385 (CLIBS): Add LIBSUPPORT.
9386 (CDEPS): Likewise.
9387 (COMMON_SFILES): Remove gdbsupport files.
9388 (HFILES_NO_SRCDIR): Likewise.
9389 (stamp-version): Update path to create-version.sh.
9390 (ALLDEPFILES): Remove gdbsupport files.
9391
b2ceabe8
TT
93922020-01-14 Tom Tromey <tom@tromey.com>
9393
9394 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9395 USE_WIN32API when needed.
9396 * configure.ac (USE_WIN32API): Don't define.
9397 (WIN32LIBS): Use WIN32APILIBS.
9398 * configure: Rebuild.
9399
25c51f71
TT
94002020-01-14 Tom Tromey <tom@tromey.com>
9401
9402 * configure: Rebuild.
9403 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9404
717c684d
BE
94052020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9406
9407 * skip.c (skip_function_command): Make skip w/o arguments use the
9408 name of the inlined function if pc is inside any inlined function.
9409
7da6a5b9
LM
94102020-01-14 Luis Machado <luis.machado@linaro.org>
9411
9412 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9413 * infrun.c (resume_1): Likewise.
9414 (handle_inferior_event): Remove stale comment.
9415 * linux-nat.c (linux_nat_target::resume): Update comments.
9416 (save_stop_reason): Likewise.
9417 (linux_nat_filter_event): Likewise.
9418 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9419
44e4c775
AB
94202020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9421
9422 * elfread.c (record_minimal_symbol): Set section index to 0 for
9423 non-allocatable sections.
9424
18a8505e
AT
9425
94262020-01-13 Ali Tamur <tamur@google.com>
9427
9428 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9429 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9430 to gdb::optional. Update comments.
9431 (dwo_file): Update comments.
9432 (read_attribute): Update API to take an additional out parameter,
9433 need_reprocess. This is used to mark attributes that need other
9434 attributes (e.g. str_offsets_base) for correct computation which may not
9435 have been read yet.
9436 (read_attribute_reprocess): New function declaration.
9437 (read_addr_index): Likewise.
9438 (read_dwo_str_index): Likewise.
9439 (read_stub_str_index): Likewise.
9440 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9441 (lookup_addr_base): New function definition.
9442 (lookup_ranges_base): Likewise.
9443 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9444 lookup_ranges_base.
9445 (init_cutu_and_read_dies): Update comments.
9446 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9447 unit. This is used to inherit parent's str_offsets_base and addr_base.
9448 Update comments.
9449 (init_cutu_and_read_dies_simple): Reflect API changes.
9450 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9451 (create_cus_hash_table): Change API to take parent compile unit.
9452 Reflect API changes.
9453 (open_and_init_dwo_file): Reflect API changes.
9454 (dwarf2_get_pc_bounds): Update comments.
9455 (dwarf2_record_block_ranges): Likewise.
9456 (read_full_die_1): Change implementation to reprocess attributes that
9457 need str_offsets_base and addr_base.
9458 (partial_die_info::read): Likewise.
9459 (read_attribute_reprocess): New function definition.
9460 (read_attribute_value): Change API to take an additional out parameter,
9461 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9462 when a non-dwo compile unit has index based attributes.
9463 (read_attribute): Reflect API changes.
9464 (read_addr_index_1): Reflect API changes. Update comments.
9465 (dwarf2_read_addr_index_data): Reflect API changes.
9466 (dwarf2_read_addr_index): Likewise.
9467 (read_str_index): Change API and implementation. This becomes a helper
9468 to be used by the new string index related methods. Update error
9469 message and comments.
9470 (read_dwo_str_index): New function definition.
9471 (read_stub_str_index): Likewise.
9472 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9473 * symfile.h (dwarf2_debug_sections): Likewise.
9474 * xcoffread.c (dwarf2_debug_sections): Likewise.
9475
0cac9354
SM
94762020-01-13 Simon Marchi <simon.marchi@efficios.com>
9477
9478 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9479 core_reg_sect type to gdb_byte *.
9480 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9481 * cris-tdep.c (fetch_core_registers): Likewise.
9482 * corelow.c (core_target::get_core_register_section): Change
9483 type of `contents` to gdb::byte_vector.
9484
9a6d629c
AB
94852020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9486
9487 * tui/tui-wingeneral.c (box_win): Position the title in the center
9488 of the border.
9489
d8b2f9e3
SM
94902020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9491
9492 * corelow.c (core_target::get_core_register_section): Use
9493 std::vector instead of alloca.
9494
bb564c58
SM
94952020-01-13 Simon Marchi <simon.marchi@efficios.com>
9496
9497 * warning.m4: Add -Wmissing-declarations to build_warnings.
9498 * configure: Re-generate.
9499
6b366111
SM
95002020-01-13 Simon Marchi <simon.marchi@efficios.com>
9501
9502 * python/python.c (init__gdb_module): Add declaration.
9503
6c265988
SM
95042020-01-13 Simon Marchi <simon.marchi@efficios.com>
9505
9506 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9507 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9508 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9509 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9510 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9511 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9512 * ada-exp.y (_initialize_ada_exp): Add declaration.
9513 * ada-lang.c (_initialize_ada_language): Add declaration.
9514 * ada-tasks.c (_initialize_tasks): Add declaration.
9515 * agent.c (_initialize_agent): Add declaration.
9516 * aix-thread.c (_initialize_aix_thread): Add declaration.
9517 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9518 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9519 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9520 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9521 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9522 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9523 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9524 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9525 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9526 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9527 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9528 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9529 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9530 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9531 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9532 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9533 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9534 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9535 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9536 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9537 * annotate.c (_initialize_annotate): Add declaration.
9538 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9539 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9540 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9541 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9542 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9543 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9544 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9545 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9546 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9547 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9548 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9549 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9550 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9551 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9552 * auto-load.c (_initialize_auto_load): Add declaration.
9553 * auxv.c (_initialize_auxv): Add declaration.
9554 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9555 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9556 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9557 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9558 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9559 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9560 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9561 * breakpoint.c (_initialize_breakpoint): Add declaration.
9562 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9563 * btrace.c (_initialize_btrace): Add declaration.
9564 * charset.c (_initialize_charset): Add declaration.
9565 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9566 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9567 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9568 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9569 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9570 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9571 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9572 * coffread.c (_initialize_coffread): Add declaration.
9573 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9574 * compile/compile.c (_initialize_compile): Add declaration.
9575 * complaints.c (_initialize_complaints): Add declaration.
9576 * completer.c (_initialize_completer): Add declaration.
9577 * copying.c (_initialize_copying): Add declaration.
9578 * corefile.c (_initialize_core): Add declaration.
9579 * corelow.c (_initialize_corelow): Add declaration.
9580 * cp-abi.c (_initialize_cp_abi): Add declaration.
9581 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9582 * cp-support.c (_initialize_cp_support): Add declaration.
9583 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9584 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9585 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9586 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9587 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9588 * ctfread.c (_initialize_ctfread): Add declaration.
9589 * d-lang.c (_initialize_d_language): Add declaration.
9590 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9591 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9592 * dbxread.c (_initialize_dbxread): Add declaration.
9593 * dcache.c (_initialize_dcache): Add declaration.
9594 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9595 * disasm.c (_initialize_disasm): Add declaration.
9596 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9597 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9598 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9599 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9600 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9601 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9602 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9603 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9604 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9605 * elfread.c (_initialize_elfread): Add declaration.
9606 * exec.c (_initialize_exec): Add declaration.
9607 * extension.c (_initialize_extension): Add declaration.
9608 * f-lang.c (_initialize_f_language): Add declaration.
9609 * f-valprint.c (_initialize_f_valprint): Add declaration.
9610 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9611 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9612 * filesystem.c (_initialize_filesystem): Add declaration.
9613 * findcmd.c (_initialize_mem_search): Add declaration.
9614 * findvar.c (_initialize_findvar): Add declaration.
9615 * fork-child.c (_initialize_fork_child): Add declaration.
9616 * frame-base.c (_initialize_frame_base): Add declaration.
9617 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9618 * frame.c (_initialize_frame): Add declaration.
9619 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9620 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9621 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9622 * gcore.c (_initialize_gcore): Add declaration.
9623 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9624 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9625 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9626 * gdbarch.c (_initialize_gdbarch): Add declaration.
9627 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9628 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9629 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9630 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9631 * go-lang.c (_initialize_go_language): Add declaration.
9632 * go32-nat.c (_initialize_go32_nat): Add declaration.
9633 * guile/guile.c (_initialize_guile): Add declaration.
9634 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9635 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9636 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9637 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9638 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9639 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9640 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9641 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9642 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9643 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9644 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9645 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9646 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9647 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9648 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9649 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9650 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9651 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9652 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9653 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9654 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9655 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9656 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9657 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9658 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9659 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9660 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9661 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9662 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9663 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9664 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9665 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9666 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9667 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9668 * infcall.c (_initialize_infcall): Add declaration.
9669 * infcmd.c (_initialize_infcmd): Add declaration.
9670 * inflow.c (_initialize_inflow): Add declaration.
9671 * infrun.c (_initialize_infrun): Add declaration.
9672 * interps.c (_initialize_interpreter): Add declaration.
9673 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9674 * jit.c (_initialize_jit): Add declaration.
9675 * language.c (_initialize_language): Add declaration.
9676 * linux-fork.c (_initialize_linux_fork): Add declaration.
9677 * linux-nat.c (_initialize_linux_nat): Add declaration.
9678 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9679 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9680 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9681 * m2-lang.c (_initialize_m2_language): Add declaration.
9682 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9683 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9684 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9685 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9686 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9687 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9688 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9689 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9690 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9691 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9692 * machoread.c (_initialize_machoread): Add declaration.
9693 * macrocmd.c (_initialize_macrocmd): Add declaration.
9694 * macroscope.c (_initialize_macroscope): Add declaration.
9695 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9696 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9697 * maint.c (_initialize_maint_cmds): Add declaration.
9698 * mdebugread.c (_initialize_mdebugread): Add declaration.
9699 * memattr.c (_initialize_mem): Add declaration.
9700 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9701 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9702 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9703 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9704 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9705 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9706 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9707 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9708 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9709 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9710 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9711 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9712 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9713 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9714 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9715 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9716 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9717 * mipsread.c (_initialize_mipsread): Add declaration.
9718 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9719 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9720 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9721 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9722 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9723 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9724 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9725 * nto-procfs.c (_initialize_procfs): Add declaration.
9726 * objc-lang.c (_initialize_objc_language): Add declaration.
9727 * observable.c (_initialize_observer): Add declaration.
9728 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9729 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9730 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9731 * osabi.c (_initialize_gdb_osabi): Add declaration.
9732 * osdata.c (_initialize_osdata): Add declaration.
9733 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9734 * parse.c (_initialize_parse): Add declaration.
9735 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9736 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9737 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9738 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9739 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9740 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9741 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9742 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9743 * printcmd.c (_initialize_printcmd): Add declaration.
9744 * probe.c (_initialize_probe): Add declaration.
9745 * proc-api.c (_initialize_proc_api): Add declaration.
9746 * proc-events.c (_initialize_proc_events): Add declaration.
9747 * proc-service.c (_initialize_proc_service): Add declaration.
9748 * procfs.c (_initialize_procfs): Add declaration.
9749 * producer.c (_initialize_producer): Add declaration.
9750 * psymtab.c (_initialize_psymtab): Add declaration.
9751 * python/python.c (_initialize_python): Add declaration.
9752 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9753 * record-btrace.c (_initialize_record_btrace): Add declaration.
9754 * record-full.c (_initialize_record_full): Add declaration.
9755 * record.c (_initialize_record): Add declaration.
9756 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9757 * regcache.c (_initialize_regcache): Add declaration.
9758 * reggroups.c (_initialize_reggroup): Add declaration.
9759 * remote-notif.c (_initialize_notif): Add declaration.
9760 * remote-sim.c (_initialize_remote_sim): Add declaration.
9761 * remote.c (_initialize_remote): Add declaration.
9762 * reverse.c (_initialize_reverse): Add declaration.
9763 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9764 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9765 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9766 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9767 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9768 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9769 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9770 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9771 Add declaration.
9772 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9773 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9774 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9775 * rust-exp.y (_initialize_rust_exp): Add declaration.
9776 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9777 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9778 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9779 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9780 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9781 * score-tdep.c (_initialize_score_tdep): Add declaration.
9782 * ser-go32.c (_initialize_ser_dos): Add declaration.
9783 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9784 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9785 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9786 * ser-uds.c (_initialize_ser_socket): Add declaration.
9787 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9788 * serial.c (_initialize_serial): Add declaration.
9789 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9790 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9791 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9792 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9793 * skip.c (_initialize_step_skip): Add declaration.
9794 * sol-thread.c (_initialize_sol_thread): Add declaration.
9795 * solib-aix.c (_initialize_solib_aix): Add declaration.
9796 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9797 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9798 * solib-frv.c (_initialize_frv_solib): Add declaration.
9799 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9800 * solib-target.c (_initialize_solib_target): Add declaration.
9801 * solib.c (_initialize_solib): Add declaration.
9802 * source-cache.c (_initialize_source_cache): Add declaration.
9803 * source.c (_initialize_source): Add declaration.
9804 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9805 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9806 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9807 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9808 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9809 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9810 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9811 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9812 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9813 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9814 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9815 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9816 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9817 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9818 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9819 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9820 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9821 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9822 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9823 * stabsread.c (_initialize_stabsread): Add declaration.
9824 * stack.c (_initialize_stack): Add declaration.
9825 * stap-probe.c (_initialize_stap_probe): Add declaration.
9826 * std-regs.c (_initialize_frame_reg): Add declaration.
9827 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9828 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9829 * symfile.c (_initialize_symfile): Add declaration.
9830 * symmisc.c (_initialize_symmisc): Add declaration.
9831 * symtab.c (_initialize_symtab): Add declaration.
9832 * target.c (_initialize_target): Add declaration.
9833 * target-connection.c (_initialize_target_connection): Add
9834 declaration.
9835 * target-dcache.c (_initialize_target_dcache): Add declaration.
9836 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9837 * thread.c (_initialize_thread): Add declaration.
9838 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9839 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9840 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9841 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9842 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9843 * tracectf.c (_initialize_ctf): Add declaration.
9844 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9845 * tracefile.c (_initialize_tracefile): Add declaration.
9846 * tracepoint.c (_initialize_tracepoint): Add declaration.
9847 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9848 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9849 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9850 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9851 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9852 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9853 * tui/tui.c (_initialize_tui): Add declaration.
9854 * typeprint.c (_initialize_typeprint): Add declaration.
9855 * ui-style.c (_initialize_ui_style): Add declaration.
9856 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9857 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9858 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9859 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9860 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9861 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9862 * unittests/filtered_iterator-selftests.c
9863 (_initialize_filtered_iterator_selftests): Add declaration.
9864 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9865 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9866 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9867 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9868 * unittests/main-thread-selftests.c
9869 (_initialize_main_thread_selftests): Add declaration.
9870 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9871 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9872 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9873 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9874 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9875 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9876 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9877 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9878 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9879 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9880 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9881 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9882 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9883 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9884 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9885 declaration.
9886 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9887 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9888 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9889 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9890 * user-regs.c (_initialize_user_regs): Add declaration.
9891 * utils.c (_initialize_utils): Add declaration.
9892 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9893 * valops.c (_initialize_valops): Add declaration.
9894 * valprint.c (_initialize_valprint): Add declaration.
9895 * value.c (_initialize_values): Add declaration.
9896 * varobj.c (_initialize_varobj): Add declaration.
9897 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9898 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9899 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9900 * windows-nat.c (_initialize_windows_nat): Add declaration.
9901 (_initialize_check_for_gdb_ini): Add declaration.
9902 (_initialize_loadable): Add declaration.
9903 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9904 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9905 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9906 * xcoffread.c (_initialize_xcoffread): Add declaration.
9907 * xml-support.c (_initialize_xml_support): Add declaration.
9908 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9909 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9910 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
9911 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
9912
e2de1eec
SM
99132020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9914
9915 * regformats/regdat.sh: Generate declaration for init function.
9916
e0037b4c
SM
99172020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9918
9919 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
9920 up.
9921 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
9922 close_one_inferior>: New methods.
9923 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
9924 pass down target to find_inferior_pid.
9925 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
9926 Pass down target to find_inferior_ptid.
9927 (gdbsim_target::create_inferior): Pass down target to
9928 add_thread_silent.
9929 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
9930 target down to find_inferior_ptid and switch_to_thread.
9931 (gdbsim_target::close): Update to call close_one_inferior.
9932 (struct resume_data): Remove.
9933 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
9934 directly, rather than through a void pointer.
9935 (gdbsim_target::resume): Update to call resume_one_inferior.
9936
58920b5b
SM
99372020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
9938
9939 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
9940
4ec89149
PA
99412020-01-12 Pedro Alves <palves@redhat.com>
9942
9943 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
9944 directly for the current inferior instead of
9945 discard_all_inferiors.
9946 (discard_all_inferiors): Delete.
9947
7c392d1d
TT
99482020-01-11 Tom Tromey <tom@tromey.com>
9949
9950 * tui/tui-wingeneral.c (box_win): Check cli_styling.
9951 * tui/tui-winsource.c (tui_source_window_base::refill): Use
9952 deprecated_safe_get_selected_frame.
9953
d9ebdab7
TBA
99542020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9955
9956 * inferior.c (print_inferior): Switch inferior before printing it.
9957
f3c469b9
PA
99582020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
9959 Pedro Alves <palves@redhat.com>
9960
9961 * progspace-and-thread.c (switch_to_program_space_and_thread):
9962 Assert there's an inferior for PSPACE. Use
9963 switch_to_inferior_no_thread to switch the inferior too.
9964 * progspace.c (program_space::~program_space): Call
9965 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
9966 (program_space::free_all_objfiles): Don't call clear_symtab_users
9967 here.
9968 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
9969
65c574f6
PA
99702020-01-10 Pedro Alves <palves@redhat.com>
9971
9972 * NEWS: Mention multi-target debugging, "info connections", and
9973 "add-inferior -no-connection".
9974
2f4fcf00
PA
99752020-01-10 Pedro Alves <palves@redhat.com>
9976
9977 * infrun.c: Include "target-connection.h".
9978 (check_multi_target_resumption): New.
9979 (proceed): Call it.
9980 * target-connection.c (make_target_connection_string): Make
9981 extern.
9982 * target-connection.h (make_target_connection_string): Declare.
9983
121b3efd
PA
99842020-01-10 Pedro Alves <palves@redhat.com>
9985
9986 * Makefile.in (COMMON_SFILES): Add target-connection.c.
9987 * inferior.c (uiout_field_connection): New function.
9988 (print_inferior): Add new "connection-id" column.
9989 (add_inferior_command): Show connection number/string of added
9990 inferior.
9991 * process-stratum-target.h
9992 (process_stratum_target::connection_string): New virtual method.
9993 (process_stratum_target::connection_number): New field.
9994 * remote.c (remote_target::connection_string): New override.
9995 * target-connection.c: New file.
9996 * target-connection.h: New file.
9997 * target.c (decref_target): Remove process_stratum targets from
9998 the connection list.
9999 (target_stack::push): Add process_stratum targets to the
10000 connection list.
10001
4f837581
PA
100022020-01-10 Pedro Alves <palves@redhat.com>
10003
10004 Revert:
10005 2016-04-12 Pedro Alves <palves@redhat.com>
10006 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10007 Remove references to name.
10008 * serial.h (struct serial) <name>: Delete.
10009
f4ec508e
PA
100102020-01-10 Pedro Alves <palves@redhat.com>
10011
10012 * gdbarch-selftests.c (register_to_value_test): Remove "target
10013 already pushed" check.
10014
5b6d1e4f
PA
100152020-01-10 Pedro Alves <palves@redhat.com>
10016 John Baldwin <jhb@FreeBSD.org>
10017
10018 * aarch64-linux-nat.c
10019 (aarch64_linux_nat_target::thread_architecture): Adjust.
10020 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10021 (task_command_1): Likewise.
10022 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10023 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10024 (aix_thread_target::store_registers)
10025 (aix_thread_target::thread_alive): Adjust.
10026 * amd64-fbsd-tdep.c: Include "inferior.h".
10027 (amd64fbsd_get_thread_local_address): Pass down target.
10028 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10029 thread's gdbarch instead of target_gdbarch.
10030 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10031 get_last_target_status.
10032 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10033 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10034 inferiors.
10035 (update_inserted_breakpoint_locations): Skip if inferiors with no
10036 execution.
10037 (update_global_location_list): When handling moribund locations,
10038 find representative inferior for location's pspace, and use thread
10039 count of its process_stratum target.
10040 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10041 * bsd-uthread.c (bsd_uthread_target::wait): Use
10042 as_process_stratum_target and adjust thread_change_ptid and
10043 add_thread calls.
10044 (bsd_uthread_target::update_thread_list): Use
10045 as_process_stratum_target and adjust find_thread_ptid,
10046 thread_change_ptid and add_thread calls.
10047 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10048 find_thread_ptid call.
10049 * corelow.c (add_to_thread_list): Adjust add_thread call.
10050 (core_target_open): Adjust add_thread_silent and thread_count
10051 calls.
10052 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10053 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10054 * event-top.c (async_disconnect): Pop targets from all inferiors.
10055 * exec.c (add_target_sections): Push exec target on all inferiors
10056 sharing the program space.
10057 (remove_target_sections): Remove the exec target from all
10058 inferiors sharing the program space.
10059 (exec_on_vfork): New.
10060 * exec.h (exec_on_vfork): Declare.
10061 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10062 Pass it down.
10063 (fbsd_nat_target::update_thread_list): Adjust.
10064 (fbsd_nat_target::resume): Adjust.
10065 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10066 down.
10067 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10068 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10069 get_thread_arch_regcache call.
10070 * fork-child.c (gdb_startup_inferior): Pass target down to
10071 startup_inferior and set_executing.
10072 * gdbthread.h (struct process_stratum_target): Forward declare.
10073 (add_thread, add_thread_silent, add_thread_with_info)
10074 (in_thread_list): Add process_stratum_target parameter.
10075 (find_thread_ptid(inferior*, ptid_t)): New overload.
10076 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10077 parameter.
10078 (all_threads()): Delete overload.
10079 (all_threads, all_non_exited_threads): Add process_stratum_target
10080 parameter.
10081 (all_threads_safe): Use brace initialization.
10082 (thread_count): Add process_stratum_target parameter.
10083 (set_resumed, set_running, set_stop_requested, set_executing)
10084 (threads_are_executing, finish_thread_state): Add
10085 process_stratum_target parameter.
10086 (switch_to_thread): Use is_current_thread.
10087 * i386-fbsd-tdep.c: Include "inferior.h".
10088 (i386fbsd_get_thread_local_address): Pass down target.
10089 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10090 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10091 have_inferiors check.
10092 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10093 (inf_ptrace_target::attach): Adjust.
10094 * infcall.c (run_inferior_call): Adjust.
10095 * infcmd.c (run_command_1): Pass target to
10096 scoped_finish_thread_state.
10097 (proceed_thread_callback): Skip inferiors with no execution.
10098 (continue_command): Rename 'all_threads' local to avoid hiding
10099 'all_threads' function. Adjust get_last_target_status call.
10100 (prepare_one_step): Adjust set_running call.
10101 (signal_command): Use user_visible_resume_target. Compare thread
10102 pointers instead of inferior_ptid.
10103 (info_program_command): Adjust to pass down target.
10104 (attach_command): Mark target's 'thread_executing' flag.
10105 (stop_current_target_threads_ns): New, factored out from ...
10106 (interrupt_target_1): ... this. Switch inferior before making
10107 target calls.
10108 * inferior-iter.h
10109 (struct all_inferiors_iterator, struct all_inferiors_range)
10110 (struct all_inferiors_safe_range)
10111 (struct all_non_exited_inferiors_range): Filter on
10112 process_stratum_target too. Remove explicit.
10113 * inferior.c (inferior::inferior): Push dummy target on target
10114 stack.
10115 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10116 Add process_stratum_target parameter, and pass it down.
10117 (have_live_inferiors): Adjust.
10118 (switch_to_inferior_and_push_target): New.
10119 (add_inferior_command, clone_inferior_command): Handle
10120 "-no-connection" parameter. Use
10121 switch_to_inferior_and_push_target.
10122 (_initialize_inferior): Mention "-no-connection" option in
10123 the help of "add-inferior" and "clone-inferior" commands.
10124 * inferior.h: Include "process-stratum-target.h".
10125 (interrupt_target_1): Use bool.
10126 (struct inferior) <push_target, unpush_target, target_is_pushed,
10127 find_target_beneath, top_target, process_target, target_at,
10128 m_stack>: New.
10129 (discard_all_inferiors): Delete.
10130 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10131 (all_inferiors, all_non_exited_inferiors): Add
10132 process_stratum_target parameter.
10133 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10134 (target_last_proc_target): New global.
10135 (follow_fork_inferior): Push target on new inferior. Pass target
10136 to add_thread_silent. Call exec_on_vfork. Handle target's
10137 reference count.
10138 (follow_fork): Adjust get_last_target_status call. Also consider
10139 target.
10140 (follow_exec): Push target on new inferior.
10141 (struct execution_control_state) <target>: New field.
10142 (user_visible_resume_target): New.
10143 (do_target_resume): Call target_async.
10144 (resume_1): Set target's threads_executing flag. Consider resume
10145 target.
10146 (commit_resume_all_targets): New.
10147 (proceed): Also consider resume target. Skip threads of inferiors
10148 with no execution. Commit resumtion in all targets.
10149 (start_remote): Pass current inferior to wait_for_inferior.
10150 (infrun_thread_stop_requested): Consider target as well. Pass
10151 thread_info pointer to clear_inline_frame_state instead of ptid.
10152 (infrun_thread_thread_exit): Consider target as well.
10153 (random_pending_event_thread): New inferior parameter. Use it.
10154 (do_target_wait): Rename to ...
10155 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10156 down.
10157 (threads_are_resumed_pending_p, do_target_wait): New.
10158 (prepare_for_detach): Adjust calls.
10159 (wait_for_inferior): New inferior parameter. Handle it. Use
10160 do_target_wait_1 instead of do_target_wait.
10161 (fetch_inferior_event): Adjust. Switch to representative
10162 inferior. Pass target down.
10163 (set_last_target_status): Add process_stratum_target parameter.
10164 Save target in global.
10165 (get_last_target_status): Add process_stratum_target parameter and
10166 handle it.
10167 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10168 (context_switch): Check inferior_ptid == null_ptid before calling
10169 inferior_thread().
10170 (get_inferior_stop_soon): Pass down target.
10171 (wait_one): Rename to ...
10172 (poll_one_curr_target): ... this.
10173 (struct wait_one_event): New.
10174 (wait_one): New.
10175 (stop_all_threads): Adjust.
10176 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10177 event's target.
10178 (switch_back_to_stepped_thread): Also consider target.
10179 (print_stop_event): Update.
10180 (normal_stop): Update. Also consider the resume target.
10181 * infrun.h (wait_for_inferior): Remove declaration.
10182 (user_visible_resume_target): New declaration.
10183 (get_last_target_status, set_last_target_status): New
10184 process_stratum_target parameter.
10185 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10186 process_stratum_target parameter, and use it.
10187 (clear_inline_frame_state (thread_info*)): New.
10188 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10189 process_stratum_target parameter.
10190 (clear_inline_frame_state (thread_info*)): Declare.
10191 * linux-fork.c (delete_checkpoint_command): Pass target down to
10192 find_thread_ptid.
10193 (checkpoint_command): Adjust.
10194 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10195 instead of just tweaking inferior_ptid.
10196 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10197 (exit_lwp): Pass target down to find_thread_ptid.
10198 (attach_proc_task_lwp_callback): Pass target down to
10199 add_thread/set_running/set_executing.
10200 (linux_nat_target::attach): Pass target down to
10201 thread_change_ptid.
10202 (get_detach_signal): Pass target down to find_thread_ptid.
10203 Consider last target status's target.
10204 (linux_resume_one_lwp_throw, resume_lwp)
10205 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10206 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10207 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10208 (linux_nat_target::async_wait_fd): New.
10209 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10210 target down.
10211 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10212 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10213 * linux-thread-db.c (struct thread_db_info::process_target): New
10214 field.
10215 (add_thread_db_info): Save target.
10216 (get_thread_db_info): New process_stratum_target parameter. Also
10217 match target.
10218 (delete_thread_db_info): New process_stratum_target parameter.
10219 Also match target.
10220 (thread_from_lwp): Adjust to pass down target.
10221 (thread_db_notice_clone): Pass down target.
10222 (check_thread_db_callback): Pass down target.
10223 (try_thread_db_load_1): Always push the thread_db target.
10224 (try_thread_db_load, record_thread): Pass target down.
10225 (thread_db_target::detach): Pass target down. Always unpush the
10226 thread_db target.
10227 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10228 target down. Always unpush the thread_db target.
10229 (find_new_threads_callback, thread_db_find_new_threads_2)
10230 (thread_db_target::update_thread_list): Pass target down.
10231 (thread_db_target::pid_to_str): Pass current inferior down.
10232 (thread_db_target::get_thread_local_address): Pass target down.
10233 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10234 target down.
10235 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10236 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10237 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10238 (procfs_init_inferior): Rename to ...
10239 (procfs_target::procfs_init_inferior): ... this and adjust.
10240 (procfs_target::create_inferior, procfs_notice_thread)
10241 (procfs_do_thread_registers): Adjust.
10242 * ppc-fbsd-tdep.c: Include "inferior.h".
10243 (ppcfbsd_get_thread_local_address): Pass down target.
10244 * proc-service.c (ps_xfer_memory): Switch current inferior and
10245 program space as well.
10246 (get_ps_regcache): Pass target down.
10247 * process-stratum-target.c
10248 (process_stratum_target::thread_address_space)
10249 (process_stratum_target::thread_architecture): Pass target down.
10250 * process-stratum-target.h
10251 (process_stratum_target::threads_executing): New field.
10252 (as_process_stratum_target): New.
10253 * ravenscar-thread.c
10254 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10255 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10256 down.
10257 * record-btrace.c (record_btrace_target::info_record): Adjust.
10258 (record_btrace_target::record_method)
10259 (record_btrace_target::record_is_replaying)
10260 (record_btrace_target::fetch_registers)
10261 (get_thread_current_frame_id, record_btrace_target::resume)
10262 (record_btrace_target::wait, record_btrace_target::stop): Pass
10263 target down.
10264 * record-full.c (record_full_wait_1): Switch to event thread.
10265 Pass target down.
10266 * regcache.c (regcache::regcache)
10267 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10268 process_stratum_target parameter and handle it.
10269 (current_thread_target): New global.
10270 (get_thread_regcache): Add process_stratum_target parameter and
10271 handle it. Switch inferior before calling target method.
10272 (get_thread_regcache): Pass target down.
10273 (get_thread_regcache_for_ptid): Pass target down.
10274 (registers_changed_ptid): Add process_stratum_target parameter and
10275 handle it.
10276 (registers_changed_thread, registers_changed): Pass target down.
10277 (test_get_thread_arch_aspace_regcache): New.
10278 (current_regcache_test): Define a couple local test_target_ops
10279 instances and use them for testing.
10280 (readwrite_regcache): Pass process_stratum_target parameter.
10281 (cooked_read_test, cooked_write_test): Pass mock_target down.
10282 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10283 (get_thread_arch_aspace_regcache): Add process_stratum_target
10284 parameter.
10285 (regcache::target): New method.
10286 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10287 (regcache::registers_changed_ptid): Add process_stratum_target
10288 parameter.
10289 (regcache::m_target): New field.
10290 (registers_changed_ptid): Add process_stratum_target parameter.
10291 * remote.c (remote_state::supports_vCont_probed): New field.
10292 (remote_target::async_wait_fd): New method.
10293 (remote_unpush_and_throw): Add remote_target parameter.
10294 (get_current_remote_target): Adjust.
10295 (remote_target::remote_add_inferior): Push target.
10296 (remote_target::remote_add_thread)
10297 (remote_target::remote_notice_new_inferior)
10298 (get_remote_thread_info): Pass target down.
10299 (remote_target::update_thread_list): Skip threads of inferiors
10300 bound to other targets. (remote_target::close): Don't discard
10301 inferiors. (remote_target::add_current_inferior_and_thread)
10302 (remote_target::process_initial_stop_replies)
10303 (remote_target::start_remote)
10304 (remote_target::remote_serial_quit_handler): Pass down target.
10305 (remote_target::remote_unpush_target): New remote_target
10306 parameter. Unpush the target from all inferiors.
10307 (remote_target::remote_unpush_and_throw): New remote_target
10308 parameter. Pass it down.
10309 (remote_target::open_1): Check whether the current inferior has
10310 execution instead of checking whether any inferior is live. Pass
10311 target down.
10312 (remote_target::remote_detach_1): Pass down target. Use
10313 remote_unpush_target.
10314 (extended_remote_target::attach): Pass down target.
10315 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10316 (remote_target::append_resumption): Pass down target.
10317 (remote_target::append_pending_thread_resumptions)
10318 (remote_target::remote_resume_with_hc, remote_target::resume)
10319 (remote_target::commit_resume): Pass down target.
10320 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10321 (remote_target::interrupt_query)
10322 (remote_target::remove_new_fork_children)
10323 (remote_target::check_pending_events_prevent_wildcard_vcont)
10324 (remote_target::remote_parse_stop_reply)
10325 (remote_target::process_stop_reply): Pass down target.
10326 (first_remote_resumed_thread): New remote_target parameter. Pass
10327 it down.
10328 (remote_target::wait_as): Pass down target.
10329 (unpush_and_perror): New remote_target parameter. Pass it down.
10330 (remote_target::readchar, remote_target::remote_serial_write)
10331 (remote_target::getpkt_or_notif_sane_1)
10332 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10333 down target.
10334 (remote_target::mourn_inferior): Pass down target. Use
10335 remote_unpush_target.
10336 (remote_target::core_of_thread)
10337 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10338 (remote_target::pid_to_exec_file)
10339 (remote_target::thread_handle_to_thread_info): Pass down target.
10340 (remote_target::async_wait_fd): New.
10341 * riscv-fbsd-tdep.c: Include "inferior.h".
10342 (riscv_fbsd_get_thread_local_address): Pass down target.
10343 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10344 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10345 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10346 Adjust.
10347 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10348 * solib-svr4.c (enable_break): Pass down target.
10349 * spu-multiarch.c (parse_spufs_run): Pass down target.
10350 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10351 * target-delegates.c: Regenerate.
10352 * target.c (g_target_stack): Delete.
10353 (current_top_target): Return the current inferior's top target.
10354 (target_has_execution_1): Refer to the passed-in inferior's top
10355 target.
10356 (target_supports_terminal_ours): Check whether the initial
10357 inferior was already created.
10358 (decref_target): New.
10359 (target_stack::push): Incref/decref the target.
10360 (push_target, push_target, unpush_target): Adjust.
10361 (target_stack::unpush): Defref target.
10362 (target_is_pushed): Return bool. Adjust to refer to the current
10363 inferior's target stack.
10364 (dispose_inferior): Delete, and inline parts ...
10365 (target_preopen): ... here. Only dispose of the current inferior.
10366 (target_detach): Hold strong target reference while detaching.
10367 Pass target down.
10368 (target_thread_name): Add assertion.
10369 (target_resume): Pass down target.
10370 (target_ops::beneath, find_target_at): Adjust to refer to the
10371 current inferior's target stack.
10372 (get_dummy_target): New.
10373 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10374 has a thread running.
10375 (initialize_targets): Rename to ...
10376 (_initialize_target): ... this.
10377 * target.h: Include "gdbsupport/refcounted-object.h".
10378 (struct target_ops): Inherit refcounted_object.
10379 (target_ops::shortname, target_ops::longname): Make const.
10380 (target_ops::async_wait_fd): New method.
10381 (decref_target): Declare.
10382 (struct target_ops_ref_policy): New.
10383 (target_ops_ref): New typedef.
10384 (get_dummy_target): Declare function.
10385 (target_is_pushed): Return bool.
10386 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10387 (all_matching_threads_iterator::all_matching_threads_iterator):
10388 Handle filter target.
10389 * thread-iter.h (struct all_matching_threads_iterator, struct
10390 all_matching_threads_range, class all_non_exited_threads_range):
10391 Filter by target too. Remove explicit.
10392 * thread.c (threads_executing): Delete.
10393 (inferior_thread): Pass down current inferior.
10394 (clear_thread_inferior_resources): Pass down thread pointer
10395 instead of ptid_t.
10396 (add_thread_silent, add_thread_with_info, add_thread): Add
10397 process_stratum_target parameter. Use it for thread and inferior
10398 searches.
10399 (is_current_thread): New.
10400 (thread_info::deletable): Use it.
10401 (find_thread_ptid, thread_count, in_thread_list)
10402 (thread_change_ptid, set_resumed, set_running): New
10403 process_stratum_target parameter. Pass it down.
10404 (set_executing): New process_stratum_target parameter. Pass it
10405 down. Adjust reference to 'threads_executing'.
10406 (threads_are_executing): New process_stratum_target parameter.
10407 Adjust reference to 'threads_executing'.
10408 (set_stop_requested, finish_thread_state): New
10409 process_stratum_target parameter. Pass it down.
10410 (switch_to_thread): Also match inferior.
10411 (switch_to_thread): New process_stratum_target parameter. Pass it
10412 down.
10413 (update_threads_executing): Reimplement.
10414 * top.c (quit_force): Pop targets from all inferior.
10415 (gdb_init): Don't call initialize_targets.
10416 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10417 Declare.
10418 (windows_add_thread, windows_delete_thread): Adjust.
10419 (get_windows_debug_event): Rename to ...
10420 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10421 * tracefile-tfile.c (tfile_target_open): Pass down target.
10422 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10423 Forward declare.
10424 (switch_to_thread): Add process_stratum_target parameter.
10425 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10426 parameter. Use it.
10427 (mi_on_resume): Pass target down.
10428 * nat/fork-inferior.c (startup_inferior): Add
10429 process_stratum_target parameter. Pass it down.
10430 * nat/fork-inferior.h (startup_inferior): Add
10431 process_stratum_target parameter.
10432 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10433
75c6c844
PA
104342020-01-10 Pedro Alves <palves@redhat.com>
10435
10436 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10437 directly. Instead find the first thread in the thread list and
10438 use switch_to_thread.
10439
78f2c40a
PA
104402020-01-10 Pedro Alves <palves@redhat.com>
10441
10442 * remote.c (remote_target::remote_add_inferior): Don't bind a
10443 process to the current inferior if the current inferior is already
10444 bound to a process.
10445
e7af6c70
TBA
104462020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10447 Pedro Alves <palves@redhat.com>
10448
10449 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10450 If no process is specified, return null_ptid instead of
10451 inferior_ptid.
10452 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10453 TARGET_WAITKIND_SIGNALLED with no pid.
10454
31ba933e
PA
104552020-01-10 Pedro Alves <palves@redhat.com>
10456
10457 * remote.c (first_remote_resumed_thread): New.
10458 (remote_target::wait_as): Use it as default event_ptid instead of
10459 inferior_ptid.
10460
735fc2ca
PA
104612020-01-10 Pedro Alves <palves@redhat.com>
10462
10463 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10464
c17e02e1
PA
104652020-01-10 Pedro Alves <palves@redhat.com>
10466
10467 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10468 not -1.
10469
ab1ddbcf
PA
104702020-01-10 Pedro Alves <palves@redhat.com>
10471
10472 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10473 ptid to get_last_target_status.
10474 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10475 ptid to get_last_target_status.
10476 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10477 get_last_target_status.
10478 (info_program_command): Don't pass a target_waitstatus to
10479 get_last_target_status.
10480 * infrun.c (init_wait_for_inferior): Use
10481 nullify_last_target_wait_ptid.
10482 (get_last_target_status): Handle nullptr arguments.
10483 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10484 (print_stop_event): Don't pass a ptid to get_last_target_status.
10485 (normal_stop): Don't pass a ptid to get_last_target_status.
10486 * infrun.h (get_last_target_status, set_last_target_status): Move
10487 comments here and update.
10488 (nullify_last_target_wait_ptid): Declare.
10489 * linux-fork.c (fork_load_infrun_state): Remove local extern
10490 declaration of nullify_last_target_wait_ptid.
10491 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10492 to get_last_target_status.
10493
f3f8ece4
PA
104942020-01-10 Pedro Alves <palves@redhat.com>
10495
10496 * gdbthread.h (scoped_restore_current_thread)
10497 <dont_restore, restore, m_dont_restore>: Declare.
10498 * thread.c (thread_alive): Add assertion. Return bool.
10499 (switch_to_thread_if_alive): New.
10500 (prune_threads): Switch inferior/thread.
10501 (print_thread_info_1): Switch thread before calling target methods.
10502 (scoped_restore_current_thread::restore): New, factored out from
10503 ...
10504 (scoped_restore_current_thread::~scoped_restore_current_thread):
10505 ... this.
10506 (scoped_restore_current_thread::scoped_restore_current_thread):
10507 Add assertion.
10508 (thread_apply_all_command, thread_select): Use
10509 switch_to_thread_if_alive.
10510 * infrun.c (proceed, restart_threads, handle_signal_stop)
10511 (switch_back_to_stepped_thread): Switch current thread before
10512 calling target methods.
10513
db2d40f7
PA
105142020-01-10 Pedro Alves <palves@redhat.com>
10515
10516 * inferior.c (switch_to_inferior_no_thread): New function,
10517 factored out from ...
10518 (inferior_command): ... here.
10519 * inferior.h (switch_to_inferior_no_thread): Declare.
10520 * mi/mi-main.c (run_one_inferior): Use
10521 switch_to_inferior_no_thread.
10522
bd420a2d
PA
105232020-01-10 Pedro Alves <palves@redhat.com>
10524
10525 * infcmd.c (kill_command): Remove dead code.
10526
ddf5db90
PA
105272020-01-10 Pedro Alves <palves@redhat.com>
10528
10529 * remote.c (remote_target::mourn_inferior): No longer check
10530 whether the target is running.
10531
5018ce90
PA
105322020-01-10 Pedro Alves <palves@redhat.com>
10533
10534 * corelow.c (core_target::has_execution): Change parameter type to
10535 inferior pointer.
10536 * inferior.c (number_of_live_inferiors): Use
10537 inferior::has_execution instead of target_has_execution_1.
10538 * inferior.h (inferior::has_execution): New.
10539 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10540 inferior::has_execution instead of target_has_execution_1.
10541 * process-stratum-target.c
10542 (process_stratum_target::has_execution): Change parameter type to
10543 inferior pointer. Check the inferior's PID instead of
10544 inferior_ptid.
10545 * process-stratum-target.h
10546 (process_stratum_target::has_execution): Change parameter type to
10547 inferior pointer.
10548 * record-full.c (record_full_core_target::has_execution): Change
10549 parameter type to inferior pointer.
10550 * target.c (target_has_execution_1): Change parameter type to
10551 inferior pointer.
10552 (target_has_execution_current): Adjust.
10553 * target.h (target_ops::has_execution): Change parameter type to
10554 inferior pointer.
10555 (target_has_execution_1): Change parameter type to inferior
10556 pointer. Change return type to bool.
10557 * tracefile.h (tracefile_target::has_execution): Change parameter
10558 type to inferior pointer.
10559
74375d18
PA
105602020-01-10 Pedro Alves <palves@redhat.com>
10561
10562 * exceptions.c (print_flush): Remove current_top_target() check.
10563
acdf84a6
PA
105642020-01-10 Pedro Alves <palves@redhat.com>
10565
10566 * remote.c (show_remote_exec_file): Show the current inferior's
10567 exec-file instead of the command variable's value.
10568
ec506636
PA
105692020-01-10 Pedro Alves <palves@redhat.com>
10570
10571 * record-full.c (record_full_resume_ptid): New global.
10572 (record_full_target::resume): Set it.
10573 (record_full_wait_1): Use record_full_resume_ptid instead of
10574 inferior_ptid.
10575
873657b9
PA
105762020-01-10 Pedro Alves <palves@redhat.com>
10577
10578 * gdbthread.h (scoped_restore_current_thread)
10579 <dont_restore, restore, m_dont_restore>: Declare.
10580 * thread.c (thread_alive): Add assertion. Return bool.
10581 (switch_to_thread_if_alive): New.
10582 (prune_threads): Switch inferior/thread.
10583 (print_thread_info_1): Switch thread before calling target methods.
10584 (scoped_restore_current_thread::restore): New, factored out from
10585 ...
10586 (scoped_restore_current_thread::~scoped_restore_current_thread):
10587 ... this.
10588 (scoped_restore_current_thread::scoped_restore_current_thread):
10589 Add assertion.
10590 (thread_apply_all_command, thread_select): Use
10591 switch_to_thread_if_alive.
10592
7f0ae84c
GB
105932020-01-10 George Barrett <bob@bob131.so>
10594
10595 * stap-probe.c (stap_modify_semaphore): Don't check for null
10596 semaphores.
10597 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10598 for null semaphores.
10599
f5a7c406
AB
106002020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10601
10602 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10603 all source windows, and maintain horizontal scroll status while
10604 doing so.
10605
9ae6bf64
TT
106062020-01-09 Tom Tromey <tom@tromey.com>
10607
10608 PR tui/18932:
10609 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10610 update_source_window, not print_source_lines.
10611
b2efe70c
AB
106122020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10613
10614 * tui/tui.c (tui_enable): Register tui hooks after calling
10615 tui_display_main.
10616
5f23a082
CB
106172020-01-09 Christian Biesinger <cbiesinger@google.com>
10618
10619 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10620
3061113b
SM
106212020-01-08 Simon Marchi <simon.marchi@efficios.com>
10622
10623 * thread.c (print_thread_info_1): Fix indentation.
10624
57d75002
CB
106252020-01-09 Christian Biesinger <cbiesinger@google.com>
10626
10627 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10628 unique_xmalloc_ptr outside the if to always free the demangled name.
10629
6a053cb1
TT
106302020-01-08 Tom Tromey <tromey@adacore.com>
10631
10632 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10633 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10634 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10635 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10636 Remove.
10637 (section_offsets): New typedef.
10638 * symtab.c (fixup_section, get_msymbol_address): Update.
10639 * symmisc.c (dump_msymbols): Update.
10640 * symfile.h (relative_addr_info_to_section_offsets)
10641 (symfile_map_offsets_to_segments): Update.
10642 * symfile.c (build_section_addr_info_from_objfile)
10643 (init_objfile_sect_indices): Update.
10644 (struct place_section_arg): Change type of "offsets".
10645 (place_section): Update.
10646 (relative_addr_info_to_section_offsets): Change type of
10647 "section_offsets". Remove "num_sections" parameter.
10648 (default_symfile_offsets, syms_from_objfile_1)
10649 (set_objfile_default_section_offset): Update.
10650 (reread_symbols): No need to preserve section offsets by hand.
10651 (symfile_map_offsets_to_segments): Change type of "offsets".
10652 * stap-probe.c (relocate_address): Update.
10653 * stabsread.h (process_one_symbol): Update.
10654 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10655 (solib_target_relocate_section_addresses): Update.
10656 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10657 Update.
10658 * solib-frv.c (frv_relocate_main_executable): Update.
10659 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10660 * solib-aix.c (solib_aix_get_section_offsets): Change return
10661 type.
10662 (solib_aix_solib_create_inferior_hook): Update.
10663 * remote.c (remote_target::get_offsets): Update.
10664 * psymtab.c (find_pc_sect_psymtab): Update.
10665 * psympriv.h (struct partial_symbol) <address, text_low,
10666 text_high>: Update.
10667 * objfiles.h (obj_section_offset): Update.
10668 (struct objfile) <section_offsets>: Change type.
10669 <num_sections>: Remove.
10670 (objfile_relocate): Update.
10671 * objfiles.c (entry_point_address_query): Update
10672 (relocate_one_symbol): Change type of "section_offsets".
10673 (objfile_relocate1, objfile_relocate1): Change type of
10674 "new_offsets".
10675 (objfile_rebase1): Update.
10676 * mipsread.c (mipscoff_symfile_read): Update.
10677 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10678 parameter.
10679 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10680 (parse_external, psymtab_to_symtab_1): Update.
10681 * machoread.c (macho_symfile_offsets): Update.
10682 * ia64-tdep.c (ia64_find_unwind_table): Update.
10683 * hppa-tdep.c (read_unwind_info): Update.
10684 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10685 * dwarf2read.c (create_addrmap_from_index)
10686 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10687 (process_psymtab_comp_unit_reader, add_partial_symbol)
10688 (add_partial_subprogram, process_full_comp_unit)
10689 (read_file_scope, read_func_scope, read_lexical_block_scope)
10690 (read_call_site_scope, dwarf2_rnglists_process)
10691 (dwarf2_ranges_process, dwarf2_ranges_read)
10692 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10693 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10694 Update.
10695 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10696 Update.
10697 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10698 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10699 (process_one_symbol): Change type of "section_offsets".
10700 * ctfread.c (get_objfile_text_range): Update.
10701 * coffread.c (coff_symtab_read, enter_linenos)
10702 (process_coff_symbol): Update.
10703 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10704 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10705
456e800a
TT
107062020-01-08 Tom Tromey <tromey@adacore.com>
10707
10708 * dwarf2read.c (parse_macro_definition): Use std::string.
10709 (parse_macro_definition): Likewise.
10710
6dfa2fc2
TT
107112020-01-08 Tom Tromey <tromey@adacore.com>
10712
10713 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10714 (ATTR_ALLOC_CHUNK): Remove.
10715
421d1616
TT
107162020-01-08 Tom Tromey <tromey@adacore.com>
10717
10718 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10719
43816ebc
TT
107202020-01-08 Tom Tromey <tromey@adacore.com>
10721
10722 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10723 (dwarf2_compute_name, open_dwo_file): Likewise.
10724 (process_enumeration_scope): Use std::vector.
10725 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10726 (partial_die_info::fixup, dwarf2_start_subfile)
10727 (guess_full_die_structure_name, dwarf2_name): Likewise.
10728 (determine_prefix): Update.
10729 (guess_full_die_structure_name): Make return type const.
10730 (partial_die_full_name): Return unique_xmalloc_ptr.
10731 (DW_FIELD_ALLOC_CHUNK): Remove.
10732
4212d509
TT
107332020-01-07 Tom Tromey <tromey@adacore.com>
10734
10735 PR build/24937:
10736 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10737
06a6207a
JT
107382020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10739
10740 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10741
153d79c4
AB
107422020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10743
10744 * stack.c (print_frame_info): Move disassemble_next_line code
10745 inside source_print block.
10746
66182876
EZ
107472020-01-06 Eli Zaretskii <eliz@gnu.org>
10748
10749 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10750 gdb/signals.h, as we are now using native signal symbols.
10751
cbfa8581
SV
107522020-01-06 Shahab Vahedi <shahab@synopsys.com>
10753
10754 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10755 overflow by an early check of content vs threshold.
aac66a4c 10756 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10757 Likewise.
10758
3f602821
EZ
107592020-01-06 Eli Zaretskii <eliz@gnu.org>
10760
10761 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10762
a08c904d
JT
107632020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10764
10765 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10766 export table if no section contains it's RVA.
10767
89a65580
EZ
107682020-01-06 Eli Zaretskii <eliz@gnu.org>
10769
10770 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10771
8b7fcda2
HD
107722020-01-06 Hannes Domani <ssbssa@yahoo.de>
10773
10774 * source.c (print_source_lines_base): Set last_line_listed.
10775
a61b4f69
SV
107762020-01-06 Shahab Vahedi <shahab@synopsys.com>
10777
10778 * tui/tui-disasm.c: Remove trailing spaces.
10779
559e7e50
EZ
107802020-01-06 Eli Zaretskii <eliz@gnu.org>
10781 Pedro Alves <palves@redhat.com>
10782
10783 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10784 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10785 (windows_gdb_signal_to_target): New function, uses the above
10786 enumeration to convert GDB internal signal codes to equivalent
10787 Windows codes.
10788 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10789 * windows-nat.c: Include "gdb_wait.h".
10790 (get_windows_debug_event): Extract the fatal exception from the
10791 exit status and convert to the equivalent Posix signal number.
10792 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10793 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10794 * gdbsupport/gdb_wait.c: New file, implements
10795 windows_status_to_termsig.
10796 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10797 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10798
f2302a34
AB
107992020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10800
10801 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10802 show_layout.
10803
6a5206eb
LM
108042020-01-05 Luis Machado <luis.machado@linaro.org>
10805
10806 * aarch64-linux-nat.c
10807 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10808 and bfd_mach_aarch64.
10809
6ec1d75e
PW
108102020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10811
10812 * ui-file.c (stdio_file::can_emit_style_escape)
10813 (tee_file::can_emit_style_escape): Ensure style is used also on
10814 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10815 to gdb_stdout.
10816 * main.c (set_gdb_data_directory): Use file style to output the
10817 warning that the given pathname is not a directory.
10818 * top.c (show_history_filename, gdb_safe_append_history)
10819 (show_gdb_datadir): Use file style.
10820
44f81a76
HD
108212020-01-03 Hannes Domani <ssbssa@yahoo.de>
10822
10823 * solib-target.c (struct lm_info_target):
10824 Change offsets to be a unique_xmalloc_ptr.
10825 (solib_target_relocate_section_addresses): Update.
10826
25057eb0
HD
108272020-01-03 Hannes Domani <ssbssa@yahoo.de>
10828
10829 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10830
6e2118f5
BE
108312020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10832
10833 * MAINTAINERS (Write After Approval): Add myself.
10834
8133c7dc
LM
108352020-01-02 Luis Machado <luis.machado@linaro.org>
10836
10837 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10838 Cell BE architecture.
10839 * target.h (struct target_ops) <thread_architecture>: Likewise.
10840
48189bec
HD
108412020-01-01 Hannes Domani <ssbssa@yahoo.de>
10842
10843 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10844
ead1063b
HD
108452020-01-01 Hannes Domani <ssbssa@yahoo.de>
10846
10847 * MAINTAINERS (Write After Approval): Add myself.
10848
e5d78223
JB
108492020-01-01 Joel Brobecker <brobecker@adacore.com>
10850
10851 * gdbarch.sh: Update copyright year range of generated files.
10852
b811d2c2
JB
108532020-01-01 Joel Brobecker <brobecker@adacore.com>
10854
10855 Update copyright year range in all GDB files.
10856
5f4def5c
JB
108572020-01-01 Joel Brobecker <brobecker@adacore.com>
10858
10859 * copyright.py: Convert to Python 3.
10860
51fd4002
JB
108612020-01-01 Joel Brobecker <brobecker@adacore.com>
10862
10863 * copyright.py: Adapt after move of gnulib directory from gdb
10864 directory to toplevel directory.
10865
5fb651f2
JB
108662020-01-01 Joel Brobecker <brobecker@adacore.com>
10867
10868 * copyright.py (main): Exit if run from the wrong directory.
10869
5dd8bf88
JB
108702020-01-01 Joel Brobecker <brobecker@adacore.com>
10871
10872 * top.c (print_gdb_version): Change copyright year to 2020.
10873
9f71dacb 108742020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10875
9f71dacb 10876 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10877
9f71dacb 10878For older changes see ChangeLog-2019.
c906108c
SS
10879\f
10880Local Variables:
10881mode: change-log
10882left-margin: 8
10883fill-column: 74
10884version-control: never
57da7796 10885coding: utf-8
c906108c 10886End:
This page took 2.991491 seconds and 4 git commands to generate.