]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb/python: New method to access list of register groups
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
64cb3757
AB
12020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * NEWS: Mention additions to Python API.
4 * python/py-arch.c (archpy_register_groups): New function.
5 (arch_object_methods): Add 'register_groups' method.
6 * python/py-registers.c (reggroup_iterator_object): New struct.
7 (reggroup_object): New struct.
8 (gdbpy_new_reggroup): New function.
9 (gdbpy_reggroup_to_string): New function.
10 (gdbpy_reggroup_name): New function.
11 (gdbpy_reggroup_iter): New function.
12 (gdbpy_reggroup_iter_next): New function.
13 (gdbpy_new_reggroup_iterator): New function
14 (gdbpy_initialize_registers): Register new types.
15 (reggroup_iterator_object_type): Define new Python type.
16 (gdbpy_reggroup_getset): New static global.
17 (reggroup_object_type): Define new Python type.
18 * python/python-internal.h
19
0f767f94
AB
202020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
21
22 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
23 * python/py-arch.c (archpy_registers): New function.
24 (arch_object_methods): Add 'registers' method.
25 * python/py-registers.c: New file.
26 * python/python-internal.h
27 (gdbpy_new_register_descriptor_iterator): Declare.
28 (gdbpy_initialize_registers): Declare.
29 * python/python.c (do_start_initialization): Call
30 gdbpy_initialize_registers.
31 * NEWS: Mention additions to the Python API.
32
87dbc774
AB
332020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
34
35 * NEWS: Mention new Python API method.
36 * python/py-unwind.c (pending_framepy_architecture): New function.
37 (pending_frame_object_methods): Add architecture method.
38
3bc98c0c
AB
392020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
40
41 * gdbarch.c: Regenerate.
42 * gdbarch.h: Regenerate.
43 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
44 (gdbarch_data): Use internal_error for the case where
45 deprecated_set_gdbarch_data was originally needed.
46 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
47 and use passed in obstack.
48 (libunwind_frame_set_descr): Should no longer get back NULL from
49 gdbarch_data.
50 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
51 type.
52 * user-regs.c (user_regs_init): Update parameters, and use passed
53 in obstack.
54 (user_reg_add): Should no longer get back NULL from gdbarch_data.
55 (_initialize_user_regs): Register as a pre-init gdbarch data type.
56
d8cc8af6
TV
572020-07-06 Tom de Vries <tdevries@suse.de>
58
59 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
60 End-Of-Sequence in lte_is_less_than.
61 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
62 "gdb: Don't reorder line table entries too much when sorting".
63
947f7597
TV
642020-07-06 Tom de Vries <tdevries@suse.de>
65
66 PR tui/26205
67 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
68
1e7c1b22
TV
692020-07-05 Tom de Vries <tdevries@suse.de>
70
71 PR build/26187
72 * inferior.h (struct infcall_suspend_state_deleter): If available, use
73 std::uncaught_exceptions instead of deprecated
74 std::uncaught_exception.
75
a36158ec
SM
762020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
77
78 * macroexp.h (macro_stringify): Return
79 gdb::unique_xmalloc_ptr<char>.
80 * macroexp.c (macro_stringify): Likewise.
81 * macrotab.c (fixup_definition): Update.
82
14d960c8
SM
832020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
84
85 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
86 (lex_one_token): Update.
87 * macroexp.c (struct macro_buffer) <release>: Return
88 gdb::unique_xmalloc_ptr<char>.
89 (macro_stringify): Update.
90 (macro_expand): Update.
91 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
92 * macroexp.h (macro_expand_next): Likewise.
93
211d5b1c
SM
942020-07-02 Simon Marchi <simon.marchi@efficios.com>
95
96 * macroexp.h (macro_lookup_ftype): Remove.
97 (macro_expand, macro_expand_once, macro_expand_next): Remove
98 lookup function parameters, add scope parameter.
99 * macroexp.c (scan, substitute_args, expand, maybe_expand,
100 macro_expand, macro_expand_once, macro_expand_next): Likewise.
101 * macroscope.h (standard_macro_lookup): Change parameter type
102 to macro_scope.
103 * macroscope.c (standard_macro_lookup): Likewise.
104 * c-exp.y (lex_one_token): Update.
105 * macrocmd.c (macro_expand_command): Likewise.
106 (macro_expand_once_command): Likewise.
107
b1a35af2
SM
1082020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
109
110 * inf-loop.c (inferior_event_handler): Remove client_data param.
111 * inf-loop.h (inferior_event_handler): Likewise.
112 * infcmd.c (step_1): Adjust.
113 * infrun.c (proceed): Adjust.
114 (fetch_inferior_event): Remove client_data param.
115 (infrun_async_inferior_event_handler): Adjust.
116 * infrun.h (fetch_inferior_event): Remove `void *` param.
117 * linux-nat.c (handle_target_event): Adjust.
118 * record-btrace.c (record_btrace_handle_async_inferior_event):
119 Adjust.
120 * record-full.c (record_full_async_inferior_event_handler):
121 Adjust.
122 * remote.c (remote_async_inferior_event_handler): Adjust.
123
1cdf9e33
TT
1242020-07-01 Tom Tromey <tom@tromey.com>
125
126 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
127 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
128
32c1e210
TT
1292020-07-01 Tom Tromey <tom@tromey.com>
130
131 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
132 tui_gen_win_info.
133 (tui_win_info::make_window): Merge with
134 tui_gen_win_info::make_window.
135 (tui_win_info::make_visible): Move from tui_gen_win_info.
136 * tui/tui-win.c (tui_win_info::max_width): Move from
137 tui_gen_win_info.
138 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
139 type.
140 <window_factory>: Likewise.
141 * tui/tui-layout.c (tui_win_info::resize): Move from
142 tui_gen_win_info.
143 (make_standard_window): Change return type.
144 (get_locator_window, tui_get_window_by_name): Likewise.
145 (tui_layout_window::apply): Remove a cast.
146 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
147 (struct tui_win_info): Merge with tui_gen_win_info.
148 (struct tui_gen_win_info): Remove.
149
a30cb6da
TT
1502020-07-01 Tom Tromey <tom@tromey.com>
151
152 * tui/tui-stack.h (struct tui_locator_window): Derive from
153 tui_win_info.
154 <do_scroll_horizontal, do_scroll_vertical>: New methods.
155 <can_box>: New method.
156
1eb2161f
TT
1572020-07-01 Tom Tromey <tom@tromey.com>
158
159 * tui/tui-stack.h (struct tui_locator_window): Remove body.
160
7134f2eb
TT
1612020-07-01 Tom Tromey <tom@tromey.com>
162
163 * tui/tui-regs.c (tui_data_window::display_registers_from)
164 (tui_data_window::display_registers_from)
165 (tui_data_window::first_data_item_displayed)
166 (tui_data_window::delete_data_content_windows): Update.
167 (tui_data_window::refresh_window, tui_data_window::no_refresh):
168 Remove.
169 (tui_data_window::check_register_values): Update.
170 (tui_data_item_window::rerender): Add parameters. Update.
171 (tui_data_item_window::refresh_window): Remove.
172 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
173 virtual.
174 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
175 tui_gen_win_info.
176 <refresh_window, max_height, min_height>: Remove.
177 <rerender>: Add parameters.
178 <x, y, visible>: New members.
179 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
180 <m_item_width>: New member.
181
22b7b041
TT
1822020-07-01 Tom Tromey <tom@tromey.com>
183
184 * tui/tui-regs.c (tui_data_window::show_register_group)
185 (tui_data_window::check_register_values): Update.
186 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
187 from item_no.
188
c9753adb
TT
1892020-07-01 Tom Tromey <tom@tromey.com>
190
191 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
192 useless "if".
193
9ab26b4a
TT
1942020-07-01 Tom Tromey <tom@tromey.com>
195
196 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
197 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
198
e555083f
TT
1992020-07-01 Tom Tromey <tom@tromey.com>
200
201 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
202 * tui/tui-winsource.h (enum tui_line_or_address_kind)
203 (struct tui_line_or_address): Move from tui-data.h.
204 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
205 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
206 (tui_cmd_window, tui_source_window_base, tui_source_window)
207 (tui_disasm_window): Don't declare.
208 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
209 to tui-winsource.h.
210 (SINGLE_KEY): Move to tui-stack.c.
211
7a02bab7
TT
2122020-07-01 Tom Tromey <tom@tromey.com>
213
214 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
215 std::string.
216 * tui/tui-regs.c (class tab_expansion_file): New.
217 (tab_expansion_file::write): New method.
218 (tui_register_format): Change return type. Use
219 tab_expansion_file.
220 (tui_get_register, tui_data_window::display_registers_from)
221 (tui_data_item_window::rerender): Update.
222 * tui/tui-io.h (tui_expand_tabs): Don't declare.
223 * tui/tui-io.c (tui_expand_tabs): Remove.
224
ea68593b
TT
2252020-07-01 Tom Tromey <tom@tromey.com>
226
227 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
228
a8caed5d
FS
2292020-07-01 Fangrui Song <maskray@google.com>
230
231 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
232
9cdf9820
AKS
2332020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
234
235 * dwarf2/read.c (set_die_type): Removed conditions to restrict
236 forms for DW_AT_associated and DW_AT_allocated attributes,
237 which is already checked in function attr_to_dynamic_prop.
238
a1520ad8
TT
2392020-06-30 Tom Tromey <tromey@adacore.com>
240
241 * dwarf2/read.c (quirk_rust_enum): Correctly call
242 alloc_rust_variant for default-less enum.
243
5ac58899
TT
2442020-06-30 Tom Tromey <tromey@adacore.com>
245
246 PR build/26183:
247 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
248 gdb::to_string.
249
19b187a9
SM
2502020-06-29 Simon Marchi <simon.marchi@efficios.com>
251
252 * gdbarch.sh (displaced_step_copy_insn): Update doc.
253 * gdbarch.h: Re-generate.
254
cd4c4c07
TT
2552020-06-28 Tom Tromey <tom@tromey.com>
256
257 * command.h (cmd_types): Remove.
258 (cmd_type): Don't declare.
259 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
260 typedef.
261 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
262 * cli/cli-decode.c (cmd_type): Remove.
263
05779d57
PA
2642020-06-27 Pedro Alves <palves@redhat.com>
265
266 * fork-child.c (prefork_hook): Adjust.
267 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
268 Delete.
269 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
270 * inferior.c (inferior::set_tty, inferior::tty): New methods.
271 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
272 Remove declarations.
273 (struct inferior) <set_tty, tty>: New methods.
274 (struct inferior) <terminal>: Rename to ...
275 (struct inferior) <m_terminal>: ... this and make private.
276 * main.c (captured_main_1): Adjust.
277 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
278 (mi_cmd_inferior_tty_show): Adjust.
279 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
280 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
281
1776e3e5
NA
2822020-06-26 Nick Alcock <nick.alcock@oracle.com>
283
284 * configure.ac: Add --enable-libctf: handle --disable-static
285 properly.
286 * acinclude.m4: sinclude ../config/enable.m4.
287 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
288 (LIBCTF): Substitute in.
289 (CTF_DEPS): New, likewise.
290 (CLIBS): libctf needs symbols from libbfd: move earlier.
291 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
292 flags.
293 * ctfread.c: Surround in ENABLE_LIBCTF.
294 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
295 * configure: Regenerate.
296 * config.in: Likewise.
297
58373b80
SM
2982020-06-25 Simon Marchi <simon.marchi@efficios.com>
299
300 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
301
277474ee
SM
3022020-06-25 Simon Marchi <simon.marchi@efficios.com>
303
304 * inferior.h (struct inferior) <terminal>: Change type to
305 gdb::unique_xmalloc_ptr<char>.
306 * inferior.c (inferior::~inferior): Don't free inf->terminal.
307 * infcmd.c (set_inferior_io_terminal): Don't free terminal
308 field, adjust to unique pointer.
309 (get_inferior_io_terminal): Adjust to unique pointer.
310
6d74da72
AB
3112020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
312
313 * riscv-tdep.c (riscv_print_registers_info): Loop over all
314 registers, not just the known core set of registers.
315
2e52d038
AB
3162020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
317
318 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
319 fflags, frm, and fcsr registers.
320 (riscv_register_reggroup_p): Remove unknown CSRs from save and
321 restore groups.
322 (riscv_tdesc_unknown_reg): New function.
323 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
324 tdesc_use_registers.
325 * riscv-tdep.h (struct gdbarch_tdep): Add
326 unknown_csrs_first_regnum, unknown_csrs_count,
327 duplicate_fflags_regnum, duplicate_frm_regnum, and
328 duplicate_fcsr_regnum fields.
329
be64fd07
AB
3302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
331
332 * target-descriptions.c (tdesc_use_registers): Add new parameter a
333 callback, use the callback (when not null) to help number unknown
334 registers.
335 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
336 (tdesc_use_registers): Add extra parameter to declaration.
337
3b9fce96
AB
3382020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
339
340 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
341 in the file.
342 (class riscv_pending_register_alias): Likewise.
343 (riscv_register_feature::register_info): Change 'required_p' field
344 to 'required', and change its type. Add 'check' member function.
345 (riscv_register_feature::register_info::check): Define new member
346 function.
347 (riscv_xreg_feature): Change initialisation of 'required' field.
348 (riscv_freg_feature): Likewise.
349 (riscv_virtual_feature): Likewise.
350 (riscv_csr_feature): Likewise.
351 (riscv_check_tdesc_feature): Take extra parameter, the csr
352 tdesc_feature, rewrite the function to use the new
353 riscv_register_feature::register_info::check function.
354 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
355
865bad26
AB
3562020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
357
358 * features/Makefile: Remove all references to the deleted files
359 below.
360 * features/riscv/32bit-csr.c: Deleted.
361 * features/riscv/32bit-csr.xml: Deleted.
362 * features/riscv/64bit-csr.c: Deleted.
363 * features/riscv/64bit-csr.xml: Deleted.
364 * features/riscv/rebuild-csr-xml.sh: Deleted.
365
ed69cbc8
AB
3662020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
367
368 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
369 whitespace error for declaration of names member variable.
370 (struct riscv_register_feature): Add new prefer_first_name member
371 variable, and fix whitespace error in declaration of registers.
372 (riscv_xreg_feature): Initialize prefer_first_name field.
373 (riscv_freg_feature): Likewise.
374 (riscv_virtual_feature): Likewise.
375 (riscv_csr_feature): Likewise.
376 (riscv_register_name): Expand on comments. Remove register name
377 modifications for CSR and virtual registers.
378
4445e8f5
AB
3792020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
380
381 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
382 errors.
383
767a879e
AB
3842020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
385
386 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
387 riscv-opc.h.
388 (class riscv_pending_register_alias): New class.
389 (riscv_check_tdesc_feature): Take vector of pending aliases and
390 populate it as appropriate.
391 (riscv_setup_register_aliases): Delete.
392 (riscv_gdbarch_init): Create vector of pending aliases and pass it
393 to riscv_check_tdesc_feature in all cases. Use the vector to
394 create the register aliases.
395
bb6e55f3
RO
3962020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
397
398 * sol2-tdep.c (sol2_static_transform_name): Remove.
399 (sol2_init_abi): Don't register it.
400 * gdbarch.sh (static_transform_name): Remove.
401 * gdbarch.c, gdbarch.h: Regenerate.
402
403 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
404 gdbarch_static_transform_name.
405 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
406 * stabsread.c (define_symbol) <'X'>: Remove.
407 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
408 handling.
409 <'V'>: Likewise.
410 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
411 <'S'>: Remove call to gdbarch_static_transform_name.
412
c6d36836
RO
4132020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
414
415 * procfs.c (procfs_pre_trace): New function.
416 (procfs_target::create_inferior): Pass it to fork_inferior.
417
a7e6196b
RO
4182020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
419
420 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
421 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
422 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
423 sol2-tdep.o, sparc-sol2-tdep.o.
424 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
425 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
426 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
427 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
428
d412e696
RO
4292020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
430
431 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
432 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
433 Call sol2_init_abi.
434 Remove calls to set_gdbarch_skip_solib_resolver,
435 set_gdbarch_core_pid_to_str.
436 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
437 (i386_sol2_static_transform_name): Remove.
438 (i386_sol2_init_abi): Call sol2_init_abi.
439 Remove calls to set_gdbarch_sofun_address_maybe_missing,
440 set_gdbarch_static_transform_name,
441 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
442 Use sol2_sigtramp_p.
443 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
444 (sol2_sigtramp_p): New function.
445 (sol2_static_transform_name): New function.
446 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
447 (sol2_init_abi): New function.
448 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
449 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
450 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
451 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
452 (sparc_sol2_static_transform_name): Remove.
453 (sparc32_sol2_init_abi): Call sol2_init_abi.
454 Remove calls to set_gdbarch_sofun_address_maybe_missing,
455 set_gdbarch_static_transform_name,
456 set_gdbarch_skip_solib_resolver,
457 set_gdbarch_core_pid_to_str.
458 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
459 (sparc_sol2_static_transform_name): Remove
460 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
461 call sol2_sigtramp_p.
462 (sparc64_sol2_init_abi): Call sol2_init_abi.
463 Remove calls to set_gdbarch_sofun_address_maybe_missing,
464 set_gdbarch_static_transform_name,
465 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
466
a8654e7d
PW
4672020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
468
469 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
470 * exec.c (validate_exec_file): If from_tty, set both
471 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
472 * symfile.c (symbol_file_add_with_addrs): if always_confirm
473 and from_tty, unconditionally ask a confirmation.
474
caa7fd04
AB
4752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
476
477 * target-descriptions.c (tdesc_architecture_name): Protect against
478 NULL pointer dereference.
479 (maint_print_xml_tdesc_cmd): New function.
480 (_initialize_target_descriptions): Register new 'maint print
481 xml-tdesc' command and give it the filename completer.
482 * NEWS: Mention new 'maint print xml-tdesc' command.
483
fbf42f4e
AB
4842020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
485
486 * target-descriptions.c (class tdesc_compatible_info): New class.
487 (struct target_desc): Change type of compatible vector.
488 (tdesc_compatible_p): Update for change in type of
489 target_desc::compatible.
490 (tdesc_compatible_info_list): New function.
491 (tdesc_compatible_info_arch_name): New function.
492 (tdesc_add_compatible): Update for change in type of
493 target_desc::compatible.
494 (print_c_tdesc::visit_pre): Likewise.
495
20821f4e
AB
4962020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
497
498 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
499 whitespace to underscore.
500 (maint_print_c_tdesc_cmd): Use fake filename for target
501 descriptions that came from the target.
502 (_initialize_target_descriptions): Add filename command completion
503 for 'maint print c-tdesc'.
504
1fb5ee62
SM
5052020-06-23 Simon Marchi <simon.marchi@efficios.com>
506
507 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
508 lines.
509
fc3ecb3e
SM
5102020-06-23 Simon Marchi <simon.marchi@efficios.com>
511
512 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
513 lines.
514 (dwarf2_find_location_expression): Likewise.
515 (call_site_parameter_matches): Likewise.
516 (dwarf2_compile_expr_to_ax): Likewise.
517 (disassemble_dwarf_expression): Likewise.
518 (loclist_describe_location): Likewise.
519
236ef034
PA
5202020-06-23 Pedro Alves <palves@redhat.com>
521
522 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
523 progspace-and-thread.h. Include scoped-mock-context.h instead.
524 (register_to_value_test): Use scoped_mock_context.
525 * regcache.c: Include "scoped-mock-context.h".
526 (cooked_read_test): Don't error out if a target is already pushed.
527 Use scoped_mock_context. Adjust.
528 * scoped-mock-context.h: New file.
529
39e7ecca
AB
5302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
531
532 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
533 initializer.
534 (ada_language::is_string_type_p): New member function.
535 * c-lang.c (c_language_data): Delete la_is_string_type_p
536 initializer.
537 (cplus_language_data): Likewise.
538 (asm_language_data): Likewise.
539 (minimal_language_data): Likewise.
540 * d-lang.c (d_language_data): Likewise.
541 * f-lang.c (f_is_string_type_p): Delete function, implementation
542 moved to f_language::is_string_type_p.
543 (f_language_data): Delete la_is_string_type_p initializer.
544 (f_language::is_string_type_p): New member function,
545 implementation from f_is_string_type_p.
546 * go-lang.c (go_is_string_type_p): Delete function, implementation
547 moved to go_language::is_string_type_p.
548 (go_language_data): Delete la_is_string_type_p initializer.
549 (go_language::is_string_type_p): New member function,
550 implementation from go_is_string_type_p.
551 * language.c (language_defn::is_string_type_p): Define new member
552 function.
553 (default_is_string_type_p): Make static, add comment copied from
554 header file.
555 (unknown_language_data): Delete la_is_string_type_p initializer.
556 (unknown_language::is_string_type_p): New member function.
557 (auto_language_data): Delete la_is_string_type_p initializer.
558 (auto_language::is_string_type_p): New member function.
559 * language.h (language_data): Delete la_is_string_type_p field.
560 (language_defn::is_string_type_p): Declare new function.
561 (default_is_string_type_p): Delete desclaration, move comment to
562 definition.
563 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
564 moved to m2_language::is_string_type_p.
565 (m2_language_data): Delete la_is_string_type_p initializer.
566 (m2_language::is_string_type_p): New member function,
567 implementation from m2_is_string_type_p.
568 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
569 initializer.
570 * opencl-lang.c (opencl_language_data): Likewise.
571 * p-lang.c (pascal_is_string_type_p): Delete function,
572 implementation moved to pascal_language::is_string_type_p.
573 (pascal_language_data): Delete la_is_string_type_p initializer.
574 (pascal_language::is_string_type_p): New member function,
575 implementation from pascal_is_string_type_p.
576 * rust-lang.c (rust_is_string_type_p): Delete function,
577 implementation moved to rust_language::is_string_type_p.
578 (rust_language_data): Delete la_is_string_type_p initializer.
579 (rust_language::is_string_type_p): New member function,
580 implementation from rust_is_string_type_p.
581 * valprint.c (val_print_scalar_or_string_type_p): Update call to
582 is_string_type_p.
583
4ffc13fb
AB
5842020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
585
586 * ada-lang.c (ada_language_data): Delete la_print_typedef
587 initializer.
588 (ada_language::print_typedef): New member function.
589 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
590 (cplus_language_data): Likewise.
591 (asm_language_data): Likewise.
592 (minimal_language_data): Likewise.
593 * d-lang.c (d_language_data): Likewise.
594 * f-lang.c (f_language_data): Likewise.
595 (f_language::print_typedef): New member function.
596 * go-lang.c (go_language_data): Delete la_print_typedef
597 initializer.
598 * language.c (language_defn::print_typedef): Define member
599 function.
600 (unknown_language_data): Delete la_print_typedef initializer.
601 (unknown_language::print_typedef): New member function.
602 (auto_language_data): Delete la_print_typedef initializer.
603 (auto_language::print_typedef): New member function.
604 * language.h (language_data): Delete la_print_typedef field.
605 (language_defn::print_typedef): Declare new member function.
606 (LA_PRINT_TYPEDEF): Update call to print_typedef.
607 (default_print_typedef): Delete declaration.
608 * m2-lang.c (m2_language_data): Delete la_print_typedef
609 initializer.
610 (m2_language::print_typedef): New member function.
611 * objc-lang.c (objc_language_data): Delete la_print_typedef
612 initializer.
613 * opencl-lang.c (opencl_language_data): Likewise.
614 * p-lang.c (pascal_language_data): Likewise.
615 (pascal_language::print_typedef): New member function.
616 * rust-lang.c (rust_print_typedef): Delete function,
617 implementation moved to rust_language::print_typedef.
618 (rust_language): Delete la_print_typedef initializer.
619 (rust_language::print_typedef): New member function,
620 implementation from rust_print_typedef.
621 * typeprint.c (default_print_typedef): Delete.
622
d711ee67
AB
6232020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
624
625 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
626 (ada_language::printstr): New member function.
627 * c-lang.c (c_language_data): Delete la_printstr initializer.
628 (cplus_language_data): Likewise.
629 (asm_language_data): Likewise.
630 (minimal_language_data): Likewise.
631 * d-lang.c (d_language_data): Likewise.
632 * f-lang.c (f_printstr): Rename to f_language::printstr.
633 (f_language_data): Delete la_printstr initializer.
634 (f_language::printstr): New member function, implementation from
635 f_printstr.
636 * go-lang.c (go_language_data): Delete la_printstr initializer.
637 * language.c (language_defn::printstr): Define new member
638 function.
639 (unk_lang_printstr): Delete.
640 (unknown_language_data): Delete la_printstr initializer.
641 (unknown_language::printstr): New member function.
642 (auto_language_data): Delete la_printstr initializer.
643 (auto_language::printstr): New member function.
644 * language.h (language_data): Delete la_printstr field.
645 (language_defn::printstr): Declare new member function.
646 (LA_PRINT_STRING): Update call to printstr.
647 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
648 (m2_language_data): Delete la_printstr initializer.
649 (m2_language::printstr): New member function, implementation from
650 m2_printstr.
651 * objc-lang.c (objc_language_data): Delete la_printstr
652 initializer.
653 * opencl-lang.c (opencl_language_data): Likewise.
654 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
655 (pascal_language_data): Delete la_printstr initializer.
656 (pascal_language::printstr): New member function, implementation
657 from pascal_printstr.
658 * p-lang.h (pascal_printstr): Delete declaration.
659 * rust-lang.c (rust_printstr): Update header comment.
660 (rust_language_data): Delete la_printstr initializer.
661 (rust_language::printstr): New member function.
662
52b50f2c
AB
6632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
664
665 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
666 (ada_language::printchar): New member function.
667 * c-lang.c (c_language_data): Delete la_printchar initializer.
668 (cplus_language_data): Likewise.
669 (asm_language_data): Likewise.
670 (minimal_language_data): Likewise.
671 * d-lang.c (d_language_data): Likewise.
672 * f-lang.c (f_printchar): Rename to f_language::printchar.
673 (f_language_data): Delete la_printchar initializer.
674 (f_language::printchar): New member function, implementation from
675 f_printchar.
676 * go-lang.c (go_language_data): Delete la_printchar initializer.
677 * language.c (unk_lang_printchar): Delete.
678 (language_defn::printchar): Define new member function.
679 (unknown_language_data): Delete la_printchar initializer.
680 (unknown_language::printchar): New member function.
681 (auto_language_data): Delete la_printchar initializer.
682 (auto_language::printchar): New member function.
683 * language.h (language_data): Delete la_printchar field.
684 (language_defn::printchar): Declare new member function.
685 (LA_PRINT_CHAR): Update call to printchar.
686 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
687 (m2_language::printchar): New member function.
688 * objc-lang.c (objc_language_data): Delete la_printchar
689 initializer.
690 * opencl-lang.c (opencl_language_data): Likewise.
691 * p-lang.c (pascal_language_data): Delete la_printchar
692 initializer.
693 (pascal_language::printchar): New member function.
694 * rust-lang.c (rust_printchar): Rename to
695 rust_language::printchar.
696 (rust_language_data): Delete la_printchar initializer.
697 (rust_language::printchar): New member function, implementation
698 from rust_printchar.
699
ec8cec5b
AB
7002020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
701
702 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
703 (ada_language_data): Delete la_emitchar initializer.
704 (ada_language::emitchar): New member function, implementation from
705 emit_char.
706 * c-lang.c (c_language_data): Delete la_emitchar initializer.
707 (cplus_language_data): Likewise.
708 (asm_language_data): Likewise.
709 (minimal_language_data): Likewise.
710 * d-lang.c (d_language_data): Likewise.
711 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
712 (f_language_data): Delete la_emitchar initializer.
713 (f_language::emitchar): New member function, implementation from
714 f_emit_char.
715 * go-lang.c (go_language_data): Delete la_emitchar initializer.
716 * language.c (unk_lang_emit_char): Delete.
717 (language_defn::emitchar): New member function definition.
718 (unknown_language_data): Delete la_emitchar initializer.
719 (unknown_language::emitchar): New member function.
720 (auto_language_data): Delete la_emitchar initializer.
721 (auto_language::emitchar): New member function.
722 * language.h (language_data): Delete la_emitchar field.
723 (language_defn::emitchar): New member field declaration.
724 (LA_EMIT_CHAR): Update call to emitchar.
725 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
726 (m2_language_data): Delete la_emitchar initializer.
727 (m2_language::emitchar): New member function, implementation from
728 m2_emit_char.
729 * objc-lang.c (objc_language_data): Delete la_emitchar
730 initializer.
731 * opencl-lang.c (opencl_language_data): Likewise.
732 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
733 (pascal_language_data): Delete la_emitchar initializer.
734 (pascal_language::emitchar): New member function, implementation
735 from pascal_emit_char.
736 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
737 (rust_language_data): Delete la_emitchar initializer.
738 (rust_language::emitchar): New member function, implementation
739 from rust_emitchar.
740
1bf9c363
AB
7412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
742
743 * ada-lang.c (resolve): Rename to ada_language::post_parser.
744 (ada_language_data): Delete la_post_parser initializer.
745 (ada_language::post_parser): New member function.
746 * c-lang.c (c_language_data): Delete la_post_parser initializer.
747 (cplus_language_data): Likewise.
748 (asm_language_data): Likewise.
749 (minimal_language_data): Likewise.
750 * d-lang.c (d_language_data): Likewise.
751 * f-lang.c (f_language_data): Likewise.
752 * go-lang.c (go_language_data): Likewise.
753 * language.c (unknown_language_data): Likewise.
754 (auto_language_data): Likewise.
755 * language.h (language_data): Delete la_post_parser field.
756 (language_defn::post_parser): New member function.
757 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
758 * objc-lang.c (objc_language_data): Likewise.
759 * opencl-lang.c (opencl_language_data): Likewise.
760 * p-lang.c (pascal_language_data): Likewise.
761 * parse.c (parse_exp_in_context): Update call to post_parser.
762 (null_post_parser): Delete definition.
763 * parser-defs.h (null_post_parser): Delete declaration.
764 * rust-lang.c (rust_language_data): Delete la_post_parser
765 initializer.
766
87afa652
AB
7672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
768
769 * ada-lang.c (parse): Rename to ada_language::parser.
770 (ada_language_data): Delete la_parser initializer.
771 (ada_language::parser): New member function, implementation from
772 parse.
773 * c-lang.c (c_language_data): Delete la_parser initializer.
774 (cplus_language_data): Likewise.
775 (asm_language_data): Likewise.
776 (minimal_language_data): Likewise.
777 * d-lang.c (d_language_data): Likewise.
778 (d_language::parser): New member function.
779 * f-lang.c (f_language_data): Delete la_parser initializer.
780 (f_language::parser): New member function.
781 * go-lang.c (go_language_data): Delete la_parser initializer.
782 (go_language::parser): New member function.
783 * language.c (unk_lang_parser): Delete.
784 (language_defn::parser): Define new member function.
785 (unknown_language_data): Delete la_parser initializer.
786 (unknown_language::parser): New member function.
787 (auto_language_data): Delete la_parser initializer.
788 (auto_language::parser): New member function.
789 * language.h (language_data): Delete la_parser field.
790 (language_defn::parser): Declare new member function.
791 * m2-lang.c (m2_language_data): Delete la_parser initializer.
792 (m2_language::parser): New member function.
793 * objc-lang.c (objc_language_data): Delete la_parser initializer.
794 * opencl-lang.c (opencl_language_data): Likewise.
795 * p-lang.c (pascal_language_data): Likewise.
796 (pascal_language::parser): New member function.
797 * parse.c (parse_exp_in_context): Update call to parser.
798 * rust-lang.c (rust_language_data): Delete la_parser initializer.
799 (rust_language::parser): New member function.
800
37825800
AB
8012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
802
803 * top.c (print_gdb_configuration): Print --with-python-libdir
804 configuration value.
805
5b860c93
PW
8062020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
807
808 * NEWS: Mention change to the alias command.
809
cf00cd6f
PW
8102020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
811
812 * cli/cli-cmds.c (lookup_cmd_for_default_args)
813 (alias_command_completer)
814 (make_alias_options_def_group): New functions.
815 (alias_opts, alias_option_defs): New struct and array.
816 (alias_usage_error): Update usage.
817 (alias_command): Handles optional DEFAULT-ARGS... arguments.
818 Use option framework.
819 (_initialize_cli_cmds): Update alias command help.
820 Update aliases command help.
821 (show_user):
822 Add NULL for new default_args lookup_cmd argument.
823 (valid_command_p): Rename to validate_aliased_command.
824 Add NULL for new default_args lookup_cmd argument. Verify that the
825 aliased_command has no default args.
826 * cli/cli-decode.c (help_cmd): Show aliases definitions.
827 (lookup_cmd_1, lookup_cmd): New argument default_args.
828 (add_alias_cmd):
829 Add NULL for new default_args lookup_cmd argument.
830 (print_help_for_command): Show default args under the layout
831 alias some_alias = some_aliased_cmd some_alias_default_arg.
832 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
833 xfree default_args in destructor.
834 * cli/cli-script.c (process_next_line, do_define_command):
835 Add NULL for new default_args lookup_cmd argument.
836 * command.h: Declare new default_args argument in lookup_cmd
837 and lookup_cmd_1.
838 * completer.c (complete_line_internal_1):
839 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
840 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
841 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
842 Likewise.
843 * infcmd.c (_initialize_infcmd): Likewise.
844 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
845 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
846 * python/py-param.c (add_setshow_generic): Likewise.
847 * remote.c (_initialize_remote): Likewise.
848 * top.c (execute_command): Prepend default_args if command has some.
849 (set_verbose):
850 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
851 * tracepoint.c (validate_actionline, encode_actions_1):
852 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
853
bd920864
TBA
8542020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
855
856 * jit.c (jit_read_descriptor): Use bool as the return type.
857 (jit_breakpoint_re_set_internal): Use bool as the return type.
858 Invert the return value logic; return true if the jit breakpoint
859 has been successfully initialized.
860 (jit_inferior_init): Update the call to
861 jit_breakpoint_re_set_internal.
862
f8098322
PA
8632020-06-22 Pedro Alves <palves@redhat.com>
864
865 PR gdb/25939
866 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
867 Use the current inferior instead. Don't return
868 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
869 wait again.
870 * sol-thread.c (sol_thread_target::wait): Don't reference
871 inferior_ptid.
872 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
873 (sol_update_thread_list_callback): Use the current inferior's pid
874 instead of inferior_ptid.
875
196535a6
RO
8762020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
877
878 * procfs.c: Cleanup many comments.
879
880 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
881 (AFTER_WATCHFLAG): Replace by value.
882
883 (MAIN_PROC_NAME_FORMAT): Inline ...
884 (create_procinfo): ... here.
885
886 (procfs_debug_inferior): Remove SYS_exec handling.
887 (syscall_is_exec): Likewise.
888 (procfs_set_exec_trap): Likewise.
889
890 (syscall_is_lwp_exit): Inline in callers.
891 (syscall_is_exit): Likewise.
892 (syscall_is_exec): Likewise.
893 (syscall_is_lwp_create): Likewise.
894
895 (invalidate_cache): Remove #if 0 code.
896
897 (make_signal_thread_runnable): Remove.
898 (procfs_target::resume): Remove #if 0 code.
899
cf6f3e86
RO
9002020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
901
902 PR gdb/25939
903 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
904 call ...
905 (procfs_target::create_inferior): ... here.
906
48e9cc84
PW
9072020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
908
909 * exec.c (validate_exec_file): Ensure the build-id is up to
910 date by calling reopen_exec_file (that checks file timestamp
911 to decide to re-read the file).
912
3922b302
PA
9132020-06-18 Pedro Alves <palves@redhat.com>
914
915 PR gdb/25412
916 * gdbthread.h (delete_thread, delete_thread_silent)
917 (find_thread_ptid): Update comments.
918 * thread.c (current_thread_): New global.
919 (is_current_thread): Move higher, and reimplement.
920 (inferior_thread): Reimplement.
921 (set_thread_exited): Use bool. Add assertions.
922 (add_thread_silent): Simplify thread-reuse handling by always
923 calling delete_thread.
924 (delete_thread): Remove intro comment.
925 (find_thread_ptid): Skip exited threads.
926 (switch_to_thread_no_regs): Write to current_thread_.
927 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
928 INFERIOR_PTID. Clear current_thread_.
929
6dbdab44
PA
9302020-06-18 Pedro Alves <palves@redhat.com>
931
932 * aix-thread.c (pd_update): Use switch_to_thread.
933
2da4b788
PA
9342020-06-18 Pedro Alves <palves@redhat.com>
935
936 * ravenscar-thread.c (ravenscar_thread_target): Update.
937 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
938 (ravenscar_thread_target::add_active_thread): ... this. Don't
939 set m_base_ptid here. Update to avoid referencing inferior_ptid.
940 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
941
50838d1b
PA
9422020-06-18 Pedro Alves <palves@redhat.com>
943
944 * nat/windows-nat.c (current_windows_thread): Remove.
945 * nat/windows-nat.h (current_windows_thread): Remove.
946 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
947 Adjust.
948 (display_selectors): Adjust to fetch the current
949 windows_thread_info based on inferior_ptid.
950 (fake_create_process): No longer write to current_windows_thread.
951 (windows_nat_target::get_windows_debug_event):
952 Don't set inferior_ptid or current_windows_thread.
953 (windows_nat_target::wait): Adjust to not rely on
954 current_windows_thread.
955 (do_initial_windows_stuff): Now a method of windows_nat_target.
956 Switch to the last_ptid thread.
957 (windows_nat_target::attach): Adjust.
958 (windows_nat_target::detach): Use switch_to_no_thread instead of
959 writing to inferior_ptid directly.
960 (windows_nat_target::create_inferior): Adjust.
961
31ce04e9
PA
9622020-06-18 Pedro Alves <palves@redhat.com>
963
964 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
965
1ee1a363
PA
9662020-06-18 Pedro Alves <palves@redhat.com>
967
968 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
969 after creating it, instead of writing to inferior_ptid. Don't
970 write to inferior_ptid.
971
6d350754
PA
9722020-06-18 Pedro Alves <palves@redhat.com>
973
974 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
975
5d971d48
PA
9762020-06-18 Pedro Alves <palves@redhat.com>
977
978 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
979 it, instead of writing to inferior_ptid.
980
86e57d1b
PA
9812020-06-18 Pedro Alves <palves@redhat.com>
982
983 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
984 to inferior_ptid.
985
f2e1c129
PA
9862020-06-18 Pedro Alves <palves@redhat.com>
987
988 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
989 instead of writing to inferior_ptid directly.
990
60db1b85
PA
9912020-06-18 Pedro Alves <palves@redhat.com>
992
993 * corelow.c (core_target::close): Use switch_to_no_thread instead
994 of writing to inferior_ptid directly.
995 (add_to_thread_list, core_target_open): Use switch_to_thread
996 instead of writing to inferior_ptid directly.
997
fe7d6a8d
PA
9982020-06-18 Pedro Alves <palves@redhat.com>
999
1000 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1001 inferior_ptid.
1002 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1003 inferior_ptid.
1004 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1005 inferior_ptid directly.
1006 (darwin_nat_target::init_thread_list): Switch to thread, instead
1007 of writing to inferior_ptid.
1008 (darwin_nat_target::attach): Don't write to inferior_ptid.
1009 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1010
975f8708
PA
10112020-06-18 Pedro Alves <palves@redhat.com>
1012
1013 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1014 thread.
1015 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1016 Instead use switch_to_thread.
1017 (gnu_nat_target::detach): Use switch_to_no_thread
1018 instead of writing to inferior_ptid directly. Used passed-in
1019 inferior instead of looking up the inferior by pid.
1020
1a204730
PA
10212020-06-18 Pedro Alves <palves@redhat.com>
1022
1023 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1024 inferior_ptid.
1025
ebe84f23
PA
10262020-06-18 Pedro Alves <palves@redhat.com>
1027
1028 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1029 inferior_ptid.
1030 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1031 thread.
1032 (nto_procfs_target::detach): Avoid referencing
1033 inferior_ptid. Use switch_to_no_thread instead of writing to
1034 inferior_ptid directly.
1035 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1036 instead of writing to inferior_ptid directly.
1037 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1038 to thread.
1039
191f02e5
PA
10402020-06-18 Pedro Alves <palves@redhat.com>
1041
1042 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1043 after creating it, instead of writing to inferior_ptid.
1044 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1045 to inferior_ptid directly.
1046 (gdbsim_target::wait): Don't write to inferior_ptid.
1047
0ac55310
PA
10482020-06-18 Pedro Alves <palves@redhat.com>
1049
1050 * remote.c (remote_target::remote_notice_new_inferior): Use
1051 switch_to_thread instead of writing to inferior_ptid directly.
1052 (remote_target::add_current_inferior_and_thread): Use
1053 switch_to_no_thread instead of writing to inferior_ptid directly.
1054 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1055 and switch_to_thread instead of using set_current_inferior or
1056 writing to inferior_ptid directly.
1057
5233f39b
PA
10582020-06-18 Pedro Alves <palves@redhat.com>
1059
1060 * tracectf.c (ctf_target_open): Switch to added thread instead of
1061 writing to inferior_ptid directly.
1062 (ctf_target::close): Use switch_to_no_thread instead of writing to
1063 inferior_ptid directly.
1064
087e161b
PA
10652020-06-18 Pedro Alves <palves@redhat.com>
1066
1067 * tracefile-tfile.c (tfile_target_open): Don't write to
1068 inferior_ptid directly, instead switch to added thread.
1069 (tfile_target::close): Use switch_to_no_thread instead of writing
1070 to inferior_ptid directly.
1071
7fb43e53
PA
10722020-06-18 Pedro Alves <palves@redhat.com>
1073
1074 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1075 (procfs_target::detach): Use switch_to_no_thread
1076 instead of writing to inferior_ptid directly.
1077 (do_attach): Change return type to void. Switch to the added
1078 thread.
1079 (procfs_target::create_inferior): Switch to the added thread.
1080 (procfs_do_thread_registers): Don't write to inferior_ptid.
1081
18493a00
PA
10822020-06-18 Pedro Alves <palves@redhat.com>
1083
1084 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1085 of writing to inferior_ptid.
1086 (scoped_restore_exited_inferior): Delete.
1087 (handle_vfork_child_exec_or_exit): Simplify using
1088 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1089 instead of writing to inferior_ptid.
1090 (THREAD_STOPPED_BY): Delete.
1091 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1092 (thread_stopped_by_hw_breakpoint): Delete.
1093 (save_waitstatus): Use
1094 scoped_restore_current_thread+switch_to_thread, and call
1095 target_stopped_by_watchpoint instead of
1096 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1097 instead of thread_stopped_by_sw_breakpoint, and
1098 target_stopped_by_hw_breakpoint instead of
1099 thread_stopped_by_hw_breakpoint.
1100 (handle_inferior_event)
1101 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1102 inferior_ptid directly, nor
1103 set_current_inferior/set_current_program_space. Use
1104 switch_to_thread / switch_to_inferior_no_thread instead.
1105
a0776b13
PA
11062020-06-18 Pedro Alves <palves@redhat.com>
1107
1108 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1109 instead of writing to inferior_ptid.
1110
6155c136
PA
11112020-06-18 Pedro Alves <palves@redhat.com>
1112
1113 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1114 added thread.
1115 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1116 to the added thread.
1117 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1118 instead of writing to inferior_ptid.
1119
c5316fc6
PA
11202020-06-18 Pedro Alves <palves@redhat.com>
1121
1122 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1123 (register_to_value_test): Mock a program_space too. Heap-allocate
1124 the address space. Don't write to inferior_ptid. Use
1125 switch_to_thread instead.
1126
8df01799
PA
11272020-06-18 Pedro Alves <palves@redhat.com>
1128
1129 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1130 Delete.
1131 (find_signalled_thread()): New, factored out from
1132 linux_make_corefile_notes and adjusted to handle exited threads.
1133 (linux_make_corefile_notes): Adjust to use the new
1134 find_signalled_thread.
1135
41792d68
PA
11362020-06-18 Pedro Alves <palves@redhat.com>
1137
1138 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1139 of saving/restoring inferior_ptid.
1140
612f258a
TT
11412020-06-17 Tom Tromey <tom@tromey.com>
1142
1143 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1144 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1145 declare.
1146 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1147
efb763a5
SM
11482020-06-15 Simon Marchi <simon.marchi@efficios.com>
1149
1150 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1151 of partial symtabs.
1152
2951f6c0
SM
11532020-06-17 Simon Marchi <simon.marchi@efficios.com>
1154
1155 * regformats/reg-arm.dat: Remove.
1156 * regformats/reg-bfin.dat: Remove.
1157 * regformats/reg-cris.dat: Remove.
1158 * regformats/reg-crisv32.dat: Remove.
1159 * regformats/reg-m32r.dat: Remove.
1160 * regformats/reg-tilegx.dat: Remove.
1161 * regformats/reg-tilegx32.dat: Remove.
1162
7d458ea5
SM
11632020-06-17 Simon Marchi <simon.marchi@efficios.com>
1164
1165 * features/Makefile (WHICH): Remove arm files.
1166 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1167 * regformats/arm/arm-with-neon.dat: Remove.
1168 * regformats/arm/arm-with-vfpv2.dat: Remove.
1169 * regformats/arm/arm-with-vfpv3.dat: Remove.
1170
3af96c0d
SM
11712020-06-17 Simon Marchi <simon.marchi@efficios.com>
1172
1173 * features/Makefile (XMLTOC): Remove rx.xml.
1174
b25e22fd
PA
11752020-06-17 Pedro Alves <palves@redhat.com>
1176
1177 * gdbthread.h (thread_control_state) <trap_expected> Update
1178 comments.
1179
a78a19b1
AB
11802020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1181
1182 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1183 ada_language::lookup_symbol_nonlocal.
1184 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1185 (ada_language::lookup_symbol_nonlocal): New member function,
1186 implementation from ada_lookup_symbol_nonlocal.
1187 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1188 initializer.
1189 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1190 initializer.
1191 (cplus_language::lookup_symbol_nonlocal): New member function.
1192 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1193 (minimal_language_data) Likewise.
1194 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1195 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1196 initializer.
1197 (d_language::lookup_symbol_nonlocal): New member function.
1198 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1199 initializer.
1200 (f_language::lookup_symbol_nonlocal): New member function.
1201 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1202 initializer.
1203 * language.c (unknown_language_data): Likewise.
1204 (auto_language_data): Likewise.
1205 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1206 field.
1207 (language_defn::lookup_symbol_nonlocal): New member function.
1208 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1209 initializer.
1210 * objc-lang.c (objc_language_data): Likewise.
1211 * opencl-lang.c (opencl_language_data): Likewise.
1212 * p-lang.c (pascal_language_data): Likewise.
1213 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1214 rust_language::lookup_symbol_nonlocal.
1215 (rust_language_data): Delete la_lookup_symbol_nonlocal
1216 initializer.
1217 (rust_language::lookup_symbol_nonlocal): New member function,
1218 implementation from rust_lookup_symbol_nonlocal.
1219 * symtab.c (lookup_symbol_aux): Update call to
1220 lookup_symbol_nonlocal.
1221 (basic_lookup_symbol_nonlocal): Rename to...
1222 (language_defn::lookup_symbol_nonlocal): ...this, and update
1223 header comment. Remove language_defn parameter, and replace with
1224 uses of `this'.
1225 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1226
ebe2334e
AB
12272020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1228
1229 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1230 initializer.
1231 (ada_language::value_print_inner): New member function.
1232 * c-lang.c (c_language_data): Delete la_value_print_inner
1233 initializer.
1234 (cplus_language_data): Likewise.
1235 (asm_language_data): Likewise.
1236 (minimal_language_data): Likewise.
1237 * d-lang.c (d_language_data): Likewise.
1238 (d_language::value_print_inner): New member function.
1239 * f-lang.c (f_language_data): Delete la_value_print_inner
1240 initializer.
1241 (f_language::value_print_inner): New member function.
1242 * f-lang.h (f_value_print_innner): Rename to...
1243 (f_value_print_inner): ...this (note spelling of 'inner').
1244 * f-valprint.c (f_value_print_innner): Rename to...
1245 (f_value_print_inner): ...this (note spelling of 'inner').
1246 * go-lang.c (go_language_data): Delete la_value_print_inner
1247 initializer.
1248 (go_language::value_print_inner): New member function.
1249 * language.c (language_defn::value_print_inner): Define new member
1250 function.
1251 (unk_lang_value_print_inner): Delete.
1252 (unknown_language_data): Delete la_value_print_inner initializer.
1253 (unknown_language::value_print_inner): New member function.
1254 (auto_language_data): Delete la_value_print_inner initializer.
1255 (auto_language::value_print_inner): New member function.
1256 * language.h (language_data): Delete la_value_print_inner field.
1257 (language_defn::value_print_inner): Delcare new member function.
1258 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1259 initializer.
1260 (m2_language::value_print_inner): New member function.
1261 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1262 initializer.
1263 * opencl-lang.c (opencl_language_data): Likewise.
1264 * p-lang.c (pascal_language_data): Likewise.
1265 (pascal_language::value_print_inner): New member function.
1266 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1267 initializer.
1268 (rust_language::value_print_inner): New member function.
1269 * valprint.c (do_val_print): Update call to value_print_inner.
1270
a1d1fa3e
AB
12712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1272
1273 * ada-lang.c (ada_language_data): Delete la_value_print
1274 initializer.
1275 (ada_language::value_print): New member function.
1276 * c-lang.c (c_language_data): Delete la_value_print initializer.
1277 (cplus_language_data): Likewise.
1278 (asm_language_data): Likewise.
1279 (minimal_language_data): Likewise.
1280 * d-lang.c (d_language_data): Likewise.
1281 * f-lang.c (f_language_data): Likewise.
1282 * go-lang.c (go_language_data): Likewise.
1283 * language.c (unk_lang_value_print): Delete.
1284 (language_defn::value_print): Define new member function.
1285 (unknown_language_data): Delete la_value_print initializer.
1286 (unknown_language::value_print): New member function.
1287 (auto_language_data): Delete la_value_print initializer.
1288 (auto_language::value_print): New member function.
1289 * language.h (language_data): Delete la_value_print field.
1290 (language_defn::value_print): Declare new member function.
1291 (LA_VALUE_PRINT): Update call to value_print.
1292 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1293 * objc-lang.c (objc_language_data): Likewise.
1294 * opencl-lang.c (opencl_language_data): Likewise.
1295 * p-lang.c (pascal_language_data): Likewise.
1296 (pascal_language::value_print): New member function.
1297 * rust-lang.c (rust_language_data): Delete la_value_print
1298 initializer.
1299
f16a9f57
AB
13002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1301
1302 * ada-lang.c (ada_watch_location_expression): Rename to
1303 ada_language::watch_location_expression.
1304 (ada_language_data): Delete la_watch_location_expression
1305 initializer.
1306 (ada_language::watch_location_expression): New member function,
1307 implementation from ada_watch_location_expression.
1308 * breakpoint.c (watch_command_1): Update call to
1309 watch_location_expression.
1310 * c-lang.c (c_watch_location_expression): Rename to
1311 language_defn::watch_location_expression.
1312 (c_language_data): Delete la_watch_location_expression
1313 initializer.
1314 (cplus_language_data): Likewise.
1315 (asm_language_data): Likewise.
1316 (minimal_language_data): Likewise.
1317 * c-lang.h (c_watch_location_expression): Delete declaration.
1318 * d-lang.c (d_language_data): Delete la_watch_location_expression
1319 initializer.
1320 * f-lang.c (f_language_data): Likewise.
1321 * go-lang.c (go_language_data): Likewise.
1322 * language.c (language_defn::watch_location_expression): Member
1323 function implementation from c_watch_location_expression.
1324 (unknown_language_data): Delete la_watch_location_expression
1325 initializer.
1326 (auto_language_data): Likewise.
1327 * language.h (language_data): Delete la_watch_location_expression
1328 field.
1329 (language_defn::watch_location_expression): Declare new member
1330 function.
1331 * m2-lang.c (m2_language_data): Delete
1332 la_watch_location_expression initializer.
1333 * objc-lang.c (objc_language_data): Likewise.
1334 * opencl-lang.c (opencl_language_data): Likewise.
1335 * p-lang.c (pascal_language_data): Likewise.
1336 * rust-lang.c (rust_watch_location_expression): Rename to
1337 rust_language::watch_location_expression.
1338 (rust_language_data): Delete la_watch_location_expression
1339 initializer.
1340 (rust_language::watch_location_expression): New member function,
1341 implementation from rust_watch_location_expression.
1342
7e56227d
AB
13432020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1344
1345 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1346 ada_language::collect_symbol_completion_matches.
1347 (ada_language_data): Delete la_collect_symbol_completion_matches
1348 initializer.
1349 (ada_language::collect_symbol_completion_matches): New member
1350 function, implementation from
1351 ada_collect_symbol_completion_matches.
1352 * c-lang.c (c_language_data): Delete
1353 la_collect_symbol_completion_matches initializer.
1354 (cplus_language_data): Likewise.
1355 (asm_language_data): Likewise.
1356 (minimal_language_data): Likewise.
1357 * d-lang.c (d_language_data): Likewise.
1358 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1359 f_language::collect_symbol_completion_matches.
1360 (f_language_data): Delete la_collect_symbol_completion_matches
1361 initializer.
1362 (f_language::collect_symbol_completion_matches) New member
1363 function, implementation from f_collect_symbol_completion_matches.
1364 * go-lang.c (go_language_data): Delete
1365 la_collect_symbol_completion_matches initializer.
1366 * language.c (unknown_language_data): Likewise.
1367 (auto_language_data): Likewise.
1368 * language.h (language_data): Delete
1369 la_collect_symbol_completion_matches field.
1370 (language_defn::collect_symbol_completion_matches): New member
1371 function.
1372 * m2-lang.c (m2_language_data): Delete
1373 la_collect_symbol_completion_matches initializer.
1374 * objc-lang.c (objc_language_data): Likewise.
1375 * opencl-lang.c (opencl_language_data): Likewise.
1376 * p-lang.c (pascal_language_data): Likewise.
1377 * rust-lang.c (rust_language_data): Likewise.
1378 * symtab.c (default_collect_symbol_completion_matches): Delete.
1379 (collect_symbol_completion_matches): Update call to
1380 collect_symbol_completion_matches.
1381 (collect_symbol_completion_matches_type): Likewise.
1382 * symtab.h (default_collect_symbol_completion_matches): Delete
1383 declaration.
1384
53fc67f8
AB
13852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1386
1387 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1388 (ada_language_data): Delete la_word_break_characters initializer.
1389 (ada_language::word_break_characters): New member function.
1390 * c-lang.c (c_language_data): Delete la_word_break_characters
1391 initializer.
1392 (cplus_language_data): Likewise.
1393 (asm_language_data): Likewise.
1394 (minimal_language_data): Likewise.
1395 * completer.c: Update global comment.
1396 (advance_to_expression_complete_word_point): Update call to
1397 word_break_characters.
1398 (complete_files_symbols): Likewise.
1399 (complete_line_internal_1): Likewise.
1400 (default_completer_handle_brkchars): Likewise.
1401 (skip_quoted_chars): Likewise.
1402 * d-lang.c (d_language_data): Delete la_word_break_characters
1403 initializer.
1404 * f-lang.c (f_word_break_characters): Delete.
1405 (f_language_data): Delete la_word_break_characters initializer.
1406 (f_language::word_break_characters): New member function.
1407 * go-lang.c (go_language_data): Delete la_word_break_characters
1408 initializer.
1409 * language.c (unknown_language_data): Likewise.
1410 (auto_language_data): Likewise.
1411 * language.h (default_word_break_characters): Move declaration to
1412 earlier in the file.
1413 (language_data): Delete la_word_break_characters field.
1414 (language_defn::word_break_characters): New member function.
1415 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1416 initializer.
1417 * objc-lang.c (objc_language_data): Likewise.
1418 * opencl-lang.c (opencl_language_data): Likewise.
1419 * p-lang.c (pascal_language_data): Likewise.
1420 * rust-lang.c (rust_language_data): Likewise.
1421
c9debfb9
AB
14222020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1423
1424 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1425 (ada_language_data): Delete la_get_symbol_name_matcher
1426 initializer.
1427 (language_defn::get_symbol_name_matcher_inner): New member
1428 function.
1429 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1430 initializer.
1431 (cplus_language_data): Likewise.
1432 (cplus_language::get_symbol_name_matcher_inner): New member
1433 function.
1434 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1435 (minimal_language_data): Likewise.
1436 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1437 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1438 initializer.
1439 * dictionary.c (iter_match_first_hashed): Update call to
1440 get_symbol_name_matcher.
1441 (iter_match_next_hashed): Likewise.
1442 (iter_match_next_linear): Likewise.
1443 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1444 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1445 initializer.
1446 (f_language::get_symbol_name_matcher_inner): New member function.
1447 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1448 initializer.
1449 * language.c (default_symbol_name_matcher): Update header comment,
1450 make static.
1451 (language_defn::get_symbol_name_matcher): New definition.
1452 (language_defn::get_symbol_name_matcher_inner): Likewise.
1453 (get_symbol_name_matcher): Delete.
1454 (unknown_language_data): Delete la_get_symbol_name_matcher
1455 initializer.
1456 (auto_language_data): Likewise.
1457 * language.h (language_data): Delete la_get_symbol_name_matcher
1458 field.
1459 (language_defn::get_symbol_name_matcher): New member function.
1460 (language_defn::get_symbol_name_matcher_inner): Likewise.
1461 (default_symbol_name_matcher): Delete declaration.
1462 * linespec.c (find_methods): Update call to
1463 get_symbol_name_matcher.
1464 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1465 initializer.
1466 * minsyms.c (lookup_minimal_symbol): Update call to
1467 get_symbol_name_matcher.
1468 (iterate_over_minimal_symbols): Likewise.
1469 * objc-lang.c (objc_language_data): Delete
1470 la_get_symbol_name_matcher initializer.
1471 * opencl-lang.c (opencl_language_data): Likewise.
1472 * p-lang.c (pascal_language_data): Likewise.
1473 * psymtab.c (psymbol_name_matches): Update call to
1474 get_symbol_name_matcher.
1475 * rust-lang.c (rust_language_data): Delete
1476 la_get_symbol_name_matcher initializer.
1477 * symtab.c (symbol_matches_search_name): Update call to
1478 get_symbol_name_matcher.
1479 (compare_symbol_name): Likewise.
1480
9a49ad8c
AB
14812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1482
1483 * ada-lang.c (ada_language_data): Delete la_compute_program
1484 initializer.
1485 * c-lang.c (c_language_data): Likewise.
1486 (c_language::compute_program): New member function.
1487 (cplus_language_data): Delete la_compute_program initializer.
1488 (cplus_language::compute_program): New member function.
1489 (asm_language_data): Delete la_compute_program initializer.
1490 (minimal_language_data): Likewise.
1491 * c-lang.h (c_compute_program): Update comment.
1492 (cplus_compute_program): Likewise.
1493 * compile/compile-c-support.c (c_compute_program): Likewise.
1494 (cplus_compute_program): Likewise.
1495 * compile/compile.c (compile_to_object): Update call to
1496 la_compute_program.
1497 * d-lang.c (d_language_data): Delete la_compute_program
1498 initializer.
1499 * f-lang.c (f_language_data): Likewise.
1500 * go-lang.c (go_language_data): Likewise.
1501 * language.c (unknown_language_data): Likewise.
1502 (auto_language_data): Likewise.
1503 * language.h (language_data): Delete la_compute_program field.
1504 (language_defn::compute_program): New member function.
1505 * m2-lang.c (m2_language_data): Delete la_compute_program
1506 initializer.
1507 * objc-lang.c (objc_language_data): Likewise.
1508 * opencl-lang.c (opencl_language_data): Likewise.
1509 * p-lang.c (pascal_language_data): Likewise.
1510 * rust-lang.c (rust_language_data): Likewise.
1511
eff93b4d
AB
15122020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1513
1514 * ada-lang.c (ada_language_data) Delete
1515 la_class_name_from_physname initializer.
1516 * c-lang.c (c_language_data): Likewise.
1517 (cplus_language_data): Likewise.
1518 (cplus_language::class_name_from_physname): New member function.
1519 (asm_language_data): Delete la_class_name_from_physname
1520 initializer.
1521 (minimal_language_data): Likewise.
1522 * d-lang.c (d_language_data): Likewise.
1523 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1524 method on language_defn class.
1525 (guess_full_die_structure_name): Likewise.
1526 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1527 initializer.
1528 * go-lang.c (go_language_data): Likewise.
1529 * language.c (language_class_name_from_physname): Delete.
1530 (unk_lang_class_name): Delete.
1531 (unknown_language_data): Delete la_class_name_from_physname
1532 initializer.
1533 (auto_language_data): Likewise.
1534 * language.h (language_data): Delete la_class_name_from_physname
1535 field.
1536 (language_defn::class_name_from_physname): New function.
1537 (language_class_name_from_physname): Delete declaration.
1538 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1539 initializer.
1540 * objc-lang.c (objc_language_data): Likewise.
1541 * opencl-lang.c (opencl_language_data): Likewise.
1542 * p-lang.c (pascal_language_data): Likewise.
1543 * rust-lang.c (rust_language_data): Likewise.
1544
de543742
TT
15452020-06-16 Tom Tromey <tom@tromey.com>
1546
1547 * tui/tui-data.h (STATUS_NAME): New macro.
1548 * tui/tui-layout.c (tui_remove_some_windows)
1549 (initialize_known_windows, tui_register_window)
1550 (tui_layout_split::remove_windows, initialize_layouts)
1551 (tui_new_layout_command): Don't use hard-coded window names.
1552
a350efd4
TT
15532020-06-16 Tom Tromey <tom@tromey.com>
1554
1555 PR tui/25348:
1556 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1557 tui_initialize_readline. Only run once. Call rl_initialize.
1558 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1559 tui_initialize_readline.
1560 * tui/tui-io.c (tui_setup_io): Call
1561 tui_ensure_readline_initialized.
1562 * tui/tui-interp.c (tui_interp::init): Update.
1563
39ec0490
TT
15642020-06-16 Tom Tromey <tom@tromey.com>
1565
1566 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1567 Also preserve the status window.
1568
d2d1ea20
TT
15692020-06-16 Tom Tromey <tom@tromey.com>
1570
1571 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1572 where m_window==nullptr.
1573
66920317
TT
15742020-06-15 Tom Tromey <tromey@adacore.com>
1575
1576 * windows-nat.c (windows_nat::handle_output_debug_string):
1577 Update.
1578 (windows_nat::handle_ms_vc_exception): Update.
1579 * target.h (target_read_string): Change API.
1580 * target.c (target_read_string): Change API.
1581 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1582 Update.
1583 * solib-frv.c (frv_current_sos): Update.
1584 * solib-dsbt.c (dsbt_current_sos): Update.
1585 * solib-darwin.c (darwin_current_sos): Update.
1586 * linux-thread-db.c (inferior_has_bug): Update.
1587 * expprint.c (print_subexp_standard): Update.
1588 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1589 (ada_exception_message_1): Update.
1590
a5d871dd
TT
15912020-06-15 Tom Tromey <tromey@adacore.com>
1592
1593 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1594
670e35fa
TT
15952020-06-15 Tom Tromey <tromey@adacore.com>
1596
1597 * valprint.c (read_string): Update comment.
1598 * target.c (MIN): Remove.
1599 (target_read_string): Rewrite.
1600
f5272a3b
TT
16012020-06-15 Tom Tromey <tromey@adacore.com>
1602
1603 * corefile.c (read_memory_string): Remove.
1604 * ada-valprint.c (ada_value_print_ptr): Update.
1605 * ada-lang.h (ada_tag_name): Change return type.
1606 * ada-lang.c (type_from_tag): Update.
1607 (ada_tag_name_from_tsd): Change return type. Use
1608 target_read_string.
1609 (ada_tag_name): Likewise.
1610 * gdbcore.h (read_memory_string): Don't declare.
1611
2c074f49
HD
16122020-06-14 Hannes Domani <ssbssa@yahoo.de>
1613
1614 * symtab.c (rbreak_command): Ignore Windows drive colon.
1615
6a17d503
SM
16162020-06-12 Simon Marchi <simon.marchi@efficios.com>
1617
1618 * NEWS: Mention removed GDBserver host support.
1619
453c733f
NC
16202020-06-12 Nelson Chu <nelson.chu@sifive.com>
1621
1622 * features/riscv/rebuild-csr-xml.sh: Updated.
1623
2b4e6a3f
TT
16242020-06-11 Tom Tromey <tom@tromey.com>
1625
1626 PR gdb/18318:
1627 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1628
4412332f
JG
16292020-06-09 Jonny Grant <jg@jguk.org>
16302020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1631
1632 * main.c (captured_main_1): Don't print new line after help.
1633 (print_gdb_help): add mailing list and IRC channel information
1634 to --help. Add new lines between items in the footer. Remove
1635 quotes around bug url.
1636
2f33032a
KS
16372020-06-11 Keith Seitz <keiths@redhat.com>
1638
1639 PR gdb/21356
1640 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1641 Resolve typedefs for type length calculations.
1642
7ab96794
TV
16432020-06-10 Tom de Vries <tdevries@suse.de>
1644
1645 PR ada/24713
1646 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1647 (write_psymbols): Enable .gdb_index for ada.
1648 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1649 ada.
1650
e5f3ece2
TV
16512020-06-10 Tom de Vries <tdevries@suse.de>
1652
1653 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1654 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1655 namei" instead of "const char *name" argument.
1656 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1657 dw2_symtab_iter_init.
1658
940da03e
SM
16592020-06-08 Simon Marchi <simon.marchi@efficios.com>
1660
1661 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1662 to use type::field and field::type instead.
1663
b6cdac4b
SM
16642020-06-08 Simon Marchi <simon.marchi@efficios.com>
1665
1666 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1667 to use field::type instead.
1668
5d14b6e5
SM
16692020-06-08 Simon Marchi <simon.marchi@efficios.com>
1670
1671 * gdbtypes.h (struct field) <type, set_type>: New methods.
1672 Rename `type` field to...
1673 <m_type>: ... this. Change references throughout to use type or
1674 set_type methods.
1675 (FIELD_TYPE): Use field::type. Change call sites that modify
1676 the field's type to use field::set_type instead.
1677
3d967001
SM
16782020-06-08 Simon Marchi <simon.marchi@efficios.com>
1679
1680 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1681 to use type::index_type instead.
1682
262abc0d
SM
16832020-06-08 Simon Marchi <simon.marchi@efficios.com>
1684
1685 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1686 methods.
1687 (TYPE_INDEX_TYPE): Use type::index_type.
1688 * gdbtypes.c (create_array_type_with_stride): Likewise.
1689
82836c92
TT
16902020-06-07 Tom Tromey <tom@tromey.com>
1691
1692 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1693 parameter.
1694 (generic_value_print): Update.
1695
940dace9
AB
16962020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1697
1698 Revert commit 982a38f60b0.
1699 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1700
982a38f6
AB
17012020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1702
1703 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1704 avoid use after free.
1705
82f06518
TV
17062020-06-05 Tom de Vries <tdevries@suse.de>
1707
1708 * NEWS: Fix typos.
1709
f8c41851
SM
17102020-06-04 Simon Marchi <simon.marchi@efficios.com>
1711
1712 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1713 the per_bfd object.
1714 (dwarf2_read_debug_names): Likewise.
1715 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1716 object when re-using a per_bfd object with an index.
1717
f9b5d5ea
TV
17182020-06-03 Tom de Vries <tdevries@suse.de>
1719
1720 PR symtab/26046
1721 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1722 children for C++.
1723 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1724 DW_TAG_subprogram.
1725
f6eee2d0
AB
17262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1727
1728 * ada-lang.c (ada_language_data): Delete skip_trampoline
1729 initializer.
1730 * c-lang.c (c_language_data): Likewise.
1731 (cplus_language_data): Likewise.
1732 (cplus_language::skip_trampoline): New member function.
1733 (asm_language_data): Delete skip_trampoline initializer.
1734 (minimal_language_data): Likewise.
1735 * d-lang.c (d_language_data): Likewise.
1736 * f-lang.c (f_language_data): Likewise.
1737 * go-lang.c (go_language_data): Likewise.
1738 * language.c (unk_lang_trampoline): Delete function.
1739 (skip_language_trampoline): Update.
1740 (unknown_language_data): Delete skip_trampoline initializer.
1741 (auto_language_data): Likewise.
1742 * language.h (language_data): Delete skip_trampoline field.
1743 (language_defn::skip_trampoline): New function.
1744 * m2-lang.c (m2_language_data): Delete skip_trampoline
1745 initializer.
1746 * objc-lang.c (objc_skip_trampoline): Delete function, move
1747 implementation to objc_language::skip_trampoline.
1748 (objc_language_data): Delete skip_trampoline initializer.
1749 (objc_language::skip_trampoline): New member function with
1750 implementation from objc_skip_trampoline.
1751 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1752 initializer.
1753 * p-lang.c (pascal_language_data): Likewise.
1754 * rust-lang.c (rust_language_data): Likewise.
1755
0a50df5d
AB
17562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1757
1758 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1759 (ada_language::demangle): New member function.
1760 * c-lang.c (c_language_data): Delete la_demangle initializer.
1761 (cplus_language_data): Delete la_demangle initializer.
1762 (cplus_language::demangle): New member function.
1763 (asm_language_data): Delete la_demangle initializer.
1764 (minimal_language_data): Delete la_demangle initializer.
1765 * d-lang.c (d_language_data): Delete la_demangle initializer.
1766 (d_language::demangle): New member function.
1767 * f-lang.c (f_language_data): Delete la_demangle initializer.
1768 (f_language::demangle): New member function.
1769 * go-lang.c (go_language_data): Delete la_demangle initializer.
1770 (go_language::demangle): New member function.
1771 * language.c (language_demangle): Update.
1772 (unk_lang_demangle): Delete.
1773 (unknown_language_data): Delete la_demangle initializer.
1774 (unknown_language::demangle): New member function.
1775 (auto_language_data): Delete la_demangle initializer.
1776 (auto_language::demangle): New member function.
1777 * language.h (language_data): Delete la_demangle field.
1778 (language_defn::demangle): New function.
1779 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1780 * objc-lang.c (objc_language_data): Delete la_demangle
1781 initializer.
1782 (objc_language::demangle): New member function.
1783 * opencl-lang.c (opencl_language_data): Delete la_demangle
1784 initializer.
1785 * p-lang.c (pascal_language_data): Likewise.
1786 * rust-lang.c (rust_language_data): Likewise.
1787 (rust_language::demangle): New member function.
1788
fbfb0a46
AB
17892020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1790
1791 * ada-lang.c (ada_language_data): Delete la_print_type
1792 initializer.
1793 (ada_language::print_type): New member function.
1794 * c-lang.c (c_language_data): Delete la_print_type initializer.
1795 (c_language::print_type): New member function.
1796 (cplus_language_data): Delete la_print_type initializer.
1797 (cplus_language::print_type): New member function.
1798 (asm_language_data): Delete la_print_type initializer.
1799 (asm_language::print_type): New member function.
1800 (minimal_language_data): Delete la_print_type initializer.
1801 (minimal_language::print_type): New member function.
1802 * d-lang.c (d_language_data): Delete la_print_type initializer.
1803 (d_language::print_type): New member function.
1804 * f-lang.c (f_language_data): Delete la_print_type initializer.
1805 (f_language::print_type): New member function.
1806 * go-lang.c (go_language_data): Delete la_print_type initializer.
1807 (go_language::print_type): New member function.
1808 * language.c (unk_lang_print_type): Delete.
1809 (unknown_language_data): Delete la_print_type initializer.
1810 (unknown_language::print_type): New member function.
1811 (auto_language_data): Delete la_print_type initializer.
1812 (auto_language::print_type): New member function.
1813 * language.h (language_data): Delete la_print_type field.
1814 (language_defn::print_type): New function.
1815 (LA_PRINT_TYPE): Update.
1816 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1817 (m2_language::print_type): New member function.
1818 * objc-lang.c (objc_language_data): Delete la_print_type
1819 initializer.
1820 (objc_language::print_type): New member function.
1821 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1822 to opencl_language::print_type.
1823 (opencl_language_data): Delete la_print_type initializer.
1824 (opencl_language::print_type): New member function, implementation
1825 from opencl_print_type.
1826 * p-lang.c (pascal_language_data): Delete la_print_type
1827 initializer.
1828 (pascal_language::print_type): New member function.
1829 * rust-lang.c (rust_print_type): Delete, implementation moved to
1830 rust_language::print_type.
1831 (rust_language_data): Delete la_print_type initializer.
1832 (rust_language::print_type): New member function, implementation
1833 from rust_print_type.
1834
6f827019
AB
18352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1836
1837 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1838 implementation moves to...
1839 (ada_language::sniff_from_mangled_name): ...here. Update return
1840 type.
1841 (ada_language_data): Delete la_sniff_from_mangled_name
1842 initializer.
1843 * c-lang.c (c_language_data): Likewise.
1844 (cplus_language_data): Likewise.
1845 (cplus_language::sniff_from_mangled_name): New member function,
1846 implementation taken from gdb_sniff_from_mangled_name.
1847 (asm_language_data): Delete la_sniff_from_mangled_name
1848 initializer.
1849 (minimal_language_data): Likewise.
1850 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1851 implementation moves to cplus_language::sniff_from_mangled_name.
1852 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1853 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1854 moves to...
1855 (d_language::sniff_from_mangled_name): ...here.
1856 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1857 * f-lang.c (f_language_data): Likewise.
1858 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1859 moves to...
1860 (go_language::sniff_from_mangled_name): ...here.
1861 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1862 * language.c (language_sniff_from_mangled_name): Delete.
1863 (unknown_language_data): Delete la_sniff_from_mangled_name
1864 initializer.
1865 (auto_language_data): Likewise.
1866 * language.h (language_data): Delete la_sniff_from_mangled_name
1867 field.
1868 (language_defn::sniff_from_mangled_name): New function.
1869 (language_sniff_from_mangled_name): Delete declaration.
1870 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1871 field.
1872 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1873 implementation moves to...
1874 (objc_language::sniff_from_mangled_name): ...here.
1875 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1876 * opencl-lang.c (opencl_language_data): Likewise.
1877 * p-lang.c (pascal_language_data): Likewise.
1878 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1879 implementation moves to...
1880 (rust_language::sniff_from_mangled_name): ...here.
1881 (rust_language_data): Delete la_sniff_from_mangled_name
1882 initializer.
1883 * symtab.c (symbol_find_demangled_name): Call
1884 sniff_from_mangled_name member function.
1885
fb8006fd
AB
18862020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1887
1888 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1889 initializer.
1890 * c-lang.c (c_language_data): Likewise.
1891 (cplus_language_data): Likewise.
1892 (cplus_language::search_name_hash): New member function.
1893 (asm_language_data): Delete la_search_name_hash initializer.
1894 (minimal_language_data): Likewise.
1895 * d-lang.c (d_language_data): Likewise.
1896 * dictionary.c (default_search_name_hash): Rename to...
1897 (language_defn::search_name_hash): ...this.
1898 * f-lang.c (f_language_data): Likewise.
1899 (f_language::search_name_hash): New member function.
1900 * go-lang.c (go_language_data): Delete la_search_name_hash
1901 initializer.
1902 * language.c (unknown_language_data): Likewise.
1903 (auto_language_data): Likewise.
1904 * language.h (struct language_data): Delete la_search_name_hash
1905 field.
1906 (language_defn::search_name_hash): Declare new member function.
1907 (default_search_name_hash): Delete declaration.
1908 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1909 initializer.
1910 * objc-lang.c (objc_language_data): Likewise.
1911 * opencl-lang.c (opencl_language_data): Likewise.
1912 * p-lang.c (pascal_language_data): Likewise.
1913 * rust-lang.c (rust_language_data): Likewise.
1914 * symtab.c (search_name_hash): Update call.
1915
8e25bafe
AB
19162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1917
1918 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1919 initializer.
1920 * c-lang.c (class compile_instance): Declare.
1921 (c_language_data): Delete la_get_compile_instance initializer.
1922 (c_language::get_compile_instance): New member function.
1923 (cplus_language_data): Delete la_get_compile_instance initializer.
1924 (cplus_language::get_compile_instance): New member function.
1925 (asm_language_data): Delete la_get_compile_instance initializer.
1926 (minimal_language_data): Likewise.
1927 * c-lang.h (c_get_compile_context): Update comment.
1928 (cplus_get_compile_context): Update comment.
1929 * compile/compile.c (compile_to_object): Update calls, don't rely
1930 on function pointer being NULL.
1931 * d-lang.c (d_language_data): Delete la_get_compile_instance
1932 initializer.
1933 * f-lang.c (f_language_data): Likewise.
1934 * go-lang.c (go_language_data): Likewise.
1935 * language.c (unknown_language_data): Likewise.
1936 (auto_language_data): Likewise.
1937 * language.h (language_data): Delete la_get_compile_instance field.
1938 (language_defn::get_compile_instance): New member function.
1939 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1940 initializer.
1941 * objc-lang.c (objc_language_data): Likewise.
1942 * opencl-lang.c (opencl_language_data): Likewise.
1943 * p-lang.c (pascal_language_data): Likewise.
1944 * rust-lang.c (rust_language_data): Likewise.
1945
4009ee92
AB
19462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1947
1948 * ada-lang.c (ada_add_all_symbols): Update comment.
1949 (ada_iterate_over_symbols): Delete, move implementation to...
1950 (ada_language::iterate_over_symbols): ...here, a new member
1951 function, rewrite to use range based for loop.
1952 (ada_language_data): Delete la_iterate_over_symbols initializer.
1953 * c-lang.c (c_language_data): Likewise.
1954 (cplus_language_data): Likewise.
1955 (asm_language_data): Likewise.
1956 (minimal_language_data): Likewise.
1957 * d-lang.c (d_language_data): Likewise.
1958 * f-lang.c (f_language_data): Likewise.
1959 * go-lang.c (go_language_data): Likewise.
1960 * language.c (unknown_language_data): Likewise.
1961 (auto_language_data): Likewise.
1962 * language.h (language_data): Delete la_iterate_over_symbols field.
1963 (language_defn::iterate_over_symbols): New member function.
1964 (LA_ITERATE_OVER_SYMBOLS): Update.
1965 * linespec.c (iterate_over_all_matching_symtabs): Update.
1966 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
1967 initializer.
1968 * objc-lang.c (objc_language_data): Likewise.
1969 * opencl-lang.c (opencl_language_data): Likewise.
1970 * p-lang.c (pascal_language_data): Likewise.
1971 * rust-lang.c (rust_language_data): Likewise.
1972
54f4ca46
AB
19732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1974
1975 * ada-lang.c (ada_language_data): Delete
1976 la_lookup_transparent_type initializer.
1977 * c-lang.c (c_language_data): Likewise.
1978 (cplus_language_data): Likewise.
1979 (cplus_language::lookup_transparent_type): New member function.
1980 (asm_language_data): Delete la_lookup_transparent_type
1981 initializer.
1982 (minimal_language_data): Likewise.
1983 * d-lang.c (d_language_data): Likewise.
1984 * f-lang.c (f_language_data): Likewise.
1985 * go-lang.c (go_language_data): Likewise.
1986 * language.c (unknown_language_data): Likewise.
1987 (auto_language_data): Likewise.
1988 * language.h (struct language_data): Delete
1989 la_lookup_transparent_type field.
1990 (language_defn::lookup_transparent_type): New member function.
1991 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
1992 initializer.
1993 * objc-lang.c (objc_language_data): Likewise.
1994 * opencl-lang.c (opencl_language_data): Likewise.
1995 * p-lang.c (pascal_language_data): Likewise.
1996 * rust-lang.c (rust_language_data): Likewise.
1997 * symtab.c (symbol_matches_domain): Update call.
1998
1fb314aa
AB
19992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2000
2001 * ada-lang.c (ada_language_arch_info): Delete function, move
2002 implementation to...
2003 (ada_language::language_arch_info): ...here, a new member
2004 function.
2005 (ada_language_data): Delete la_language_arch_info.
2006 * c-lang.c (c_language_data): Likewise.
2007 (c_language::language_arch_info): New member function.
2008 (cplus_language_arch_info): Delete function, move
2009 implementation to...
2010 (cplus_language::language_arch_info): ...here, a new member
2011 function.
2012 (cplus_language_data): Delete la_language_arch_info.
2013 (asm_language_data): Likewise.
2014 (asm_language::language_arch_info): New member function.
2015 (minimal_language_data): Delete la_language_arch_info.
2016 (minimal_language::language_arch_info): New member function.
2017 * d-lang.c (d_language_arch_info): Delete function, move
2018 implementation to...
2019 (d_language::language_arch_info): ...here, a new member
2020 function.
2021 (d_language_data): Delete la_language_arch_info.
2022 * f-lang.c (f_language_arch_info): Delete function, move
2023 implementation to...
2024 (f_language::language_arch_info): ...here, a new member
2025 function.
2026 (f_language_data): Delete la_language_arch_info.
2027 * go-lang.c (go_language_arch_info): Delete function, move
2028 implementation to...
2029 (go_language::language_arch_info): ...here, a new member
2030 function.
2031 (go_language_data): Delete la_language_arch_info.
2032 * language.c (unknown_language_data): Likewise.
2033 (unknown_language::language_arch_info): New member function.
2034 (auto_language_data): Delete la_language_arch_info.
2035 (auto_language::language_arch_info): New member function.
2036 (language_gdbarch_post_init): Update call to
2037 la_language_arch_info.
2038 * language.h (language_data): Delete la_language_arch_info
2039 function pointer.
2040 (language_defn::language_arch_info): New function.
2041 * m2-lang.c (m2_language_arch_info): Delete function, move
2042 implementation to...
2043 (m2_language::language_arch_info): ...here, a new member
2044 function.
2045 (m2_language_data): Delete la_language_arch_info.
2046 * objc-lang.c (objc_language_arch_info): Delete function, move
2047 implementation to...
2048 (objc_language::language_arch_info): ...here, a new member
2049 function.
2050 (objc_language_data): Delete la_language_arch_info.
2051 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2052 implementation to...
2053 (opencl_language::language_arch_info): ...here, a new member
2054 function.
2055 (opencl_language_data): Delete la_language_arch_info.
2056 * p-lang.c (pascal_language_arch_info): Delete function, move
2057 implementation to...
2058 (pascal_language::language_arch_info): ...here, a new member
2059 function.
2060 (pascal_language_data): Delete la_language_arch_info.
2061 * rust-lang.c (rust_language_arch_info): Delete function, move
2062 implementation to...
2063 (rust_language::language_arch_info): ...here, a new member
2064 function.
2065 (rust_language_data): Delete la_language_arch_info.
2066
48448202
AB
20672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2068
2069 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2070 initializer.
2071 * c-lang.c (c_language_data): Likewise.
2072 (cplus_language_data): Likewise.
2073 (cplus_language::pass_by_reference_info): New method.
2074 (asm_language_data): Delete la_pass_by_reference initializer.
2075 (minimal_language_data): Likewise.
2076 * cp-abi.c (cp_pass_by_reference): Remove use of
2077 default_pass_by_reference.
2078 * d-lang.c (d_language_data): Likewise.
2079 * f-lang.c (f_language_data): Likewise.
2080 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2081 default_pass_by_reference.
2082 * go-lang.c (go_language_data): Likewise.
2083 * language.c (language_pass_by_reference): Update.
2084 (default_pass_by_reference): Delete.
2085 (unknown_language_data): Delete la_pass_by_reference
2086 initializer.
2087 (auto_language_data): Likewise.
2088 * language.h (struct language_data): Delete la_pass_by_reference
2089 field.
2090 (language_defn::pass_by_reference_info): New member function.
2091 (default_pass_by_reference): Delete declaration.
2092 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2093 initializer.
2094 * objc-lang.c (objc_language_data): Likewise.
2095 * opencl-lang.c (opencl_language_data): Likewise.
2096 * p-lang.c (pascal_language_data): Likewise.
2097 * rust-lang.c (rust_language_data): Likewise.
2098
15e5fd35
AB
20992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2100
2101 * ada-lang.c (ada_read_var_value): Delete function, move
2102 implementation to...
2103 (ada_language::read_var_value): ...here.
2104 (ada_language_data): Delete la_read_var_value initializer.
2105 * c-lang.c (c_language_data): Likewise.
2106 (cplus_language_data): Likewise.
2107 (minimal_language_data): Likewise.
2108 * d-lang.c (d_language_data): Likewise.
2109 * f-lang.c (f_language_data): Likewise.
2110 * findvar.c (default_read_var_value): Rename to...
2111 (language_defn::read_var_value): ...this.
2112 * findvar.c (read_var_value): Update header comment, and change to
2113 call member function instead of function pointer.
2114 * go-lang.c (go_language_data): Likewise.
2115 * language.c (unknown_language_data): Delete la_read_var_value
2116 initializer.
2117 (auto_language_data): Likewise.
2118 * language.h (struct language_data): Delete la_read_var_value
2119 field.
2120 (language_defn::read_var_value): New member function.
2121 (default_read_var_value): Delete declaration.
2122 * m2-lang.c (m2_language_data): Delete la_read_var_value
2123 initializer.
2124 * objc-lang.c (objc_language_data): Likewise.
2125 * opencl-lang.c (opencl_language_data): Likewise.
2126 * p-lang.c (pascal_language_data): Likewise.
2127 * rust-lang.c (rust_language_data): Likewise.
2128 * value.h (default_read_var_value): Delete declaration.
2129
5bd40f2a
AB
21302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2131
2132 * ada-lang.c (ada_print_array_index): Delete function, move
2133 implementation to...
2134 (ada_language::print_array_index): ...here.
2135 (ada_language_data): Delete la_print_array_index initializer.
2136 * c-lang.c (c_language_data): Likewise.
2137 (cplus_language_data): Likewise.
2138 (minimal_language_data): Likewise.
2139 * d-lang.c (d_language_data): Likewise.
2140 * f-lang.c (f_language_data): Likewise.
2141 * go-lang.c (go_language_data): Likewise.
2142 * language.c (default_print_array_index): Delete function, move
2143 implementation to...
2144 (language_defn::print_array_index): ...here.
2145 (unknown_language_data): Delete la_print_array_index initializer.
2146 (auto_language_data): Likewise.
2147 * language.h (struct language_data): Delete la_print_array_index
2148 field.
2149 (language_defn::print_array_index): New member function.
2150 (LA_PRINT_ARRAY_INDEX): Update.
2151 (default_print_array_index): Delete declaration.
2152 * m2-lang.c (m2_language_data): Delete la_print_array_index
2153 initializer.
2154 * objc-lang.c (objc_language_data): Likewise.
2155 * opencl-lang.c (opencl_language_data): Likewise.
2156 * p-lang.c (pascal_language_data): Likewise.
2157 * rust-lang.c (rust_language_data): Likewise.
2158
0874fd07
AB
21592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2160
2161 * gdb/ada-lang.c (ada_language_defn): Convert to...
2162 (ada_language_data): ...this.
2163 (class ada_language): New class.
2164 (ada_language_defn): New static global.
2165 * gdb/c-lang.c (c_language_defn): Convert to...
2166 (c_language_data): ...this.
2167 (class c_language): New class.
2168 (c_language_defn): New static global.
2169 (cplus_language_defn): Convert to...
2170 (cplus_language_data): ...this.
2171 (class cplus_language): New class.
2172 (cplus_language_defn): New static global.
2173 (asm_language_defn): Convert to...
2174 (asm_language_data): ...this.
2175 (class asm_language): New class.
2176 (asm_language_defn): New static global.
2177 (minimal_language_defn): Convert to...
2178 (minimal_language_data): ...this.
2179 (class minimal_language): New class.
2180 (minimal_language_defn): New static global.
2181 * gdb/d-lang.c (d_language_defn): Convert to...
2182 (d_language_data): ...this.
2183 (class d_language): New class.
2184 (d_language_defn): New static global.
2185 * gdb/f-lang.c (f_language_defn): Convert to...
2186 (f_language_data): ...this.
2187 (class f_language): New class.
2188 (f_language_defn): New static global.
2189 * gdb/go-lang.c (go_language_defn): Convert to...
2190 (go_language_data): ...this.
2191 (class go_language): New class.
2192 (go_language_defn): New static global.
2193 * gdb/language.c (unknown_language_defn): Remove declaration.
2194 (current_language): Initialize to nullptr, real initialization is
2195 moved to _initialize_language.
2196 (languages): Delete global.
2197 (language_defn::languages): Define.
2198 (set_language_command): Use language_defn::languages.
2199 (set_language): Likewise.
2200 (range_error): Likewise.
2201 (language_enum): Likewise.
2202 (language_def): Likewise.
2203 (add_set_language_command): Use language_def::languages for the
2204 language list, and language_def to lookup language pointers.
2205 (skip_language_trampoline): Use language_defn::languages.
2206 (unknown_language_defn): Convert to...
2207 (unknown_language_data): ...this.
2208 (class unknown_language): New class.
2209 (unknown_language_defn): New static global.
2210 (auto_language_defn): Convert to...
2211 (auto_language_data): ...this.
2212 (class auto_language): New class.
2213 (auto_language_defn): New static global.
2214 (language_gdbarch_post_init): Use language_defn::languages.
2215 (_initialize_language): Initialize current_language.
2216 * gdb/language.h (struct language_defn): Rename to...
2217 (struct language_data): ...this.
2218 (struct language_defn): New.
2219 (auto_language_defn): Delete.
2220 (unknown_language_defn): Delete.
2221 (minimal_language_defn): Delete.
2222 (ada_language_defn): Delete.
2223 (asm_language_defn): Delete.
2224 (c_language_defn): Delete.
2225 (cplus_language_defn): Delete.
2226 (d_language_defn): Delete.
2227 (f_language_defn): Delete.
2228 (go_language_defn): Delete.
2229 (m2_language_defn): Delete.
2230 (objc_language_defn): Delete.
2231 (opencl_language_defn): Delete.
2232 (pascal_language_defn): Delete.
2233 (rust_language_defn): Delete.
2234 * gdb/m2-lang.c (m2_language_defn): Convert to...
2235 (m2_language_data): ...this.
2236 (class m2_language): New class.
2237 (m2_language_defn): New static global.
2238 * gdb/objc-lang.c (objc_language_defn): Convert to...
2239 (objc_language_data): ...this.
2240 (class objc_language): New class.
2241 (objc_language_defn): New static global.
2242 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2243 (opencl_language_data): ...this.
2244 (class opencl_language): New class.
2245 (opencl_language_defn): New static global.
2246 * gdb/p-lang.c (pascal_language_defn): Convert to...
2247 (pascal_language_data): ...this.
2248 (class pascal_language): New class.
2249 (pascal_language_defn): New static global.
2250 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2251 language pointer, update comment format.
2252 * gdb/rust-lang.c (rust_language_defn): Convert to...
2253 (rust_language_data): ...this.
2254 (class rust_language): New class.
2255 (rust_language_defn): New static global.
2256
1313c56e
AB
22572020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2258
2259 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2260 member variable.
2261 <m_stmt_at_address>: New member variable.
2262 (lnp_state_machine::record_line): Don't record some lines, update
2263 tracking of is_stmt at the same address.
2264 (lnp_state_machine::lnp_state_machine): Initialise new member
2265 variables.
2266
b7ed9f3d
ST
22672020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2268
2269 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2270 "-include gnu-nat-mig.h".
2271 * gnu-nat-mig.h: New file.
2272 * gnu-nat.c: Include "gnu-nat-mig.h".
2273 (exc_server, msg_reply_server, notify_server,
2274 process_reply_server): Remove declarations.
2275
14a8ad62
ST
22762020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2277
2278 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2279 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2280 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2281 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2282 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2283 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2284 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2285 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2286 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2287 to gnu_nat_target class.
2288 * gnu-nat.c: Likewise.
2289 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2290 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2291 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2292 object.
2293 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2294 instead of `gnu_target'.
2295
0af5e106
ST
22962020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2297
2298 * i386-gnu-tdep.c: Include "gdbcore.h"
2299 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2300 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2301 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2302 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2303 i386_gnu_sigcontext_addr): New functions
2304 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2305 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2306 tdep.
2307
078f2fc9
ST
23082020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2309
2310 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2311 before fork_inferior call. Avoid calling it if target_is_pushed returns
2312 true.
2313
53dff92c
ST
23142020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2315
2316 * gnu-nat.h (gnu_target): New variable declaration.
2317 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2318 gnu_target.
2319 * gnu-nat.c (gnu_target): New variable.
2320 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2321 add_thread_silent, and add_thread calls.
2322 (gnu_nat_target::create_inferior): Pass gnu_target to
2323 add_thread_silent, thread_change_ptid call.
2324 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2325 call.
2326
5a8b8627
ST
23272020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2328
2329 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2330 (gnu_nat_target::find_memory_regions): Remove unused
2331 `old_address' variable.
2332
366f550a
ST
23332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2334
2335 * gnu-nat.c: Include "gdbarch.h".
2336
f14871bf
ST
23372020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2338
2339 * reply_mig_hack.awk (Error return): Cast function through
2340 void *, to bypass compiler function call check.
2341
c6887cfb
ST
23422020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2343
2344 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2345 $(srcdir)/reply_mig_hack.awk.
2346
6930bffe
ST
23472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2348
2349 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2350
112c22ed
JG
23512020-05-30 Jonny Grant <jg@jguk.org>
2352
2353 * configure.ac (ACX_BUGURL): change bug URL to https.
2354
f68f85b5
PA
23552020-05-30 Pedro Alves <palves@redhat.com>
2356
2357 * cp-support.c (replace_typedefs_template): New.
2358 (replace_typedefs_qualified_name): Handle
2359 DEMANGLE_COMPONENT_TEMPLATE.
2360
976ca316
SM
23612020-05-29 Simon Marchi <simon.marchi@efficios.com>
2362
2363 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2364 dwarf2/index-cache.h, dwarf2/index-write.c,
2365 dwarf2/index-write.h, dwarf2/line-header.c,
2366 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2367 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2368 variables and fields from `dwarf2_per_objfile` to just
2369 `per_objfile` throughout.
2370
989ade05
SM
23712020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2372
2373 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2374 <push_dwarf_reg_entry_value>: Add comment.
2375
c47bae85
KB
23762020-05-28 Kevin Buettner <kevinb@redhat.com>
2377 Keith Seitz <keiths@redhat.com>
2378
2379 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2380 instead of PyEval_ReleaseLock.
2381 (class gdbpy_gil): Move to earlier in file.
2382 (finalize_python): Set gdb_python_initialized.
2383 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2384 when not initialized.
2385
44486dcf
SM
23862020-05-28 Simon Marchi <simon.marchi@efficios.com>
2387
2388 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2389 <push_dwarf_reg_entry_value>: Remove assert. Override
2390 per_objfile with caller_per_objfile.
2391
f030440d
TV
23922020-05-28 Tom de Vries <tdevries@suse.de>
2393
2394 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2395 PR gold/15646 workaround to symbol kind "type".
2396
f0fbb768
TT
23972020-05-27 Tom Tromey <tromey@adacore.com>
2398
2399 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2400
af0b2a3e
TT
24012020-05-27 Tom Tromey <tromey@adacore.com>
2402
2403 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2404 Use htab_find_with_hash.
2405 <add_abbrev>: Remove "abbrev_number" parameter.
2406 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2407 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2408 (hash_abbrev): Add comment.
2409 (abbrev_table::lookup_abbrev): Move to header file.
2410 (abbrev_table::read): Update.
2411
7d00ffec
TT
24122020-05-27 Tom Tromey <tromey@adacore.com>
2413
2414 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2415 method.
2416 <canonical_name>: New member.
2417 <raw_name>: Rename from "name".
2418 (partial_die_info): Initialize canonical_name.
2419 (scan_partial_symbols): Check raw_name.
2420 (partial_die_parent_scope, partial_die_full_name)
2421 (add_partial_symbol, add_partial_subprogram)
2422 (add_partial_enumeration, load_partial_dies): Use "name" method.
2423 (partial_die_info::name): New method.
2424 (partial_die_info::read, guess_partial_die_structure_name)
2425 (partial_die_info::fixup): Update.
2426
697bba18
TT
24272020-05-27 Tom Tromey <tromey@adacore.com>
2428
2429 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2430 <get_ref_die_offset>: Inline.
2431 <get_ref_die_offset_complaint>: New method.
2432 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2433 (attribute::get_ref_die_offset_complaint): Rename from
2434 get_ref_die_offset. Just issue complaint.
2435
c17ace43
HD
24362020-05-27 Hannes Domani <ssbssa@yahoo.de>
2437
2438 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2439
96445f0b
HD
24402020-05-27 Hannes Domani <ssbssa@yahoo.de>
2441
2442 * exec.c (exec_file_attach): Use errno value of first openp failure.
2443
ac637ec3
HD
24442020-05-27 Hannes Domani <ssbssa@yahoo.de>
2445
2446 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2447 Don't close thread handle.
2448
17ee85fc
TT
24492020-05-27 Tom Tromey <tom@tromey.com>
2450 Simon Marchi <simon.marchi@efficios.com>
2451
2452 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2453 shared_ptr.
2454 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2455 member.
2456 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2457 dwarf2_per_bfd_objfile_data_key>: New globals.
2458 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2459 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2460 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2461 shared.
2462 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2463 short-circuit when sharing.
2464 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2465 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2466
39b16f87
SM
24672020-05-27 Simon Marchi <simon.marchi@efficios.com>
2468
2469 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2470 to...
2471 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2472 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2473
fcf23d5b
SM
24742020-05-27 Simon Marchi <simon.marchi@efficios.com>
2475
2476 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2477 build_name_components, find_name_components_bounds>:
2478 Add per_objfile parameter.
2479 (struct mapped_index) <symbol_name_at>: Likewise.
2480 (struct mapped_debug_names): Remove constructor.
2481 <dwarf2_per_objfile>: Remove field.
2482 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2483 (mapped_index_base::find_name_components_bounds,
2484 mapped_index_base::build_name_components,
2485 dw2_expand_symtabs_matching_symbol): Likewise.
2486 (class mock_mapped_index) <symbol_name_at>: Likewise.
2487 (check_match): Likewise.
2488 (check_find_bounds_finds): Likewise.
2489 (test_mapped_index_find_name_component_bounds): Update.
2490 (CHECK_MATCH): Update.
2491 (dw2_expand_symtabs_matching): Update.
2492 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2493 per_objfile parameter.
2494 <find_vec_in_debug_names>: Likewise.
2495 <m_per_objfile>: New field.
2496 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2497 parameter.
2498 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2499 (dw2_debug_names_iterator::next): Update.
2500 (dw2_debug_names_lookup_symbol): Update.
2501 (dw2_debug_names_expand_symtabs_for_function): Update.
2502 (dw2_debug_names_map_matching_symbols): Update.
2503 (dw2_debug_names_expand_symtabs_matching): Update.
2504 (dwarf2_read_debug_names): Update.
2505
7188ed02
SM
25062020-05-27 Simon Marchi <simon.marchi@efficios.com>
2507
2508 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2509 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2510 move to dwarf2_per_objfile.
2511 <read_in_chain>: Remove.
2512 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2513 remove_all_cus, age_comp_units>: New methods.
2514 <m_dwarf2_cus>: New member.
2515 (struct dwarf2_per_cu_data) <cu>: Remove.
2516 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2517 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2518 moved to methods of dwarf2_per_objfile.
2519 (dwarf2_clear_marks): Remove.
2520 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2521 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2522 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2523 (dwarf2_per_objfile::remove_all_cus): New.
2524 (class free_cached_comp_units) <~free_cached_comp_units>:
2525 Update.
2526 (load_cu): Update.
2527 (dw2_do_instantiate_symtab): Adjust.
2528 (fill_in_sig_entry_from_dwo_entry): Adjust.
2529 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2530 (cutu_reader::cutu_reader): Likewise.
2531 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2532 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2533 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2534 and dwarf2_per_objfile::age_comp_units.
2535 (load_partial_comp_unit): Update.
2536 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2537 (process_queue): Likewise.
2538 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2539 backlink.
2540 (dwarf2_read_addr_index): Likewise.
2541 (follow_die_offset): Likewise.
2542 (dwarf2_fetch_die_loc_sect_off): Likewise.
2543 (dwarf2_fetch_constant_bytes): Likewise.
2544 (dwarf2_fetch_die_type_sect_off): Likewise.
2545 (follow_die_sig_1): Likewise.
2546 (load_full_type_unit): Likewise.
2547 (read_signatured_type): Likewise.
2548 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2549 (dwarf2_cu::~dwarf2_cu): Remove.
2550 (dwarf2_per_objfile::get_cu): New.
2551 (dwarf2_per_objfile::set_cu): New.
2552 (age_cached_comp_units): Rename to...
2553 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2554 to std::unordered_map.
2555 (free_one_cached_comp_unit): Rename to...
2556 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2557 to std::unordered_map.
2558 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2559 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2560 a dwarf2_per_objfile in data.
2561 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2562 (dwarf2_clear_marks): Remove.
2563
2e671100
SM
25642020-05-27 Simon Marchi <simon.marchi@efficios.com>
2565
2566 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2567 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2568 (init_tu_and_read_dwo_dies): Likewise.
2569 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2570 (cutu_reader::cutu_reader): Likewise.
2571 (load_partial_comp_unit): Likewise.
2572 (process_psymtab_comp_unit): Update.
2573 (build_type_psymtabs_1): Update.
2574 (process_skeletonless_type_unit): Update.
2575 (load_full_comp_unit): Update.
2576 (find_partial_die): Update.
2577 (dwarf2_read_addr_index): Update.
2578 (read_signatured_type): Update.
2579
2e6a9f79
SM
25802020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2581
2582 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2583 m_header_read_in>: New fields.
2584 <get_header>: New method.
2585 * dwarf2/read.c (per_cu_header_read_in): Remove.
2586 (dwarf2_per_cu_data::get_header): New.
2587 (dwarf2_per_cu_data::addr_size): Update.
2588 (dwarf2_per_cu_data::offset_size): Update.
2589 (dwarf2_per_cu_data::ref_addr_size): Update.
2590
1b555f17
SM
25912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2592
2593 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2594 (dw2_do_instantiate_symtab): Update.
2595 (queue_and_load_all_dwo_tus): Change parameter from
2596 dwarf2_per_cu_data to dwarf2_cu.
2597 (dwarf2_fetch_die_loc_sect_off): Update.
2598 (dwarf2_fetch_constant_bytes): Update.
2599 (dwarf2_fetch_die_type_sect_off): Update.
2600
8fc0b21d
SM
26012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2602
2603 * dwarf2/read.c (process_full_comp_unit,
2604 process_full_type_unit): Remove per_cu, per_objfile paramters.
2605 Add dwarf2_cu parameter.
2606 (process_queue): Update.
2607
168c9250
SM
26082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2609
2610 * dwarf2/read.c (create_cu_from_index_list): Replace
2611 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2612 (create_cus_from_index_list): Likewise.
2613 (create_cus_from_index): Likewise.
2614 (create_signatured_type_table_from_index): Likewise.
2615 (create_cus_from_debug_names_list): Likewise.
2616 (create_cus_from_debug_names): Likewise.
2617 (dwarf2_read_gdb_index): Update.
2618 (dwarf2_read_debug_names): Update.
2619
e286671b
TT
26202020-05-27 Tom Tromey <tom@tromey.com>
2621 Simon Marchi <simon.marchi@efficios.com>
2622
2623 * dwarf2/read.h (struct dwarf2_per_objfile)
2624 <get_type_for_signatured_type, set_type_for_signatured_type>:
2625 New methods.
2626 <m_type_map>: New member.
2627 (struct signatured_type) <type>: Remove.
2628 * dwarf2/read.c
2629 (dwarf2_per_objfile::get_type_for_signatured_type,
2630 dwarf2_per_objfile::set_type_for_signatured_type): New.
2631 (get_signatured_type): Use new methods.
2632
8adb8487
TT
26332020-05-27 Tom Tromey <tom@tromey.com>
2634 Simon Marchi <simon.marchi@efficios.com>
2635
2636 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2637 (struct dwarf2_per_objfile) <type_units>: New member.
2638 <get_type_unit_group_unshareable>: New method.
2639 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2640 num_symtabs, symtabs>: Remove; move to
2641 type_unit_group_unshareable.
2642 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2643 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2644 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2645
127bbf4b
SM
26462020-05-27 Simon Marchi <simon.marchi@efficios.com>
2647
2648 * dwarf2/read.h (struct dwarf2_per_cu_data):
2649 <dwarf2_per_objfile>: Remove.
2650 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2651 dwarf2_per_objfile.
2652 (create_signatured_type_table_from_index): Likewise.
2653 (create_signatured_type_table_from_debug_names): Likewise.
2654 (create_debug_type_hash_table): Likewise.
2655 (fill_in_sig_entry_from_dwo_entry): Likewise.
2656 (create_type_unit_group): Likewise.
2657 (read_comp_units_from_section): Likewise.
2658 (create_cus_hash_table): Likewise.
2659
f6e649dd
SM
26602020-05-27 Simon Marchi <simon.marchi@efficios.com>
2661
2662 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2663 dwarf2_per_cu_data::dwarf2_per_objfile.
2664 (compute_compunit_symtab_includes): Likewise.
2665 (dwarf2_cu::start_symtab): Likewise.
2666
aa66c379
SM
26672020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2668
2669 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2670 parameter.
2671 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2672 (read_namespace_alias): Update.
2673 (lookup_die_type): Update.
2674 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2675 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2676 Update.
2677 (disassemble_dwarf_expression): Update.
2678
120ce1b5
SM
26792020-05-27 Simon Marchi <simon.marchi@efficios.com>
2680
2681 * dwarf2/read.h (struct dwarf2_queue_item): Add
2682 dwarf2_per_objfile parameter, assign new parameter.
2683 <per_objfile>: New field.
2684 * dwarf2/read.c (free_one_cached_comp_unit): Add
2685 dwarf2_per_objfile parameter.
2686 (queue_comp_unit): Likewise.
2687 (dw2_do_instantiate_symtab): Update.
2688 (process_psymtab_comp_unit): Update.
2689 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2690 (process_imported_unit_die): Update.
2691 (queue_and_load_dwo_tu): Update.
2692 (follow_die_offset): Update.
2693 (follow_die_sig_1): Update.
2694
9f47c707
SM
26952020-05-27 Simon Marchi <simon.marchi@efficios.com>
2696
2697 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2698 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2699 (read_call_site_scope): Assign per_objfile.
2700 (dwarf2_per_cu_data::objfile): Remove.
2701 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2702 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2703 dwarf2_per_objfile parameter.
2704 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2705 dwarf2_per_objfile parameter.
2706 (dwarf_expr_reg_to_entry_parameter): Add output
2707 dwarf2_per_objfile parameter.
2708 (locexpr_get_frame_base): Update.
2709 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2710 <push_dwarf_reg_entry_value>: Update.
2711 <call_site_to_target_addr>: Update.
2712 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2713 parameter.
2714 (value_of_dwarf_reg_entry): Update.
2715 (rw_pieced_value): Update.
2716 (indirect_synthetic_pointer): Update.
2717 (dwarf2_evaluate_property): Update.
2718 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2719 parameter.
2720 (locexpr_read_variable): Update.
2721 (locexpr_get_symbol_read_needs): Update.
2722 (loclist_read_variable): Update.
2723
14095eb3
SM
27242020-05-27 Simon Marchi <simon.marchi@efficios.com>
2725
2726 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2727 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2728 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2729 parameter.
2730 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2731 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2732 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2733 parameter.
2734 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2735 sect_variable_value): Add dwarf2_per_objfile parameter.
2736 (class dwarf_evaluate_loc_desc) <dwarf_call,
2737 dwarf_variable_value>: Update.
2738 (fetch_const_value_from_synthetic_pointer): Add
2739 dwarf2_per_objfile parameter.
2740 (fetch_const_value_from_synthetic_pointer): Update.
2741 (coerced_pieced_ref): Update.
2742 (class symbol_needs_eval_context) <dwarf_call,
2743 dwarf_variable_value>: Update.
2744 (dwarf2_compile_expr_to_ax): Update.
2745
3c3cd3d4
SM
27462020-05-27 Simon Marchi <simon.marchi@efficios.com>
2747
2748 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2749 parameter.
2750 (dwarf2_evaluate_loc_desc_full): Update.
2751
82ca3f51
SM
27522020-05-27 Simon Marchi <simon.marchi@efficios.com>
2753
2754 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2755 parameter.
2756 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2757 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2758 dwarf2_per_objfile parameter.
2759 (decode_debug_loc_dwo_addresses): Likewise.
2760 (dwarf2_find_location_expression): Update.
2761 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2762 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2763 parameter.
2764 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2765 parameter.
2766 (locexpr_describe_location_1): Likewise.
2767 (locexpr_describe_location): Update.
2768
4b167ea1
SM
27692020-05-27 Simon Marchi <simon.marchi@efficios.com>
2770
2771 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2772 Remove.
2773 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2774 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2775 (dwarf2_compile_property_to_c): Update.
2776 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2777 use text offset from objfile.
2778 (locexpr_tracepoint_var_ref): Update.
2779 (locexpr_generate_c_location): Update.
2780 (loclist_describe_location): Update.
2781 (loclist_tracepoint_var_ref): Update.
2782 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2783 dwarf2_per_objfile parameter.
2784 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2785 use text offset from objfile.
2786 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2787
89b07335
SM
27882020-05-27 Simon Marchi <simon.marchi@efficios.com>
2789
2790 * dwarf2/expr.h (struct dwarf_expr_context)
2791 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2792 <offset>: Remove.
2793 <per_objfile>: New member.
2794 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2795 dwarf2_per_objfile parameter. Don't set offset, set
2796 per_objfile.
2797 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2798 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2799 a dwarf2_per_objfile object instead of an offset.
2800 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2801 constructor.
2802 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2803 to dwarf2_expr_executor constructor. Don't set offset.
2804 (dwarf2_fetch_cfa_info): Update.
2805 (struct dwarf2_frame_cache) <text_offset>: Remove.
2806 <per_objfile>: New field.
2807 (dwarf2_frame_cache): Update.
2808 (dwarf2_frame_prev_register): Update.
2809 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2810 <dwarf_evaluate_loc_desc>: Add constructor.
2811 (dwarf2_evaluate_loc_desc_full): Update.
2812 (dwarf2_locexpr_baton_eval): Update.
2813 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2814 Add constructor.
2815 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2816
293e7e51
SM
28172020-05-27 Simon Marchi <simon.marchi@efficios.com>
2818
2819 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2820 addr_sized_int_type>: Move to dwarf2_cu.
2821 <int_type>: Move to dwarf2_per_objfile.
2822 (struct dwarf2_per_objfile) <int_type>: Move here.
2823 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2824 addr_sized_int_type>: Move here.
2825 (read_func_scope): Update.
2826 (read_array_type): Update.
2827 (read_tag_string_type): Update.
2828 (attr_to_dynamic_prop): Update.
2829 (dwarf2_per_cu_data::int_type): Rename to...
2830 (dwarf2_per_objfile::int_type): ... this.
2831 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2832 (dwarf2_cu::addr_sized_int_type): ... this.
2833 (read_subrange_type): Update.
2834 (dwarf2_per_cu_data::addr_type): Rename to...
2835 (dwarf2_cu::addr_type): ... this.
2836 (set_die_type): Update.
2837
64874a40
SM
28382020-05-27 Simon Marchi <simon.marchi@efficios.com>
2839
2840 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2841 data through per_cu->cu.
2842
4ab09049
SM
28432020-05-27 Simon Marchi <simon.marchi@efficios.com>
2844
2845 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2846 dwarf2_per_cu_data parameter fo dwarf2_cu.
2847 (lookup_dwo_type_unit): Likewise.
2848 (read_cutu_die_from_dwo): Likewise.
2849 (lookup_dwo_unit): Likewise.
2850 (open_and_init_dwo_file): Likewise.
2851 (lookup_dwo_cutu): Likewise.
2852 (lookup_dwo_comp_unit): Likewise.
2853 (lookup_dwo_type_unit): Likewise.
2854 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2855 (cutu_reader::cutu_reader): Update.
2856
47b14e86
SM
28572020-05-27 Simon Marchi <simon.marchi@efficios.com>
2858
2859 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2860 parameter.
2861 (process_full_type_unit): Likewise.
2862 (process_queue): Update.
2863
43182c09
SM
28642020-05-27 Simon Marchi <simon.marchi@efficios.com>
2865
2866 * dwarf2/read.c (recursively_compute_inclusions): Add
2867 dwarf2_per_objfile parameter.
2868 (compute_compunit_symtab_includes): Likewise.
2869 (process_cu_includes): Update.
2870
7aa104c4
SM
28712020-05-27 Simon Marchi <simon.marchi@efficios.com>
2872
2873 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2874 parameter.
2875 (create_type_unit_group): Update.
2876 (process_psymtab_comp_unit_reader): Update.
2877 (build_type_psymtabs_reader): Update.
2878
e3beb21d
SM
28792020-05-27 Simon Marchi <simon.marchi@efficios.com>
2880
2881 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2882 object through m_this_cu->cu.
2883
d460f660
SM
28842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2885
2886 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2887 the info parameter.
2888 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2889
ab432490
SM
28902020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2891
2892 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2893 per_objfile parameter.
2894 (load_full_type_unit): Add per_objfile parameter.
2895 (read_signatured_type): Likewise.
2896 (load_full_comp_unit): Likewise.
2897 (load_cu): Likewise.
2898 (dw2_do_instantiate_symtab): Likewise.
2899 (dw2_get_file_names): Likewise.
2900 (dw2_map_symtabs_matching_filename): Update.
2901 (dw_expand_symtabs_matching_file_matcher): Update.
2902 (dw2_map_symbol_filenames): Update.
2903 (process_psymtab_comp_unit): Add per_objfile parameter.
2904 (build_type_psymtabs_1): Update.
2905 (process_skeletonless_type_unit): Update.
2906 (dwarf2_build_psymtabs_hard): Update.
2907 (load_partial_comp_unit): Add per_objfile parameter.
2908 (scan_partial_symbols): Update.
2909 (load_full_comp_unit): Add per_objfile parameter.
2910 (process_imported_unit_die): Update.
2911 (create_cus_hash_table): Update.
2912 (find_partial_die): Update.
2913 (dwarf2_read_addr_index): Update.
2914 (follow_die_offset): Update.
2915 (dwarf2_fetch_die_loc_sect_off): Update.
2916 (dwarf2_fetch_constant_bytes): Update.
2917 (dwarf2_fetch_die_type_sect_off): Update.
2918 (follow_die_sig_1): Update.
2919 (load_full_type_unit): Add per_objfile parameter.
2920 (read_signatured_type): Likewise.
2921
313bad1b
SM
29222020-05-27 Simon Marchi <simon.marchi@efficios.com>
2923
2924 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2925 of objfile_name.
2926
c3699833
SM
29272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2928
2929 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2930 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2931 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2932 field.
2933 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2934 (create_cus_from_index): Update.
2935 (dwarf2_read_gdb_index): Update.
2936 (create_cus_from_debug_names): Update.
2937 (dwarf2_read_debug_names): Update.
2938 (get_abbrev_section_for_cu): Update.
2939 (create_all_comp_units): Update.
2940 (read_attribute_value): Update.
2941 (get_debug_line_section): Update.
2942 * dwarf2/index-cache.c (index_cache::store): Update.
2943 * dwarf2/index-write.c (save_gdb_index_command): Update.
2944 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2945
1859c670
SM
29462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2947
2948 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
2949 member.
2950 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
2951 dwarf2_per_cu_data::per_bfd.
2952 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
2953 (create_type_unit_group): Likewise.
2954 (queue_comp_unit): Remove reference to
2955 per_cu->dwarf2_per_objfile.
2956 (maybe_queue_comp_unit): Likewise.
2957 (fill_in_sig_entry_from_dwo_entry): Assign new field.
2958 (create_cus_hash_table): Assign new field.
2959
5e22e966
SM
29602020-05-27 Simon Marchi <simon.marchi@efficios.com>
2961
2962 * dwarf2/read.c: Replace
2963 dwarf2_cu->per_cu->dwarf2_per_objfile references with
2964 dwarf2_cu->per_objfile throughout.
2965
97a1449a
SM
29662020-05-27 Simon Marchi <simon.marchi@efficios.com>
2967
2968 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
2969 parameter, don't use per_cu->dwarf2_per_objfile.
2970 (dw2_instantiate_symtab): Likewise.
2971 (dw2_find_last_source_symtab): Update.
2972 (dw2_map_expand_apply): Update.
2973 (dw2_lookup_symbol): Update.
2974 (dw2_expand_symtabs_for_function): Update.
2975 (dw2_expand_all_symtabs): Update.
2976 (dw2_expand_symtabs_with_fullname): Update.
2977 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
2978 don't use per_cu->dwarf2_per_objfile.
2979 (dw2_expand_marked_cus): Update.
2980 (dw2_find_pc_sect_compunit_symtab): Update.
2981 (dw2_debug_names_lookup_symbol): Update.
2982 (dw2_debug_names_expand_symtabs_for_function): Update.
2983 (dw2_debug_names_map_matching_symbols): Update.
2984 (dwarf2_psymtab::expand_psymtab): Update.
2985
9e021579
SM
29862020-05-27 Simon Marchi <simon.marchi@efficios.com>
2987
2988 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
2989 <per_objfile>: New member.
2990 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
2991 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
2992 call to dwarf2_cu.
2993 (cutu_reader::cutu_reader): Update.
2994 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
2995
ae090bdb
SM
29962020-05-27 Simon Marchi <simon.marchi@efficios.com>
2997
2998 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
2999 struct dwarf2_per_objfile.
3000 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3001 dwarf2_per_bfd.
3002 * dwarf2/read.c (set_die_type): Update.
3003 (get_die_type_at_offset): Update.
3004
af758d11
SM
30052020-05-27 Tom Tromey <tom@tromey.com>
3006 Simon Marchi <simon.marchi@efficios.com>
3007
3008 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3009 method.
3010 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3011 get_symtab, set_symtab>: New methods.
3012 <m_symtabs>: New field.
3013 (struct dwarf2_psymtab): Derive from partial_symtab.
3014 <readin_p, get_compunit_symtab>: Declare methods.
3015 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3016 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3017 New methods.
3018 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3019 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3020 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3021 (dw2_symtab_iter_next, dw2_print_stats)
3022 (dw2_expand_symtabs_with_fullname)
3023 (dw2_expand_symtabs_matching_one)
3024 (dw_expand_symtabs_matching_file_matcher)
3025 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3026 (dw2_debug_names_iterator::next)
3027 (dw2_debug_names_map_matching_symbols)
3028 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3029 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3030 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3031 New methods.
3032 (get_compunit_symtab, process_full_comp_unit)
3033 (process_full_type_unit): Update.
3034 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3035
5989a64e
SM
30362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3037
3038 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3039 then introduce a new dwarf2_per_objfile type.
3040 <read_line_string>: Move to the new dwarf2_per_objfile type.
3041 <objfile>: Likewise.
3042 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3043 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3044 dwarf2_per_objfile->per_bfd.
3045 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3046 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3047 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3048 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3049 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3050 (dwarf2_per_objfile::locate_sections): Rename to...
3051 (dwarf2_per_bfd::locate_sections): ... this.
3052 (dwarf2_per_objfile::get_cutu): Rename to...
3053 (dwarf2_per_bfd::get_cutu): ... this.
3054 (dwarf2_per_objfile::get_cu): Rename to...
3055 (dwarf2_per_bfd::get_cu): ... this.
3056 (dwarf2_per_objfile::get_tu): Rename to...
3057 (dwarf2_per_bfd::get_tu): ... this.
3058 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3059 (dwarf2_per_bfd::allocate_per_cu): ... this.
3060 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3061 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3062 (get_gdb_index_contents_ftype): Change parameter from
3063 dwarf2_per_objfile to dwarf2_per_bfd.
3064 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3065 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3066
a50264ba
TT
30672020-05-27 Tom Tromey <tom@tromey.com>
3068 Simon Marchi <simon.marchi@efficios.com>
3069
3070 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3071 (allocate_piece_closure): Set "per_objfile" member.
3072 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3073 (locexpr_describe_location, loclist_describe_location): Use new
3074 member.
3075 * dwarf2/read.c (read_call_site_scope)
3076 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3077 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3078 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3079 handle_data_member_location): Set per_objfile member.
3080 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3081 member.
3082 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3083
d3473f0c
TT
30842020-05-27 Tom Tromey <tom@tromey.com>
3085
3086 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3087 allocate_signatured_type>: Declare new methods.
3088 <m_num_psymtabs>: New member.
3089 (struct dwarf2_per_cu_data) <index>: New member.
3090 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3091 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3092 (create_cu_from_index_list): Use allocate_per_cu.
3093 (create_signatured_type_table_from_index)
3094 (create_signatured_type_table_from_debug_names)
3095 (create_debug_type_hash_table, add_type_unit)
3096 (read_comp_units_from_section): Use allocate_signatured_type.
3097
5717c425
TT
30982020-05-27 Tom Tromey <tom@tromey.com>
3099
3100 * psymtab.c (partial_map_expand_apply)
3101 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3102 (psym_lookup_global_symbol_language)
3103 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3104 (psym_print_stats, psym_expand_symtabs_for_function)
3105 (psym_map_symbol_filenames, psym_map_matching_symbols)
3106 (psym_expand_symtabs_matching)
3107 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3108 (maintenance_check_psymtabs): Update.
3109 * psympriv.h (struct partial_symtab) <readin_p,
3110 get_compunit_symtab>: Add objfile parameter.
3111 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3112 Likewise.
3113 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3114 get_compunit_symtab>: Likewise.
3115 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3116
45940949
TT
31172020-05-27 Tom Tromey <tom@tromey.com>
3118
3119 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3120 member.
3121 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3122 (create_cu_from_index_list)
3123 (create_signatured_type_table_from_index)
3124 (create_signatured_type_table_from_debug_names)
3125 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3126 (dwarf2_create_include_psymtab)
3127 (create_debug_type_hash_table, add_type_unit)
3128 (create_type_unit_group, read_comp_units_from_section)
3129 (dwarf2_compute_name, create_cus_hash_table)
3130 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3131 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3132 obstack.
3133 (dw2_get_real_path): Likewise. Change argument to
3134 dwarf2_per_objfile.
3135
f8c6d152
LM
31362020-05-27 Luis Machado <luis.machado@linaro.org>
3137
3138 PR tdep/26000
3139 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3140 for ldrd (immediate).
3141
e98d2e6d
PW
31422020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3143
3144 * command.h: Add comment giving the name of class_tui.
3145 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3146 create the fake command for the help for class_tui.
3147
53a47a3e
TT
31482020-05-26 Tom Tromey <tromey@adacore.com>
3149
3150 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3151 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3152 (val_atr): New function.
3153 (value_val_atr): Use it.
3154 * ada-valprint.c (print_optional_low_bound): Change low bound
3155 handling for enums.
3156 (val_print_packed_array_elements): Don't call discrete_position.
3157 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3158 discrete_position for enum types.
3159 * language.c (default_print_array_index): Change type.
3160 * language.h (struct language_defn) <la_print_array_index>: Add
3161 index_type parameter, change type of index_value.
3162 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3163 (default_print_array_index): Update.
3164 * valprint.c (maybe_print_array_index): Don't call
3165 value_from_longest. Update.
3166 (value_print_array_elements): Don't call discrete_position.
3167
0bc2354b
TT
31682020-05-26 Tom Tromey <tromey@adacore.com>
3169
3170 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3171 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3172
1218a4bf
CDA
31732020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3174
3175 PR gdb/13519
3176 * avr-tdep.c (avr_integer_to_address): Return data or code
3177 address accordingly to the second 'type' argument of the
3178 function.
3179
92651b1d
MW
31802020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3181
3182 * infcmd.c, inferior.h: (construct_inferior_arguments):
3183 Moved function from here to gdbsupport/common-inferior.{h,cc}
3184
0a4f5f8c
TT
31852020-05-23 Tom Tromey <tom@tromey.com>
3186
3187 Revert commit eca1f90c:
3188 * NEWS: Remove entry for completion styling.
3189 * completer.c (_rl_completion_prefix_display_length): Move
3190 declaration later.
3191 (gdb_fnprint): Revert.
3192 (gdb_display_match_list_1): Likewise.
3193 * cli/cli-style.c (completion_prefix_style)
3194 (completion_difference_style, completion_suffix_style): Remove.
3195 (_initialize_cli_style): Revert.
3196 * cli/cli-style.h (completion_prefix_style)
3197 (completion_difference_style, completion_suffix_style): Don't
3198 declare.
3199
e08bd6c5
PA
32002020-05-24 Pedro Alves <palves@redhat.com>
3201
3202 * symtab.c (completion_list_add_name): Return boolean indication
3203 of whether the symbol matched.
3204 (completion_list_add_symbol): Don't try to remove C++ aliases if
3205 the symbol didn't match in the first place.
3206 * symtab.h (completion_list_add_name): Return bool.
3207
ceacbf6e
SM
32082020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3209
3210 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3211 type::field.
3212
26f16254
JB
32132020-05-23 Joel Brobecker <brobecker@adacore.com>
3214
3215 GDB 9.2 released.
3216
eca1f90c
TT
32172020-05-23 Tom Tromey <tom@tromey.com>
3218
3219 * NEWS: Add entry for completion styling.
3220 * completer.c (_rl_completion_prefix_display_length): Move
3221 declaration earlier.
3222 (gdb_fnprint): Use completion_style.
3223 (gdb_display_match_list_1): Likewise.
3224 * cli/cli-style.c (completion_prefix_style)
3225 (completion_difference_style, completion_suffix_style): New
3226 globals.
3227 (_initialize_cli_style): Register new globals.
3228 * cli/cli-style.h (completion_prefix_style)
3229 (completion_difference_style, completion_suffix_style): Declare.
3230
51e2cfa2
PA
32312020-05-23 Pedro Alves <palves@redhat.com>
3232
3233 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3234 (parse_escape): Use ISDIGIT instead of isdigit.
3235 (puts_debug): Use gdb_isprint instead of isprint.
3236 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3237 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3238 ISSPACE instead of isspace.
3239 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3240 instead of isspace.
3241 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3242 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3243 instead of isxdigit and ISDIGIT instead of isdigit.
3244
80fc5e77
SM
32452020-05-22 Simon Marchi <simon.marchi@efficios.com>
3246
3247 * gdbtypes.h (struct type) <field>: New method.
3248 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3249 or type::field.
3250
3cabb6b0
SM
32512020-05-22 Simon Marchi <simon.marchi@efficios.com>
3252
3253 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3254 (TYPE_FIELDS): Use type::fields. Change all call sites that
3255 modify the propery to use type::set_fields instead.
3256
1f704f76
SM
32572020-05-22 Simon Marchi <simon.marchi@efficios.com>
3258
3259 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3260 type::num_fields instead.
3261
5e33d5f4
SM
32622020-05-22 Simon Marchi <simon.marchi@efficios.com>
3263
3264 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3265 methods.
3266 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3267 that modify the number of fields to use type::set_num_fields
3268 instead.
3269
9392ebb3
TT
32702020-05-22 Tom Tromey <tromey@adacore.com>
3271
3272 * compile/compile-object-load.h (munmap_list_free): Don't
3273 declare.
3274
7c13f4e8
AB
32752020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3276
3277 * annotate.c (annotate_source_line): Update return type, add call
3278 to update current symtab and line.
3279 * annotate.h (annotate_source_line): Update return type, and
3280 extend header comment.
3281 * source.c (info_line_command): Check annotation_level before
3282 calling annotate_source_line.
3283 * stack.c (print_frame_info): If calling annotate_source_line
3284 returns true, then don't print any other source line information.
3285
aa370940
SM
32862020-05-21 Simon Marchi <simon.marchi@efficios.com>
3287
3288 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3289
84d53fa9
SM
32902020-05-21 Simon Marchi <simon.marchi@efficios.com>
3291
3292 * coffread.c (patch_type): Remove NULL check before xfree.
3293 * corefile.c (set_gnutarget): Likewise.
3294 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3295 * exec.c (build_section_table): Likewise.
3296 * remote.c (remote_target::pass_signals): Likewise.
3297 * utils.c (n_spaces): Likewise.
3298 * cli/cli-script.c (document_command): Likewise.
3299 * i386-windows-tdep.c (core_process_module_section): Likewise.
3300 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3301
9d428aae
SM
33022020-05-20 Simon Marchi <simon.marchi@efficios.com>
3303
3304 * symfile.c (reread_symbols): Clear objfile's section_offsets
3305 vector and section indices, re-compute them by calling
3306 sym_offsets.
3307
250106a7
TT
33082020-05-20 Tom Tromey <tromey@adacore.com>
3309
3310 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3311 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3312
9a0bacfb
TV
33132020-05-20 Tom de Vries <tdevries@suse.de>
3314
3315 PR symtab/25833
3316 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3317
7b958a48
AM
33182020-05-20 Alan Modra <amodra@gmail.com>
3319
3320 PR 25993
3321 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3322 bfd_set_filename.
3323 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3324 passed to bfd_set_filename.
3325 * symfile-mem.c (add_vsyscall_page): Likewise for string
3326 passed to symbol_file_add_from_memory.
3327 (symbol_file_add_from_memory): Make name param a const char* and
3328 don't strdup.
3329
c7e97679
AM
33302020-05-20 Alan Modra <amodra@gmail.com>
3331
3332 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3333 rather than accessing bfd->filename directly.
3334 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3335 and use bfd_section_name.
3336 * dwarf2/frame.c (decode_frame_entry): Likewise.
3337 * exec.c (exec_set_section_address): Likewise.
3338 * solib-aix.c (solib_aix_bfd_open): Likewise.
3339 * stap-probe.c (get_stap_base_address): Likewise.
3340 * symfile.c (reread_symbols): Likewise.
3341
563c591b
TT
33422020-05-19 Tom Tromey <tromey@adacore.com>
3343
3344 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3345
f408d82c
SM
33462020-05-19 Simon Marchi <simon.marchi@efficios.com>
3347
3348 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3349
98c59b52
PA
33502020-05-19 Pedro Alves <palves@redhat.com>
3351
3352 * NEWS (set exec-file-mismatch): Adjust entry.
3353 * exec.c: Include "build-id.h".
3354 (validate_exec_file): Try to match build IDs instead of filenames.
3355 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3356 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3357 and pass down 'warn_if_slow'.
3358 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3359 gdb_bfd_open_closure to pass it down.
3360 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3361
4111f652
PA
33622020-05-19 Pedro Alves <palves@redhat.com>
3363
3364 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3365 * target.c (target_fileio_open_1): Rename to target_fileio_open
3366 and make extern. Use bool.
3367 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3368 (target_fileio_read_alloc_1): Adjust.
3369 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3370 (target_fileio_open_warn_if_slow): Delete declaration.
3371
ad80db5b
PA
33722020-05-19 Pedro Alves <palves@redhat.com>
3373
3374 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3375 Adjust all callers.
3376
1d6ce4d3
YS
33772020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3378
3379 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3380 whether disp is negative.
3381
9005fbbb
SM
33822020-05-19 Simon Marchi <simon.marchi@efficios.com>
3383
3384 * symfile.h (struct symfile_segment_data)
3385 <~symfile_segment_data>: Remove.
3386 <segment_info>: Change to std::vector.
3387 * symfile.c (default_symfile_segments): Update.
3388 * elfread.c (elf_symfile_segments): Update.
3389
68b888ff
SM
33902020-05-19 Simon Marchi <simon.marchi@efficios.com>
3391
3392 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3393 <segments>: New.
3394 <segment_bases, segment_sizes>: Remove.
3395 * symfile.c (default_symfile_segments): Update.
3396 * elfread.c (elf_symfile_segments): Update.
3397 * remote.c (remote_target::get_offsets): Update.
3398 * solib-target.c (solib_target_relocate_section_addresses):
3399 Update.
3400
62982abd
SM
34012020-05-19 Simon Marchi <simon.marchi@efficios.com>
3402
3403 * symfile.h (struct symfile_segment_data): Initialize fields.
3404 <~symfile_segment_data>: Add.
3405 (symfile_segment_data_up): New.
3406 (struct sym_fns) <sym_segments>: Return a
3407 symfile_segment_data_up.
3408 (default_symfile_segments): Return a symfile_segment_data_up.
3409 (free_symfile_segment_data): Remove.
3410 (get_symfile_segment_data): Return a symfile_segment_data_up.
3411 * symfile.c (default_symfile_segments): Likewise.
3412 (get_symfile_segment_data): Likewise.
3413 (free_symfile_segment_data): Remove.
3414 (symfile_find_segment_sections): Update.
3415 * elfread.c (elf_symfile_segments): Return a
3416 symfile_segment_data_up.
3417 * remote.c (remote_target::get_offsets): Update.
3418 * solib-target.c (solib_target_relocate_section_addresses):
3419 Update.
3420 * symfile-debug.c (debug_sym_segments): Return a
3421 symfile_segment_data_up.
3422
7f204339
RO
34232020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3424
e52a0f1b
RO
3425 PR build/25981
3426 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3427 Hardcode register numbers.
3428
7f204339
RO
3429 PR build/25981
3430 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3431 procfs_find_LDT_entry): Remove.
3432 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3433 procfs_find_LDT_entry): Remove.
3434 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3435 Remove.
3436
7f32a4d5
PA
34372020-05-17 Pedro Alves <palves@redhat.com>
3438 Andrew Burgess <andrew.burgess@embecosm.com>
3439 Keno Fischer <keno@juliacomputing.com>
3440
3441 PR gdb/25741
3442 * breakpoint.c (build_target_condition_list): Update comments.
3443 (build_target_command_list): Update comments and skip matching
3444 locations.
3445 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3446 a separate function. Simplify "set breakpoint auto-hw off"
3447 handling.
3448 (insert_breakpoints): Update comment.
3449 (tracepoint_locations_match): New parameter. For breakpoints,
3450 compare location types too, if the caller wants to.
3451 (handle_automatic_hardware_breakpoints): New functions.
3452 (bp_location_is_less_than): Also sort by location type and
3453 hardware breakpoint length.
3454 (update_global_location_list): Handle "set breakpoint auto-hw on"
3455 here.
3456 (update_breakpoint_locations): Ask breakpoint_locations_match to
3457 ignore location types.
3458
7d93a1e0
SM
34592020-05-16 Simon Marchi <simon.marchi@efficios.com>
3460
3461 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3462 type::name instead.
3463
d0e39ea2
SM
34642020-05-16 Simon Marchi <simon.marchi@efficios.com>
3465
3466 * gdbtypes.h (struct type) <name, set_name>: New methods.
3467 (TYPE_CODE): Use type::name. Change all call sites used to set
3468 the name to use type::set_name instead.
3469
2dab0c7b
TT
34702020-05-16 Tom Tromey <tom@tromey.com>
3471
3472 * top.c (quit_force): Update.
3473 * infrun.c (handle_no_resumed): Update.
3474 * top.h (all_uis): New function.
3475 (ALL_UIS): Remove.
3476
59f7bd8d
SM
34772020-05-16 Simon Marchi <simon.marchi@efficios.com>
3478
3479 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3480
9bf058f0
PA
34812020-05-16 Pedro Alves <palves@redhat.com>
3482
3483 * ia64-linux-nat.c
3484 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3485 Declare method.
3486 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3487
8f86ae1a
SM
34882020-05-15 Simon Marchi <simon.marchi@efficios.com>
3489
3490 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3491 (sparc64_adi_info): Likewise.
3492
d6bc0792
TT
34932020-05-15 Tom Tromey <tom@tromey.com>
3494
3495 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3496 block_objfile.
3497 (lookup_objfile_from_block): Remove.
3498 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3499 (lookup_global_symbol): Use block_objfile.
3500 * symtab.h (lookup_objfile_from_block): Don't declare.
3501 * printcmd.c (clear_dangling_display_expressions): Use
3502 block_objfile.
3503 * parse.c (operator_check_standard): Use block_objfile.
3504
8c14c3a3
TT
35052020-05-15 Tom Tromey <tom@tromey.com>
3506
3507 * language.c (language_alloc_type_symbol): Set
3508 SYMBOL_SECTION.
3509 * symtab.c (initialize_objfile_symbol): Remove.
3510 (allocate_symbol): Remove.
3511 (allocate_template_symbol): Remove.
3512 * dwarf2/read.c (fixup_go_packaging): Use "new".
3513 (new_symbol): Use "new".
3514 (read_variable): Don't call initialize_objfile_symbol. Use
3515 "new".
3516 (read_func_scope): Use "new".
3517 * xcoffread.c (process_xcoff_symbol): Don't call
3518 initialize_objfile_symbol.
3519 (SYMBOL_DUP): Remove.
3520 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3521 "new".
3522 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3523 (allocate_template_symbol): Don't declare.
3524 (struct symbol): Add copy constructor. Change defaults.
3525 * jit.c (finalize_symtab): Use "new".
3526 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3527 Use "new".
3528 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3529 (common_block_end): Use "new".
3530 * mdebugread.c (parse_symbol): Use "new".
3531 (new_symbol): Likewise.
3532
5b4a1a8d
PW
35332020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3534
3535 * NEWS: Mention changes to help and apropos.
3536
57b4f16e
PW
35372020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3538
3539 * command.h (enum command_class): Improve comments, document
3540 that class_alias is for user-defined aliases, give the class
3541 name for each class, remove unused class_xdb.
3542 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3543 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3544 by a precise class.
3545 * infcmd.c (_initialize_infcmd): Likewise.
3546 * reverse.c (_initialize_reverse): Likewise.
3547 * stack.c (_initialize_stack): Likewise.
3548 * symfile.c (_initialize_symfile): Likewise.
3549 * tracepoint.c (_initialize_tracepoint): Likewise.
3550
7c05caf7
PW
35512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3552
3553 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3554 when their aliased command is traversed.
3555 (help_cmd): Add fput_command_names_styled call to
3556 output command name and aliases when command has an alias.
3557
3b3aaacb
PW
35582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3559
3560 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3561 * cli/cli-decode.c (help_cmd_list): Declare as static,
3562 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3563 a command together with the command.
3564 (fput_command_name_styled, fput_command_names_styled): New functions.
3565 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3566 fput_command_name_styled.
3567 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3568 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3569
7aa1b46f
PW
35702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3571
3572 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3573 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3574 * command.h (cmd_show_list): Likewise.
3575 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3576 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3577
89bcba74
PW
35782020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3579
3580 * unittests/command-def-selftests.c (traverse_command_structure):
3581 Verify all commands of a list have the same prefix command and
3582 that only the top cmdlist commands have a null prefix.
3583
3f4d92eb
PW
35842020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3585
3586 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3587 as prefix, not one of its aliases.
3588 (set_cmd_prefix): Remove.
3589 (do_add_cmd): Centralize the setting of the prefix of a command, when
3590 command is defined after its full chain of prefix commands.
3591 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3592 (add_setshow_cmd_full): Likewise.
3593 (update_prefix_field_of_prefixed_commands): New function.
3594 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3595 update_prefix_field_of_prefixed_commands.
3596 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3597 addresses of remote_set_cmdlist and remote_show_cmdlist given
3598 as argument, not the address of an argument.
3599 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3600 * gdb/remote.c (_initialize_remote): Likewise.
3601
0605465f
PW
36022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3603
3604 * cli/cli-cmds.c (alias_command): Check for an existing alias
3605 using lookup_cmd_composition, as valid_command_p is too strict
3606 and forbids aliases that are the prefix of an existing alias
3607 or command.
3608 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3609 command is properly recognised as a valid command.
3610
58e6ac70
PW
36112020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3612
3613 * unittests/help-doc-selftests.c: Rename to
3614 unittests/command-def-selftests.c
3615 * unittests/command-def-selftests.c (help_doc_tests): Update some
3616 comments.
3617 (command_structure_tests, traverse_command_structure): New namespace
3618 and function.
3619 (command_structure_invariants_tests): New function.
3620 (_initialize_command_def_selftests) Renamed from
3621 _initialize_help_doc_selftests, register command_structure_invariants
3622 selftest.
3623
a7b9ceb8
PW
36242020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3625
3626 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3627 an alias of 'show'.
3628
b2188a06
JB
36292020-05-15 Joel Brobecker <brobecker@adacore.com>
3630
3631 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3632 ada_is_fixed_point_type. Update all callers.
3633 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3634 all callers.
3635 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3636 Update all callers.
3637 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3638 print_fixed_point_type. Update all callers.
3639 * ada-valprint.c (ada_value_print_num): Replace call to
3640 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3641
a51951c2
KB
36422020-05-14 Kevin Buettner <kevinb@redhat.com>
3643
3644 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3645 processors.
3646 (cpu_supports_bts): Add CV_AMD case.
3647
29d6859f
LM
36482020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3649 Simon Marchi <simon.marchi@efficios.com>
3650
3651 * infrun.c (stop_all_threads): Collect multiple wait events at
3652 each pass.
3653
78134374
SM
36542020-05-14 Simon Marchi <simon.marchi@efficios.com>
3655
3656 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3657 type::code instead.
3658
67607e24
SM
36592020-05-14 Simon Marchi <simon.marchi@efficios.com>
3660
3661 * gdbtypes.h (struct type) <code, set_code>: New methods.
3662 (TYPE_CODE): Use type::code. Change all call sites used to set
3663 the code to use type::set_code instead.
3664
a05575d3
TBA
36652020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3666 Tom de Vries <tdevries@suse.de>
3667 Pedro Alves <palves@redhat.com>
3668
3669 PR threads/25478
3670 * infrun.c (stop_all_threads): Do NOT ignore
3671 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3672 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3673 received.
3674 (handle_no_resumed): Remove code handling a live inferior with no
3675 threads.
3676 * remote.c (has_single_non_exited_thread): New.
3677 (remote_target::update_thread_list): Do not delete a thread if is
3678 the last thread of the process.
3679 * thread.c (thread_select): Call delete_exited_threads instead of
3680 prune_threads.
3681
6ad82919
TBA
36822020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3683
3684 * infrun.c (stop_all_threads): Enable/disable thread events of all
3685 targets. Move a debug message denoting the end of the function
3686 into the SCOPED_EXIT block.
3687
d890404b
TBA
36882020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3689
3690 * process-stratum-target.h: Include <set>.
3691 (all_non_exited_process_targets, switch_to_target_no_thread): New
3692 function declarations.
3693 * process-stratum-target.c (all_non_exited_process_targets)
3694 (switch_to_target_no_thread): New function implementations.
3695
293b3ebc
TBA
36962020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3697
3698 * infrun.c (handle_inferior_event): Extract out a piece of code
3699 into...
3700 (mark_non_executing_threads): ...this new function.
3701
7ca9b62a
TBA
37022020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3703
3704 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3705 use.
3706
fc75c28b
TBA
37072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3708
3709 * regcache.c (regcache_read_pc_protected): New function
3710 implementation that returns 0 if the PC cannot read via
3711 'regcache_read_pc'.
3712 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3713 instead of 'regcache_read_pc'.
3714 (keep_going_pass_signal): Ditto.
3715
a89febbd
TT
37162020-05-13 Tom Tromey <tromey@adacore.com>
3717
3718 * ada-lang.c (align_value): Remove.
3719 (ada_template_to_fixed_record_type_1): Use align_up.
3720
f7e23710
TBA
37212020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3722
3723 * async-event.c: Update the copyright year.
3724 * async-event.h: Update the copyright year.
3725
02ff80c2
SM
37262020-05-12 Simon Marchi <simon.marchi@efficios.com>
3727
3728 * objfiles.h (is_addr_in_objfile,
3729 shared_objfile_contains_address_p): Return bool.
3730 * objfile.c (is_addr_in_objfile,
3731 shared_objfile_contains_address_p): Return bool.
3732
4fd6c7e8
TT
37332020-05-11 Tom Tromey <tromey@adacore.com>
3734
3735 * cli/cli-cmds.c (info_command): Restore.
3736 (_initialize_cli_cmds): Use add_prefix_command for "info".
3737 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3738
5eb68a39
TT
37392020-05-11 Tom Tromey <tromey@adacore.com>
3740
3741 * ada-lang.c (ada_value_primitive_field): Now public.
3742 * ada-lang.h (ada_value_primitive_field): Declare.
3743 * ada-valprint.c (print_field_values): Use
3744 ada_value_primitive_field for wrapper fields.
3745
7666722f
TV
37462020-05-11 Tom de Vries <tdevries@suse.de>
3747
3748 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3749 MODULE_DOMAIN.
3750
3ee6bb11
TV
37512020-05-11 Tom de Vries <tdevries@suse.de>
3752
3753 PR symtab/25941
3754 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3755 with length 0, if not gdb-produced.
3756 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3757
43434996
TV
37582020-05-09 Tom de Vries <tdevries@suse.de>
3759
3760 PR gdb/25955
3761 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3762 calculation.
3763
2f78cffc
TT
37642020-05-09 Tom Tromey <tom@tromey.com>
3765
3766 * top.c (server_command): Now bool.
3767 * top.h (server_command): Now bool.
3768
4f7bc5ed
TT
37692020-05-08 Tom Tromey <tromey@adacore.com>
3770
3771 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3772 already being processed.
3773
8be4b118
TT
37742020-05-08 Tom Tromey <tom@tromey.com>
3775
3776 * printcmd.c (struct display) <next>: Remove.
3777 <display>: New constructor.
3778 <exp_string>: Now a std::string.
3779 <enabled_p>: Now a bool.
3780 (display_number): Move definition earlier.
3781 (displays): Rename from display_chain. Now a std::vector.
3782 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3783 (display_command): Update.
3784 (do_one_display, disable_display)
3785 (enable_disable_display_command, do_enable_disable_display):
3786 Update.
3787 (free_display): Remove.
3788 (clear_displays): Rewrite.
3789 (delete_display): Update.
3790 (map_display_numbers): Use function_view. Remove "data"
3791 parameter. Update.
3792 (do_delete_display): Remove.
3793 (undisplay_command): Update.
3794 (do_one_display, do_displays, disable_display)
3795 (info_display_command): Update.
3796 (do_enable_disable_display): Remove.
3797 (enable_disable_display_command)
3798 (clear_dangling_display_expressions): Update.
3799
94c93c35
TT
38002020-05-08 Tom Tromey <tom@tromey.com>
3801
3802 * symtab.c (set_symbol_cache_size)
3803 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3804 (maintenance_print_symbol_cache_statistics): Update.
3805 * symmisc.c (print_symbol_bcache_statistics)
3806 (print_objfile_statistics, maintenance_print_objfiles)
3807 (maintenance_info_symtabs, maintenance_check_symtabs)
3808 (maintenance_expand_symtabs, maintenance_info_line_tables):
3809 Update.
3810 * symfile-debug.c (set_debug_symfile): Update.
3811 * source.c (forget_cached_source_info): Update.
3812 * python/python.c (gdbpy_progspaces): Update.
3813 * psymtab.c (maintenance_info_psymtabs): Update.
3814 * probe.c (parse_probes): Update.
3815 * linespec.c (iterate_over_all_matching_symtabs)
3816 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3817 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3818 * exec.c (exec_target::close): Update.
3819 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3820 * breakpoint.c (print_one_breakpoint_location)
3821 (create_longjmp_master_breakpoint)
3822 (create_std_terminate_master_breakpoint): Update.
3823 * progspace.c (program_spaces): Now a std::vector.
3824 (maybe_new_address_space): Update.
3825 (add_program_space): Remove.
3826 (program_space::program_space): Update.
3827 (remove_program_space): Update.
3828 (number_of_program_spaces): Remove.
3829 (print_program_space, update_address_spaces): Update.
3830 * progspace.h (program_spaces): Change type.
3831 (ALL_PSPACES): Remove.
3832 (number_of_program_spaces): Don't declare.
3833 (struct program_space) <next>: Remove.
3834
a1fd1ac9
TT
38352020-05-08 Tom Tromey <tom@tromey.com>
3836
3837 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3838 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3839 (enable_break): Update.
3840 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3841 (frv_fdpic_find_canonical_descriptor): Update.
3842 (frv_fetch_objfile_link_map): Update.
3843 * progspace.c (program_space::free_all_objfiles): Update.
3844 (program_space::solibs): New method.
3845 * progspace.h (struct program_space) <solibs>: New method.
3846 * solist.h (master_so_list): Don't declare.
3847 (ALL_SO_LIBS): Remove.
3848 * solib.h (so_list_head): Remove.
3849 (update_solib_list): Update comment.
3850 * solib.c (master_so_list): Remove.
3851 (solib_used, update_solib_list, solib_add)
3852 (info_sharedlibrary_command, clear_solib)
3853 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3854
38eae084
TT
38552020-05-08 Tom Tromey <tom@tromey.com>
3856
3857 * extension.c (extension_languages): Now a std::array.
3858 (ALL_EXTENSION_LANGUAGES): Remove.
3859 (get_ext_lang_defn, get_ext_lang_of_file)
3860 (eval_ext_lang_from_control_command): Update.
3861 (finish_ext_lang_initialization)
3862 (auto_load_ext_lang_scripts_for_objfile)
3863 (ext_lang_type_printers::ext_lang_type_printers)
3864 (apply_ext_lang_type_printers)
3865 (ext_lang_type_printers::~ext_lang_type_printers)
3866 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3867 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3868 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3869 (get_matching_xmethod_workers, ext_lang_colorize)
3870 (ext_lang_before_prompt): Update.
3871 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3872
596dc4ad
TT
38732020-05-08 Tom Tromey <tom@tromey.com>
3874
3875 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3876 overload.
3877 <swap_string, m_string>: Remove.
3878 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3879 Update.
3880 * stabsread.c (define_symbol, read_type): Update.
3881 * linespec.c (find_linespec_symbols): Update.
3882 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3883 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3884 * dbxread.c (read_dbx_symtab): Update.
3885 * cp-support.h (cp_canonicalize_string_full)
3886 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3887 Return unique_xmalloc_ptr.
3888 * cp-support.c (inspect_type): Update.
3889 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3890 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3891 Likewise.
3892 * c-typeprint.c (print_name_maybe_canonical): Update.
3893 * break-catch-throw.c (check_status_exception_catchpoint):
3894 Update.
3895
bf4cb9be
TV
38962020-05-08 Tom de Vries <tdevries@suse.de>
3897
3898 * infrun.c (follow_fork): Copy current_line and current_symtab to
3899 child thread.
3900
a1b68f28
SM
39012020-05-07 Simon Marchi <simon.marchi@efficios.com>
3902
3903 * async-event.c (struct async_signal_handler, struct
3904 async_event_handler): Reformat, remove typedef.
3905
98d48915
SM
39062020-05-07 Simon Marchi <simon.marchi@efficios.com>
3907
3908 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3909 access thistype->main_type->dyn_prop_list directly.
3910
7aa91313
SM
39112020-05-07 Simon Marchi <simon.marchi@efficios.com>
3912
3913 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3914 (remove_dyn_prop): Remove. Update all users to use
3915 type::remove_dyn_prop.
3916 * gdbtypes.c (remove_dyn_prop): Rename to...
3917 (type::remove_dyn_prop): ... this.
3918
5c54719c
SM
39192020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3920
3921 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3922 (add_dyn_prop): Remove. Update all users to use
3923 type::add_dyn_prop.
3924 * gdbtypes.c (add_dyn_prop): Rename to...
3925 (type::add_dyn_prop): ... this.
3926
24e99c6c
SM
39272020-05-07 Simon Marchi <simon.marchi@efficios.com>
3928
3929 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3930 (get_dyn_prop): Remove. Update all users to use
3931 type::dyn_prop.
3932 * gdbtypes.c (get_dyn_prop): Rename to...
3933 (type::dyn_prop): ... this.
3934
0d4bf016
SM
39352020-05-06 Simon Marchi <simon.marchi@efficios.com>
3936
3937 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3938
ac4a4f1c
SM
39392020-05-06 Simon Marchi <simon.marchi@efficios.com>
3940
3941 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3942 instruction, skip it if it's there.
3943
a3bbacc1
SM
39442020-05-05 Simon Marchi <simon.marchi@efficios.com>
3945
3946 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
3947
c3236f84
SM
39482020-05-04 Simon Marchi <simon.marchi@efficios.com>
3949
3950 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
3951 * gdbtypes.c (recursive_dump_type): Remove use of
3952 TYPE_INCOMPLETE.
3953
3b6acaee
TT
39542020-05-03 Tom Tromey <tom@tromey.com>
3955
3956 * breakpoint.c (catch_command, tcatch_command): Remove.
3957 (_initialize_breakpoint): Use add_basic_prefix_cmd,
3958 add_show_prefix_cmd.
3959 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
3960 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3961 Remove.
3962 (add_internal_problem_command): Use add_basic_prefix_cmd,
3963 add_show_prefix_cmd.
3964 * mips-tdep.c (set_mipsfpu_command): Remove.
3965 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
3966 * dwarf2/index-cache.c (set_index_cache_command): Remove.
3967 (_initialize_index_cache): Use add_basic_prefix_cmd.
3968 * memattr.c (dummy_cmd): Remove.
3969 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
3970 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
3971 (_initialize_tui_win): Use add_basic_prefix_cmd,
3972 add_show_prefix_cmd.
3973 * cli/cli-logging.c (set_logging_command): Remove.
3974 (_initialize_cli_logging): Use add_basic_prefix_cmd,
3975 add_show_prefix_cmd.
3976 (show_logging_command): Remove.
3977 * target.c (target_command): Remove.
3978 (add_target): Use add_basic_prefix_cmd.
3979
a51119cd
HD
39802020-05-02 Hannes Domani <ssbssa@yahoo.de>
3981
3982 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
3983
652fc23a 39842020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3985
652fc23a
PW
3986 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
3987 info_command.
3988
117539e6
KR
39892020-04-30 Kamil Rytarowski <n54@gmx.com>
3990
3991 * nbsd-nat.c (nbsd_enable_proc_events)
3992 (nbsd_nat_target::post_startup_inferior): Add.
3993 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
3994 (nbsd_nat_target::update_thread_list): Rewrite.
3995 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
3996 "PTRACE_LWP_CREATE".
3997 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
3998
102e38eb 39992020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4000
102e38eb
PW
4001 * stack.c (_initialize_stack): Remove duplicated creation
4002 of "frame" command and "f" alias.
4003
ee9d1e5f
HD
40042020-04-30 Hannes Domani <ssbssa@yahoo.de>
4005
4006 PR gdb/18706
4007 * gdbtypes.c (check_typedef): Calculate size of array of
4008 stubbed type.
4009
627c7fb8
HD
40102020-04-30 Hannes Domani <ssbssa@yahoo.de>
4011
4012 PR gdb/15559
4013 * i386-tdep.c (i386_push_dummy_call): Call
4014 i386_thiscall_push_dummy_call.
4015 (i386_thiscall_push_dummy_call): New function.
4016 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4017 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4018 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4019
ffc2844e
SM
40202020-04-29 Simon Marchi <simon.marchi@efficios.com>
4021
4022 * gdbarch.sh (do_read): Add shellcheck disable directive for
4023 warning SC2162.
4024
1207375d
SM
40252020-04-29 Simon Marchi <simon.marchi@efficios.com>
4026
4027 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4028 "referenced but not assigned" warning.
4029
9fdb2916
SM
40302020-04-29 Simon Marchi <simon.marchi@efficios.com>
4031
4032 * gdbarch.sh: Remove code that sets fallbackdefault.
4033
759cea5e
SM
40342020-04-29 Simon Marchi <simon.marchi@efficios.com>
4035
4036 * gdbarch.sh: Use shell operators && and || instead of
4037 -a and -o.
4038
cb02ab24
SM
40392020-04-29 Simon Marchi <simon.marchi@efficios.com>
4040
4041 * gdbarch.sh: Use $(...) instead of `...`.
4042
a6fc5ffc
SM
40432020-04-29 Simon Marchi <simon.marchi@efficios.com>
4044
4045 * gdbarch.sh: Use double quotes around variables.
4046
8d113d13
SM
40472020-04-29 Simon Marchi <simon.marchi@efficios.com>
4048
4049 * gdbarch.sh: Use %s with printf, instead of variables in the
4050 format string.
4051
ed6acedd
TT
40522020-04-29 Tom Tromey <tromey@adacore.com>
4053
4054 PR ada/25875:
4055 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4056 type fields here.
4057 (read_enumeration_type): Call
4058 update_enumeration_type_from_children later. Update comments.
4059 (process_enumeration_scope): Don't create type fields.
4060
b68b1b58
KR
40612020-04-29 Kamil Rytarowski <n54@gmx.com>
4062
4063 * nbsd-tdep.c: Include "xml-syscall.h".
4064 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4065
f94b2e03
KR
40662020-04-29 Kamil Rytarowski <n54@gmx.com>
4067
4068 * nbsd-nat.c: Include "sys/wait.h".
4069 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4070 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4071 (nbsd_nat_target::remove_exec_catchpoint)
4072 (nbsd_nat_target::set_syscall_catchpoint): Add.
4073 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4074 (nbsd_nat_target::insert_exec_catchpoint)
4075 (nbsd_nat_target::remove_exec_catchpoint)
4076 (nbsd_nat_target::set_syscall_catchpoint): Add.
4077 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4078 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4079 `nbsd_get_syscall_number'.
4080
fc49bc72
TT
40812020-04-29 Tom Tromey <tom@tromey.com>
4082
4083 * stack.c (print_block_frame_labels): Remove.
4084
d642b692
HD
40852020-04-29 Hannes Domani <ssbssa@yahoo.de>
4086
4087 PR gdb/17320
4088 * ada-valprint.c (val_print_packed_array_elements): Move array
4089 end bracket to new line.
4090 (ada_val_print_string): Remove extra spaces before first array
4091 element.
4092 * c-valprint.c (c_value_print_array): Likewise.
4093 * m2-valprint.c (m2_print_array_contents): Likewise.
4094 (m2_value_print_inner): Likewise.
4095 * p-valprint.c (pascal_value_print_inner): Likewise.
4096 * valprint.c (generic_val_print_array): Likewise.
4097 (value_print_array_elements): Move first array element and array
4098 end bracket to new line.
4099
ea90f227
TV
41002020-04-29 Tom de Vries <tdevries@suse.de>
4101
4102 PR symtab/25889
4103 * linespec.c (find_method): Fix ix calculation.
4104
4498ef4f
KR
41052020-04-28 Kamil Rytarowski <n54@gmx.com>
4106
4107 * syscalls/update-netbsd.sh: New file.
4108 * syscalls/netbsd.xml: Regenerate.
4109 * data-directory/Makefile.in: Register `netbsd.xml' in
4110 `SYSCALLS_FILES'.
4111
a55e30b5
SM
41122020-04-28 Simon Marchi <simon.marchi@efficios.com>
4113
4114 * syscalls/update-freebsd.sh: Add double quotes.
4115
2b2fbab8
TT
41162020-04-28 Tom Tromey <tom@tromey.com>
4117
4118 * NEWS: Update.
4119 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4120 (cmdpy_init): Allow class_tui.
4121
a65189c9
TV
41222020-04-28 Mark Williams <mark@myosotissp.com>
4123
4124 PR gdb/24480
4125 * dwarf2read.c: Add missing assingments to list_in_scope when
4126 start_symtab was already called.
4127
1b95cdb7
SM
41282020-04-28 Simon Marchi <simon.marchi@efficios.com>
4129
4130 PR gdb/25881
4131 * dwarf2/read.c (offset_map_type): Use
4132 gdb:hash_enum<sect_offset> as hash function.
4133
15cd93d0
TV
41342020-04-28 Tom de Vries <tdevries@suse.de>
4135
4136 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4137 with DW_AT_signature.
4138
1eb39914
SM
41392020-04-27 Simon Marchi <simon.marchi@efficios.com>
4140
4141 * configure.ac: Remove check for fs_base/gs_base in
4142 user_regs_struct.
4143 * configure: Re-generate.
4144 * config.in: Re-generate.
4145 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4146 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4147 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4148
991a3e2e
LM
41492020-04-27 Luis Machado <luis.machado@linaro.org>
4150
4151 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4152 problematic inline frame unwinding situation.
4153 * frame.c (frame_id_computed_p): New function.
4154 * frame.h (frame_id_computed_p): New prototype.
4155
361ba0e8
TT
41562020-04-26 Tom Tromey <tom@tromey.com>
4157
4158 * command.h (enum command_class) <class_pseudo>: Remove.
4159
bc3609fd
PW
41602020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4161
4162 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4163 and whitespace.
4164
b9771db7
KR
41652020-04-25 Kamil Rytarowski <n54@gmx.com>
4166
ec16513e
SM
4167 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4168 `PT_GET_PROCESS_STATE' block.
b9771db7 4169
7151c1af
TT
41702020-04-24 Tom Tromey <tom@tromey.com>
4171
4172 * symtab.h (symbol_get_demangled_name): Don't declare.
4173 * symtab.c (symbol_get_demangled_name): Remove.
4174 (general_symbol_info::natural_name)
4175 (general_symbol_info::demangled_name): Update.
4176
906bb4c5
TT
41772020-04-24 Tom Tromey <tom@tromey.com>
4178
4179 PR rust/25025:
4180 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4181
bcfe6157
TT
41822020-04-24 Tom Tromey <tom@tromey.com>
4183
4184 PR symtab/12707:
4185 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4186 exists.
4187 (new_symbol): Likewise.
4188 * compile/compile-object-load.c (get_out_value_type): Use
4189 symbol_matches_search_name.
4190
f049a313
TT
41912020-04-24 Tom Tromey <tom@tromey.com>
4192
4193 * dwarf2/read.c (add_partial_symbol): Do not call
4194 compute_and_set_names.
4195
76e288d1
TT
41962020-04-24 Tom Tromey <tom@tromey.com>
4197
4198 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4199 overload.
4200
2467f4f6
TT
42012020-04-24 Tom Tromey <tom@tromey.com>
4202
4203 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4204 (add_psymbol_to_list): New overload. Make old overload call new
4205 one.
4206 * psympriv.h (add_psymbol_to_list): New overload.
4207
e61108c9
TT
42082020-04-24 Tom Tromey <tom@tromey.com>
4209
4210 * dwarf2/read.c (partial_die_info::read) <case
4211 DW_AT_linkage_name>: Use value_as_string.
4212 (dwarf2_string_attr): Use value_as_string.
4213 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4214 method.
4215 * dwarf2/attribute.c (attribute::value_as_string): New method.
4216
8c87a452
TT
42172020-04-24 Tom Tromey <tom@tromey.com>
4218
4219 * symtab.c (general_symbol_info::natural_name)
4220 (general_symbol_info::demangled_name): Check for language_rust.
4221
787de330
TT
42222020-04-24 Tom Tromey <tom@tromey.com>
4223
4224 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4225 (dwarf2_physname): ... from here.
4226 (partial_die_info::read): Add Rust "{" hack.
4227
ff985671
TT
42282020-04-24 Tom Tromey <tom@tromey.com>
4229
4230 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4231 method.
4232 (symbol_set_demangled_name): Don't declare.
4233 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4234 symbol_set_demangled_name.
4235 (general_symbol_info::set_language)
4236 (general_symbol_info::compute_and_set_names): Update.
4237 * minsyms.c (minimal_symbol_reader::install): Update.
4238 * dwarf2/read.c (new_symbol): Update.
4239
1acda803
TT
42402020-04-24 Tom Tromey <tromey@adacore.com>
4241
4242 PR python/23662:
4243 * python/py-type.c (convert_field): Handle
4244 FIELD_LOC_KIND_DWARF_BLOCK.
4245 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4246 (typy_get_dynamic): Nw function.
4247 (type_object_getset): Add "dynamic".
4248 * NEWS: Add entry.
4249
d656f129
TT
42502020-04-24 Tom Tromey <tromey@adacore.com>
4251
4252 * ada-typeprint.c (print_choices, print_variant_part)
4253 (print_record_field_types_dynamic): New functions.
4254 (print_record_field_types): Use print_record_field_types_dynamic.
4255
7d79de9a
TT
42562020-04-24 Tom Tromey <tromey@adacore.com>
4257
4258 * dwarf2/read.c (handle_data_member_location): New overload.
4259 (dwarf2_add_field): Use it.
4260 (decode_locdesc): Add "computed" parameter. Update comment.
4261 * gdbtypes.c (is_dynamic_type_internal): Also look for
4262 FIELD_LOC_KIND_DWARF_BLOCK.
4263 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4264 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4265 virtual base classes.
4266 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4267 FIELD_LOC_KIND_DWARF_BLOCK.
4268
f8e89861
TT
42692020-04-24 Tom Tromey <tromey@adacore.com>
4270
4271 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4272 * gdbtypes.c (is_dynamic_type_internal): Check
4273 TYPE_HAS_DYNAMIC_LENGTH.
4274 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4275 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4276 New macros.
4277 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4278 constant.
4279
9c6a1327
TT
42802020-04-24 Tom Tromey <tromey@adacore.com>
4281
4282 * dwarf2/read.c (struct variant_field): Rewrite.
4283 (struct variant_part_builder): New.
4284 (struct nextfield): Remove "variant" field. Add "offset".
4285 (struct field_info): Add "current_variant_part" and
4286 "variant_parts".
4287 (alloc_discriminant_info): Remove.
4288 (alloc_rust_variant): New function.
4289 (quirk_rust_enum): Update.
4290 (dwarf2_add_field): Set "offset" member. Don't handle
4291 DW_TAG_variant_part.
4292 (offset_map_type): New typedef.
4293 (convert_variant_range, create_one_variant)
4294 (create_one_variant_part, create_variant_parts)
4295 (add_variant_property): New functions.
4296 (dwarf2_attach_fields_to_type): Call add_variant_property.
4297 (read_structure_type): Don't handle DW_TAG_variant_part.
4298 (handle_variant_part, handle_variant): New functions.
4299 (handle_struct_member_die): Use them.
4300 (process_structure_scope): Don't handle variant parts.
4301 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4302 (struct discriminant_info): Remove.
4303 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4304 (struct main_type) <flag_discriminated_union>: Remove.
4305 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4306 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4307 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4308 Update.
4309 * valops.c (value_union_variant): Remove.
4310 * value.h (value_union_variant): Don't declare.
4311
b249d2c2
TT
43122020-04-24 Tom Tromey <tromey@adacore.com>
4313
4314 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4315 (ada_value_primitive_packed_val): Update.
4316 * ada-valprint.c (ada_value_print_1): Update.
4317 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4318 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4319 just an address. Use evaluate_for_locexpr_baton.
4320 (dwarf2_evaluate_property): Update.
4321 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4322 array_view.
4323 * findvar.c (default_read_var_value): Update.
4324 * gdbtypes.c (compute_variant_fields_inner)
4325 (resolve_dynamic_type_internal): Update.
4326 (resolve_dynamic_type): Change type of valaddr parameter.
4327 * gdbtypes.h (resolve_dynamic_type): Update.
4328 * valarith.c (value_subscripted_rvalue): Update.
4329 * value.c (value_from_contents_and_address): Update.
4330
61122aa9
TT
43312020-04-24 Tom Tromey <tromey@adacore.com>
4332
4333 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4334 "push_initial_value" parameter.
4335 (dwarf2_evaluate_property): Likewise.
4336 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4337
ef83a141
TT
43382020-04-24 Tom Tromey <tromey@adacore.com>
4339
4340 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4341 (variant::matches, compute_variant_fields_recurse)
4342 (compute_variant_fields_inner, compute_variant_fields): New
4343 functions.
4344 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4345 Use resolved_type after type is made.
4346 (operator==): Add new cases.
4347 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4348 (struct discriminant_range, struct variant, struct variant_part):
4349 New.
4350 (union dynamic_prop_data) <variant_parts, original_type>: New
4351 members.
4352 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4353 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4354 constants.
4355 * value.c (unpack_bits_as_long): Now public.
4356 * value.h (unpack_bits_as_long): Declare.
4357
675127ec
TT
43582020-04-24 Tom Tromey <tromey@adacore.com>
4359
4360 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4361 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4362
9852ceef
HD
43632020-04-24 Hannes Domani <ssbssa@yahoo.de>
4364
4365 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4366
7632c6ce
KR
43672020-04-24 Kamil Rytarowski <n54@gmx.com>
4368
4369 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4370 (remove_fork_catchpoint, post_startup_inferior)
4371 (post_attach): Move...
4372 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4373 (remove_fork_catchpoint, post_startup_inferior)
4374 (post_attach): ...here.
4375 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4376 (remove_fork_catchpoint, post_startup_inferior)
4377 (post_attach): Move...
4378 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4379 (remove_fork_catchpoint, post_startup_inferior)
4380 (post_attach): ...here.
4381
7be2bb4f
TT
43822020-04-24 Tom Tromey <tromey@adacore.com>
4383
4384 * nat/windows-nat.h (struct windows_thread_info)
4385 <pc_adjusted>: New member.
4386 * windows-nat.c (windows_fetch_one_register): Check
4387 pc_adjusted.
4388 (windows_nat_target::get_windows_debug_event)
4389 (windows_nat_target::wait): Set pc_adjusted.
4390
f80cb3b4
TV
43912020-04-24 Tom de Vries <tdevries@suse.de>
4392
4393 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4394 Run gdb-add-index inside temp dir.
4395
29514b87
TT
43962020-04-23 Tom Tromey <tromey@adacore.com>
4397
4398 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4399 in loop.
4400
5939967b
LM
44012020-04-23 Luis Machado <luis.machado@linaro.org>
4402
4403 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4404 get_frame_register instead of gdbarch_unwind_pc.
4405
70bc38f5
TV
44062020-04-23 Tom de Vries <tdevries@suse.de>
4407
4408 * symtab.c (lookup_global_symbol): Prefer def over decl.
4409
de82891c
TV
44102020-04-23 Tom de Vries <tdevries@suse.de>
4411
4412 PR symtab/25807
4413 * block.c (best_symbol, better_symbol): Promote to external.
4414 * block.h (best_symbol, better_symbol): Declare.
4415 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4416 decl.
4417
ecc6c606
TT
44182020-04-23 Tom Tromey <tromey@adacore.com>
4419
4420 PR ada/25837:
4421 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4422 "const char *", not a "const std::string &".
4423 <name_and_matcher::operator==>: Update.
4424 * unittests/lookup_name_info-selftests.c: Change type of
4425 "result".
4426
740480b8
TT
44272020-04-23 Tom Tromey <tom@tromey.com>
4428
4429 * inferior.h (iterate_over_inferiors): Don't declare.
4430 * inferior.c (iterate_over_inferiors): Remove.
4431 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4432 Remove.
4433 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4434 use iterate_over_inferiors.
4435 (darwin_resume_inferior_it)
4436 (struct resume_inferior_threads_param)
4437 (darwin_resume_inferior_threads_it): Remove.
4438 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4439
ae3ab1f0
TV
44402020-04-23 Tom de Vries <tdevries@suse.de>
4441
4442 * blockframe.c (find_pc_partial_function): Use
4443 find_pc_sect_compunit_symtab rather than
4444 objfile->sf->qf->find_pc_sect_compunit_symtab.
4445
317d2668
TV
44462020-04-22 Tom de Vries <tdevries@suse.de>
4447
4448 PR symtab/25764
4449 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4450 in psymtabs.
4451
eea9e357
TV
44522020-04-22 Tom de Vries <tdevries@suse.de>
4453
4454 PR symtab/25801
4455 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4456 symtabs.
4457
3d5afab3
TV
44582020-04-22 Tom de Vries <tdevries@suse.de>
4459
4460 PR symtab/25700
4461 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4462 CU if already created.
4463
d43b7a2d
TBA
44642020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4465
4466 * infrun.c (displaced_step_fixup): Switch to the event_thread
4467 before calling displaced_step_restore, not after.
4468
d89edf9b
MM
44692020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4470
4471 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4472 its inferior is not recorded by us.
4473 (record_btrace_target_open): Replace call to
4474 all_non_exited_threads () with call to current_inferior
4475 ()->non_exited_threads ().
4476 (record_btrace_target::stop_recording): Likewise.
4477 (record_btrace_target::close): Likewise.
4478 (record_btrace_target::wait): Likewise.
4479 (record_btrace_target::record_stop_replaying): Likewise.
4480
5897fd49
MM
44812020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4482
4483 * btrace.c (btrace_enable): Throw an error on double enables and
4484 when enabling recording fails.
4485 (btrace_disable): Throw an error if the thread is not recorded.
4486
1a476b6d
MM
44872020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4488
4489 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4490 request if we do not have a thread_info.
4491
4778a5f8
TV
44922020-04-21 Tom de Vries <tdevries@suse.de>
4493
4494 PR gdb/25471
4495 * thread.c
4496 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4497 exception in get_frame_id.
4498
0fa7617d
TT
44992020-04-20 Tom Tromey <tromey@adacore.com>
4500
4501 * python/python.c (struct gdbpy_event): Mark move constructor as
4502 noexcept.
4503 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4504 constructor as noexcept.
4505 * completer.h (struct completion_result): Mark move constructor as
4506 noexcept.
4507 * completer.c (completion_result::completion_result): Use
4508 initialization style. Don't call reset_match_list.
4509
ad23bda0
MS
45102020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4511
4512 * MAINTAINERS (Write After Approval): Add myself.
4513
45e1f031
TT
45142020-04-18 Tom Tromey <tom@tromey.com>
4515
4516 * windows-tdep.c (init_w32_command_list)
4517 (w32_prefix_command_valid): Restore.
4518 (_initialize_windows_tdep): Call init_w32_command_list.
4519
08feed99
TT
45202020-04-18 Tom Tromey <tom@tromey.com>
4521
4522 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4523 * value.c (value_fn_field): Update.
4524 * valops.c (find_function_in_inferior)
4525 (value_allocate_space_in_inferior): Update.
4526 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4527 Update.
4528 * tui/tui-source.c (tui_source_window::set_contents): Update.
4529 * symtab.c (lookup_global_or_static_symbol)
4530 (find_function_start_sal_1, skip_prologue_sal)
4531 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4532 * symmisc.c (dump_msymbols, dump_symtab_1)
4533 (maintenance_print_one_line_table): Update.
4534 * symfile.c (init_entry_point_info, section_is_mapped)
4535 (list_overlays_command, simple_read_overlay_table)
4536 (simple_overlay_update_1): Update.
4537 * stap-probe.c (handle_stap_probe): Update.
4538 * stabsread.c (dbx_init_float_type, define_symbol)
4539 (read_one_struct_field, read_enum_type, read_range_type): Update.
4540 * source.c (info_line_command): Update.
4541 * python/python.c (gdbpy_source_objfile_script)
4542 (gdbpy_execute_objfile_script): Update.
4543 * python/py-type.c (save_objfile_types): Update.
4544 * python/py-objfile.c (py_free_objfile): Update.
4545 * python/py-inferior.c (python_new_objfile): Update.
4546 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4547 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4548 (maintenance_check_psymtabs): Update.
4549 * printcmd.c (info_address_command): Update.
4550 * objfiles.h (struct objfile) <arch>: New method, from
4551 get_objfile_arch.
4552 (get_objfile_arch): Don't declare.
4553 * objfiles.c (get_objfile_arch): Remove.
4554 (filter_overlapping_sections): Update.
4555 * minsyms.c (msymbol_is_function): Update.
4556 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4557 (output_nondebug_symbol): Update.
4558 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4559 (mdebug_expand_psymtab): Update.
4560 * machoread.c (macho_add_oso_symfile): Update.
4561 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4562 Update.
4563 * linux-fork.c (checkpoint_command): Update.
4564 * linespec.c (convert_linespec_to_sals): Update.
4565 * jit.c (finalize_symtab): Update.
4566 * infrun.c (insert_exception_resume_from_probe): Update.
4567 * ia64-tdep.c (ia64_find_unwind_table): Update.
4568 * hppa-tdep.c (internalize_unwinds): Update.
4569 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4570 Update.
4571 * gcore.c (call_target_sbrk): Update.
4572 * elfread.c (record_minimal_symbol, elf_symtab_read)
4573 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4574 (elf_gnu_ifunc_resolve_by_got): Update.
4575 * dwarf2/read.c (create_addrmap_from_index)
4576 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4577 (read_debug_names_from_section)
4578 (process_psymtab_comp_unit_reader, add_partial_symbol)
4579 (add_partial_subprogram, process_full_comp_unit)
4580 (read_file_scope, read_func_scope, read_lexical_block_scope)
4581 (read_call_site_scope, dwarf2_ranges_read)
4582 (dwarf2_record_block_ranges, dwarf2_add_field)
4583 (mark_common_block_symbol_computed, read_tag_pointer_type)
4584 (read_tag_string_type, dwarf2_init_float_type)
4585 (dwarf2_init_complex_target_type, read_base_type)
4586 (partial_die_info::read, partial_die_info::read)
4587 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4588 (dwarf2_fetch_die_loc_sect_off): Update.
4589 * dwarf2/loc.c (dwarf2_find_location_expression)
4590 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4591 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4592 (dwarf2_loc_desc_get_symbol_read_needs)
4593 (locexpr_describe_location_piece, locexpr_describe_location_1)
4594 (loclist_describe_location): Update.
4595 * dwarf2/index-write.c (write_debug_names): Update.
4596 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4597 * dtrace-probe.c (dtrace_process_dof): Update.
4598 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4599 (process_one_symbol): Update.
4600 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4601 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4602 (coff_read_enum_type): Update.
4603 * cli/cli-cmds.c (edit_command, list_command): Update.
4604 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4605 * breakpoint.c (create_overlay_event_breakpoint)
4606 (create_longjmp_master_breakpoint)
4607 (create_std_terminate_master_breakpoint)
4608 (create_exception_master_breakpoint, get_sal_arch): Update.
4609 * block.c (block_gdbarch): Update.
4610 * annotate.c (annotate_source_line): Update.
4611
0743fc83
TT
46122020-04-17 Tom Tromey <tromey@adacore.com>
4613
4614 * auto-load.c (show_auto_load_cmd): Remove.
4615 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4616 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4617 (maintenance_print_arc_command): Remove.
4618 * tui/tui-win.c (tui_command): Remove.
4619 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4620 * tui/tui-layout.c (tui_layout_command): Remove.
4621 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4622 * python/python.c (user_set_python, user_show_python): Remove.
4623 (_initialize_python): Use add_basic_prefix_cmd,
4624 add_show_prefix_cmd.
4625 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4626 (install_gdb_commands): Use add_basic_prefix_cmd,
4627 add_show_prefix_cmd.
4628 (info_guile_command): Remove.
4629 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4630 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4631 add_show_prefix_cmd.
4632 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4633 Remove do_set and do_show parameters.
4634 * cli/cli-style.c (set_style, show_style): Remove.
4635 (_initialize_cli_style): Use add_basic_prefix_cmd,
4636 add_show_prefix_cmd.
4637 (cli_style_option::add_setshow_commands): Remove do_set and
4638 do_show parameters.
4639 (cli_style_option::add_setshow_commands): Use
4640 add_basic_prefix_cmd, add_show_prefix_cmd.
4641 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4642 (set_style_name): Remove.
4643 * cli/cli-dump.c (dump_command, append_command): Remove.
4644 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4645 (tekhex_dump_command, binary_dump_command)
4646 (binary_append_command): Remove.
4647 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4648 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4649 (init_w32_command_list): Remove; move into ...
4650 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4651 * valprint.c (set_print, show_print, set_print_raw)
4652 (show_print_raw): Remove.
4653 (_initialize_valprint): Use add_basic_prefix_cmd,
4654 add_show_prefix_cmd.
4655 * typeprint.c (set_print_type, show_print_type): Remove.
4656 (_initialize_typeprint): Use add_basic_prefix_cmd,
4657 add_show_prefix_cmd.
4658 * record.c (set_record_command, show_record_command): Remove.
4659 (_initialize_record): Use add_basic_prefix_cmd,
4660 add_show_prefix_cmd.
4661 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4662 add_show_prefix_cmd.
4663 (info_command, show_command, set_debug, show_debug): Remove.
4664 * top.h (set_history, show_history): Don't declare.
4665 * top.c (set_history, show_history): Remove.
4666 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4667 (unset_tdesc_cmd): Remove.
4668 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4669 add_show_prefix_cmd.
4670 * symtab.c (info_module_command): Remove.
4671 (_initialize_symtab): Use add_basic_prefix_cmd.
4672 * symfile.c (overlay_command): Remove.
4673 (_initialize_symfile): Use add_basic_prefix_cmd.
4674 * sparc64-tdep.c (info_adi_command): Remove.
4675 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4676 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4677 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4678 add_show_prefix_cmd.
4679 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4680 (_initialize_serial): Use add_basic_prefix_cmd,
4681 add_show_prefix_cmd.
4682 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4683 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4684 add_show_prefix_cmd.
4685 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4686 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4687 add_show_prefix_cmd.
4688 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4689 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4690 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4691 add_show_prefix_cmd.
4692 * remote.c (remote_command, set_remote_cmd): Remove.
4693 (_initialize_remote): Use add_basic_prefix_cmd.
4694 * record-full.c (set_record_full_command)
4695 (show_record_full_command): Remove.
4696 (_initialize_record_full): Use add_basic_prefix_cmd,
4697 add_show_prefix_cmd.
4698 * record-btrace.c (cmd_set_record_btrace)
4699 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4700 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4701 (cmd_show_record_btrace_pt): Remove.
4702 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4703 add_show_prefix_cmd.
4704 * ravenscar-thread.c (set_ravenscar_command)
4705 (show_ravenscar_command): Remove.
4706 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4707 add_show_prefix_cmd.
4708 * mips-tdep.c (show_mips_command, set_mips_command)
4709 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4710 add_show_prefix_cmd.
4711 * maint.c (maintenance_command, maintenance_info_command)
4712 (maintenance_check_command, maintenance_print_command)
4713 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4714 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4715 add_show_prefix_cmd.
4716 (show_per_command_cmd): Remove.
4717 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4718 Remove.
4719 (maintenance_show_test_settings_cmd): Remove.
4720 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4721 add_show_prefix_cmd.
4722 * maint-test-options.c (maintenance_test_options_command):
4723 Remove.
4724 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4725 * macrocmd.c (macro_command): Remove
4726 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4727 * language.c (set_check, show_check): Remove.
4728 (_initialize_language): Use add_basic_prefix_cmd,
4729 add_show_prefix_cmd.
4730 * infcmd.c (unset_command): Remove.
4731 (_initialize_infcmd): Use add_basic_prefix_cmd.
4732 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4733 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4734 add_show_prefix_cmd.
4735 * go32-nat.c (go32_info_dos_command): Remove.
4736 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4737 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4738 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4739 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4740 (_initialize_frame): Use add_basic_prefix_cmd,
4741 add_show_prefix_cmd.
4742 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4743 (_initialize_dcache): Use add_basic_prefix_cmd,
4744 add_show_prefix_cmd.
4745 * cp-support.c (maint_cplus_command): Remove.
4746 (_initialize_cp_support): Use add_basic_prefix_cmd.
4747 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4748 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4749 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4750 add_basic_prefix_cmd, add_show_prefix_cmd.
4751 * breakpoint.c (save_command): Remove.
4752 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4753 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4754 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4755 add_show_prefix_cmd.
4756 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4757 (set_ada_command, show_ada_command): Remove.
4758 (_initialize_ada_language): Use add_basic_prefix_cmd,
4759 add_show_prefix_cmd.
4760 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4761
3557f442
KR
47622020-04-16 Kamil Rytarowski <n54@gmx.com>
4763
4764 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4765 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4766
16197208
SM
47672020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4768
4769 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4770 warning messages.
4771
00ac85d3
SM
47722020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4773
4774 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4775 import table is not at beginning of .idata section.
4776
381ce63f
PA
47772020-04-16 Pedro Alves <palves@redhat.com>
4778
4779 * inferior.c (delete_inferior): Use delete operator directly
4780 instead of delete_program_space.
4781 * progspace.c (add_program_space): New, factored out from
4782 program_space::program_space.
4783 (remove_program_space): New, factored out from
4784 delete_program_space.
4785 (program_space::program_space): Remove intro comment. Rewrite.
4786 (program_space::~program_space): Remove intro comment. Call
4787 remove_program_space.
4788 (delete_program_space): Delete.
4789 * progspace.h (program_space::program_space): Make explicit. Move
4790 intro comment here, adjusted.
4791 (program_space::~program_space): Move intro comment here,
4792 adjusted.
4793 (delete_program_space): Remove.
4794
a010605f
TT
47952020-04-16 Tom Tromey <tromey@adacore.com>
4796
4797 * windows-nat.c (windows_nat::handle_access_violation): New
4798 function.
4799 * nat/windows-nat.h (handle_access_violation): Declare.
4800 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4801 windows-nat.c. Call handle_access_violation.
4802
efba5c23
TV
48032020-04-16 Tom de Vries <tdevries@suse.de>
4804
4805 PR symtab/25791
4806 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4807 CUs without psymtab.
4808
97ed802d
KB
48092020-04-16 Kevin Buettner <kevinb@redhat.com>
4810
4811 * python/python.c (do_start_initialization): Don't call
4812 PyEval_InitThreads for Python 3.9 and beyond.
4813
c7d64809
KR
48142020-04-15 Kamil Rytarowski <n54@gmx.com>
4815
4816 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4817 thread functions.
4818 (obsd_nat_target::wait): Likewise.
4819
ce127a96
TT
48202020-04-15 Tom Tromey <tromey@adacore.com>
4821
4822 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4823 (DEBUG_EXCEPT): Use debug_printf.
4824
99f1bc6a
AB
48252020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4826
4827 * completer.c (class completion_tracker::completion_hash_entry)
4828 <hash_name>: New member function.
4829 (completion_tracker::discard_completions): New callback to hash a
4830 completion_hash_entry, pass this to htab_create_alloc.
4831
a0e9b532
JT
48322016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4833
4834 * windows-nat.c (windows_make_so): Warn rather than stopping with
4835 an error if realpath() fails.
4836
06ca5dd4
KR
48372020-04-14 Kamil Rytarowski <n54@gmx.com>
4838
4839 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4840 (nbsd_nat_target::info_proc): Add do_status.
4841
194d088f
TV
48422020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4843 Tom de Vries <tdevries@suse.de>
4844
4845 PR symtab/25718
4846 * psympriv.h (struct partial_symtab::read_symtab)
4847 (struct partial_symtab::expand_psymtab)
4848 (struct partial_symtab::read_dependencies): Update comments.
4849 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4850 read_symtab for includer.
4851 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4852 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4853 (struct dwarf2_include_psymtab::m_readin): Remove.
4854 (struct dwarf2_include_psymtab::includer): New member function.
4855 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4856
c1a66c06
TV
48572020-04-14 Tom de Vries <tdevries@suse.de>
4858
4859 PR symtab/25720
4860 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4861 with NULL symbol_matcher and lookup_name.
4862 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4863 and lookup_name.
4864 * dwarf2/read.c (dw2_expand_symtabs_matching)
4865 (dw2_debug_names_expand_symtabs_matching): Same.
4866 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4867 Make lookup_name a pointer. Update comment.
4868 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4869 lookup_name being a pointer.
4870 * symfile.c (expand_symtabs_matching): Same.
4871 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4872 * linespec.c (iterate_over_all_matching_symtabs): Same.
4873
400b5eca
TT
48742020-04-13 Tom Tromey <tom@tromey.com>
4875
4876 * run-on-main-thread.c: Update include.
4877 * unittests/main-thread-selftests.c: Update include.
4878 * tui/tui-win.c: Update include.
4879 * tui/tui-io.c: Update include.
4880 * tui/tui-interp.c: Update include.
4881 * tui/tui-hooks.c: Update include.
4882 * top.h: Update include.
4883 * top.c: Update include.
4884 * ser-base.c: Update include.
4885 * remote.c: Update include.
4886 * remote-notif.c: Update include.
4887 * remote-fileio.c: Update include.
4888 * record-full.c: Update include.
4889 * record-btrace.c: Update include.
4890 * python/python.c: Update include.
4891 * posix-hdep.c: Update include.
4892 * mingw-hdep.c: Update include.
4893 * mi/mi-main.c: Update include.
4894 * mi/mi-interp.c: Update include.
4895 * main.c: Update include.
4896 * linux-nat.c: Update include.
4897 * interps.c: Update include.
4898 * infrun.c: Update include.
4899 * inf-loop.c: Update include.
4900 * event-top.c: Update include.
4901 * event-loop.c: Move to ../gdbsupport/.
4902 * event-loop.h: Move to ../gdbsupport/.
4903 * async-event.h: Update include.
4904 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4905
93b54c8e
TT
49062020-04-13 Tom Tromey <tom@tromey.com>
4907
4908 * tui/tui-win.c: Include async-event.h.
4909 * remote.c: Include async-event.h.
4910 * remote-notif.c: Include async-event.h.
4911 * record-full.c: Include async-event.h.
4912 * record-btrace.c: Include async-event.h.
4913 * infrun.c: Include async-event.h.
4914 * event-top.c: Include async-event.h.
4915 * event-loop.h: Move some declarations to async-event.h.
4916 * event-loop.c: Don't include ser-event.h or top.h. Move some
4917 code to async-event.c.
4918 * async-event.h: New file.
4919 * async-event.c: New file.
4920 * Makefile.in (COMMON_SFILES): Add async-event.c.
4921 (HFILES_NO_SRCDIR): Add async-event.h.
4922
c1cd3163
TT
49232020-04-13 Tom Tromey <tom@tromey.com>
4924
4925 * utils.c (flush_streams): New function.
4926 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4927
29f2bf4f
TT
49282020-04-13 Tom Tromey <tom@tromey.com>
4929
4930 * event-loop.c (handle_file_event): Use warning, not
4931 printf_unfiltered.
4932
98029d02
TT
49332020-04-13 Tom Tromey <tom@tromey.com>
4934
4935 * event-loop.c: Include <chrono>.
4936
06cc9596
TT
49372020-04-13 Tom Tromey <tom@tromey.com>
4938
4939 * gdb_select.h: Move to ../gdbsupport/.
4940 * event-loop.c: Update include path.
4941 * top.c: Update include path.
4942 * ser-base.c: Update include path.
4943 * ui-file.c: Update include path.
4944 * ser-tcp.c: Update include path.
4945 * guile/scm-ports.c: Update include path.
4946 * posix-hdep.c: Update include path.
4947 * ser-unix.c: Update include path.
4948 * gdb_usleep.c: Update include path.
4949 * mingw-hdep.c: Update include path.
4950 * inflow.c: Update include path.
4951 * infrun.c: Update include path.
4952 * event-top.c: Update include path.
4953
8ae8e197
TT
49542020-04-13 Tom Tromey <tom@tromey.com>
4955
4956 * configure: Rebuild.
4957 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
4958
58cf28e8
TT
49592020-04-13 Tom Tromey <tom@tromey.com>
4960
4961 * event-loop.h (start_event_loop): Don't declare.
4962 * event-loop.c (start_event_loop): Move...
4963 * main.c (start_event_loop): ...here. Now static.
4964
b7f999ae
SDJ
49652020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
4966
4967 * MAINTAINERS: Update my email address.
4968
1085dfd4
KR
49692020-04-12 Kamil Rytarowski <n54@gmx.com>
4970
4971 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
4972 IP_ALL.
4973
49d1d1f5
KR
49742020-04-12 Kamil Rytarowski <n54@gmx.com>
4975
4976 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 4977 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 4978
b4848d2a
KR
49792020-04-12 Kamil Rytarowski <n54@gmx.com>
4980
4981 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 4982 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 4983
51c133d5
KR
49842020-04-12 Kamil Rytarowski <n54@gmx.com>
4985
4986 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
4987
54b8cbd0
KR
49882020-04-11 Kamil Rytarowski <n54@gmx.com>
4989
4990 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
4991 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
4992 (nbsd_nat_target::info_proc): New functions.
4993 * nbsd-nat.c (kinfo_get_vmmap): New function.
4994 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
4995 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
4996 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
4997 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
4998 functions.
4999 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5000 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5001 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5002 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5003 (KINFO_VME_FLAG_GROWS_DOWN): New.
5004
cf83625d
AS
50052020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5006
5007 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5008 bit shift.
5009
0c4311ab
TT
50102020-04-10 Tom Tromey <tromey@adacore.com>
5011
5012 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5013
3e65b3e9
TT
50142020-04-10 Tom Tromey <tromey@adacore.com>
5015
5016 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5017 separate debug files.
5018
13302e95
HD
50192020-04-10 Hannes Domani <ssbssa@yahoo.de>
5020
5021 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5022 Move to...
5023 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5024 ... here.
5025 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5026 Check for STATUS_WX86_BREAKPOINT.
5027 (windows_nat_target::wait): Same.
5028
bdfc1e8a
TV
50292020-04-10 Tom de Vries <tdevries@suse.de>
5030
5031 PR cli/25808
5032 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5033
f4460aec
SM
50342020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5035
5036 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5037 (Write After Approval): Remove Tom de Vries.
5038
a25198bb
BE
50392020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5040
5041 revert partially:
5042 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5043
aac66a4c
SM
5044 * buildsym.c (record_line): Fix undefined behavior and preserve
5045 lines at eof.
a25198bb 5046
206c98a6
KR
50472020-04-09 Kamil Rytarowski <n54@gmx.com>
5048
5049 * auxv.h (svr4_auxv_parse): New.
5050 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5051 and generic_auxv_parse.
5052 (svr4_auxv_parse): Add.
5053 * obsd-tdep.c: Include "auxv.h".
5054 (obsd_auxv_parse): Remove.
5055 (obsd_init_abi): Remove comment.
5056 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5057 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5058 * nbsd-tdep.c: Include "auxv.h".
5059 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5060
71fbdbaf
TT
50612020-04-08 Tom Tromey <tromey@adacore.com>
5062
5063 * nat/windows-nat.h (last_wait_event): Don't declare.
5064 (wait_for_debug_event): Update comment.
5065 * nat/windows-nat.c (last_wait_event): Now static.
5066
2c1d95e8
TT
50672020-04-08 Tom Tromey <tromey@adacore.com>
5068
5069 * windows-nat.c (wait_for_debug_event): Move to
5070 nat/windows-nat.c.
5071 * nat/windows-nat.h (wait_for_debug_event): Declare.
5072 * nat/windows-nat.c (wait_for_debug_event): Move from
5073 windows-nat.c. No longer static.
5074
d2977bc4
TT
50752020-04-08 Tom Tromey <tromey@adacore.com>
5076
5077 * windows-nat.c (get_windows_debug_event): Use
5078 fetch_pending_stop.
5079 * nat/windows-nat.h (fetch_pending_stop): Declare.
5080 * nat/windows-nat.c (fetch_pending_stop): New function.
5081
e758e19c
TT
50822020-04-08 Tom Tromey <tromey@adacore.com>
5083
5084 * windows-nat.c (windows_continue): Use matching_pending_stop and
5085 continue_last_debug_event.
5086 * nat/windows-nat.h (matching_pending_stop)
5087 (continue_last_debug_event): Declare.
5088 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5089 (matching_pending_stop, continue_last_debug_event): New
5090 functions.
5091
8d30e395
TT
50922020-04-08 Tom Tromey <tromey@adacore.com>
5093
5094 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5095 (handle_exception_result): Move to nat/windows-nat.h.
5096 (DEBUG_EXCEPTION_SIMPLE): Remove.
5097 (windows_nat::handle_ms_vc_exception): New function.
5098 (handle_exception): Move to nat/windows-nat.c.
5099 (get_windows_debug_event): Update.
5100 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5101 nat/windows-nat.c.
5102 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5103 (handle_exception_result): Move from windows-nat.c.
5104 (handle_exception): Declare.
5105 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5106 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5107 windows-nat.c.
5108
29de418d
TT
51092020-04-08 Tom Tromey <tromey@adacore.com>
5110
5111 * windows-nat.c (exception_count, event_count): Remove.
5112 (handle_exception, get_windows_debug_event)
5113 (do_initial_windows_stuff): Update.
5114
a816ba18
TT
51152020-04-08 Tom Tromey <tromey@adacore.com>
5116
5117 * windows-nat.c (windows_nat::handle_load_dll)
5118 (windows_nat::handle_unload_dll): Rename. No longer static.
5119 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5120 Declare.
5121
a00caa12
TT
51222020-04-08 Tom Tromey <tromey@adacore.com>
5123
5124 * complaints.h (stop_whining): Declare at top-level.
5125 (complaint): Don't declare stop_whining.
5126
d41b524f
TT
51272020-04-08 Tom Tromey <tromey@adacore.com>
5128
5129 * windows-nat.c (windows_nat::handle_output_debug_string):
5130 Rename. No longer static.
5131 * nat/windows-nat.h (handle_output_debug_string): Declare.
5132
3c76026d
TT
51332020-04-08 Tom Tromey <tromey@adacore.com>
5134
5135 * windows-nat.c (current_process_handle, current_process_id)
5136 (main_thread_id, last_sig, current_event, last_wait_event)
5137 (current_windows_thread, desired_stop_thread_id, pending_stops)
5138 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5139 (display_selectors, fake_create_process)
5140 (get_windows_debug_event): Update.
5141 * nat/windows-nat.h (current_process_handle, current_process_id)
5142 (main_thread_id, last_sig, current_event, last_wait_event)
5143 (current_windows_thread, desired_stop_thread_id, pending_stops)
5144 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5145 * nat/windows-nat.c (current_process_handle, current_process_id)
5146 (main_thread_id, last_sig, current_event, last_wait_event)
5147 (current_windows_thread, desired_stop_thread_id, pending_stops)
5148 (siginfo_er): New globals. Move from windows-nat.c.
5149
9d8679cc
TT
51502020-04-08 Tom Tromey <tromey@adacore.com>
5151
5152 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5153 (handle_load_dll): Update.
5154 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5155
28688adf
TT
51562020-04-08 Tom Tromey <tromey@adacore.com>
5157
5158 * windows-nat.c (enum thread_disposition_type): Move to
5159 nat/windows-nat.h.
5160 (windows_nat::thread_rec): Rename from thread_rec. No longer
5161 static.
5162 (windows_add_thread, windows_nat_target::fetch_registers)
5163 (windows_nat_target::store_registers, handle_exception)
5164 (windows_nat_target::resume, get_windows_debug_event)
5165 (windows_nat_target::get_tib_address)
5166 (windows_nat_target::thread_name)
5167 (windows_nat_target::thread_alive): Update.
5168 * nat/windows-nat.h (enum thread_disposition_type): Move from
5169 windows-nat.c.
5170 (thread_rec): Declare.
5171
4834dad0
TT
51722020-04-08 Tom Tromey <tromey@adacore.com>
5173
5174 * windows-nat.c: Add "using namespace".
5175 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5176 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5177
65bafd5b
TT
51782020-04-08 Tom Tromey <tromey@adacore.com>
5179
5180 * nat/windows-nat.h (struct windows_thread_info): Declare
5181 destructor.
5182 * nat/windows-nat.c (~windows_thread_info): New.
5183
0a4afda3
TT
51842020-04-08 Tom Tromey <tromey@adacore.com>
5185
5186 PR gdb/22992
5187 * windows-nat.c (current_event): Update comment.
5188 (last_wait_event, desired_stop_thread_id): New globals.
5189 (struct pending_stop): New.
5190 (pending_stops): New global.
5191 (windows_nat_target) <stopped_by_sw_breakpoint>
5192 <supports_stopped_by_sw_breakpoint>: New methods.
5193 (windows_fetch_one_register): Add assertions. Adjust PC.
5194 (windows_continue): Handle pending stops. Suspend other threads
5195 when stepping. Use last_wait_event
5196 (wait_for_debug_event): New function.
5197 (get_windows_debug_event): Use wait_for_debug_event. Handle
5198 pending stops. Queue spurious stops.
5199 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5200 (windows_nat_target::kill): Use wait_for_debug_event.
5201 * nat/windows-nat.h (struct windows_thread_info)
5202 <stopped_at_software_breakpoint>: New field.
5203 * nat/windows-nat.c (windows_thread_info::resume): Clear
5204 stopped_at_software_breakpoint.
5205
8e61ebec
TT
52062020-04-08 Tom Tromey <tromey@adacore.com>
5207
5208 * windows-nat.c (enum thread_disposition_type): New.
5209 (thread_rec): Replace "get_context" parameter with "disposition";
5210 change type.
5211 (windows_add_thread, windows_nat_target::fetch_registers)
5212 (windows_nat_target::store_registers, handle_exception)
5213 (windows_nat_target::resume, get_windows_debug_event)
5214 (windows_nat_target::get_tib_address)
5215 (windows_nat_target::thread_name)
5216 (windows_nat_target::thread_alive): Update.
5217
98a03287
TT
52182020-04-08 Tom Tromey <tromey@adacore.com>
5219
5220 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5221 (windows_continue): Use windows_continue::resume.
5222 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5223 resume>: Declare new methods.
5224 * nat/windows-nat.c: New file.
5225 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5226
7c7411bc
TT
52272020-04-08 Tom Tromey <tromey@adacore.com>
5228
5229 * windows-nat.c (windows_add_thread, windows_delete_thread)
5230 (windows_nat_target::fetch_registers)
5231 (windows_nat_target::store_registers, fake_create_process)
5232 (windows_nat_target::resume, windows_nat_target::resume)
5233 (get_windows_debug_event, windows_nat_target::wait)
5234 (windows_nat_target::pid_to_str)
5235 (windows_nat_target::get_tib_address)
5236 (windows_nat_target::get_ada_task_ptid)
5237 (windows_nat_target::thread_name)
5238 (windows_nat_target::thread_alive): Use lwp, not tid.
5239
2950fdf7
TT
52402020-04-08 Tom Tromey <tromey@adacore.com>
5241
5242 * windows-nat.c (handle_exception)
5243 (windows_nat_target::thread_name): Update.
5244 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5245 <name>: Now unique_xmalloc_ptr.
5246
62fe396b
TT
52472020-04-08 Tom Tromey <tromey@adacore.com>
5248
5249 * windows-nat.c (thread_rec)
5250 (windows_nat_target::fetch_registers): Update.
5251 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5252 Update comment.
5253 <debug_registers_changed, reload_context>: Now bool.
5254
e9534bd2
TT
52552020-04-08 Tom Tromey <tromey@adacore.com>
5256
5257 * windows-nat.c (windows_add_thread): Use new.
5258 (windows_init_thread_list, windows_delete_thread): Use delete.
5259 (get_windows_debug_event): Update.
5260 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5261 destructor, and initializers.
5262
ae1f8880
TT
52632020-04-08 Tom Tromey <tromey@adacore.com>
5264
5265 * windows-nat.c (struct windows_thread_info): Remove.
5266 * nat/windows-nat.h: New file.
5267
55a1e039
TT
52682020-04-08 Tom Tromey <tromey@adacore.com>
5269
5270 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5271 (thread_rec, windows_add_thread, windows_delete_thread)
5272 (windows_continue): Update.
5273
93366324
TT
52742020-04-08 Tom Tromey <tromey@adacore.com>
5275
5276 * windows-nat.c (struct windows_thread_info): Remove typedef.
5277 (thread_head): Remove.
5278 (thread_list): New global.
5279 (thread_rec, windows_add_thread, windows_init_thread_list)
5280 (windows_delete_thread, windows_continue): Update.
5281
0f2265e2
SM
52822020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5283
5284 * windows-tdep.h (windows_init_abi): Add comment.
5285 (cygwin_init_abi): New declaration.
5286 * windows-tdep.c: Split signal enumeration in two, one for
5287 Windows and one for Cygwin.
5288 (windows_gdb_signal_to_target): Only deal with signal of the
5289 Windows OS ABI.
5290 (cygwin_gdb_signal_to_target): New function.
5291 (windows_init_abi): Rename to windows_init_abi_common, don't set
5292 gdb_signal_to_target gdbarch method. Add new new function with
5293 this name.
5294 (cygwin_init_abi): New function.
5295 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5296 comment. Don't call windows_init_abi.
5297 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5298 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5299 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5300 i386_windows_init_abi_common, don't call windows_init_abi. Add
5301 a new function of this name.
5302 (i386_cygwin_init_abi): New function.
5303 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5304 OS ABI Cygwin.
5305
3810f182
SM
53062020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5307
5308 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5309 parameter.c.
5310 (dwarf2_read_gdb_index): Update.
5311
063f8e80
KR
53122020-04-07 Kamil Rytarowski <n54@gmx.com>
5313
5314 * nbsd-tdep.c: Include "objfiles.h".
5315 (nbsd_skip_solib_resolver): New.
5316 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5317
85a9510c 53182020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5319
5320 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5321 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5322 with DW_LLE_base_addressx are being emitted in DWARFv5.
5323 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5324 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5325 unsigned integer.
5326
9fc3eaae 53272020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5328
5329 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5330 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5331 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5332 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5333 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5334 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5335 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5336
5337
41144253 53382020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5339
5340 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5341 (read_loclist_index): New function definition.
5342 (lookup_loclist_base): New function definition.
5343 (read_loclist_header): New function definition.
5344 (dwarf2_cu): Add loclist_base and loclist_header field.
5345 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5346 (read_full_die_1): Read the value of DW_AT_loclists_base.
5347 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5348 (read_attribute_value): Handle DW_FORM_loclistx.
5349 (skip_one_die): Handle DW_FORM_loclistx.
5350 (loclist_header): New structure declaration.
5351 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5352
9f4e76a4
SM
53532020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5354
5355 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5356 constructor. Remove `addr` parameter from other constructor and
5357 add `per_cu` parameter.
5358 * dwarf2/read.c (create_partial_symtab): Update.
5359
25c11aca
TV
53602020-04-07 Tom de Vries <tdevries@suse.de>
5361
5362 PR symtab/25796
5363 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5364 (partial_die_info::fixup): Inherit has_const_value.
5365
5707e24b
TV
53662020-04-07 Tom de Vries <tdevries@suse.de>
5367
5368 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5369 symbols without address.
5370
05f00e22
KR
53712020-04-06 Kamil Rytarowski <n54@gmx.com>
5372
5373 * nbsd-nat.h (struct thread_info): Add forward declaration.
5374 (nbsd_nat_target::thread_alive): Add.
5375 (nbsd_nat_target::thread_name): Likewise.
5376 (nbsd_nat_target::update_thread_list): Likewise.
5377 (update_thread_list::post_attach): Likewise.
5378 (post_attach::pid_to_str): Likewise.
5379 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5380 (nbsd_thread_lister): Add.
5381 (nbsd_nat_target::thread_alive): Likewise.
5382 (nbsd_nat_target::thread_name): Likewise.
5383 (nbsd_add_threads): Likewise.
5384 (update_thread_list::post_attach): Likewise.
5385 (nbsd_nat_target::update_thread_list): Likewise.
5386 (post_attach::pid_to_str): Likewise.
5387
6ee448cc
TT
53882020-04-06 Tom Tromey <tromey@adacore.com>
5389
5390 * ada-valprint.c (print_variant_part): Extract the variant field.
5391 (print_field_values): Use the field as the outer value when
5392 recursing.
5393
dea34e8c
TT
53942020-04-06 Tom Tromey <tromey@adacore.com>
5395
5396 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5397 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5398 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5399 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5400 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5401
93689ce9
TT
54022020-04-06 Tom Tromey <tromey@adacore.com>
5403
5404 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5405 TYPE_CODE_ERROR.
5406
79743962
KR
54072020-04-06 Kamil Rytarowski <n54@gmx.com>
5408
5409 * nbsd-tdep.c: Include "gdbarch.h".
5410 Define enum with NetBSD signal numbers.
5411 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5412 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5413 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5414 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5415 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5416 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5417 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5418 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5419 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5420 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5421 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5422 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5423
9e7c9a03
HD
54242020-04-03 Hannes Domani <ssbssa@yahoo.de>
5425
5426 PR gdb/25325
5427 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5428
d9e49b61
TT
54292020-04-03 Tom Tromey <tromey@adacore.com>
5430
5431 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5432 Read constant block.
5433
e0fc5c3f
SM
54342020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5435
5436 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5437 (gdb_bfd_get_full_section_contents): New declaration.
5438 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5439 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5440 gdb_bfd_get_full_section_contents.
5441
e2ff18a0
SM
54422020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5443
5444 * exec.c (build_section_table): Replace internal_error with
5445 gdb_assert.
5446 (section_table_xfer_memory_partial): Likewise.
5447 * mdebugread.c (parse_partial_symbols): Likewise.
5448 * psymtab.c (lookup_partial_symbol): Likewise.
5449 * utils.c (wrap_here): Likewise.
5450
0830d301
TT
54512020-04-02 Tom Tromey <tromey@adacore.com>
5452
5453 * f-lang.c (build_fortran_types): Use arch_type to initialize
5454 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5455
e7da7f8f
TT
54562020-04-02 Tom Tromey <tromey@adacore.com>
5457
5458 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5459 of attributes.
5460
c90d28ac
AB
54612020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5462 Bernd Edlinger <bernd.edlinger@hotmail.de>
5463 Tom Tromey <tromey@adacore.com>
5464
5465 * buildsym.c (buildsym_compunit::record_line): Remove
5466 deduplication code.
5467
1aa98955
TV
54682020-04-02 Tom de Vries <tdevries@suse.de>
5469
5470 PR ada/24671
5471 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5472
d3214198
TV
54732020-04-02 Tom de Vries <tdevries@suse.de>
5474
5475 * dwarf2/read.c (dwarf2_gdb_index_functions,
5476 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5477 NULL.
5478 * psymtab.c (psym_lookup_global_symbol_language): New function.
5479 (psym_functions): Init psym_lookup_global_symbol_language with
5480 psym_lookup_global_symbol_language.
5481 * symfile-debug.c (debug_sym_quick_functions): Init
5482 lookup_global_symbol_language with NULL.
5483 * symfile.c (set_initial_language): Remove fixme comment.
5484 * symfile.h (struct quick_symbol_functions): Add
5485 lookup_global_symbol_language.
5486 * symtab.c (find_quick_global_symbol_language): New function.
5487 (find_main_name): Use find_quick_global_symbol_language.
5488
2836752f
SM
54892020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5490
5491 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5492
64dc2d4b
BE
54932020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5494
5495 * buildsym.c (record_line): Fix undefined behavior and preserve
5496 lines at eof.
5497
bbe3dc41
BE
54982020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5499
5500 * buildsym.c (record_line): Fix the resizing condition.
5501
6b4a335b
TT
55022020-04-01 Tom Tromey <tom@tromey.com>
5503
5504 * value.h (value_literal_complex): Add comment.
5505 * valops.c (value_literal_complex): Refer to value.h.
5506
3638a098
TT
55072020-04-01 Tom Tromey <tom@tromey.com>
5508
5509 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5510 (scalar_type): New rule, from typebase.
5511 (typebase): Use scalar_type. Recognize complex types.
5512 (field_name): Handle FLOAT_KEYWORD.
5513 (ident_tokens): Add _Complex and __complex__.
5514
c34e8714
TT
55152020-04-01 Tom Tromey <tom@tromey.com>
5516
5517 PR exp/25299:
5518 * valarith.c (promotion_type, complex_binop): New functions.
5519 (scalar_binop): Handle complex numbers. Use promotion_type.
5520 (value_pos, value_neg, value_complement): Handle complex numbers.
5521
fa649bb7
TT
55222020-04-01 Tom Tromey <tom@tromey.com>
5523
5524 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5525 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5526 (parse_number): Handle complex numbers.
5527
981c08ce
TT
55282020-04-01 Tom Tromey <tom@tromey.com>
5529
5530 * c-valprint.c (c_decorations): Change complex suffix to "i".
5531
4c99290d
TT
55322020-04-01 Tom Tromey <tom@tromey.com>
5533
5534 * valprint.c (generic_value_print_complex): Use accessors.
5535 * value.h (value_real_part, value_imaginary_part): Declare.
5536 * valops.c (value_real_part, value_imaginary_part): New
5537 functions.
5538 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5539
5b930b45
TT
55402020-04-01 Tom Tromey <tom@tromey.com>
5541
5542 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5543 (read_range_type): Update.
5544 * mdebugread.c (basic_type): Update.
5545 * go-lang.c (build_go_types): Use init_complex_type.
5546 * gdbtypes.h (struct main_type) <complex_type>: New member.
5547 (init_complex_type): Update.
5548 (arch_complex_type): Don't declare.
5549 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5550 Make name if none given. Use alloc_type_copy. Look for cached
5551 complex type.
5552 (arch_complex_type): Remove.
5553 (gdbtypes_post_init): Use init_complex_type.
5554 * f-lang.c (build_fortran_types): Use init_complex_type.
5555 * dwarf2/read.c (read_base_type): Update.
5556 * d-lang.c (build_d_types): Use init_complex_type.
5557 * ctfread.c (read_base_type): Update.
5558
53cccef1
TBA
55592020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5560
5561 * infrun.c (stop_all_threads): Update assertion, plus when
5562 stopping threads, take into account that we might be trying
5563 to stop an all-stop target.
5564 (stop_waiting): Call 'stop_all_threads' if there exists a
5565 non-stop target.
5566
a0714d30
TBA
55672020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5568
5569 * target.h (exists_non_stop_target): New function declaration.
5570 * target.c (exists_non_stop_target): New function.
5571
60e22c1e
HD
55722020-04-01 Hannes Domani <ssbssa@yahoo.de>
5573
5574 PR gdb/24789
5575 * eval.c (is_integral_or_integral_reference): New function.
5576 (evaluate_subexp_standard): Allow integer references in
5577 pointer arithmetic.
5578
e139a727
TBA
55792020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5580
5581 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5582 check for no ptid in the stop reply when the target is non-stop.
5583
e0802d59
TT
55842020-04-01 Tom Tromey <tromey@adacore.com>
5585
5586 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5587 "name" parameter to rvalue reference. Initialize m_name_holder.
5588 <lookup_name_info>: New overloads.
5589 <name>: Return gdb::string_view.
5590 <c_str>: New method.
5591 <make_ignore_params>: Update.
5592 <search_name_hash>: Update.
5593 <language_lookup_name>: Return const char *.
5594 <m_name>: Change type.
5595 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5596 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5597 (lookup_name_info::match_any): Update.
5598 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5599 Update.
5600 * minsyms.c (linkage_name_str): Update.
5601 * language.c (default_symbol_name_matcher): Update.
5602 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5603 Update.
5604 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5605 (ada_lookup_name_info::ada_lookup_name_info): Update.
5606 (literal_symbol_name_matcher): Update.
5607
8c072cb6
TT
56082020-04-01 Tom Tromey <tromey@adacore.com>
5609
5610 * psymtab.c (psymtab_search_name): Remove function.
5611 (psym_lookup_symbol): Create search name and lookup name here.
5612 (lookup_partial_symbol): Remove "name" parameter; add
5613 lookup_name.
5614 (psym_expand_symtabs_for_function): Update.
5615
6f29a534
TT
56162020-03-31 Joel Jones <joelkevinjones@gmail.com>
5617
5618 PR tui/25597:
5619 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5620
af62665e
TT
56212020-03-31 Tom Tromey <tromey@adacore.com>
5622
5623 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5624 memcpy.
5625
d1a89da5
NC
56262020-03-30 Nelson Chu <nelson.chu@sifive.com>
5627
5628 * features/riscv/32bit-csr.xml: Regenerated.
5629 * features/riscv/64bit-csr.xml: Regenerated.
5630
d8af9068
TT
56312020-03-30 Tom Tromey <tromey@adacore.com>
5632
5633 * ada-valprint.c (print_variant_part): Update.
5634 * ada-lang.h (ada_which_variant_applies): Update.
5635 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5636 outer_valaddr parameters; replace with "outer" value parameter.
5637 (to_fixed_variant_branch_type): Update.
5638
227c0bf4
PFC
56392020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5640
5641 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5642 <list>. Remove inclusion of observable.h.
5643 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5644 (struct arch_lwp_info): New struct.
5645 (class ppc_linux_dreg_interface): New class.
5646 (struct ppc_linux_process_info): New struct.
5647 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5648 <low_new_clone, low_forget_process, low_prepare_to_resume>
5649 <copy_thread_dreg_state, mark_thread_stale>
5650 <mark_debug_registers_changed, register_hw_breakpoint>
5651 <clear_hw_breakpoint, register_wp, clear_wp>
5652 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5653 <num_memory_accesses, get_trigger_type>
5654 <create_watchpoint_request, hwdebug_point_cmp>
5655 <init_arch_lwp_info, get_arch_lwp_info>
5656 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5657 methods.
5658 <struct ptid_hash>: New inner struct.
5659 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5660 members.
5661 (saved_dabr_value, hwdebug_info, max_slots_number)
5662 (struct hw_break_tuple, struct thread_points, ppc_threads)
5663 (have_ptrace_hwdebug_interface)
5664 (hwdebug_find_thread_points_by_tid)
5665 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5666 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5667 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5668 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5669 use m_dreg_interface.
5670 (hwdebug_point_cmp): Change to...
5671 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5672 reference arguments instead of pointers.
5673 (ppc_linux_nat_target::ranged_break_num_registers): Use
5674 m_dreg_interface.
5675 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5676 m_dreg_interface. Call register_hw_breakpoint.
5677 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5678 m_dreg_interface. Call clear_hw_breakpoint.
5679 (get_trigger_type): Change to...
5680 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5681 comment.
5682 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5683 use m_dreg_interface. Call register_hw_breakpoint.
5684 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5685 use m_dreg_interface. Call clear_hw_breakpoint.
5686 (can_use_watchpoint_cond_accel): Change to...
5687 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5688 method. Update comment, use m_dreg_interface and
5689 m_process_info.
5690 (calculate_dvc): Change to...
5691 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5692 m_dreg_interface.
5693 (num_memory_accesses): Change to...
5694 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5695 (check_condition): Change to...
5696 (ppc_linux_nat_target::check_condition): ...this method.
5697 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5698 comment, use m_dreg_interface.
5699 (create_watchpoint_request): Change to...
5700 (ppc_linux_nat_target::create_watchpoint_request): ...this
5701 method. Use m_dreg_interface.
5702 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5703 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5704 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5705 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5706 (ppc_linux_nat_target::low_forget_process)
5707 (ppc_linux_nat_target::low_new_fork)
5708 (ppc_linux_nat_target::low_new_clone)
5709 (ppc_linux_nat_target::low_delete_thread)
5710 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5711 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5712 only call mark_thread_stale.
5713 (ppc_linux_thread_exit): Remove.
5714 (ppc_linux_nat_target::stopped_data_address): Change to...
5715 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5716 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5717 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5718 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5719 comment. Call low_stopped_data_address.
5720 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5721 m_dreg_interface.
5722 (ppc_linux_nat_target::masked_watch_num_registers): Use
5723 m_dreg_interface.
5724 (ppc_linux_nat_target::copy_thread_dreg_state)
5725 (ppc_linux_nat_target::mark_thread_stale)
5726 (ppc_linux_nat_target::mark_debug_registers_changed)
5727 (ppc_linux_nat_target::register_hw_breakpoint)
5728 (ppc_linux_nat_target::clear_hw_breakpoint)
5729 (ppc_linux_nat_target::register_wp)
5730 (ppc_linux_nat_target::clear_wp)
5731 (ppc_linux_nat_target::init_arch_lwp_info)
5732 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5733 (_initialize_ppc_linux_nat): Remove observer callback.
5734
4db10d8f
PFC
57352020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5736
5737 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5738 (ppc_linux_nat_target::auxv_parse)
5739 (ppc_linux_nat_target::read_description)
5740 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5741 Move up.
5742
1310c1b0
PFC
57432020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5744
5745 * linux-nat.h (low_new_clone): New method.
5746 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5747
69b037c3
SM
57482020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5749
5750 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5751 (dbx_expand_psymtab): ... this.
5752 (start_psymtab): Update.
5753 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5754 (mdebug_expand_psymtab): ... this.
5755 (parse_partial_symbols): Update.
5756 (new_psymtab): Update.
5757 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5758 (xcoff_expand_psymtab): ... this.
5759 (xcoff_start_psymtab): Update.
5760
48993951
SM
57612020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5762
5763 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5764 <expand_dependencies>: ... this.
5765 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5766 (partial_symtab::expand_dependencies): ... this.
5767 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5768 Update.
5769 (dwarf2_psymtab::expand_psymtab): Update.
5770 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5771 * mdebugread.c (psymtab_to_symtab_1): Update.
5772 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5773
3ad83046
SM
57742020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5775
5776 * psympriv.h (discard_psymtab): Remove.
5777 * dbxread.c (dbx_end_psymtab): Update.
5778 * xcoffread.c (xcoff_end_psymtab): Update.
5779
4d1b9ab6
TT
57802020-03-28 Tom Tromey <tom@tromey.com>
5781
5782 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5783 comment.
5784
f1749218
TT
57852020-03-28 Tom Tromey <tom@tromey.com>
5786
5787 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5788
ebea7626
HD
57892020-03-27 Hannes Domani <ssbssa@yahoo.de>
5790
5791 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5792
a879b4d5
JB
57932020-03-26 John Baldwin <jhb@FreeBSD.org>
5794
5795 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5796
0826b30a
TT
57972020-03-26 Tom Tromey <tom@tromey.com>
5798
5799 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5800 (mark_common_block_symbol_computed, read_tag_string_type)
5801 (attr_to_dynamic_prop, read_subrange_type): Update.
5802 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5803 to be methods on struct attribute.
5804 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5805 (read_call_site_scope, partial_die_info::read)
5806 (partial_die_info::read, lookup_die_type, follow_die_ref):
5807 Update.
5808 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5809 from dwarf2_get_ref_die_offset.
5810 (attribute::constant_value): New method, from
5811 dwarf2_get_attr_constant_value.
5812 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5813 Declare method.
5814 <constant_value>: New method.
5815
2b2558bf
TT
58162020-03-26 Tom Tromey <tom@tromey.com>
5817
5818 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5819 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5820 (dwarf_type_encoding_name): Move to stringify.c.
5821 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5822 * dwarf2/stringify.c: New file.
5823 * dwarf2/stringify.h: New file.
5824
eeb64781
TT
58252020-03-26 Tom Tromey <tom@tromey.com>
5826
5827 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5828 Rewrite.
5829
a39fdb41
TT
58302020-03-26 Tom Tromey <tom@tromey.com>
5831
5832 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5833 methods.
5834 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5835 (lookup_ranges_base): Likewise.
5836 (read_cutu_die_from_dwo, read_full_die_1): Update.
5837
436c571c
TT
58382020-03-26 Tom Tromey <tom@tromey.com>
5839
5840 * dwarf2/read.c (read_import_statement, read_file_scope)
5841 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5842 (read_lexical_block_scope, read_call_site_scope)
5843 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5844 (handle_struct_member_die, process_structure_scope)
5845 (update_enumeration_type_from_children)
5846 (process_enumeration_scope, read_array_type, read_common_block)
5847 (read_namespace, read_module, read_subroutine_type): Update.
5848 (sibling_die): Remove.
5849
052c8bb8
TT
58502020-03-26 Tom Tromey <tom@tromey.com>
5851
5852 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5853 (build_type_psymtabs_reader, read_structure_type)
5854 (read_enumeration_type, read_full_die_1): Update.
5855 (dwarf2_attr_no_follow): Move to die.h.
5856 * dwarf2/die.h (struct die_info) <attr>: New method.
5857
2b24b6e4
TT
58582020-03-26 Tom Tromey <tom@tromey.com>
5859
5860 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5861 <base_address>: Now an optional.
5862 (dwarf2_find_base_address, dwarf2_rnglists_process)
5863 (dwarf2_ranges_process, fill_in_loclist_baton)
5864 (dwarf2_symbol_mark_computed): Update.
5865
c2d50fd0
TT
58662020-03-26 Tom Tromey <tom@tromey.com>
5867
5868 * dwarf2/read.c (struct die_info): Move to die.h.
5869 * dwarf2/die.h: New file.
5870
0df7ad3a
TT
58712020-03-26 Tom Tromey <tom@tromey.com>
5872
5873 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5874 * dwarf2/read.c
5875 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5876 Move to line-header.c.
5877 (read_checked_initial_length_and_offset, read_formatted_entries):
5878 Likewise.
5879 (dwarf_decode_line_header): Split into two.
5880 * dwarf2/line-header.c
5881 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5882 Move from read.c.
5883 (read_checked_initial_length_and_offset, read_formatted_entries):
5884 Likewise.
5885 (dwarf_decode_line_header): New function, split from read.c.
5886
86c0bb4c
TT
58872020-03-26 Tom Tromey <tom@tromey.com>
5888
5889 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5890 Declare method.
5891 * dwarf2/read.c (read_attribute_value): Update.
5892 (dwarf2_per_objfile::read_line_string): Rename from
5893 read_indirect_line_string.
5894 (read_formatted_entries): Update.
5895
2ef46c2f
TT
58962020-03-26 Tom Tromey <tom@tromey.com>
5897
5898 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5899 variable.
5900
4f9c1eda
TT
59012020-03-26 Tom Tromey <tom@tromey.com>
5902
5903 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5904 const.
5905 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5906 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5907 parameter const.
5908
5a0e026f
TT
59092020-03-26 Tom Tromey <tom@tromey.com>
5910
5911 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5912 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5913 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5914 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5915
8844c11b
TT
59162020-03-26 Tom Tromey <tom@tromey.com>
5917
5918 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5919 file_names_size, file_full_name, file_file_name>: Use const.
5920 <file_name_at, file_names>: Add const overload.
5921 * dwarf2/line-header.c (line_header::file_file_name)
5922 (line_header::file_full_name): Update.
5923
c90ec28a
TT
59242020-03-26 Tom Tromey <tom@tromey.com>
5925
5926 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5927 (macro_start_file, consume_improper_spaces)
5928 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5929 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5930 (dwarf_decode_macros): Move to macro.c.
5931 * dwarf2/macro.c: New file.
5932 * dwarf2/macro.h: New file.
5933 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5934
4f44ae6c
TT
59352020-03-26 Tom Tromey <tom@tromey.com>
5936
5937 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5938 method.
5939 * dwarf2/section.c: New method. From
5940 read_indirect_string_at_offset_from.
5941 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5942 (read_indirect_string_at_offset_from): Move to section.c.
5943 (read_indirect_string_at_offset): Rewrite.
5944 (read_indirect_line_string_at_offset): Remove.
5945 (read_indirect_string, read_indirect_line_string)
5946 (dwarf_decode_macro_bytes): Update.
5947
a0194fa8
TT
59482020-03-26 Tom Tromey <tom@tromey.com>
5949
5950 * dwarf2/section.h (struct dwarf2_section_info)
5951 <overload_complaint>: Declare.
5952 (dwarf2_section_buffer_overflow_complaint): Don't declare.
5953 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
5954 Rename from dwarf2_section_buffer_overflow_complaint.
5955 * dwarf2/read.c (skip_one_die, partial_die_info::read)
5956 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
5957
3d27bbdb
TT
59582020-03-26 Tom Tromey <tom@tromey.com>
5959
5960 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
5961 Declare.
5962 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
5963 Move from read.c.
5964 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
5965 to section.c.
5966
9eac9650
TT
59672020-03-26 Tom Tromey <tom@tromey.com>
5968
5969 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
5970
bf80d710
TT
59712020-03-26 Tom Tromey <tom@tromey.com>
5972
5973 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
5974 "builder".
5975 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
5976 parameter.
5977 (dwarf_decode_macros): Update.
5978
0314b390
TT
59792020-03-26 Tom Tromey <tom@tromey.com>
5980
5981 * dwarf2/read.c (read_attribute_value): Update.
5982 (read_indirect_string_from_dwz): Move to dwz.c; change into
5983 method.
5984 (dwarf_decode_macro_bytes): Update.
5985 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
5986 * dwarf2/dwz.c: New file.
5987 * Makefile.in (COMMON_SFILES): Add dwz.c.
5988
9fda78b6
TT
59892020-03-26 Tom Tromey <tom@tromey.com>
5990
5991 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
5992 * dwarf2/read.c: Add include.
5993 * dwarf2/index-write.c: Add include.
5994 * dwarf2/index-cache.c: Add include.
5995 * dwarf2/dwz.h: New file.
5996
33aa3c10
TT
59972020-03-25 Tom Tromey <tom@tromey.com>
5998
5999 * compile/compile-object-load.c (get_out_value_type): Mention
6000 correct symbol name in error message.
6001
d503b685
HD
60022020-03-25 Hannes Domani <ssbssa@yahoo.de>
6003
6004 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6005
7b1eff95
TV
60062020-03-25 Tom de Vries <tdevries@suse.de>
6007
6008 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6009 * symmisc.c (dump_symtab_1): Print user and includes fields.
6010 (maintenance_info_symtabs): Same.
6011
dd895392
AB
60122020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6013
6014 PR gdb/25534
6015 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6016 (riscv_regcache_cooked_write): New function.
6017 (riscv_push_dummy_call): Use new function.
6018 (riscv_return_value): Likewise.
6019
5ab2fbf1
SM
60202020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6021
6022 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6023 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6024 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6025 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6026 * infrun.c (follow_fork): Likewise.
6027 (follow_fork_inferior): Likewise.
6028 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6029 * linux-nat.h (class linux_nat_target): Likewise.
6030 * remote.c (class remote_target) <follow_fork>: Likewise.
6031 (remote_target::follow_fork): Likewise.
6032 * target-delegates.c: Re-generate.
6033 * target.c (default_follow_fork): Likewise.
6034 (target_follow_fork): Likewise.
6035 * target.h (struct target_ops) <follow_fork>: Likewise.
6036 (target_follow_fork): Likewise.
6037
a64fafb5
TV
60382020-03-24 Tom de Vries <tdevries@suse.de>
6039
6040 * psymtab.c (maintenance_info_psymtabs): Print user field.
6041
fe26d3a3
TT
60422020-03-20 Tom Tromey <tromey@adacore.com>
6043
6044 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6045 const.
6046 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6047 const.
6048
c884cc46
SM
60492020-03-20 Simon Marchi <simon.marchi@efficios.com>
6050
6051 * ptrace.m4: Don't check for ptrace declaration.
6052 * config.in: Re-generate.
6053 * configure: Re-generate.
6054 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6055 not defined.
6056
1ff700c2
KR
60572020-03-20 Kamil Rytarowski <n54@gmx.com>
6058
6059 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6060 `PTRACE_TYPE_RET'.
6061 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6062 * sparc-nat.c (gdb_ptrace): Likewise.
6063 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6064
f7d4f0b1
TT
60652020-03-20 Tom Tromey <tromey@adacore.com>
6066
6067 * c-exp.y (lex_one_token): Fix assert.
6068
f67210ff
TT
60692020-03-20 Tom Tromey <tromey@adacore.com>
6070
6071 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6072 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6073 strncpy call.
6074
1773be9e
TT
60752020-03-20 Tom Tromey <tromey@adacore.com>
6076
6077 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6078
70304be9
TT
60792020-03-20 Tom Tromey <tromey@adacore.com>
6080
6081 * ada-valprint.c (print_variant_part): Remove parameters; switch
6082 to value-based API.
6083 (print_field_values): Likewise.
6084 (ada_val_print_struct_union): Likewise.
6085 (ada_value_print_1): Update.
6086
9faa006d
KR
60872020-03-20 Kamil Rytarowski <n54@gmx.com>
6088
6089 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6090 nbsd_nat_target instead of inf_ptrace_target.
6091 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6092 nbsd_nat_target.
6093
4a90f062
KR
60942020-03-20 Kamil Rytarowski <n54@gmx.com>
6095
6096 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6097 it to the ptrace call.
6098 * (store_registers): Likewise.
6099
61002020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6101
6102 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6103 it to the ptrace call.
6104 * (store_registers): Likewise.
6105
2d07da27
LM
61062020-03-19 Luis Machado <luis.machado@linaro.org>
6107
6108 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6109 valid, fetch vg value from ptrace.
6110
f09db380
KR
61112020-03-19 Kamil Rytarowski <n54@gmx.com>
6112 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6113 * inf-ptrace.c: Likewise.
6114 * (gdb_ptrace): Add.
6115 * (inf_ptrace_target::resume): Update.
6116 * (inf_ptrace_target::xfer_partial): Likewise.
6117 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6118 * (inf_ptrace_peek_poke): Update.
6119
fcc7376e
KR
61202020-03-19 Kamil Rytarowski <n54@gmx.com>
6121
6122 * x86-bsd-nat.c (gdb_ptrace): New.
6123 * (x86bsd_dr_set): Add new argument `ptid'.
6124 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6125 x86bsd_dr_set_addr): Update.
6126
cada5fc9
AB
61272020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6128
6129 * remote.c (remote_target::process_stop_reply): Handle events for
6130 all threads differently.
6131
19a2740f
AB
61322020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6133
6134 * completer.c (completion_tracker::remove_completion): Define new
6135 function.
6136 * completer.h (completion_tracker::remove_completion): Declare new
6137 function.
6138 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6139 when adding a C++ function symbol.
6140
724fd9ba
AB
61412020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6142
6143 * completer.c (completion_tracker::completion_hash_entry): Define
6144 new class.
6145 (advance_to_filename_complete_word_point): Call
6146 recompute_lowest_common_denominator.
6147 (completion_tracker::completion_tracker): Call discard_completions
6148 to setup the hash table.
6149 (completion_tracker::discard_completions): Allow for being called
6150 from the constructor, pass new equal function, and element deleter
6151 when constructing the hash table. Initialise new class member
6152 variables.
6153 (completion_tracker::maybe_add_completion): Remove use of
6154 m_entries_vec, and store more information into m_entries_hash.
6155 (completion_tracker::recompute_lcd_visitor): New function, most
6156 content taken from...
6157 (completion_tracker::recompute_lowest_common_denominator):
6158 ...here, this now just visits each item in the hash calling the
6159 above visitor.
6160 (completion_tracker::build_completion_result): Remove use of
6161 m_entries_vec, call recompute_lowest_common_denominator.
6162 * completer.h (completion_tracker::have_completions): Remove use
6163 of m_entries_vec.
6164 (completion_tracker::completion_hash_entry): Declare new class.
6165 (completion_tracker::recompute_lowest_common_denominator): Change
6166 function signature.
6167 (completion_tracker::recompute_lcd_visitor): Declare new function.
6168 (completion_tracker::m_entries_vec): Delete.
6169 (completion_tracker::m_entries_hash): Initialize to NULL.
6170 (completion_tracker::m_lowest_common_denominator_valid): New
6171 member variable.
6172 (completion_tracker::m_lowest_common_denominator_max_length): New
6173 member variable.
6174
5a82b8a1
KR
61752020-03-17 Kamil Rytarowski <n54@gmx.com>
6176
6177 * regformats/regdef.h: Put reg in gdb namespace.
6178
fb516a69
KR
61792020-03-17 Kamil Rytarowski <n54@gmx.com>
6180
6181 * i386-bsd-nat.c (gdb_ptrace): New.
6182 * (i386bsd_fetch_inferior_registers,
6183 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6184 * (i386bsd_fetch_inferior_registers,
6185 i386bsd_store_inferior_registers) Use gdb_ptrace.
6186
1c0aa1fb
KR
61872020-03-17 Kamil Rytarowski <n54@gmx.com>
6188
6189 * amd64-bsd-nat.c (gdb_ptrace): New.
6190 * (amd64bsd_fetch_inferior_registers,
6191 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6192 * (amd64bsd_fetch_inferior_registers,
6193 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6194
5ccd2fb7
KR
61952020-03-17 Kamil Rytarowski <n54@gmx.com>
6196
6197 * user-regs.c (user_reg::read): Rename to...
6198 (user_reg::xread): ...this.
6199 * (append_user_reg): Rename argument `read' to `xread'.
6200 * (user_reg_add_builtin): Likewise.
6201 * (user_reg_add): Likewise.
6202 * (value_of_user_reg): Likewise.
6203
2108a63a
KR
62042020-03-17 Kamil Rytarowski <n54@gmx.com>
6205
6206 * sparc-nat.c (gdb_ptrace): New.
6207 * sparc-nat.c (sparc_fetch_inferior_registers)
6208 (sparc_store_inferior_registers) Remove obsolete comment.
6209 * sparc-nat.c (sparc_fetch_inferior_registers)
6210 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6211 * sparc-nat.c (sparc_fetch_inferior_registers)
6212 (sparc_store_inferior_registers) Use gdb_ptrace.
6213
a225c9a8
KR
62142020-03-17 Kamil Rytarowski <n54@gmx.com>
6215
6216 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6217 it to the ptrace call.
6218 * sh-nbsd-nat.c (store_registers): Likewise.
6219
98097623
KR
62202020-03-17 Kamil Rytarowski <n54@gmx.com>
6221
6222 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6223 nbsd_nat_target instead of inf_ptrace_target.
6224 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6225 nbsd_nat_target.
6226
9e38d619
KR
62272020-03-17 Kamil Rytarowski <n54@gmx.com>
6228
6229 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6230
a2ecbe9f
KR
62312020-03-17 Kamil Rytarowski <n54@gmx.com>
6232
6233 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6234 <sys/sysctl.h>.
6235 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6236
58990295
TV
62372020-03-17 Tom de Vries <tdevries@suse.de>
6238
6239 PR gdb/23710
6240 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6241 fields.
6242 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6243 fields.
6244 (process_imported_unit_die): Skip import of c++ CUs.
6245
771dd3a8
TT
62462020-03-16 Tom Tromey <tom@tromey.com>
6247
6248 * p-valprint.c (pascal_object_print_value): Initialize
6249 base_value.
6250
817a7585
AK
62512020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6252 Shahab Vahedi <shahab@synopsys.com>
6253
6254 * Makefile.in: Add arch/arc.o
6255 * configure.tgt: Likewise.
6256 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6257 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6258 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6259 * arc-tdep.h (arc_read_description): Add proto type.
6260 * arch/arc.c: New file.
6261 * arch/arc.h: Likewise.
6262 * features/Makefile: Replace old target descriptions with new.
6263 * features/arc-arcompact.c: Remove.
6264 * features/arc-arcompact.xml: Likewise.
6265 * features/arc-v2.c: Likewise
6266 * features/arc-v2.xml: Likewise
6267 * features/arc/aux-arcompact.xml: New file.
6268 * features/arc/aux-v2.xml: Likewise.
6269 * features/arc/core-arcompact.xml: Likewise.
6270 * features/arc/core-v2.xml: Likewise.
6271 * features/arc/aux-arcompact.c: Generate.
6272 * features/arc/aux-v2.c: Likewise.
6273 * features/arc/core-arcompact.c: Likewise.
6274 * features/arc/core-v2.c: Likewise.
6275 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6276
67430cd0
TT
62772020-03-16 Tom Tromey <tromey@adacore.com>
6278
6279 PR gdb/25663:
6280 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6281 putting value into bcache.
6282
30efb6c7
SM
62832020-03-16 Simon Marchi <simon.marchi@efficios.com>
6284
6285 PR gdb/21500
6286 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6287 to...
6288 (amd64_windows_init_abi_common): ... this. Don't set size of
6289 long type.
6290 (amd64_windows_init_abi): New function.
6291 (amd64_cygwin_init_abi): New function.
6292 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6293 the Cygwin OS ABI.
6294 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6295 comment.
6296
8db52437
SM
62972020-03-16 Simon Marchi <simon.marchi@efficios.com>
6298
6299 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6300 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6301 (pe_import_directory_entry): New struct type.
6302 (is_linked_with_cygwin_dll): New function.
6303 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6304 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6305 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6306
5982a56a
SM
63072020-03-16 Simon Marchi <simon.marchi@efficios.com>
6308
6309 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6310 i386_cygwin_core_osabi_sniffer.
6311
7a1998df
SM
63122020-03-16 Simon Marchi <simon.marchi@efficios.com>
6313
6314 * i386-cygwin-tdep.c: Rename to...
6315 * i386-windows-tdep.c: ... this.
6316 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6317 i386-windows-tdep.c.
6318 * configure.tgt: Likewise.
6319
053205cc
SM
63202020-03-16 Simon Marchi <simon.marchi@efficios.com>
6321
6322 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6323 * osabi.c (gdb_osabi_names): Add "Windows".
6324 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6325 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6326 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6327 i386_cygwin_osabi_sniffer.
6328 (_initialize_i386_cygwin_tdep): Register OS ABI
6329 GDB_OSABI_WINDOWS for i386.
6330 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6331 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6332 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6333 for x86-64.
6334 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6335 when the target matches '*-*-mingw*'.
6336
fe4b2ee6
SM
63372020-03-16 Simon Marchi <simon.marchi@efficios.com>
6338
6339 * defs.h (enum gdb_osabi): Move to...
6340 * osabi.h (enum gdb_osabi): ... here.
6341 * gdbarch.sh: Include osabi.h in gdbarch.h.
6342 * gdbarch.h: Re-generate.
6343
cb9b645d
SM
63442020-03-16 Simon Marchi <simon.marchi@efficios.com>
6345
6346 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6347 function.
6348 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6349
3293bbaf
TT
63502020-03-14 Tom Tromey <tom@tromey.com>
6351
6352 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6353 for C++.
6354 (c_type_print_modifier): Likewise. Add "language" parameter.
6355 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6356 (c_type_print_base_1): Update.
6357 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6358 constants.
6359 * type-stack.c (type_stack::insert): Handle tp_atomic and
6360 tp_restrict.
6361 (type_stack::follow_type_instance_flags): Likewise.
6362 (type_stack::follow_types): Likewise. Merge type-following code.
6363 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6364 (space_identifier, cv_with_space_id)
6365 (const_or_volatile_or_space_identifier_noopt)
6366 (const_or_volatile_or_space_identifier): Remove.
6367 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6368 rules.
6369 (ptr_operator, typebase): Update.
6370 (enum token_flag) <FLAG_C>: New constant.
6371 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6372 "_Atomic".
6373 (lex_one_token): Handle FLAG_C.
6374
154151a6
KR
63752020-03-14 Kamil Rytarowski <n54@gmx.com>
6376
6377 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6378 it to the ptrace call.
6379 * m68k-bsd-nat.c (store_registers): Likewise.
6380
bc107784
KR
63812020-03-14 Kamil Rytarowski <n54@gmx.com>
6382
6383 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6384 gdb_byte *.
6385 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6386 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6387 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6388
01a80117
KR
63892020-03-14 Kamil Rytarowski <n54@gmx.com>
6390
6391 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6392 nbsd_nat_target instead of inf_ptrace_target.
6393 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6394 nbsd_nat_target.
6395
f90280ca
KR
63962020-03-14 Kamil Rytarowski <n54@gmx.com>
6397
6398 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6399 register_t.
6400
6def66f1
KR
64012020-03-14 Kamil Rytarowski <n54@gmx.com>
6402
6403 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6404 it to the ptrace call.
6405 * alpha-bsd-nat.c (store_registers): Likewise.
6406
66eaca97
KR
64072020-03-14 Kamil Rytarowski <n54@gmx.com>
6408
6409 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6410 includes.
6411 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6412 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6413 fill_fpregset): Likewise.
6414
4fed520b
KR
64152020-03-14 Kamil Rytarowski <n54@gmx.com>
6416
6417 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6418 nbsd_nat_target instead of inf_ptrace_target.
6419 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6420 nbsd_nat_target.
6421
2190cf06
KR
64222020-03-14 Kamil Rytarowski <n54@gmx.com>
6423
6424 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6425 register_t.
6426
75c56d3d
KR
64272020-03-14 Kamil Rytarowski <n54@gmx.com>
6428
6429 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6430 it to the ptrace call.
6431 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6432 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6433 * arm-nbsd-nat.c (store_register): Likewise.
6434 * arm-nbsd-nat.c (store_regs): Likewise.
6435 * arm-nbsd-nat.c (store_fp_register): Likewise.
6436 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6437
6018d381
KR
64382020-03-14 Kamil Rytarowski <n54@gmx.com>
6439
6440 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6441 nbsd_nat_target instead of inf_ptrace_target.
6442 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6443 nbsd_nat_target.
6444
013f99f0
KR
64452020-03-14 Kamil Rytarowski <n54@gmx.com>
6446
6447 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6448 it to the ptrace call.
6449 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6450
12753073
KR
64512020-03-14 Kamil Rytarowski <n54@gmx.com>
6452
6227b330
KR
6453 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6454 it to the ptrace call.
6455 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6456
64572020-03-14 Kamil Rytarowski <n54@gmx.com>
6458
6459 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6460 gdb_byte *.
12753073
KR
6461 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6462
d5be5fa4
KR
64632020-03-14 Kamil Rytarowski <n54@gmx.com>
6464
6465 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6466 instead of inf_ptrace_target.
6467 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6468 nbsd_nat_target.
6469
8110f842
KR
64702020-03-14 Kamil Rytarowski <n54@gmx.com>
6471
6472 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6473 register_t.
6474
52feded7
KR
64752020-03-14 Kamil Rytarowski <n54@gmx.com>
6476
6477 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6478 register_t.
6479
25567eee
KR
64802020-03-14 Kamil Rytarowski <n54@gmx.com>
6481
6482 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6483 register_t.
6484
426a9c18
TT
64852020-03-13 Tom Tromey <tom@tromey.com>
6486
6487 * value.h (val_print): Don't declare.
6488 * valprint.h (val_print_array_elements)
6489 (val_print_scalar_formatted, generic_val_print): Don't declare.
6490 * valprint.c (generic_val_print_array): Take a struct value.
6491 (generic_val_print_ptr, generic_val_print_memberptr)
6492 (generic_val_print_bool, generic_val_print_int)
6493 (generic_val_print_char, generic_val_print_complex)
6494 (generic_val_print): Remove.
6495 (generic_value_print): Update.
6496 (do_val_print): Remove unused parameters. Don't call
6497 la_val_print.
6498 (val_print): Remove.
6499 (common_val_print): Update. Don't call value_check_printable.
6500 (val_print_scalar_formatted, val_print_array_elements): Remove.
6501 * rust-lang.c (rust_val_print): Remove.
6502 (rust_language_defn): Update.
6503 * p-valprint.c (pascal_val_print): Remove.
6504 (pascal_value_print_inner): Update.
6505 (pascal_object_print_val_fields, pascal_object_print_val):
6506 Remove.
6507 (pascal_object_print_static_field): Update.
6508 * p-lang.h (pascal_val_print): Don't declare.
6509 * p-lang.c (pascal_language_defn): Update.
6510 * opencl-lang.c (opencl_language_defn): Update.
6511 * objc-lang.c (objc_language_defn): Update.
6512 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6513 * m2-lang.h (m2_val_print): Don't declare.
6514 * m2-lang.c (m2_language_defn): Update.
6515 * language.h (struct language_defn) <la_val_print>: Remove.
6516 * language.c (unk_lang_value_print_inner): Rename. Change
6517 argument types.
6518 (unknown_language_defn, auto_language_defn): Update.
6519 * go-valprint.c (go_val_print): Remove.
6520 * go-lang.h (go_val_print): Don't declare.
6521 * go-lang.c (go_language_defn): Update.
6522 * f-valprint.c (f_val_print): Remove.
6523 * f-lang.h (f_value_print): Don't declare.
6524 * f-lang.c (f_language_defn): Update.
6525 * d-valprint.c (d_val_print): Remove.
6526 * d-lang.h (d_value_print): Don't declare.
6527 * d-lang.c (d_language_defn): Update.
6528 * cp-valprint.c (cp_print_value_fields)
6529 (cp_print_value_fields_rtti, cp_print_value): Remove.
6530 (cp_print_static_field): Update.
6531 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6532 (c_val_print_struct, c_val_print_union, c_val_print_int)
6533 (c_val_print_memberptr, c_val_print): Remove.
6534 * c-lang.h (c_val_print_array, cp_print_value_fields)
6535 (cp_print_value_fields_rtti): Don't declare.
6536 * c-lang.c (c_language_defn, cplus_language_defn)
6537 (asm_language_defn, minimal_language_defn): Update.
6538 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6539 (ada_val_print_enum): Take a struct value.
6540 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6541 (ada_val_print): Remove.
6542 (ada_value_print_1): Update.
6543 (printable_val_type): Remove.
6544 * ada-lang.h (ada_val_print): Don't declare.
6545 * ada-lang.c (ada_language_defn): Update.
6546
42331a1e
TT
65472020-03-13 Tom Tromey <tom@tromey.com>
6548
6549 * valprint.c (do_val_print): Update.
6550 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6551 a struct value.
6552 (value_to_value_object_no_release): Declare.
6553 * python/py-value.c (value_to_value_object_no_release): New
6554 function.
6555 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6556 struct value.
6557 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6558 function.
6559 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6560 a struct value.
6561 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6562 Declare.
6563 (gdbscm_apply_val_pretty_printer): Take a struct value.
6564 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6565 value.
6566 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6567 value.
6568 * extension-priv.h (struct extension_language_ops)
6569 <apply_val_pretty_printer>: Take a struct value.
6570 * cp-valprint.c (cp_print_value): Create a struct value.
6571 (cp_print_value): Update.
6572
3a916a97
TT
65732020-03-13 Tom Tromey <tom@tromey.com>
6574
6575 * ada-valprint.c (print_field_values): Call common_val_print.
6576
b59eac37
TT
65772020-03-13 Tom Tromey <tom@tromey.com>
6578
6579 * ada-valprint.c (val_print_packed_array_elements): Remove
6580 bitoffset and val parameters. Call common_val_print.
6581 (ada_val_print_string): Remove offset, address, and original_value
6582 parameters.
6583 (ada_val_print_array): Update.
6584 (ada_value_print_array): New function.
6585 (ada_value_print_1): Call it.
6586
03371129
TT
65872020-03-13 Tom Tromey <tom@tromey.com>
6588
6589 * ada-valprint.c (ada_value_print): Use common_val_print.
6590
2e088f8b
TT
65912020-03-13 Tom Tromey <tom@tromey.com>
6592
6593 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6594
39ef85a8
TT
65952020-03-13 Tom Tromey <tom@tromey.com>
6596
6597 * ada-valprint.c (ada_value_print_num): New function.
6598 (ada_value_print_1): Use it.
6599
b9fa6e07
TT
66002020-03-13 Tom Tromey <tom@tromey.com>
6601
6602 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6603
416595d6
TT
66042020-03-13 Tom Tromey <tom@tromey.com>
6605
6606 * ada-valprint.c (ada_value_print_ptr): New function.
6607 (ada_value_print_1): Use it.
6608
5b5e15ec
TT
66092020-03-13 Tom Tromey <tom@tromey.com>
6610
6611 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6612 call common_val_print.
6613 (ada_val_print_1): Update.
6614 (ada_value_print_1): New function.
6615 (ada_value_print_inner): Rewrite.
6616
fbf54e75
TT
66172020-03-13 Tom Tromey <tom@tromey.com>
6618
6619 * cp-valprint.c (cp_print_value_fields): Update.
6620 (cp_print_value): New function.
6621
64b653ca
TT
66222020-03-13 Tom Tromey <tom@tromey.com>
6623
6624 * m2-valprint.c (m2_value_print_inner): Use
6625 cp_print_value_fields.
6626 * cp-valprint.c (cp_print_value_fields): New function.
6627 * c-valprint.c (c_value_print_struct): New function.
6628 (c_value_print_inner): Use c_value_print_struct.
6629 * c-lang.h (cp_print_value_fields): Declare.
6630
6999f067
TT
66312020-03-13 Tom Tromey <tom@tromey.com>
6632
6633 * c-valprint.c (c_value_print_array): New function.
6634 (c_value_print_inner): Use it.
6635
ce80b8bd
TT
66362020-03-13 Tom Tromey <tom@tromey.com>
6637
6638 * c-valprint.c (c_value_print_memberptr): New function.
6639 (c_value_print_inner): Use it.
6640
2faac269
TT
66412020-03-13 Tom Tromey <tom@tromey.com>
6642
6643 * c-valprint.c (c_value_print_int): New function.
6644 (c_value_print_inner): Use it.
6645
da3e2c29
TT
66462020-03-13 Tom Tromey <tom@tromey.com>
6647
6648 * c-valprint.c (c_value_print_ptr): New function.
6649 (c_value_print_inner): Use it.
6650
50836231
TT
66512020-03-13 Tom Tromey <tom@tromey.com>
6652
6653 * c-valprint.c (c_value_print_inner): Rewrite.
6654
4f412b6e
TT
66552020-03-13 Tom Tromey <tom@tromey.com>
6656
6657 * valprint.c (generic_value_print_complex): New function.
6658 (generic_value_print): Use it.
6659
f5354008
TT
66602020-03-13 Tom Tromey <tom@tromey.com>
6661
6662 * valprint.c (generic_val_print_float): Don't call
6663 val_print_scalar_formatted.
6664 (generic_val_print, generic_value_print): Update.
6665
3eec3b05
TT
66662020-03-13 Tom Tromey <tom@tromey.com>
6667
6668 * valprint.c (generic_value_print_char): New function
6669 (generic_value_print): Use it.
6670
fdddfccb
TT
66712020-03-13 Tom Tromey <tom@tromey.com>
6672
6673 * valprint.c (generic_value_print_int): New function.
6674 (generic_value_print): Use it.
6675
6dde7521
TT
66762020-03-13 Tom Tromey <tom@tromey.com>
6677
6678 * valprint.c (generic_value_print_bool): New function.
6679 (generic_value_print): Use it.
6680
4112d2e6
TT
66812020-03-13 Tom Tromey <tom@tromey.com>
6682
6683 * valprint.c (generic_val_print_func): Simplify.
6684 (generic_val_print, generic_value_print): Update.
6685
65786af6
TT
66862020-03-13 Tom Tromey <tom@tromey.com>
6687
6688 * valprint.c (generic_val_print_flags): Remove.
6689 (generic_val_print, generic_value_print): Update.
6690 (val_print_type_code_flags): Add original_value parameter.
6691
40f3ce18
TT
66922020-03-13 Tom Tromey <tom@tromey.com>
6693
6694 * valprint.c (generic_val_print): Update.
6695 (generic_value_print): Update.
6696 * valprint.c (generic_val_print_enum): Don't call
6697 val_print_scalar_formatted.
6698
2a5b130b
TT
66992020-03-13 Tom Tromey <tom@tromey.com>
6700
6701 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6702 * valprint.c (generic_value_print_ptr): New function.
6703
abc66ce9
TT
67042020-03-13 Tom Tromey <tom@tromey.com>
6705
6706 * valprint.c (generic_value_print): Rewrite.
6707
07a32858
TT
67082020-03-13 Tom Tromey <tom@tromey.com>
6709
6710 * p-valprint.c (pascal_object_print_value_fields)
6711 (pascal_object_print_value): New functions.
6712
64d64d3a
TT
67132020-03-13 Tom Tromey <tom@tromey.com>
6714
6715 * p-valprint.c (pascal_value_print_inner): Rewrite.
6716
6a95a1f5
TT
67172020-03-13 Tom Tromey <tom@tromey.com>
6718
6719 * f-valprint.c (f_value_print_innner): Rewrite.
6720
59fcdac6
TT
67212020-03-13 Tom Tromey <tom@tromey.com>
6722
6723 * m2-valprint.c (m2_print_unbounded_array): New overload.
6724 (m2_print_unbounded_array): Update.
6725 (m2_print_array_contents): Take a struct value.
6726 (m2_value_print_inner): Rewrite.
6727
d133c3e1
TT
67282020-03-13 Tom Tromey <tom@tromey.com>
6729
6730 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6731 (d_value_print_inner): New function.
6732 * d-lang.h (d_value_print_inner): Declare.
6733 * d-lang.c (d_language_defn): Use d_value_print_inner.
6734
23b0f06b
TT
67352020-03-13 Tom Tromey <tom@tromey.com>
6736
6737 * go-valprint.c (go_value_print_inner): New function.
6738 * go-lang.h (go_value_print_inner): Declare.
6739 * go-lang.c (go_language_defn): Use go_value_print_inner.
6740
5f56f7cb
TT
67412020-03-13 Tom Tromey <tom@tromey.com>
6742
6743 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6744 API.
6745 (rust_val_print): Rewrite.
6746 (rust_value_print_inner): New function, from rust_val_print.
6747 (rust_language_defn): Use rust_value_print_inner.
6748
26792ee0
TT
67492020-03-13 Tom Tromey <tom@tromey.com>
6750
6751 * ada-valprint.c (ada_value_print_inner): New function.
6752 * ada-lang.h (ada_value_print_inner): Declare.
6753 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6754
24051bbe
TT
67552020-03-13 Tom Tromey <tom@tromey.com>
6756
6757 * f-valprint.c (f_value_print_innner): New function.
6758 * f-lang.h (f_value_print_innner): Declare.
6759 * f-lang.c (f_language_defn): Use f_value_print_innner.
6760
c0941be6
TT
67612020-03-13 Tom Tromey <tom@tromey.com>
6762
6763 * p-valprint.c (pascal_value_print_inner): New function.
6764 * p-lang.h (pascal_value_print_inner): Declare.
6765 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6766
62c4663d
TT
67672020-03-13 Tom Tromey <tom@tromey.com>
6768
6769 * m2-valprint.c (m2_value_print_inner): New function.
6770 * m2-lang.h (m2_value_print_inner): Declare.
6771 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6772
62182190
TT
67732020-03-13 Tom Tromey <tom@tromey.com>
6774
6775 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6776 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6777 * c-valprint.c (c_value_print_inner): New function.
6778 * c-lang.h (c_value_print_inner): Declare.
6779 * c-lang.c (c_language_defn, cplus_language_defn)
6780 (asm_language_defn, minimal_language_defn): Use
6781 c_value_print_inner.
6782
1e592a8a
TT
67832020-03-13 Tom Tromey <tom@tromey.com>
6784
6785 * p-valprint.c (pascal_object_print_value_fields): Now static.
6786 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6787
7fe471e9
TT
67882020-03-13 Tom Tromey <tom@tromey.com>
6789
6790 * c-valprint.c (c_val_print_array): Simplify.
6791
d121c6ce
TT
67922020-03-13 Tom Tromey <tom@tromey.com>
6793
6794 * valprint.c (value_print_array_elements): New function.
6795 * valprint.h (value_print_array_elements): Declare.
6796
4dba70ee
TT
67972020-03-13 Tom Tromey <tom@tromey.com>
6798
6799 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6800 * mips-tdep.c (mips_print_register): Use
6801 value_print_scalar_formatted.
6802
4f9ae810
TT
68032020-03-13 Tom Tromey <tom@tromey.com>
6804
6805 * valprint.h (value_print_scalar_formatted): Declare.
6806 * valprint.c (value_print_scalar_formatted): New function.
6807
156bfec9
TT
68082020-03-13 Tom Tromey <tom@tromey.com>
6809
6810 * valprint.h (generic_value_print): Declare.
6811 * valprint.c (generic_value_print): New function.
6812
2b4e573d
TT
68132020-03-13 Tom Tromey <tom@tromey.com>
6814
6815 * valprint.c (do_val_print): Call la_value_print_inner, if
6816 available.
6817 * rust-lang.c (rust_language_defn): Update.
6818 * p-lang.c (pascal_language_defn): Update.
6819 * opencl-lang.c (opencl_language_defn): Update.
6820 * objc-lang.c (objc_language_defn): Update.
6821 * m2-lang.c (m2_language_defn): Update.
6822 * language.h (struct language_defn) <la_value_print_inner>: New
6823 member.
6824 * language.c (unknown_language_defn, auto_language_defn): Update.
6825 * go-lang.c (go_language_defn): Update.
6826 * f-lang.c (f_language_defn): Update.
6827 * d-lang.c (d_language_defn): Update.
6828 * c-lang.c (c_language_defn, cplus_language_defn)
6829 (asm_language_defn, minimal_language_defn): Update.
6830 * ada-lang.c (ada_language_defn): Update.
6831
a1f6a07c
TT
68322020-03-13 Tom Tromey <tom@tromey.com>
6833
6834 * c-valprint.c (c_value_print): Use common_val_print.
6835
410cf315
TT
68362020-03-13 Tom Tromey <tom@tromey.com>
6837
6838 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6839
72a45c93
TT
68402020-03-13 Tom Tromey <tom@tromey.com>
6841
6842 * f-valprint.c (f77_print_array_1, f_val_print): Use
6843 common_val_print.
6844
040f66bd
TT
68452020-03-13 Tom Tromey <tom@tromey.com>
6846
6847 * riscv-tdep.c (riscv_print_one_register_info): Use
6848 common_val_print.
6849
a6e05a6c
TT
68502020-03-13 Tom Tromey <tom@tromey.com>
6851
6852 * mi/mi-main.c (output_register): Use common_val_print.
6853
3444c526
TT
68542020-03-13 Tom Tromey <tom@tromey.com>
6855
6856 * infcmd.c (default_print_one_register_info): Use
6857 common_val_print.
6858
c2a44efe
TT
68592020-03-13 Tom Tromey <tom@tromey.com>
6860
6861 * valprint.h (common_val_print_checked): Declare.
6862 * valprint.c (common_val_print_checked): New function.
6863 * stack.c (print_frame_arg): Use common_val_print_checked.
6864
b0c26e99
TT
68652020-03-13 Tom Tromey <tom@tromey.com>
6866
6867 * valprint.c (do_val_print): New function, from val_print.
6868 (val_print): Use do_val_print.
6869 (common_val_print): Use do_val_print.
6870
ce3acbe9
TT
68712020-03-13 Tom Tromey <tom@tromey.com>
6872
6873 * valprint.c (value_print): Use scoped_value_mark.
6874
96c7f873
TV
68752020-03-13 Tom de Vries <tdevries@suse.de>
6876
6877 PR symtab/25646
6878 * psymtab.c (partial_symtab::partial_symtab): Don't set
6879 globals_offset and statics_offset. Push element onto
6880 current_global_psymbols and current_static_psymbols stacks.
6881 (concat): New function.
6882 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6883 element from current_global_psymbols and current_static_psymbols
6884 stacks. Concat popped elements to global_psymbols and
6885 static_symbols.
6886 (add_psymbol_to_list): Use current_global_psymbols and
6887 current_static_psymbols stacks.
6888 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6889 current_static_psymbols fields.
6890
6ba0a321
CB
68912020-03-12 Christian Biesinger <cbiesinger@google.com>
6892
6893 * corelow.c (sniff_core_bfd): Remove.
6894 (class core_target) <m_core_vec>: Remove.
6895 (core_target::core_target): Update.
6896 (core_file_fns): Remove.
6897 (deprecated_add_core_fns): Remove.
6898 (default_core_sniffer): Remove.
6899 (sniff_core_bfd): Remove.
6900 (default_check_format): Remove.
6901 (gdb_check_format): Remove.
6902 (core_target_open): Update.
6903 (core_target::get_core_register_section): Update.
6904 (get_core_registers_cb): Update.
6905 (core_target::fetch_registers): Update.
6906 * gdbcore.h (struct core_fns): Remove.
6907 (deprecated_add_core_fns): Remove.
6908 (default_core_sniffer): Remove.
6909 (default_check_format): Remove.
6910
227031b2
TT
69112020-03-12 Tom Tromey <tom@tromey.com>
6912
6913 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6914 CORE_ADDR.
6915 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6916
53807e9f
TT
69172020-03-12 Tom Tromey <tom@tromey.com>
6918
6919 * remote.c (remote_target::download_tracepoint)
6920 (remote_target::enable_tracepoint)
6921 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6922 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6923 sprintf_vma.
6924
64f25102
TT
69252020-03-12 Tom Tromey <tom@tromey.com>
6926
6927 * symfile-mem.c: Update CORE_ADDR size assert.
6928
272cd5a3
SM
69292020-03-12 Simon Marchi <simon.marchi@efficios.com>
6930
6931 * selftest.m4: Move to gdbsupport/.
6932 * acinclude.m4: Update path to selftest.m4.
6933
74cd3f9d
SM
69342020-03-12 Simon Marchi <simon.marchi@efficios.com>
6935
6936 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6937 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6938 gdbarch-selfselftests.c and selftest-arch.c.
6939 (SUBDIR_UNITTESTS_OBS): Rename to...
6940 (SELFTESTS_OBS): ... this.
6941 (COMMON_SFILES): Remove disasm-selftests.c and
6942 gdbarch-selftests.c.
6943 * configure.ac: Don't add selftest-arch.{c,o} to
6944 CONFIG_{SRCS,OBS}.
6945 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
6946 preprocessor conditions.
6947
db6878ac
SM
69482020-03-12 Simon Marchi <simon.marchi@efficios.com>
6949
6950 * configure.ac: Don't source bfd/development.sh.
6951 * selftest.m4: Modify comment.
6952 * configure: Re-generate.
6953
4d696a5c
SM
69542020-03-12 Simon Marchi <simon.marchi@efficios.com>
6955
6956 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
6957 not "true" or "false".
6958 * configure: Re-generate.
6959
8dd8e1c7
CB
69602020-03-12 Christian Biesinger <cbiesinger@google.com>
6961
6962 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
6963 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
6964 renamed to arm_nbsd_supply_gregset.
6965 (fetch_register): Update to call arm_nbsd_supply_gregset.
6966 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
6967 (arm_netbsd_nat_target::fetch_registers): Update.
6968 (fetch_elfcore_registers): Removed.
6969 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
6970 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
6971 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
6972 not require NetBSD system headers.
6973 (arm_nbsd_regset): New struct.
6974 (arm_nbsd_iterate_over_regset_sections): New function.
6975 (arm_netbsd_init_abi_common): Updated to call
6976 set_gdbarch_iterate_over_regset_sections.
6977 * arm-nbsd-tdep.h: New file.
6978
dd69bf7a
KB
69792020-03-11 Kevin Buettner <kevinb@redhat.com>
6980
6981 * symtab.c (find_pc_sect_line): Add check which prevents infinite
6982 recursion.
6983
a0761e34
SM
69842020-03-11 Simon Marchi <simon.marchi@efficios.com>
6985
6986 * configure: Re-generate.
6987
e7a82140
TT
69882020-03-11 Tom Tromey <tromey@adacore.com>
6989
6990 * ada-typeprint.c (print_choices): Fix comment.
6991
dcc050c8
AB
69922020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
6993
6994 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
6995 previous item in the list, when the list has no items.
6996
1c33af77
TV
69972020-03-11 Tom de Vries <tdevries@suse.de>
6998
6999 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7000 PROP_LOCLIST handling code.
7001
8c95582d
AB
70022020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7003
7004 * buildsym-legacy.c (record_line): Pass extra parameter to
7005 record_line.
7006 * buildsym.c (buildsym_compunit::record_line): Take an extra
7007 parameter, reduce duplication in the line table, and record the
7008 is_stmt flag in the line table.
7009 * buildsym.h (buildsym_compunit::record_line): Add extra
7010 parameter.
7011 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7012 non-statement lines.
7013 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7014 this to the symtab builder.
7015 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7016 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7017 through to dwarf_record_line_1.
7018 * infrun.c (process_event_stop_test): When stepping, don't stop at
7019 a non-statement instruction, and only refresh the step info when
7020 we land in the middle of a line's range. Also add an extra
7021 comment.
7022 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7023 field.
7024 * record-btrace.c (btrace_find_line_range): Only record lines
7025 marked as is-statement.
7026 * stack.c (frame_show_address): Show the frame address if we are
7027 in a non-statement sal.
7028 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7029 (maintenance_print_one_line_table): Print a header for the is_stmt
7030 column, and include is_stmt information in the output.
7031 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7032 preference to non-statements.
7033 (find_pcs_for_symtab_line): Prefer is-statement entries.
7034 (find_line_common): Likewise.
7035 * symtab.h (struct linetable_entry): Add is_stmt field.
7036 (struct symtab_and_line): Likewise.
7037 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7038 arranging the line table.
7039
e4003a34
TV
70402020-03-07 Tom de Vries <tdevries@suse.de>
7041
7042 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7043 DIE.
7044
e8932576
TT
70452020-03-07 Tom Tromey <tom@tromey.com>
7046
7047 * valops.c (value_literal_complex): Remove obsolete comment.
7048 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7049 comment.
7050
29734269
SM
70512020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7052
7053 * infrun.h: Forward-declare thread_info.
7054 (set_step_info): Add thread_info parameter, add doc.
7055 * infrun.c (set_step_info): Add thread_info parameter, move doc
7056 to header.
7057 * infrun.c (process_event_stop_test): Pass thread to
7058 set_step_info call.
7059 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7060 set_step_info.
7061 (prepare_one_step): Add thread_info parameter, pass it to
7062 set_step_frame and prepare_one_step (recursive) call.
7063 (step_1): Pass thread to prepare_one_step call.
7064 (step_command_fsm::should_stop): Pass thread to
7065 prepare_one_step.
7066 (until_next_fsm): Pass thread to set_step_frame call.
7067 (finish_command): Pass thread to set_step_info call.
7068
b7d64b29
HD
70692020-03-06 Hannes Domani <ssbssa@yahoo.de>
7070
7071 * windows-tdep.c (windows_solib_create_inferior_hook):
7072 Check if inferior is running.
7073
09f2921c
TV
70742020-03-06 Tom de Vries <tdevries@suse.de>
7075
7076 * NEWS: Fix "the the".
7077 * ctfread.c: Same.
7078
fd760e79
TV
70792020-03-06 Tom de Vries <tdevries@suse.de>
7080
7081 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7082
20ea4a60
AB
70832020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7084
7085 * .dir-locals.el: Add a comment referencing the other copies of
7086 this file.
7087
0afbabf0
JB
70882020-03-05 John Baldwin <jhb@FreeBSD.org>
7089
7090 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7091 psargs.
7092
842806cb
TBA
70932020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7094
7095 * .gitattributes: New file.
7096
be1e3d3e
TT
70972020-03-04 Tom Tromey <tom@tromey.com>
7098
7099 * symmisc.c (print_symbol_bcache_statistics)
7100 (print_objfile_statistics): Update.
7101 * symfile.c (allocate_symtab): Use intern.
7102 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7103 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7104 macro_cache>: Remove.
7105 <string_cache>: New member.
7106 (struct objfile) <intern>: New methods.
7107 * elfread.c (elf_symtab_read): Use intern.
7108 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7109 (dwarf2_compute_name, dwarf2_physname)
7110 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7111 names.
7112 (guess_partial_die_structure_name): Update.
7113 (partial_die_info::fixup): Intern name.
7114 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7115 name.
7116 (dwarf2_name): Intern name. Update.
7117 * buildsym.c (buildsym_compunit::get_macro_table): Use
7118 string_cache.
7119
4e7625fd
TT
71202020-03-04 Tom Tromey <tom@tromey.com>
7121
7122 * jit.c (bfd_open_from_target_memory): Make "target" const.
7123 * corefile.c (gnutarget): Now const.
7124 * gdbcore.h (gnutarget): Now const.
7125
46f9f931
HD
71262020-03-04 Hannes Domani <ssbssa@yahoo.de>
7127
7128 * NEWS: Mention support for WOW64 processes.
7129 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7130 (amd64_windows_segment_register_p): Remove static.
7131 (_initialize_amd64_windows_nat): Update.
7132 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7133 * i386-windows-nat.c (context_offset): Update.
7134 (i386_mappings): Rename and remove static.
7135 (i386_windows_segment_register_p): Remove static.
7136 (_initialize_i386_windows_nat): Update.
7137 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7138 (STATUS_WX86_SINGLE_STEP): New macro.
7139 (EnumProcessModulesEx): New macro.
7140 (Wow64SuspendThread): New macro.
7141 (Wow64GetThreadContext): New macro.
7142 (Wow64SetThreadContext): New macro.
7143 (Wow64GetThreadSelectorEntry): New macro.
7144 (windows_set_context_register_offsets): Add static.
7145 (windows_set_segment_register_p): Likewise.
7146 (windows_add_thread): Adapt for WOW64 processes.
7147 (windows_fetch_one_register): Likewise.
7148 (windows_nat_target::fetch_registers): Likewise.
7149 (windows_store_one_register): Likewise.
7150 (display_selector): Likewise.
7151 (display_selectors): Likewise.
7152 (handle_exception): Likewise.
7153 (windows_continue): Likewise.
7154 (windows_nat_target::resume): Likewise.
7155 (windows_add_all_dlls): Likewise.
7156 (do_initial_windows_stuff): Likewise.
7157 (windows_nat_target::attach): Likewise.
7158 (windows_get_exec_module_filename): Likewise.
7159 (windows_nat_target::create_inferior): Likewise.
7160 (windows_xfer_siginfo): Likewise.
7161 (_initialize_loadable): Initialize Wow64SuspendThread,
7162 Wow64GetThreadContext, Wow64SetThreadContext,
7163 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7164 * windows-nat.h (windows_set_context_register_offsets):
7165 Remove declaration.
7166 (windows_set_segment_register_p): Likewise.
7167 (i386_windows_segment_register_p): Add declaration.
7168 (amd64_windows_segment_register_p): Likewise.
7169
440cf44e
LM
71702020-03-04 Luis Machado <luis.machado@linaro.org>
7171
7172 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7173 in "info registers" for AArch64/ARM.
7174
7175 The change caused "info registers" to not print GPR's.
7176
7177 gdb/ChangeLog:
7178
7179 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7180
7181 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7182 when reg->group is empty and reggroup is not.
7183
1009d92f
TT
71842020-03-03 Tom Tromey <tromey@adacore.com>
7185
7186 * dwarf2/frame.c (struct dwarf2_frame_cache)
7187 <checked_tailcall_bottom, entry_cfa_sp_offset,
7188 entry_cfa_sp_offset_p>: Remove members.
7189 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7190 (dwarf2_frame_prev_register): Don't call
7191 dwarf2_tailcall_sniffer_first.
7192 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7193 * frame-unwind.c (add_unwinder): New fuction.
7194 (frame_unwind_init): Use it. Add tailcall unwinder.
7195
5e5d66b6
AB
71962020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7197 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7198
7199 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7200 value should be printed as true.
7201
584cf46d
HD
72022020-03-03 Hannes Domani <ssbssa@yahoo.de>
7203
7204 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7205 (windows_init_abi): Set and use windows_so_ops.
7206
7b973adc
SDJ
72072020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7208
7209 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7210 when verifying if dealing with a convenience variable.
7211
bb7b70ab
LM
72122020-03-03 Luis Machado <luis.machado@linaro.org>
7213
7214 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7215
9822cb57
SM
72162020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7217
7218 * infrun.c (gdbarch_supports_displaced_stepping): New.
7219 (use_displaced_stepping): Break up conditions in smaller pieces.
7220 Use gdbarch_supports_displaced_stepping.
7221 (displaced_step_prepare_throw): Use
7222 gdbarch_supports_displaced_stepping.
7223
63e163f2
AB
72242020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7225
7226 * NEWS: Mention new behaviour of the history filename.
7227 * top.c (write_history_p): Add comment.
7228 (show_write_history_p): Add header comment, give a different
7229 message when history writing is on, but the history filename is
7230 empty.
7231 (history_filename): Add comment.
7232 (history_filename_empty): New function.
7233 (show_history_filename): Add header comment, give a different
7234 message when the filename is empty.
7235 (init_history): Compare history_filename against nullptr, and only
7236 read history if the filename is not empty.
7237 (set_history_filename): Add header comment, and only make
7238 non-empty filenames absolute.
7239 (init_main): Make the filename argument to 'set history filename'
7240 optional.
7241
81b86b97
CB
72422020-03-02 Christian Biesinger <cbiesinger@google.com>
7243
7244 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7245 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7246 (fetch_fp_register): Update.
7247 (fetch_fp_regs): Update.
7248 (store_fp_register): Update.
7249 (store_fp_regs): Update.
7250 (arm_netbsd_nat_target::read_description): New function.
7251 (fetch_elfcore_registers): Update.
7252
24ed6739
AB
72532020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7254
7255 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7256 general_thread if the stop reply is missing a thread-id.
7257 (remote_target::process_stop_reply): Use the first non-exited
7258 thread if the target didn't pass a thread-id.
7259 * infrun.c (do_target_wait): Move call to
7260 switch_to_inferior_no_thread to ....
7261 (do_target_wait_1): ... here.
7262
a84bb2a0
JT
72632020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7264
7265 * debuginfod-support.c: Include defs.h first.
7266
658dadf0
TV
72672020-02-28 Tom de Vries <tdevries@suse.de>
7268
7269 * symfile.c (set_initial_language): Use default language for lookup.
7270
4ebe4877
SM
72712020-02-28 Simon Marchi <simon.marchi@efficios.com>
7272
7273 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7274 reader variable, pass `this` to read_cutu_die_from_dwo.
7275
e5da1139
AM
72762020-02-27 Aaron Merey <amerey@redhat.com>
7277
7278 * source.c (open_source_file): Check for nullptr when computing
7279 srcpath.
7280
317f7127
TT
72812020-02-27 Tom Tromey <tromey@adacore.com>
7282
7283 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7284 member.
7285 (dwarf2_add_field): Don't update nfields.
7286 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7287
3104d9ee
AB
72882020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7289
7290 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7291 abs.
7292
b83470bf
TT
72932020-02-26 Tom Tromey <tom@tromey.com>
7294
7295 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7296 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7297 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7298 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7299 per_cu_data.
7300
edfe0a0c
TT
73012020-02-26 Tom Tromey <tom@tromey.com>
7302
7303 * dwarf2/index-write.c (psym_index_map): Change type.
7304 (add_address_entry_worker, write_one_signatured_type)
7305 (recursively_count_psymbols, recursively_write_psymbols)
7306 (class debug_names, psyms_seen_size, write_gdbindex)
7307 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7308
0d79cdc4
AM
73092020-02-26 Aaron Merey <amerey@redhat.com>
7310
7311 * Makefile.in: Handle optional debuginfod support.
7312 * NEWS: Update.
7313 * README: Add --with-debuginfod summary.
7314 * config.in: Regenerate.
7315 * configure: Regenerate.
7316 * configure.ac: Handle optional debuginfod support.
7317 * debuginfod-support.c: debuginfod helper functions.
7318 * debuginfod-support.h: Ditto.
7319 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7320 summary.
7321 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7322 when a dwz file cannot be found.
7323 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7324 debuginfo file cannot be found.
7325 * source.c (open_source_file): Query debuginfod servers when a
7326 source file cannot be found.
7327 * top.c (print_gdb_configuration): Include
7328 --{with,without}-debuginfod in the output.
7329
b65ce565
JG
73302020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7331
7332 * thread.c (thr_try_catch_cmd): Print thread name.
7333
d4c9a4f8
SM
73342020-02-26 Simon Marchi <simon.marchi@efficios.com>
7335
7336 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7337 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7338 dwarf2_fetch_die_type_sect_off): Move to...
7339 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7340 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7341 dwarf2_fetch_die_type_sect_off): ... here.
7342 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7343 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7344 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7345
0dce4280
TV
73462020-02-26 Tom de Vries <tdevries@suse.de>
7347
7348 PR gdb/25603
7349 * symfile.c (set_initial_language): Exit-early if
7350 language_mode == language_mode_manual.
7351
450a1bfc
SM
73522020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7353
7354 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7355 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7356 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7357
9e80cfa1
AB
73582020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7359
7360 * gdbtypes.c (create_array_type_with_stride): Handle negative
7361 array strides.
7362 * valarith.c (value_subscripted_rvalue): Likewise.
7363
09624f1f
LM
73642020-02-25 Luis Machado <luis.machado@linaro.org>
7365
7366 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7367
8cb5117c
SM
73682020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7369
7370 * loc.h (dwarf2_get_die_type): Move to...
7371 * read.h (dwarf2_get_die_type): ... here.
7372 * read.c (dwarf2_get_die_type): Move doc to header.
7373
c325c44e
JB
73742020-02-25 Joel Brobecker <brobecker@adacore.com>
7375
7376 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7377 'gnulib/Makefile.in' to the list.
7378
4ac93832
TT
73792020-02-24 Tom Tromey <tom@tromey.com>
7380
7381 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7382 Remove.
7383 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7384 XOBNEWVEC.
7385
197400e8
TT
73862020-02-24 Tom Tromey <tom@tromey.com>
7387
7388 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7389 New method.
7390 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7391 (dw2_do_instantiate_symtab, dw2_get_file_names)
7392 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7393
76935768
TT
73942020-02-24 Tom Tromey <tom@tromey.com>
7395
7396 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7397 make_scoped_restore.
7398 (dwarf2_psymtab::read_symtab): Don't clear
7399 reading_partial_symbols.
7400
a88ef40d
TV
74012020-02-24 Tom de Vries <tdevries@suse.de>
7402
7403 PR gdb/25592
7404 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7405
c9af6521
TV
74062020-02-24 Tom de Vries <tdevries@suse.de>
7407
7408 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7409 commands layout next/prev/regs.
7410
5707a07a
TT
74112020-02-22 Tom Tromey <tom@tromey.com>
7412
7413 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7414 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7415
3b0fb49e
TT
74162020-02-22 Tom Tromey <tom@tromey.com>
7417
7418 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7419
283be8bf
TT
74202020-02-22 Tom Tromey <tom@tromey.com>
7421
7422 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7423 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7424 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7425 * tui/tui.c (_initialize_tui): Add usage text.
7426
ca793b96
TT
74272020-02-22 Tom Tromey <tom@tromey.com>
7428
7429 * tui/tui-win.c (tui_set_focus_command)
7430 (tui_set_win_height_command): Use error_no_arg.
7431 (_initialize_tui_win): Update help text.
7432 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7433
432b5c40
TT
74342020-02-22 Tom Tromey <tom@tromey.com>
7435
7436 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7437 * tui/tui-disasm.h (struct tui_disasm_window)
7438 <display_start_addr>: Declare.
7439 * tui/tui-source.h (struct tui_source_window)
7440 <display_start_addr>: Declare.
7441 * tui/tui-winsource.h (struct tui_source_window_base)
7442 <show_source_line, display_start_addr>: New methods.
7443 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7444 Rename and move to protected section.
7445 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7446 (tui_source_window_base::do_erase_source_content): Update.
7447 (tui_source_window_base::show_source_line): Now a method.
7448 (tui_source_window_base::show_source_content)
7449 (tui_source_window_base::tui_source_window_base)
7450 (tui_source_window_base::rerender)
7451 (tui_source_window_base::refill)
7452 (tui_source_window_base::do_scroll_horizontal)
7453 (tui_source_window_base::set_is_exec_point_at)
7454 (tui_source_window_base::update_breakpoint_info)
7455 (tui_source_window_base::update_exec_info): Update.
7456 * tui/tui-source.c (tui_source_window::set_contents)
7457 (tui_source_window::showing_source_p)
7458 (tui_source_window::do_scroll_vertical)
7459 (tui_source_window::location_matches_p)
7460 (tui_source_window::line_is_displayed): Update.
7461 (tui_source_window::display_start_addr): New method.
7462 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7463 (tui_disasm_window::do_scroll_vertical)
7464 (tui_disasm_window::location_matches_p): Update.
7465 (tui_disasm_window::display_start_addr): New method.
7466
01b1af32
TT
74672020-02-22 Tom Tromey <tom@tromey.com>
7468
7469 * NEWS: Add entry for gdb.register_window_type.
7470 * tui/tui-layout.h (window_factory): New typedef.
7471 (tui_register_window): Declare.
7472 * tui/tui-layout.c (saved_tui_windows): New global.
7473 (tui_apply_current_layout): Use it.
7474 (tui_register_window): New function.
7475 * python/python.c (do_start_initialization): Call
7476 gdbpy_initialize_tui.
7477 (python_GdbMethods): Add "register_window_type" function.
7478 * python/python-internal.h (gdbpy_register_tui_window)
7479 (gdbpy_initialize_tui): Declare.
7480 * python/py-tui.c: New file.
7481 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7482
fc96d20b
TT
74832020-02-22 Tom Tromey <tom@tromey.com>
7484
7485 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7486
935c78c0
TT
74872020-02-22 Tom Tromey <tom@tromey.com>
7488
7489 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7490 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7491 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7492 (tui_set_win_focus_to): Move from tui-win.c.
7493
0240c8f1
TT
74942020-02-22 Tom Tromey <tom@tromey.com>
7495
7496 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7497 functions.
7498 (known_window_types): New global.
7499 (tui_get_window_by_name): Reimplement.
7500 (initialize_known_windows): New function.
7501 (validate_window_name): Rewrite.
7502 (_initialize_tui_layout): Call initialize_known_windows.
7503
fdb01f0c
TT
75042020-02-22 Tom Tromey <tom@tromey.com>
7505
7506 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7507 Remove constants.
7508 * tui/tui-winsource.h (struct tui_source_window_base)
7509 <tui_source_window_base>: Remove parameter.
7510 * tui/tui-winsource.c
7511 (tui_source_window_base::tui_source_window_base): Remove
7512 parameter.
7513 (tui_source_window_base::refill): Update.
7514 * tui/tui-stack.h (struct tui_locator_window)
7515 <tui_locator_window>: Update.
7516 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7517 Default the constructor.
7518 * tui/tui-regs.h (struct tui_data_item_window)
7519 <tui_data_item_window>: Default the constructor.
7520 (struct tui_data_window) <tui_data_window>: Likewise.
7521 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7522 Default the constructor.
7523 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7524 Default the constructor.
7525 <type>: Remove.
7526 (struct tui_win_info) <tui_win_info>: Default the constructor.
7527 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7528 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7529 Default the constructor.
7530
865a5aec
TT
75312020-02-22 Tom Tromey <tom@tromey.com>
7532
7533 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7534 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7535 * tui/tui-win.c (tui_resize_all): Don't call
7536 tui_delete_invisible_windows.
7537 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7538 done.
7539 (tui_set_layout): Update.
7540 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7541 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7542 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7543
e098d18c
TT
75442020-02-22 Tom Tromey <tom@tromey.com>
7545
7546 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7547 correctly.
7548
eb9c8874
TT
75492020-02-22 Tom Tromey <tom@tromey.com>
7550
7551 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7552
7eed1a8e
TT
75532020-02-22 Tom Tromey <tom@tromey.com>
7554
7555 * tui/tui-winsource.h (struct tui_source_window_iterator)
7556 <inner_iterator>: New etytypedef.
7557 <tui_source_window_iterator>: Take "end" parameter.
7558 <tui_source_window_iterator>: Take iterator.
7559 <operator*, advance>: Update.
7560 <m_iter>: Change type.
7561 <m_end>: New field.
7562 (struct tui_source_windows) <begin, end>: Update.
7563 * tui/tui-layout.c (tui_windows): New global.
7564 (tui_apply_current_layout): Clear tui_windows.
7565 (tui_layout_window::apply): Update tui_windows.
7566 * tui/tui-data.h (tui_windows): Declare.
7567 (all_tui_windows): Now inline function.
7568 (class tui_window_iterator, struct all_tui_windows): Remove.
7569
7c043ba6
TT
75702020-02-22 Tom Tromey <tom@tromey.com>
7571
7572 PR tui/17850:
7573 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7574 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7575 "height" argument.
7576 (class tui_layout_window) <get_sizes>: Likewise.
7577 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7578 argument.
7579 <get_sizes>: Add "height" argument.
7580 <m_vertical>: New field.
7581 * tui/tui-layout.c (tui_layout_split::clone): Update.
7582 (tui_layout_split::get_sizes): Add "height" argument.
7583 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7584 (tui_new_layout_command): Parse "-horizontal".
7585 (_initialize_tui_layout): Update help string.
7586 (tui_layout_split::specification): Add "-horizontal" when needed.
7587 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7588 argument.
7589 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7590 New methods.
7591
6bc56648
TT
75922020-02-22 Tom Tromey <tom@tromey.com>
7593
7594 * tui/tui-layout.h (enum tui_adjust_result): New.
7595 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7596 (class tui_layout_window) <adjust_size>: Return
7597 tui_adjust_result. Rewrite.
7598 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7599 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7600
c22fef7e
TT
76012020-02-22 Tom Tromey <tom@tromey.com>
7602
7603 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7604 parameter and return types.
7605 (class tui_layout_base) <specification>: Add "depth".
7606 (class tui_layout_window) <specification>: Add "depth".
7607 (class tui_layout_split) <specification>: Add "depth".
7608 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7609 and return types.
7610 (tui_new_layout_command): Parse sub-layouts.
7611 (_initialize_tui_layout): Update help string.
7612 (tui_layout_window::specification): Add "depth".
7613 (add_layout_command): Update.
7614
ee325b61
TT
76152020-02-22 Tom Tromey <tom@tromey.com>
7616
7617 * NEWS: Add "tui new-layout" item.
7618 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7619 Add new-layout command to help text.
7620 (validate_window_name): New function.
7621 (tui_new_layout_command): New function.
7622 (_initialize_tui_layout): Register "new-layout".
7623 (tui_layout_window::specification): New method.
7624 (tui_layout_window::specification): New method.
7625 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7626 method.
7627 (class tui_layout_window) <specification>: New method.
7628 (class tui_layout_split) <specification>: New method.
7629
416eb92d
TT
76302020-02-22 Tom Tromey <tom@tromey.com>
7631
7632 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7633 * tui/tui-win.c (window_name_completer): Update comment.
7634 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7635 Declare method.
7636 (class tui_layout_window) <replace_window>: Likewise.
7637 (class tui_layout_split) <replace_window>: Likewise.
7638 (tui_set_layout): Don't declare.
7639 (tui_set_initial_layout): Declare function.
7640 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7641 (asm_regs_layout): New globals.
7642 (tui_current_layout, show_layout): Remove.
7643 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7644 (find_layout, tui_apply_layout): New function.
7645 (layout_completer): Remove.
7646 (tui_next_layout): Reimplement.
7647 (tui_next_layout_command): New function.
7648 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7649 (tui_regs_layout): Reimplement.
7650 (tui_regs_layout_command): New function.
7651 (extract_display_start_addr): Rewrite.
7652 (next_layout, prev_layout): Remove.
7653 (tui_layout_window::replace_window): New method.
7654 (tui_layout_split::replace_window): New method.
7655 (destroy_layout): New function.
7656 (layout_list): New global.
7657 (add_layout_command): New function.
7658 (initialize_layouts): Update.
7659 (tui_layout_command): New function.
7660 (_initialize_tui_layout): Install "layout" commands.
7661 * tui/tui-data.h (enum tui_layout_type): Remove.
7662 (tui_current_layout): Don't declare.
7663
0dbc2fc7
TT
76642020-02-22 Tom Tromey <tom@tromey.com>
7665
7666 * tui/tui-regs.c (tui_reg_layout): Remove.
7667 (tui_reg_command): Use tui_regs_layout.
7668 * tui/tui-layout.h (tui_reg_command): Declare.
7669 * tui/tui-layout.c (tui_reg_command): New function.
7670
5afe342e
TT
76712020-02-22 Tom Tromey <tom@tromey.com>
7672
7673 * tui/tui.c (tui_rl_delete_other_windows): Call
7674 tui_remove_some_windows.
7675 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7676 Declare method.
7677 (class tui_layout_window) <remove_windows>: New method.
7678 (class tui_layout_split) <remove_windows>: Declare.
7679 (tui_remove_some_windows): Declare.
7680 * tui/tui-layout.c (tui_remove_some_windows): New function.
7681 (tui_layout_split::remove_windows): New method.
7682
427326a8
TT
76832020-02-22 Tom Tromey <tom@tromey.com>
7684
7685 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7686 * tui/tui-layout.h (tui_next_layout): Declare.
7687 * tui/tui-layout.c (tui_next_layout): New function.
7688
3fe12b6d
TT
76892020-02-22 Tom Tromey <tom@tromey.com>
7690
7691 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7692 correct coordinates.
7693
59b8b5d2
TT
76942020-02-22 Tom Tromey <tom@tromey.com>
7695
7696 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7697 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7698 DATA_WIN case.
7699
2a3d458b
TT
77002020-02-22 Tom Tromey <tom@tromey.com>
7701
7702 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7703 TUI_DISASM_WIN, not tui_win_list.
7704
3f0cbb04
TT
77052020-02-22 Tom Tromey <tom@tromey.com>
7706
7707 * valprint.c (generic_val_print_enum_1)
7708 (val_print_type_code_flags): Style member names.
7709 * rust-lang.c (val_print_struct, rust_print_enum)
7710 (rust_print_struct_def, rust_internal_print_type): Style member
7711 names.
7712 * p-valprint.c (pascal_object_print_value_fields): Style member
7713 names. Only call fprintf_symbol_filtered for static members.
7714 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7715 * f-valprint.c (f_val_print): Style member names.
7716 * f-typeprint.c (f_type_print_base): Style member names.
7717 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7718 call fprintf_symbol_filtered for static members.
7719 (cp_print_class_member): Style member names.
7720 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7721 member names.
7722 * ada-valprint.c (ada_print_scalar): Style enum names.
7723 (ada_val_print_enum): Likewise.
7724 * ada-typeprint.c (print_enum_type): Style enum names.
7725
d4d947ae
TT
77262020-02-21 Tom Tromey <tom@tromey.com>
7727
7728 * psympriv.h (struct partial_symtab): Update comment.
7729
e94e944b
TT
77302020-02-21 Tom Tromey <tromey@adacore.com>
7731
7732 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7733 type is CORE_ADDR.
7734
1eb73179
TV
77352020-02-21 Tom de Vries <tdevries@suse.de>
7736
7737 PR gdb/25534
7738 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7739 if dependencies[i]->user != NULL.
7740
4f180d53
AT
77412020-02-21 Ali Tamur <tamur@google.com>
7742
7743 * dwarf2/read.c (dwarf2_name): Add null check.
7744
22b6cd70
TT
77452020-02-20 Tom Tromey <tom@tromey.com>
7746
7747 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7748 ">=", in binary search.
7749 (dwarf2_find_containing_comp_unit): New overload.
7750 (run_test): New self-test.
7751 (_initialize_dwarf2_read): Register new test.
7752
bd0cf5a6
NC
77532020-02-20 Nelson Chu <nelson.chu@sifive.com>
7754
7755 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7756 * riscv-tdep.h: Likewise.
7757 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7758 rv32-only CSR.
7759 * features/riscv/64bit-csr.xml: Regenerated.
7760
3f702acd
SDJ
77612020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7762 Tom Tromey <tom@tromey.com>
7763
7764 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7765 of 'fputc_unfiltered'.
7766 (putchar_unfiltered): Call 'fputc_unfiltered'.
7767 (fputc_unfiltered): Call 'fputs_unfiltered'.
7768
d13c7322
AB
77692020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7770
7771 * config.in: Regenerate.
7772 * configure: Regenerate.
7773 * configure.ac: Add --with-python-libdir option.
7774 * main.c: Use WITH_PYTHON_LIBDIR.
7775
869d8950
TT
77762020-02-19 Tom Tromey <tom@tromey.com>
7777
7778 * symtab.c (general_symbol_info::compute_and_set_names): Use
7779 obstack_strndup. Simplify call to symbol_set_demangled_name.
7780
298e9637
SM
77812020-02-19 Simon Marchi <simon.marchi@efficios.com>
7782
7783 * dwarf2/read.c (allocate_signatured_type_table,
7784 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7785 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7786 Remove objfile parameter, update all callers.
7787
08410482
DE
77882020-02-19 Doug Evans <dje@google.com>
7789
7790 PR rust/25535
7791 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7792 rust_enum_variant calculation.
7793
dfdeeca1
TT
77942020-02-19 Tom Tromey <tromey@adacore.com>
7795
7796 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7797
2ef5453b
TT
77982020-02-19 Tom Tromey <tromey@adacore.com>
7799
7800 * ada-lang.c (cache_symbol): Use obstack_strdup.
7801
9f1528a1
AB
78022020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7803
7804 * configure: Regenerate.
7805
d3c22fa8
TT
78062020-02-19 Tom Tromey <tromey@adacore.com>
7807
7808 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7809 NULL check.
7810
bf84f706
MR
78112020-02-19 Maciej W. Rozycki <macro@wdc.com>
7812
7813 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7814
d1c9b20f
AB
78152020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7816
7817 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7818 if GDBSERVER is not defined.
7819 (riscv_tdesc_cache): Likewise, also store const target_desc.
7820 (STATIC_IN_GDB): Define.
7821 (riscv_create_target_description): Update declaration with
7822 STATIC_IN_GDB.
7823 (riscv_lookup_target_description): New function, only define if
7824 GDBSERVER is not defined.
7825 * arch/riscv.h (riscv_create_target_description): Declare only
7826 when GDBSERVER is defined.
7827 (riscv_lookup_target_description): New declaration when GDBSERVER
7828 is not defined.
7829 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7830 (riscv_linux_read_features): ...this, and return
7831 riscv_gdbarch_features instead of target_desc.
7832 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7833 (riscv_linux_read_description): Rename to...
7834 (riscv_linux_read_features): ...this.
7835 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7836 Update to use riscv_gdbarch_features and
7837 riscv_lookup_target_description.
7838 * riscv-tdep.c (riscv_find_default_target_description): Use
7839 riscv_lookup_target_description instead of
7840 riscv_create_target_description.
7841
373d7ac0
SM
78422020-02-18 Simon Marchi <simon.marchi@efficios.com>
7843
7844 * valprint.c (generic_val_print_enum_1): When printing a flag
7845 enum with value 0 and there is no enumerator with value 0, print
7846 just "0" instead of "(unknown: 0x0)".
7847
b29a2df0
SM
78482020-02-18 Simon Marchi <simon.marchi@efficios.com>
7849
7850 * valprint.c (generic_val_print_enum_1): Print unknown part of
7851 flag enum in hex.
7852
6740f0cc
SM
78532020-02-18 Simon Marchi <simon.marchi@efficios.com>
7854
7855 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7856 flag enums to contain duplicate enumerators.
7857 * valprint.c (generic_val_print_enum_1): Update comment.
7858
edd45eb0
SM
78592020-02-18 Simon Marchi <simon.marchi@efficios.com>
7860
7861 * dwarf2/read.c: Include "count-one-bits.h".
7862 (update_enumeration_type_from_children): If an enumerator has
7863 multiple bits set, don't treat the enumeration as a "flag enum".
7864 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7865 of flag enums have 0 or 1 bit set.
7866
6d0cf446
BE
78672020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7868
7869 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7870 conversion.
7871 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7872 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7873 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7874 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7875 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7876
7001c1b7
SM
78772020-02-18 Simon Marchi <simon.marchi@efficios.com>
7878
7879 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7880
fdb61c6c
SM
78812020-02-14 Simon Marchi <simon.marchi@efficios.com>
7882
7883 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7884 displaced_step_closure_up.
7885 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7886 (struct displaced_step_closure_up):
7887 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7888 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7889 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7890 Likewise.
7891 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7892 * gdbarch.c, gdbarch.h: Re-generate.
7893 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7894 displaced_step_closure_up.
7895 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7896 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7897 * infrun.h (displaced_step_closure_up): New type alias.
7898 (struct displaced_step_inferior_state) <step_closure>: Change
7899 type to displaced_step_closure_up.
7900 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7901 displaced_step_closure_up.
7902 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7903
a4a38eb4
TT
79042020-02-14 Tom Tromey <tom@tromey.com>
7905
7906 * minidebug.c (gnu_debug_key): New global.
7907 (find_separate_debug_file_in_section): Use it.
7908
e8217e61
SM
79092020-02-14 Simon Marchi <simon.marchi@efficios.com>
7910
7911 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7912 std::unique_ptr.
7913 * gdbarch.c: Re-generate.
7914 * gdbarch.h: Re-generate.
7915 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7916 change.
7917 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7918 type to std::unique_ptr.
7919 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7920 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7921 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7922 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7923 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7924 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7925 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7926 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7927 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7928
d8d83535
SM
79292020-02-14 Simon Marchi <simon.marchi@efficios.com>
7930
7931 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7932 std::unique_ptr.
7933 (displaced_step_clear): Rename to...
7934 (displaced_step_reset): ... this. Just call displaced->reset ().
7935 (displaced_step_clear_cleanup): Rename to...
7936 (displaced_step_reset_cleanup): ... this.
7937 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7938 (displaced_step_fixup): Likewise.
7939 (resume_1): Likewise.
7940 (handle_inferior_event): Restore child's memory before calling
7941 displaced_step_fixup on the parent.
7942 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
7943 to std::unique_ptr.
7944 <step_closure>: Change type to std::unique_ptr.
7945
5f661e03
SM
79462020-02-14 Simon Marchi <simon.marchi@efficios.com>
7947
7948 * arm-tdep.c: Include count-one-bits.h.
7949 (cleanup_block_store_pc): Use count_one_bits.
7950 (cleanup_block_load_pc): Use count_one_bits.
7951 (arm_copy_block_xfer): Use count_one_bits.
7952 (thumb2_copy_block_xfer): Use count_one_bits.
7953 (thumb_copy_pop_pc_16bit): Use count_one_bits.
7954 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
7955 (thumb_get_next_pcs_raw): Use count_one_bits.
7956 (arm_get_next_pcs_raw): Use count_one_bits_l.
7957 * arch/arm.c (bitcount): Remove.
7958 * arch/arm.h (bitcount): Remove.
7959
8084e579
TT
79602020-02-14 Tom Tromey <tromey@adacore.com>
7961
7962 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
7963 Update.
7964 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
7965 * dwarf2/loc.c (call_site_find_chain_1): Return
7966 unique_xmalloc_ptr.
7967 (call_site_find_chain): Likewise.
7968
258bf0ee
RB
79692020-02-14 Richard Biener <rguenther@suse.de>
7970
7971 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
7972 on expression with division operators.
7973
f98a8458
AKS
79742020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7975
7976 * MAINTAINERS (Write After Approval): Adding myself.
7977
d1437c0e
TT
79782020-02-12 Tom Tromey <tom@tromey.com>
7979
7980 * event-loop.c (event_data, gdb_event, event_handler_func):
7981 Remove.
7982
3d4560f7
TT
79832020-02-12 Tom Tromey <tom@tromey.com>
7984
7985 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
7986 (dwarf2_frame_objfile_data): Add comment.
7987 (find_comp_unit, set_comp_unit): New functions.
7988 (dwarf2_frame_find_fde): Use find_comp_unit.
7989 (dwarf2_build_frame_info): Use set_comp_unit.
7990
21982304
TT
79912020-02-12 Tom Tromey <tom@tromey.com>
7992
7993 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
7994 (comp_unit): Don't initialize objfile.
7995 (execute_cfa_program): Add text_offset parameter.
7996 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
7997 (dwarf2_frame_cache): Update.
7998 (dwarf2_build_frame_info): Don't set "objfile" member.
7999
4debb237
TT
80002020-02-12 Tom Tromey <tom@tromey.com>
8001
8002 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8003 (decode_frame_entry): Likewise.
8004 (dwarf2_build_frame_info): Update.
8005
0d404d44
TT
80062020-02-12 Tom Tromey <tom@tromey.com>
8007
8008 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8009 (decode_frame_entry_1): Use the comp_unit obstack.
8010
a7a3ae5c
TT
80112020-02-12 Tom Tromey <tom@tromey.com>
8012
8013 * dwarf2/frame.c (struct comp_unit): Add initializers and
8014 constructor.
8015 (dwarf2_frame_objfile_data): Store a comp_unit.
8016 (dwarf2_frame_find_fde): Update.
8017 (dwarf2_build_frame_info): Use "new".
8018
a9d65418
TT
80192020-02-12 Tom Tromey <tom@tromey.com>
8020
8021 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8022 (dwarf2_fde_table): Typedef for std::vector.
8023 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8024 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8025 (decode_frame_entry): Update.
8026 (dwarf2_build_frame_info): Use "new".
8027
7559c217
CB
80282020-02-12 Christian Biesinger <cbiesinger@google.com>
8029
8030 * arm-tdep.c (arm_gdbarch_init): Update.
8031 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8032 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8033 have_neon, is_m>: Change to bool.
8034
aeefc73c
CB
80352020-02-12 Christian Biesinger <cbiesinger@google.com>
8036
8037 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8038
d27b8e5f
TT
80392020-02-12 Tom Tromey <tom@tromey.com>
8040
8041 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8042
cd5900f3
HD
80432020-02-12 Hannes Domani <ssbssa@yahoo.de>
8044
8045 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8046 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8047
f056b22b
TT
80482020-02-11 Tom Tromey <tom@tromey.com>
8049
8050 * psymtab.h: Update comment.
8051
f92ff6b5
TT
80522020-02-11 Tom Tromey <tom@tromey.com>
8053
8054 * gdb_obstack.h (struct auto_obstack): Use
8055 DISABLE_COPY_AND_ASSIGN.
8056
3fd6912b
TT
80572020-02-11 Tom Tromey <tom@tromey.com>
8058
8059 * dwarf2/frame.h (struct objfile): Don't forward declare.
8060
69ed9b74
CB
80612020-02-11 Christian Biesinger <cbiesinger@google.com>
8062
8063 * cris-tdep.c (cris_supply_gregset): Change signature to match
8064 what struct regset expects.
8065 (cris_regset): New struct.
8066 (fetch_core_registers): Remove.
8067 (cris_iterate_over_regset_sections): New function.
8068 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8069 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8070
bda874f6
CB
80712020-02-11 Christian Biesinger <cbiesinger@google.com>
8072
8073 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8074 registers.
8075
754e1564
CB
80762020-02-11 Christian Biesinger <cbiesinger@google.com>
8077
8078 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8079
8ddd8e0e
SM
80802020-02-11 Simon Marchi <simon.marchi@efficios.com>
8081
8082 * configure: Re-generate.
8083
898e7f60
SM
80842020-02-11 Simon Marchi <simon.marchi@efficios.com>
8085
8086 * configure: Re-generate.
8087
58df732b
SM
80882020-02-11 Simon Marchi <simon.marchi@efficios.com>
8089
8090 * acinclude: Update warning.m4 path.
8091 * warning.m4: Move to gdbsupport.
8092
da5bd37e
TT
80932020-02-11 Tom Tromey <tromey@adacore.com>
8094
8095 * remote.c (remote_console_output): Update.
8096 * printcmd.c (printf_command): Update.
8097 * event-loop.c (gdb_wait_for_event): Update.
8098 * linux-nat.c (sigchld_handler): Update.
8099 * remote-sim.c (gdb_os_write_stdout): Update.
8100 (gdb_os_flush_stdout): Update.
8101 (gdb_os_flush_stderr): Update.
8102 (gdb_os_write_stderr): Update.
8103 * exceptions.c (print_exception): Update.
8104 * remote-fileio.c (remote_fileio_func_read): Update.
8105 (remote_fileio_func_write): Update.
8106 * tui/tui.c (tui_enable): Update.
8107 * tui/tui-interp.c (tui_interp::init): Update.
8108 * utils.c (init_page_info): Update.
8109 (putchar_unfiltered, fputc_unfiltered): Update.
8110 (gdb_flush): Update.
8111 (emit_style_escape): Update.
8112 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8113 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8114 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8115 (stderr_file::write): Update.
8116 (stderr_file::puts): Update.
8117 * ui-file.h (ui_file_isatty, ui_file_write)
8118 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8119 (ui_file_puts): Don't declare.
8120
85f0dd3c
TV
81212020-02-10 Tom de Vries <tdevries@suse.de>
8122
8123 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8124 sentinel to char *.
8125
2e927613
TV
81262020-02-09 Tom de Vries <tdevries@suse.de>
8127
8128 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8129 filename if it matches "<artificial>".
8130
6bafc845
HD
81312020-02-09 Hannes Domani <ssbssa@yahoo.de>
8132
8133 * windows-tdep.c (struct enum_value_name): New struct.
8134 (create_enum): New function.
8135 (windows_get_siginfo_type): Create and use enum types.
8136
7928d571
HD
81372020-02-09 Hannes Domani <ssbssa@yahoo.de>
8138
8139 * NEWS: Mention $_siginfo support for Windows.
8140 * windows-nat.c (handle_exception): Set siginfo_er.
8141 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8142 (windows_xfer_siginfo): New function.
8143 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8144 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8145 (init_windows_gdbarch_data): New function.
8146 (get_windows_gdbarch_data): New function.
8147 (windows_get_siginfo_type): New function.
8148 (windows_init_abi): Register windows_get_siginfo_type.
8149 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8150
6751ebae
TT
81512020-02-08 Tom Tromey <tom@tromey.com>
8152
8153 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8154 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8155 <keep>: Declare method.
8156 <m_keep>: Remove member.
8157 <~cutu_reader>: Remove.
8158 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8159 (cutu_reader::cutu_reader): Update.
8160 (cutu_reader::keep): Rename from ~cutu_reader.
8161 (process_psymtab_comp_unit, build_type_psymtabs_1)
8162 (process_skeletonless_type_unit, load_partial_comp_unit)
8163 (load_full_comp_unit, dwarf2_read_addr_index)
8164 (read_signatured_type): Update.
8165
135f5437
TT
81662020-02-08 Tom Tromey <tom@tromey.com>
8167
8168 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8169 "want_partial_unit" parameter.
8170 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8171 Inline check for DW_TAG_partial_unit.
8172 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8173
9f66ff1c
TT
81742020-02-08 Tom Tromey <tom@tromey.com>
8175
8176 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8177 read.c.
8178 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8179 read.c.
8180
c8a7a66f
TT
81812020-02-08 Tom Tromey <tom@tromey.com>
8182
8183 * dwarf2/read.c (read_address): Move to comp-unit.c.
8184 (dwarf2_rnglists_process, dwarf2_ranges_process)
8185 (read_attribute_value, dwarf_decode_lines_1)
8186 (var_decode_location, decode_locdesc): Update.
8187 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8188 read.c. Remove "cu" parameter.
8189 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8190 method.
8191
8266302d
TT
81922020-02-08 Tom Tromey <tom@tromey.com>
8193
8194 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8195 (read_indirect_line_string): Update.
8196 * dwarf2/comp-unit.c (read_offset): Remove.
8197 (read_comp_unit_head): Update.
8198 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8199 method.
8200 (read_offset): Don't declare.
8201
4057dfde
TT
82022020-02-08 Tom Tromey <tom@tromey.com>
8203
8204 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8205 * dwarf2/read.c (struct comp_unit_head): Move to
8206 dwarf2/comp-unit.h.
8207 (enum class rcuh_kind): Move to comp-unit.h.
8208 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8209 (read_comp_unit_head, error_check_comp_unit_head)
8210 (read_and_check_comp_unit_head): Move to comp-unit.c.
8211 (read_offset, dwarf_unit_type_name): Likewise.
8212 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8213 (cutu_reader::cutu_reader, read_call_site_scope)
8214 (find_partial_die, follow_die_offset): Update.
8215 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8216
24aa364d
TT
82172020-02-08 Tom Tromey <tom@tromey.com>
8218
8219 * dwarf2/read.c (read_offset_1): Move to leb.c.
8220 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8221 (dwarf_decode_macro_bytes): Update.
8222 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8223 * dwarf2/leb.h (read_offset): Declare.
8224
2c7d5afc
TT
82252020-02-08 Tom Tromey <tom@tromey.com>
8226
8227 * dwarf2/read.c (dwarf2_section_size): Remove.
8228 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8229 Update.
8230 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8231
4075cb26
TT
82322020-02-08 Tom Tromey <tom@tromey.com>
8233
8234 * dwarf2/read.c (read_initial_length): Move to leb.c.
8235 * dwarf2/leb.h (read_initial_length): Declare.
8236 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8237 handle_nonstd parameter.
8238 * dwarf2/frame.c (read_initial_length): Remove.
8239 (decode_frame_entry_1): Update.
8240
09ba997f
TT
82412020-02-08 Tom Tromey <tom@tromey.com>
8242
8243 * dwarf2/loc.c (dwarf2_find_location_expression)
8244 (dwarf_evaluate_loc_desc::get_tls_address)
8245 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8246 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8247 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8248 (dwarf2_compile_property_to_c)
8249 (dwarf2_loc_desc_get_symbol_read_needs)
8250 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8251 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8252 (loclist_describe_location, loclist_tracepoint_var_ref)
8253 (loclist_generate_c_location): Update.
8254 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8255 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8256 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8257 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8258 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8259 (dwarf2_per_cu_data::addr_size)
8260 (dwarf2_per_cu_data::ref_addr_size)
8261 (dwarf2_per_cu_data::text_offset)
8262 (dwarf2_per_cu_data::addr_type): Now methods.
8263 (per_cu_header_read_in): Make per_cu "const".
8264 (dwarf2_version): Remove.
8265 (dwarf2_per_cu_data::int_type): Now a method.
8266 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8267 (set_die_type, read_array_type, read_subrange_index_type)
8268 (read_tag_string_type, read_subrange_type): Update.
8269 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8270 offset_size, ref_addr_size, text_offset, addr_type, version,
8271 objfile, int_type, addr_sized_int_type>: Declare methods.
8272
96c738c0
TT
82732020-02-08 Tom Tromey <tom@tromey.com>
8274
8275 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8276 Move earlier.
8277
8fdd972c
TT
82782020-02-08 Tom Tromey <tom@tromey.com>
8279
8280 * dwarf2/read.h (dwarf_line_debug): Declare.
8281 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8282 * dwarf2/read.c: Move line_header code to new files.
8283 (dwarf_line_debug): No longer static.
8284 * dwarf2/line-header.c: New file.
8285 * dwarf2/line-header.h: New file.
8286
03075812
TT
82872020-02-08 Tom Tromey <tom@tromey.com>
8288
8289 * dwarf2/read.c (struct line_header) <file_full_name,
8290 file_file_name>: Return unique_xmalloc_ptr.
8291 (line_header::file_file_name): Update.
8292 (line_header::file_full_name): Update.
8293 (dw2_get_file_names_reader): Update.
8294 (macro_start_file): Update.
8295
bb822404
TT
82962020-02-08 Tom Tromey <tom@tromey.com>
8297
8298 * dwarf2/read.c (struct line_header) <file_full_name,
8299 file_file_name>: Declare methods.
8300 (dw2_get_file_names_reader): Update.
8301 (file_file_name): Now a method.
8302 (file_full_name): Likewise.
8303 (macro_start_file): Update.
8304
009b64fc
TT
83052020-02-08 Tom Tromey <tom@tromey.com>
8306
8307 * dwarf2/read.c (dwarf_always_disassemble)
8308 (show_dwarf_always_disassemble): Move to loc.c.
8309 (_initialize_dwarf2_read): Move "always-disassemble" registration
8310 to loc.c.
8311 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8312 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8313 static.
8314 (show_dwarf_always_disassemble): Move from read.c.
8315 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8316
5895093f
TT
83172020-02-08 Tom Tromey <tom@tromey.com>
8318
8319 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8320 (create_quick_file_names_table): Return htab_up.
8321 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8322 Update.
8323 * dwarf2/read.h (struct dwarf2_per_objfile)
8324 <quick_file_names_table>: Now htab_up.
8325
b3b32279
TT
83262020-02-08 Tom Tromey <tom@tromey.com>
8327
8328 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8329
1d33d811
TT
83302020-02-08 Tom Tromey <tom@tromey.com>
8331
8332 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8333 Rewrite.
8334 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8335 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8336 (abbrev_table::abbrev_table): No longer inline.
8337 (ABBREV_HASH_SIZE): Remove.
8338 (abbrev_table::m_abbrevs): Now an htab_up.
8339
86de1d91
TT
83402020-02-08 Tom Tromey <tom@tromey.com>
8341
8342 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8343 (cutu_reader): Update.
8344 (build_type_psymtabs_1): Update.
8345 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8346 (abbrev_table::alloc_abbrev): Update.
8347 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8348 (abbrev_table::read): New static method, renamed from
8349 abbrev_table_read_table.
8350 (abbrev_table::alloc_abbrev)
8351 (abbrev_table::add_abbrev): Now private.
8352 (abbrev_table::abbrev_table): Now private.
8353 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8354
0335378b
TT
83552020-02-08 Tom Tromey <tom@tromey.com>
8356
8357 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8358 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8359 htab_up.
8360
48b490f2
TT
83612020-02-08 Tom Tromey <tom@tromey.com>
8362
8363 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8364 htab_up.
8365 (lookup_dwo_unit_in_dwp): Update.
8366 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8367 on obstack.
8368
bc68fb19
TT
83692020-02-08 Tom Tromey <tom@tromey.com>
8370
8371 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8372 obstack.
8373
d15acc42
TT
83742020-02-08 Tom Tromey <tom@tromey.com>
8375
8376 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8377 line_header_hash.
8378 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8379 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8380 Change type to htab_up.
8381
eaa5fa8b
TT
83822020-02-08 Tom Tromey <tom@tromey.com>
8383
8384 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8385 htab_up. Don't allocate on obstack.
8386 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8387 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8388 Change type to htab_up.
8389
b0b6a987
TT
83902020-02-08 Tom Tromey <tom@tromey.com>
8391
8392 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8393 Change type to htab_up.
8394 * dwarf2/read.c (create_signatured_type_table_from_index)
8395 (create_signatured_type_table_from_debug_names)
8396 (create_all_type_units, add_type_unit)
8397 (lookup_dwo_signatured_type, lookup_signatured_type)
8398 (process_skeletonless_type_unit): Update.
8399 (create_debug_type_hash_table, create_debug_types_hash_table):
8400 Change type of types_htab.
8401 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8402 htab_up. Don't allocate on obstack.
8403 (create_cus_hash_table): Change type of cus_htab parameter.
8404 (struct dwo_file) <cus, tus>: Now htab_up.
8405 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8406 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8407 (queue_and_load_all_dwo_tus): Update.
8408 * dwarf2/index-write.c (write_gdbindex): Update.
8409 (write_debug_names): Update.
8410
39856def
TT
84112020-02-08 Tom Tromey <tom@tromey.com>
8412
8413 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8414 dwarf2/read.c. Remove "next" member. Add constructor ntad
8415 destructor.
8416 (struct dwarf2_per_objfile) <queue>: New member.
8417 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8418 dwarf2/read.h.
8419 (dwarf2_queue, dwarf2_queue_tail): Remove.
8420 (class dwarf2_queue_guard): Add parameter to constructor. Use
8421 DISABLE_COPY_AND_ASSIGN.
8422 <m_per_objfile>: New member.
8423 <~dwarf2_queue_guard>: Rewrite.
8424 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8425 Update.
8426 (~dwarf2_queue_item): New.
8427
3e225074
TT
84282020-02-08 Tom Tromey <tom@tromey.com>
8429
8430 * dwarf2/read.c (struct die_info) <has_children>: New member.
8431 (dw2_get_file_names_reader): Remove has_children.
8432 (dw2_get_file_names): Update.
8433 (read_cutu_die_from_dwo): Remove has_children.
8434 (cutu_reader::init_tu_and_read_dwo_dies)
8435 (cutu_reader::cutu_reader): Update.
8436 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8437 Remove has_children.
8438 (build_type_psymtabs_1, process_skeletonless_type_unit)
8439 (load_partial_comp_unit, load_full_comp_unit): Update.
8440 (create_dwo_cu_reader): Remove has_children.
8441 (create_cus_hash_table, read_die_and_children): Update.
8442 (read_full_die_1,read_full_die): Remove has_children.
8443 (read_signatured_type): Update.
8444 (class cutu_reader) <has_children>: Remove.
8445
82ca8957
TT
84462020-02-08 Tom Tromey <tom@tromey.com>
8447
8448 * dwarf2/expr.c: Rename from dwarf2expr.c.
8449 * dwarf2/expr.h: Rename from dwarf2expr.h.
8450 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8451 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8452 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8453 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8454 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8455 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8456 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8457 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8458 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8459 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8460 * dwarf2/loc.c: Rename from dwarf2loc.c.
8461 * dwarf2/loc.h: Rename from dwarf2loc.h.
8462 * dwarf2/read.c: Rename from dwarf2read.c.
8463 * dwarf2/read.h: Rename from dwarf2read.h.
8464 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8465 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8466 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8467 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8468 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8469 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8470 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8471 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8472 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8473 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8474 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8475 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8476 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8477 Update.
8478 * Makefile.in (COMMON_SFILES): Update.
8479 (HFILES_NO_SRCDIR): Update.
8480
9e35d499
TT
84812020-02-08 Tom Tromey <tom@tromey.com>
8482
8483 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8484 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8485
1eba2311
TT
84862020-02-08 Tom Tromey <tom@tromey.com>
8487
8488 * dwarf2read.h (struct die_info): Don't declare.
8489
e41c2da2
TT
84902020-02-08 Tom Tromey <tom@tromey.com>
8491
8492 * dwarf2read.h (die_info_ptr): Remove typedef.
8493
4fc6c0d5
TT
84942020-02-08 Tom Tromey <tom@tromey.com>
8495
8496 * dwarf2read.c (read_call_site_scope)
8497 (handle_data_member_location, dwarf2_add_member_fn)
8498 (mark_common_block_symbol_computed, read_common_block)
8499 (attr_to_dynamic_prop, partial_die_info::read)
8500 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8501 (dwarf2_symbol_mark_computed, set_die_type): Update.
8502 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8503 method.
8504 (attr_form_is_block): Don't declare.
8505 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8506
cd6c91b4
TT
85072020-02-08 Tom Tromey <tom@tromey.com>
8508
8509 * dwarf2read.c (dwarf2_find_base_address, )
8510 (read_call_site_scope, rust_containing_type)
8511 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8512 (handle_data_member_location, dwarf2_add_member_fn)
8513 (get_alignment, read_structure_type, process_structure_scope)
8514 (mark_common_block_symbol_computed, read_common_block)
8515 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8516 (partial_die_info::read, read_attribute_value, new_symbol)
8517 (lookup_die_type, dwarf2_get_ref_die_offset)
8518 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8519 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8520 (dwarf2_symbol_mark_computed): Update.
8521 * dwarf2/attribute.h (struct attribute) <value_as_address,
8522 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8523 methods.
8524 (value_as_address, attr_form_is_section_offset)
8525 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8526 * dwarf2/attribute.c (attribute::value_as_address)
8527 (attribute::form_is_section_offset, attribute::form_is_constant)
8528 (attribute::form_is_ref): Now methods.
8529
162dce55
TT
85302020-02-08 Tom Tromey <tom@tromey.com>
8531
8532 * dwarf2read.c (struct attribute, DW_STRING)
8533 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8534 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8535 (attr_form_is_block, attr_form_is_section_offset)
8536 (attr_form_is_constant, attr_form_is_ref): Move.
8537 * dwarf2/attribute.h: New file.
8538 * dwarf2/attribute.c: New file, from dwarf2read.c.
8539 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8540
3054dd54
TT
85412020-02-08 Tom Tromey <tom@tromey.com>
8542
8543 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8544 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8545 Move.
8546 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8547 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8548 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8549 abbrev.c.
8550 * dwarf2/abbrev.h: New file.
8551 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8552 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8553
96b79293
TT
85542020-02-08 Tom Tromey <tom@tromey.com>
8555
8556 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8557 (dwarf2_section_size, dwarf2_get_section_info)
8558 (create_signatured_type_table_from_debug_names)
8559 (create_addrmap_from_aranges, read_debug_names_from_section)
8560 (get_gdb_index_contents_from_section, read_comp_unit_head)
8561 (error_check_comp_unit_head, read_abbrev_offset)
8562 (create_debug_type_hash_table, init_cu_die_reader)
8563 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8564 (read_comp_units_from_section, create_cus_hash_table)
8565 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8566 (create_dwp_v2_section, dwarf2_rnglists_process)
8567 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8568 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8569 (read_indirect_string_from_dwz, read_addr_index_1)
8570 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8571 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8572 (fill_in_loclist_baton): Update.
8573 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8574 get_containing_section, get_bfd_owner, get_bfd_section,
8575 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8576 (dwarf2_read_section, get_section_name, get_section_file_name)
8577 (get_containing_section, get_section_bfd_owner)
8578 (get_section_bfd_section, get_section_name, get_section_file_name)
8579 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8580 declare.
8581 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8582 (dwarf2_section_info::get_bfd_owner)
8583 (dwarf2_section_info::get_bfd_section)
8584 (dwarf2_section_info::get_name)
8585 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8586 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8587 (dwarf2_section_info::read): Now methods.
8588 * dwarf-index-write.c (class debug_names): Update.
8589
2c86cff9
TT
85902020-02-08 Tom Tromey <tom@tromey.com>
8591
8592 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8593 Move to dwarf2/section.h.
8594 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8595 (get_section_bfd_section, get_section_name)
8596 (get_section_file_name, get_section_id, get_section_flags)
8597 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8598 dwarf2/section.c.
8599 * dwarf2/section.h: New file.
8600 * dwarf2/section.c: New file, from dwarf2read.c.
8601 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8602
f4382c45
TT
86032020-02-08 Tom Tromey <tom@tromey.com>
8604
8605 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8606 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8607 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8608 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8609 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8610 * dwarf2/leb.h: New file, from dwarf2read.c.
8611 * dwarf2/leb.c: New file, from dwarf2read.c.
8612 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8613 Remove.
8614 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8615 (COMMON_SFILES): Add dwarf2/leb.c.
8616
01840b7a
JB
86172020-02-08 Joel Brobecker <brobecker@adacore.com>
8618
8619 GDB 9.1 released.
8620
dfcb27e4
IB
86212020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8622
8623 PR gdb/25190:
aac66a4c
SM
8624 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8625 * gdb/remote.c (remote_console_output): Update.
8626 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8627 (ui_file_puts): ...this.
8628 * gdb/ui-file.h (ui_file_puts): Add declaration.
8629 * gdb/utils.c (emit_style_escape): Update.
8630 (flush_wrap_buffer): Update.
8631 (fputs_maybe_filtered): Update.
8632 (fputs_unfiltered): Add function.
dfcb27e4 8633
faa17681
IB
86342020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8635
aac66a4c
SM
8636 * gdb/event-loop.c (gdb_wait_for_event): Update.
8637 * gdb/printcmd.c (printf_command): Update.
8638 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8639 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8640 (gdb_os_flush_stderr): Update.
8641 * gdb/remote.c (remote_console_output): Update.
8642 * gdb/ui-file.c (gdb_flush): Rename to...
8643 (ui_file_flush): ...this.
8644 (stderr_file::write): Update.
8645 (stderr_file::puts): Update.
8646 * gdb/ui-file.h (gdb_flush): Rename to...
8647 (ui_file_flush): ...this.
8648 * gdb/utils.c (gdb_flush): Add function.
8649 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8650
5abbbe1d
TT
86512020-02-07 Tom Tromey <tromey@adacore.com>
8652
8653 PR breakpoints/24915:
8654 * source.c (find_and_open_source): Do not check basenames_may_differ.
8655
919adfe8
TT
86562020-02-07 Tom Tromey <tom@tromey.com>
8657
8658 * README: Update gdbserver documentation.
8659 * gdbserver: Move to top level.
8660 * configure.tgt (build_gdbserver): Remove.
8661 * configure.ac: Remove --enable-gdbserver.
8662 * configure: Rebuild.
8663 * Makefile.in (distclean): Don't mention gdbserver.
8664
1d5d29e7
SV
86652020-02-06 Shahab Vahedi <shahab@synopsys.com>
8666
8667 * source-cache.c (source_cache::ensure): Surround
8668 get_plain_source_lines with a try/catch.
8669 (source_cache::get_line_charpos): Get rid of try/catch
8670 and only check for the return value of "ensure".
8671 * tui/tui-source.c (tui_source_window::set_contents):
8672 Simplify "nlines" calculation.
8673
6eb1129c
SV
86742020-02-06 Shahab Vahedi <shahab@synopsys.com>
8675
8676 * MAINTAINERS (Write After Approval): Add myself.
8677
c6a42d11
CB
86782020-02-05 Christian Biesinger <cbiesinger@google.com>
8679
8680 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8681 function call.
8682
c8ecdda6
CB
86832020-02-05 Christian Biesinger <cbiesinger@google.com>
8684
8685 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8686
f6480e70
MR
86872020-02-05 Maciej W. Rozycki <macro@wdc.com>
8688
8689 * nat/riscv-linux-tdesc.h: New file.
8690 * nat/riscv-linux-tdesc.c: New file, taking code from...
8691 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8692 ... here.
8693 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8694 NATDEPFILES.
8695
dcc9fbc6
AB
86962020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8697
8698 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8699 we don't set the fake simulator ptid to the null_ptid.
8700
719546c4
SM
87012020-02-03 Simon Marchi <simon.marchi@efficios.com>
8702
8703 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8704 * gdbthread.h (class thread_info) <resumed>: Likewise.
8705 * infrun.c (resume_1): Likewise.
8706 (proceed): Likewise.
8707 (infrun_thread_stop_requested): Likewise.
8708 (stop_all_threads): Likewise.
8709 (handle_inferior_event): Likewise.
8710 (restart_threads): Likewise.
8711 (finish_step_over): Likewise.
8712 (keep_going_stepped_thread): Likewise.
8713 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8714 (linux_handle_extended_wait): Likewise.
8715 * record-btrace.c (get_thread_current_frame_id): Likewise.
8716 * record-full.c (record_full_wait_1): Likewise.
8717 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8718 * target.c (target_resume): Likewise.
8719 * thread.c (set_running_thread): Likewise.
8720
e409c542
AKS
87212020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8722
8723 * f-valprint.c (f77_print_array_1): Changed datatype of index
8724 variable to LONGEST from int to enable it to contain bound
8725 values correctly.
8726
ee98c0da
MR
87272020-02-03 Maciej W. Rozycki <macro@wdc.com>
8728
8729 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8730 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8731 offsets according to FLEN determined.
8732 (riscv_linux_nat_target::read_description): Determine FLEN
8733 dynamically.
8734 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8735 according to FLEN determined.
8736 (riscv_linux_nat_target::store_registers): Likewise.
8737
aa66aac4
SV
87382020-02-01 Shahab Vahedi <shahab@synopsys.com>
8739
8740 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8741 when reg->group is empty and reggroup is not.
8742
fd9faca8
TT
87432020-01-31 Tom Tromey <tromey@adacore.com>
8744
8745 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8746 Call beneath target's mourn_inferior after unpushing.
8747
42330a68
AB
87482020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8749
8750 PR tui/9765
8751 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8752 have enough lines to fill the screen, still return the lowest
8753 address we found.
8754
7a27a45b
AB
87552020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8756
8757 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8758 '-', '<', and '>' commands.
8759
c47f70e2
PA
87602020-01-29 Pedro Alves <palves@redhat.com>
8761 Sergio Durigan Junior <sergiodj@redhat.com>
8762
8763 * infcmd.c (construct_inferior_arguments): Assert that
8764 'argc' is greater than 0.
8765
5133a315
LM
87662020-01-29 Luis Machado <luis.machado@linaro.org>
8767
8768 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8769 (BRK_INSN_MASK): Define to 0xd4200000.
8770 (aarch64_program_breakpoint_here_p): New function.
8771 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8772 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8773 breakpoint.c.
8774 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8775 breakpoint.h
8776 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8777 call gdbarch_program_breakpoint_here_p.
8778 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8779 default_program_breakpoint_here_p, changed return type to bool and
8780 simplified.
8781 * breakpoint.h (program_breakpoint_here): Moved prototype to
8782 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8783 return type to bool.
8784 * gdbarch.c: Regenerate.
8785 * gdbarch.h: Regenerate.
8786 * gdbarch.sh (program_breakpoint_here_p): New method.
8787 * infrun.c (handle_signal_stop): Call
8788 gdbarch_program_breakpoint_here_p.
8789
168f8c6b
TT
87902020-01-26 Tom Tromey <tom@tromey.com>
8791
8792 * ctfread.c (struct ctf_fp_info): Reindent.
8793 (_initialize_ctfread): Remove.
8794
128a391f
TT
87952020-01-26 Tom Tromey <tom@tromey.com>
8796
8797 * psymtab.c (partial_map_expand_apply)
8798 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8799 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8800 (psym_print_stats, psym_expand_symtabs_for_function)
8801 (psym_map_symbol_filenames, psym_map_matching_symbols)
8802 (psym_expand_symtabs_matching)
8803 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8804 (maintenance_check_psymtabs): Use new methods.
8805 * psympriv.h (struct partial_symtab) <readin_p,
8806 get_compunit_symtab>: New methods.
8807 <readin, compunit_symtab>: Remove members.
8808 (struct standard_psymtab): New.
8809 (struct legacy_psymtab): Derive from standard_psymtab.
8810 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8811 standard_psymtab.
8812 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8813
0494dbec
TT
88142020-01-26 Tom Tromey <tom@tromey.com>
8815
8816 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8817 read_dependencies. Add assert.
8818 * psymtab.c (partial_symtab::read_dependencies): New method.
8819 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8820 method.
8821 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8822 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8823 read_dependencies.
8824 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8825 Add assert.
8826
8566b89b
TT
88272020-01-26 Tom Tromey <tom@tromey.com>
8828
8829 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8830 Call expand_psymtab.
8831 (xcoff_read_symtab): Call expand_psymtab.
8832 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8833 legacy_expand_psymtab.
8834 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8835 method.
8836 (struct legacy_psymtab) <expand_psymtab>: Implement.
8837 <legacy_expand_psymtab>: New member.
8838 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8839 (parse_partial_symbols): Set legacy_expand_psymtab.
8840 (psymtab_to_symtab_1): Change argument order. Call
8841 expand_psymtab.
8842 (new_psymtab): Set legacy_expand_psymtab.
8843 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8844 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8845 expand_psymtab.
8846 (dwarf2_psymtab::expand_psymtab): Rename from
8847 psymtab_to_symtab_1. Call expand_psymtab.
8848 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8849 (dbx_end_psymtab): Likewise.
8850 (dbx_psymtab_to_symtab_1): Change argument order. Call
8851 expand_psymtab.
8852 (dbx_read_symtab): Call expand_psymtab.
8853 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8854 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8855 (ctf_psymtab::read_symtab): Call expand_psymtab.
8856
077cbab2
TT
88572020-01-26 Tom Tromey <tom@tromey.com>
8858
8859 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8860 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8861 messages.
8862 * mdebugread.c (mdebug_read_symtab): Remove prints.
8863 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8864 assert.
8865 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8866
891813be
TT
88672020-01-26 Tom Tromey <tom@tromey.com>
8868
8869 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8870 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8871 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8872 legacy_symtab.
8873 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8874 * psymtab.c (psymtab_to_symtab): Call method.
8875 (dump_psymtab): Update.
8876 * psympriv.h (struct partial_symtab): Add virtual destructor.
8877 <read_symtab>: New method.
8878 (struct legacy_symtab): New.
8879 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8880 (struct pst_map) <pst>: Now a legacy_psymtab.
8881 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8882 (new_psymtab): Use legacy_psymtab.
8883 * dwarf2read.h (struct dwarf2_psymtab): New.
8884 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8885 * dwarf2read.c (dwarf2_create_include_psymtab)
8886 (dwarf2_build_include_psymtabs, create_type_unit_group)
8887 (create_partial_symtab, process_psymtab_comp_unit_reader)
8888 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8889 (set_partial_user): Use dwarf2_psymtab.
8890 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8891 (psymtab_to_symtab_1, process_full_comp_unit)
8892 (process_full_type_unit, dwarf2_ranges_read)
8893 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8894 (dwarf_decode_lines): Use dwarf2_psymtab.
8895 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8896 (add_address_entry_worker, write_one_signatured_type)
8897 (recursively_count_psymbols, recursively_write_psymbols)
8898 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8899 (write_debug_names): Likewise.
8900 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8901 <pst>: Now a legacy_psymtab.
8902 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8903 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8904 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8905 * ctfread.c (struct ctf_psymtab): New.
8906 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8907 ctf_psymtab.
8908 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8909 (create_partial_symtab): Return a ctf_psymtab.
8910 (scan_partial_symbols): Update.
8911
c3693a1d
TT
89122020-01-26 Tom Tromey <tom@tromey.com>
8913
8914 * xcoffread.c (xcoff_start_psymtab): Use new.
8915 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8916 renamed from start_psymtab_common.
8917 * psympriv.h (struct partial_symtab): Add new constructor.
8918 (start_psymtab_common): Don't declare.
8919 * mdebugread.c (parse_partial_symbols): Use new.
8920 * dwarf2read.c (create_partial_symtab): Use new.
8921 * dbxread.c (start_psymtab): Use new.
8922 * ctfread.c (create_partial_symtab): Use new.
8923
32caafd0
TT
89242020-01-26 Tom Tromey <tom@tromey.com>
8925
8926 * xcoffread.c (xcoff_end_psymtab): Use new.
8927 * psymtab.c (start_psymtab_common): Use new.
8928 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8929 Update.
8930 * psympriv.h (struct partial_symtab): Add parameters to
8931 constructor. Don't inline.
8932 (allocate_psymtab): Don't declare.
8933 * mdebugread.c (new_psymtab): Use new.
8934 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8935 * dbxread.c (dbx_end_psymtab): Use new.
8936
abaa2f23
TT
89372020-01-26 Tom Tromey <tom@tromey.com>
8938
8939 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8940 allocate_psymtab. Update documentation.
8941 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8942 allocate_psymtab. Do not use new.
8943 (allocate_psymtab): Use new. Update.
8944
6d94535f
TT
89452020-01-26 Tom Tromey <tom@tromey.com>
8946
8947 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8948 * psymtab.c (psym_print_stats): Update.
8949 * psympriv.h (struct partial_symtab) <readin,
8950 psymtabs_addrmap_supported, anonymous>: Now bool.
8951 * mdebugread.c (psymtab_to_symtab_1): Update.
8952 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
8953 (build_type_psymtabs_reader, psymtab_to_symtab_1)
8954 (process_full_comp_unit, process_full_type_unit): Update.
8955 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8956 * ctfread.c (psymtab_to_symtab): Update.
8957
6f17252b
TT
89582020-01-26 Tom Tromey <tom@tromey.com>
8959
8960 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
8961 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
8962 * psymtab.c (psymtab_storage): Delete psymtabs.
8963 (psymtab_storage::allocate_psymtab): Use new.
8964 (psymtab_storage::discard_psymtab): Use delete.
8965 * psympriv.h (struct partial_symtab): Add constructor and
8966 initializers.
8967
f6f1cebc
TT
89682020-01-26 Tom Tromey <tom@tromey.com>
8969
8970 * machoread.c: Do not include psympriv.h.
8971
e47e48f6
PW
89722020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8973
8974 * NEWS: Mention the new option and the set/show commands.
8975
a2fedca9
PW
89762020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8977
8978 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
8979 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
8980 (validate_exec_file): New variables, enums, functions.
8981 (exec_file_locate_attach, print_section_info): Style the filenames.
8982 (_initialize_exec): Install show_exec_file_mismatch_command and
8983 set_exec_file_mismatch_command.
8984 * gdbcore.h (validate_exec_file): Declare.
8985 * infcmd.c (attach_command): Call validate_exec_file.
8986 * remote.c ( remote_target::remote_add_inferior): Likewise.
8987
7ffa82e1
AB
89882020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8989
8990 * frame.c (find_frame_sal): Move call to get_next_frame into more
8991 inner scope.
8992 * inline-frame.c (inilne_state) <inline_state>: Update argument
8993 types.
8994 (inilne_state) <skipped_symbol>: Rename to...
8995 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
8996 (skip_inline_frames): Build vector of skipped symbols and use this
8997 to reate the inline_state.
8998 (inline_skipped_symbol): Add a comment and some assertions, fetch
8999 skipped symbol from the list.
9000
3d92a3e3
AB
90012020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9002
9003 * buildsym.c (lte_is_less_than): Delete.
9004 (buildsym_compunit::end_symtab_with_blockvector): Create local
9005 lambda function to sort line table entries, and use
9006 std::stable_sort instead of std::sort.
9007 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9008 markers when looking for a previous line.
9009
94a72be7
AB
90102020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9011
9012 * dwarf2read.c (lnp_state_machine::record_line): Include
9013 end_sequence parameter in debug print out. Record the line if we
9014 are at an end_sequence marker even if it's not the start of a
9015 statement.
9016 * symmisc.c (maintenance_print_one_line_table): Print end of
9017 sequence markers with 'END' not '0'.
9018
53af73bf
PA
90192020-01-24 Pedro Alves <palves@redhat.com>
9020
9021 PR gdb/25410
9022 * thread.c (scoped_restore_current_thread::restore): Use
9023 switch_to_inferior_no_thread.
9024 * exec.c: Include "progspace-and-thread.h".
9025 (add_target_sections, remove_target_sections):
9026 scoped_restore_current_pspace_and_thread instead of
9027 scoped_restore_current_thread.
9028 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9029 and aspace to the inferior before calling clone_program_space.
9030 Remove stale comment.
9031
3050c6f4
CB
90322020-01-24 Christian Biesinger <cbiesinger@google.com>
9033
9034 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9035 (arm_netbsd_nat_target::fetch_registers): ...this.
9036 (arm_nbsd_nat_target::store_registers): Rename to...
9037 (arm_netbsd_nat_target::store_registers): ...this.
9038
73685c7e
CB
90392020-01-24 Christian Biesinger <cbiesinger@google.com>
9040
9041 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9042 register_t.
9043
89203d40
CB
90442020-01-24 Christian Biesinger <cbiesinger@google.com>
9045
9046 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9047 Update comment.
9048 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9049 Likewise.
9050 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9051 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9052 the correct replacement (iterate_over_regset_sections).
9053 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9054 Update comment.
9055
1ba1ac88
AB
90562020-01-24 Graham Markall <graham.markall@embecosm.com>
9057
9058 PR gdb/23718
9059 * gdb/python/python.c (execute_gdb_command): Call
9060 async_enable_stdin in catch block.
9061
f3364a6d
AB
90622020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9063
9064 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9065 SWITCH_THRU_ALL_UIS.
9066
733d0a67
AB
90672020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9068
9069 PR tui/9765
9070 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9071 comment, add extra parameter, and update to store previous symbol
9072 when appropriate.
9073 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9074 add extra parameter.
9075 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9076 remove unneeded parameter, add try/catch around gdb_print_insn,
9077 rewrite to add items to asm_lines vector.
9078 (tui_find_backward_disassembly_start_address): New function.
9079 (tui_find_disassembly_address): Updated throughout.
9080 (tui_disasm_window::set_contents): Update for changes to
9081 tui_disassemble.
9082 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9083 number of lines to scroll.
9084
b3b3bada
SM
90852020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9086
9087 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9088 (SECT_OFF_DATA): Likewise.
9089 (SECT_OFF_RODATA): Likewise.
9090 (SECT_OFF_TEXT): Likewise.
9091 (SECT_OFF_BSS): Likewise.
9092 (struct objfile) <text_section_offset, data_section_offset>: New
9093 methods.
9094 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9095 objfile::text_section_offset.
9096 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9097 * coffread.c (coff_symtab_read): Likewise.
9098 (enter_linenos): Likewise.
9099 (process_coff_symbol): Likewise.
9100 * ctfread.c (get_objfile_text_range): Likewise.
9101 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9102 Use objfile::data_section_offset.
9103 * dwarf2-frame.c (execute_cfa_program): Use
9104 objfile::text_section_offset.
9105 (dwarf2_frame_find_fde): Likewise.
9106 * dwarf2read.c (create_addrmap_from_index): Likewise.
9107 (create_addrmap_from_aranges): Likewise.
9108 (dw2_find_pc_sect_compunit_symtab): Likewise.
9109 (process_psymtab_comp_unit_reader): Likewise.
9110 (add_partial_symbol): Likewise.
9111 (add_partial_subprogram): Likewise.
9112 (process_full_comp_unit): Likewise.
9113 (read_file_scope): Likewise.
9114 (read_func_scope): Likewise.
9115 (read_lexical_block_scope): Likewise.
9116 (read_call_site_scope): Likewise.
9117 (dwarf2_rnglists_process): Likewise.
9118 (dwarf2_ranges_process): Likewise.
9119 (dwarf2_ranges_read): Likewise.
9120 (dwarf_decode_lines_1): Likewise.
9121 (new_symbol): Likewise.
9122 (dwarf2_fetch_die_loc_sect_off): Likewise.
9123 (dwarf2_per_cu_text_offset): Likewise.
9124 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9125 * hppa-tdep.c (read_unwind_info): Likewise.
9126 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9127 * psympriv.h (struct partial_symtab): Likewise.
9128 * psymtab.c (find_pc_sect_psymtab): Likewise.
9129 * solib-svr4.c (enable_break): Likewise.
9130 * stap-probe.c (relocate_address): Use
9131 objfile::data_section_offset.
9132 * xcoffread.c (enter_line_range): Use
9133 objfile::text_section_offset.
9134 (read_xcoff_symtab): Likewise.
9135
ab53f382
SM
91362020-01-23 Simon Marchi <simon.marchi@efficios.com>
9137
9138 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9139 declaration to narrower scopes.
9140
e7eee665
SM
91412020-01-23 Simon Marchi <simon.marchi@efficios.com>
9142
9143 * darwin-nat.h (struct darwin_exception_msg, enum
9144 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9145 Move up.
9146 (class darwin_nat_target) <wait_1, check_new_threads,
9147 decode_exception_message, decode_message, stop_inferior,
9148 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9149 * darwin-nat.c (darwin_check_new_threads): Rename to...
9150 (darwin_nat_target::check_new_threads): ... this.
9151 (darwin_suspend_inferior_it): Remove.
9152 (darwin_decode_exception_message): Rename to...
9153 (darwin_nat_target::decode_exception_message): ... this.
9154 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9155 (darwin_decode_message): Rename to...
9156 (darwin_nat_target::decode_message): ... this.
9157 (cancel_breakpoint): Rename to...
9158 (darwin_nat_target::cancel_breakpoint): ... this.
9159 (darwin_wait): Rename to...
9160 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9161 instead of iterate_over_inferiors.
9162 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9163 (darwin_stop_inferior): Rename to...
9164 (darwin_nat_target::stop_inferior): ... this.
9165 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9166 (darwin_init_thread_list): Rename to...
9167 (darwin_nat_target::init_thread_list): ... this.
9168 (darwin_ptrace_him): Rename to...
9169 (darwin_nat_target::ptrace_him): ... this.
9170 (darwin_nat_target::create_inferior): Pass lambda function to
9171 fork_inferior.
9172 (darwin_nat_target::detach): Call stop_inferior instead of
9173 darwin_stop_inferior.
9174 * fork-inferior.h (fork_inferior): Change init_trace_fun
9175 parameter to gdb::function_view.
9176 * fork-inferior.c (fork_inferior): Likewise.
9177
c162ed3e
HD
91782020-01-23 Hannes Domani <ssbssa@yahoo.de>
9179
9180 * i386-cygwin-tdep.c (core_process_module_section): Update.
9181 * windows-nat.c (struct lm_info_windows): Add text_offset.
9182 (windows_xfer_shared_libraries): Update.
9183 * windows-tdep.c (windows_xfer_shared_library):
9184 Add text_offset_cached argument.
9185 * windows-tdep.h (windows_xfer_shared_library): Update.
9186
a1237872
SM
91872020-01-21 Simon Marchi <simon.marchi@efficios.com>
9188
9189 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9190
b3ee6dd9
SM
91912020-01-21 Simon Marchi <simon.marchi@efficios.com>
9192
9193 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9194 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9195 replace with range-based for.
9196 (gdbsim_interrupt_inferior): Remove.
9197 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9198 with a range-based for. Inline code from
9199 gdbsim_interrupt_inferior.
9200
f9fac3c8
SM
92012020-01-21 Simon Marchi <simon.marchi@efficios.com>
9202
9203 * infrun.c (proceed): Fix indentation.
9204
f6474de9
TT
92052020-01-21 Tom Tromey <tromey@adacore.com>
9206
9207 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9208 * python/python.c (python_extension_ops): Update.
9209 (gdbpy_colorize): New function.
9210 * python/lib/gdb/__init__.py (colorize): New function.
9211 * extension.h (ext_lang_colorize): Declare.
9212 * extension.c (ext_lang_colorize): New function.
9213 * extension-priv.h (struct extension_language_ops) <colorize>: New
9214 member.
9215 * cli/cli-style.c (_initialize_cli_style): Update help text.
9216
f0c702d4
LM
92172020-01-21 Luis Machado <luis.machado@linaro.org>
9218
9219 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9220 <cond>: Change type to bool.
9221 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9222 (aarch64_displaced_step_cb): Likewise.
9223 (aarch64_displaced_step_tb): Likewise.
9224
1ab139e5
LM
92252020-01-21 Luis Machado <luis.machado@linaro.org>
9226
9227 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9228 output.
9229
0c271889
LM
92302020-01-21 Luis Machado <luis.machado@linaro.org>
9231
9232 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9233 <pc_adjust>: Adjust the documentation.
9234 (aarch64_displaced_step_fixup): Check if PC really moved before
9235 adjusting it.
9236
4d89c1c7
TT
92372020-01-19 Tom Tromey <tom@tromey.com>
9238
9239 * disasm.c (~gdb_disassembler): New destructor.
9240 (gdb_buffered_insn_length): Call disassemble_free_target.
9241 * disasm.h (class gdb_disassembler): Declare destructor. Use
9242 DISABLE_COPY_AND_ASSIGN.
9243
c0ab21c2
TT
92442020-01-19 Tom Tromey <tom@tromey.com>
9245
9246 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9247 (die_reader_func_ftype): Remove.
9248 (cutu_reader): New class.
9249 (dw2_get_file_names_reader): Remove "data" parameter.
9250 (dw2_get_file_names): Use cutu_reader.
9251 (create_debug_type_hash_table): Update.
9252 (read_cutu_die_from_dwo): Update comment.
9253 (lookup_dwo_unit): Add dwo_name parameter.
9254 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9255 die_reader_func_ftype and data parameters.
9256 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9257 Remove die_reader_func_ftype and data parameters.
9258 (~cutu_reader): New; from init_cutu_and_read_dies.
9259 (cutu_reader::cutu_reader): Rename from
9260 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9261 and data parameters.
9262 (init_cutu_and_read_dies_simple): Remove.
9263 (struct process_psymtab_comp_unit_data): Remove.
9264 (process_psymtab_comp_unit_reader): Remove data parameter; add
9265 want_partial_unit and pretend_language parameters.
9266 (process_psymtab_comp_unit): Use cutu_reader.
9267 (build_type_psymtabs_reader): Remove data parameter.
9268 (build_type_psymtabs_1): Use cutu_reader.
9269 (process_skeletonless_type_unit): Likewise.
9270 (load_partial_comp_unit_reader): Remove.
9271 (load_partial_comp_unit): Use cutu_reader.
9272 (load_full_comp_unit_reader): Remove.
9273 (load_full_comp_unit): Use cutu_reader.
9274 (struct create_dwo_cu_data): Remove.
9275 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9276 dwo_unit parameters.
9277 (create_cus_hash_table): Use cutu_reader.
9278 (struct dwarf2_read_addr_index_data): Remove.
9279 (dwarf2_read_addr_index_reader): Remove.
9280 (dwarf2_read_addr_index): Use cutu_reader.
9281 (read_signatured_type_reader): Remove.
9282 (read_signatured_type): Use cutu_reader.
9283
45bbae5c
TT
92842020-01-19 Tom Tromey <tom@tromey.com>
9285
9286 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9287 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9288 (tui_wrefresh): Declare.
9289 * tui/tui-wingeneral.c (suppress_output): New global.
9290 (tui_suppress_output, ~tui_suppress_output): New constructor and
9291 destructor.
9292 (tui_wrefresh): New function.
9293 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9294 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9295 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9296 method.
9297 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9298 tui_wrefresh.
9299 (tui_data_window::no_refresh): New method.
9300 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9301 (tui_reg_command): Use tui_suppress_output
9302 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9303 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9304 method.
9305 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9306
4f13c1c0
TT
93072020-01-19 Tom Tromey <tom@tromey.com>
9308
9309 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9310 Handle case where symtab is null.
9311
fa47e446
SM
93122020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9313
9314 * linux-fork.c (one_fork_p): Simplify.
9315
26f42329
SM
93162020-01-17 Simon Marchi <simon.marchi@efficios.com>
9317
9318 * top.c (struct qt_args): Remove.
9319 (kill_or_detach): Change return type to void, replace `void *`
9320 parameter with a proper one.
9321 (print_inferior_quit_action): Likewise.
9322 (quit_confirm): Use range-based for loop to iterate over inferiors.
9323 (quit_force): Likewise.
9324
a9ac81b1
SM
93252020-01-17 Simon Marchi <simon.marchi@efficios.com>
9326
9327 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9328 `void *` parameter with proper parameters.
9329 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9330 (print_one_inferior): Change return type to void, replace `void *`
9331 parameter with proper parameters.
9332 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9333 inferiors.
9334 (get_other_inferior): Remove.
9335 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9336 inferiors.
9337
788eca49
SM
93382020-01-17 Simon Marchi <simon.marchi@efficios.com>
9339
9340 * mi/mi-interp.c (report_initial_inferior): Remove.
9341 (mi_interp::init): Use range-based for to iterate over inferiors.
9342
d9bc85b6
SM
93432020-01-17 Simon Marchi <simon.marchi@efficios.com>
9344
9345 * python/py-inferior.c (build_inferior_list): Remove.
9346 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9347
40c94099
CB
93482020-01-16 Christian Biesinger <cbiesinger@google.com>
9349
9350 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9351 (btrace_stitch_trace): Likewise.
9352 * charset.c (intermediate_encoding): Likewise (vaild).
9353 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9354 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9355 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9356
e0cdfe3c
HD
93572020-01-16 Hannes Domani <ssbssa@yahoo.de>
9358
9359 * windows-tdep.c (windows_get_tlb_type):
9360 Add rtl_user_process_parameters type.
9361
790f1718 93622020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9363 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9364
9365 PR build/24805
9366 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9367 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9368 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9369 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9370 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9371 (ps_plog): Redeclare exported functions with default visibility.
9372
3112ed97
NA
93732020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9374
9375 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9376 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9377
8dc3273e
SM
93782020-01-15 Simon Marchi <simon.marchi@efficios.com>
9379
9380 * infcmd.c (post_create_inferior): Use get_thread_regcache
9381 instead of get_current_regcache.
9382
ff47f4f0
TT
93832020-01-14 Tom Tromey <tom@tromey.com>
9384
9385 PR symtab/12535:
9386 * python/python.c (gdbpy_decode_line): Treat empty string the same
9387 as no argument.
9388
975f45b7
TT
93892020-01-14 Tom Tromey <tom@tromey.com>
9390
9391 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9392
25e57356
TT
93932020-01-14 Tom Tromey <tom@tromey.com>
9394
9395 * nat/linux-btrace.c: Don't include <config.h>.
9396 * nat/linux-ptrace.c: Don't include <config.h>.
9397 * nat/x86-linux-dregs.c: Don't include <config.h>.
9398
05ea2a05
TT
93992020-01-14 Tom Tromey <tom@tromey.com>
9400
9401 * configure: Rebuild.
9402 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9403
01027315
TT
94042020-01-14 Tom Tromey <tom@tromey.com>
9405
9406 * nat/x86-linux-dregs.c: Include configh.h.
9407 * nat/linux-ptrace.c: Include configh.h.
9408 * nat/linux-btrace.c: Include configh.h.
9409 * defs.h: Include config.h, bfd.h.
9410 * configure.ac: Don't source common.host.
9411 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9412 * configure: Rebuild.
9413 * acinclude.m4: Update path.
9414 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9415 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9416 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9417 (CLIBS): Add LIBSUPPORT.
9418 (CDEPS): Likewise.
9419 (COMMON_SFILES): Remove gdbsupport files.
9420 (HFILES_NO_SRCDIR): Likewise.
9421 (stamp-version): Update path to create-version.sh.
9422 (ALLDEPFILES): Remove gdbsupport files.
9423
b2ceabe8
TT
94242020-01-14 Tom Tromey <tom@tromey.com>
9425
9426 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9427 USE_WIN32API when needed.
9428 * configure.ac (USE_WIN32API): Don't define.
9429 (WIN32LIBS): Use WIN32APILIBS.
9430 * configure: Rebuild.
9431
25c51f71
TT
94322020-01-14 Tom Tromey <tom@tromey.com>
9433
9434 * configure: Rebuild.
9435 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9436
717c684d
BE
94372020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9438
9439 * skip.c (skip_function_command): Make skip w/o arguments use the
9440 name of the inlined function if pc is inside any inlined function.
9441
7da6a5b9
LM
94422020-01-14 Luis Machado <luis.machado@linaro.org>
9443
9444 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9445 * infrun.c (resume_1): Likewise.
9446 (handle_inferior_event): Remove stale comment.
9447 * linux-nat.c (linux_nat_target::resume): Update comments.
9448 (save_stop_reason): Likewise.
9449 (linux_nat_filter_event): Likewise.
9450 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9451
44e4c775
AB
94522020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9453
9454 * elfread.c (record_minimal_symbol): Set section index to 0 for
9455 non-allocatable sections.
9456
18a8505e
AT
9457
94582020-01-13 Ali Tamur <tamur@google.com>
9459
9460 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9461 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9462 to gdb::optional. Update comments.
9463 (dwo_file): Update comments.
9464 (read_attribute): Update API to take an additional out parameter,
9465 need_reprocess. This is used to mark attributes that need other
9466 attributes (e.g. str_offsets_base) for correct computation which may not
9467 have been read yet.
9468 (read_attribute_reprocess): New function declaration.
9469 (read_addr_index): Likewise.
9470 (read_dwo_str_index): Likewise.
9471 (read_stub_str_index): Likewise.
9472 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9473 (lookup_addr_base): New function definition.
9474 (lookup_ranges_base): Likewise.
9475 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9476 lookup_ranges_base.
9477 (init_cutu_and_read_dies): Update comments.
9478 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9479 unit. This is used to inherit parent's str_offsets_base and addr_base.
9480 Update comments.
9481 (init_cutu_and_read_dies_simple): Reflect API changes.
9482 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9483 (create_cus_hash_table): Change API to take parent compile unit.
9484 Reflect API changes.
9485 (open_and_init_dwo_file): Reflect API changes.
9486 (dwarf2_get_pc_bounds): Update comments.
9487 (dwarf2_record_block_ranges): Likewise.
9488 (read_full_die_1): Change implementation to reprocess attributes that
9489 need str_offsets_base and addr_base.
9490 (partial_die_info::read): Likewise.
9491 (read_attribute_reprocess): New function definition.
9492 (read_attribute_value): Change API to take an additional out parameter,
9493 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9494 when a non-dwo compile unit has index based attributes.
9495 (read_attribute): Reflect API changes.
9496 (read_addr_index_1): Reflect API changes. Update comments.
9497 (dwarf2_read_addr_index_data): Reflect API changes.
9498 (dwarf2_read_addr_index): Likewise.
9499 (read_str_index): Change API and implementation. This becomes a helper
9500 to be used by the new string index related methods. Update error
9501 message and comments.
9502 (read_dwo_str_index): New function definition.
9503 (read_stub_str_index): Likewise.
9504 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9505 * symfile.h (dwarf2_debug_sections): Likewise.
9506 * xcoffread.c (dwarf2_debug_sections): Likewise.
9507
0cac9354
SM
95082020-01-13 Simon Marchi <simon.marchi@efficios.com>
9509
9510 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9511 core_reg_sect type to gdb_byte *.
9512 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9513 * cris-tdep.c (fetch_core_registers): Likewise.
9514 * corelow.c (core_target::get_core_register_section): Change
9515 type of `contents` to gdb::byte_vector.
9516
9a6d629c
AB
95172020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9518
9519 * tui/tui-wingeneral.c (box_win): Position the title in the center
9520 of the border.
9521
d8b2f9e3
SM
95222020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9523
9524 * corelow.c (core_target::get_core_register_section): Use
9525 std::vector instead of alloca.
9526
bb564c58
SM
95272020-01-13 Simon Marchi <simon.marchi@efficios.com>
9528
9529 * warning.m4: Add -Wmissing-declarations to build_warnings.
9530 * configure: Re-generate.
9531
6b366111
SM
95322020-01-13 Simon Marchi <simon.marchi@efficios.com>
9533
9534 * python/python.c (init__gdb_module): Add declaration.
9535
6c265988
SM
95362020-01-13 Simon Marchi <simon.marchi@efficios.com>
9537
9538 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9539 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9540 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9541 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9542 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9543 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9544 * ada-exp.y (_initialize_ada_exp): Add declaration.
9545 * ada-lang.c (_initialize_ada_language): Add declaration.
9546 * ada-tasks.c (_initialize_tasks): Add declaration.
9547 * agent.c (_initialize_agent): Add declaration.
9548 * aix-thread.c (_initialize_aix_thread): Add declaration.
9549 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9550 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9551 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9552 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9553 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9554 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9555 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9556 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9557 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9558 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9559 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9560 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9561 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9562 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9563 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9564 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9565 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9566 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9567 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9568 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9569 * annotate.c (_initialize_annotate): Add declaration.
9570 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9571 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9572 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9573 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9574 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9575 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9576 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9577 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9578 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9579 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9580 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9581 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9582 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9583 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9584 * auto-load.c (_initialize_auto_load): Add declaration.
9585 * auxv.c (_initialize_auxv): Add declaration.
9586 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9587 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9588 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9589 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9590 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9591 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9592 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9593 * breakpoint.c (_initialize_breakpoint): Add declaration.
9594 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9595 * btrace.c (_initialize_btrace): Add declaration.
9596 * charset.c (_initialize_charset): Add declaration.
9597 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9598 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9599 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9600 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9601 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9602 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9603 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9604 * coffread.c (_initialize_coffread): Add declaration.
9605 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9606 * compile/compile.c (_initialize_compile): Add declaration.
9607 * complaints.c (_initialize_complaints): Add declaration.
9608 * completer.c (_initialize_completer): Add declaration.
9609 * copying.c (_initialize_copying): Add declaration.
9610 * corefile.c (_initialize_core): Add declaration.
9611 * corelow.c (_initialize_corelow): Add declaration.
9612 * cp-abi.c (_initialize_cp_abi): Add declaration.
9613 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9614 * cp-support.c (_initialize_cp_support): Add declaration.
9615 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9616 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9617 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9618 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9619 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9620 * ctfread.c (_initialize_ctfread): Add declaration.
9621 * d-lang.c (_initialize_d_language): Add declaration.
9622 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9623 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9624 * dbxread.c (_initialize_dbxread): Add declaration.
9625 * dcache.c (_initialize_dcache): Add declaration.
9626 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9627 * disasm.c (_initialize_disasm): Add declaration.
9628 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9629 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9630 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9631 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9632 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9633 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9634 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9635 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9636 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9637 * elfread.c (_initialize_elfread): Add declaration.
9638 * exec.c (_initialize_exec): Add declaration.
9639 * extension.c (_initialize_extension): Add declaration.
9640 * f-lang.c (_initialize_f_language): Add declaration.
9641 * f-valprint.c (_initialize_f_valprint): Add declaration.
9642 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9643 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9644 * filesystem.c (_initialize_filesystem): Add declaration.
9645 * findcmd.c (_initialize_mem_search): Add declaration.
9646 * findvar.c (_initialize_findvar): Add declaration.
9647 * fork-child.c (_initialize_fork_child): Add declaration.
9648 * frame-base.c (_initialize_frame_base): Add declaration.
9649 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9650 * frame.c (_initialize_frame): Add declaration.
9651 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9652 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9653 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9654 * gcore.c (_initialize_gcore): Add declaration.
9655 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9656 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9657 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9658 * gdbarch.c (_initialize_gdbarch): Add declaration.
9659 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9660 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9661 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9662 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9663 * go-lang.c (_initialize_go_language): Add declaration.
9664 * go32-nat.c (_initialize_go32_nat): Add declaration.
9665 * guile/guile.c (_initialize_guile): Add declaration.
9666 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9667 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9668 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9669 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9670 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9671 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9672 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9673 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9674 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9675 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9676 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9677 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9678 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9679 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9680 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9681 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9682 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9683 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9684 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9685 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9686 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9687 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9688 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9689 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9690 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9691 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9692 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9693 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9694 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9695 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9696 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9697 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9698 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9699 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9700 * infcall.c (_initialize_infcall): Add declaration.
9701 * infcmd.c (_initialize_infcmd): Add declaration.
9702 * inflow.c (_initialize_inflow): Add declaration.
9703 * infrun.c (_initialize_infrun): Add declaration.
9704 * interps.c (_initialize_interpreter): Add declaration.
9705 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9706 * jit.c (_initialize_jit): Add declaration.
9707 * language.c (_initialize_language): Add declaration.
9708 * linux-fork.c (_initialize_linux_fork): Add declaration.
9709 * linux-nat.c (_initialize_linux_nat): Add declaration.
9710 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9711 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9712 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9713 * m2-lang.c (_initialize_m2_language): Add declaration.
9714 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9715 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9716 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9717 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9718 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9719 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9720 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9721 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9722 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9723 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9724 * machoread.c (_initialize_machoread): Add declaration.
9725 * macrocmd.c (_initialize_macrocmd): Add declaration.
9726 * macroscope.c (_initialize_macroscope): Add declaration.
9727 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9728 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9729 * maint.c (_initialize_maint_cmds): Add declaration.
9730 * mdebugread.c (_initialize_mdebugread): Add declaration.
9731 * memattr.c (_initialize_mem): Add declaration.
9732 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9733 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9734 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9735 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9736 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9737 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9738 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9739 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9740 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9741 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9742 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9743 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9744 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9745 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9746 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9747 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9748 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9749 * mipsread.c (_initialize_mipsread): Add declaration.
9750 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9751 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9752 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9753 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9754 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9755 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9756 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9757 * nto-procfs.c (_initialize_procfs): Add declaration.
9758 * objc-lang.c (_initialize_objc_language): Add declaration.
9759 * observable.c (_initialize_observer): Add declaration.
9760 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9761 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9762 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9763 * osabi.c (_initialize_gdb_osabi): Add declaration.
9764 * osdata.c (_initialize_osdata): Add declaration.
9765 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9766 * parse.c (_initialize_parse): Add declaration.
9767 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9768 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9769 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9770 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9771 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9772 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9773 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9774 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9775 * printcmd.c (_initialize_printcmd): Add declaration.
9776 * probe.c (_initialize_probe): Add declaration.
9777 * proc-api.c (_initialize_proc_api): Add declaration.
9778 * proc-events.c (_initialize_proc_events): Add declaration.
9779 * proc-service.c (_initialize_proc_service): Add declaration.
9780 * procfs.c (_initialize_procfs): Add declaration.
9781 * producer.c (_initialize_producer): Add declaration.
9782 * psymtab.c (_initialize_psymtab): Add declaration.
9783 * python/python.c (_initialize_python): Add declaration.
9784 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9785 * record-btrace.c (_initialize_record_btrace): Add declaration.
9786 * record-full.c (_initialize_record_full): Add declaration.
9787 * record.c (_initialize_record): Add declaration.
9788 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9789 * regcache.c (_initialize_regcache): Add declaration.
9790 * reggroups.c (_initialize_reggroup): Add declaration.
9791 * remote-notif.c (_initialize_notif): Add declaration.
9792 * remote-sim.c (_initialize_remote_sim): Add declaration.
9793 * remote.c (_initialize_remote): Add declaration.
9794 * reverse.c (_initialize_reverse): Add declaration.
9795 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9796 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9797 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9798 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9799 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9800 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9801 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9802 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9803 Add declaration.
9804 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9805 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9806 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9807 * rust-exp.y (_initialize_rust_exp): Add declaration.
9808 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9809 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9810 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9811 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9812 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9813 * score-tdep.c (_initialize_score_tdep): Add declaration.
9814 * ser-go32.c (_initialize_ser_dos): Add declaration.
9815 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9816 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9817 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9818 * ser-uds.c (_initialize_ser_socket): Add declaration.
9819 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9820 * serial.c (_initialize_serial): Add declaration.
9821 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9822 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9823 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9824 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9825 * skip.c (_initialize_step_skip): Add declaration.
9826 * sol-thread.c (_initialize_sol_thread): Add declaration.
9827 * solib-aix.c (_initialize_solib_aix): Add declaration.
9828 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9829 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9830 * solib-frv.c (_initialize_frv_solib): Add declaration.
9831 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9832 * solib-target.c (_initialize_solib_target): Add declaration.
9833 * solib.c (_initialize_solib): Add declaration.
9834 * source-cache.c (_initialize_source_cache): Add declaration.
9835 * source.c (_initialize_source): Add declaration.
9836 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9837 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9838 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9839 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9840 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9841 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9842 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9843 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9844 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9845 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9846 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9847 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9848 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9849 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9850 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9851 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9852 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9853 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9854 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9855 * stabsread.c (_initialize_stabsread): Add declaration.
9856 * stack.c (_initialize_stack): Add declaration.
9857 * stap-probe.c (_initialize_stap_probe): Add declaration.
9858 * std-regs.c (_initialize_frame_reg): Add declaration.
9859 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9860 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9861 * symfile.c (_initialize_symfile): Add declaration.
9862 * symmisc.c (_initialize_symmisc): Add declaration.
9863 * symtab.c (_initialize_symtab): Add declaration.
9864 * target.c (_initialize_target): Add declaration.
9865 * target-connection.c (_initialize_target_connection): Add
9866 declaration.
9867 * target-dcache.c (_initialize_target_dcache): Add declaration.
9868 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9869 * thread.c (_initialize_thread): Add declaration.
9870 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9871 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9872 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9873 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9874 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9875 * tracectf.c (_initialize_ctf): Add declaration.
9876 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9877 * tracefile.c (_initialize_tracefile): Add declaration.
9878 * tracepoint.c (_initialize_tracepoint): Add declaration.
9879 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9880 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9881 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9882 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9883 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9884 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9885 * tui/tui.c (_initialize_tui): Add declaration.
9886 * typeprint.c (_initialize_typeprint): Add declaration.
9887 * ui-style.c (_initialize_ui_style): Add declaration.
9888 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9889 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9890 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9891 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9892 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9893 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9894 * unittests/filtered_iterator-selftests.c
9895 (_initialize_filtered_iterator_selftests): Add declaration.
9896 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9897 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9898 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9899 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9900 * unittests/main-thread-selftests.c
9901 (_initialize_main_thread_selftests): Add declaration.
9902 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9903 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9904 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9905 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9906 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9907 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9908 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9909 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9910 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9911 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9912 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9913 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9914 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9915 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9916 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9917 declaration.
9918 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9919 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9920 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9921 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9922 * user-regs.c (_initialize_user_regs): Add declaration.
9923 * utils.c (_initialize_utils): Add declaration.
9924 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9925 * valops.c (_initialize_valops): Add declaration.
9926 * valprint.c (_initialize_valprint): Add declaration.
9927 * value.c (_initialize_values): Add declaration.
9928 * varobj.c (_initialize_varobj): Add declaration.
9929 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9930 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9931 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9932 * windows-nat.c (_initialize_windows_nat): Add declaration.
9933 (_initialize_check_for_gdb_ini): Add declaration.
9934 (_initialize_loadable): Add declaration.
9935 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9936 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9937 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9938 * xcoffread.c (_initialize_xcoffread): Add declaration.
9939 * xml-support.c (_initialize_xml_support): Add declaration.
9940 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9941 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9942 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
9943 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
9944
e2de1eec
SM
99452020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9946
9947 * regformats/regdat.sh: Generate declaration for init function.
9948
e0037b4c
SM
99492020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9950
9951 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
9952 up.
9953 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
9954 close_one_inferior>: New methods.
9955 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
9956 pass down target to find_inferior_pid.
9957 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
9958 Pass down target to find_inferior_ptid.
9959 (gdbsim_target::create_inferior): Pass down target to
9960 add_thread_silent.
9961 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
9962 target down to find_inferior_ptid and switch_to_thread.
9963 (gdbsim_target::close): Update to call close_one_inferior.
9964 (struct resume_data): Remove.
9965 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
9966 directly, rather than through a void pointer.
9967 (gdbsim_target::resume): Update to call resume_one_inferior.
9968
58920b5b
SM
99692020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
9970
9971 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
9972
4ec89149
PA
99732020-01-12 Pedro Alves <palves@redhat.com>
9974
9975 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
9976 directly for the current inferior instead of
9977 discard_all_inferiors.
9978 (discard_all_inferiors): Delete.
9979
7c392d1d
TT
99802020-01-11 Tom Tromey <tom@tromey.com>
9981
9982 * tui/tui-wingeneral.c (box_win): Check cli_styling.
9983 * tui/tui-winsource.c (tui_source_window_base::refill): Use
9984 deprecated_safe_get_selected_frame.
9985
d9ebdab7
TBA
99862020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9987
9988 * inferior.c (print_inferior): Switch inferior before printing it.
9989
f3c469b9
PA
99902020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
9991 Pedro Alves <palves@redhat.com>
9992
9993 * progspace-and-thread.c (switch_to_program_space_and_thread):
9994 Assert there's an inferior for PSPACE. Use
9995 switch_to_inferior_no_thread to switch the inferior too.
9996 * progspace.c (program_space::~program_space): Call
9997 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
9998 (program_space::free_all_objfiles): Don't call clear_symtab_users
9999 here.
10000 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10001
65c574f6
PA
100022020-01-10 Pedro Alves <palves@redhat.com>
10003
10004 * NEWS: Mention multi-target debugging, "info connections", and
10005 "add-inferior -no-connection".
10006
2f4fcf00
PA
100072020-01-10 Pedro Alves <palves@redhat.com>
10008
10009 * infrun.c: Include "target-connection.h".
10010 (check_multi_target_resumption): New.
10011 (proceed): Call it.
10012 * target-connection.c (make_target_connection_string): Make
10013 extern.
10014 * target-connection.h (make_target_connection_string): Declare.
10015
121b3efd
PA
100162020-01-10 Pedro Alves <palves@redhat.com>
10017
10018 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10019 * inferior.c (uiout_field_connection): New function.
10020 (print_inferior): Add new "connection-id" column.
10021 (add_inferior_command): Show connection number/string of added
10022 inferior.
10023 * process-stratum-target.h
10024 (process_stratum_target::connection_string): New virtual method.
10025 (process_stratum_target::connection_number): New field.
10026 * remote.c (remote_target::connection_string): New override.
10027 * target-connection.c: New file.
10028 * target-connection.h: New file.
10029 * target.c (decref_target): Remove process_stratum targets from
10030 the connection list.
10031 (target_stack::push): Add process_stratum targets to the
10032 connection list.
10033
4f837581
PA
100342020-01-10 Pedro Alves <palves@redhat.com>
10035
10036 Revert:
10037 2016-04-12 Pedro Alves <palves@redhat.com>
10038 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10039 Remove references to name.
10040 * serial.h (struct serial) <name>: Delete.
10041
f4ec508e
PA
100422020-01-10 Pedro Alves <palves@redhat.com>
10043
10044 * gdbarch-selftests.c (register_to_value_test): Remove "target
10045 already pushed" check.
10046
5b6d1e4f
PA
100472020-01-10 Pedro Alves <palves@redhat.com>
10048 John Baldwin <jhb@FreeBSD.org>
10049
10050 * aarch64-linux-nat.c
10051 (aarch64_linux_nat_target::thread_architecture): Adjust.
10052 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10053 (task_command_1): Likewise.
10054 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10055 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10056 (aix_thread_target::store_registers)
10057 (aix_thread_target::thread_alive): Adjust.
10058 * amd64-fbsd-tdep.c: Include "inferior.h".
10059 (amd64fbsd_get_thread_local_address): Pass down target.
10060 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10061 thread's gdbarch instead of target_gdbarch.
10062 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10063 get_last_target_status.
10064 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10065 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10066 inferiors.
10067 (update_inserted_breakpoint_locations): Skip if inferiors with no
10068 execution.
10069 (update_global_location_list): When handling moribund locations,
10070 find representative inferior for location's pspace, and use thread
10071 count of its process_stratum target.
10072 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10073 * bsd-uthread.c (bsd_uthread_target::wait): Use
10074 as_process_stratum_target and adjust thread_change_ptid and
10075 add_thread calls.
10076 (bsd_uthread_target::update_thread_list): Use
10077 as_process_stratum_target and adjust find_thread_ptid,
10078 thread_change_ptid and add_thread calls.
10079 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10080 find_thread_ptid call.
10081 * corelow.c (add_to_thread_list): Adjust add_thread call.
10082 (core_target_open): Adjust add_thread_silent and thread_count
10083 calls.
10084 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10085 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10086 * event-top.c (async_disconnect): Pop targets from all inferiors.
10087 * exec.c (add_target_sections): Push exec target on all inferiors
10088 sharing the program space.
10089 (remove_target_sections): Remove the exec target from all
10090 inferiors sharing the program space.
10091 (exec_on_vfork): New.
10092 * exec.h (exec_on_vfork): Declare.
10093 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10094 Pass it down.
10095 (fbsd_nat_target::update_thread_list): Adjust.
10096 (fbsd_nat_target::resume): Adjust.
10097 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10098 down.
10099 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10100 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10101 get_thread_arch_regcache call.
10102 * fork-child.c (gdb_startup_inferior): Pass target down to
10103 startup_inferior and set_executing.
10104 * gdbthread.h (struct process_stratum_target): Forward declare.
10105 (add_thread, add_thread_silent, add_thread_with_info)
10106 (in_thread_list): Add process_stratum_target parameter.
10107 (find_thread_ptid(inferior*, ptid_t)): New overload.
10108 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10109 parameter.
10110 (all_threads()): Delete overload.
10111 (all_threads, all_non_exited_threads): Add process_stratum_target
10112 parameter.
10113 (all_threads_safe): Use brace initialization.
10114 (thread_count): Add process_stratum_target parameter.
10115 (set_resumed, set_running, set_stop_requested, set_executing)
10116 (threads_are_executing, finish_thread_state): Add
10117 process_stratum_target parameter.
10118 (switch_to_thread): Use is_current_thread.
10119 * i386-fbsd-tdep.c: Include "inferior.h".
10120 (i386fbsd_get_thread_local_address): Pass down target.
10121 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10122 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10123 have_inferiors check.
10124 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10125 (inf_ptrace_target::attach): Adjust.
10126 * infcall.c (run_inferior_call): Adjust.
10127 * infcmd.c (run_command_1): Pass target to
10128 scoped_finish_thread_state.
10129 (proceed_thread_callback): Skip inferiors with no execution.
10130 (continue_command): Rename 'all_threads' local to avoid hiding
10131 'all_threads' function. Adjust get_last_target_status call.
10132 (prepare_one_step): Adjust set_running call.
10133 (signal_command): Use user_visible_resume_target. Compare thread
10134 pointers instead of inferior_ptid.
10135 (info_program_command): Adjust to pass down target.
10136 (attach_command): Mark target's 'thread_executing' flag.
10137 (stop_current_target_threads_ns): New, factored out from ...
10138 (interrupt_target_1): ... this. Switch inferior before making
10139 target calls.
10140 * inferior-iter.h
10141 (struct all_inferiors_iterator, struct all_inferiors_range)
10142 (struct all_inferiors_safe_range)
10143 (struct all_non_exited_inferiors_range): Filter on
10144 process_stratum_target too. Remove explicit.
10145 * inferior.c (inferior::inferior): Push dummy target on target
10146 stack.
10147 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10148 Add process_stratum_target parameter, and pass it down.
10149 (have_live_inferiors): Adjust.
10150 (switch_to_inferior_and_push_target): New.
10151 (add_inferior_command, clone_inferior_command): Handle
10152 "-no-connection" parameter. Use
10153 switch_to_inferior_and_push_target.
10154 (_initialize_inferior): Mention "-no-connection" option in
10155 the help of "add-inferior" and "clone-inferior" commands.
10156 * inferior.h: Include "process-stratum-target.h".
10157 (interrupt_target_1): Use bool.
10158 (struct inferior) <push_target, unpush_target, target_is_pushed,
10159 find_target_beneath, top_target, process_target, target_at,
10160 m_stack>: New.
10161 (discard_all_inferiors): Delete.
10162 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10163 (all_inferiors, all_non_exited_inferiors): Add
10164 process_stratum_target parameter.
10165 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10166 (target_last_proc_target): New global.
10167 (follow_fork_inferior): Push target on new inferior. Pass target
10168 to add_thread_silent. Call exec_on_vfork. Handle target's
10169 reference count.
10170 (follow_fork): Adjust get_last_target_status call. Also consider
10171 target.
10172 (follow_exec): Push target on new inferior.
10173 (struct execution_control_state) <target>: New field.
10174 (user_visible_resume_target): New.
10175 (do_target_resume): Call target_async.
10176 (resume_1): Set target's threads_executing flag. Consider resume
10177 target.
10178 (commit_resume_all_targets): New.
10179 (proceed): Also consider resume target. Skip threads of inferiors
10180 with no execution. Commit resumtion in all targets.
10181 (start_remote): Pass current inferior to wait_for_inferior.
10182 (infrun_thread_stop_requested): Consider target as well. Pass
10183 thread_info pointer to clear_inline_frame_state instead of ptid.
10184 (infrun_thread_thread_exit): Consider target as well.
10185 (random_pending_event_thread): New inferior parameter. Use it.
10186 (do_target_wait): Rename to ...
10187 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10188 down.
10189 (threads_are_resumed_pending_p, do_target_wait): New.
10190 (prepare_for_detach): Adjust calls.
10191 (wait_for_inferior): New inferior parameter. Handle it. Use
10192 do_target_wait_1 instead of do_target_wait.
10193 (fetch_inferior_event): Adjust. Switch to representative
10194 inferior. Pass target down.
10195 (set_last_target_status): Add process_stratum_target parameter.
10196 Save target in global.
10197 (get_last_target_status): Add process_stratum_target parameter and
10198 handle it.
10199 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10200 (context_switch): Check inferior_ptid == null_ptid before calling
10201 inferior_thread().
10202 (get_inferior_stop_soon): Pass down target.
10203 (wait_one): Rename to ...
10204 (poll_one_curr_target): ... this.
10205 (struct wait_one_event): New.
10206 (wait_one): New.
10207 (stop_all_threads): Adjust.
10208 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10209 event's target.
10210 (switch_back_to_stepped_thread): Also consider target.
10211 (print_stop_event): Update.
10212 (normal_stop): Update. Also consider the resume target.
10213 * infrun.h (wait_for_inferior): Remove declaration.
10214 (user_visible_resume_target): New declaration.
10215 (get_last_target_status, set_last_target_status): New
10216 process_stratum_target parameter.
10217 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10218 process_stratum_target parameter, and use it.
10219 (clear_inline_frame_state (thread_info*)): New.
10220 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10221 process_stratum_target parameter.
10222 (clear_inline_frame_state (thread_info*)): Declare.
10223 * linux-fork.c (delete_checkpoint_command): Pass target down to
10224 find_thread_ptid.
10225 (checkpoint_command): Adjust.
10226 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10227 instead of just tweaking inferior_ptid.
10228 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10229 (exit_lwp): Pass target down to find_thread_ptid.
10230 (attach_proc_task_lwp_callback): Pass target down to
10231 add_thread/set_running/set_executing.
10232 (linux_nat_target::attach): Pass target down to
10233 thread_change_ptid.
10234 (get_detach_signal): Pass target down to find_thread_ptid.
10235 Consider last target status's target.
10236 (linux_resume_one_lwp_throw, resume_lwp)
10237 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10238 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10239 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10240 (linux_nat_target::async_wait_fd): New.
10241 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10242 target down.
10243 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10244 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10245 * linux-thread-db.c (struct thread_db_info::process_target): New
10246 field.
10247 (add_thread_db_info): Save target.
10248 (get_thread_db_info): New process_stratum_target parameter. Also
10249 match target.
10250 (delete_thread_db_info): New process_stratum_target parameter.
10251 Also match target.
10252 (thread_from_lwp): Adjust to pass down target.
10253 (thread_db_notice_clone): Pass down target.
10254 (check_thread_db_callback): Pass down target.
10255 (try_thread_db_load_1): Always push the thread_db target.
10256 (try_thread_db_load, record_thread): Pass target down.
10257 (thread_db_target::detach): Pass target down. Always unpush the
10258 thread_db target.
10259 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10260 target down. Always unpush the thread_db target.
10261 (find_new_threads_callback, thread_db_find_new_threads_2)
10262 (thread_db_target::update_thread_list): Pass target down.
10263 (thread_db_target::pid_to_str): Pass current inferior down.
10264 (thread_db_target::get_thread_local_address): Pass target down.
10265 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10266 target down.
10267 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10268 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10269 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10270 (procfs_init_inferior): Rename to ...
10271 (procfs_target::procfs_init_inferior): ... this and adjust.
10272 (procfs_target::create_inferior, procfs_notice_thread)
10273 (procfs_do_thread_registers): Adjust.
10274 * ppc-fbsd-tdep.c: Include "inferior.h".
10275 (ppcfbsd_get_thread_local_address): Pass down target.
10276 * proc-service.c (ps_xfer_memory): Switch current inferior and
10277 program space as well.
10278 (get_ps_regcache): Pass target down.
10279 * process-stratum-target.c
10280 (process_stratum_target::thread_address_space)
10281 (process_stratum_target::thread_architecture): Pass target down.
10282 * process-stratum-target.h
10283 (process_stratum_target::threads_executing): New field.
10284 (as_process_stratum_target): New.
10285 * ravenscar-thread.c
10286 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10287 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10288 down.
10289 * record-btrace.c (record_btrace_target::info_record): Adjust.
10290 (record_btrace_target::record_method)
10291 (record_btrace_target::record_is_replaying)
10292 (record_btrace_target::fetch_registers)
10293 (get_thread_current_frame_id, record_btrace_target::resume)
10294 (record_btrace_target::wait, record_btrace_target::stop): Pass
10295 target down.
10296 * record-full.c (record_full_wait_1): Switch to event thread.
10297 Pass target down.
10298 * regcache.c (regcache::regcache)
10299 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10300 process_stratum_target parameter and handle it.
10301 (current_thread_target): New global.
10302 (get_thread_regcache): Add process_stratum_target parameter and
10303 handle it. Switch inferior before calling target method.
10304 (get_thread_regcache): Pass target down.
10305 (get_thread_regcache_for_ptid): Pass target down.
10306 (registers_changed_ptid): Add process_stratum_target parameter and
10307 handle it.
10308 (registers_changed_thread, registers_changed): Pass target down.
10309 (test_get_thread_arch_aspace_regcache): New.
10310 (current_regcache_test): Define a couple local test_target_ops
10311 instances and use them for testing.
10312 (readwrite_regcache): Pass process_stratum_target parameter.
10313 (cooked_read_test, cooked_write_test): Pass mock_target down.
10314 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10315 (get_thread_arch_aspace_regcache): Add process_stratum_target
10316 parameter.
10317 (regcache::target): New method.
10318 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10319 (regcache::registers_changed_ptid): Add process_stratum_target
10320 parameter.
10321 (regcache::m_target): New field.
10322 (registers_changed_ptid): Add process_stratum_target parameter.
10323 * remote.c (remote_state::supports_vCont_probed): New field.
10324 (remote_target::async_wait_fd): New method.
10325 (remote_unpush_and_throw): Add remote_target parameter.
10326 (get_current_remote_target): Adjust.
10327 (remote_target::remote_add_inferior): Push target.
10328 (remote_target::remote_add_thread)
10329 (remote_target::remote_notice_new_inferior)
10330 (get_remote_thread_info): Pass target down.
10331 (remote_target::update_thread_list): Skip threads of inferiors
10332 bound to other targets. (remote_target::close): Don't discard
10333 inferiors. (remote_target::add_current_inferior_and_thread)
10334 (remote_target::process_initial_stop_replies)
10335 (remote_target::start_remote)
10336 (remote_target::remote_serial_quit_handler): Pass down target.
10337 (remote_target::remote_unpush_target): New remote_target
10338 parameter. Unpush the target from all inferiors.
10339 (remote_target::remote_unpush_and_throw): New remote_target
10340 parameter. Pass it down.
10341 (remote_target::open_1): Check whether the current inferior has
10342 execution instead of checking whether any inferior is live. Pass
10343 target down.
10344 (remote_target::remote_detach_1): Pass down target. Use
10345 remote_unpush_target.
10346 (extended_remote_target::attach): Pass down target.
10347 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10348 (remote_target::append_resumption): Pass down target.
10349 (remote_target::append_pending_thread_resumptions)
10350 (remote_target::remote_resume_with_hc, remote_target::resume)
10351 (remote_target::commit_resume): Pass down target.
10352 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10353 (remote_target::interrupt_query)
10354 (remote_target::remove_new_fork_children)
10355 (remote_target::check_pending_events_prevent_wildcard_vcont)
10356 (remote_target::remote_parse_stop_reply)
10357 (remote_target::process_stop_reply): Pass down target.
10358 (first_remote_resumed_thread): New remote_target parameter. Pass
10359 it down.
10360 (remote_target::wait_as): Pass down target.
10361 (unpush_and_perror): New remote_target parameter. Pass it down.
10362 (remote_target::readchar, remote_target::remote_serial_write)
10363 (remote_target::getpkt_or_notif_sane_1)
10364 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10365 down target.
10366 (remote_target::mourn_inferior): Pass down target. Use
10367 remote_unpush_target.
10368 (remote_target::core_of_thread)
10369 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10370 (remote_target::pid_to_exec_file)
10371 (remote_target::thread_handle_to_thread_info): Pass down target.
10372 (remote_target::async_wait_fd): New.
10373 * riscv-fbsd-tdep.c: Include "inferior.h".
10374 (riscv_fbsd_get_thread_local_address): Pass down target.
10375 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10376 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10377 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10378 Adjust.
10379 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10380 * solib-svr4.c (enable_break): Pass down target.
10381 * spu-multiarch.c (parse_spufs_run): Pass down target.
10382 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10383 * target-delegates.c: Regenerate.
10384 * target.c (g_target_stack): Delete.
10385 (current_top_target): Return the current inferior's top target.
10386 (target_has_execution_1): Refer to the passed-in inferior's top
10387 target.
10388 (target_supports_terminal_ours): Check whether the initial
10389 inferior was already created.
10390 (decref_target): New.
10391 (target_stack::push): Incref/decref the target.
10392 (push_target, push_target, unpush_target): Adjust.
10393 (target_stack::unpush): Defref target.
10394 (target_is_pushed): Return bool. Adjust to refer to the current
10395 inferior's target stack.
10396 (dispose_inferior): Delete, and inline parts ...
10397 (target_preopen): ... here. Only dispose of the current inferior.
10398 (target_detach): Hold strong target reference while detaching.
10399 Pass target down.
10400 (target_thread_name): Add assertion.
10401 (target_resume): Pass down target.
10402 (target_ops::beneath, find_target_at): Adjust to refer to the
10403 current inferior's target stack.
10404 (get_dummy_target): New.
10405 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10406 has a thread running.
10407 (initialize_targets): Rename to ...
10408 (_initialize_target): ... this.
10409 * target.h: Include "gdbsupport/refcounted-object.h".
10410 (struct target_ops): Inherit refcounted_object.
10411 (target_ops::shortname, target_ops::longname): Make const.
10412 (target_ops::async_wait_fd): New method.
10413 (decref_target): Declare.
10414 (struct target_ops_ref_policy): New.
10415 (target_ops_ref): New typedef.
10416 (get_dummy_target): Declare function.
10417 (target_is_pushed): Return bool.
10418 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10419 (all_matching_threads_iterator::all_matching_threads_iterator):
10420 Handle filter target.
10421 * thread-iter.h (struct all_matching_threads_iterator, struct
10422 all_matching_threads_range, class all_non_exited_threads_range):
10423 Filter by target too. Remove explicit.
10424 * thread.c (threads_executing): Delete.
10425 (inferior_thread): Pass down current inferior.
10426 (clear_thread_inferior_resources): Pass down thread pointer
10427 instead of ptid_t.
10428 (add_thread_silent, add_thread_with_info, add_thread): Add
10429 process_stratum_target parameter. Use it for thread and inferior
10430 searches.
10431 (is_current_thread): New.
10432 (thread_info::deletable): Use it.
10433 (find_thread_ptid, thread_count, in_thread_list)
10434 (thread_change_ptid, set_resumed, set_running): New
10435 process_stratum_target parameter. Pass it down.
10436 (set_executing): New process_stratum_target parameter. Pass it
10437 down. Adjust reference to 'threads_executing'.
10438 (threads_are_executing): New process_stratum_target parameter.
10439 Adjust reference to 'threads_executing'.
10440 (set_stop_requested, finish_thread_state): New
10441 process_stratum_target parameter. Pass it down.
10442 (switch_to_thread): Also match inferior.
10443 (switch_to_thread): New process_stratum_target parameter. Pass it
10444 down.
10445 (update_threads_executing): Reimplement.
10446 * top.c (quit_force): Pop targets from all inferior.
10447 (gdb_init): Don't call initialize_targets.
10448 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10449 Declare.
10450 (windows_add_thread, windows_delete_thread): Adjust.
10451 (get_windows_debug_event): Rename to ...
10452 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10453 * tracefile-tfile.c (tfile_target_open): Pass down target.
10454 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10455 Forward declare.
10456 (switch_to_thread): Add process_stratum_target parameter.
10457 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10458 parameter. Use it.
10459 (mi_on_resume): Pass target down.
10460 * nat/fork-inferior.c (startup_inferior): Add
10461 process_stratum_target parameter. Pass it down.
10462 * nat/fork-inferior.h (startup_inferior): Add
10463 process_stratum_target parameter.
10464 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10465
75c6c844
PA
104662020-01-10 Pedro Alves <palves@redhat.com>
10467
10468 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10469 directly. Instead find the first thread in the thread list and
10470 use switch_to_thread.
10471
78f2c40a
PA
104722020-01-10 Pedro Alves <palves@redhat.com>
10473
10474 * remote.c (remote_target::remote_add_inferior): Don't bind a
10475 process to the current inferior if the current inferior is already
10476 bound to a process.
10477
e7af6c70
TBA
104782020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10479 Pedro Alves <palves@redhat.com>
10480
10481 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10482 If no process is specified, return null_ptid instead of
10483 inferior_ptid.
10484 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10485 TARGET_WAITKIND_SIGNALLED with no pid.
10486
31ba933e
PA
104872020-01-10 Pedro Alves <palves@redhat.com>
10488
10489 * remote.c (first_remote_resumed_thread): New.
10490 (remote_target::wait_as): Use it as default event_ptid instead of
10491 inferior_ptid.
10492
735fc2ca
PA
104932020-01-10 Pedro Alves <palves@redhat.com>
10494
10495 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10496
c17e02e1
PA
104972020-01-10 Pedro Alves <palves@redhat.com>
10498
10499 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10500 not -1.
10501
ab1ddbcf
PA
105022020-01-10 Pedro Alves <palves@redhat.com>
10503
10504 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10505 ptid to get_last_target_status.
10506 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10507 ptid to get_last_target_status.
10508 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10509 get_last_target_status.
10510 (info_program_command): Don't pass a target_waitstatus to
10511 get_last_target_status.
10512 * infrun.c (init_wait_for_inferior): Use
10513 nullify_last_target_wait_ptid.
10514 (get_last_target_status): Handle nullptr arguments.
10515 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10516 (print_stop_event): Don't pass a ptid to get_last_target_status.
10517 (normal_stop): Don't pass a ptid to get_last_target_status.
10518 * infrun.h (get_last_target_status, set_last_target_status): Move
10519 comments here and update.
10520 (nullify_last_target_wait_ptid): Declare.
10521 * linux-fork.c (fork_load_infrun_state): Remove local extern
10522 declaration of nullify_last_target_wait_ptid.
10523 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10524 to get_last_target_status.
10525
f3f8ece4
PA
105262020-01-10 Pedro Alves <palves@redhat.com>
10527
10528 * gdbthread.h (scoped_restore_current_thread)
10529 <dont_restore, restore, m_dont_restore>: Declare.
10530 * thread.c (thread_alive): Add assertion. Return bool.
10531 (switch_to_thread_if_alive): New.
10532 (prune_threads): Switch inferior/thread.
10533 (print_thread_info_1): Switch thread before calling target methods.
10534 (scoped_restore_current_thread::restore): New, factored out from
10535 ...
10536 (scoped_restore_current_thread::~scoped_restore_current_thread):
10537 ... this.
10538 (scoped_restore_current_thread::scoped_restore_current_thread):
10539 Add assertion.
10540 (thread_apply_all_command, thread_select): Use
10541 switch_to_thread_if_alive.
10542 * infrun.c (proceed, restart_threads, handle_signal_stop)
10543 (switch_back_to_stepped_thread): Switch current thread before
10544 calling target methods.
10545
db2d40f7
PA
105462020-01-10 Pedro Alves <palves@redhat.com>
10547
10548 * inferior.c (switch_to_inferior_no_thread): New function,
10549 factored out from ...
10550 (inferior_command): ... here.
10551 * inferior.h (switch_to_inferior_no_thread): Declare.
10552 * mi/mi-main.c (run_one_inferior): Use
10553 switch_to_inferior_no_thread.
10554
bd420a2d
PA
105552020-01-10 Pedro Alves <palves@redhat.com>
10556
10557 * infcmd.c (kill_command): Remove dead code.
10558
ddf5db90
PA
105592020-01-10 Pedro Alves <palves@redhat.com>
10560
10561 * remote.c (remote_target::mourn_inferior): No longer check
10562 whether the target is running.
10563
5018ce90
PA
105642020-01-10 Pedro Alves <palves@redhat.com>
10565
10566 * corelow.c (core_target::has_execution): Change parameter type to
10567 inferior pointer.
10568 * inferior.c (number_of_live_inferiors): Use
10569 inferior::has_execution instead of target_has_execution_1.
10570 * inferior.h (inferior::has_execution): New.
10571 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10572 inferior::has_execution instead of target_has_execution_1.
10573 * process-stratum-target.c
10574 (process_stratum_target::has_execution): Change parameter type to
10575 inferior pointer. Check the inferior's PID instead of
10576 inferior_ptid.
10577 * process-stratum-target.h
10578 (process_stratum_target::has_execution): Change parameter type to
10579 inferior pointer.
10580 * record-full.c (record_full_core_target::has_execution): Change
10581 parameter type to inferior pointer.
10582 * target.c (target_has_execution_1): Change parameter type to
10583 inferior pointer.
10584 (target_has_execution_current): Adjust.
10585 * target.h (target_ops::has_execution): Change parameter type to
10586 inferior pointer.
10587 (target_has_execution_1): Change parameter type to inferior
10588 pointer. Change return type to bool.
10589 * tracefile.h (tracefile_target::has_execution): Change parameter
10590 type to inferior pointer.
10591
74375d18
PA
105922020-01-10 Pedro Alves <palves@redhat.com>
10593
10594 * exceptions.c (print_flush): Remove current_top_target() check.
10595
acdf84a6
PA
105962020-01-10 Pedro Alves <palves@redhat.com>
10597
10598 * remote.c (show_remote_exec_file): Show the current inferior's
10599 exec-file instead of the command variable's value.
10600
ec506636
PA
106012020-01-10 Pedro Alves <palves@redhat.com>
10602
10603 * record-full.c (record_full_resume_ptid): New global.
10604 (record_full_target::resume): Set it.
10605 (record_full_wait_1): Use record_full_resume_ptid instead of
10606 inferior_ptid.
10607
873657b9
PA
106082020-01-10 Pedro Alves <palves@redhat.com>
10609
10610 * gdbthread.h (scoped_restore_current_thread)
10611 <dont_restore, restore, m_dont_restore>: Declare.
10612 * thread.c (thread_alive): Add assertion. Return bool.
10613 (switch_to_thread_if_alive): New.
10614 (prune_threads): Switch inferior/thread.
10615 (print_thread_info_1): Switch thread before calling target methods.
10616 (scoped_restore_current_thread::restore): New, factored out from
10617 ...
10618 (scoped_restore_current_thread::~scoped_restore_current_thread):
10619 ... this.
10620 (scoped_restore_current_thread::scoped_restore_current_thread):
10621 Add assertion.
10622 (thread_apply_all_command, thread_select): Use
10623 switch_to_thread_if_alive.
10624
7f0ae84c
GB
106252020-01-10 George Barrett <bob@bob131.so>
10626
10627 * stap-probe.c (stap_modify_semaphore): Don't check for null
10628 semaphores.
10629 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10630 for null semaphores.
10631
f5a7c406
AB
106322020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10633
10634 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10635 all source windows, and maintain horizontal scroll status while
10636 doing so.
10637
9ae6bf64
TT
106382020-01-09 Tom Tromey <tom@tromey.com>
10639
10640 PR tui/18932:
10641 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10642 update_source_window, not print_source_lines.
10643
b2efe70c
AB
106442020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10645
10646 * tui/tui.c (tui_enable): Register tui hooks after calling
10647 tui_display_main.
10648
5f23a082
CB
106492020-01-09 Christian Biesinger <cbiesinger@google.com>
10650
10651 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10652
3061113b
SM
106532020-01-08 Simon Marchi <simon.marchi@efficios.com>
10654
10655 * thread.c (print_thread_info_1): Fix indentation.
10656
57d75002
CB
106572020-01-09 Christian Biesinger <cbiesinger@google.com>
10658
10659 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10660 unique_xmalloc_ptr outside the if to always free the demangled name.
10661
6a053cb1
TT
106622020-01-08 Tom Tromey <tromey@adacore.com>
10663
10664 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10665 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10666 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10667 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10668 Remove.
10669 (section_offsets): New typedef.
10670 * symtab.c (fixup_section, get_msymbol_address): Update.
10671 * symmisc.c (dump_msymbols): Update.
10672 * symfile.h (relative_addr_info_to_section_offsets)
10673 (symfile_map_offsets_to_segments): Update.
10674 * symfile.c (build_section_addr_info_from_objfile)
10675 (init_objfile_sect_indices): Update.
10676 (struct place_section_arg): Change type of "offsets".
10677 (place_section): Update.
10678 (relative_addr_info_to_section_offsets): Change type of
10679 "section_offsets". Remove "num_sections" parameter.
10680 (default_symfile_offsets, syms_from_objfile_1)
10681 (set_objfile_default_section_offset): Update.
10682 (reread_symbols): No need to preserve section offsets by hand.
10683 (symfile_map_offsets_to_segments): Change type of "offsets".
10684 * stap-probe.c (relocate_address): Update.
10685 * stabsread.h (process_one_symbol): Update.
10686 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10687 (solib_target_relocate_section_addresses): Update.
10688 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10689 Update.
10690 * solib-frv.c (frv_relocate_main_executable): Update.
10691 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10692 * solib-aix.c (solib_aix_get_section_offsets): Change return
10693 type.
10694 (solib_aix_solib_create_inferior_hook): Update.
10695 * remote.c (remote_target::get_offsets): Update.
10696 * psymtab.c (find_pc_sect_psymtab): Update.
10697 * psympriv.h (struct partial_symbol) <address, text_low,
10698 text_high>: Update.
10699 * objfiles.h (obj_section_offset): Update.
10700 (struct objfile) <section_offsets>: Change type.
10701 <num_sections>: Remove.
10702 (objfile_relocate): Update.
10703 * objfiles.c (entry_point_address_query): Update
10704 (relocate_one_symbol): Change type of "section_offsets".
10705 (objfile_relocate1, objfile_relocate1): Change type of
10706 "new_offsets".
10707 (objfile_rebase1): Update.
10708 * mipsread.c (mipscoff_symfile_read): Update.
10709 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10710 parameter.
10711 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10712 (parse_external, psymtab_to_symtab_1): Update.
10713 * machoread.c (macho_symfile_offsets): Update.
10714 * ia64-tdep.c (ia64_find_unwind_table): Update.
10715 * hppa-tdep.c (read_unwind_info): Update.
10716 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10717 * dwarf2read.c (create_addrmap_from_index)
10718 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10719 (process_psymtab_comp_unit_reader, add_partial_symbol)
10720 (add_partial_subprogram, process_full_comp_unit)
10721 (read_file_scope, read_func_scope, read_lexical_block_scope)
10722 (read_call_site_scope, dwarf2_rnglists_process)
10723 (dwarf2_ranges_process, dwarf2_ranges_read)
10724 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10725 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10726 Update.
10727 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10728 Update.
10729 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10730 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10731 (process_one_symbol): Change type of "section_offsets".
10732 * ctfread.c (get_objfile_text_range): Update.
10733 * coffread.c (coff_symtab_read, enter_linenos)
10734 (process_coff_symbol): Update.
10735 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10736 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10737
456e800a
TT
107382020-01-08 Tom Tromey <tromey@adacore.com>
10739
10740 * dwarf2read.c (parse_macro_definition): Use std::string.
10741 (parse_macro_definition): Likewise.
10742
6dfa2fc2
TT
107432020-01-08 Tom Tromey <tromey@adacore.com>
10744
10745 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10746 (ATTR_ALLOC_CHUNK): Remove.
10747
421d1616
TT
107482020-01-08 Tom Tromey <tromey@adacore.com>
10749
10750 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10751
43816ebc
TT
107522020-01-08 Tom Tromey <tromey@adacore.com>
10753
10754 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10755 (dwarf2_compute_name, open_dwo_file): Likewise.
10756 (process_enumeration_scope): Use std::vector.
10757 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10758 (partial_die_info::fixup, dwarf2_start_subfile)
10759 (guess_full_die_structure_name, dwarf2_name): Likewise.
10760 (determine_prefix): Update.
10761 (guess_full_die_structure_name): Make return type const.
10762 (partial_die_full_name): Return unique_xmalloc_ptr.
10763 (DW_FIELD_ALLOC_CHUNK): Remove.
10764
4212d509
TT
107652020-01-07 Tom Tromey <tromey@adacore.com>
10766
10767 PR build/24937:
10768 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10769
06a6207a
JT
107702020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10771
10772 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10773
153d79c4
AB
107742020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10775
10776 * stack.c (print_frame_info): Move disassemble_next_line code
10777 inside source_print block.
10778
66182876
EZ
107792020-01-06 Eli Zaretskii <eliz@gnu.org>
10780
10781 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10782 gdb/signals.h, as we are now using native signal symbols.
10783
cbfa8581
SV
107842020-01-06 Shahab Vahedi <shahab@synopsys.com>
10785
10786 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10787 overflow by an early check of content vs threshold.
aac66a4c 10788 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10789 Likewise.
10790
3f602821
EZ
107912020-01-06 Eli Zaretskii <eliz@gnu.org>
10792
10793 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10794
a08c904d
JT
107952020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10796
10797 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10798 export table if no section contains it's RVA.
10799
89a65580
EZ
108002020-01-06 Eli Zaretskii <eliz@gnu.org>
10801
10802 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10803
8b7fcda2
HD
108042020-01-06 Hannes Domani <ssbssa@yahoo.de>
10805
10806 * source.c (print_source_lines_base): Set last_line_listed.
10807
a61b4f69
SV
108082020-01-06 Shahab Vahedi <shahab@synopsys.com>
10809
10810 * tui/tui-disasm.c: Remove trailing spaces.
10811
559e7e50
EZ
108122020-01-06 Eli Zaretskii <eliz@gnu.org>
10813 Pedro Alves <palves@redhat.com>
10814
10815 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10816 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10817 (windows_gdb_signal_to_target): New function, uses the above
10818 enumeration to convert GDB internal signal codes to equivalent
10819 Windows codes.
10820 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10821 * windows-nat.c: Include "gdb_wait.h".
10822 (get_windows_debug_event): Extract the fatal exception from the
10823 exit status and convert to the equivalent Posix signal number.
10824 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10825 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10826 * gdbsupport/gdb_wait.c: New file, implements
10827 windows_status_to_termsig.
10828 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10829 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10830
f2302a34
AB
108312020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10832
10833 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10834 show_layout.
10835
6a5206eb
LM
108362020-01-05 Luis Machado <luis.machado@linaro.org>
10837
10838 * aarch64-linux-nat.c
10839 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10840 and bfd_mach_aarch64.
10841
6ec1d75e
PW
108422020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10843
10844 * ui-file.c (stdio_file::can_emit_style_escape)
10845 (tee_file::can_emit_style_escape): Ensure style is used also on
10846 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10847 to gdb_stdout.
10848 * main.c (set_gdb_data_directory): Use file style to output the
10849 warning that the given pathname is not a directory.
10850 * top.c (show_history_filename, gdb_safe_append_history)
10851 (show_gdb_datadir): Use file style.
10852
44f81a76
HD
108532020-01-03 Hannes Domani <ssbssa@yahoo.de>
10854
10855 * solib-target.c (struct lm_info_target):
10856 Change offsets to be a unique_xmalloc_ptr.
10857 (solib_target_relocate_section_addresses): Update.
10858
25057eb0
HD
108592020-01-03 Hannes Domani <ssbssa@yahoo.de>
10860
10861 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10862
6e2118f5
BE
108632020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10864
10865 * MAINTAINERS (Write After Approval): Add myself.
10866
8133c7dc
LM
108672020-01-02 Luis Machado <luis.machado@linaro.org>
10868
10869 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10870 Cell BE architecture.
10871 * target.h (struct target_ops) <thread_architecture>: Likewise.
10872
48189bec
HD
108732020-01-01 Hannes Domani <ssbssa@yahoo.de>
10874
10875 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10876
ead1063b
HD
108772020-01-01 Hannes Domani <ssbssa@yahoo.de>
10878
10879 * MAINTAINERS (Write After Approval): Add myself.
10880
e5d78223
JB
108812020-01-01 Joel Brobecker <brobecker@adacore.com>
10882
10883 * gdbarch.sh: Update copyright year range of generated files.
10884
b811d2c2
JB
108852020-01-01 Joel Brobecker <brobecker@adacore.com>
10886
10887 Update copyright year range in all GDB files.
10888
5f4def5c
JB
108892020-01-01 Joel Brobecker <brobecker@adacore.com>
10890
10891 * copyright.py: Convert to Python 3.
10892
51fd4002
JB
108932020-01-01 Joel Brobecker <brobecker@adacore.com>
10894
10895 * copyright.py: Adapt after move of gnulib directory from gdb
10896 directory to toplevel directory.
10897
5fb651f2
JB
108982020-01-01 Joel Brobecker <brobecker@adacore.com>
10899
10900 * copyright.py (main): Exit if run from the wrong directory.
10901
5dd8bf88
JB
109022020-01-01 Joel Brobecker <brobecker@adacore.com>
10903
10904 * top.c (print_gdb_version): Change copyright year to 2020.
10905
9f71dacb 109062020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10907
9f71dacb 10908 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10909
9f71dacb 10910For older changes see ChangeLog-2019.
c906108c
SS
10911\f
10912Local Variables:
10913mode: change-log
10914left-margin: 8
10915fill-column: 74
10916version-control: never
57da7796 10917coding: utf-8
c906108c 10918End: