]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
x86: Extract extended states from instruction template
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f37e5866
JB
12020-07-09 John Baldwin <jhb@FreeBSD.org>
2
3 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4 inferior_ptid.
5
fc238d4a
JB
62020-07-09 John Baldwin <jhb@FreeBSD.org>
7
8 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
9 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
10 AT_FREEBSD_PS_STRINGS.
11
6e2469ff
HD
122020-07-08 Hannes Domani <ssbssa@yahoo.de>
13
14 * auto-load.c (auto_load_objfile_script_1): Convert drive part
15 of debugfile path on Windows.
16
d1076c41
JB
172020-07-08 John Baldwin <jhb@FreeBSD.org>
18
19 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
20 argument to 'data'.
21
15f3b077
TT
222020-07-08 Tom Tromey <tromey@adacore.com>
23
24 * ada-lang.c (ada_exception_message_1): Use read_memory.
25
9fc501fd
AB
262020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
27
28 PR python/22748
29 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
30 special handling for inline frames.
31 * findvar.c (value_of_register_lazy): Skip inline frames when
32 creating lazy register values.
33 * frame.c (frame_id_computed_p): Delete definition.
34 * frame.h (frame_id_computed_p): Delete declaration.
35
64cb3757
AB
362020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
37
38 * NEWS: Mention additions to Python API.
39 * python/py-arch.c (archpy_register_groups): New function.
40 (arch_object_methods): Add 'register_groups' method.
41 * python/py-registers.c (reggroup_iterator_object): New struct.
42 (reggroup_object): New struct.
43 (gdbpy_new_reggroup): New function.
44 (gdbpy_reggroup_to_string): New function.
45 (gdbpy_reggroup_name): New function.
46 (gdbpy_reggroup_iter): New function.
47 (gdbpy_reggroup_iter_next): New function.
48 (gdbpy_new_reggroup_iterator): New function
49 (gdbpy_initialize_registers): Register new types.
50 (reggroup_iterator_object_type): Define new Python type.
51 (gdbpy_reggroup_getset): New static global.
52 (reggroup_object_type): Define new Python type.
53 * python/python-internal.h
54
0f767f94
AB
552020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
56
57 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
58 * python/py-arch.c (archpy_registers): New function.
59 (arch_object_methods): Add 'registers' method.
60 * python/py-registers.c: New file.
61 * python/python-internal.h
62 (gdbpy_new_register_descriptor_iterator): Declare.
63 (gdbpy_initialize_registers): Declare.
64 * python/python.c (do_start_initialization): Call
65 gdbpy_initialize_registers.
66 * NEWS: Mention additions to the Python API.
67
87dbc774
AB
682020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
69
70 * NEWS: Mention new Python API method.
71 * python/py-unwind.c (pending_framepy_architecture): New function.
72 (pending_frame_object_methods): Add architecture method.
73
3bc98c0c
AB
742020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
75
76 * gdbarch.c: Regenerate.
77 * gdbarch.h: Regenerate.
78 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
79 (gdbarch_data): Use internal_error for the case where
80 deprecated_set_gdbarch_data was originally needed.
81 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
82 and use passed in obstack.
83 (libunwind_frame_set_descr): Should no longer get back NULL from
84 gdbarch_data.
85 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
86 type.
87 * user-regs.c (user_regs_init): Update parameters, and use passed
88 in obstack.
89 (user_reg_add): Should no longer get back NULL from gdbarch_data.
90 (_initialize_user_regs): Register as a pre-init gdbarch data type.
91
d8cc8af6
TV
922020-07-06 Tom de Vries <tdevries@suse.de>
93
94 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
95 End-Of-Sequence in lte_is_less_than.
96 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
97 "gdb: Don't reorder line table entries too much when sorting".
98
947f7597
TV
992020-07-06 Tom de Vries <tdevries@suse.de>
100
101 PR tui/26205
102 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
103
1e7c1b22
TV
1042020-07-05 Tom de Vries <tdevries@suse.de>
105
106 PR build/26187
107 * inferior.h (struct infcall_suspend_state_deleter): If available, use
108 std::uncaught_exceptions instead of deprecated
109 std::uncaught_exception.
110
a36158ec
SM
1112020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
112
113 * macroexp.h (macro_stringify): Return
114 gdb::unique_xmalloc_ptr<char>.
115 * macroexp.c (macro_stringify): Likewise.
116 * macrotab.c (fixup_definition): Update.
117
14d960c8
SM
1182020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
119
120 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
121 (lex_one_token): Update.
122 * macroexp.c (struct macro_buffer) <release>: Return
123 gdb::unique_xmalloc_ptr<char>.
124 (macro_stringify): Update.
125 (macro_expand): Update.
126 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
127 * macroexp.h (macro_expand_next): Likewise.
128
211d5b1c
SM
1292020-07-02 Simon Marchi <simon.marchi@efficios.com>
130
131 * macroexp.h (macro_lookup_ftype): Remove.
132 (macro_expand, macro_expand_once, macro_expand_next): Remove
133 lookup function parameters, add scope parameter.
134 * macroexp.c (scan, substitute_args, expand, maybe_expand,
135 macro_expand, macro_expand_once, macro_expand_next): Likewise.
136 * macroscope.h (standard_macro_lookup): Change parameter type
137 to macro_scope.
138 * macroscope.c (standard_macro_lookup): Likewise.
139 * c-exp.y (lex_one_token): Update.
140 * macrocmd.c (macro_expand_command): Likewise.
141 (macro_expand_once_command): Likewise.
142
b1a35af2
SM
1432020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
144
145 * inf-loop.c (inferior_event_handler): Remove client_data param.
146 * inf-loop.h (inferior_event_handler): Likewise.
147 * infcmd.c (step_1): Adjust.
148 * infrun.c (proceed): Adjust.
149 (fetch_inferior_event): Remove client_data param.
150 (infrun_async_inferior_event_handler): Adjust.
151 * infrun.h (fetch_inferior_event): Remove `void *` param.
152 * linux-nat.c (handle_target_event): Adjust.
153 * record-btrace.c (record_btrace_handle_async_inferior_event):
154 Adjust.
155 * record-full.c (record_full_async_inferior_event_handler):
156 Adjust.
157 * remote.c (remote_async_inferior_event_handler): Adjust.
158
1cdf9e33
TT
1592020-07-01 Tom Tromey <tom@tromey.com>
160
161 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
162 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
163
32c1e210
TT
1642020-07-01 Tom Tromey <tom@tromey.com>
165
166 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
167 tui_gen_win_info.
168 (tui_win_info::make_window): Merge with
169 tui_gen_win_info::make_window.
170 (tui_win_info::make_visible): Move from tui_gen_win_info.
171 * tui/tui-win.c (tui_win_info::max_width): Move from
172 tui_gen_win_info.
173 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
174 type.
175 <window_factory>: Likewise.
176 * tui/tui-layout.c (tui_win_info::resize): Move from
177 tui_gen_win_info.
178 (make_standard_window): Change return type.
179 (get_locator_window, tui_get_window_by_name): Likewise.
180 (tui_layout_window::apply): Remove a cast.
181 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
182 (struct tui_win_info): Merge with tui_gen_win_info.
183 (struct tui_gen_win_info): Remove.
184
a30cb6da
TT
1852020-07-01 Tom Tromey <tom@tromey.com>
186
187 * tui/tui-stack.h (struct tui_locator_window): Derive from
188 tui_win_info.
189 <do_scroll_horizontal, do_scroll_vertical>: New methods.
190 <can_box>: New method.
191
1eb2161f
TT
1922020-07-01 Tom Tromey <tom@tromey.com>
193
194 * tui/tui-stack.h (struct tui_locator_window): Remove body.
195
7134f2eb
TT
1962020-07-01 Tom Tromey <tom@tromey.com>
197
198 * tui/tui-regs.c (tui_data_window::display_registers_from)
199 (tui_data_window::display_registers_from)
200 (tui_data_window::first_data_item_displayed)
201 (tui_data_window::delete_data_content_windows): Update.
202 (tui_data_window::refresh_window, tui_data_window::no_refresh):
203 Remove.
204 (tui_data_window::check_register_values): Update.
205 (tui_data_item_window::rerender): Add parameters. Update.
206 (tui_data_item_window::refresh_window): Remove.
207 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
208 virtual.
209 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
210 tui_gen_win_info.
211 <refresh_window, max_height, min_height>: Remove.
212 <rerender>: Add parameters.
213 <x, y, visible>: New members.
214 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
215 <m_item_width>: New member.
216
22b7b041
TT
2172020-07-01 Tom Tromey <tom@tromey.com>
218
219 * tui/tui-regs.c (tui_data_window::show_register_group)
220 (tui_data_window::check_register_values): Update.
221 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
222 from item_no.
223
c9753adb
TT
2242020-07-01 Tom Tromey <tom@tromey.com>
225
226 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
227 useless "if".
228
9ab26b4a
TT
2292020-07-01 Tom Tromey <tom@tromey.com>
230
231 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
232 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
233
e555083f
TT
2342020-07-01 Tom Tromey <tom@tromey.com>
235
236 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
237 * tui/tui-winsource.h (enum tui_line_or_address_kind)
238 (struct tui_line_or_address): Move from tui-data.h.
239 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
240 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
241 (tui_cmd_window, tui_source_window_base, tui_source_window)
242 (tui_disasm_window): Don't declare.
243 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
244 to tui-winsource.h.
245 (SINGLE_KEY): Move to tui-stack.c.
246
7a02bab7
TT
2472020-07-01 Tom Tromey <tom@tromey.com>
248
249 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
250 std::string.
251 * tui/tui-regs.c (class tab_expansion_file): New.
252 (tab_expansion_file::write): New method.
253 (tui_register_format): Change return type. Use
254 tab_expansion_file.
255 (tui_get_register, tui_data_window::display_registers_from)
256 (tui_data_item_window::rerender): Update.
257 * tui/tui-io.h (tui_expand_tabs): Don't declare.
258 * tui/tui-io.c (tui_expand_tabs): Remove.
259
ea68593b
TT
2602020-07-01 Tom Tromey <tom@tromey.com>
261
262 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
263
a8caed5d
FS
2642020-07-01 Fangrui Song <maskray@google.com>
265
266 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
267
9cdf9820
AKS
2682020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
269
270 * dwarf2/read.c (set_die_type): Removed conditions to restrict
271 forms for DW_AT_associated and DW_AT_allocated attributes,
272 which is already checked in function attr_to_dynamic_prop.
273
a1520ad8
TT
2742020-06-30 Tom Tromey <tromey@adacore.com>
275
276 * dwarf2/read.c (quirk_rust_enum): Correctly call
277 alloc_rust_variant for default-less enum.
278
5ac58899
TT
2792020-06-30 Tom Tromey <tromey@adacore.com>
280
281 PR build/26183:
282 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
283 gdb::to_string.
284
19b187a9
SM
2852020-06-29 Simon Marchi <simon.marchi@efficios.com>
286
287 * gdbarch.sh (displaced_step_copy_insn): Update doc.
288 * gdbarch.h: Re-generate.
289
cd4c4c07
TT
2902020-06-28 Tom Tromey <tom@tromey.com>
291
292 * command.h (cmd_types): Remove.
293 (cmd_type): Don't declare.
294 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
295 typedef.
296 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
297 * cli/cli-decode.c (cmd_type): Remove.
298
05779d57
PA
2992020-06-27 Pedro Alves <palves@redhat.com>
300
301 * fork-child.c (prefork_hook): Adjust.
302 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
303 Delete.
304 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
305 * inferior.c (inferior::set_tty, inferior::tty): New methods.
306 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
307 Remove declarations.
308 (struct inferior) <set_tty, tty>: New methods.
309 (struct inferior) <terminal>: Rename to ...
310 (struct inferior) <m_terminal>: ... this and make private.
311 * main.c (captured_main_1): Adjust.
312 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
313 (mi_cmd_inferior_tty_show): Adjust.
314 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
315 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
316
1776e3e5
NA
3172020-06-26 Nick Alcock <nick.alcock@oracle.com>
318
319 * configure.ac: Add --enable-libctf: handle --disable-static
320 properly.
321 * acinclude.m4: sinclude ../config/enable.m4.
322 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
323 (LIBCTF): Substitute in.
324 (CTF_DEPS): New, likewise.
325 (CLIBS): libctf needs symbols from libbfd: move earlier.
326 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
327 flags.
328 * ctfread.c: Surround in ENABLE_LIBCTF.
329 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
330 * configure: Regenerate.
331 * config.in: Likewise.
332
58373b80
SM
3332020-06-25 Simon Marchi <simon.marchi@efficios.com>
334
335 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
336
277474ee
SM
3372020-06-25 Simon Marchi <simon.marchi@efficios.com>
338
339 * inferior.h (struct inferior) <terminal>: Change type to
340 gdb::unique_xmalloc_ptr<char>.
341 * inferior.c (inferior::~inferior): Don't free inf->terminal.
342 * infcmd.c (set_inferior_io_terminal): Don't free terminal
343 field, adjust to unique pointer.
344 (get_inferior_io_terminal): Adjust to unique pointer.
345
6d74da72
AB
3462020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
347
348 * riscv-tdep.c (riscv_print_registers_info): Loop over all
349 registers, not just the known core set of registers.
350
2e52d038
AB
3512020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
352
353 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
354 fflags, frm, and fcsr registers.
355 (riscv_register_reggroup_p): Remove unknown CSRs from save and
356 restore groups.
357 (riscv_tdesc_unknown_reg): New function.
358 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
359 tdesc_use_registers.
360 * riscv-tdep.h (struct gdbarch_tdep): Add
361 unknown_csrs_first_regnum, unknown_csrs_count,
362 duplicate_fflags_regnum, duplicate_frm_regnum, and
363 duplicate_fcsr_regnum fields.
364
be64fd07
AB
3652020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
366
367 * target-descriptions.c (tdesc_use_registers): Add new parameter a
368 callback, use the callback (when not null) to help number unknown
369 registers.
370 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
371 (tdesc_use_registers): Add extra parameter to declaration.
372
3b9fce96
AB
3732020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
374
375 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
376 in the file.
377 (class riscv_pending_register_alias): Likewise.
378 (riscv_register_feature::register_info): Change 'required_p' field
379 to 'required', and change its type. Add 'check' member function.
380 (riscv_register_feature::register_info::check): Define new member
381 function.
382 (riscv_xreg_feature): Change initialisation of 'required' field.
383 (riscv_freg_feature): Likewise.
384 (riscv_virtual_feature): Likewise.
385 (riscv_csr_feature): Likewise.
386 (riscv_check_tdesc_feature): Take extra parameter, the csr
387 tdesc_feature, rewrite the function to use the new
388 riscv_register_feature::register_info::check function.
389 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
390
865bad26
AB
3912020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
392
393 * features/Makefile: Remove all references to the deleted files
394 below.
395 * features/riscv/32bit-csr.c: Deleted.
396 * features/riscv/32bit-csr.xml: Deleted.
397 * features/riscv/64bit-csr.c: Deleted.
398 * features/riscv/64bit-csr.xml: Deleted.
399 * features/riscv/rebuild-csr-xml.sh: Deleted.
400
ed69cbc8
AB
4012020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
402
403 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
404 whitespace error for declaration of names member variable.
405 (struct riscv_register_feature): Add new prefer_first_name member
406 variable, and fix whitespace error in declaration of registers.
407 (riscv_xreg_feature): Initialize prefer_first_name field.
408 (riscv_freg_feature): Likewise.
409 (riscv_virtual_feature): Likewise.
410 (riscv_csr_feature): Likewise.
411 (riscv_register_name): Expand on comments. Remove register name
412 modifications for CSR and virtual registers.
413
4445e8f5
AB
4142020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
415
416 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
417 errors.
418
767a879e
AB
4192020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
420
421 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
422 riscv-opc.h.
423 (class riscv_pending_register_alias): New class.
424 (riscv_check_tdesc_feature): Take vector of pending aliases and
425 populate it as appropriate.
426 (riscv_setup_register_aliases): Delete.
427 (riscv_gdbarch_init): Create vector of pending aliases and pass it
428 to riscv_check_tdesc_feature in all cases. Use the vector to
429 create the register aliases.
430
bb6e55f3
RO
4312020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
432
433 * sol2-tdep.c (sol2_static_transform_name): Remove.
434 (sol2_init_abi): Don't register it.
435 * gdbarch.sh (static_transform_name): Remove.
436 * gdbarch.c, gdbarch.h: Regenerate.
437
438 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
439 gdbarch_static_transform_name.
440 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
441 * stabsread.c (define_symbol) <'X'>: Remove.
442 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
443 handling.
444 <'V'>: Likewise.
445 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
446 <'S'>: Remove call to gdbarch_static_transform_name.
447
c6d36836
RO
4482020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
449
450 * procfs.c (procfs_pre_trace): New function.
451 (procfs_target::create_inferior): Pass it to fork_inferior.
452
a7e6196b
RO
4532020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
454
455 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
456 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
457 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
458 sol2-tdep.o, sparc-sol2-tdep.o.
459 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
460 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
461 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
462 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
463
d412e696
RO
4642020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
465
466 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
467 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
468 Call sol2_init_abi.
469 Remove calls to set_gdbarch_skip_solib_resolver,
470 set_gdbarch_core_pid_to_str.
471 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
472 (i386_sol2_static_transform_name): Remove.
473 (i386_sol2_init_abi): Call sol2_init_abi.
474 Remove calls to set_gdbarch_sofun_address_maybe_missing,
475 set_gdbarch_static_transform_name,
476 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
477 Use sol2_sigtramp_p.
478 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
479 (sol2_sigtramp_p): New function.
480 (sol2_static_transform_name): New function.
481 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
482 (sol2_init_abi): New function.
483 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
484 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
485 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
486 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
487 (sparc_sol2_static_transform_name): Remove.
488 (sparc32_sol2_init_abi): Call sol2_init_abi.
489 Remove calls to set_gdbarch_sofun_address_maybe_missing,
490 set_gdbarch_static_transform_name,
491 set_gdbarch_skip_solib_resolver,
492 set_gdbarch_core_pid_to_str.
493 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
494 (sparc_sol2_static_transform_name): Remove
495 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
496 call sol2_sigtramp_p.
497 (sparc64_sol2_init_abi): Call sol2_init_abi.
498 Remove calls to set_gdbarch_sofun_address_maybe_missing,
499 set_gdbarch_static_transform_name,
500 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
501
a8654e7d
PW
5022020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
503
504 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
505 * exec.c (validate_exec_file): If from_tty, set both
506 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
507 * symfile.c (symbol_file_add_with_addrs): if always_confirm
508 and from_tty, unconditionally ask a confirmation.
509
caa7fd04
AB
5102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
511
512 * target-descriptions.c (tdesc_architecture_name): Protect against
513 NULL pointer dereference.
514 (maint_print_xml_tdesc_cmd): New function.
515 (_initialize_target_descriptions): Register new 'maint print
516 xml-tdesc' command and give it the filename completer.
517 * NEWS: Mention new 'maint print xml-tdesc' command.
518
fbf42f4e
AB
5192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
520
521 * target-descriptions.c (class tdesc_compatible_info): New class.
522 (struct target_desc): Change type of compatible vector.
523 (tdesc_compatible_p): Update for change in type of
524 target_desc::compatible.
525 (tdesc_compatible_info_list): New function.
526 (tdesc_compatible_info_arch_name): New function.
527 (tdesc_add_compatible): Update for change in type of
528 target_desc::compatible.
529 (print_c_tdesc::visit_pre): Likewise.
530
20821f4e
AB
5312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
532
533 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
534 whitespace to underscore.
535 (maint_print_c_tdesc_cmd): Use fake filename for target
536 descriptions that came from the target.
537 (_initialize_target_descriptions): Add filename command completion
538 for 'maint print c-tdesc'.
539
1fb5ee62
SM
5402020-06-23 Simon Marchi <simon.marchi@efficios.com>
541
542 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
543 lines.
544
fc3ecb3e
SM
5452020-06-23 Simon Marchi <simon.marchi@efficios.com>
546
547 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
548 lines.
549 (dwarf2_find_location_expression): Likewise.
550 (call_site_parameter_matches): Likewise.
551 (dwarf2_compile_expr_to_ax): Likewise.
552 (disassemble_dwarf_expression): Likewise.
553 (loclist_describe_location): Likewise.
554
236ef034
PA
5552020-06-23 Pedro Alves <palves@redhat.com>
556
557 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
558 progspace-and-thread.h. Include scoped-mock-context.h instead.
559 (register_to_value_test): Use scoped_mock_context.
560 * regcache.c: Include "scoped-mock-context.h".
561 (cooked_read_test): Don't error out if a target is already pushed.
562 Use scoped_mock_context. Adjust.
563 * scoped-mock-context.h: New file.
564
39e7ecca
AB
5652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
566
567 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
568 initializer.
569 (ada_language::is_string_type_p): New member function.
570 * c-lang.c (c_language_data): Delete la_is_string_type_p
571 initializer.
572 (cplus_language_data): Likewise.
573 (asm_language_data): Likewise.
574 (minimal_language_data): Likewise.
575 * d-lang.c (d_language_data): Likewise.
576 * f-lang.c (f_is_string_type_p): Delete function, implementation
577 moved to f_language::is_string_type_p.
578 (f_language_data): Delete la_is_string_type_p initializer.
579 (f_language::is_string_type_p): New member function,
580 implementation from f_is_string_type_p.
581 * go-lang.c (go_is_string_type_p): Delete function, implementation
582 moved to go_language::is_string_type_p.
583 (go_language_data): Delete la_is_string_type_p initializer.
584 (go_language::is_string_type_p): New member function,
585 implementation from go_is_string_type_p.
586 * language.c (language_defn::is_string_type_p): Define new member
587 function.
588 (default_is_string_type_p): Make static, add comment copied from
589 header file.
590 (unknown_language_data): Delete la_is_string_type_p initializer.
591 (unknown_language::is_string_type_p): New member function.
592 (auto_language_data): Delete la_is_string_type_p initializer.
593 (auto_language::is_string_type_p): New member function.
594 * language.h (language_data): Delete la_is_string_type_p field.
595 (language_defn::is_string_type_p): Declare new function.
596 (default_is_string_type_p): Delete desclaration, move comment to
597 definition.
598 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
599 moved to m2_language::is_string_type_p.
600 (m2_language_data): Delete la_is_string_type_p initializer.
601 (m2_language::is_string_type_p): New member function,
602 implementation from m2_is_string_type_p.
603 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
604 initializer.
605 * opencl-lang.c (opencl_language_data): Likewise.
606 * p-lang.c (pascal_is_string_type_p): Delete function,
607 implementation moved to pascal_language::is_string_type_p.
608 (pascal_language_data): Delete la_is_string_type_p initializer.
609 (pascal_language::is_string_type_p): New member function,
610 implementation from pascal_is_string_type_p.
611 * rust-lang.c (rust_is_string_type_p): Delete function,
612 implementation moved to rust_language::is_string_type_p.
613 (rust_language_data): Delete la_is_string_type_p initializer.
614 (rust_language::is_string_type_p): New member function,
615 implementation from rust_is_string_type_p.
616 * valprint.c (val_print_scalar_or_string_type_p): Update call to
617 is_string_type_p.
618
4ffc13fb
AB
6192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
620
621 * ada-lang.c (ada_language_data): Delete la_print_typedef
622 initializer.
623 (ada_language::print_typedef): New member function.
624 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
625 (cplus_language_data): Likewise.
626 (asm_language_data): Likewise.
627 (minimal_language_data): Likewise.
628 * d-lang.c (d_language_data): Likewise.
629 * f-lang.c (f_language_data): Likewise.
630 (f_language::print_typedef): New member function.
631 * go-lang.c (go_language_data): Delete la_print_typedef
632 initializer.
633 * language.c (language_defn::print_typedef): Define member
634 function.
635 (unknown_language_data): Delete la_print_typedef initializer.
636 (unknown_language::print_typedef): New member function.
637 (auto_language_data): Delete la_print_typedef initializer.
638 (auto_language::print_typedef): New member function.
639 * language.h (language_data): Delete la_print_typedef field.
640 (language_defn::print_typedef): Declare new member function.
641 (LA_PRINT_TYPEDEF): Update call to print_typedef.
642 (default_print_typedef): Delete declaration.
643 * m2-lang.c (m2_language_data): Delete la_print_typedef
644 initializer.
645 (m2_language::print_typedef): New member function.
646 * objc-lang.c (objc_language_data): Delete la_print_typedef
647 initializer.
648 * opencl-lang.c (opencl_language_data): Likewise.
649 * p-lang.c (pascal_language_data): Likewise.
650 (pascal_language::print_typedef): New member function.
651 * rust-lang.c (rust_print_typedef): Delete function,
652 implementation moved to rust_language::print_typedef.
653 (rust_language): Delete la_print_typedef initializer.
654 (rust_language::print_typedef): New member function,
655 implementation from rust_print_typedef.
656 * typeprint.c (default_print_typedef): Delete.
657
d711ee67
AB
6582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
659
660 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
661 (ada_language::printstr): New member function.
662 * c-lang.c (c_language_data): Delete la_printstr initializer.
663 (cplus_language_data): Likewise.
664 (asm_language_data): Likewise.
665 (minimal_language_data): Likewise.
666 * d-lang.c (d_language_data): Likewise.
667 * f-lang.c (f_printstr): Rename to f_language::printstr.
668 (f_language_data): Delete la_printstr initializer.
669 (f_language::printstr): New member function, implementation from
670 f_printstr.
671 * go-lang.c (go_language_data): Delete la_printstr initializer.
672 * language.c (language_defn::printstr): Define new member
673 function.
674 (unk_lang_printstr): Delete.
675 (unknown_language_data): Delete la_printstr initializer.
676 (unknown_language::printstr): New member function.
677 (auto_language_data): Delete la_printstr initializer.
678 (auto_language::printstr): New member function.
679 * language.h (language_data): Delete la_printstr field.
680 (language_defn::printstr): Declare new member function.
681 (LA_PRINT_STRING): Update call to printstr.
682 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
683 (m2_language_data): Delete la_printstr initializer.
684 (m2_language::printstr): New member function, implementation from
685 m2_printstr.
686 * objc-lang.c (objc_language_data): Delete la_printstr
687 initializer.
688 * opencl-lang.c (opencl_language_data): Likewise.
689 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
690 (pascal_language_data): Delete la_printstr initializer.
691 (pascal_language::printstr): New member function, implementation
692 from pascal_printstr.
693 * p-lang.h (pascal_printstr): Delete declaration.
694 * rust-lang.c (rust_printstr): Update header comment.
695 (rust_language_data): Delete la_printstr initializer.
696 (rust_language::printstr): New member function.
697
52b50f2c
AB
6982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
699
700 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
701 (ada_language::printchar): New member function.
702 * c-lang.c (c_language_data): Delete la_printchar initializer.
703 (cplus_language_data): Likewise.
704 (asm_language_data): Likewise.
705 (minimal_language_data): Likewise.
706 * d-lang.c (d_language_data): Likewise.
707 * f-lang.c (f_printchar): Rename to f_language::printchar.
708 (f_language_data): Delete la_printchar initializer.
709 (f_language::printchar): New member function, implementation from
710 f_printchar.
711 * go-lang.c (go_language_data): Delete la_printchar initializer.
712 * language.c (unk_lang_printchar): Delete.
713 (language_defn::printchar): Define new member function.
714 (unknown_language_data): Delete la_printchar initializer.
715 (unknown_language::printchar): New member function.
716 (auto_language_data): Delete la_printchar initializer.
717 (auto_language::printchar): New member function.
718 * language.h (language_data): Delete la_printchar field.
719 (language_defn::printchar): Declare new member function.
720 (LA_PRINT_CHAR): Update call to printchar.
721 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
722 (m2_language::printchar): New member function.
723 * objc-lang.c (objc_language_data): Delete la_printchar
724 initializer.
725 * opencl-lang.c (opencl_language_data): Likewise.
726 * p-lang.c (pascal_language_data): Delete la_printchar
727 initializer.
728 (pascal_language::printchar): New member function.
729 * rust-lang.c (rust_printchar): Rename to
730 rust_language::printchar.
731 (rust_language_data): Delete la_printchar initializer.
732 (rust_language::printchar): New member function, implementation
733 from rust_printchar.
734
ec8cec5b
AB
7352020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
736
737 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
738 (ada_language_data): Delete la_emitchar initializer.
739 (ada_language::emitchar): New member function, implementation from
740 emit_char.
741 * c-lang.c (c_language_data): Delete la_emitchar initializer.
742 (cplus_language_data): Likewise.
743 (asm_language_data): Likewise.
744 (minimal_language_data): Likewise.
745 * d-lang.c (d_language_data): Likewise.
746 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
747 (f_language_data): Delete la_emitchar initializer.
748 (f_language::emitchar): New member function, implementation from
749 f_emit_char.
750 * go-lang.c (go_language_data): Delete la_emitchar initializer.
751 * language.c (unk_lang_emit_char): Delete.
752 (language_defn::emitchar): New member function definition.
753 (unknown_language_data): Delete la_emitchar initializer.
754 (unknown_language::emitchar): New member function.
755 (auto_language_data): Delete la_emitchar initializer.
756 (auto_language::emitchar): New member function.
757 * language.h (language_data): Delete la_emitchar field.
758 (language_defn::emitchar): New member field declaration.
759 (LA_EMIT_CHAR): Update call to emitchar.
760 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
761 (m2_language_data): Delete la_emitchar initializer.
762 (m2_language::emitchar): New member function, implementation from
763 m2_emit_char.
764 * objc-lang.c (objc_language_data): Delete la_emitchar
765 initializer.
766 * opencl-lang.c (opencl_language_data): Likewise.
767 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
768 (pascal_language_data): Delete la_emitchar initializer.
769 (pascal_language::emitchar): New member function, implementation
770 from pascal_emit_char.
771 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
772 (rust_language_data): Delete la_emitchar initializer.
773 (rust_language::emitchar): New member function, implementation
774 from rust_emitchar.
775
1bf9c363
AB
7762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
777
778 * ada-lang.c (resolve): Rename to ada_language::post_parser.
779 (ada_language_data): Delete la_post_parser initializer.
780 (ada_language::post_parser): New member function.
781 * c-lang.c (c_language_data): Delete la_post_parser initializer.
782 (cplus_language_data): Likewise.
783 (asm_language_data): Likewise.
784 (minimal_language_data): Likewise.
785 * d-lang.c (d_language_data): Likewise.
786 * f-lang.c (f_language_data): Likewise.
787 * go-lang.c (go_language_data): Likewise.
788 * language.c (unknown_language_data): Likewise.
789 (auto_language_data): Likewise.
790 * language.h (language_data): Delete la_post_parser field.
791 (language_defn::post_parser): New member function.
792 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
793 * objc-lang.c (objc_language_data): Likewise.
794 * opencl-lang.c (opencl_language_data): Likewise.
795 * p-lang.c (pascal_language_data): Likewise.
796 * parse.c (parse_exp_in_context): Update call to post_parser.
797 (null_post_parser): Delete definition.
798 * parser-defs.h (null_post_parser): Delete declaration.
799 * rust-lang.c (rust_language_data): Delete la_post_parser
800 initializer.
801
87afa652
AB
8022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
803
804 * ada-lang.c (parse): Rename to ada_language::parser.
805 (ada_language_data): Delete la_parser initializer.
806 (ada_language::parser): New member function, implementation from
807 parse.
808 * c-lang.c (c_language_data): Delete la_parser initializer.
809 (cplus_language_data): Likewise.
810 (asm_language_data): Likewise.
811 (minimal_language_data): Likewise.
812 * d-lang.c (d_language_data): Likewise.
813 (d_language::parser): New member function.
814 * f-lang.c (f_language_data): Delete la_parser initializer.
815 (f_language::parser): New member function.
816 * go-lang.c (go_language_data): Delete la_parser initializer.
817 (go_language::parser): New member function.
818 * language.c (unk_lang_parser): Delete.
819 (language_defn::parser): Define new member function.
820 (unknown_language_data): Delete la_parser initializer.
821 (unknown_language::parser): New member function.
822 (auto_language_data): Delete la_parser initializer.
823 (auto_language::parser): New member function.
824 * language.h (language_data): Delete la_parser field.
825 (language_defn::parser): Declare new member function.
826 * m2-lang.c (m2_language_data): Delete la_parser initializer.
827 (m2_language::parser): New member function.
828 * objc-lang.c (objc_language_data): Delete la_parser initializer.
829 * opencl-lang.c (opencl_language_data): Likewise.
830 * p-lang.c (pascal_language_data): Likewise.
831 (pascal_language::parser): New member function.
832 * parse.c (parse_exp_in_context): Update call to parser.
833 * rust-lang.c (rust_language_data): Delete la_parser initializer.
834 (rust_language::parser): New member function.
835
37825800
AB
8362020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
837
838 * top.c (print_gdb_configuration): Print --with-python-libdir
839 configuration value.
840
5b860c93
PW
8412020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
842
843 * NEWS: Mention change to the alias command.
844
cf00cd6f
PW
8452020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
846
847 * cli/cli-cmds.c (lookup_cmd_for_default_args)
848 (alias_command_completer)
849 (make_alias_options_def_group): New functions.
850 (alias_opts, alias_option_defs): New struct and array.
851 (alias_usage_error): Update usage.
852 (alias_command): Handles optional DEFAULT-ARGS... arguments.
853 Use option framework.
854 (_initialize_cli_cmds): Update alias command help.
855 Update aliases command help.
856 (show_user):
857 Add NULL for new default_args lookup_cmd argument.
858 (valid_command_p): Rename to validate_aliased_command.
859 Add NULL for new default_args lookup_cmd argument. Verify that the
860 aliased_command has no default args.
861 * cli/cli-decode.c (help_cmd): Show aliases definitions.
862 (lookup_cmd_1, lookup_cmd): New argument default_args.
863 (add_alias_cmd):
864 Add NULL for new default_args lookup_cmd argument.
865 (print_help_for_command): Show default args under the layout
866 alias some_alias = some_aliased_cmd some_alias_default_arg.
867 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
868 xfree default_args in destructor.
869 * cli/cli-script.c (process_next_line, do_define_command):
870 Add NULL for new default_args lookup_cmd argument.
871 * command.h: Declare new default_args argument in lookup_cmd
872 and lookup_cmd_1.
873 * completer.c (complete_line_internal_1):
874 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
875 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
876 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
877 Likewise.
878 * infcmd.c (_initialize_infcmd): Likewise.
879 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
880 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
881 * python/py-param.c (add_setshow_generic): Likewise.
882 * remote.c (_initialize_remote): Likewise.
883 * top.c (execute_command): Prepend default_args if command has some.
884 (set_verbose):
885 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
886 * tracepoint.c (validate_actionline, encode_actions_1):
887 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
888
bd920864
TBA
8892020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
890
891 * jit.c (jit_read_descriptor): Use bool as the return type.
892 (jit_breakpoint_re_set_internal): Use bool as the return type.
893 Invert the return value logic; return true if the jit breakpoint
894 has been successfully initialized.
895 (jit_inferior_init): Update the call to
896 jit_breakpoint_re_set_internal.
897
f8098322
PA
8982020-06-22 Pedro Alves <palves@redhat.com>
899
900 PR gdb/25939
901 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
902 Use the current inferior instead. Don't return
903 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
904 wait again.
905 * sol-thread.c (sol_thread_target::wait): Don't reference
906 inferior_ptid.
907 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
908 (sol_update_thread_list_callback): Use the current inferior's pid
909 instead of inferior_ptid.
910
196535a6
RO
9112020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
912
913 * procfs.c: Cleanup many comments.
914
915 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
916 (AFTER_WATCHFLAG): Replace by value.
917
918 (MAIN_PROC_NAME_FORMAT): Inline ...
919 (create_procinfo): ... here.
920
921 (procfs_debug_inferior): Remove SYS_exec handling.
922 (syscall_is_exec): Likewise.
923 (procfs_set_exec_trap): Likewise.
924
925 (syscall_is_lwp_exit): Inline in callers.
926 (syscall_is_exit): Likewise.
927 (syscall_is_exec): Likewise.
928 (syscall_is_lwp_create): Likewise.
929
930 (invalidate_cache): Remove #if 0 code.
931
932 (make_signal_thread_runnable): Remove.
933 (procfs_target::resume): Remove #if 0 code.
934
cf6f3e86
RO
9352020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
936
937 PR gdb/25939
938 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
939 call ...
940 (procfs_target::create_inferior): ... here.
941
48e9cc84
PW
9422020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
943
944 * exec.c (validate_exec_file): Ensure the build-id is up to
945 date by calling reopen_exec_file (that checks file timestamp
946 to decide to re-read the file).
947
3922b302
PA
9482020-06-18 Pedro Alves <palves@redhat.com>
949
950 PR gdb/25412
951 * gdbthread.h (delete_thread, delete_thread_silent)
952 (find_thread_ptid): Update comments.
953 * thread.c (current_thread_): New global.
954 (is_current_thread): Move higher, and reimplement.
955 (inferior_thread): Reimplement.
956 (set_thread_exited): Use bool. Add assertions.
957 (add_thread_silent): Simplify thread-reuse handling by always
958 calling delete_thread.
959 (delete_thread): Remove intro comment.
960 (find_thread_ptid): Skip exited threads.
961 (switch_to_thread_no_regs): Write to current_thread_.
962 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
963 INFERIOR_PTID. Clear current_thread_.
964
6dbdab44
PA
9652020-06-18 Pedro Alves <palves@redhat.com>
966
967 * aix-thread.c (pd_update): Use switch_to_thread.
968
2da4b788
PA
9692020-06-18 Pedro Alves <palves@redhat.com>
970
971 * ravenscar-thread.c (ravenscar_thread_target): Update.
972 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
973 (ravenscar_thread_target::add_active_thread): ... this. Don't
974 set m_base_ptid here. Update to avoid referencing inferior_ptid.
975 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
976
50838d1b
PA
9772020-06-18 Pedro Alves <palves@redhat.com>
978
979 * nat/windows-nat.c (current_windows_thread): Remove.
980 * nat/windows-nat.h (current_windows_thread): Remove.
981 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
982 Adjust.
983 (display_selectors): Adjust to fetch the current
984 windows_thread_info based on inferior_ptid.
985 (fake_create_process): No longer write to current_windows_thread.
986 (windows_nat_target::get_windows_debug_event):
987 Don't set inferior_ptid or current_windows_thread.
988 (windows_nat_target::wait): Adjust to not rely on
989 current_windows_thread.
990 (do_initial_windows_stuff): Now a method of windows_nat_target.
991 Switch to the last_ptid thread.
992 (windows_nat_target::attach): Adjust.
993 (windows_nat_target::detach): Use switch_to_no_thread instead of
994 writing to inferior_ptid directly.
995 (windows_nat_target::create_inferior): Adjust.
996
31ce04e9
PA
9972020-06-18 Pedro Alves <palves@redhat.com>
998
999 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1000
1ee1a363
PA
10012020-06-18 Pedro Alves <palves@redhat.com>
1002
1003 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1004 after creating it, instead of writing to inferior_ptid. Don't
1005 write to inferior_ptid.
1006
6d350754
PA
10072020-06-18 Pedro Alves <palves@redhat.com>
1008
1009 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1010
5d971d48
PA
10112020-06-18 Pedro Alves <palves@redhat.com>
1012
1013 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1014 it, instead of writing to inferior_ptid.
1015
86e57d1b
PA
10162020-06-18 Pedro Alves <palves@redhat.com>
1017
1018 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1019 to inferior_ptid.
1020
f2e1c129
PA
10212020-06-18 Pedro Alves <palves@redhat.com>
1022
1023 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1024 instead of writing to inferior_ptid directly.
1025
60db1b85
PA
10262020-06-18 Pedro Alves <palves@redhat.com>
1027
1028 * corelow.c (core_target::close): Use switch_to_no_thread instead
1029 of writing to inferior_ptid directly.
1030 (add_to_thread_list, core_target_open): Use switch_to_thread
1031 instead of writing to inferior_ptid directly.
1032
fe7d6a8d
PA
10332020-06-18 Pedro Alves <palves@redhat.com>
1034
1035 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1036 inferior_ptid.
1037 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1038 inferior_ptid.
1039 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1040 inferior_ptid directly.
1041 (darwin_nat_target::init_thread_list): Switch to thread, instead
1042 of writing to inferior_ptid.
1043 (darwin_nat_target::attach): Don't write to inferior_ptid.
1044 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1045
975f8708
PA
10462020-06-18 Pedro Alves <palves@redhat.com>
1047
1048 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1049 thread.
1050 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1051 Instead use switch_to_thread.
1052 (gnu_nat_target::detach): Use switch_to_no_thread
1053 instead of writing to inferior_ptid directly. Used passed-in
1054 inferior instead of looking up the inferior by pid.
1055
1a204730
PA
10562020-06-18 Pedro Alves <palves@redhat.com>
1057
1058 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1059 inferior_ptid.
1060
ebe84f23
PA
10612020-06-18 Pedro Alves <palves@redhat.com>
1062
1063 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1064 inferior_ptid.
1065 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1066 thread.
1067 (nto_procfs_target::detach): Avoid referencing
1068 inferior_ptid. Use switch_to_no_thread instead of writing to
1069 inferior_ptid directly.
1070 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1071 instead of writing to inferior_ptid directly.
1072 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1073 to thread.
1074
191f02e5
PA
10752020-06-18 Pedro Alves <palves@redhat.com>
1076
1077 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1078 after creating it, instead of writing to inferior_ptid.
1079 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1080 to inferior_ptid directly.
1081 (gdbsim_target::wait): Don't write to inferior_ptid.
1082
0ac55310
PA
10832020-06-18 Pedro Alves <palves@redhat.com>
1084
1085 * remote.c (remote_target::remote_notice_new_inferior): Use
1086 switch_to_thread instead of writing to inferior_ptid directly.
1087 (remote_target::add_current_inferior_and_thread): Use
1088 switch_to_no_thread instead of writing to inferior_ptid directly.
1089 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1090 and switch_to_thread instead of using set_current_inferior or
1091 writing to inferior_ptid directly.
1092
5233f39b
PA
10932020-06-18 Pedro Alves <palves@redhat.com>
1094
1095 * tracectf.c (ctf_target_open): Switch to added thread instead of
1096 writing to inferior_ptid directly.
1097 (ctf_target::close): Use switch_to_no_thread instead of writing to
1098 inferior_ptid directly.
1099
087e161b
PA
11002020-06-18 Pedro Alves <palves@redhat.com>
1101
1102 * tracefile-tfile.c (tfile_target_open): Don't write to
1103 inferior_ptid directly, instead switch to added thread.
1104 (tfile_target::close): Use switch_to_no_thread instead of writing
1105 to inferior_ptid directly.
1106
7fb43e53
PA
11072020-06-18 Pedro Alves <palves@redhat.com>
1108
1109 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1110 (procfs_target::detach): Use switch_to_no_thread
1111 instead of writing to inferior_ptid directly.
1112 (do_attach): Change return type to void. Switch to the added
1113 thread.
1114 (procfs_target::create_inferior): Switch to the added thread.
1115 (procfs_do_thread_registers): Don't write to inferior_ptid.
1116
18493a00
PA
11172020-06-18 Pedro Alves <palves@redhat.com>
1118
1119 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1120 of writing to inferior_ptid.
1121 (scoped_restore_exited_inferior): Delete.
1122 (handle_vfork_child_exec_or_exit): Simplify using
1123 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1124 instead of writing to inferior_ptid.
1125 (THREAD_STOPPED_BY): Delete.
1126 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1127 (thread_stopped_by_hw_breakpoint): Delete.
1128 (save_waitstatus): Use
1129 scoped_restore_current_thread+switch_to_thread, and call
1130 target_stopped_by_watchpoint instead of
1131 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1132 instead of thread_stopped_by_sw_breakpoint, and
1133 target_stopped_by_hw_breakpoint instead of
1134 thread_stopped_by_hw_breakpoint.
1135 (handle_inferior_event)
1136 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1137 inferior_ptid directly, nor
1138 set_current_inferior/set_current_program_space. Use
1139 switch_to_thread / switch_to_inferior_no_thread instead.
1140
a0776b13
PA
11412020-06-18 Pedro Alves <palves@redhat.com>
1142
1143 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1144 instead of writing to inferior_ptid.
1145
6155c136
PA
11462020-06-18 Pedro Alves <palves@redhat.com>
1147
1148 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1149 added thread.
1150 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1151 to the added thread.
1152 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1153 instead of writing to inferior_ptid.
1154
c5316fc6
PA
11552020-06-18 Pedro Alves <palves@redhat.com>
1156
1157 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1158 (register_to_value_test): Mock a program_space too. Heap-allocate
1159 the address space. Don't write to inferior_ptid. Use
1160 switch_to_thread instead.
1161
8df01799
PA
11622020-06-18 Pedro Alves <palves@redhat.com>
1163
1164 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1165 Delete.
1166 (find_signalled_thread()): New, factored out from
1167 linux_make_corefile_notes and adjusted to handle exited threads.
1168 (linux_make_corefile_notes): Adjust to use the new
1169 find_signalled_thread.
1170
41792d68
PA
11712020-06-18 Pedro Alves <palves@redhat.com>
1172
1173 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1174 of saving/restoring inferior_ptid.
1175
612f258a
TT
11762020-06-17 Tom Tromey <tom@tromey.com>
1177
1178 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1179 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1180 declare.
1181 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1182
efb763a5
SM
11832020-06-15 Simon Marchi <simon.marchi@efficios.com>
1184
1185 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1186 of partial symtabs.
1187
2951f6c0
SM
11882020-06-17 Simon Marchi <simon.marchi@efficios.com>
1189
1190 * regformats/reg-arm.dat: Remove.
1191 * regformats/reg-bfin.dat: Remove.
1192 * regformats/reg-cris.dat: Remove.
1193 * regformats/reg-crisv32.dat: Remove.
1194 * regformats/reg-m32r.dat: Remove.
1195 * regformats/reg-tilegx.dat: Remove.
1196 * regformats/reg-tilegx32.dat: Remove.
1197
7d458ea5
SM
11982020-06-17 Simon Marchi <simon.marchi@efficios.com>
1199
1200 * features/Makefile (WHICH): Remove arm files.
1201 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1202 * regformats/arm/arm-with-neon.dat: Remove.
1203 * regformats/arm/arm-with-vfpv2.dat: Remove.
1204 * regformats/arm/arm-with-vfpv3.dat: Remove.
1205
3af96c0d
SM
12062020-06-17 Simon Marchi <simon.marchi@efficios.com>
1207
1208 * features/Makefile (XMLTOC): Remove rx.xml.
1209
b25e22fd
PA
12102020-06-17 Pedro Alves <palves@redhat.com>
1211
1212 * gdbthread.h (thread_control_state) <trap_expected> Update
1213 comments.
1214
a78a19b1
AB
12152020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1216
1217 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1218 ada_language::lookup_symbol_nonlocal.
1219 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1220 (ada_language::lookup_symbol_nonlocal): New member function,
1221 implementation from ada_lookup_symbol_nonlocal.
1222 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1223 initializer.
1224 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1225 initializer.
1226 (cplus_language::lookup_symbol_nonlocal): New member function.
1227 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1228 (minimal_language_data) Likewise.
1229 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1230 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1231 initializer.
1232 (d_language::lookup_symbol_nonlocal): New member function.
1233 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1234 initializer.
1235 (f_language::lookup_symbol_nonlocal): New member function.
1236 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1237 initializer.
1238 * language.c (unknown_language_data): Likewise.
1239 (auto_language_data): Likewise.
1240 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1241 field.
1242 (language_defn::lookup_symbol_nonlocal): New member function.
1243 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1244 initializer.
1245 * objc-lang.c (objc_language_data): Likewise.
1246 * opencl-lang.c (opencl_language_data): Likewise.
1247 * p-lang.c (pascal_language_data): Likewise.
1248 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1249 rust_language::lookup_symbol_nonlocal.
1250 (rust_language_data): Delete la_lookup_symbol_nonlocal
1251 initializer.
1252 (rust_language::lookup_symbol_nonlocal): New member function,
1253 implementation from rust_lookup_symbol_nonlocal.
1254 * symtab.c (lookup_symbol_aux): Update call to
1255 lookup_symbol_nonlocal.
1256 (basic_lookup_symbol_nonlocal): Rename to...
1257 (language_defn::lookup_symbol_nonlocal): ...this, and update
1258 header comment. Remove language_defn parameter, and replace with
1259 uses of `this'.
1260 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1261
ebe2334e
AB
12622020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1263
1264 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1265 initializer.
1266 (ada_language::value_print_inner): New member function.
1267 * c-lang.c (c_language_data): Delete la_value_print_inner
1268 initializer.
1269 (cplus_language_data): Likewise.
1270 (asm_language_data): Likewise.
1271 (minimal_language_data): Likewise.
1272 * d-lang.c (d_language_data): Likewise.
1273 (d_language::value_print_inner): New member function.
1274 * f-lang.c (f_language_data): Delete la_value_print_inner
1275 initializer.
1276 (f_language::value_print_inner): New member function.
1277 * f-lang.h (f_value_print_innner): Rename to...
1278 (f_value_print_inner): ...this (note spelling of 'inner').
1279 * f-valprint.c (f_value_print_innner): Rename to...
1280 (f_value_print_inner): ...this (note spelling of 'inner').
1281 * go-lang.c (go_language_data): Delete la_value_print_inner
1282 initializer.
1283 (go_language::value_print_inner): New member function.
1284 * language.c (language_defn::value_print_inner): Define new member
1285 function.
1286 (unk_lang_value_print_inner): Delete.
1287 (unknown_language_data): Delete la_value_print_inner initializer.
1288 (unknown_language::value_print_inner): New member function.
1289 (auto_language_data): Delete la_value_print_inner initializer.
1290 (auto_language::value_print_inner): New member function.
1291 * language.h (language_data): Delete la_value_print_inner field.
1292 (language_defn::value_print_inner): Delcare new member function.
1293 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1294 initializer.
1295 (m2_language::value_print_inner): New member function.
1296 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1297 initializer.
1298 * opencl-lang.c (opencl_language_data): Likewise.
1299 * p-lang.c (pascal_language_data): Likewise.
1300 (pascal_language::value_print_inner): New member function.
1301 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1302 initializer.
1303 (rust_language::value_print_inner): New member function.
1304 * valprint.c (do_val_print): Update call to value_print_inner.
1305
a1d1fa3e
AB
13062020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1307
1308 * ada-lang.c (ada_language_data): Delete la_value_print
1309 initializer.
1310 (ada_language::value_print): New member function.
1311 * c-lang.c (c_language_data): Delete la_value_print initializer.
1312 (cplus_language_data): Likewise.
1313 (asm_language_data): Likewise.
1314 (minimal_language_data): Likewise.
1315 * d-lang.c (d_language_data): Likewise.
1316 * f-lang.c (f_language_data): Likewise.
1317 * go-lang.c (go_language_data): Likewise.
1318 * language.c (unk_lang_value_print): Delete.
1319 (language_defn::value_print): Define new member function.
1320 (unknown_language_data): Delete la_value_print initializer.
1321 (unknown_language::value_print): New member function.
1322 (auto_language_data): Delete la_value_print initializer.
1323 (auto_language::value_print): New member function.
1324 * language.h (language_data): Delete la_value_print field.
1325 (language_defn::value_print): Declare new member function.
1326 (LA_VALUE_PRINT): Update call to value_print.
1327 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1328 * objc-lang.c (objc_language_data): Likewise.
1329 * opencl-lang.c (opencl_language_data): Likewise.
1330 * p-lang.c (pascal_language_data): Likewise.
1331 (pascal_language::value_print): New member function.
1332 * rust-lang.c (rust_language_data): Delete la_value_print
1333 initializer.
1334
f16a9f57
AB
13352020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1336
1337 * ada-lang.c (ada_watch_location_expression): Rename to
1338 ada_language::watch_location_expression.
1339 (ada_language_data): Delete la_watch_location_expression
1340 initializer.
1341 (ada_language::watch_location_expression): New member function,
1342 implementation from ada_watch_location_expression.
1343 * breakpoint.c (watch_command_1): Update call to
1344 watch_location_expression.
1345 * c-lang.c (c_watch_location_expression): Rename to
1346 language_defn::watch_location_expression.
1347 (c_language_data): Delete la_watch_location_expression
1348 initializer.
1349 (cplus_language_data): Likewise.
1350 (asm_language_data): Likewise.
1351 (minimal_language_data): Likewise.
1352 * c-lang.h (c_watch_location_expression): Delete declaration.
1353 * d-lang.c (d_language_data): Delete la_watch_location_expression
1354 initializer.
1355 * f-lang.c (f_language_data): Likewise.
1356 * go-lang.c (go_language_data): Likewise.
1357 * language.c (language_defn::watch_location_expression): Member
1358 function implementation from c_watch_location_expression.
1359 (unknown_language_data): Delete la_watch_location_expression
1360 initializer.
1361 (auto_language_data): Likewise.
1362 * language.h (language_data): Delete la_watch_location_expression
1363 field.
1364 (language_defn::watch_location_expression): Declare new member
1365 function.
1366 * m2-lang.c (m2_language_data): Delete
1367 la_watch_location_expression initializer.
1368 * objc-lang.c (objc_language_data): Likewise.
1369 * opencl-lang.c (opencl_language_data): Likewise.
1370 * p-lang.c (pascal_language_data): Likewise.
1371 * rust-lang.c (rust_watch_location_expression): Rename to
1372 rust_language::watch_location_expression.
1373 (rust_language_data): Delete la_watch_location_expression
1374 initializer.
1375 (rust_language::watch_location_expression): New member function,
1376 implementation from rust_watch_location_expression.
1377
7e56227d
AB
13782020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1379
1380 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1381 ada_language::collect_symbol_completion_matches.
1382 (ada_language_data): Delete la_collect_symbol_completion_matches
1383 initializer.
1384 (ada_language::collect_symbol_completion_matches): New member
1385 function, implementation from
1386 ada_collect_symbol_completion_matches.
1387 * c-lang.c (c_language_data): Delete
1388 la_collect_symbol_completion_matches initializer.
1389 (cplus_language_data): Likewise.
1390 (asm_language_data): Likewise.
1391 (minimal_language_data): Likewise.
1392 * d-lang.c (d_language_data): Likewise.
1393 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1394 f_language::collect_symbol_completion_matches.
1395 (f_language_data): Delete la_collect_symbol_completion_matches
1396 initializer.
1397 (f_language::collect_symbol_completion_matches) New member
1398 function, implementation from f_collect_symbol_completion_matches.
1399 * go-lang.c (go_language_data): Delete
1400 la_collect_symbol_completion_matches initializer.
1401 * language.c (unknown_language_data): Likewise.
1402 (auto_language_data): Likewise.
1403 * language.h (language_data): Delete
1404 la_collect_symbol_completion_matches field.
1405 (language_defn::collect_symbol_completion_matches): New member
1406 function.
1407 * m2-lang.c (m2_language_data): Delete
1408 la_collect_symbol_completion_matches initializer.
1409 * objc-lang.c (objc_language_data): Likewise.
1410 * opencl-lang.c (opencl_language_data): Likewise.
1411 * p-lang.c (pascal_language_data): Likewise.
1412 * rust-lang.c (rust_language_data): Likewise.
1413 * symtab.c (default_collect_symbol_completion_matches): Delete.
1414 (collect_symbol_completion_matches): Update call to
1415 collect_symbol_completion_matches.
1416 (collect_symbol_completion_matches_type): Likewise.
1417 * symtab.h (default_collect_symbol_completion_matches): Delete
1418 declaration.
1419
53fc67f8
AB
14202020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1421
1422 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1423 (ada_language_data): Delete la_word_break_characters initializer.
1424 (ada_language::word_break_characters): New member function.
1425 * c-lang.c (c_language_data): Delete la_word_break_characters
1426 initializer.
1427 (cplus_language_data): Likewise.
1428 (asm_language_data): Likewise.
1429 (minimal_language_data): Likewise.
1430 * completer.c: Update global comment.
1431 (advance_to_expression_complete_word_point): Update call to
1432 word_break_characters.
1433 (complete_files_symbols): Likewise.
1434 (complete_line_internal_1): Likewise.
1435 (default_completer_handle_brkchars): Likewise.
1436 (skip_quoted_chars): Likewise.
1437 * d-lang.c (d_language_data): Delete la_word_break_characters
1438 initializer.
1439 * f-lang.c (f_word_break_characters): Delete.
1440 (f_language_data): Delete la_word_break_characters initializer.
1441 (f_language::word_break_characters): New member function.
1442 * go-lang.c (go_language_data): Delete la_word_break_characters
1443 initializer.
1444 * language.c (unknown_language_data): Likewise.
1445 (auto_language_data): Likewise.
1446 * language.h (default_word_break_characters): Move declaration to
1447 earlier in the file.
1448 (language_data): Delete la_word_break_characters field.
1449 (language_defn::word_break_characters): New member function.
1450 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1451 initializer.
1452 * objc-lang.c (objc_language_data): Likewise.
1453 * opencl-lang.c (opencl_language_data): Likewise.
1454 * p-lang.c (pascal_language_data): Likewise.
1455 * rust-lang.c (rust_language_data): Likewise.
1456
c9debfb9
AB
14572020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1458
1459 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1460 (ada_language_data): Delete la_get_symbol_name_matcher
1461 initializer.
1462 (language_defn::get_symbol_name_matcher_inner): New member
1463 function.
1464 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1465 initializer.
1466 (cplus_language_data): Likewise.
1467 (cplus_language::get_symbol_name_matcher_inner): New member
1468 function.
1469 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1470 (minimal_language_data): Likewise.
1471 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1472 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1473 initializer.
1474 * dictionary.c (iter_match_first_hashed): Update call to
1475 get_symbol_name_matcher.
1476 (iter_match_next_hashed): Likewise.
1477 (iter_match_next_linear): Likewise.
1478 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1479 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1480 initializer.
1481 (f_language::get_symbol_name_matcher_inner): New member function.
1482 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1483 initializer.
1484 * language.c (default_symbol_name_matcher): Update header comment,
1485 make static.
1486 (language_defn::get_symbol_name_matcher): New definition.
1487 (language_defn::get_symbol_name_matcher_inner): Likewise.
1488 (get_symbol_name_matcher): Delete.
1489 (unknown_language_data): Delete la_get_symbol_name_matcher
1490 initializer.
1491 (auto_language_data): Likewise.
1492 * language.h (language_data): Delete la_get_symbol_name_matcher
1493 field.
1494 (language_defn::get_symbol_name_matcher): New member function.
1495 (language_defn::get_symbol_name_matcher_inner): Likewise.
1496 (default_symbol_name_matcher): Delete declaration.
1497 * linespec.c (find_methods): Update call to
1498 get_symbol_name_matcher.
1499 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1500 initializer.
1501 * minsyms.c (lookup_minimal_symbol): Update call to
1502 get_symbol_name_matcher.
1503 (iterate_over_minimal_symbols): Likewise.
1504 * objc-lang.c (objc_language_data): Delete
1505 la_get_symbol_name_matcher initializer.
1506 * opencl-lang.c (opencl_language_data): Likewise.
1507 * p-lang.c (pascal_language_data): Likewise.
1508 * psymtab.c (psymbol_name_matches): Update call to
1509 get_symbol_name_matcher.
1510 * rust-lang.c (rust_language_data): Delete
1511 la_get_symbol_name_matcher initializer.
1512 * symtab.c (symbol_matches_search_name): Update call to
1513 get_symbol_name_matcher.
1514 (compare_symbol_name): Likewise.
1515
9a49ad8c
AB
15162020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1517
1518 * ada-lang.c (ada_language_data): Delete la_compute_program
1519 initializer.
1520 * c-lang.c (c_language_data): Likewise.
1521 (c_language::compute_program): New member function.
1522 (cplus_language_data): Delete la_compute_program initializer.
1523 (cplus_language::compute_program): New member function.
1524 (asm_language_data): Delete la_compute_program initializer.
1525 (minimal_language_data): Likewise.
1526 * c-lang.h (c_compute_program): Update comment.
1527 (cplus_compute_program): Likewise.
1528 * compile/compile-c-support.c (c_compute_program): Likewise.
1529 (cplus_compute_program): Likewise.
1530 * compile/compile.c (compile_to_object): Update call to
1531 la_compute_program.
1532 * d-lang.c (d_language_data): Delete la_compute_program
1533 initializer.
1534 * f-lang.c (f_language_data): Likewise.
1535 * go-lang.c (go_language_data): Likewise.
1536 * language.c (unknown_language_data): Likewise.
1537 (auto_language_data): Likewise.
1538 * language.h (language_data): Delete la_compute_program field.
1539 (language_defn::compute_program): New member function.
1540 * m2-lang.c (m2_language_data): Delete la_compute_program
1541 initializer.
1542 * objc-lang.c (objc_language_data): Likewise.
1543 * opencl-lang.c (opencl_language_data): Likewise.
1544 * p-lang.c (pascal_language_data): Likewise.
1545 * rust-lang.c (rust_language_data): Likewise.
1546
eff93b4d
AB
15472020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1548
1549 * ada-lang.c (ada_language_data) Delete
1550 la_class_name_from_physname initializer.
1551 * c-lang.c (c_language_data): Likewise.
1552 (cplus_language_data): Likewise.
1553 (cplus_language::class_name_from_physname): New member function.
1554 (asm_language_data): Delete la_class_name_from_physname
1555 initializer.
1556 (minimal_language_data): Likewise.
1557 * d-lang.c (d_language_data): Likewise.
1558 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1559 method on language_defn class.
1560 (guess_full_die_structure_name): Likewise.
1561 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1562 initializer.
1563 * go-lang.c (go_language_data): Likewise.
1564 * language.c (language_class_name_from_physname): Delete.
1565 (unk_lang_class_name): Delete.
1566 (unknown_language_data): Delete la_class_name_from_physname
1567 initializer.
1568 (auto_language_data): Likewise.
1569 * language.h (language_data): Delete la_class_name_from_physname
1570 field.
1571 (language_defn::class_name_from_physname): New function.
1572 (language_class_name_from_physname): Delete declaration.
1573 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1574 initializer.
1575 * objc-lang.c (objc_language_data): Likewise.
1576 * opencl-lang.c (opencl_language_data): Likewise.
1577 * p-lang.c (pascal_language_data): Likewise.
1578 * rust-lang.c (rust_language_data): Likewise.
1579
de543742
TT
15802020-06-16 Tom Tromey <tom@tromey.com>
1581
1582 * tui/tui-data.h (STATUS_NAME): New macro.
1583 * tui/tui-layout.c (tui_remove_some_windows)
1584 (initialize_known_windows, tui_register_window)
1585 (tui_layout_split::remove_windows, initialize_layouts)
1586 (tui_new_layout_command): Don't use hard-coded window names.
1587
a350efd4
TT
15882020-06-16 Tom Tromey <tom@tromey.com>
1589
1590 PR tui/25348:
1591 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1592 tui_initialize_readline. Only run once. Call rl_initialize.
1593 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1594 tui_initialize_readline.
1595 * tui/tui-io.c (tui_setup_io): Call
1596 tui_ensure_readline_initialized.
1597 * tui/tui-interp.c (tui_interp::init): Update.
1598
39ec0490
TT
15992020-06-16 Tom Tromey <tom@tromey.com>
1600
1601 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1602 Also preserve the status window.
1603
d2d1ea20
TT
16042020-06-16 Tom Tromey <tom@tromey.com>
1605
1606 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1607 where m_window==nullptr.
1608
66920317
TT
16092020-06-15 Tom Tromey <tromey@adacore.com>
1610
1611 * windows-nat.c (windows_nat::handle_output_debug_string):
1612 Update.
1613 (windows_nat::handle_ms_vc_exception): Update.
1614 * target.h (target_read_string): Change API.
1615 * target.c (target_read_string): Change API.
1616 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1617 Update.
1618 * solib-frv.c (frv_current_sos): Update.
1619 * solib-dsbt.c (dsbt_current_sos): Update.
1620 * solib-darwin.c (darwin_current_sos): Update.
1621 * linux-thread-db.c (inferior_has_bug): Update.
1622 * expprint.c (print_subexp_standard): Update.
1623 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1624 (ada_exception_message_1): Update.
1625
a5d871dd
TT
16262020-06-15 Tom Tromey <tromey@adacore.com>
1627
1628 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1629
670e35fa
TT
16302020-06-15 Tom Tromey <tromey@adacore.com>
1631
1632 * valprint.c (read_string): Update comment.
1633 * target.c (MIN): Remove.
1634 (target_read_string): Rewrite.
1635
f5272a3b
TT
16362020-06-15 Tom Tromey <tromey@adacore.com>
1637
1638 * corefile.c (read_memory_string): Remove.
1639 * ada-valprint.c (ada_value_print_ptr): Update.
1640 * ada-lang.h (ada_tag_name): Change return type.
1641 * ada-lang.c (type_from_tag): Update.
1642 (ada_tag_name_from_tsd): Change return type. Use
1643 target_read_string.
1644 (ada_tag_name): Likewise.
1645 * gdbcore.h (read_memory_string): Don't declare.
1646
2c074f49
HD
16472020-06-14 Hannes Domani <ssbssa@yahoo.de>
1648
1649 * symtab.c (rbreak_command): Ignore Windows drive colon.
1650
6a17d503
SM
16512020-06-12 Simon Marchi <simon.marchi@efficios.com>
1652
1653 * NEWS: Mention removed GDBserver host support.
1654
453c733f
NC
16552020-06-12 Nelson Chu <nelson.chu@sifive.com>
1656
1657 * features/riscv/rebuild-csr-xml.sh: Updated.
1658
2b4e6a3f
TT
16592020-06-11 Tom Tromey <tom@tromey.com>
1660
1661 PR gdb/18318:
1662 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1663
4412332f
JG
16642020-06-09 Jonny Grant <jg@jguk.org>
16652020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1666
1667 * main.c (captured_main_1): Don't print new line after help.
1668 (print_gdb_help): add mailing list and IRC channel information
1669 to --help. Add new lines between items in the footer. Remove
1670 quotes around bug url.
1671
2f33032a
KS
16722020-06-11 Keith Seitz <keiths@redhat.com>
1673
1674 PR gdb/21356
1675 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1676 Resolve typedefs for type length calculations.
1677
7ab96794
TV
16782020-06-10 Tom de Vries <tdevries@suse.de>
1679
1680 PR ada/24713
1681 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1682 (write_psymbols): Enable .gdb_index for ada.
1683 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1684 ada.
1685
e5f3ece2
TV
16862020-06-10 Tom de Vries <tdevries@suse.de>
1687
1688 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1689 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1690 namei" instead of "const char *name" argument.
1691 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1692 dw2_symtab_iter_init.
1693
940da03e
SM
16942020-06-08 Simon Marchi <simon.marchi@efficios.com>
1695
1696 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1697 to use type::field and field::type instead.
1698
b6cdac4b
SM
16992020-06-08 Simon Marchi <simon.marchi@efficios.com>
1700
1701 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1702 to use field::type instead.
1703
5d14b6e5
SM
17042020-06-08 Simon Marchi <simon.marchi@efficios.com>
1705
1706 * gdbtypes.h (struct field) <type, set_type>: New methods.
1707 Rename `type` field to...
1708 <m_type>: ... this. Change references throughout to use type or
1709 set_type methods.
1710 (FIELD_TYPE): Use field::type. Change call sites that modify
1711 the field's type to use field::set_type instead.
1712
3d967001
SM
17132020-06-08 Simon Marchi <simon.marchi@efficios.com>
1714
1715 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1716 to use type::index_type instead.
1717
262abc0d
SM
17182020-06-08 Simon Marchi <simon.marchi@efficios.com>
1719
1720 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1721 methods.
1722 (TYPE_INDEX_TYPE): Use type::index_type.
1723 * gdbtypes.c (create_array_type_with_stride): Likewise.
1724
82836c92
TT
17252020-06-07 Tom Tromey <tom@tromey.com>
1726
1727 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1728 parameter.
1729 (generic_value_print): Update.
1730
940dace9
AB
17312020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1732
1733 Revert commit 982a38f60b0.
1734 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1735
982a38f6
AB
17362020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1737
1738 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1739 avoid use after free.
1740
82f06518
TV
17412020-06-05 Tom de Vries <tdevries@suse.de>
1742
1743 * NEWS: Fix typos.
1744
f8c41851
SM
17452020-06-04 Simon Marchi <simon.marchi@efficios.com>
1746
1747 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1748 the per_bfd object.
1749 (dwarf2_read_debug_names): Likewise.
1750 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1751 object when re-using a per_bfd object with an index.
1752
f9b5d5ea
TV
17532020-06-03 Tom de Vries <tdevries@suse.de>
1754
1755 PR symtab/26046
1756 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1757 children for C++.
1758 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1759 DW_TAG_subprogram.
1760
f6eee2d0
AB
17612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1762
1763 * ada-lang.c (ada_language_data): Delete skip_trampoline
1764 initializer.
1765 * c-lang.c (c_language_data): Likewise.
1766 (cplus_language_data): Likewise.
1767 (cplus_language::skip_trampoline): New member function.
1768 (asm_language_data): Delete skip_trampoline initializer.
1769 (minimal_language_data): Likewise.
1770 * d-lang.c (d_language_data): Likewise.
1771 * f-lang.c (f_language_data): Likewise.
1772 * go-lang.c (go_language_data): Likewise.
1773 * language.c (unk_lang_trampoline): Delete function.
1774 (skip_language_trampoline): Update.
1775 (unknown_language_data): Delete skip_trampoline initializer.
1776 (auto_language_data): Likewise.
1777 * language.h (language_data): Delete skip_trampoline field.
1778 (language_defn::skip_trampoline): New function.
1779 * m2-lang.c (m2_language_data): Delete skip_trampoline
1780 initializer.
1781 * objc-lang.c (objc_skip_trampoline): Delete function, move
1782 implementation to objc_language::skip_trampoline.
1783 (objc_language_data): Delete skip_trampoline initializer.
1784 (objc_language::skip_trampoline): New member function with
1785 implementation from objc_skip_trampoline.
1786 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1787 initializer.
1788 * p-lang.c (pascal_language_data): Likewise.
1789 * rust-lang.c (rust_language_data): Likewise.
1790
0a50df5d
AB
17912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1792
1793 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1794 (ada_language::demangle): New member function.
1795 * c-lang.c (c_language_data): Delete la_demangle initializer.
1796 (cplus_language_data): Delete la_demangle initializer.
1797 (cplus_language::demangle): New member function.
1798 (asm_language_data): Delete la_demangle initializer.
1799 (minimal_language_data): Delete la_demangle initializer.
1800 * d-lang.c (d_language_data): Delete la_demangle initializer.
1801 (d_language::demangle): New member function.
1802 * f-lang.c (f_language_data): Delete la_demangle initializer.
1803 (f_language::demangle): New member function.
1804 * go-lang.c (go_language_data): Delete la_demangle initializer.
1805 (go_language::demangle): New member function.
1806 * language.c (language_demangle): Update.
1807 (unk_lang_demangle): Delete.
1808 (unknown_language_data): Delete la_demangle initializer.
1809 (unknown_language::demangle): New member function.
1810 (auto_language_data): Delete la_demangle initializer.
1811 (auto_language::demangle): New member function.
1812 * language.h (language_data): Delete la_demangle field.
1813 (language_defn::demangle): New function.
1814 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1815 * objc-lang.c (objc_language_data): Delete la_demangle
1816 initializer.
1817 (objc_language::demangle): New member function.
1818 * opencl-lang.c (opencl_language_data): Delete la_demangle
1819 initializer.
1820 * p-lang.c (pascal_language_data): Likewise.
1821 * rust-lang.c (rust_language_data): Likewise.
1822 (rust_language::demangle): New member function.
1823
fbfb0a46
AB
18242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1825
1826 * ada-lang.c (ada_language_data): Delete la_print_type
1827 initializer.
1828 (ada_language::print_type): New member function.
1829 * c-lang.c (c_language_data): Delete la_print_type initializer.
1830 (c_language::print_type): New member function.
1831 (cplus_language_data): Delete la_print_type initializer.
1832 (cplus_language::print_type): New member function.
1833 (asm_language_data): Delete la_print_type initializer.
1834 (asm_language::print_type): New member function.
1835 (minimal_language_data): Delete la_print_type initializer.
1836 (minimal_language::print_type): New member function.
1837 * d-lang.c (d_language_data): Delete la_print_type initializer.
1838 (d_language::print_type): New member function.
1839 * f-lang.c (f_language_data): Delete la_print_type initializer.
1840 (f_language::print_type): New member function.
1841 * go-lang.c (go_language_data): Delete la_print_type initializer.
1842 (go_language::print_type): New member function.
1843 * language.c (unk_lang_print_type): Delete.
1844 (unknown_language_data): Delete la_print_type initializer.
1845 (unknown_language::print_type): New member function.
1846 (auto_language_data): Delete la_print_type initializer.
1847 (auto_language::print_type): New member function.
1848 * language.h (language_data): Delete la_print_type field.
1849 (language_defn::print_type): New function.
1850 (LA_PRINT_TYPE): Update.
1851 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1852 (m2_language::print_type): New member function.
1853 * objc-lang.c (objc_language_data): Delete la_print_type
1854 initializer.
1855 (objc_language::print_type): New member function.
1856 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1857 to opencl_language::print_type.
1858 (opencl_language_data): Delete la_print_type initializer.
1859 (opencl_language::print_type): New member function, implementation
1860 from opencl_print_type.
1861 * p-lang.c (pascal_language_data): Delete la_print_type
1862 initializer.
1863 (pascal_language::print_type): New member function.
1864 * rust-lang.c (rust_print_type): Delete, implementation moved to
1865 rust_language::print_type.
1866 (rust_language_data): Delete la_print_type initializer.
1867 (rust_language::print_type): New member function, implementation
1868 from rust_print_type.
1869
6f827019
AB
18702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1871
1872 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1873 implementation moves to...
1874 (ada_language::sniff_from_mangled_name): ...here. Update return
1875 type.
1876 (ada_language_data): Delete la_sniff_from_mangled_name
1877 initializer.
1878 * c-lang.c (c_language_data): Likewise.
1879 (cplus_language_data): Likewise.
1880 (cplus_language::sniff_from_mangled_name): New member function,
1881 implementation taken from gdb_sniff_from_mangled_name.
1882 (asm_language_data): Delete la_sniff_from_mangled_name
1883 initializer.
1884 (minimal_language_data): Likewise.
1885 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1886 implementation moves to cplus_language::sniff_from_mangled_name.
1887 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1888 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1889 moves to...
1890 (d_language::sniff_from_mangled_name): ...here.
1891 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1892 * f-lang.c (f_language_data): Likewise.
1893 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1894 moves to...
1895 (go_language::sniff_from_mangled_name): ...here.
1896 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1897 * language.c (language_sniff_from_mangled_name): Delete.
1898 (unknown_language_data): Delete la_sniff_from_mangled_name
1899 initializer.
1900 (auto_language_data): Likewise.
1901 * language.h (language_data): Delete la_sniff_from_mangled_name
1902 field.
1903 (language_defn::sniff_from_mangled_name): New function.
1904 (language_sniff_from_mangled_name): Delete declaration.
1905 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1906 field.
1907 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1908 implementation moves to...
1909 (objc_language::sniff_from_mangled_name): ...here.
1910 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1911 * opencl-lang.c (opencl_language_data): Likewise.
1912 * p-lang.c (pascal_language_data): Likewise.
1913 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1914 implementation moves to...
1915 (rust_language::sniff_from_mangled_name): ...here.
1916 (rust_language_data): Delete la_sniff_from_mangled_name
1917 initializer.
1918 * symtab.c (symbol_find_demangled_name): Call
1919 sniff_from_mangled_name member function.
1920
fb8006fd
AB
19212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1922
1923 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1924 initializer.
1925 * c-lang.c (c_language_data): Likewise.
1926 (cplus_language_data): Likewise.
1927 (cplus_language::search_name_hash): New member function.
1928 (asm_language_data): Delete la_search_name_hash initializer.
1929 (minimal_language_data): Likewise.
1930 * d-lang.c (d_language_data): Likewise.
1931 * dictionary.c (default_search_name_hash): Rename to...
1932 (language_defn::search_name_hash): ...this.
1933 * f-lang.c (f_language_data): Likewise.
1934 (f_language::search_name_hash): New member function.
1935 * go-lang.c (go_language_data): Delete la_search_name_hash
1936 initializer.
1937 * language.c (unknown_language_data): Likewise.
1938 (auto_language_data): Likewise.
1939 * language.h (struct language_data): Delete la_search_name_hash
1940 field.
1941 (language_defn::search_name_hash): Declare new member function.
1942 (default_search_name_hash): Delete declaration.
1943 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1944 initializer.
1945 * objc-lang.c (objc_language_data): Likewise.
1946 * opencl-lang.c (opencl_language_data): Likewise.
1947 * p-lang.c (pascal_language_data): Likewise.
1948 * rust-lang.c (rust_language_data): Likewise.
1949 * symtab.c (search_name_hash): Update call.
1950
8e25bafe
AB
19512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1952
1953 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1954 initializer.
1955 * c-lang.c (class compile_instance): Declare.
1956 (c_language_data): Delete la_get_compile_instance initializer.
1957 (c_language::get_compile_instance): New member function.
1958 (cplus_language_data): Delete la_get_compile_instance initializer.
1959 (cplus_language::get_compile_instance): New member function.
1960 (asm_language_data): Delete la_get_compile_instance initializer.
1961 (minimal_language_data): Likewise.
1962 * c-lang.h (c_get_compile_context): Update comment.
1963 (cplus_get_compile_context): Update comment.
1964 * compile/compile.c (compile_to_object): Update calls, don't rely
1965 on function pointer being NULL.
1966 * d-lang.c (d_language_data): Delete la_get_compile_instance
1967 initializer.
1968 * f-lang.c (f_language_data): Likewise.
1969 * go-lang.c (go_language_data): Likewise.
1970 * language.c (unknown_language_data): Likewise.
1971 (auto_language_data): Likewise.
1972 * language.h (language_data): Delete la_get_compile_instance field.
1973 (language_defn::get_compile_instance): New member function.
1974 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1975 initializer.
1976 * objc-lang.c (objc_language_data): Likewise.
1977 * opencl-lang.c (opencl_language_data): Likewise.
1978 * p-lang.c (pascal_language_data): Likewise.
1979 * rust-lang.c (rust_language_data): Likewise.
1980
4009ee92
AB
19812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1982
1983 * ada-lang.c (ada_add_all_symbols): Update comment.
1984 (ada_iterate_over_symbols): Delete, move implementation to...
1985 (ada_language::iterate_over_symbols): ...here, a new member
1986 function, rewrite to use range based for loop.
1987 (ada_language_data): Delete la_iterate_over_symbols initializer.
1988 * c-lang.c (c_language_data): Likewise.
1989 (cplus_language_data): Likewise.
1990 (asm_language_data): Likewise.
1991 (minimal_language_data): Likewise.
1992 * d-lang.c (d_language_data): Likewise.
1993 * f-lang.c (f_language_data): Likewise.
1994 * go-lang.c (go_language_data): Likewise.
1995 * language.c (unknown_language_data): Likewise.
1996 (auto_language_data): Likewise.
1997 * language.h (language_data): Delete la_iterate_over_symbols field.
1998 (language_defn::iterate_over_symbols): New member function.
1999 (LA_ITERATE_OVER_SYMBOLS): Update.
2000 * linespec.c (iterate_over_all_matching_symtabs): Update.
2001 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2002 initializer.
2003 * objc-lang.c (objc_language_data): Likewise.
2004 * opencl-lang.c (opencl_language_data): Likewise.
2005 * p-lang.c (pascal_language_data): Likewise.
2006 * rust-lang.c (rust_language_data): Likewise.
2007
54f4ca46
AB
20082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2009
2010 * ada-lang.c (ada_language_data): Delete
2011 la_lookup_transparent_type initializer.
2012 * c-lang.c (c_language_data): Likewise.
2013 (cplus_language_data): Likewise.
2014 (cplus_language::lookup_transparent_type): New member function.
2015 (asm_language_data): Delete la_lookup_transparent_type
2016 initializer.
2017 (minimal_language_data): Likewise.
2018 * d-lang.c (d_language_data): Likewise.
2019 * f-lang.c (f_language_data): Likewise.
2020 * go-lang.c (go_language_data): Likewise.
2021 * language.c (unknown_language_data): Likewise.
2022 (auto_language_data): Likewise.
2023 * language.h (struct language_data): Delete
2024 la_lookup_transparent_type field.
2025 (language_defn::lookup_transparent_type): New member function.
2026 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2027 initializer.
2028 * objc-lang.c (objc_language_data): Likewise.
2029 * opencl-lang.c (opencl_language_data): Likewise.
2030 * p-lang.c (pascal_language_data): Likewise.
2031 * rust-lang.c (rust_language_data): Likewise.
2032 * symtab.c (symbol_matches_domain): Update call.
2033
1fb314aa
AB
20342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2035
2036 * ada-lang.c (ada_language_arch_info): Delete function, move
2037 implementation to...
2038 (ada_language::language_arch_info): ...here, a new member
2039 function.
2040 (ada_language_data): Delete la_language_arch_info.
2041 * c-lang.c (c_language_data): Likewise.
2042 (c_language::language_arch_info): New member function.
2043 (cplus_language_arch_info): Delete function, move
2044 implementation to...
2045 (cplus_language::language_arch_info): ...here, a new member
2046 function.
2047 (cplus_language_data): Delete la_language_arch_info.
2048 (asm_language_data): Likewise.
2049 (asm_language::language_arch_info): New member function.
2050 (minimal_language_data): Delete la_language_arch_info.
2051 (minimal_language::language_arch_info): New member function.
2052 * d-lang.c (d_language_arch_info): Delete function, move
2053 implementation to...
2054 (d_language::language_arch_info): ...here, a new member
2055 function.
2056 (d_language_data): Delete la_language_arch_info.
2057 * f-lang.c (f_language_arch_info): Delete function, move
2058 implementation to...
2059 (f_language::language_arch_info): ...here, a new member
2060 function.
2061 (f_language_data): Delete la_language_arch_info.
2062 * go-lang.c (go_language_arch_info): Delete function, move
2063 implementation to...
2064 (go_language::language_arch_info): ...here, a new member
2065 function.
2066 (go_language_data): Delete la_language_arch_info.
2067 * language.c (unknown_language_data): Likewise.
2068 (unknown_language::language_arch_info): New member function.
2069 (auto_language_data): Delete la_language_arch_info.
2070 (auto_language::language_arch_info): New member function.
2071 (language_gdbarch_post_init): Update call to
2072 la_language_arch_info.
2073 * language.h (language_data): Delete la_language_arch_info
2074 function pointer.
2075 (language_defn::language_arch_info): New function.
2076 * m2-lang.c (m2_language_arch_info): Delete function, move
2077 implementation to...
2078 (m2_language::language_arch_info): ...here, a new member
2079 function.
2080 (m2_language_data): Delete la_language_arch_info.
2081 * objc-lang.c (objc_language_arch_info): Delete function, move
2082 implementation to...
2083 (objc_language::language_arch_info): ...here, a new member
2084 function.
2085 (objc_language_data): Delete la_language_arch_info.
2086 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2087 implementation to...
2088 (opencl_language::language_arch_info): ...here, a new member
2089 function.
2090 (opencl_language_data): Delete la_language_arch_info.
2091 * p-lang.c (pascal_language_arch_info): Delete function, move
2092 implementation to...
2093 (pascal_language::language_arch_info): ...here, a new member
2094 function.
2095 (pascal_language_data): Delete la_language_arch_info.
2096 * rust-lang.c (rust_language_arch_info): Delete function, move
2097 implementation to...
2098 (rust_language::language_arch_info): ...here, a new member
2099 function.
2100 (rust_language_data): Delete la_language_arch_info.
2101
48448202
AB
21022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2103
2104 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2105 initializer.
2106 * c-lang.c (c_language_data): Likewise.
2107 (cplus_language_data): Likewise.
2108 (cplus_language::pass_by_reference_info): New method.
2109 (asm_language_data): Delete la_pass_by_reference initializer.
2110 (minimal_language_data): Likewise.
2111 * cp-abi.c (cp_pass_by_reference): Remove use of
2112 default_pass_by_reference.
2113 * d-lang.c (d_language_data): Likewise.
2114 * f-lang.c (f_language_data): Likewise.
2115 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2116 default_pass_by_reference.
2117 * go-lang.c (go_language_data): Likewise.
2118 * language.c (language_pass_by_reference): Update.
2119 (default_pass_by_reference): Delete.
2120 (unknown_language_data): Delete la_pass_by_reference
2121 initializer.
2122 (auto_language_data): Likewise.
2123 * language.h (struct language_data): Delete la_pass_by_reference
2124 field.
2125 (language_defn::pass_by_reference_info): New member function.
2126 (default_pass_by_reference): Delete declaration.
2127 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2128 initializer.
2129 * objc-lang.c (objc_language_data): Likewise.
2130 * opencl-lang.c (opencl_language_data): Likewise.
2131 * p-lang.c (pascal_language_data): Likewise.
2132 * rust-lang.c (rust_language_data): Likewise.
2133
15e5fd35
AB
21342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2135
2136 * ada-lang.c (ada_read_var_value): Delete function, move
2137 implementation to...
2138 (ada_language::read_var_value): ...here.
2139 (ada_language_data): Delete la_read_var_value initializer.
2140 * c-lang.c (c_language_data): Likewise.
2141 (cplus_language_data): Likewise.
2142 (minimal_language_data): Likewise.
2143 * d-lang.c (d_language_data): Likewise.
2144 * f-lang.c (f_language_data): Likewise.
2145 * findvar.c (default_read_var_value): Rename to...
2146 (language_defn::read_var_value): ...this.
2147 * findvar.c (read_var_value): Update header comment, and change to
2148 call member function instead of function pointer.
2149 * go-lang.c (go_language_data): Likewise.
2150 * language.c (unknown_language_data): Delete la_read_var_value
2151 initializer.
2152 (auto_language_data): Likewise.
2153 * language.h (struct language_data): Delete la_read_var_value
2154 field.
2155 (language_defn::read_var_value): New member function.
2156 (default_read_var_value): Delete declaration.
2157 * m2-lang.c (m2_language_data): Delete la_read_var_value
2158 initializer.
2159 * objc-lang.c (objc_language_data): Likewise.
2160 * opencl-lang.c (opencl_language_data): Likewise.
2161 * p-lang.c (pascal_language_data): Likewise.
2162 * rust-lang.c (rust_language_data): Likewise.
2163 * value.h (default_read_var_value): Delete declaration.
2164
5bd40f2a
AB
21652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2166
2167 * ada-lang.c (ada_print_array_index): Delete function, move
2168 implementation to...
2169 (ada_language::print_array_index): ...here.
2170 (ada_language_data): Delete la_print_array_index initializer.
2171 * c-lang.c (c_language_data): Likewise.
2172 (cplus_language_data): Likewise.
2173 (minimal_language_data): Likewise.
2174 * d-lang.c (d_language_data): Likewise.
2175 * f-lang.c (f_language_data): Likewise.
2176 * go-lang.c (go_language_data): Likewise.
2177 * language.c (default_print_array_index): Delete function, move
2178 implementation to...
2179 (language_defn::print_array_index): ...here.
2180 (unknown_language_data): Delete la_print_array_index initializer.
2181 (auto_language_data): Likewise.
2182 * language.h (struct language_data): Delete la_print_array_index
2183 field.
2184 (language_defn::print_array_index): New member function.
2185 (LA_PRINT_ARRAY_INDEX): Update.
2186 (default_print_array_index): Delete declaration.
2187 * m2-lang.c (m2_language_data): Delete la_print_array_index
2188 initializer.
2189 * objc-lang.c (objc_language_data): Likewise.
2190 * opencl-lang.c (opencl_language_data): Likewise.
2191 * p-lang.c (pascal_language_data): Likewise.
2192 * rust-lang.c (rust_language_data): Likewise.
2193
0874fd07
AB
21942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2195
2196 * gdb/ada-lang.c (ada_language_defn): Convert to...
2197 (ada_language_data): ...this.
2198 (class ada_language): New class.
2199 (ada_language_defn): New static global.
2200 * gdb/c-lang.c (c_language_defn): Convert to...
2201 (c_language_data): ...this.
2202 (class c_language): New class.
2203 (c_language_defn): New static global.
2204 (cplus_language_defn): Convert to...
2205 (cplus_language_data): ...this.
2206 (class cplus_language): New class.
2207 (cplus_language_defn): New static global.
2208 (asm_language_defn): Convert to...
2209 (asm_language_data): ...this.
2210 (class asm_language): New class.
2211 (asm_language_defn): New static global.
2212 (minimal_language_defn): Convert to...
2213 (minimal_language_data): ...this.
2214 (class minimal_language): New class.
2215 (minimal_language_defn): New static global.
2216 * gdb/d-lang.c (d_language_defn): Convert to...
2217 (d_language_data): ...this.
2218 (class d_language): New class.
2219 (d_language_defn): New static global.
2220 * gdb/f-lang.c (f_language_defn): Convert to...
2221 (f_language_data): ...this.
2222 (class f_language): New class.
2223 (f_language_defn): New static global.
2224 * gdb/go-lang.c (go_language_defn): Convert to...
2225 (go_language_data): ...this.
2226 (class go_language): New class.
2227 (go_language_defn): New static global.
2228 * gdb/language.c (unknown_language_defn): Remove declaration.
2229 (current_language): Initialize to nullptr, real initialization is
2230 moved to _initialize_language.
2231 (languages): Delete global.
2232 (language_defn::languages): Define.
2233 (set_language_command): Use language_defn::languages.
2234 (set_language): Likewise.
2235 (range_error): Likewise.
2236 (language_enum): Likewise.
2237 (language_def): Likewise.
2238 (add_set_language_command): Use language_def::languages for the
2239 language list, and language_def to lookup language pointers.
2240 (skip_language_trampoline): Use language_defn::languages.
2241 (unknown_language_defn): Convert to...
2242 (unknown_language_data): ...this.
2243 (class unknown_language): New class.
2244 (unknown_language_defn): New static global.
2245 (auto_language_defn): Convert to...
2246 (auto_language_data): ...this.
2247 (class auto_language): New class.
2248 (auto_language_defn): New static global.
2249 (language_gdbarch_post_init): Use language_defn::languages.
2250 (_initialize_language): Initialize current_language.
2251 * gdb/language.h (struct language_defn): Rename to...
2252 (struct language_data): ...this.
2253 (struct language_defn): New.
2254 (auto_language_defn): Delete.
2255 (unknown_language_defn): Delete.
2256 (minimal_language_defn): Delete.
2257 (ada_language_defn): Delete.
2258 (asm_language_defn): Delete.
2259 (c_language_defn): Delete.
2260 (cplus_language_defn): Delete.
2261 (d_language_defn): Delete.
2262 (f_language_defn): Delete.
2263 (go_language_defn): Delete.
2264 (m2_language_defn): Delete.
2265 (objc_language_defn): Delete.
2266 (opencl_language_defn): Delete.
2267 (pascal_language_defn): Delete.
2268 (rust_language_defn): Delete.
2269 * gdb/m2-lang.c (m2_language_defn): Convert to...
2270 (m2_language_data): ...this.
2271 (class m2_language): New class.
2272 (m2_language_defn): New static global.
2273 * gdb/objc-lang.c (objc_language_defn): Convert to...
2274 (objc_language_data): ...this.
2275 (class objc_language): New class.
2276 (objc_language_defn): New static global.
2277 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2278 (opencl_language_data): ...this.
2279 (class opencl_language): New class.
2280 (opencl_language_defn): New static global.
2281 * gdb/p-lang.c (pascal_language_defn): Convert to...
2282 (pascal_language_data): ...this.
2283 (class pascal_language): New class.
2284 (pascal_language_defn): New static global.
2285 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2286 language pointer, update comment format.
2287 * gdb/rust-lang.c (rust_language_defn): Convert to...
2288 (rust_language_data): ...this.
2289 (class rust_language): New class.
2290 (rust_language_defn): New static global.
2291
1313c56e
AB
22922020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2293
2294 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2295 member variable.
2296 <m_stmt_at_address>: New member variable.
2297 (lnp_state_machine::record_line): Don't record some lines, update
2298 tracking of is_stmt at the same address.
2299 (lnp_state_machine::lnp_state_machine): Initialise new member
2300 variables.
2301
b7ed9f3d
ST
23022020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2303
2304 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2305 "-include gnu-nat-mig.h".
2306 * gnu-nat-mig.h: New file.
2307 * gnu-nat.c: Include "gnu-nat-mig.h".
2308 (exc_server, msg_reply_server, notify_server,
2309 process_reply_server): Remove declarations.
2310
14a8ad62
ST
23112020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2312
2313 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2314 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2315 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2316 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2317 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2318 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2319 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2320 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2321 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2322 to gnu_nat_target class.
2323 * gnu-nat.c: Likewise.
2324 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2325 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2326 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2327 object.
2328 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2329 instead of `gnu_target'.
2330
0af5e106
ST
23312020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2332
2333 * i386-gnu-tdep.c: Include "gdbcore.h"
2334 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2335 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2336 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2337 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2338 i386_gnu_sigcontext_addr): New functions
2339 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2340 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2341 tdep.
2342
078f2fc9
ST
23432020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2344
2345 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2346 before fork_inferior call. Avoid calling it if target_is_pushed returns
2347 true.
2348
53dff92c
ST
23492020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2350
2351 * gnu-nat.h (gnu_target): New variable declaration.
2352 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2353 gnu_target.
2354 * gnu-nat.c (gnu_target): New variable.
2355 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2356 add_thread_silent, and add_thread calls.
2357 (gnu_nat_target::create_inferior): Pass gnu_target to
2358 add_thread_silent, thread_change_ptid call.
2359 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2360 call.
2361
5a8b8627
ST
23622020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2363
2364 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2365 (gnu_nat_target::find_memory_regions): Remove unused
2366 `old_address' variable.
2367
366f550a
ST
23682020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2369
2370 * gnu-nat.c: Include "gdbarch.h".
2371
f14871bf
ST
23722020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2373
2374 * reply_mig_hack.awk (Error return): Cast function through
2375 void *, to bypass compiler function call check.
2376
c6887cfb
ST
23772020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2378
2379 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2380 $(srcdir)/reply_mig_hack.awk.
2381
6930bffe
ST
23822020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2383
2384 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2385
112c22ed
JG
23862020-05-30 Jonny Grant <jg@jguk.org>
2387
2388 * configure.ac (ACX_BUGURL): change bug URL to https.
2389
f68f85b5
PA
23902020-05-30 Pedro Alves <palves@redhat.com>
2391
2392 * cp-support.c (replace_typedefs_template): New.
2393 (replace_typedefs_qualified_name): Handle
2394 DEMANGLE_COMPONENT_TEMPLATE.
2395
976ca316
SM
23962020-05-29 Simon Marchi <simon.marchi@efficios.com>
2397
2398 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2399 dwarf2/index-cache.h, dwarf2/index-write.c,
2400 dwarf2/index-write.h, dwarf2/line-header.c,
2401 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2402 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2403 variables and fields from `dwarf2_per_objfile` to just
2404 `per_objfile` throughout.
2405
989ade05
SM
24062020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2407
2408 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2409 <push_dwarf_reg_entry_value>: Add comment.
2410
c47bae85
KB
24112020-05-28 Kevin Buettner <kevinb@redhat.com>
2412 Keith Seitz <keiths@redhat.com>
2413
2414 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2415 instead of PyEval_ReleaseLock.
2416 (class gdbpy_gil): Move to earlier in file.
2417 (finalize_python): Set gdb_python_initialized.
2418 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2419 when not initialized.
2420
44486dcf
SM
24212020-05-28 Simon Marchi <simon.marchi@efficios.com>
2422
2423 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2424 <push_dwarf_reg_entry_value>: Remove assert. Override
2425 per_objfile with caller_per_objfile.
2426
f030440d
TV
24272020-05-28 Tom de Vries <tdevries@suse.de>
2428
2429 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2430 PR gold/15646 workaround to symbol kind "type".
2431
f0fbb768
TT
24322020-05-27 Tom Tromey <tromey@adacore.com>
2433
2434 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2435
af0b2a3e
TT
24362020-05-27 Tom Tromey <tromey@adacore.com>
2437
2438 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2439 Use htab_find_with_hash.
2440 <add_abbrev>: Remove "abbrev_number" parameter.
2441 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2442 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2443 (hash_abbrev): Add comment.
2444 (abbrev_table::lookup_abbrev): Move to header file.
2445 (abbrev_table::read): Update.
2446
7d00ffec
TT
24472020-05-27 Tom Tromey <tromey@adacore.com>
2448
2449 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2450 method.
2451 <canonical_name>: New member.
2452 <raw_name>: Rename from "name".
2453 (partial_die_info): Initialize canonical_name.
2454 (scan_partial_symbols): Check raw_name.
2455 (partial_die_parent_scope, partial_die_full_name)
2456 (add_partial_symbol, add_partial_subprogram)
2457 (add_partial_enumeration, load_partial_dies): Use "name" method.
2458 (partial_die_info::name): New method.
2459 (partial_die_info::read, guess_partial_die_structure_name)
2460 (partial_die_info::fixup): Update.
2461
697bba18
TT
24622020-05-27 Tom Tromey <tromey@adacore.com>
2463
2464 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2465 <get_ref_die_offset>: Inline.
2466 <get_ref_die_offset_complaint>: New method.
2467 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2468 (attribute::get_ref_die_offset_complaint): Rename from
2469 get_ref_die_offset. Just issue complaint.
2470
c17ace43
HD
24712020-05-27 Hannes Domani <ssbssa@yahoo.de>
2472
2473 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2474
96445f0b
HD
24752020-05-27 Hannes Domani <ssbssa@yahoo.de>
2476
2477 * exec.c (exec_file_attach): Use errno value of first openp failure.
2478
ac637ec3
HD
24792020-05-27 Hannes Domani <ssbssa@yahoo.de>
2480
2481 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2482 Don't close thread handle.
2483
17ee85fc
TT
24842020-05-27 Tom Tromey <tom@tromey.com>
2485 Simon Marchi <simon.marchi@efficios.com>
2486
2487 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2488 shared_ptr.
2489 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2490 member.
2491 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2492 dwarf2_per_bfd_objfile_data_key>: New globals.
2493 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2494 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2495 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2496 shared.
2497 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2498 short-circuit when sharing.
2499 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2500 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2501
39b16f87
SM
25022020-05-27 Simon Marchi <simon.marchi@efficios.com>
2503
2504 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2505 to...
2506 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2507 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2508
fcf23d5b
SM
25092020-05-27 Simon Marchi <simon.marchi@efficios.com>
2510
2511 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2512 build_name_components, find_name_components_bounds>:
2513 Add per_objfile parameter.
2514 (struct mapped_index) <symbol_name_at>: Likewise.
2515 (struct mapped_debug_names): Remove constructor.
2516 <dwarf2_per_objfile>: Remove field.
2517 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2518 (mapped_index_base::find_name_components_bounds,
2519 mapped_index_base::build_name_components,
2520 dw2_expand_symtabs_matching_symbol): Likewise.
2521 (class mock_mapped_index) <symbol_name_at>: Likewise.
2522 (check_match): Likewise.
2523 (check_find_bounds_finds): Likewise.
2524 (test_mapped_index_find_name_component_bounds): Update.
2525 (CHECK_MATCH): Update.
2526 (dw2_expand_symtabs_matching): Update.
2527 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2528 per_objfile parameter.
2529 <find_vec_in_debug_names>: Likewise.
2530 <m_per_objfile>: New field.
2531 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2532 parameter.
2533 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2534 (dw2_debug_names_iterator::next): Update.
2535 (dw2_debug_names_lookup_symbol): Update.
2536 (dw2_debug_names_expand_symtabs_for_function): Update.
2537 (dw2_debug_names_map_matching_symbols): Update.
2538 (dw2_debug_names_expand_symtabs_matching): Update.
2539 (dwarf2_read_debug_names): Update.
2540
7188ed02
SM
25412020-05-27 Simon Marchi <simon.marchi@efficios.com>
2542
2543 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2544 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2545 move to dwarf2_per_objfile.
2546 <read_in_chain>: Remove.
2547 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2548 remove_all_cus, age_comp_units>: New methods.
2549 <m_dwarf2_cus>: New member.
2550 (struct dwarf2_per_cu_data) <cu>: Remove.
2551 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2552 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2553 moved to methods of dwarf2_per_objfile.
2554 (dwarf2_clear_marks): Remove.
2555 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2556 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2557 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2558 (dwarf2_per_objfile::remove_all_cus): New.
2559 (class free_cached_comp_units) <~free_cached_comp_units>:
2560 Update.
2561 (load_cu): Update.
2562 (dw2_do_instantiate_symtab): Adjust.
2563 (fill_in_sig_entry_from_dwo_entry): Adjust.
2564 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2565 (cutu_reader::cutu_reader): Likewise.
2566 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2567 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2568 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2569 and dwarf2_per_objfile::age_comp_units.
2570 (load_partial_comp_unit): Update.
2571 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2572 (process_queue): Likewise.
2573 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2574 backlink.
2575 (dwarf2_read_addr_index): Likewise.
2576 (follow_die_offset): Likewise.
2577 (dwarf2_fetch_die_loc_sect_off): Likewise.
2578 (dwarf2_fetch_constant_bytes): Likewise.
2579 (dwarf2_fetch_die_type_sect_off): Likewise.
2580 (follow_die_sig_1): Likewise.
2581 (load_full_type_unit): Likewise.
2582 (read_signatured_type): Likewise.
2583 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2584 (dwarf2_cu::~dwarf2_cu): Remove.
2585 (dwarf2_per_objfile::get_cu): New.
2586 (dwarf2_per_objfile::set_cu): New.
2587 (age_cached_comp_units): Rename to...
2588 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2589 to std::unordered_map.
2590 (free_one_cached_comp_unit): Rename to...
2591 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2592 to std::unordered_map.
2593 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2594 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2595 a dwarf2_per_objfile in data.
2596 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2597 (dwarf2_clear_marks): Remove.
2598
2e671100
SM
25992020-05-27 Simon Marchi <simon.marchi@efficios.com>
2600
2601 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2602 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2603 (init_tu_and_read_dwo_dies): Likewise.
2604 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2605 (cutu_reader::cutu_reader): Likewise.
2606 (load_partial_comp_unit): Likewise.
2607 (process_psymtab_comp_unit): Update.
2608 (build_type_psymtabs_1): Update.
2609 (process_skeletonless_type_unit): Update.
2610 (load_full_comp_unit): Update.
2611 (find_partial_die): Update.
2612 (dwarf2_read_addr_index): Update.
2613 (read_signatured_type): Update.
2614
2e6a9f79
SM
26152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2616
2617 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2618 m_header_read_in>: New fields.
2619 <get_header>: New method.
2620 * dwarf2/read.c (per_cu_header_read_in): Remove.
2621 (dwarf2_per_cu_data::get_header): New.
2622 (dwarf2_per_cu_data::addr_size): Update.
2623 (dwarf2_per_cu_data::offset_size): Update.
2624 (dwarf2_per_cu_data::ref_addr_size): Update.
2625
1b555f17
SM
26262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2627
2628 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2629 (dw2_do_instantiate_symtab): Update.
2630 (queue_and_load_all_dwo_tus): Change parameter from
2631 dwarf2_per_cu_data to dwarf2_cu.
2632 (dwarf2_fetch_die_loc_sect_off): Update.
2633 (dwarf2_fetch_constant_bytes): Update.
2634 (dwarf2_fetch_die_type_sect_off): Update.
2635
8fc0b21d
SM
26362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2637
2638 * dwarf2/read.c (process_full_comp_unit,
2639 process_full_type_unit): Remove per_cu, per_objfile paramters.
2640 Add dwarf2_cu parameter.
2641 (process_queue): Update.
2642
168c9250
SM
26432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2644
2645 * dwarf2/read.c (create_cu_from_index_list): Replace
2646 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2647 (create_cus_from_index_list): Likewise.
2648 (create_cus_from_index): Likewise.
2649 (create_signatured_type_table_from_index): Likewise.
2650 (create_cus_from_debug_names_list): Likewise.
2651 (create_cus_from_debug_names): Likewise.
2652 (dwarf2_read_gdb_index): Update.
2653 (dwarf2_read_debug_names): Update.
2654
e286671b
TT
26552020-05-27 Tom Tromey <tom@tromey.com>
2656 Simon Marchi <simon.marchi@efficios.com>
2657
2658 * dwarf2/read.h (struct dwarf2_per_objfile)
2659 <get_type_for_signatured_type, set_type_for_signatured_type>:
2660 New methods.
2661 <m_type_map>: New member.
2662 (struct signatured_type) <type>: Remove.
2663 * dwarf2/read.c
2664 (dwarf2_per_objfile::get_type_for_signatured_type,
2665 dwarf2_per_objfile::set_type_for_signatured_type): New.
2666 (get_signatured_type): Use new methods.
2667
8adb8487
TT
26682020-05-27 Tom Tromey <tom@tromey.com>
2669 Simon Marchi <simon.marchi@efficios.com>
2670
2671 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2672 (struct dwarf2_per_objfile) <type_units>: New member.
2673 <get_type_unit_group_unshareable>: New method.
2674 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2675 num_symtabs, symtabs>: Remove; move to
2676 type_unit_group_unshareable.
2677 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2678 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2679 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2680
127bbf4b
SM
26812020-05-27 Simon Marchi <simon.marchi@efficios.com>
2682
2683 * dwarf2/read.h (struct dwarf2_per_cu_data):
2684 <dwarf2_per_objfile>: Remove.
2685 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2686 dwarf2_per_objfile.
2687 (create_signatured_type_table_from_index): Likewise.
2688 (create_signatured_type_table_from_debug_names): Likewise.
2689 (create_debug_type_hash_table): Likewise.
2690 (fill_in_sig_entry_from_dwo_entry): Likewise.
2691 (create_type_unit_group): Likewise.
2692 (read_comp_units_from_section): Likewise.
2693 (create_cus_hash_table): Likewise.
2694
f6e649dd
SM
26952020-05-27 Simon Marchi <simon.marchi@efficios.com>
2696
2697 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2698 dwarf2_per_cu_data::dwarf2_per_objfile.
2699 (compute_compunit_symtab_includes): Likewise.
2700 (dwarf2_cu::start_symtab): Likewise.
2701
aa66c379
SM
27022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2703
2704 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2705 parameter.
2706 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2707 (read_namespace_alias): Update.
2708 (lookup_die_type): Update.
2709 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2710 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2711 Update.
2712 (disassemble_dwarf_expression): Update.
2713
120ce1b5
SM
27142020-05-27 Simon Marchi <simon.marchi@efficios.com>
2715
2716 * dwarf2/read.h (struct dwarf2_queue_item): Add
2717 dwarf2_per_objfile parameter, assign new parameter.
2718 <per_objfile>: New field.
2719 * dwarf2/read.c (free_one_cached_comp_unit): Add
2720 dwarf2_per_objfile parameter.
2721 (queue_comp_unit): Likewise.
2722 (dw2_do_instantiate_symtab): Update.
2723 (process_psymtab_comp_unit): Update.
2724 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2725 (process_imported_unit_die): Update.
2726 (queue_and_load_dwo_tu): Update.
2727 (follow_die_offset): Update.
2728 (follow_die_sig_1): Update.
2729
9f47c707
SM
27302020-05-27 Simon Marchi <simon.marchi@efficios.com>
2731
2732 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2733 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2734 (read_call_site_scope): Assign per_objfile.
2735 (dwarf2_per_cu_data::objfile): Remove.
2736 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2737 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2738 dwarf2_per_objfile parameter.
2739 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2740 dwarf2_per_objfile parameter.
2741 (dwarf_expr_reg_to_entry_parameter): Add output
2742 dwarf2_per_objfile parameter.
2743 (locexpr_get_frame_base): Update.
2744 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2745 <push_dwarf_reg_entry_value>: Update.
2746 <call_site_to_target_addr>: Update.
2747 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2748 parameter.
2749 (value_of_dwarf_reg_entry): Update.
2750 (rw_pieced_value): Update.
2751 (indirect_synthetic_pointer): Update.
2752 (dwarf2_evaluate_property): Update.
2753 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2754 parameter.
2755 (locexpr_read_variable): Update.
2756 (locexpr_get_symbol_read_needs): Update.
2757 (loclist_read_variable): Update.
2758
14095eb3
SM
27592020-05-27 Simon Marchi <simon.marchi@efficios.com>
2760
2761 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2762 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2763 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2764 parameter.
2765 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2766 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2767 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2768 parameter.
2769 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2770 sect_variable_value): Add dwarf2_per_objfile parameter.
2771 (class dwarf_evaluate_loc_desc) <dwarf_call,
2772 dwarf_variable_value>: Update.
2773 (fetch_const_value_from_synthetic_pointer): Add
2774 dwarf2_per_objfile parameter.
2775 (fetch_const_value_from_synthetic_pointer): Update.
2776 (coerced_pieced_ref): Update.
2777 (class symbol_needs_eval_context) <dwarf_call,
2778 dwarf_variable_value>: Update.
2779 (dwarf2_compile_expr_to_ax): Update.
2780
3c3cd3d4
SM
27812020-05-27 Simon Marchi <simon.marchi@efficios.com>
2782
2783 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2784 parameter.
2785 (dwarf2_evaluate_loc_desc_full): Update.
2786
82ca3f51
SM
27872020-05-27 Simon Marchi <simon.marchi@efficios.com>
2788
2789 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2790 parameter.
2791 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2792 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2793 dwarf2_per_objfile parameter.
2794 (decode_debug_loc_dwo_addresses): Likewise.
2795 (dwarf2_find_location_expression): Update.
2796 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2797 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2798 parameter.
2799 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2800 parameter.
2801 (locexpr_describe_location_1): Likewise.
2802 (locexpr_describe_location): Update.
2803
4b167ea1
SM
28042020-05-27 Simon Marchi <simon.marchi@efficios.com>
2805
2806 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2807 Remove.
2808 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2809 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2810 (dwarf2_compile_property_to_c): Update.
2811 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2812 use text offset from objfile.
2813 (locexpr_tracepoint_var_ref): Update.
2814 (locexpr_generate_c_location): Update.
2815 (loclist_describe_location): Update.
2816 (loclist_tracepoint_var_ref): Update.
2817 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2818 dwarf2_per_objfile parameter.
2819 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2820 use text offset from objfile.
2821 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2822
89b07335
SM
28232020-05-27 Simon Marchi <simon.marchi@efficios.com>
2824
2825 * dwarf2/expr.h (struct dwarf_expr_context)
2826 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2827 <offset>: Remove.
2828 <per_objfile>: New member.
2829 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2830 dwarf2_per_objfile parameter. Don't set offset, set
2831 per_objfile.
2832 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2833 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2834 a dwarf2_per_objfile object instead of an offset.
2835 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2836 constructor.
2837 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2838 to dwarf2_expr_executor constructor. Don't set offset.
2839 (dwarf2_fetch_cfa_info): Update.
2840 (struct dwarf2_frame_cache) <text_offset>: Remove.
2841 <per_objfile>: New field.
2842 (dwarf2_frame_cache): Update.
2843 (dwarf2_frame_prev_register): Update.
2844 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2845 <dwarf_evaluate_loc_desc>: Add constructor.
2846 (dwarf2_evaluate_loc_desc_full): Update.
2847 (dwarf2_locexpr_baton_eval): Update.
2848 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2849 Add constructor.
2850 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2851
293e7e51
SM
28522020-05-27 Simon Marchi <simon.marchi@efficios.com>
2853
2854 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2855 addr_sized_int_type>: Move to dwarf2_cu.
2856 <int_type>: Move to dwarf2_per_objfile.
2857 (struct dwarf2_per_objfile) <int_type>: Move here.
2858 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2859 addr_sized_int_type>: Move here.
2860 (read_func_scope): Update.
2861 (read_array_type): Update.
2862 (read_tag_string_type): Update.
2863 (attr_to_dynamic_prop): Update.
2864 (dwarf2_per_cu_data::int_type): Rename to...
2865 (dwarf2_per_objfile::int_type): ... this.
2866 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2867 (dwarf2_cu::addr_sized_int_type): ... this.
2868 (read_subrange_type): Update.
2869 (dwarf2_per_cu_data::addr_type): Rename to...
2870 (dwarf2_cu::addr_type): ... this.
2871 (set_die_type): Update.
2872
64874a40
SM
28732020-05-27 Simon Marchi <simon.marchi@efficios.com>
2874
2875 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2876 data through per_cu->cu.
2877
4ab09049
SM
28782020-05-27 Simon Marchi <simon.marchi@efficios.com>
2879
2880 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2881 dwarf2_per_cu_data parameter fo dwarf2_cu.
2882 (lookup_dwo_type_unit): Likewise.
2883 (read_cutu_die_from_dwo): Likewise.
2884 (lookup_dwo_unit): Likewise.
2885 (open_and_init_dwo_file): Likewise.
2886 (lookup_dwo_cutu): Likewise.
2887 (lookup_dwo_comp_unit): Likewise.
2888 (lookup_dwo_type_unit): Likewise.
2889 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2890 (cutu_reader::cutu_reader): Update.
2891
47b14e86
SM
28922020-05-27 Simon Marchi <simon.marchi@efficios.com>
2893
2894 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2895 parameter.
2896 (process_full_type_unit): Likewise.
2897 (process_queue): Update.
2898
43182c09
SM
28992020-05-27 Simon Marchi <simon.marchi@efficios.com>
2900
2901 * dwarf2/read.c (recursively_compute_inclusions): Add
2902 dwarf2_per_objfile parameter.
2903 (compute_compunit_symtab_includes): Likewise.
2904 (process_cu_includes): Update.
2905
7aa104c4
SM
29062020-05-27 Simon Marchi <simon.marchi@efficios.com>
2907
2908 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2909 parameter.
2910 (create_type_unit_group): Update.
2911 (process_psymtab_comp_unit_reader): Update.
2912 (build_type_psymtabs_reader): Update.
2913
e3beb21d
SM
29142020-05-27 Simon Marchi <simon.marchi@efficios.com>
2915
2916 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2917 object through m_this_cu->cu.
2918
d460f660
SM
29192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2920
2921 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2922 the info parameter.
2923 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2924
ab432490
SM
29252020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2926
2927 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2928 per_objfile parameter.
2929 (load_full_type_unit): Add per_objfile parameter.
2930 (read_signatured_type): Likewise.
2931 (load_full_comp_unit): Likewise.
2932 (load_cu): Likewise.
2933 (dw2_do_instantiate_symtab): Likewise.
2934 (dw2_get_file_names): Likewise.
2935 (dw2_map_symtabs_matching_filename): Update.
2936 (dw_expand_symtabs_matching_file_matcher): Update.
2937 (dw2_map_symbol_filenames): Update.
2938 (process_psymtab_comp_unit): Add per_objfile parameter.
2939 (build_type_psymtabs_1): Update.
2940 (process_skeletonless_type_unit): Update.
2941 (dwarf2_build_psymtabs_hard): Update.
2942 (load_partial_comp_unit): Add per_objfile parameter.
2943 (scan_partial_symbols): Update.
2944 (load_full_comp_unit): Add per_objfile parameter.
2945 (process_imported_unit_die): Update.
2946 (create_cus_hash_table): Update.
2947 (find_partial_die): Update.
2948 (dwarf2_read_addr_index): Update.
2949 (follow_die_offset): Update.
2950 (dwarf2_fetch_die_loc_sect_off): Update.
2951 (dwarf2_fetch_constant_bytes): Update.
2952 (dwarf2_fetch_die_type_sect_off): Update.
2953 (follow_die_sig_1): Update.
2954 (load_full_type_unit): Add per_objfile parameter.
2955 (read_signatured_type): Likewise.
2956
313bad1b
SM
29572020-05-27 Simon Marchi <simon.marchi@efficios.com>
2958
2959 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2960 of objfile_name.
2961
c3699833
SM
29622020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2963
2964 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2965 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2966 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2967 field.
2968 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2969 (create_cus_from_index): Update.
2970 (dwarf2_read_gdb_index): Update.
2971 (create_cus_from_debug_names): Update.
2972 (dwarf2_read_debug_names): Update.
2973 (get_abbrev_section_for_cu): Update.
2974 (create_all_comp_units): Update.
2975 (read_attribute_value): Update.
2976 (get_debug_line_section): Update.
2977 * dwarf2/index-cache.c (index_cache::store): Update.
2978 * dwarf2/index-write.c (save_gdb_index_command): Update.
2979 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2980
1859c670
SM
29812020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2982
2983 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
2984 member.
2985 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
2986 dwarf2_per_cu_data::per_bfd.
2987 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
2988 (create_type_unit_group): Likewise.
2989 (queue_comp_unit): Remove reference to
2990 per_cu->dwarf2_per_objfile.
2991 (maybe_queue_comp_unit): Likewise.
2992 (fill_in_sig_entry_from_dwo_entry): Assign new field.
2993 (create_cus_hash_table): Assign new field.
2994
5e22e966
SM
29952020-05-27 Simon Marchi <simon.marchi@efficios.com>
2996
2997 * dwarf2/read.c: Replace
2998 dwarf2_cu->per_cu->dwarf2_per_objfile references with
2999 dwarf2_cu->per_objfile throughout.
3000
97a1449a
SM
30012020-05-27 Simon Marchi <simon.marchi@efficios.com>
3002
3003 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3004 parameter, don't use per_cu->dwarf2_per_objfile.
3005 (dw2_instantiate_symtab): Likewise.
3006 (dw2_find_last_source_symtab): Update.
3007 (dw2_map_expand_apply): Update.
3008 (dw2_lookup_symbol): Update.
3009 (dw2_expand_symtabs_for_function): Update.
3010 (dw2_expand_all_symtabs): Update.
3011 (dw2_expand_symtabs_with_fullname): Update.
3012 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3013 don't use per_cu->dwarf2_per_objfile.
3014 (dw2_expand_marked_cus): Update.
3015 (dw2_find_pc_sect_compunit_symtab): Update.
3016 (dw2_debug_names_lookup_symbol): Update.
3017 (dw2_debug_names_expand_symtabs_for_function): Update.
3018 (dw2_debug_names_map_matching_symbols): Update.
3019 (dwarf2_psymtab::expand_psymtab): Update.
3020
9e021579
SM
30212020-05-27 Simon Marchi <simon.marchi@efficios.com>
3022
3023 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3024 <per_objfile>: New member.
3025 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3026 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3027 call to dwarf2_cu.
3028 (cutu_reader::cutu_reader): Update.
3029 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3030
ae090bdb
SM
30312020-05-27 Simon Marchi <simon.marchi@efficios.com>
3032
3033 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3034 struct dwarf2_per_objfile.
3035 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3036 dwarf2_per_bfd.
3037 * dwarf2/read.c (set_die_type): Update.
3038 (get_die_type_at_offset): Update.
3039
af758d11
SM
30402020-05-27 Tom Tromey <tom@tromey.com>
3041 Simon Marchi <simon.marchi@efficios.com>
3042
3043 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3044 method.
3045 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3046 get_symtab, set_symtab>: New methods.
3047 <m_symtabs>: New field.
3048 (struct dwarf2_psymtab): Derive from partial_symtab.
3049 <readin_p, get_compunit_symtab>: Declare methods.
3050 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3051 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3052 New methods.
3053 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3054 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3055 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3056 (dw2_symtab_iter_next, dw2_print_stats)
3057 (dw2_expand_symtabs_with_fullname)
3058 (dw2_expand_symtabs_matching_one)
3059 (dw_expand_symtabs_matching_file_matcher)
3060 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3061 (dw2_debug_names_iterator::next)
3062 (dw2_debug_names_map_matching_symbols)
3063 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3064 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3065 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3066 New methods.
3067 (get_compunit_symtab, process_full_comp_unit)
3068 (process_full_type_unit): Update.
3069 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3070
5989a64e
SM
30712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3072
3073 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3074 then introduce a new dwarf2_per_objfile type.
3075 <read_line_string>: Move to the new dwarf2_per_objfile type.
3076 <objfile>: Likewise.
3077 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3078 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3079 dwarf2_per_objfile->per_bfd.
3080 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3081 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3082 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3083 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3084 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3085 (dwarf2_per_objfile::locate_sections): Rename to...
3086 (dwarf2_per_bfd::locate_sections): ... this.
3087 (dwarf2_per_objfile::get_cutu): Rename to...
3088 (dwarf2_per_bfd::get_cutu): ... this.
3089 (dwarf2_per_objfile::get_cu): Rename to...
3090 (dwarf2_per_bfd::get_cu): ... this.
3091 (dwarf2_per_objfile::get_tu): Rename to...
3092 (dwarf2_per_bfd::get_tu): ... this.
3093 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3094 (dwarf2_per_bfd::allocate_per_cu): ... this.
3095 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3096 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3097 (get_gdb_index_contents_ftype): Change parameter from
3098 dwarf2_per_objfile to dwarf2_per_bfd.
3099 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3100 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3101
a50264ba
TT
31022020-05-27 Tom Tromey <tom@tromey.com>
3103 Simon Marchi <simon.marchi@efficios.com>
3104
3105 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3106 (allocate_piece_closure): Set "per_objfile" member.
3107 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3108 (locexpr_describe_location, loclist_describe_location): Use new
3109 member.
3110 * dwarf2/read.c (read_call_site_scope)
3111 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3112 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3113 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3114 handle_data_member_location): Set per_objfile member.
3115 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3116 member.
3117 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3118
d3473f0c
TT
31192020-05-27 Tom Tromey <tom@tromey.com>
3120
3121 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3122 allocate_signatured_type>: Declare new methods.
3123 <m_num_psymtabs>: New member.
3124 (struct dwarf2_per_cu_data) <index>: New member.
3125 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3126 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3127 (create_cu_from_index_list): Use allocate_per_cu.
3128 (create_signatured_type_table_from_index)
3129 (create_signatured_type_table_from_debug_names)
3130 (create_debug_type_hash_table, add_type_unit)
3131 (read_comp_units_from_section): Use allocate_signatured_type.
3132
5717c425
TT
31332020-05-27 Tom Tromey <tom@tromey.com>
3134
3135 * psymtab.c (partial_map_expand_apply)
3136 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3137 (psym_lookup_global_symbol_language)
3138 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3139 (psym_print_stats, psym_expand_symtabs_for_function)
3140 (psym_map_symbol_filenames, psym_map_matching_symbols)
3141 (psym_expand_symtabs_matching)
3142 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3143 (maintenance_check_psymtabs): Update.
3144 * psympriv.h (struct partial_symtab) <readin_p,
3145 get_compunit_symtab>: Add objfile parameter.
3146 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3147 Likewise.
3148 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3149 get_compunit_symtab>: Likewise.
3150 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3151
45940949
TT
31522020-05-27 Tom Tromey <tom@tromey.com>
3153
3154 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3155 member.
3156 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3157 (create_cu_from_index_list)
3158 (create_signatured_type_table_from_index)
3159 (create_signatured_type_table_from_debug_names)
3160 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3161 (dwarf2_create_include_psymtab)
3162 (create_debug_type_hash_table, add_type_unit)
3163 (create_type_unit_group, read_comp_units_from_section)
3164 (dwarf2_compute_name, create_cus_hash_table)
3165 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3166 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3167 obstack.
3168 (dw2_get_real_path): Likewise. Change argument to
3169 dwarf2_per_objfile.
3170
f8c6d152
LM
31712020-05-27 Luis Machado <luis.machado@linaro.org>
3172
3173 PR tdep/26000
3174 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3175 for ldrd (immediate).
3176
e98d2e6d
PW
31772020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3178
3179 * command.h: Add comment giving the name of class_tui.
3180 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3181 create the fake command for the help for class_tui.
3182
53a47a3e
TT
31832020-05-26 Tom Tromey <tromey@adacore.com>
3184
3185 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3186 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3187 (val_atr): New function.
3188 (value_val_atr): Use it.
3189 * ada-valprint.c (print_optional_low_bound): Change low bound
3190 handling for enums.
3191 (val_print_packed_array_elements): Don't call discrete_position.
3192 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3193 discrete_position for enum types.
3194 * language.c (default_print_array_index): Change type.
3195 * language.h (struct language_defn) <la_print_array_index>: Add
3196 index_type parameter, change type of index_value.
3197 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3198 (default_print_array_index): Update.
3199 * valprint.c (maybe_print_array_index): Don't call
3200 value_from_longest. Update.
3201 (value_print_array_elements): Don't call discrete_position.
3202
0bc2354b
TT
32032020-05-26 Tom Tromey <tromey@adacore.com>
3204
3205 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3206 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3207
1218a4bf
CDA
32082020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3209
3210 PR gdb/13519
3211 * avr-tdep.c (avr_integer_to_address): Return data or code
3212 address accordingly to the second 'type' argument of the
3213 function.
3214
92651b1d
MW
32152020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3216
3217 * infcmd.c, inferior.h: (construct_inferior_arguments):
3218 Moved function from here to gdbsupport/common-inferior.{h,cc}
3219
0a4f5f8c
TT
32202020-05-23 Tom Tromey <tom@tromey.com>
3221
3222 Revert commit eca1f90c:
3223 * NEWS: Remove entry for completion styling.
3224 * completer.c (_rl_completion_prefix_display_length): Move
3225 declaration later.
3226 (gdb_fnprint): Revert.
3227 (gdb_display_match_list_1): Likewise.
3228 * cli/cli-style.c (completion_prefix_style)
3229 (completion_difference_style, completion_suffix_style): Remove.
3230 (_initialize_cli_style): Revert.
3231 * cli/cli-style.h (completion_prefix_style)
3232 (completion_difference_style, completion_suffix_style): Don't
3233 declare.
3234
e08bd6c5
PA
32352020-05-24 Pedro Alves <palves@redhat.com>
3236
3237 * symtab.c (completion_list_add_name): Return boolean indication
3238 of whether the symbol matched.
3239 (completion_list_add_symbol): Don't try to remove C++ aliases if
3240 the symbol didn't match in the first place.
3241 * symtab.h (completion_list_add_name): Return bool.
3242
ceacbf6e
SM
32432020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3244
3245 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3246 type::field.
3247
26f16254
JB
32482020-05-23 Joel Brobecker <brobecker@adacore.com>
3249
3250 GDB 9.2 released.
3251
eca1f90c
TT
32522020-05-23 Tom Tromey <tom@tromey.com>
3253
3254 * NEWS: Add entry for completion styling.
3255 * completer.c (_rl_completion_prefix_display_length): Move
3256 declaration earlier.
3257 (gdb_fnprint): Use completion_style.
3258 (gdb_display_match_list_1): Likewise.
3259 * cli/cli-style.c (completion_prefix_style)
3260 (completion_difference_style, completion_suffix_style): New
3261 globals.
3262 (_initialize_cli_style): Register new globals.
3263 * cli/cli-style.h (completion_prefix_style)
3264 (completion_difference_style, completion_suffix_style): Declare.
3265
51e2cfa2
PA
32662020-05-23 Pedro Alves <palves@redhat.com>
3267
3268 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3269 (parse_escape): Use ISDIGIT instead of isdigit.
3270 (puts_debug): Use gdb_isprint instead of isprint.
3271 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3272 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3273 ISSPACE instead of isspace.
3274 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3275 instead of isspace.
3276 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3277 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3278 instead of isxdigit and ISDIGIT instead of isdigit.
3279
80fc5e77
SM
32802020-05-22 Simon Marchi <simon.marchi@efficios.com>
3281
3282 * gdbtypes.h (struct type) <field>: New method.
3283 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3284 or type::field.
3285
3cabb6b0
SM
32862020-05-22 Simon Marchi <simon.marchi@efficios.com>
3287
3288 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3289 (TYPE_FIELDS): Use type::fields. Change all call sites that
3290 modify the propery to use type::set_fields instead.
3291
1f704f76
SM
32922020-05-22 Simon Marchi <simon.marchi@efficios.com>
3293
3294 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3295 type::num_fields instead.
3296
5e33d5f4
SM
32972020-05-22 Simon Marchi <simon.marchi@efficios.com>
3298
3299 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3300 methods.
3301 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3302 that modify the number of fields to use type::set_num_fields
3303 instead.
3304
9392ebb3
TT
33052020-05-22 Tom Tromey <tromey@adacore.com>
3306
3307 * compile/compile-object-load.h (munmap_list_free): Don't
3308 declare.
3309
7c13f4e8
AB
33102020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3311
3312 * annotate.c (annotate_source_line): Update return type, add call
3313 to update current symtab and line.
3314 * annotate.h (annotate_source_line): Update return type, and
3315 extend header comment.
3316 * source.c (info_line_command): Check annotation_level before
3317 calling annotate_source_line.
3318 * stack.c (print_frame_info): If calling annotate_source_line
3319 returns true, then don't print any other source line information.
3320
aa370940
SM
33212020-05-21 Simon Marchi <simon.marchi@efficios.com>
3322
3323 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3324
84d53fa9
SM
33252020-05-21 Simon Marchi <simon.marchi@efficios.com>
3326
3327 * coffread.c (patch_type): Remove NULL check before xfree.
3328 * corefile.c (set_gnutarget): Likewise.
3329 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3330 * exec.c (build_section_table): Likewise.
3331 * remote.c (remote_target::pass_signals): Likewise.
3332 * utils.c (n_spaces): Likewise.
3333 * cli/cli-script.c (document_command): Likewise.
3334 * i386-windows-tdep.c (core_process_module_section): Likewise.
3335 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3336
9d428aae
SM
33372020-05-20 Simon Marchi <simon.marchi@efficios.com>
3338
3339 * symfile.c (reread_symbols): Clear objfile's section_offsets
3340 vector and section indices, re-compute them by calling
3341 sym_offsets.
3342
250106a7
TT
33432020-05-20 Tom Tromey <tromey@adacore.com>
3344
3345 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3346 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3347
9a0bacfb
TV
33482020-05-20 Tom de Vries <tdevries@suse.de>
3349
3350 PR symtab/25833
3351 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3352
7b958a48
AM
33532020-05-20 Alan Modra <amodra@gmail.com>
3354
3355 PR 25993
3356 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3357 bfd_set_filename.
3358 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3359 passed to bfd_set_filename.
3360 * symfile-mem.c (add_vsyscall_page): Likewise for string
3361 passed to symbol_file_add_from_memory.
3362 (symbol_file_add_from_memory): Make name param a const char* and
3363 don't strdup.
3364
c7e97679
AM
33652020-05-20 Alan Modra <amodra@gmail.com>
3366
3367 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3368 rather than accessing bfd->filename directly.
3369 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3370 and use bfd_section_name.
3371 * dwarf2/frame.c (decode_frame_entry): Likewise.
3372 * exec.c (exec_set_section_address): Likewise.
3373 * solib-aix.c (solib_aix_bfd_open): Likewise.
3374 * stap-probe.c (get_stap_base_address): Likewise.
3375 * symfile.c (reread_symbols): Likewise.
3376
563c591b
TT
33772020-05-19 Tom Tromey <tromey@adacore.com>
3378
3379 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3380
f408d82c
SM
33812020-05-19 Simon Marchi <simon.marchi@efficios.com>
3382
3383 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3384
98c59b52
PA
33852020-05-19 Pedro Alves <palves@redhat.com>
3386
3387 * NEWS (set exec-file-mismatch): Adjust entry.
3388 * exec.c: Include "build-id.h".
3389 (validate_exec_file): Try to match build IDs instead of filenames.
3390 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3391 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3392 and pass down 'warn_if_slow'.
3393 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3394 gdb_bfd_open_closure to pass it down.
3395 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3396
4111f652
PA
33972020-05-19 Pedro Alves <palves@redhat.com>
3398
3399 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3400 * target.c (target_fileio_open_1): Rename to target_fileio_open
3401 and make extern. Use bool.
3402 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3403 (target_fileio_read_alloc_1): Adjust.
3404 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3405 (target_fileio_open_warn_if_slow): Delete declaration.
3406
ad80db5b
PA
34072020-05-19 Pedro Alves <palves@redhat.com>
3408
3409 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3410 Adjust all callers.
3411
1d6ce4d3
YS
34122020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3413
3414 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3415 whether disp is negative.
3416
9005fbbb
SM
34172020-05-19 Simon Marchi <simon.marchi@efficios.com>
3418
3419 * symfile.h (struct symfile_segment_data)
3420 <~symfile_segment_data>: Remove.
3421 <segment_info>: Change to std::vector.
3422 * symfile.c (default_symfile_segments): Update.
3423 * elfread.c (elf_symfile_segments): Update.
3424
68b888ff
SM
34252020-05-19 Simon Marchi <simon.marchi@efficios.com>
3426
3427 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3428 <segments>: New.
3429 <segment_bases, segment_sizes>: Remove.
3430 * symfile.c (default_symfile_segments): Update.
3431 * elfread.c (elf_symfile_segments): Update.
3432 * remote.c (remote_target::get_offsets): Update.
3433 * solib-target.c (solib_target_relocate_section_addresses):
3434 Update.
3435
62982abd
SM
34362020-05-19 Simon Marchi <simon.marchi@efficios.com>
3437
3438 * symfile.h (struct symfile_segment_data): Initialize fields.
3439 <~symfile_segment_data>: Add.
3440 (symfile_segment_data_up): New.
3441 (struct sym_fns) <sym_segments>: Return a
3442 symfile_segment_data_up.
3443 (default_symfile_segments): Return a symfile_segment_data_up.
3444 (free_symfile_segment_data): Remove.
3445 (get_symfile_segment_data): Return a symfile_segment_data_up.
3446 * symfile.c (default_symfile_segments): Likewise.
3447 (get_symfile_segment_data): Likewise.
3448 (free_symfile_segment_data): Remove.
3449 (symfile_find_segment_sections): Update.
3450 * elfread.c (elf_symfile_segments): Return a
3451 symfile_segment_data_up.
3452 * remote.c (remote_target::get_offsets): Update.
3453 * solib-target.c (solib_target_relocate_section_addresses):
3454 Update.
3455 * symfile-debug.c (debug_sym_segments): Return a
3456 symfile_segment_data_up.
3457
7f204339
RO
34582020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3459
e52a0f1b
RO
3460 PR build/25981
3461 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3462 Hardcode register numbers.
3463
7f204339
RO
3464 PR build/25981
3465 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3466 procfs_find_LDT_entry): Remove.
3467 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3468 procfs_find_LDT_entry): Remove.
3469 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3470 Remove.
3471
7f32a4d5
PA
34722020-05-17 Pedro Alves <palves@redhat.com>
3473 Andrew Burgess <andrew.burgess@embecosm.com>
3474 Keno Fischer <keno@juliacomputing.com>
3475
3476 PR gdb/25741
3477 * breakpoint.c (build_target_condition_list): Update comments.
3478 (build_target_command_list): Update comments and skip matching
3479 locations.
3480 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3481 a separate function. Simplify "set breakpoint auto-hw off"
3482 handling.
3483 (insert_breakpoints): Update comment.
3484 (tracepoint_locations_match): New parameter. For breakpoints,
3485 compare location types too, if the caller wants to.
3486 (handle_automatic_hardware_breakpoints): New functions.
3487 (bp_location_is_less_than): Also sort by location type and
3488 hardware breakpoint length.
3489 (update_global_location_list): Handle "set breakpoint auto-hw on"
3490 here.
3491 (update_breakpoint_locations): Ask breakpoint_locations_match to
3492 ignore location types.
3493
7d93a1e0
SM
34942020-05-16 Simon Marchi <simon.marchi@efficios.com>
3495
3496 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3497 type::name instead.
3498
d0e39ea2
SM
34992020-05-16 Simon Marchi <simon.marchi@efficios.com>
3500
3501 * gdbtypes.h (struct type) <name, set_name>: New methods.
3502 (TYPE_CODE): Use type::name. Change all call sites used to set
3503 the name to use type::set_name instead.
3504
2dab0c7b
TT
35052020-05-16 Tom Tromey <tom@tromey.com>
3506
3507 * top.c (quit_force): Update.
3508 * infrun.c (handle_no_resumed): Update.
3509 * top.h (all_uis): New function.
3510 (ALL_UIS): Remove.
3511
59f7bd8d
SM
35122020-05-16 Simon Marchi <simon.marchi@efficios.com>
3513
3514 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3515
9bf058f0
PA
35162020-05-16 Pedro Alves <palves@redhat.com>
3517
3518 * ia64-linux-nat.c
3519 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3520 Declare method.
3521 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3522
8f86ae1a
SM
35232020-05-15 Simon Marchi <simon.marchi@efficios.com>
3524
3525 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3526 (sparc64_adi_info): Likewise.
3527
d6bc0792
TT
35282020-05-15 Tom Tromey <tom@tromey.com>
3529
3530 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3531 block_objfile.
3532 (lookup_objfile_from_block): Remove.
3533 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3534 (lookup_global_symbol): Use block_objfile.
3535 * symtab.h (lookup_objfile_from_block): Don't declare.
3536 * printcmd.c (clear_dangling_display_expressions): Use
3537 block_objfile.
3538 * parse.c (operator_check_standard): Use block_objfile.
3539
8c14c3a3
TT
35402020-05-15 Tom Tromey <tom@tromey.com>
3541
3542 * language.c (language_alloc_type_symbol): Set
3543 SYMBOL_SECTION.
3544 * symtab.c (initialize_objfile_symbol): Remove.
3545 (allocate_symbol): Remove.
3546 (allocate_template_symbol): Remove.
3547 * dwarf2/read.c (fixup_go_packaging): Use "new".
3548 (new_symbol): Use "new".
3549 (read_variable): Don't call initialize_objfile_symbol. Use
3550 "new".
3551 (read_func_scope): Use "new".
3552 * xcoffread.c (process_xcoff_symbol): Don't call
3553 initialize_objfile_symbol.
3554 (SYMBOL_DUP): Remove.
3555 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3556 "new".
3557 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3558 (allocate_template_symbol): Don't declare.
3559 (struct symbol): Add copy constructor. Change defaults.
3560 * jit.c (finalize_symtab): Use "new".
3561 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3562 Use "new".
3563 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3564 (common_block_end): Use "new".
3565 * mdebugread.c (parse_symbol): Use "new".
3566 (new_symbol): Likewise.
3567
5b4a1a8d
PW
35682020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3569
3570 * NEWS: Mention changes to help and apropos.
3571
57b4f16e
PW
35722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3573
3574 * command.h (enum command_class): Improve comments, document
3575 that class_alias is for user-defined aliases, give the class
3576 name for each class, remove unused class_xdb.
3577 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3578 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3579 by a precise class.
3580 * infcmd.c (_initialize_infcmd): Likewise.
3581 * reverse.c (_initialize_reverse): Likewise.
3582 * stack.c (_initialize_stack): Likewise.
3583 * symfile.c (_initialize_symfile): Likewise.
3584 * tracepoint.c (_initialize_tracepoint): Likewise.
3585
7c05caf7
PW
35862020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3587
3588 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3589 when their aliased command is traversed.
3590 (help_cmd): Add fput_command_names_styled call to
3591 output command name and aliases when command has an alias.
3592
3b3aaacb
PW
35932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3594
3595 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3596 * cli/cli-decode.c (help_cmd_list): Declare as static,
3597 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3598 a command together with the command.
3599 (fput_command_name_styled, fput_command_names_styled): New functions.
3600 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3601 fput_command_name_styled.
3602 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3603 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3604
7aa1b46f
PW
36052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3606
3607 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3608 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3609 * command.h (cmd_show_list): Likewise.
3610 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3611 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3612
89bcba74
PW
36132020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3614
3615 * unittests/command-def-selftests.c (traverse_command_structure):
3616 Verify all commands of a list have the same prefix command and
3617 that only the top cmdlist commands have a null prefix.
3618
3f4d92eb
PW
36192020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3620
3621 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3622 as prefix, not one of its aliases.
3623 (set_cmd_prefix): Remove.
3624 (do_add_cmd): Centralize the setting of the prefix of a command, when
3625 command is defined after its full chain of prefix commands.
3626 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3627 (add_setshow_cmd_full): Likewise.
3628 (update_prefix_field_of_prefixed_commands): New function.
3629 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3630 update_prefix_field_of_prefixed_commands.
3631 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3632 addresses of remote_set_cmdlist and remote_show_cmdlist given
3633 as argument, not the address of an argument.
3634 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3635 * gdb/remote.c (_initialize_remote): Likewise.
3636
0605465f
PW
36372020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3638
3639 * cli/cli-cmds.c (alias_command): Check for an existing alias
3640 using lookup_cmd_composition, as valid_command_p is too strict
3641 and forbids aliases that are the prefix of an existing alias
3642 or command.
3643 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3644 command is properly recognised as a valid command.
3645
58e6ac70
PW
36462020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3647
3648 * unittests/help-doc-selftests.c: Rename to
3649 unittests/command-def-selftests.c
3650 * unittests/command-def-selftests.c (help_doc_tests): Update some
3651 comments.
3652 (command_structure_tests, traverse_command_structure): New namespace
3653 and function.
3654 (command_structure_invariants_tests): New function.
3655 (_initialize_command_def_selftests) Renamed from
3656 _initialize_help_doc_selftests, register command_structure_invariants
3657 selftest.
3658
a7b9ceb8
PW
36592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3660
3661 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3662 an alias of 'show'.
3663
b2188a06
JB
36642020-05-15 Joel Brobecker <brobecker@adacore.com>
3665
3666 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3667 ada_is_fixed_point_type. Update all callers.
3668 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3669 all callers.
3670 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3671 Update all callers.
3672 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3673 print_fixed_point_type. Update all callers.
3674 * ada-valprint.c (ada_value_print_num): Replace call to
3675 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3676
a51951c2
KB
36772020-05-14 Kevin Buettner <kevinb@redhat.com>
3678
3679 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3680 processors.
3681 (cpu_supports_bts): Add CV_AMD case.
3682
29d6859f
LM
36832020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3684 Simon Marchi <simon.marchi@efficios.com>
3685
3686 * infrun.c (stop_all_threads): Collect multiple wait events at
3687 each pass.
3688
78134374
SM
36892020-05-14 Simon Marchi <simon.marchi@efficios.com>
3690
3691 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3692 type::code instead.
3693
67607e24
SM
36942020-05-14 Simon Marchi <simon.marchi@efficios.com>
3695
3696 * gdbtypes.h (struct type) <code, set_code>: New methods.
3697 (TYPE_CODE): Use type::code. Change all call sites used to set
3698 the code to use type::set_code instead.
3699
a05575d3
TBA
37002020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3701 Tom de Vries <tdevries@suse.de>
3702 Pedro Alves <palves@redhat.com>
3703
3704 PR threads/25478
3705 * infrun.c (stop_all_threads): Do NOT ignore
3706 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3707 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3708 received.
3709 (handle_no_resumed): Remove code handling a live inferior with no
3710 threads.
3711 * remote.c (has_single_non_exited_thread): New.
3712 (remote_target::update_thread_list): Do not delete a thread if is
3713 the last thread of the process.
3714 * thread.c (thread_select): Call delete_exited_threads instead of
3715 prune_threads.
3716
6ad82919
TBA
37172020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3718
3719 * infrun.c (stop_all_threads): Enable/disable thread events of all
3720 targets. Move a debug message denoting the end of the function
3721 into the SCOPED_EXIT block.
3722
d890404b
TBA
37232020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3724
3725 * process-stratum-target.h: Include <set>.
3726 (all_non_exited_process_targets, switch_to_target_no_thread): New
3727 function declarations.
3728 * process-stratum-target.c (all_non_exited_process_targets)
3729 (switch_to_target_no_thread): New function implementations.
3730
293b3ebc
TBA
37312020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3732
3733 * infrun.c (handle_inferior_event): Extract out a piece of code
3734 into...
3735 (mark_non_executing_threads): ...this new function.
3736
7ca9b62a
TBA
37372020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3738
3739 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3740 use.
3741
fc75c28b
TBA
37422020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3743
3744 * regcache.c (regcache_read_pc_protected): New function
3745 implementation that returns 0 if the PC cannot read via
3746 'regcache_read_pc'.
3747 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3748 instead of 'regcache_read_pc'.
3749 (keep_going_pass_signal): Ditto.
3750
a89febbd
TT
37512020-05-13 Tom Tromey <tromey@adacore.com>
3752
3753 * ada-lang.c (align_value): Remove.
3754 (ada_template_to_fixed_record_type_1): Use align_up.
3755
f7e23710
TBA
37562020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3757
3758 * async-event.c: Update the copyright year.
3759 * async-event.h: Update the copyright year.
3760
02ff80c2
SM
37612020-05-12 Simon Marchi <simon.marchi@efficios.com>
3762
3763 * objfiles.h (is_addr_in_objfile,
3764 shared_objfile_contains_address_p): Return bool.
3765 * objfile.c (is_addr_in_objfile,
3766 shared_objfile_contains_address_p): Return bool.
3767
4fd6c7e8
TT
37682020-05-11 Tom Tromey <tromey@adacore.com>
3769
3770 * cli/cli-cmds.c (info_command): Restore.
3771 (_initialize_cli_cmds): Use add_prefix_command for "info".
3772 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3773
5eb68a39
TT
37742020-05-11 Tom Tromey <tromey@adacore.com>
3775
3776 * ada-lang.c (ada_value_primitive_field): Now public.
3777 * ada-lang.h (ada_value_primitive_field): Declare.
3778 * ada-valprint.c (print_field_values): Use
3779 ada_value_primitive_field for wrapper fields.
3780
7666722f
TV
37812020-05-11 Tom de Vries <tdevries@suse.de>
3782
3783 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3784 MODULE_DOMAIN.
3785
3ee6bb11
TV
37862020-05-11 Tom de Vries <tdevries@suse.de>
3787
3788 PR symtab/25941
3789 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3790 with length 0, if not gdb-produced.
3791 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3792
43434996
TV
37932020-05-09 Tom de Vries <tdevries@suse.de>
3794
3795 PR gdb/25955
3796 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3797 calculation.
3798
2f78cffc
TT
37992020-05-09 Tom Tromey <tom@tromey.com>
3800
3801 * top.c (server_command): Now bool.
3802 * top.h (server_command): Now bool.
3803
4f7bc5ed
TT
38042020-05-08 Tom Tromey <tromey@adacore.com>
3805
3806 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3807 already being processed.
3808
8be4b118
TT
38092020-05-08 Tom Tromey <tom@tromey.com>
3810
3811 * printcmd.c (struct display) <next>: Remove.
3812 <display>: New constructor.
3813 <exp_string>: Now a std::string.
3814 <enabled_p>: Now a bool.
3815 (display_number): Move definition earlier.
3816 (displays): Rename from display_chain. Now a std::vector.
3817 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3818 (display_command): Update.
3819 (do_one_display, disable_display)
3820 (enable_disable_display_command, do_enable_disable_display):
3821 Update.
3822 (free_display): Remove.
3823 (clear_displays): Rewrite.
3824 (delete_display): Update.
3825 (map_display_numbers): Use function_view. Remove "data"
3826 parameter. Update.
3827 (do_delete_display): Remove.
3828 (undisplay_command): Update.
3829 (do_one_display, do_displays, disable_display)
3830 (info_display_command): Update.
3831 (do_enable_disable_display): Remove.
3832 (enable_disable_display_command)
3833 (clear_dangling_display_expressions): Update.
3834
94c93c35
TT
38352020-05-08 Tom Tromey <tom@tromey.com>
3836
3837 * symtab.c (set_symbol_cache_size)
3838 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3839 (maintenance_print_symbol_cache_statistics): Update.
3840 * symmisc.c (print_symbol_bcache_statistics)
3841 (print_objfile_statistics, maintenance_print_objfiles)
3842 (maintenance_info_symtabs, maintenance_check_symtabs)
3843 (maintenance_expand_symtabs, maintenance_info_line_tables):
3844 Update.
3845 * symfile-debug.c (set_debug_symfile): Update.
3846 * source.c (forget_cached_source_info): Update.
3847 * python/python.c (gdbpy_progspaces): Update.
3848 * psymtab.c (maintenance_info_psymtabs): Update.
3849 * probe.c (parse_probes): Update.
3850 * linespec.c (iterate_over_all_matching_symtabs)
3851 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3852 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3853 * exec.c (exec_target::close): Update.
3854 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3855 * breakpoint.c (print_one_breakpoint_location)
3856 (create_longjmp_master_breakpoint)
3857 (create_std_terminate_master_breakpoint): Update.
3858 * progspace.c (program_spaces): Now a std::vector.
3859 (maybe_new_address_space): Update.
3860 (add_program_space): Remove.
3861 (program_space::program_space): Update.
3862 (remove_program_space): Update.
3863 (number_of_program_spaces): Remove.
3864 (print_program_space, update_address_spaces): Update.
3865 * progspace.h (program_spaces): Change type.
3866 (ALL_PSPACES): Remove.
3867 (number_of_program_spaces): Don't declare.
3868 (struct program_space) <next>: Remove.
3869
a1fd1ac9
TT
38702020-05-08 Tom Tromey <tom@tromey.com>
3871
3872 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3873 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3874 (enable_break): Update.
3875 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3876 (frv_fdpic_find_canonical_descriptor): Update.
3877 (frv_fetch_objfile_link_map): Update.
3878 * progspace.c (program_space::free_all_objfiles): Update.
3879 (program_space::solibs): New method.
3880 * progspace.h (struct program_space) <solibs>: New method.
3881 * solist.h (master_so_list): Don't declare.
3882 (ALL_SO_LIBS): Remove.
3883 * solib.h (so_list_head): Remove.
3884 (update_solib_list): Update comment.
3885 * solib.c (master_so_list): Remove.
3886 (solib_used, update_solib_list, solib_add)
3887 (info_sharedlibrary_command, clear_solib)
3888 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3889
38eae084
TT
38902020-05-08 Tom Tromey <tom@tromey.com>
3891
3892 * extension.c (extension_languages): Now a std::array.
3893 (ALL_EXTENSION_LANGUAGES): Remove.
3894 (get_ext_lang_defn, get_ext_lang_of_file)
3895 (eval_ext_lang_from_control_command): Update.
3896 (finish_ext_lang_initialization)
3897 (auto_load_ext_lang_scripts_for_objfile)
3898 (ext_lang_type_printers::ext_lang_type_printers)
3899 (apply_ext_lang_type_printers)
3900 (ext_lang_type_printers::~ext_lang_type_printers)
3901 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3902 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3903 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3904 (get_matching_xmethod_workers, ext_lang_colorize)
3905 (ext_lang_before_prompt): Update.
3906 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3907
596dc4ad
TT
39082020-05-08 Tom Tromey <tom@tromey.com>
3909
3910 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3911 overload.
3912 <swap_string, m_string>: Remove.
3913 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3914 Update.
3915 * stabsread.c (define_symbol, read_type): Update.
3916 * linespec.c (find_linespec_symbols): Update.
3917 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3918 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3919 * dbxread.c (read_dbx_symtab): Update.
3920 * cp-support.h (cp_canonicalize_string_full)
3921 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3922 Return unique_xmalloc_ptr.
3923 * cp-support.c (inspect_type): Update.
3924 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3925 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3926 Likewise.
3927 * c-typeprint.c (print_name_maybe_canonical): Update.
3928 * break-catch-throw.c (check_status_exception_catchpoint):
3929 Update.
3930
bf4cb9be
TV
39312020-05-08 Tom de Vries <tdevries@suse.de>
3932
3933 * infrun.c (follow_fork): Copy current_line and current_symtab to
3934 child thread.
3935
a1b68f28
SM
39362020-05-07 Simon Marchi <simon.marchi@efficios.com>
3937
3938 * async-event.c (struct async_signal_handler, struct
3939 async_event_handler): Reformat, remove typedef.
3940
98d48915
SM
39412020-05-07 Simon Marchi <simon.marchi@efficios.com>
3942
3943 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3944 access thistype->main_type->dyn_prop_list directly.
3945
7aa91313
SM
39462020-05-07 Simon Marchi <simon.marchi@efficios.com>
3947
3948 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3949 (remove_dyn_prop): Remove. Update all users to use
3950 type::remove_dyn_prop.
3951 * gdbtypes.c (remove_dyn_prop): Rename to...
3952 (type::remove_dyn_prop): ... this.
3953
5c54719c
SM
39542020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3955
3956 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3957 (add_dyn_prop): Remove. Update all users to use
3958 type::add_dyn_prop.
3959 * gdbtypes.c (add_dyn_prop): Rename to...
3960 (type::add_dyn_prop): ... this.
3961
24e99c6c
SM
39622020-05-07 Simon Marchi <simon.marchi@efficios.com>
3963
3964 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3965 (get_dyn_prop): Remove. Update all users to use
3966 type::dyn_prop.
3967 * gdbtypes.c (get_dyn_prop): Rename to...
3968 (type::dyn_prop): ... this.
3969
0d4bf016
SM
39702020-05-06 Simon Marchi <simon.marchi@efficios.com>
3971
3972 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3973
ac4a4f1c
SM
39742020-05-06 Simon Marchi <simon.marchi@efficios.com>
3975
3976 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3977 instruction, skip it if it's there.
3978
a3bbacc1
SM
39792020-05-05 Simon Marchi <simon.marchi@efficios.com>
3980
3981 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
3982
c3236f84
SM
39832020-05-04 Simon Marchi <simon.marchi@efficios.com>
3984
3985 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
3986 * gdbtypes.c (recursive_dump_type): Remove use of
3987 TYPE_INCOMPLETE.
3988
3b6acaee
TT
39892020-05-03 Tom Tromey <tom@tromey.com>
3990
3991 * breakpoint.c (catch_command, tcatch_command): Remove.
3992 (_initialize_breakpoint): Use add_basic_prefix_cmd,
3993 add_show_prefix_cmd.
3994 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
3995 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3996 Remove.
3997 (add_internal_problem_command): Use add_basic_prefix_cmd,
3998 add_show_prefix_cmd.
3999 * mips-tdep.c (set_mipsfpu_command): Remove.
4000 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4001 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4002 (_initialize_index_cache): Use add_basic_prefix_cmd.
4003 * memattr.c (dummy_cmd): Remove.
4004 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4005 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4006 (_initialize_tui_win): Use add_basic_prefix_cmd,
4007 add_show_prefix_cmd.
4008 * cli/cli-logging.c (set_logging_command): Remove.
4009 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4010 add_show_prefix_cmd.
4011 (show_logging_command): Remove.
4012 * target.c (target_command): Remove.
4013 (add_target): Use add_basic_prefix_cmd.
4014
a51119cd
HD
40152020-05-02 Hannes Domani <ssbssa@yahoo.de>
4016
4017 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4018
652fc23a 40192020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4020
652fc23a
PW
4021 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4022 info_command.
4023
117539e6
KR
40242020-04-30 Kamil Rytarowski <n54@gmx.com>
4025
4026 * nbsd-nat.c (nbsd_enable_proc_events)
4027 (nbsd_nat_target::post_startup_inferior): Add.
4028 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4029 (nbsd_nat_target::update_thread_list): Rewrite.
4030 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4031 "PTRACE_LWP_CREATE".
4032 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4033
102e38eb 40342020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4035
102e38eb
PW
4036 * stack.c (_initialize_stack): Remove duplicated creation
4037 of "frame" command and "f" alias.
4038
ee9d1e5f
HD
40392020-04-30 Hannes Domani <ssbssa@yahoo.de>
4040
4041 PR gdb/18706
4042 * gdbtypes.c (check_typedef): Calculate size of array of
4043 stubbed type.
4044
627c7fb8
HD
40452020-04-30 Hannes Domani <ssbssa@yahoo.de>
4046
4047 PR gdb/15559
4048 * i386-tdep.c (i386_push_dummy_call): Call
4049 i386_thiscall_push_dummy_call.
4050 (i386_thiscall_push_dummy_call): New function.
4051 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4052 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4053 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4054
ffc2844e
SM
40552020-04-29 Simon Marchi <simon.marchi@efficios.com>
4056
4057 * gdbarch.sh (do_read): Add shellcheck disable directive for
4058 warning SC2162.
4059
1207375d
SM
40602020-04-29 Simon Marchi <simon.marchi@efficios.com>
4061
4062 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4063 "referenced but not assigned" warning.
4064
9fdb2916
SM
40652020-04-29 Simon Marchi <simon.marchi@efficios.com>
4066
4067 * gdbarch.sh: Remove code that sets fallbackdefault.
4068
759cea5e
SM
40692020-04-29 Simon Marchi <simon.marchi@efficios.com>
4070
4071 * gdbarch.sh: Use shell operators && and || instead of
4072 -a and -o.
4073
cb02ab24
SM
40742020-04-29 Simon Marchi <simon.marchi@efficios.com>
4075
4076 * gdbarch.sh: Use $(...) instead of `...`.
4077
a6fc5ffc
SM
40782020-04-29 Simon Marchi <simon.marchi@efficios.com>
4079
4080 * gdbarch.sh: Use double quotes around variables.
4081
8d113d13
SM
40822020-04-29 Simon Marchi <simon.marchi@efficios.com>
4083
4084 * gdbarch.sh: Use %s with printf, instead of variables in the
4085 format string.
4086
ed6acedd
TT
40872020-04-29 Tom Tromey <tromey@adacore.com>
4088
4089 PR ada/25875:
4090 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4091 type fields here.
4092 (read_enumeration_type): Call
4093 update_enumeration_type_from_children later. Update comments.
4094 (process_enumeration_scope): Don't create type fields.
4095
b68b1b58
KR
40962020-04-29 Kamil Rytarowski <n54@gmx.com>
4097
4098 * nbsd-tdep.c: Include "xml-syscall.h".
4099 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4100
f94b2e03
KR
41012020-04-29 Kamil Rytarowski <n54@gmx.com>
4102
4103 * nbsd-nat.c: Include "sys/wait.h".
4104 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4105 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4106 (nbsd_nat_target::remove_exec_catchpoint)
4107 (nbsd_nat_target::set_syscall_catchpoint): Add.
4108 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4109 (nbsd_nat_target::insert_exec_catchpoint)
4110 (nbsd_nat_target::remove_exec_catchpoint)
4111 (nbsd_nat_target::set_syscall_catchpoint): Add.
4112 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4113 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4114 `nbsd_get_syscall_number'.
4115
fc49bc72
TT
41162020-04-29 Tom Tromey <tom@tromey.com>
4117
4118 * stack.c (print_block_frame_labels): Remove.
4119
d642b692
HD
41202020-04-29 Hannes Domani <ssbssa@yahoo.de>
4121
4122 PR gdb/17320
4123 * ada-valprint.c (val_print_packed_array_elements): Move array
4124 end bracket to new line.
4125 (ada_val_print_string): Remove extra spaces before first array
4126 element.
4127 * c-valprint.c (c_value_print_array): Likewise.
4128 * m2-valprint.c (m2_print_array_contents): Likewise.
4129 (m2_value_print_inner): Likewise.
4130 * p-valprint.c (pascal_value_print_inner): Likewise.
4131 * valprint.c (generic_val_print_array): Likewise.
4132 (value_print_array_elements): Move first array element and array
4133 end bracket to new line.
4134
ea90f227
TV
41352020-04-29 Tom de Vries <tdevries@suse.de>
4136
4137 PR symtab/25889
4138 * linespec.c (find_method): Fix ix calculation.
4139
4498ef4f
KR
41402020-04-28 Kamil Rytarowski <n54@gmx.com>
4141
4142 * syscalls/update-netbsd.sh: New file.
4143 * syscalls/netbsd.xml: Regenerate.
4144 * data-directory/Makefile.in: Register `netbsd.xml' in
4145 `SYSCALLS_FILES'.
4146
a55e30b5
SM
41472020-04-28 Simon Marchi <simon.marchi@efficios.com>
4148
4149 * syscalls/update-freebsd.sh: Add double quotes.
4150
2b2fbab8
TT
41512020-04-28 Tom Tromey <tom@tromey.com>
4152
4153 * NEWS: Update.
4154 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4155 (cmdpy_init): Allow class_tui.
4156
a65189c9
TV
41572020-04-28 Mark Williams <mark@myosotissp.com>
4158
4159 PR gdb/24480
4160 * dwarf2read.c: Add missing assingments to list_in_scope when
4161 start_symtab was already called.
4162
1b95cdb7
SM
41632020-04-28 Simon Marchi <simon.marchi@efficios.com>
4164
4165 PR gdb/25881
4166 * dwarf2/read.c (offset_map_type): Use
4167 gdb:hash_enum<sect_offset> as hash function.
4168
15cd93d0
TV
41692020-04-28 Tom de Vries <tdevries@suse.de>
4170
4171 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4172 with DW_AT_signature.
4173
1eb39914
SM
41742020-04-27 Simon Marchi <simon.marchi@efficios.com>
4175
4176 * configure.ac: Remove check for fs_base/gs_base in
4177 user_regs_struct.
4178 * configure: Re-generate.
4179 * config.in: Re-generate.
4180 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4181 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4182 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4183
991a3e2e
LM
41842020-04-27 Luis Machado <luis.machado@linaro.org>
4185
4186 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4187 problematic inline frame unwinding situation.
4188 * frame.c (frame_id_computed_p): New function.
4189 * frame.h (frame_id_computed_p): New prototype.
4190
361ba0e8
TT
41912020-04-26 Tom Tromey <tom@tromey.com>
4192
4193 * command.h (enum command_class) <class_pseudo>: Remove.
4194
bc3609fd
PW
41952020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4196
4197 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4198 and whitespace.
4199
b9771db7
KR
42002020-04-25 Kamil Rytarowski <n54@gmx.com>
4201
ec16513e
SM
4202 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4203 `PT_GET_PROCESS_STATE' block.
b9771db7 4204
7151c1af
TT
42052020-04-24 Tom Tromey <tom@tromey.com>
4206
4207 * symtab.h (symbol_get_demangled_name): Don't declare.
4208 * symtab.c (symbol_get_demangled_name): Remove.
4209 (general_symbol_info::natural_name)
4210 (general_symbol_info::demangled_name): Update.
4211
906bb4c5
TT
42122020-04-24 Tom Tromey <tom@tromey.com>
4213
4214 PR rust/25025:
4215 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4216
bcfe6157
TT
42172020-04-24 Tom Tromey <tom@tromey.com>
4218
4219 PR symtab/12707:
4220 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4221 exists.
4222 (new_symbol): Likewise.
4223 * compile/compile-object-load.c (get_out_value_type): Use
4224 symbol_matches_search_name.
4225
f049a313
TT
42262020-04-24 Tom Tromey <tom@tromey.com>
4227
4228 * dwarf2/read.c (add_partial_symbol): Do not call
4229 compute_and_set_names.
4230
76e288d1
TT
42312020-04-24 Tom Tromey <tom@tromey.com>
4232
4233 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4234 overload.
4235
2467f4f6
TT
42362020-04-24 Tom Tromey <tom@tromey.com>
4237
4238 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4239 (add_psymbol_to_list): New overload. Make old overload call new
4240 one.
4241 * psympriv.h (add_psymbol_to_list): New overload.
4242
e61108c9
TT
42432020-04-24 Tom Tromey <tom@tromey.com>
4244
4245 * dwarf2/read.c (partial_die_info::read) <case
4246 DW_AT_linkage_name>: Use value_as_string.
4247 (dwarf2_string_attr): Use value_as_string.
4248 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4249 method.
4250 * dwarf2/attribute.c (attribute::value_as_string): New method.
4251
8c87a452
TT
42522020-04-24 Tom Tromey <tom@tromey.com>
4253
4254 * symtab.c (general_symbol_info::natural_name)
4255 (general_symbol_info::demangled_name): Check for language_rust.
4256
787de330
TT
42572020-04-24 Tom Tromey <tom@tromey.com>
4258
4259 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4260 (dwarf2_physname): ... from here.
4261 (partial_die_info::read): Add Rust "{" hack.
4262
ff985671
TT
42632020-04-24 Tom Tromey <tom@tromey.com>
4264
4265 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4266 method.
4267 (symbol_set_demangled_name): Don't declare.
4268 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4269 symbol_set_demangled_name.
4270 (general_symbol_info::set_language)
4271 (general_symbol_info::compute_and_set_names): Update.
4272 * minsyms.c (minimal_symbol_reader::install): Update.
4273 * dwarf2/read.c (new_symbol): Update.
4274
1acda803
TT
42752020-04-24 Tom Tromey <tromey@adacore.com>
4276
4277 PR python/23662:
4278 * python/py-type.c (convert_field): Handle
4279 FIELD_LOC_KIND_DWARF_BLOCK.
4280 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4281 (typy_get_dynamic): Nw function.
4282 (type_object_getset): Add "dynamic".
4283 * NEWS: Add entry.
4284
d656f129
TT
42852020-04-24 Tom Tromey <tromey@adacore.com>
4286
4287 * ada-typeprint.c (print_choices, print_variant_part)
4288 (print_record_field_types_dynamic): New functions.
4289 (print_record_field_types): Use print_record_field_types_dynamic.
4290
7d79de9a
TT
42912020-04-24 Tom Tromey <tromey@adacore.com>
4292
4293 * dwarf2/read.c (handle_data_member_location): New overload.
4294 (dwarf2_add_field): Use it.
4295 (decode_locdesc): Add "computed" parameter. Update comment.
4296 * gdbtypes.c (is_dynamic_type_internal): Also look for
4297 FIELD_LOC_KIND_DWARF_BLOCK.
4298 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4299 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4300 virtual base classes.
4301 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4302 FIELD_LOC_KIND_DWARF_BLOCK.
4303
f8e89861
TT
43042020-04-24 Tom Tromey <tromey@adacore.com>
4305
4306 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4307 * gdbtypes.c (is_dynamic_type_internal): Check
4308 TYPE_HAS_DYNAMIC_LENGTH.
4309 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4310 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4311 New macros.
4312 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4313 constant.
4314
9c6a1327
TT
43152020-04-24 Tom Tromey <tromey@adacore.com>
4316
4317 * dwarf2/read.c (struct variant_field): Rewrite.
4318 (struct variant_part_builder): New.
4319 (struct nextfield): Remove "variant" field. Add "offset".
4320 (struct field_info): Add "current_variant_part" and
4321 "variant_parts".
4322 (alloc_discriminant_info): Remove.
4323 (alloc_rust_variant): New function.
4324 (quirk_rust_enum): Update.
4325 (dwarf2_add_field): Set "offset" member. Don't handle
4326 DW_TAG_variant_part.
4327 (offset_map_type): New typedef.
4328 (convert_variant_range, create_one_variant)
4329 (create_one_variant_part, create_variant_parts)
4330 (add_variant_property): New functions.
4331 (dwarf2_attach_fields_to_type): Call add_variant_property.
4332 (read_structure_type): Don't handle DW_TAG_variant_part.
4333 (handle_variant_part, handle_variant): New functions.
4334 (handle_struct_member_die): Use them.
4335 (process_structure_scope): Don't handle variant parts.
4336 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4337 (struct discriminant_info): Remove.
4338 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4339 (struct main_type) <flag_discriminated_union>: Remove.
4340 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4341 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4342 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4343 Update.
4344 * valops.c (value_union_variant): Remove.
4345 * value.h (value_union_variant): Don't declare.
4346
b249d2c2
TT
43472020-04-24 Tom Tromey <tromey@adacore.com>
4348
4349 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4350 (ada_value_primitive_packed_val): Update.
4351 * ada-valprint.c (ada_value_print_1): Update.
4352 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4353 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4354 just an address. Use evaluate_for_locexpr_baton.
4355 (dwarf2_evaluate_property): Update.
4356 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4357 array_view.
4358 * findvar.c (default_read_var_value): Update.
4359 * gdbtypes.c (compute_variant_fields_inner)
4360 (resolve_dynamic_type_internal): Update.
4361 (resolve_dynamic_type): Change type of valaddr parameter.
4362 * gdbtypes.h (resolve_dynamic_type): Update.
4363 * valarith.c (value_subscripted_rvalue): Update.
4364 * value.c (value_from_contents_and_address): Update.
4365
61122aa9
TT
43662020-04-24 Tom Tromey <tromey@adacore.com>
4367
4368 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4369 "push_initial_value" parameter.
4370 (dwarf2_evaluate_property): Likewise.
4371 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4372
ef83a141
TT
43732020-04-24 Tom Tromey <tromey@adacore.com>
4374
4375 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4376 (variant::matches, compute_variant_fields_recurse)
4377 (compute_variant_fields_inner, compute_variant_fields): New
4378 functions.
4379 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4380 Use resolved_type after type is made.
4381 (operator==): Add new cases.
4382 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4383 (struct discriminant_range, struct variant, struct variant_part):
4384 New.
4385 (union dynamic_prop_data) <variant_parts, original_type>: New
4386 members.
4387 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4388 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4389 constants.
4390 * value.c (unpack_bits_as_long): Now public.
4391 * value.h (unpack_bits_as_long): Declare.
4392
675127ec
TT
43932020-04-24 Tom Tromey <tromey@adacore.com>
4394
4395 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4396 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4397
9852ceef
HD
43982020-04-24 Hannes Domani <ssbssa@yahoo.de>
4399
4400 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4401
7632c6ce
KR
44022020-04-24 Kamil Rytarowski <n54@gmx.com>
4403
4404 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4405 (remove_fork_catchpoint, post_startup_inferior)
4406 (post_attach): Move...
4407 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4408 (remove_fork_catchpoint, post_startup_inferior)
4409 (post_attach): ...here.
4410 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4411 (remove_fork_catchpoint, post_startup_inferior)
4412 (post_attach): Move...
4413 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4414 (remove_fork_catchpoint, post_startup_inferior)
4415 (post_attach): ...here.
4416
7be2bb4f
TT
44172020-04-24 Tom Tromey <tromey@adacore.com>
4418
4419 * nat/windows-nat.h (struct windows_thread_info)
4420 <pc_adjusted>: New member.
4421 * windows-nat.c (windows_fetch_one_register): Check
4422 pc_adjusted.
4423 (windows_nat_target::get_windows_debug_event)
4424 (windows_nat_target::wait): Set pc_adjusted.
4425
f80cb3b4
TV
44262020-04-24 Tom de Vries <tdevries@suse.de>
4427
4428 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4429 Run gdb-add-index inside temp dir.
4430
29514b87
TT
44312020-04-23 Tom Tromey <tromey@adacore.com>
4432
4433 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4434 in loop.
4435
5939967b
LM
44362020-04-23 Luis Machado <luis.machado@linaro.org>
4437
4438 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4439 get_frame_register instead of gdbarch_unwind_pc.
4440
70bc38f5
TV
44412020-04-23 Tom de Vries <tdevries@suse.de>
4442
4443 * symtab.c (lookup_global_symbol): Prefer def over decl.
4444
de82891c
TV
44452020-04-23 Tom de Vries <tdevries@suse.de>
4446
4447 PR symtab/25807
4448 * block.c (best_symbol, better_symbol): Promote to external.
4449 * block.h (best_symbol, better_symbol): Declare.
4450 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4451 decl.
4452
ecc6c606
TT
44532020-04-23 Tom Tromey <tromey@adacore.com>
4454
4455 PR ada/25837:
4456 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4457 "const char *", not a "const std::string &".
4458 <name_and_matcher::operator==>: Update.
4459 * unittests/lookup_name_info-selftests.c: Change type of
4460 "result".
4461
740480b8
TT
44622020-04-23 Tom Tromey <tom@tromey.com>
4463
4464 * inferior.h (iterate_over_inferiors): Don't declare.
4465 * inferior.c (iterate_over_inferiors): Remove.
4466 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4467 Remove.
4468 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4469 use iterate_over_inferiors.
4470 (darwin_resume_inferior_it)
4471 (struct resume_inferior_threads_param)
4472 (darwin_resume_inferior_threads_it): Remove.
4473 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4474
ae3ab1f0
TV
44752020-04-23 Tom de Vries <tdevries@suse.de>
4476
4477 * blockframe.c (find_pc_partial_function): Use
4478 find_pc_sect_compunit_symtab rather than
4479 objfile->sf->qf->find_pc_sect_compunit_symtab.
4480
317d2668
TV
44812020-04-22 Tom de Vries <tdevries@suse.de>
4482
4483 PR symtab/25764
4484 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4485 in psymtabs.
4486
eea9e357
TV
44872020-04-22 Tom de Vries <tdevries@suse.de>
4488
4489 PR symtab/25801
4490 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4491 symtabs.
4492
3d5afab3
TV
44932020-04-22 Tom de Vries <tdevries@suse.de>
4494
4495 PR symtab/25700
4496 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4497 CU if already created.
4498
d43b7a2d
TBA
44992020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4500
4501 * infrun.c (displaced_step_fixup): Switch to the event_thread
4502 before calling displaced_step_restore, not after.
4503
d89edf9b
MM
45042020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4505
4506 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4507 its inferior is not recorded by us.
4508 (record_btrace_target_open): Replace call to
4509 all_non_exited_threads () with call to current_inferior
4510 ()->non_exited_threads ().
4511 (record_btrace_target::stop_recording): Likewise.
4512 (record_btrace_target::close): Likewise.
4513 (record_btrace_target::wait): Likewise.
4514 (record_btrace_target::record_stop_replaying): Likewise.
4515
5897fd49
MM
45162020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4517
4518 * btrace.c (btrace_enable): Throw an error on double enables and
4519 when enabling recording fails.
4520 (btrace_disable): Throw an error if the thread is not recorded.
4521
1a476b6d
MM
45222020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4523
4524 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4525 request if we do not have a thread_info.
4526
4778a5f8
TV
45272020-04-21 Tom de Vries <tdevries@suse.de>
4528
4529 PR gdb/25471
4530 * thread.c
4531 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4532 exception in get_frame_id.
4533
0fa7617d
TT
45342020-04-20 Tom Tromey <tromey@adacore.com>
4535
4536 * python/python.c (struct gdbpy_event): Mark move constructor as
4537 noexcept.
4538 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4539 constructor as noexcept.
4540 * completer.h (struct completion_result): Mark move constructor as
4541 noexcept.
4542 * completer.c (completion_result::completion_result): Use
4543 initialization style. Don't call reset_match_list.
4544
ad23bda0
MS
45452020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4546
4547 * MAINTAINERS (Write After Approval): Add myself.
4548
45e1f031
TT
45492020-04-18 Tom Tromey <tom@tromey.com>
4550
4551 * windows-tdep.c (init_w32_command_list)
4552 (w32_prefix_command_valid): Restore.
4553 (_initialize_windows_tdep): Call init_w32_command_list.
4554
08feed99
TT
45552020-04-18 Tom Tromey <tom@tromey.com>
4556
4557 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4558 * value.c (value_fn_field): Update.
4559 * valops.c (find_function_in_inferior)
4560 (value_allocate_space_in_inferior): Update.
4561 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4562 Update.
4563 * tui/tui-source.c (tui_source_window::set_contents): Update.
4564 * symtab.c (lookup_global_or_static_symbol)
4565 (find_function_start_sal_1, skip_prologue_sal)
4566 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4567 * symmisc.c (dump_msymbols, dump_symtab_1)
4568 (maintenance_print_one_line_table): Update.
4569 * symfile.c (init_entry_point_info, section_is_mapped)
4570 (list_overlays_command, simple_read_overlay_table)
4571 (simple_overlay_update_1): Update.
4572 * stap-probe.c (handle_stap_probe): Update.
4573 * stabsread.c (dbx_init_float_type, define_symbol)
4574 (read_one_struct_field, read_enum_type, read_range_type): Update.
4575 * source.c (info_line_command): Update.
4576 * python/python.c (gdbpy_source_objfile_script)
4577 (gdbpy_execute_objfile_script): Update.
4578 * python/py-type.c (save_objfile_types): Update.
4579 * python/py-objfile.c (py_free_objfile): Update.
4580 * python/py-inferior.c (python_new_objfile): Update.
4581 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4582 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4583 (maintenance_check_psymtabs): Update.
4584 * printcmd.c (info_address_command): Update.
4585 * objfiles.h (struct objfile) <arch>: New method, from
4586 get_objfile_arch.
4587 (get_objfile_arch): Don't declare.
4588 * objfiles.c (get_objfile_arch): Remove.
4589 (filter_overlapping_sections): Update.
4590 * minsyms.c (msymbol_is_function): Update.
4591 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4592 (output_nondebug_symbol): Update.
4593 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4594 (mdebug_expand_psymtab): Update.
4595 * machoread.c (macho_add_oso_symfile): Update.
4596 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4597 Update.
4598 * linux-fork.c (checkpoint_command): Update.
4599 * linespec.c (convert_linespec_to_sals): Update.
4600 * jit.c (finalize_symtab): Update.
4601 * infrun.c (insert_exception_resume_from_probe): Update.
4602 * ia64-tdep.c (ia64_find_unwind_table): Update.
4603 * hppa-tdep.c (internalize_unwinds): Update.
4604 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4605 Update.
4606 * gcore.c (call_target_sbrk): Update.
4607 * elfread.c (record_minimal_symbol, elf_symtab_read)
4608 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4609 (elf_gnu_ifunc_resolve_by_got): Update.
4610 * dwarf2/read.c (create_addrmap_from_index)
4611 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4612 (read_debug_names_from_section)
4613 (process_psymtab_comp_unit_reader, add_partial_symbol)
4614 (add_partial_subprogram, process_full_comp_unit)
4615 (read_file_scope, read_func_scope, read_lexical_block_scope)
4616 (read_call_site_scope, dwarf2_ranges_read)
4617 (dwarf2_record_block_ranges, dwarf2_add_field)
4618 (mark_common_block_symbol_computed, read_tag_pointer_type)
4619 (read_tag_string_type, dwarf2_init_float_type)
4620 (dwarf2_init_complex_target_type, read_base_type)
4621 (partial_die_info::read, partial_die_info::read)
4622 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4623 (dwarf2_fetch_die_loc_sect_off): Update.
4624 * dwarf2/loc.c (dwarf2_find_location_expression)
4625 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4626 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4627 (dwarf2_loc_desc_get_symbol_read_needs)
4628 (locexpr_describe_location_piece, locexpr_describe_location_1)
4629 (loclist_describe_location): Update.
4630 * dwarf2/index-write.c (write_debug_names): Update.
4631 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4632 * dtrace-probe.c (dtrace_process_dof): Update.
4633 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4634 (process_one_symbol): Update.
4635 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4636 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4637 (coff_read_enum_type): Update.
4638 * cli/cli-cmds.c (edit_command, list_command): Update.
4639 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4640 * breakpoint.c (create_overlay_event_breakpoint)
4641 (create_longjmp_master_breakpoint)
4642 (create_std_terminate_master_breakpoint)
4643 (create_exception_master_breakpoint, get_sal_arch): Update.
4644 * block.c (block_gdbarch): Update.
4645 * annotate.c (annotate_source_line): Update.
4646
0743fc83
TT
46472020-04-17 Tom Tromey <tromey@adacore.com>
4648
4649 * auto-load.c (show_auto_load_cmd): Remove.
4650 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4651 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4652 (maintenance_print_arc_command): Remove.
4653 * tui/tui-win.c (tui_command): Remove.
4654 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4655 * tui/tui-layout.c (tui_layout_command): Remove.
4656 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4657 * python/python.c (user_set_python, user_show_python): Remove.
4658 (_initialize_python): Use add_basic_prefix_cmd,
4659 add_show_prefix_cmd.
4660 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4661 (install_gdb_commands): Use add_basic_prefix_cmd,
4662 add_show_prefix_cmd.
4663 (info_guile_command): Remove.
4664 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4665 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4666 add_show_prefix_cmd.
4667 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4668 Remove do_set and do_show parameters.
4669 * cli/cli-style.c (set_style, show_style): Remove.
4670 (_initialize_cli_style): Use add_basic_prefix_cmd,
4671 add_show_prefix_cmd.
4672 (cli_style_option::add_setshow_commands): Remove do_set and
4673 do_show parameters.
4674 (cli_style_option::add_setshow_commands): Use
4675 add_basic_prefix_cmd, add_show_prefix_cmd.
4676 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4677 (set_style_name): Remove.
4678 * cli/cli-dump.c (dump_command, append_command): Remove.
4679 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4680 (tekhex_dump_command, binary_dump_command)
4681 (binary_append_command): Remove.
4682 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4683 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4684 (init_w32_command_list): Remove; move into ...
4685 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4686 * valprint.c (set_print, show_print, set_print_raw)
4687 (show_print_raw): Remove.
4688 (_initialize_valprint): Use add_basic_prefix_cmd,
4689 add_show_prefix_cmd.
4690 * typeprint.c (set_print_type, show_print_type): Remove.
4691 (_initialize_typeprint): Use add_basic_prefix_cmd,
4692 add_show_prefix_cmd.
4693 * record.c (set_record_command, show_record_command): Remove.
4694 (_initialize_record): Use add_basic_prefix_cmd,
4695 add_show_prefix_cmd.
4696 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4697 add_show_prefix_cmd.
4698 (info_command, show_command, set_debug, show_debug): Remove.
4699 * top.h (set_history, show_history): Don't declare.
4700 * top.c (set_history, show_history): Remove.
4701 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4702 (unset_tdesc_cmd): Remove.
4703 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4704 add_show_prefix_cmd.
4705 * symtab.c (info_module_command): Remove.
4706 (_initialize_symtab): Use add_basic_prefix_cmd.
4707 * symfile.c (overlay_command): Remove.
4708 (_initialize_symfile): Use add_basic_prefix_cmd.
4709 * sparc64-tdep.c (info_adi_command): Remove.
4710 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4711 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4712 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4713 add_show_prefix_cmd.
4714 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4715 (_initialize_serial): Use add_basic_prefix_cmd,
4716 add_show_prefix_cmd.
4717 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4718 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4719 add_show_prefix_cmd.
4720 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4721 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4722 add_show_prefix_cmd.
4723 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4724 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4725 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4726 add_show_prefix_cmd.
4727 * remote.c (remote_command, set_remote_cmd): Remove.
4728 (_initialize_remote): Use add_basic_prefix_cmd.
4729 * record-full.c (set_record_full_command)
4730 (show_record_full_command): Remove.
4731 (_initialize_record_full): Use add_basic_prefix_cmd,
4732 add_show_prefix_cmd.
4733 * record-btrace.c (cmd_set_record_btrace)
4734 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4735 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4736 (cmd_show_record_btrace_pt): Remove.
4737 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4738 add_show_prefix_cmd.
4739 * ravenscar-thread.c (set_ravenscar_command)
4740 (show_ravenscar_command): Remove.
4741 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4742 add_show_prefix_cmd.
4743 * mips-tdep.c (show_mips_command, set_mips_command)
4744 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4745 add_show_prefix_cmd.
4746 * maint.c (maintenance_command, maintenance_info_command)
4747 (maintenance_check_command, maintenance_print_command)
4748 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4749 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4750 add_show_prefix_cmd.
4751 (show_per_command_cmd): Remove.
4752 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4753 Remove.
4754 (maintenance_show_test_settings_cmd): Remove.
4755 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4756 add_show_prefix_cmd.
4757 * maint-test-options.c (maintenance_test_options_command):
4758 Remove.
4759 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4760 * macrocmd.c (macro_command): Remove
4761 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4762 * language.c (set_check, show_check): Remove.
4763 (_initialize_language): Use add_basic_prefix_cmd,
4764 add_show_prefix_cmd.
4765 * infcmd.c (unset_command): Remove.
4766 (_initialize_infcmd): Use add_basic_prefix_cmd.
4767 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4768 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4769 add_show_prefix_cmd.
4770 * go32-nat.c (go32_info_dos_command): Remove.
4771 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4772 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4773 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4774 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4775 (_initialize_frame): Use add_basic_prefix_cmd,
4776 add_show_prefix_cmd.
4777 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4778 (_initialize_dcache): Use add_basic_prefix_cmd,
4779 add_show_prefix_cmd.
4780 * cp-support.c (maint_cplus_command): Remove.
4781 (_initialize_cp_support): Use add_basic_prefix_cmd.
4782 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4783 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4784 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4785 add_basic_prefix_cmd, add_show_prefix_cmd.
4786 * breakpoint.c (save_command): Remove.
4787 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4788 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4789 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4790 add_show_prefix_cmd.
4791 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4792 (set_ada_command, show_ada_command): Remove.
4793 (_initialize_ada_language): Use add_basic_prefix_cmd,
4794 add_show_prefix_cmd.
4795 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4796
3557f442
KR
47972020-04-16 Kamil Rytarowski <n54@gmx.com>
4798
4799 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4800 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4801
16197208
SM
48022020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4803
4804 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4805 warning messages.
4806
00ac85d3
SM
48072020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4808
4809 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4810 import table is not at beginning of .idata section.
4811
381ce63f
PA
48122020-04-16 Pedro Alves <palves@redhat.com>
4813
4814 * inferior.c (delete_inferior): Use delete operator directly
4815 instead of delete_program_space.
4816 * progspace.c (add_program_space): New, factored out from
4817 program_space::program_space.
4818 (remove_program_space): New, factored out from
4819 delete_program_space.
4820 (program_space::program_space): Remove intro comment. Rewrite.
4821 (program_space::~program_space): Remove intro comment. Call
4822 remove_program_space.
4823 (delete_program_space): Delete.
4824 * progspace.h (program_space::program_space): Make explicit. Move
4825 intro comment here, adjusted.
4826 (program_space::~program_space): Move intro comment here,
4827 adjusted.
4828 (delete_program_space): Remove.
4829
a010605f
TT
48302020-04-16 Tom Tromey <tromey@adacore.com>
4831
4832 * windows-nat.c (windows_nat::handle_access_violation): New
4833 function.
4834 * nat/windows-nat.h (handle_access_violation): Declare.
4835 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4836 windows-nat.c. Call handle_access_violation.
4837
efba5c23
TV
48382020-04-16 Tom de Vries <tdevries@suse.de>
4839
4840 PR symtab/25791
4841 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4842 CUs without psymtab.
4843
97ed802d
KB
48442020-04-16 Kevin Buettner <kevinb@redhat.com>
4845
4846 * python/python.c (do_start_initialization): Don't call
4847 PyEval_InitThreads for Python 3.9 and beyond.
4848
c7d64809
KR
48492020-04-15 Kamil Rytarowski <n54@gmx.com>
4850
4851 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4852 thread functions.
4853 (obsd_nat_target::wait): Likewise.
4854
ce127a96
TT
48552020-04-15 Tom Tromey <tromey@adacore.com>
4856
4857 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4858 (DEBUG_EXCEPT): Use debug_printf.
4859
99f1bc6a
AB
48602020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4861
4862 * completer.c (class completion_tracker::completion_hash_entry)
4863 <hash_name>: New member function.
4864 (completion_tracker::discard_completions): New callback to hash a
4865 completion_hash_entry, pass this to htab_create_alloc.
4866
a0e9b532
JT
48672016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4868
4869 * windows-nat.c (windows_make_so): Warn rather than stopping with
4870 an error if realpath() fails.
4871
06ca5dd4
KR
48722020-04-14 Kamil Rytarowski <n54@gmx.com>
4873
4874 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4875 (nbsd_nat_target::info_proc): Add do_status.
4876
194d088f
TV
48772020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4878 Tom de Vries <tdevries@suse.de>
4879
4880 PR symtab/25718
4881 * psympriv.h (struct partial_symtab::read_symtab)
4882 (struct partial_symtab::expand_psymtab)
4883 (struct partial_symtab::read_dependencies): Update comments.
4884 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4885 read_symtab for includer.
4886 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4887 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4888 (struct dwarf2_include_psymtab::m_readin): Remove.
4889 (struct dwarf2_include_psymtab::includer): New member function.
4890 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4891
c1a66c06
TV
48922020-04-14 Tom de Vries <tdevries@suse.de>
4893
4894 PR symtab/25720
4895 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4896 with NULL symbol_matcher and lookup_name.
4897 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4898 and lookup_name.
4899 * dwarf2/read.c (dw2_expand_symtabs_matching)
4900 (dw2_debug_names_expand_symtabs_matching): Same.
4901 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4902 Make lookup_name a pointer. Update comment.
4903 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4904 lookup_name being a pointer.
4905 * symfile.c (expand_symtabs_matching): Same.
4906 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4907 * linespec.c (iterate_over_all_matching_symtabs): Same.
4908
400b5eca
TT
49092020-04-13 Tom Tromey <tom@tromey.com>
4910
4911 * run-on-main-thread.c: Update include.
4912 * unittests/main-thread-selftests.c: Update include.
4913 * tui/tui-win.c: Update include.
4914 * tui/tui-io.c: Update include.
4915 * tui/tui-interp.c: Update include.
4916 * tui/tui-hooks.c: Update include.
4917 * top.h: Update include.
4918 * top.c: Update include.
4919 * ser-base.c: Update include.
4920 * remote.c: Update include.
4921 * remote-notif.c: Update include.
4922 * remote-fileio.c: Update include.
4923 * record-full.c: Update include.
4924 * record-btrace.c: Update include.
4925 * python/python.c: Update include.
4926 * posix-hdep.c: Update include.
4927 * mingw-hdep.c: Update include.
4928 * mi/mi-main.c: Update include.
4929 * mi/mi-interp.c: Update include.
4930 * main.c: Update include.
4931 * linux-nat.c: Update include.
4932 * interps.c: Update include.
4933 * infrun.c: Update include.
4934 * inf-loop.c: Update include.
4935 * event-top.c: Update include.
4936 * event-loop.c: Move to ../gdbsupport/.
4937 * event-loop.h: Move to ../gdbsupport/.
4938 * async-event.h: Update include.
4939 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4940
93b54c8e
TT
49412020-04-13 Tom Tromey <tom@tromey.com>
4942
4943 * tui/tui-win.c: Include async-event.h.
4944 * remote.c: Include async-event.h.
4945 * remote-notif.c: Include async-event.h.
4946 * record-full.c: Include async-event.h.
4947 * record-btrace.c: Include async-event.h.
4948 * infrun.c: Include async-event.h.
4949 * event-top.c: Include async-event.h.
4950 * event-loop.h: Move some declarations to async-event.h.
4951 * event-loop.c: Don't include ser-event.h or top.h. Move some
4952 code to async-event.c.
4953 * async-event.h: New file.
4954 * async-event.c: New file.
4955 * Makefile.in (COMMON_SFILES): Add async-event.c.
4956 (HFILES_NO_SRCDIR): Add async-event.h.
4957
c1cd3163
TT
49582020-04-13 Tom Tromey <tom@tromey.com>
4959
4960 * utils.c (flush_streams): New function.
4961 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4962
29f2bf4f
TT
49632020-04-13 Tom Tromey <tom@tromey.com>
4964
4965 * event-loop.c (handle_file_event): Use warning, not
4966 printf_unfiltered.
4967
98029d02
TT
49682020-04-13 Tom Tromey <tom@tromey.com>
4969
4970 * event-loop.c: Include <chrono>.
4971
06cc9596
TT
49722020-04-13 Tom Tromey <tom@tromey.com>
4973
4974 * gdb_select.h: Move to ../gdbsupport/.
4975 * event-loop.c: Update include path.
4976 * top.c: Update include path.
4977 * ser-base.c: Update include path.
4978 * ui-file.c: Update include path.
4979 * ser-tcp.c: Update include path.
4980 * guile/scm-ports.c: Update include path.
4981 * posix-hdep.c: Update include path.
4982 * ser-unix.c: Update include path.
4983 * gdb_usleep.c: Update include path.
4984 * mingw-hdep.c: Update include path.
4985 * inflow.c: Update include path.
4986 * infrun.c: Update include path.
4987 * event-top.c: Update include path.
4988
8ae8e197
TT
49892020-04-13 Tom Tromey <tom@tromey.com>
4990
4991 * configure: Rebuild.
4992 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
4993
58cf28e8
TT
49942020-04-13 Tom Tromey <tom@tromey.com>
4995
4996 * event-loop.h (start_event_loop): Don't declare.
4997 * event-loop.c (start_event_loop): Move...
4998 * main.c (start_event_loop): ...here. Now static.
4999
b7f999ae
SDJ
50002020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5001
5002 * MAINTAINERS: Update my email address.
5003
1085dfd4
KR
50042020-04-12 Kamil Rytarowski <n54@gmx.com>
5005
5006 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5007 IP_ALL.
5008
49d1d1f5
KR
50092020-04-12 Kamil Rytarowski <n54@gmx.com>
5010
5011 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5012 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5013
b4848d2a
KR
50142020-04-12 Kamil Rytarowski <n54@gmx.com>
5015
5016 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5017 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5018
51c133d5
KR
50192020-04-12 Kamil Rytarowski <n54@gmx.com>
5020
5021 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5022
54b8cbd0
KR
50232020-04-11 Kamil Rytarowski <n54@gmx.com>
5024
5025 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5026 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5027 (nbsd_nat_target::info_proc): New functions.
5028 * nbsd-nat.c (kinfo_get_vmmap): New function.
5029 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5030 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5031 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5032 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5033 functions.
5034 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5035 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5036 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5037 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5038 (KINFO_VME_FLAG_GROWS_DOWN): New.
5039
cf83625d
AS
50402020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5041
5042 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5043 bit shift.
5044
0c4311ab
TT
50452020-04-10 Tom Tromey <tromey@adacore.com>
5046
5047 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5048
3e65b3e9
TT
50492020-04-10 Tom Tromey <tromey@adacore.com>
5050
5051 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5052 separate debug files.
5053
13302e95
HD
50542020-04-10 Hannes Domani <ssbssa@yahoo.de>
5055
5056 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5057 Move to...
5058 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5059 ... here.
5060 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5061 Check for STATUS_WX86_BREAKPOINT.
5062 (windows_nat_target::wait): Same.
5063
bdfc1e8a
TV
50642020-04-10 Tom de Vries <tdevries@suse.de>
5065
5066 PR cli/25808
5067 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5068
f4460aec
SM
50692020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5070
5071 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5072 (Write After Approval): Remove Tom de Vries.
5073
a25198bb
BE
50742020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5075
5076 revert partially:
5077 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5078
aac66a4c
SM
5079 * buildsym.c (record_line): Fix undefined behavior and preserve
5080 lines at eof.
a25198bb 5081
206c98a6
KR
50822020-04-09 Kamil Rytarowski <n54@gmx.com>
5083
5084 * auxv.h (svr4_auxv_parse): New.
5085 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5086 and generic_auxv_parse.
5087 (svr4_auxv_parse): Add.
5088 * obsd-tdep.c: Include "auxv.h".
5089 (obsd_auxv_parse): Remove.
5090 (obsd_init_abi): Remove comment.
5091 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5092 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5093 * nbsd-tdep.c: Include "auxv.h".
5094 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5095
71fbdbaf
TT
50962020-04-08 Tom Tromey <tromey@adacore.com>
5097
5098 * nat/windows-nat.h (last_wait_event): Don't declare.
5099 (wait_for_debug_event): Update comment.
5100 * nat/windows-nat.c (last_wait_event): Now static.
5101
2c1d95e8
TT
51022020-04-08 Tom Tromey <tromey@adacore.com>
5103
5104 * windows-nat.c (wait_for_debug_event): Move to
5105 nat/windows-nat.c.
5106 * nat/windows-nat.h (wait_for_debug_event): Declare.
5107 * nat/windows-nat.c (wait_for_debug_event): Move from
5108 windows-nat.c. No longer static.
5109
d2977bc4
TT
51102020-04-08 Tom Tromey <tromey@adacore.com>
5111
5112 * windows-nat.c (get_windows_debug_event): Use
5113 fetch_pending_stop.
5114 * nat/windows-nat.h (fetch_pending_stop): Declare.
5115 * nat/windows-nat.c (fetch_pending_stop): New function.
5116
e758e19c
TT
51172020-04-08 Tom Tromey <tromey@adacore.com>
5118
5119 * windows-nat.c (windows_continue): Use matching_pending_stop and
5120 continue_last_debug_event.
5121 * nat/windows-nat.h (matching_pending_stop)
5122 (continue_last_debug_event): Declare.
5123 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5124 (matching_pending_stop, continue_last_debug_event): New
5125 functions.
5126
8d30e395
TT
51272020-04-08 Tom Tromey <tromey@adacore.com>
5128
5129 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5130 (handle_exception_result): Move to nat/windows-nat.h.
5131 (DEBUG_EXCEPTION_SIMPLE): Remove.
5132 (windows_nat::handle_ms_vc_exception): New function.
5133 (handle_exception): Move to nat/windows-nat.c.
5134 (get_windows_debug_event): Update.
5135 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5136 nat/windows-nat.c.
5137 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5138 (handle_exception_result): Move from windows-nat.c.
5139 (handle_exception): Declare.
5140 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5141 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5142 windows-nat.c.
5143
29de418d
TT
51442020-04-08 Tom Tromey <tromey@adacore.com>
5145
5146 * windows-nat.c (exception_count, event_count): Remove.
5147 (handle_exception, get_windows_debug_event)
5148 (do_initial_windows_stuff): Update.
5149
a816ba18
TT
51502020-04-08 Tom Tromey <tromey@adacore.com>
5151
5152 * windows-nat.c (windows_nat::handle_load_dll)
5153 (windows_nat::handle_unload_dll): Rename. No longer static.
5154 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5155 Declare.
5156
a00caa12
TT
51572020-04-08 Tom Tromey <tromey@adacore.com>
5158
5159 * complaints.h (stop_whining): Declare at top-level.
5160 (complaint): Don't declare stop_whining.
5161
d41b524f
TT
51622020-04-08 Tom Tromey <tromey@adacore.com>
5163
5164 * windows-nat.c (windows_nat::handle_output_debug_string):
5165 Rename. No longer static.
5166 * nat/windows-nat.h (handle_output_debug_string): Declare.
5167
3c76026d
TT
51682020-04-08 Tom Tromey <tromey@adacore.com>
5169
5170 * windows-nat.c (current_process_handle, current_process_id)
5171 (main_thread_id, last_sig, current_event, last_wait_event)
5172 (current_windows_thread, desired_stop_thread_id, pending_stops)
5173 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5174 (display_selectors, fake_create_process)
5175 (get_windows_debug_event): Update.
5176 * nat/windows-nat.h (current_process_handle, current_process_id)
5177 (main_thread_id, last_sig, current_event, last_wait_event)
5178 (current_windows_thread, desired_stop_thread_id, pending_stops)
5179 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5180 * nat/windows-nat.c (current_process_handle, current_process_id)
5181 (main_thread_id, last_sig, current_event, last_wait_event)
5182 (current_windows_thread, desired_stop_thread_id, pending_stops)
5183 (siginfo_er): New globals. Move from windows-nat.c.
5184
9d8679cc
TT
51852020-04-08 Tom Tromey <tromey@adacore.com>
5186
5187 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5188 (handle_load_dll): Update.
5189 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5190
28688adf
TT
51912020-04-08 Tom Tromey <tromey@adacore.com>
5192
5193 * windows-nat.c (enum thread_disposition_type): Move to
5194 nat/windows-nat.h.
5195 (windows_nat::thread_rec): Rename from thread_rec. No longer
5196 static.
5197 (windows_add_thread, windows_nat_target::fetch_registers)
5198 (windows_nat_target::store_registers, handle_exception)
5199 (windows_nat_target::resume, get_windows_debug_event)
5200 (windows_nat_target::get_tib_address)
5201 (windows_nat_target::thread_name)
5202 (windows_nat_target::thread_alive): Update.
5203 * nat/windows-nat.h (enum thread_disposition_type): Move from
5204 windows-nat.c.
5205 (thread_rec): Declare.
5206
4834dad0
TT
52072020-04-08 Tom Tromey <tromey@adacore.com>
5208
5209 * windows-nat.c: Add "using namespace".
5210 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5211 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5212
65bafd5b
TT
52132020-04-08 Tom Tromey <tromey@adacore.com>
5214
5215 * nat/windows-nat.h (struct windows_thread_info): Declare
5216 destructor.
5217 * nat/windows-nat.c (~windows_thread_info): New.
5218
0a4afda3
TT
52192020-04-08 Tom Tromey <tromey@adacore.com>
5220
5221 PR gdb/22992
5222 * windows-nat.c (current_event): Update comment.
5223 (last_wait_event, desired_stop_thread_id): New globals.
5224 (struct pending_stop): New.
5225 (pending_stops): New global.
5226 (windows_nat_target) <stopped_by_sw_breakpoint>
5227 <supports_stopped_by_sw_breakpoint>: New methods.
5228 (windows_fetch_one_register): Add assertions. Adjust PC.
5229 (windows_continue): Handle pending stops. Suspend other threads
5230 when stepping. Use last_wait_event
5231 (wait_for_debug_event): New function.
5232 (get_windows_debug_event): Use wait_for_debug_event. Handle
5233 pending stops. Queue spurious stops.
5234 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5235 (windows_nat_target::kill): Use wait_for_debug_event.
5236 * nat/windows-nat.h (struct windows_thread_info)
5237 <stopped_at_software_breakpoint>: New field.
5238 * nat/windows-nat.c (windows_thread_info::resume): Clear
5239 stopped_at_software_breakpoint.
5240
8e61ebec
TT
52412020-04-08 Tom Tromey <tromey@adacore.com>
5242
5243 * windows-nat.c (enum thread_disposition_type): New.
5244 (thread_rec): Replace "get_context" parameter with "disposition";
5245 change type.
5246 (windows_add_thread, windows_nat_target::fetch_registers)
5247 (windows_nat_target::store_registers, handle_exception)
5248 (windows_nat_target::resume, get_windows_debug_event)
5249 (windows_nat_target::get_tib_address)
5250 (windows_nat_target::thread_name)
5251 (windows_nat_target::thread_alive): Update.
5252
98a03287
TT
52532020-04-08 Tom Tromey <tromey@adacore.com>
5254
5255 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5256 (windows_continue): Use windows_continue::resume.
5257 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5258 resume>: Declare new methods.
5259 * nat/windows-nat.c: New file.
5260 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5261
7c7411bc
TT
52622020-04-08 Tom Tromey <tromey@adacore.com>
5263
5264 * windows-nat.c (windows_add_thread, windows_delete_thread)
5265 (windows_nat_target::fetch_registers)
5266 (windows_nat_target::store_registers, fake_create_process)
5267 (windows_nat_target::resume, windows_nat_target::resume)
5268 (get_windows_debug_event, windows_nat_target::wait)
5269 (windows_nat_target::pid_to_str)
5270 (windows_nat_target::get_tib_address)
5271 (windows_nat_target::get_ada_task_ptid)
5272 (windows_nat_target::thread_name)
5273 (windows_nat_target::thread_alive): Use lwp, not tid.
5274
2950fdf7
TT
52752020-04-08 Tom Tromey <tromey@adacore.com>
5276
5277 * windows-nat.c (handle_exception)
5278 (windows_nat_target::thread_name): Update.
5279 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5280 <name>: Now unique_xmalloc_ptr.
5281
62fe396b
TT
52822020-04-08 Tom Tromey <tromey@adacore.com>
5283
5284 * windows-nat.c (thread_rec)
5285 (windows_nat_target::fetch_registers): Update.
5286 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5287 Update comment.
5288 <debug_registers_changed, reload_context>: Now bool.
5289
e9534bd2
TT
52902020-04-08 Tom Tromey <tromey@adacore.com>
5291
5292 * windows-nat.c (windows_add_thread): Use new.
5293 (windows_init_thread_list, windows_delete_thread): Use delete.
5294 (get_windows_debug_event): Update.
5295 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5296 destructor, and initializers.
5297
ae1f8880
TT
52982020-04-08 Tom Tromey <tromey@adacore.com>
5299
5300 * windows-nat.c (struct windows_thread_info): Remove.
5301 * nat/windows-nat.h: New file.
5302
55a1e039
TT
53032020-04-08 Tom Tromey <tromey@adacore.com>
5304
5305 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5306 (thread_rec, windows_add_thread, windows_delete_thread)
5307 (windows_continue): Update.
5308
93366324
TT
53092020-04-08 Tom Tromey <tromey@adacore.com>
5310
5311 * windows-nat.c (struct windows_thread_info): Remove typedef.
5312 (thread_head): Remove.
5313 (thread_list): New global.
5314 (thread_rec, windows_add_thread, windows_init_thread_list)
5315 (windows_delete_thread, windows_continue): Update.
5316
0f2265e2
SM
53172020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5318
5319 * windows-tdep.h (windows_init_abi): Add comment.
5320 (cygwin_init_abi): New declaration.
5321 * windows-tdep.c: Split signal enumeration in two, one for
5322 Windows and one for Cygwin.
5323 (windows_gdb_signal_to_target): Only deal with signal of the
5324 Windows OS ABI.
5325 (cygwin_gdb_signal_to_target): New function.
5326 (windows_init_abi): Rename to windows_init_abi_common, don't set
5327 gdb_signal_to_target gdbarch method. Add new new function with
5328 this name.
5329 (cygwin_init_abi): New function.
5330 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5331 comment. Don't call windows_init_abi.
5332 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5333 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5334 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5335 i386_windows_init_abi_common, don't call windows_init_abi. Add
5336 a new function of this name.
5337 (i386_cygwin_init_abi): New function.
5338 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5339 OS ABI Cygwin.
5340
3810f182
SM
53412020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5342
5343 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5344 parameter.c.
5345 (dwarf2_read_gdb_index): Update.
5346
063f8e80
KR
53472020-04-07 Kamil Rytarowski <n54@gmx.com>
5348
5349 * nbsd-tdep.c: Include "objfiles.h".
5350 (nbsd_skip_solib_resolver): New.
5351 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5352
85a9510c 53532020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5354
5355 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5356 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5357 with DW_LLE_base_addressx are being emitted in DWARFv5.
5358 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5359 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5360 unsigned integer.
5361
9fc3eaae 53622020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5363
5364 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5365 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5366 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5367 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5368 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5369 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5370 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5371
5372
41144253 53732020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5374
5375 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5376 (read_loclist_index): New function definition.
5377 (lookup_loclist_base): New function definition.
5378 (read_loclist_header): New function definition.
5379 (dwarf2_cu): Add loclist_base and loclist_header field.
5380 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5381 (read_full_die_1): Read the value of DW_AT_loclists_base.
5382 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5383 (read_attribute_value): Handle DW_FORM_loclistx.
5384 (skip_one_die): Handle DW_FORM_loclistx.
5385 (loclist_header): New structure declaration.
5386 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5387
9f4e76a4
SM
53882020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5389
5390 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5391 constructor. Remove `addr` parameter from other constructor and
5392 add `per_cu` parameter.
5393 * dwarf2/read.c (create_partial_symtab): Update.
5394
25c11aca
TV
53952020-04-07 Tom de Vries <tdevries@suse.de>
5396
5397 PR symtab/25796
5398 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5399 (partial_die_info::fixup): Inherit has_const_value.
5400
5707e24b
TV
54012020-04-07 Tom de Vries <tdevries@suse.de>
5402
5403 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5404 symbols without address.
5405
05f00e22
KR
54062020-04-06 Kamil Rytarowski <n54@gmx.com>
5407
5408 * nbsd-nat.h (struct thread_info): Add forward declaration.
5409 (nbsd_nat_target::thread_alive): Add.
5410 (nbsd_nat_target::thread_name): Likewise.
5411 (nbsd_nat_target::update_thread_list): Likewise.
5412 (update_thread_list::post_attach): Likewise.
5413 (post_attach::pid_to_str): Likewise.
5414 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5415 (nbsd_thread_lister): Add.
5416 (nbsd_nat_target::thread_alive): Likewise.
5417 (nbsd_nat_target::thread_name): Likewise.
5418 (nbsd_add_threads): Likewise.
5419 (update_thread_list::post_attach): Likewise.
5420 (nbsd_nat_target::update_thread_list): Likewise.
5421 (post_attach::pid_to_str): Likewise.
5422
6ee448cc
TT
54232020-04-06 Tom Tromey <tromey@adacore.com>
5424
5425 * ada-valprint.c (print_variant_part): Extract the variant field.
5426 (print_field_values): Use the field as the outer value when
5427 recursing.
5428
dea34e8c
TT
54292020-04-06 Tom Tromey <tromey@adacore.com>
5430
5431 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5432 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5433 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5434 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5435 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5436
93689ce9
TT
54372020-04-06 Tom Tromey <tromey@adacore.com>
5438
5439 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5440 TYPE_CODE_ERROR.
5441
79743962
KR
54422020-04-06 Kamil Rytarowski <n54@gmx.com>
5443
5444 * nbsd-tdep.c: Include "gdbarch.h".
5445 Define enum with NetBSD signal numbers.
5446 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5447 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5448 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5449 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5450 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5451 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5452 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5453 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5454 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5455 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5456 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5457 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5458
9e7c9a03
HD
54592020-04-03 Hannes Domani <ssbssa@yahoo.de>
5460
5461 PR gdb/25325
5462 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5463
d9e49b61
TT
54642020-04-03 Tom Tromey <tromey@adacore.com>
5465
5466 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5467 Read constant block.
5468
e0fc5c3f
SM
54692020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5470
5471 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5472 (gdb_bfd_get_full_section_contents): New declaration.
5473 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5474 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5475 gdb_bfd_get_full_section_contents.
5476
e2ff18a0
SM
54772020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5478
5479 * exec.c (build_section_table): Replace internal_error with
5480 gdb_assert.
5481 (section_table_xfer_memory_partial): Likewise.
5482 * mdebugread.c (parse_partial_symbols): Likewise.
5483 * psymtab.c (lookup_partial_symbol): Likewise.
5484 * utils.c (wrap_here): Likewise.
5485
0830d301
TT
54862020-04-02 Tom Tromey <tromey@adacore.com>
5487
5488 * f-lang.c (build_fortran_types): Use arch_type to initialize
5489 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5490
e7da7f8f
TT
54912020-04-02 Tom Tromey <tromey@adacore.com>
5492
5493 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5494 of attributes.
5495
c90d28ac
AB
54962020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5497 Bernd Edlinger <bernd.edlinger@hotmail.de>
5498 Tom Tromey <tromey@adacore.com>
5499
5500 * buildsym.c (buildsym_compunit::record_line): Remove
5501 deduplication code.
5502
1aa98955
TV
55032020-04-02 Tom de Vries <tdevries@suse.de>
5504
5505 PR ada/24671
5506 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5507
d3214198
TV
55082020-04-02 Tom de Vries <tdevries@suse.de>
5509
5510 * dwarf2/read.c (dwarf2_gdb_index_functions,
5511 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5512 NULL.
5513 * psymtab.c (psym_lookup_global_symbol_language): New function.
5514 (psym_functions): Init psym_lookup_global_symbol_language with
5515 psym_lookup_global_symbol_language.
5516 * symfile-debug.c (debug_sym_quick_functions): Init
5517 lookup_global_symbol_language with NULL.
5518 * symfile.c (set_initial_language): Remove fixme comment.
5519 * symfile.h (struct quick_symbol_functions): Add
5520 lookup_global_symbol_language.
5521 * symtab.c (find_quick_global_symbol_language): New function.
5522 (find_main_name): Use find_quick_global_symbol_language.
5523
2836752f
SM
55242020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5525
5526 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5527
64dc2d4b
BE
55282020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5529
5530 * buildsym.c (record_line): Fix undefined behavior and preserve
5531 lines at eof.
5532
bbe3dc41
BE
55332020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5534
5535 * buildsym.c (record_line): Fix the resizing condition.
5536
6b4a335b
TT
55372020-04-01 Tom Tromey <tom@tromey.com>
5538
5539 * value.h (value_literal_complex): Add comment.
5540 * valops.c (value_literal_complex): Refer to value.h.
5541
3638a098
TT
55422020-04-01 Tom Tromey <tom@tromey.com>
5543
5544 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5545 (scalar_type): New rule, from typebase.
5546 (typebase): Use scalar_type. Recognize complex types.
5547 (field_name): Handle FLOAT_KEYWORD.
5548 (ident_tokens): Add _Complex and __complex__.
5549
c34e8714
TT
55502020-04-01 Tom Tromey <tom@tromey.com>
5551
5552 PR exp/25299:
5553 * valarith.c (promotion_type, complex_binop): New functions.
5554 (scalar_binop): Handle complex numbers. Use promotion_type.
5555 (value_pos, value_neg, value_complement): Handle complex numbers.
5556
fa649bb7
TT
55572020-04-01 Tom Tromey <tom@tromey.com>
5558
5559 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5560 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5561 (parse_number): Handle complex numbers.
5562
981c08ce
TT
55632020-04-01 Tom Tromey <tom@tromey.com>
5564
5565 * c-valprint.c (c_decorations): Change complex suffix to "i".
5566
4c99290d
TT
55672020-04-01 Tom Tromey <tom@tromey.com>
5568
5569 * valprint.c (generic_value_print_complex): Use accessors.
5570 * value.h (value_real_part, value_imaginary_part): Declare.
5571 * valops.c (value_real_part, value_imaginary_part): New
5572 functions.
5573 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5574
5b930b45
TT
55752020-04-01 Tom Tromey <tom@tromey.com>
5576
5577 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5578 (read_range_type): Update.
5579 * mdebugread.c (basic_type): Update.
5580 * go-lang.c (build_go_types): Use init_complex_type.
5581 * gdbtypes.h (struct main_type) <complex_type>: New member.
5582 (init_complex_type): Update.
5583 (arch_complex_type): Don't declare.
5584 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5585 Make name if none given. Use alloc_type_copy. Look for cached
5586 complex type.
5587 (arch_complex_type): Remove.
5588 (gdbtypes_post_init): Use init_complex_type.
5589 * f-lang.c (build_fortran_types): Use init_complex_type.
5590 * dwarf2/read.c (read_base_type): Update.
5591 * d-lang.c (build_d_types): Use init_complex_type.
5592 * ctfread.c (read_base_type): Update.
5593
53cccef1
TBA
55942020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5595
5596 * infrun.c (stop_all_threads): Update assertion, plus when
5597 stopping threads, take into account that we might be trying
5598 to stop an all-stop target.
5599 (stop_waiting): Call 'stop_all_threads' if there exists a
5600 non-stop target.
5601
a0714d30
TBA
56022020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5603
5604 * target.h (exists_non_stop_target): New function declaration.
5605 * target.c (exists_non_stop_target): New function.
5606
60e22c1e
HD
56072020-04-01 Hannes Domani <ssbssa@yahoo.de>
5608
5609 PR gdb/24789
5610 * eval.c (is_integral_or_integral_reference): New function.
5611 (evaluate_subexp_standard): Allow integer references in
5612 pointer arithmetic.
5613
e139a727
TBA
56142020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5615
5616 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5617 check for no ptid in the stop reply when the target is non-stop.
5618
e0802d59
TT
56192020-04-01 Tom Tromey <tromey@adacore.com>
5620
5621 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5622 "name" parameter to rvalue reference. Initialize m_name_holder.
5623 <lookup_name_info>: New overloads.
5624 <name>: Return gdb::string_view.
5625 <c_str>: New method.
5626 <make_ignore_params>: Update.
5627 <search_name_hash>: Update.
5628 <language_lookup_name>: Return const char *.
5629 <m_name>: Change type.
5630 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5631 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5632 (lookup_name_info::match_any): Update.
5633 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5634 Update.
5635 * minsyms.c (linkage_name_str): Update.
5636 * language.c (default_symbol_name_matcher): Update.
5637 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5638 Update.
5639 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5640 (ada_lookup_name_info::ada_lookup_name_info): Update.
5641 (literal_symbol_name_matcher): Update.
5642
8c072cb6
TT
56432020-04-01 Tom Tromey <tromey@adacore.com>
5644
5645 * psymtab.c (psymtab_search_name): Remove function.
5646 (psym_lookup_symbol): Create search name and lookup name here.
5647 (lookup_partial_symbol): Remove "name" parameter; add
5648 lookup_name.
5649 (psym_expand_symtabs_for_function): Update.
5650
6f29a534
TT
56512020-03-31 Joel Jones <joelkevinjones@gmail.com>
5652
5653 PR tui/25597:
5654 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5655
af62665e
TT
56562020-03-31 Tom Tromey <tromey@adacore.com>
5657
5658 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5659 memcpy.
5660
d1a89da5
NC
56612020-03-30 Nelson Chu <nelson.chu@sifive.com>
5662
5663 * features/riscv/32bit-csr.xml: Regenerated.
5664 * features/riscv/64bit-csr.xml: Regenerated.
5665
d8af9068
TT
56662020-03-30 Tom Tromey <tromey@adacore.com>
5667
5668 * ada-valprint.c (print_variant_part): Update.
5669 * ada-lang.h (ada_which_variant_applies): Update.
5670 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5671 outer_valaddr parameters; replace with "outer" value parameter.
5672 (to_fixed_variant_branch_type): Update.
5673
227c0bf4
PFC
56742020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5675
5676 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5677 <list>. Remove inclusion of observable.h.
5678 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5679 (struct arch_lwp_info): New struct.
5680 (class ppc_linux_dreg_interface): New class.
5681 (struct ppc_linux_process_info): New struct.
5682 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5683 <low_new_clone, low_forget_process, low_prepare_to_resume>
5684 <copy_thread_dreg_state, mark_thread_stale>
5685 <mark_debug_registers_changed, register_hw_breakpoint>
5686 <clear_hw_breakpoint, register_wp, clear_wp>
5687 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5688 <num_memory_accesses, get_trigger_type>
5689 <create_watchpoint_request, hwdebug_point_cmp>
5690 <init_arch_lwp_info, get_arch_lwp_info>
5691 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5692 methods.
5693 <struct ptid_hash>: New inner struct.
5694 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5695 members.
5696 (saved_dabr_value, hwdebug_info, max_slots_number)
5697 (struct hw_break_tuple, struct thread_points, ppc_threads)
5698 (have_ptrace_hwdebug_interface)
5699 (hwdebug_find_thread_points_by_tid)
5700 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5701 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5702 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5703 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5704 use m_dreg_interface.
5705 (hwdebug_point_cmp): Change to...
5706 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5707 reference arguments instead of pointers.
5708 (ppc_linux_nat_target::ranged_break_num_registers): Use
5709 m_dreg_interface.
5710 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5711 m_dreg_interface. Call register_hw_breakpoint.
5712 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5713 m_dreg_interface. Call clear_hw_breakpoint.
5714 (get_trigger_type): Change to...
5715 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5716 comment.
5717 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5718 use m_dreg_interface. Call register_hw_breakpoint.
5719 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5720 use m_dreg_interface. Call clear_hw_breakpoint.
5721 (can_use_watchpoint_cond_accel): Change to...
5722 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5723 method. Update comment, use m_dreg_interface and
5724 m_process_info.
5725 (calculate_dvc): Change to...
5726 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5727 m_dreg_interface.
5728 (num_memory_accesses): Change to...
5729 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5730 (check_condition): Change to...
5731 (ppc_linux_nat_target::check_condition): ...this method.
5732 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5733 comment, use m_dreg_interface.
5734 (create_watchpoint_request): Change to...
5735 (ppc_linux_nat_target::create_watchpoint_request): ...this
5736 method. Use m_dreg_interface.
5737 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5738 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5739 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5740 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5741 (ppc_linux_nat_target::low_forget_process)
5742 (ppc_linux_nat_target::low_new_fork)
5743 (ppc_linux_nat_target::low_new_clone)
5744 (ppc_linux_nat_target::low_delete_thread)
5745 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5746 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5747 only call mark_thread_stale.
5748 (ppc_linux_thread_exit): Remove.
5749 (ppc_linux_nat_target::stopped_data_address): Change to...
5750 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5751 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5752 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5753 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5754 comment. Call low_stopped_data_address.
5755 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5756 m_dreg_interface.
5757 (ppc_linux_nat_target::masked_watch_num_registers): Use
5758 m_dreg_interface.
5759 (ppc_linux_nat_target::copy_thread_dreg_state)
5760 (ppc_linux_nat_target::mark_thread_stale)
5761 (ppc_linux_nat_target::mark_debug_registers_changed)
5762 (ppc_linux_nat_target::register_hw_breakpoint)
5763 (ppc_linux_nat_target::clear_hw_breakpoint)
5764 (ppc_linux_nat_target::register_wp)
5765 (ppc_linux_nat_target::clear_wp)
5766 (ppc_linux_nat_target::init_arch_lwp_info)
5767 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5768 (_initialize_ppc_linux_nat): Remove observer callback.
5769
4db10d8f
PFC
57702020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5771
5772 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5773 (ppc_linux_nat_target::auxv_parse)
5774 (ppc_linux_nat_target::read_description)
5775 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5776 Move up.
5777
1310c1b0
PFC
57782020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5779
5780 * linux-nat.h (low_new_clone): New method.
5781 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5782
69b037c3
SM
57832020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5784
5785 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5786 (dbx_expand_psymtab): ... this.
5787 (start_psymtab): Update.
5788 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5789 (mdebug_expand_psymtab): ... this.
5790 (parse_partial_symbols): Update.
5791 (new_psymtab): Update.
5792 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5793 (xcoff_expand_psymtab): ... this.
5794 (xcoff_start_psymtab): Update.
5795
48993951
SM
57962020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5797
5798 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5799 <expand_dependencies>: ... this.
5800 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5801 (partial_symtab::expand_dependencies): ... this.
5802 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5803 Update.
5804 (dwarf2_psymtab::expand_psymtab): Update.
5805 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5806 * mdebugread.c (psymtab_to_symtab_1): Update.
5807 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5808
3ad83046
SM
58092020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5810
5811 * psympriv.h (discard_psymtab): Remove.
5812 * dbxread.c (dbx_end_psymtab): Update.
5813 * xcoffread.c (xcoff_end_psymtab): Update.
5814
4d1b9ab6
TT
58152020-03-28 Tom Tromey <tom@tromey.com>
5816
5817 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5818 comment.
5819
f1749218
TT
58202020-03-28 Tom Tromey <tom@tromey.com>
5821
5822 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5823
ebea7626
HD
58242020-03-27 Hannes Domani <ssbssa@yahoo.de>
5825
5826 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5827
a879b4d5
JB
58282020-03-26 John Baldwin <jhb@FreeBSD.org>
5829
5830 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5831
0826b30a
TT
58322020-03-26 Tom Tromey <tom@tromey.com>
5833
5834 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5835 (mark_common_block_symbol_computed, read_tag_string_type)
5836 (attr_to_dynamic_prop, read_subrange_type): Update.
5837 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5838 to be methods on struct attribute.
5839 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5840 (read_call_site_scope, partial_die_info::read)
5841 (partial_die_info::read, lookup_die_type, follow_die_ref):
5842 Update.
5843 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5844 from dwarf2_get_ref_die_offset.
5845 (attribute::constant_value): New method, from
5846 dwarf2_get_attr_constant_value.
5847 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5848 Declare method.
5849 <constant_value>: New method.
5850
2b2558bf
TT
58512020-03-26 Tom Tromey <tom@tromey.com>
5852
5853 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5854 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5855 (dwarf_type_encoding_name): Move to stringify.c.
5856 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5857 * dwarf2/stringify.c: New file.
5858 * dwarf2/stringify.h: New file.
5859
eeb64781
TT
58602020-03-26 Tom Tromey <tom@tromey.com>
5861
5862 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5863 Rewrite.
5864
a39fdb41
TT
58652020-03-26 Tom Tromey <tom@tromey.com>
5866
5867 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5868 methods.
5869 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5870 (lookup_ranges_base): Likewise.
5871 (read_cutu_die_from_dwo, read_full_die_1): Update.
5872
436c571c
TT
58732020-03-26 Tom Tromey <tom@tromey.com>
5874
5875 * dwarf2/read.c (read_import_statement, read_file_scope)
5876 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5877 (read_lexical_block_scope, read_call_site_scope)
5878 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5879 (handle_struct_member_die, process_structure_scope)
5880 (update_enumeration_type_from_children)
5881 (process_enumeration_scope, read_array_type, read_common_block)
5882 (read_namespace, read_module, read_subroutine_type): Update.
5883 (sibling_die): Remove.
5884
052c8bb8
TT
58852020-03-26 Tom Tromey <tom@tromey.com>
5886
5887 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5888 (build_type_psymtabs_reader, read_structure_type)
5889 (read_enumeration_type, read_full_die_1): Update.
5890 (dwarf2_attr_no_follow): Move to die.h.
5891 * dwarf2/die.h (struct die_info) <attr>: New method.
5892
2b24b6e4
TT
58932020-03-26 Tom Tromey <tom@tromey.com>
5894
5895 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5896 <base_address>: Now an optional.
5897 (dwarf2_find_base_address, dwarf2_rnglists_process)
5898 (dwarf2_ranges_process, fill_in_loclist_baton)
5899 (dwarf2_symbol_mark_computed): Update.
5900
c2d50fd0
TT
59012020-03-26 Tom Tromey <tom@tromey.com>
5902
5903 * dwarf2/read.c (struct die_info): Move to die.h.
5904 * dwarf2/die.h: New file.
5905
0df7ad3a
TT
59062020-03-26 Tom Tromey <tom@tromey.com>
5907
5908 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5909 * dwarf2/read.c
5910 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5911 Move to line-header.c.
5912 (read_checked_initial_length_and_offset, read_formatted_entries):
5913 Likewise.
5914 (dwarf_decode_line_header): Split into two.
5915 * dwarf2/line-header.c
5916 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5917 Move from read.c.
5918 (read_checked_initial_length_and_offset, read_formatted_entries):
5919 Likewise.
5920 (dwarf_decode_line_header): New function, split from read.c.
5921
86c0bb4c
TT
59222020-03-26 Tom Tromey <tom@tromey.com>
5923
5924 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5925 Declare method.
5926 * dwarf2/read.c (read_attribute_value): Update.
5927 (dwarf2_per_objfile::read_line_string): Rename from
5928 read_indirect_line_string.
5929 (read_formatted_entries): Update.
5930
2ef46c2f
TT
59312020-03-26 Tom Tromey <tom@tromey.com>
5932
5933 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5934 variable.
5935
4f9c1eda
TT
59362020-03-26 Tom Tromey <tom@tromey.com>
5937
5938 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5939 const.
5940 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5941 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5942 parameter const.
5943
5a0e026f
TT
59442020-03-26 Tom Tromey <tom@tromey.com>
5945
5946 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5947 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5948 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5949 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5950
8844c11b
TT
59512020-03-26 Tom Tromey <tom@tromey.com>
5952
5953 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5954 file_names_size, file_full_name, file_file_name>: Use const.
5955 <file_name_at, file_names>: Add const overload.
5956 * dwarf2/line-header.c (line_header::file_file_name)
5957 (line_header::file_full_name): Update.
5958
c90ec28a
TT
59592020-03-26 Tom Tromey <tom@tromey.com>
5960
5961 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5962 (macro_start_file, consume_improper_spaces)
5963 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5964 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5965 (dwarf_decode_macros): Move to macro.c.
5966 * dwarf2/macro.c: New file.
5967 * dwarf2/macro.h: New file.
5968 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5969
4f44ae6c
TT
59702020-03-26 Tom Tromey <tom@tromey.com>
5971
5972 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5973 method.
5974 * dwarf2/section.c: New method. From
5975 read_indirect_string_at_offset_from.
5976 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5977 (read_indirect_string_at_offset_from): Move to section.c.
5978 (read_indirect_string_at_offset): Rewrite.
5979 (read_indirect_line_string_at_offset): Remove.
5980 (read_indirect_string, read_indirect_line_string)
5981 (dwarf_decode_macro_bytes): Update.
5982
a0194fa8
TT
59832020-03-26 Tom Tromey <tom@tromey.com>
5984
5985 * dwarf2/section.h (struct dwarf2_section_info)
5986 <overload_complaint>: Declare.
5987 (dwarf2_section_buffer_overflow_complaint): Don't declare.
5988 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
5989 Rename from dwarf2_section_buffer_overflow_complaint.
5990 * dwarf2/read.c (skip_one_die, partial_die_info::read)
5991 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
5992
3d27bbdb
TT
59932020-03-26 Tom Tromey <tom@tromey.com>
5994
5995 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
5996 Declare.
5997 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
5998 Move from read.c.
5999 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6000 to section.c.
6001
9eac9650
TT
60022020-03-26 Tom Tromey <tom@tromey.com>
6003
6004 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6005
bf80d710
TT
60062020-03-26 Tom Tromey <tom@tromey.com>
6007
6008 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6009 "builder".
6010 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6011 parameter.
6012 (dwarf_decode_macros): Update.
6013
0314b390
TT
60142020-03-26 Tom Tromey <tom@tromey.com>
6015
6016 * dwarf2/read.c (read_attribute_value): Update.
6017 (read_indirect_string_from_dwz): Move to dwz.c; change into
6018 method.
6019 (dwarf_decode_macro_bytes): Update.
6020 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6021 * dwarf2/dwz.c: New file.
6022 * Makefile.in (COMMON_SFILES): Add dwz.c.
6023
9fda78b6
TT
60242020-03-26 Tom Tromey <tom@tromey.com>
6025
6026 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6027 * dwarf2/read.c: Add include.
6028 * dwarf2/index-write.c: Add include.
6029 * dwarf2/index-cache.c: Add include.
6030 * dwarf2/dwz.h: New file.
6031
33aa3c10
TT
60322020-03-25 Tom Tromey <tom@tromey.com>
6033
6034 * compile/compile-object-load.c (get_out_value_type): Mention
6035 correct symbol name in error message.
6036
d503b685
HD
60372020-03-25 Hannes Domani <ssbssa@yahoo.de>
6038
6039 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6040
7b1eff95
TV
60412020-03-25 Tom de Vries <tdevries@suse.de>
6042
6043 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6044 * symmisc.c (dump_symtab_1): Print user and includes fields.
6045 (maintenance_info_symtabs): Same.
6046
dd895392
AB
60472020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6048
6049 PR gdb/25534
6050 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6051 (riscv_regcache_cooked_write): New function.
6052 (riscv_push_dummy_call): Use new function.
6053 (riscv_return_value): Likewise.
6054
5ab2fbf1
SM
60552020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6056
6057 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6058 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6059 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6060 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6061 * infrun.c (follow_fork): Likewise.
6062 (follow_fork_inferior): Likewise.
6063 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6064 * linux-nat.h (class linux_nat_target): Likewise.
6065 * remote.c (class remote_target) <follow_fork>: Likewise.
6066 (remote_target::follow_fork): Likewise.
6067 * target-delegates.c: Re-generate.
6068 * target.c (default_follow_fork): Likewise.
6069 (target_follow_fork): Likewise.
6070 * target.h (struct target_ops) <follow_fork>: Likewise.
6071 (target_follow_fork): Likewise.
6072
a64fafb5
TV
60732020-03-24 Tom de Vries <tdevries@suse.de>
6074
6075 * psymtab.c (maintenance_info_psymtabs): Print user field.
6076
fe26d3a3
TT
60772020-03-20 Tom Tromey <tromey@adacore.com>
6078
6079 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6080 const.
6081 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6082 const.
6083
c884cc46
SM
60842020-03-20 Simon Marchi <simon.marchi@efficios.com>
6085
6086 * ptrace.m4: Don't check for ptrace declaration.
6087 * config.in: Re-generate.
6088 * configure: Re-generate.
6089 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6090 not defined.
6091
1ff700c2
KR
60922020-03-20 Kamil Rytarowski <n54@gmx.com>
6093
6094 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6095 `PTRACE_TYPE_RET'.
6096 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6097 * sparc-nat.c (gdb_ptrace): Likewise.
6098 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6099
f7d4f0b1
TT
61002020-03-20 Tom Tromey <tromey@adacore.com>
6101
6102 * c-exp.y (lex_one_token): Fix assert.
6103
f67210ff
TT
61042020-03-20 Tom Tromey <tromey@adacore.com>
6105
6106 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6107 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6108 strncpy call.
6109
1773be9e
TT
61102020-03-20 Tom Tromey <tromey@adacore.com>
6111
6112 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6113
70304be9
TT
61142020-03-20 Tom Tromey <tromey@adacore.com>
6115
6116 * ada-valprint.c (print_variant_part): Remove parameters; switch
6117 to value-based API.
6118 (print_field_values): Likewise.
6119 (ada_val_print_struct_union): Likewise.
6120 (ada_value_print_1): Update.
6121
9faa006d
KR
61222020-03-20 Kamil Rytarowski <n54@gmx.com>
6123
6124 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6125 nbsd_nat_target instead of inf_ptrace_target.
6126 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6127 nbsd_nat_target.
6128
4a90f062
KR
61292020-03-20 Kamil Rytarowski <n54@gmx.com>
6130
6131 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6132 it to the ptrace call.
6133 * (store_registers): Likewise.
6134
61352020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6136
6137 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6138 it to the ptrace call.
6139 * (store_registers): Likewise.
6140
2d07da27
LM
61412020-03-19 Luis Machado <luis.machado@linaro.org>
6142
6143 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6144 valid, fetch vg value from ptrace.
6145
f09db380
KR
61462020-03-19 Kamil Rytarowski <n54@gmx.com>
6147 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6148 * inf-ptrace.c: Likewise.
6149 * (gdb_ptrace): Add.
6150 * (inf_ptrace_target::resume): Update.
6151 * (inf_ptrace_target::xfer_partial): Likewise.
6152 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6153 * (inf_ptrace_peek_poke): Update.
6154
fcc7376e
KR
61552020-03-19 Kamil Rytarowski <n54@gmx.com>
6156
6157 * x86-bsd-nat.c (gdb_ptrace): New.
6158 * (x86bsd_dr_set): Add new argument `ptid'.
6159 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6160 x86bsd_dr_set_addr): Update.
6161
cada5fc9
AB
61622020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6163
6164 * remote.c (remote_target::process_stop_reply): Handle events for
6165 all threads differently.
6166
19a2740f
AB
61672020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6168
6169 * completer.c (completion_tracker::remove_completion): Define new
6170 function.
6171 * completer.h (completion_tracker::remove_completion): Declare new
6172 function.
6173 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6174 when adding a C++ function symbol.
6175
724fd9ba
AB
61762020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6177
6178 * completer.c (completion_tracker::completion_hash_entry): Define
6179 new class.
6180 (advance_to_filename_complete_word_point): Call
6181 recompute_lowest_common_denominator.
6182 (completion_tracker::completion_tracker): Call discard_completions
6183 to setup the hash table.
6184 (completion_tracker::discard_completions): Allow for being called
6185 from the constructor, pass new equal function, and element deleter
6186 when constructing the hash table. Initialise new class member
6187 variables.
6188 (completion_tracker::maybe_add_completion): Remove use of
6189 m_entries_vec, and store more information into m_entries_hash.
6190 (completion_tracker::recompute_lcd_visitor): New function, most
6191 content taken from...
6192 (completion_tracker::recompute_lowest_common_denominator):
6193 ...here, this now just visits each item in the hash calling the
6194 above visitor.
6195 (completion_tracker::build_completion_result): Remove use of
6196 m_entries_vec, call recompute_lowest_common_denominator.
6197 * completer.h (completion_tracker::have_completions): Remove use
6198 of m_entries_vec.
6199 (completion_tracker::completion_hash_entry): Declare new class.
6200 (completion_tracker::recompute_lowest_common_denominator): Change
6201 function signature.
6202 (completion_tracker::recompute_lcd_visitor): Declare new function.
6203 (completion_tracker::m_entries_vec): Delete.
6204 (completion_tracker::m_entries_hash): Initialize to NULL.
6205 (completion_tracker::m_lowest_common_denominator_valid): New
6206 member variable.
6207 (completion_tracker::m_lowest_common_denominator_max_length): New
6208 member variable.
6209
5a82b8a1
KR
62102020-03-17 Kamil Rytarowski <n54@gmx.com>
6211
6212 * regformats/regdef.h: Put reg in gdb namespace.
6213
fb516a69
KR
62142020-03-17 Kamil Rytarowski <n54@gmx.com>
6215
6216 * i386-bsd-nat.c (gdb_ptrace): New.
6217 * (i386bsd_fetch_inferior_registers,
6218 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6219 * (i386bsd_fetch_inferior_registers,
6220 i386bsd_store_inferior_registers) Use gdb_ptrace.
6221
1c0aa1fb
KR
62222020-03-17 Kamil Rytarowski <n54@gmx.com>
6223
6224 * amd64-bsd-nat.c (gdb_ptrace): New.
6225 * (amd64bsd_fetch_inferior_registers,
6226 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6227 * (amd64bsd_fetch_inferior_registers,
6228 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6229
5ccd2fb7
KR
62302020-03-17 Kamil Rytarowski <n54@gmx.com>
6231
6232 * user-regs.c (user_reg::read): Rename to...
6233 (user_reg::xread): ...this.
6234 * (append_user_reg): Rename argument `read' to `xread'.
6235 * (user_reg_add_builtin): Likewise.
6236 * (user_reg_add): Likewise.
6237 * (value_of_user_reg): Likewise.
6238
2108a63a
KR
62392020-03-17 Kamil Rytarowski <n54@gmx.com>
6240
6241 * sparc-nat.c (gdb_ptrace): New.
6242 * sparc-nat.c (sparc_fetch_inferior_registers)
6243 (sparc_store_inferior_registers) Remove obsolete comment.
6244 * sparc-nat.c (sparc_fetch_inferior_registers)
6245 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6246 * sparc-nat.c (sparc_fetch_inferior_registers)
6247 (sparc_store_inferior_registers) Use gdb_ptrace.
6248
a225c9a8
KR
62492020-03-17 Kamil Rytarowski <n54@gmx.com>
6250
6251 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6252 it to the ptrace call.
6253 * sh-nbsd-nat.c (store_registers): Likewise.
6254
98097623
KR
62552020-03-17 Kamil Rytarowski <n54@gmx.com>
6256
6257 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6258 nbsd_nat_target instead of inf_ptrace_target.
6259 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6260 nbsd_nat_target.
6261
9e38d619
KR
62622020-03-17 Kamil Rytarowski <n54@gmx.com>
6263
6264 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6265
a2ecbe9f
KR
62662020-03-17 Kamil Rytarowski <n54@gmx.com>
6267
6268 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6269 <sys/sysctl.h>.
6270 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6271
58990295
TV
62722020-03-17 Tom de Vries <tdevries@suse.de>
6273
6274 PR gdb/23710
6275 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6276 fields.
6277 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6278 fields.
6279 (process_imported_unit_die): Skip import of c++ CUs.
6280
771dd3a8
TT
62812020-03-16 Tom Tromey <tom@tromey.com>
6282
6283 * p-valprint.c (pascal_object_print_value): Initialize
6284 base_value.
6285
817a7585
AK
62862020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6287 Shahab Vahedi <shahab@synopsys.com>
6288
6289 * Makefile.in: Add arch/arc.o
6290 * configure.tgt: Likewise.
6291 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6292 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6293 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6294 * arc-tdep.h (arc_read_description): Add proto type.
6295 * arch/arc.c: New file.
6296 * arch/arc.h: Likewise.
6297 * features/Makefile: Replace old target descriptions with new.
6298 * features/arc-arcompact.c: Remove.
6299 * features/arc-arcompact.xml: Likewise.
6300 * features/arc-v2.c: Likewise
6301 * features/arc-v2.xml: Likewise
6302 * features/arc/aux-arcompact.xml: New file.
6303 * features/arc/aux-v2.xml: Likewise.
6304 * features/arc/core-arcompact.xml: Likewise.
6305 * features/arc/core-v2.xml: Likewise.
6306 * features/arc/aux-arcompact.c: Generate.
6307 * features/arc/aux-v2.c: Likewise.
6308 * features/arc/core-arcompact.c: Likewise.
6309 * features/arc/core-v2.c: Likewise.
6310 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6311
67430cd0
TT
63122020-03-16 Tom Tromey <tromey@adacore.com>
6313
6314 PR gdb/25663:
6315 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6316 putting value into bcache.
6317
30efb6c7
SM
63182020-03-16 Simon Marchi <simon.marchi@efficios.com>
6319
6320 PR gdb/21500
6321 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6322 to...
6323 (amd64_windows_init_abi_common): ... this. Don't set size of
6324 long type.
6325 (amd64_windows_init_abi): New function.
6326 (amd64_cygwin_init_abi): New function.
6327 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6328 the Cygwin OS ABI.
6329 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6330 comment.
6331
8db52437
SM
63322020-03-16 Simon Marchi <simon.marchi@efficios.com>
6333
6334 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6335 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6336 (pe_import_directory_entry): New struct type.
6337 (is_linked_with_cygwin_dll): New function.
6338 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6339 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6340 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6341
5982a56a
SM
63422020-03-16 Simon Marchi <simon.marchi@efficios.com>
6343
6344 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6345 i386_cygwin_core_osabi_sniffer.
6346
7a1998df
SM
63472020-03-16 Simon Marchi <simon.marchi@efficios.com>
6348
6349 * i386-cygwin-tdep.c: Rename to...
6350 * i386-windows-tdep.c: ... this.
6351 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6352 i386-windows-tdep.c.
6353 * configure.tgt: Likewise.
6354
053205cc
SM
63552020-03-16 Simon Marchi <simon.marchi@efficios.com>
6356
6357 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6358 * osabi.c (gdb_osabi_names): Add "Windows".
6359 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6360 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6361 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6362 i386_cygwin_osabi_sniffer.
6363 (_initialize_i386_cygwin_tdep): Register OS ABI
6364 GDB_OSABI_WINDOWS for i386.
6365 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6366 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6367 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6368 for x86-64.
6369 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6370 when the target matches '*-*-mingw*'.
6371
fe4b2ee6
SM
63722020-03-16 Simon Marchi <simon.marchi@efficios.com>
6373
6374 * defs.h (enum gdb_osabi): Move to...
6375 * osabi.h (enum gdb_osabi): ... here.
6376 * gdbarch.sh: Include osabi.h in gdbarch.h.
6377 * gdbarch.h: Re-generate.
6378
cb9b645d
SM
63792020-03-16 Simon Marchi <simon.marchi@efficios.com>
6380
6381 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6382 function.
6383 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6384
3293bbaf
TT
63852020-03-14 Tom Tromey <tom@tromey.com>
6386
6387 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6388 for C++.
6389 (c_type_print_modifier): Likewise. Add "language" parameter.
6390 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6391 (c_type_print_base_1): Update.
6392 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6393 constants.
6394 * type-stack.c (type_stack::insert): Handle tp_atomic and
6395 tp_restrict.
6396 (type_stack::follow_type_instance_flags): Likewise.
6397 (type_stack::follow_types): Likewise. Merge type-following code.
6398 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6399 (space_identifier, cv_with_space_id)
6400 (const_or_volatile_or_space_identifier_noopt)
6401 (const_or_volatile_or_space_identifier): Remove.
6402 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6403 rules.
6404 (ptr_operator, typebase): Update.
6405 (enum token_flag) <FLAG_C>: New constant.
6406 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6407 "_Atomic".
6408 (lex_one_token): Handle FLAG_C.
6409
154151a6
KR
64102020-03-14 Kamil Rytarowski <n54@gmx.com>
6411
6412 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6413 it to the ptrace call.
6414 * m68k-bsd-nat.c (store_registers): Likewise.
6415
bc107784
KR
64162020-03-14 Kamil Rytarowski <n54@gmx.com>
6417
6418 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6419 gdb_byte *.
6420 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6421 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6422 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6423
01a80117
KR
64242020-03-14 Kamil Rytarowski <n54@gmx.com>
6425
6426 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6427 nbsd_nat_target instead of inf_ptrace_target.
6428 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6429 nbsd_nat_target.
6430
f90280ca
KR
64312020-03-14 Kamil Rytarowski <n54@gmx.com>
6432
6433 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6434 register_t.
6435
6def66f1
KR
64362020-03-14 Kamil Rytarowski <n54@gmx.com>
6437
6438 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6439 it to the ptrace call.
6440 * alpha-bsd-nat.c (store_registers): Likewise.
6441
66eaca97
KR
64422020-03-14 Kamil Rytarowski <n54@gmx.com>
6443
6444 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6445 includes.
6446 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6447 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6448 fill_fpregset): Likewise.
6449
4fed520b
KR
64502020-03-14 Kamil Rytarowski <n54@gmx.com>
6451
6452 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6453 nbsd_nat_target instead of inf_ptrace_target.
6454 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6455 nbsd_nat_target.
6456
2190cf06
KR
64572020-03-14 Kamil Rytarowski <n54@gmx.com>
6458
6459 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6460 register_t.
6461
75c56d3d
KR
64622020-03-14 Kamil Rytarowski <n54@gmx.com>
6463
6464 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6465 it to the ptrace call.
6466 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6467 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6468 * arm-nbsd-nat.c (store_register): Likewise.
6469 * arm-nbsd-nat.c (store_regs): Likewise.
6470 * arm-nbsd-nat.c (store_fp_register): Likewise.
6471 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6472
6018d381
KR
64732020-03-14 Kamil Rytarowski <n54@gmx.com>
6474
6475 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6476 nbsd_nat_target instead of inf_ptrace_target.
6477 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6478 nbsd_nat_target.
6479
013f99f0
KR
64802020-03-14 Kamil Rytarowski <n54@gmx.com>
6481
6482 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6483 it to the ptrace call.
6484 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6485
12753073
KR
64862020-03-14 Kamil Rytarowski <n54@gmx.com>
6487
6227b330
KR
6488 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6489 it to the ptrace call.
6490 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6491
64922020-03-14 Kamil Rytarowski <n54@gmx.com>
6493
6494 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6495 gdb_byte *.
12753073
KR
6496 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6497
d5be5fa4
KR
64982020-03-14 Kamil Rytarowski <n54@gmx.com>
6499
6500 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6501 instead of inf_ptrace_target.
6502 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6503 nbsd_nat_target.
6504
8110f842
KR
65052020-03-14 Kamil Rytarowski <n54@gmx.com>
6506
6507 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6508 register_t.
6509
52feded7
KR
65102020-03-14 Kamil Rytarowski <n54@gmx.com>
6511
6512 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6513 register_t.
6514
25567eee
KR
65152020-03-14 Kamil Rytarowski <n54@gmx.com>
6516
6517 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6518 register_t.
6519
426a9c18
TT
65202020-03-13 Tom Tromey <tom@tromey.com>
6521
6522 * value.h (val_print): Don't declare.
6523 * valprint.h (val_print_array_elements)
6524 (val_print_scalar_formatted, generic_val_print): Don't declare.
6525 * valprint.c (generic_val_print_array): Take a struct value.
6526 (generic_val_print_ptr, generic_val_print_memberptr)
6527 (generic_val_print_bool, generic_val_print_int)
6528 (generic_val_print_char, generic_val_print_complex)
6529 (generic_val_print): Remove.
6530 (generic_value_print): Update.
6531 (do_val_print): Remove unused parameters. Don't call
6532 la_val_print.
6533 (val_print): Remove.
6534 (common_val_print): Update. Don't call value_check_printable.
6535 (val_print_scalar_formatted, val_print_array_elements): Remove.
6536 * rust-lang.c (rust_val_print): Remove.
6537 (rust_language_defn): Update.
6538 * p-valprint.c (pascal_val_print): Remove.
6539 (pascal_value_print_inner): Update.
6540 (pascal_object_print_val_fields, pascal_object_print_val):
6541 Remove.
6542 (pascal_object_print_static_field): Update.
6543 * p-lang.h (pascal_val_print): Don't declare.
6544 * p-lang.c (pascal_language_defn): Update.
6545 * opencl-lang.c (opencl_language_defn): Update.
6546 * objc-lang.c (objc_language_defn): Update.
6547 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6548 * m2-lang.h (m2_val_print): Don't declare.
6549 * m2-lang.c (m2_language_defn): Update.
6550 * language.h (struct language_defn) <la_val_print>: Remove.
6551 * language.c (unk_lang_value_print_inner): Rename. Change
6552 argument types.
6553 (unknown_language_defn, auto_language_defn): Update.
6554 * go-valprint.c (go_val_print): Remove.
6555 * go-lang.h (go_val_print): Don't declare.
6556 * go-lang.c (go_language_defn): Update.
6557 * f-valprint.c (f_val_print): Remove.
6558 * f-lang.h (f_value_print): Don't declare.
6559 * f-lang.c (f_language_defn): Update.
6560 * d-valprint.c (d_val_print): Remove.
6561 * d-lang.h (d_value_print): Don't declare.
6562 * d-lang.c (d_language_defn): Update.
6563 * cp-valprint.c (cp_print_value_fields)
6564 (cp_print_value_fields_rtti, cp_print_value): Remove.
6565 (cp_print_static_field): Update.
6566 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6567 (c_val_print_struct, c_val_print_union, c_val_print_int)
6568 (c_val_print_memberptr, c_val_print): Remove.
6569 * c-lang.h (c_val_print_array, cp_print_value_fields)
6570 (cp_print_value_fields_rtti): Don't declare.
6571 * c-lang.c (c_language_defn, cplus_language_defn)
6572 (asm_language_defn, minimal_language_defn): Update.
6573 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6574 (ada_val_print_enum): Take a struct value.
6575 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6576 (ada_val_print): Remove.
6577 (ada_value_print_1): Update.
6578 (printable_val_type): Remove.
6579 * ada-lang.h (ada_val_print): Don't declare.
6580 * ada-lang.c (ada_language_defn): Update.
6581
42331a1e
TT
65822020-03-13 Tom Tromey <tom@tromey.com>
6583
6584 * valprint.c (do_val_print): Update.
6585 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6586 a struct value.
6587 (value_to_value_object_no_release): Declare.
6588 * python/py-value.c (value_to_value_object_no_release): New
6589 function.
6590 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6591 struct value.
6592 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6593 function.
6594 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6595 a struct value.
6596 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6597 Declare.
6598 (gdbscm_apply_val_pretty_printer): Take a struct value.
6599 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6600 value.
6601 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6602 value.
6603 * extension-priv.h (struct extension_language_ops)
6604 <apply_val_pretty_printer>: Take a struct value.
6605 * cp-valprint.c (cp_print_value): Create a struct value.
6606 (cp_print_value): Update.
6607
3a916a97
TT
66082020-03-13 Tom Tromey <tom@tromey.com>
6609
6610 * ada-valprint.c (print_field_values): Call common_val_print.
6611
b59eac37
TT
66122020-03-13 Tom Tromey <tom@tromey.com>
6613
6614 * ada-valprint.c (val_print_packed_array_elements): Remove
6615 bitoffset and val parameters. Call common_val_print.
6616 (ada_val_print_string): Remove offset, address, and original_value
6617 parameters.
6618 (ada_val_print_array): Update.
6619 (ada_value_print_array): New function.
6620 (ada_value_print_1): Call it.
6621
03371129
TT
66222020-03-13 Tom Tromey <tom@tromey.com>
6623
6624 * ada-valprint.c (ada_value_print): Use common_val_print.
6625
2e088f8b
TT
66262020-03-13 Tom Tromey <tom@tromey.com>
6627
6628 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6629
39ef85a8
TT
66302020-03-13 Tom Tromey <tom@tromey.com>
6631
6632 * ada-valprint.c (ada_value_print_num): New function.
6633 (ada_value_print_1): Use it.
6634
b9fa6e07
TT
66352020-03-13 Tom Tromey <tom@tromey.com>
6636
6637 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6638
416595d6
TT
66392020-03-13 Tom Tromey <tom@tromey.com>
6640
6641 * ada-valprint.c (ada_value_print_ptr): New function.
6642 (ada_value_print_1): Use it.
6643
5b5e15ec
TT
66442020-03-13 Tom Tromey <tom@tromey.com>
6645
6646 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6647 call common_val_print.
6648 (ada_val_print_1): Update.
6649 (ada_value_print_1): New function.
6650 (ada_value_print_inner): Rewrite.
6651
fbf54e75
TT
66522020-03-13 Tom Tromey <tom@tromey.com>
6653
6654 * cp-valprint.c (cp_print_value_fields): Update.
6655 (cp_print_value): New function.
6656
64b653ca
TT
66572020-03-13 Tom Tromey <tom@tromey.com>
6658
6659 * m2-valprint.c (m2_value_print_inner): Use
6660 cp_print_value_fields.
6661 * cp-valprint.c (cp_print_value_fields): New function.
6662 * c-valprint.c (c_value_print_struct): New function.
6663 (c_value_print_inner): Use c_value_print_struct.
6664 * c-lang.h (cp_print_value_fields): Declare.
6665
6999f067
TT
66662020-03-13 Tom Tromey <tom@tromey.com>
6667
6668 * c-valprint.c (c_value_print_array): New function.
6669 (c_value_print_inner): Use it.
6670
ce80b8bd
TT
66712020-03-13 Tom Tromey <tom@tromey.com>
6672
6673 * c-valprint.c (c_value_print_memberptr): New function.
6674 (c_value_print_inner): Use it.
6675
2faac269
TT
66762020-03-13 Tom Tromey <tom@tromey.com>
6677
6678 * c-valprint.c (c_value_print_int): New function.
6679 (c_value_print_inner): Use it.
6680
da3e2c29
TT
66812020-03-13 Tom Tromey <tom@tromey.com>
6682
6683 * c-valprint.c (c_value_print_ptr): New function.
6684 (c_value_print_inner): Use it.
6685
50836231
TT
66862020-03-13 Tom Tromey <tom@tromey.com>
6687
6688 * c-valprint.c (c_value_print_inner): Rewrite.
6689
4f412b6e
TT
66902020-03-13 Tom Tromey <tom@tromey.com>
6691
6692 * valprint.c (generic_value_print_complex): New function.
6693 (generic_value_print): Use it.
6694
f5354008
TT
66952020-03-13 Tom Tromey <tom@tromey.com>
6696
6697 * valprint.c (generic_val_print_float): Don't call
6698 val_print_scalar_formatted.
6699 (generic_val_print, generic_value_print): Update.
6700
3eec3b05
TT
67012020-03-13 Tom Tromey <tom@tromey.com>
6702
6703 * valprint.c (generic_value_print_char): New function
6704 (generic_value_print): Use it.
6705
fdddfccb
TT
67062020-03-13 Tom Tromey <tom@tromey.com>
6707
6708 * valprint.c (generic_value_print_int): New function.
6709 (generic_value_print): Use it.
6710
6dde7521
TT
67112020-03-13 Tom Tromey <tom@tromey.com>
6712
6713 * valprint.c (generic_value_print_bool): New function.
6714 (generic_value_print): Use it.
6715
4112d2e6
TT
67162020-03-13 Tom Tromey <tom@tromey.com>
6717
6718 * valprint.c (generic_val_print_func): Simplify.
6719 (generic_val_print, generic_value_print): Update.
6720
65786af6
TT
67212020-03-13 Tom Tromey <tom@tromey.com>
6722
6723 * valprint.c (generic_val_print_flags): Remove.
6724 (generic_val_print, generic_value_print): Update.
6725 (val_print_type_code_flags): Add original_value parameter.
6726
40f3ce18
TT
67272020-03-13 Tom Tromey <tom@tromey.com>
6728
6729 * valprint.c (generic_val_print): Update.
6730 (generic_value_print): Update.
6731 * valprint.c (generic_val_print_enum): Don't call
6732 val_print_scalar_formatted.
6733
2a5b130b
TT
67342020-03-13 Tom Tromey <tom@tromey.com>
6735
6736 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6737 * valprint.c (generic_value_print_ptr): New function.
6738
abc66ce9
TT
67392020-03-13 Tom Tromey <tom@tromey.com>
6740
6741 * valprint.c (generic_value_print): Rewrite.
6742
07a32858
TT
67432020-03-13 Tom Tromey <tom@tromey.com>
6744
6745 * p-valprint.c (pascal_object_print_value_fields)
6746 (pascal_object_print_value): New functions.
6747
64d64d3a
TT
67482020-03-13 Tom Tromey <tom@tromey.com>
6749
6750 * p-valprint.c (pascal_value_print_inner): Rewrite.
6751
6a95a1f5
TT
67522020-03-13 Tom Tromey <tom@tromey.com>
6753
6754 * f-valprint.c (f_value_print_innner): Rewrite.
6755
59fcdac6
TT
67562020-03-13 Tom Tromey <tom@tromey.com>
6757
6758 * m2-valprint.c (m2_print_unbounded_array): New overload.
6759 (m2_print_unbounded_array): Update.
6760 (m2_print_array_contents): Take a struct value.
6761 (m2_value_print_inner): Rewrite.
6762
d133c3e1
TT
67632020-03-13 Tom Tromey <tom@tromey.com>
6764
6765 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6766 (d_value_print_inner): New function.
6767 * d-lang.h (d_value_print_inner): Declare.
6768 * d-lang.c (d_language_defn): Use d_value_print_inner.
6769
23b0f06b
TT
67702020-03-13 Tom Tromey <tom@tromey.com>
6771
6772 * go-valprint.c (go_value_print_inner): New function.
6773 * go-lang.h (go_value_print_inner): Declare.
6774 * go-lang.c (go_language_defn): Use go_value_print_inner.
6775
5f56f7cb
TT
67762020-03-13 Tom Tromey <tom@tromey.com>
6777
6778 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6779 API.
6780 (rust_val_print): Rewrite.
6781 (rust_value_print_inner): New function, from rust_val_print.
6782 (rust_language_defn): Use rust_value_print_inner.
6783
26792ee0
TT
67842020-03-13 Tom Tromey <tom@tromey.com>
6785
6786 * ada-valprint.c (ada_value_print_inner): New function.
6787 * ada-lang.h (ada_value_print_inner): Declare.
6788 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6789
24051bbe
TT
67902020-03-13 Tom Tromey <tom@tromey.com>
6791
6792 * f-valprint.c (f_value_print_innner): New function.
6793 * f-lang.h (f_value_print_innner): Declare.
6794 * f-lang.c (f_language_defn): Use f_value_print_innner.
6795
c0941be6
TT
67962020-03-13 Tom Tromey <tom@tromey.com>
6797
6798 * p-valprint.c (pascal_value_print_inner): New function.
6799 * p-lang.h (pascal_value_print_inner): Declare.
6800 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6801
62c4663d
TT
68022020-03-13 Tom Tromey <tom@tromey.com>
6803
6804 * m2-valprint.c (m2_value_print_inner): New function.
6805 * m2-lang.h (m2_value_print_inner): Declare.
6806 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6807
62182190
TT
68082020-03-13 Tom Tromey <tom@tromey.com>
6809
6810 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6811 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6812 * c-valprint.c (c_value_print_inner): New function.
6813 * c-lang.h (c_value_print_inner): Declare.
6814 * c-lang.c (c_language_defn, cplus_language_defn)
6815 (asm_language_defn, minimal_language_defn): Use
6816 c_value_print_inner.
6817
1e592a8a
TT
68182020-03-13 Tom Tromey <tom@tromey.com>
6819
6820 * p-valprint.c (pascal_object_print_value_fields): Now static.
6821 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6822
7fe471e9
TT
68232020-03-13 Tom Tromey <tom@tromey.com>
6824
6825 * c-valprint.c (c_val_print_array): Simplify.
6826
d121c6ce
TT
68272020-03-13 Tom Tromey <tom@tromey.com>
6828
6829 * valprint.c (value_print_array_elements): New function.
6830 * valprint.h (value_print_array_elements): Declare.
6831
4dba70ee
TT
68322020-03-13 Tom Tromey <tom@tromey.com>
6833
6834 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6835 * mips-tdep.c (mips_print_register): Use
6836 value_print_scalar_formatted.
6837
4f9ae810
TT
68382020-03-13 Tom Tromey <tom@tromey.com>
6839
6840 * valprint.h (value_print_scalar_formatted): Declare.
6841 * valprint.c (value_print_scalar_formatted): New function.
6842
156bfec9
TT
68432020-03-13 Tom Tromey <tom@tromey.com>
6844
6845 * valprint.h (generic_value_print): Declare.
6846 * valprint.c (generic_value_print): New function.
6847
2b4e573d
TT
68482020-03-13 Tom Tromey <tom@tromey.com>
6849
6850 * valprint.c (do_val_print): Call la_value_print_inner, if
6851 available.
6852 * rust-lang.c (rust_language_defn): Update.
6853 * p-lang.c (pascal_language_defn): Update.
6854 * opencl-lang.c (opencl_language_defn): Update.
6855 * objc-lang.c (objc_language_defn): Update.
6856 * m2-lang.c (m2_language_defn): Update.
6857 * language.h (struct language_defn) <la_value_print_inner>: New
6858 member.
6859 * language.c (unknown_language_defn, auto_language_defn): Update.
6860 * go-lang.c (go_language_defn): Update.
6861 * f-lang.c (f_language_defn): Update.
6862 * d-lang.c (d_language_defn): Update.
6863 * c-lang.c (c_language_defn, cplus_language_defn)
6864 (asm_language_defn, minimal_language_defn): Update.
6865 * ada-lang.c (ada_language_defn): Update.
6866
a1f6a07c
TT
68672020-03-13 Tom Tromey <tom@tromey.com>
6868
6869 * c-valprint.c (c_value_print): Use common_val_print.
6870
410cf315
TT
68712020-03-13 Tom Tromey <tom@tromey.com>
6872
6873 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6874
72a45c93
TT
68752020-03-13 Tom Tromey <tom@tromey.com>
6876
6877 * f-valprint.c (f77_print_array_1, f_val_print): Use
6878 common_val_print.
6879
040f66bd
TT
68802020-03-13 Tom Tromey <tom@tromey.com>
6881
6882 * riscv-tdep.c (riscv_print_one_register_info): Use
6883 common_val_print.
6884
a6e05a6c
TT
68852020-03-13 Tom Tromey <tom@tromey.com>
6886
6887 * mi/mi-main.c (output_register): Use common_val_print.
6888
3444c526
TT
68892020-03-13 Tom Tromey <tom@tromey.com>
6890
6891 * infcmd.c (default_print_one_register_info): Use
6892 common_val_print.
6893
c2a44efe
TT
68942020-03-13 Tom Tromey <tom@tromey.com>
6895
6896 * valprint.h (common_val_print_checked): Declare.
6897 * valprint.c (common_val_print_checked): New function.
6898 * stack.c (print_frame_arg): Use common_val_print_checked.
6899
b0c26e99
TT
69002020-03-13 Tom Tromey <tom@tromey.com>
6901
6902 * valprint.c (do_val_print): New function, from val_print.
6903 (val_print): Use do_val_print.
6904 (common_val_print): Use do_val_print.
6905
ce3acbe9
TT
69062020-03-13 Tom Tromey <tom@tromey.com>
6907
6908 * valprint.c (value_print): Use scoped_value_mark.
6909
96c7f873
TV
69102020-03-13 Tom de Vries <tdevries@suse.de>
6911
6912 PR symtab/25646
6913 * psymtab.c (partial_symtab::partial_symtab): Don't set
6914 globals_offset and statics_offset. Push element onto
6915 current_global_psymbols and current_static_psymbols stacks.
6916 (concat): New function.
6917 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6918 element from current_global_psymbols and current_static_psymbols
6919 stacks. Concat popped elements to global_psymbols and
6920 static_symbols.
6921 (add_psymbol_to_list): Use current_global_psymbols and
6922 current_static_psymbols stacks.
6923 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6924 current_static_psymbols fields.
6925
6ba0a321
CB
69262020-03-12 Christian Biesinger <cbiesinger@google.com>
6927
6928 * corelow.c (sniff_core_bfd): Remove.
6929 (class core_target) <m_core_vec>: Remove.
6930 (core_target::core_target): Update.
6931 (core_file_fns): Remove.
6932 (deprecated_add_core_fns): Remove.
6933 (default_core_sniffer): Remove.
6934 (sniff_core_bfd): Remove.
6935 (default_check_format): Remove.
6936 (gdb_check_format): Remove.
6937 (core_target_open): Update.
6938 (core_target::get_core_register_section): Update.
6939 (get_core_registers_cb): Update.
6940 (core_target::fetch_registers): Update.
6941 * gdbcore.h (struct core_fns): Remove.
6942 (deprecated_add_core_fns): Remove.
6943 (default_core_sniffer): Remove.
6944 (default_check_format): Remove.
6945
227031b2
TT
69462020-03-12 Tom Tromey <tom@tromey.com>
6947
6948 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6949 CORE_ADDR.
6950 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6951
53807e9f
TT
69522020-03-12 Tom Tromey <tom@tromey.com>
6953
6954 * remote.c (remote_target::download_tracepoint)
6955 (remote_target::enable_tracepoint)
6956 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6957 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6958 sprintf_vma.
6959
64f25102
TT
69602020-03-12 Tom Tromey <tom@tromey.com>
6961
6962 * symfile-mem.c: Update CORE_ADDR size assert.
6963
272cd5a3
SM
69642020-03-12 Simon Marchi <simon.marchi@efficios.com>
6965
6966 * selftest.m4: Move to gdbsupport/.
6967 * acinclude.m4: Update path to selftest.m4.
6968
74cd3f9d
SM
69692020-03-12 Simon Marchi <simon.marchi@efficios.com>
6970
6971 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6972 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6973 gdbarch-selfselftests.c and selftest-arch.c.
6974 (SUBDIR_UNITTESTS_OBS): Rename to...
6975 (SELFTESTS_OBS): ... this.
6976 (COMMON_SFILES): Remove disasm-selftests.c and
6977 gdbarch-selftests.c.
6978 * configure.ac: Don't add selftest-arch.{c,o} to
6979 CONFIG_{SRCS,OBS}.
6980 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
6981 preprocessor conditions.
6982
db6878ac
SM
69832020-03-12 Simon Marchi <simon.marchi@efficios.com>
6984
6985 * configure.ac: Don't source bfd/development.sh.
6986 * selftest.m4: Modify comment.
6987 * configure: Re-generate.
6988
4d696a5c
SM
69892020-03-12 Simon Marchi <simon.marchi@efficios.com>
6990
6991 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
6992 not "true" or "false".
6993 * configure: Re-generate.
6994
8dd8e1c7
CB
69952020-03-12 Christian Biesinger <cbiesinger@google.com>
6996
6997 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
6998 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
6999 renamed to arm_nbsd_supply_gregset.
7000 (fetch_register): Update to call arm_nbsd_supply_gregset.
7001 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7002 (arm_netbsd_nat_target::fetch_registers): Update.
7003 (fetch_elfcore_registers): Removed.
7004 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7005 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7006 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7007 not require NetBSD system headers.
7008 (arm_nbsd_regset): New struct.
7009 (arm_nbsd_iterate_over_regset_sections): New function.
7010 (arm_netbsd_init_abi_common): Updated to call
7011 set_gdbarch_iterate_over_regset_sections.
7012 * arm-nbsd-tdep.h: New file.
7013
dd69bf7a
KB
70142020-03-11 Kevin Buettner <kevinb@redhat.com>
7015
7016 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7017 recursion.
7018
a0761e34
SM
70192020-03-11 Simon Marchi <simon.marchi@efficios.com>
7020
7021 * configure: Re-generate.
7022
e7a82140
TT
70232020-03-11 Tom Tromey <tromey@adacore.com>
7024
7025 * ada-typeprint.c (print_choices): Fix comment.
7026
dcc050c8
AB
70272020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7028
7029 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7030 previous item in the list, when the list has no items.
7031
1c33af77
TV
70322020-03-11 Tom de Vries <tdevries@suse.de>
7033
7034 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7035 PROP_LOCLIST handling code.
7036
8c95582d
AB
70372020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7038
7039 * buildsym-legacy.c (record_line): Pass extra parameter to
7040 record_line.
7041 * buildsym.c (buildsym_compunit::record_line): Take an extra
7042 parameter, reduce duplication in the line table, and record the
7043 is_stmt flag in the line table.
7044 * buildsym.h (buildsym_compunit::record_line): Add extra
7045 parameter.
7046 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7047 non-statement lines.
7048 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7049 this to the symtab builder.
7050 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7051 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7052 through to dwarf_record_line_1.
7053 * infrun.c (process_event_stop_test): When stepping, don't stop at
7054 a non-statement instruction, and only refresh the step info when
7055 we land in the middle of a line's range. Also add an extra
7056 comment.
7057 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7058 field.
7059 * record-btrace.c (btrace_find_line_range): Only record lines
7060 marked as is-statement.
7061 * stack.c (frame_show_address): Show the frame address if we are
7062 in a non-statement sal.
7063 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7064 (maintenance_print_one_line_table): Print a header for the is_stmt
7065 column, and include is_stmt information in the output.
7066 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7067 preference to non-statements.
7068 (find_pcs_for_symtab_line): Prefer is-statement entries.
7069 (find_line_common): Likewise.
7070 * symtab.h (struct linetable_entry): Add is_stmt field.
7071 (struct symtab_and_line): Likewise.
7072 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7073 arranging the line table.
7074
e4003a34
TV
70752020-03-07 Tom de Vries <tdevries@suse.de>
7076
7077 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7078 DIE.
7079
e8932576
TT
70802020-03-07 Tom Tromey <tom@tromey.com>
7081
7082 * valops.c (value_literal_complex): Remove obsolete comment.
7083 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7084 comment.
7085
29734269
SM
70862020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7087
7088 * infrun.h: Forward-declare thread_info.
7089 (set_step_info): Add thread_info parameter, add doc.
7090 * infrun.c (set_step_info): Add thread_info parameter, move doc
7091 to header.
7092 * infrun.c (process_event_stop_test): Pass thread to
7093 set_step_info call.
7094 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7095 set_step_info.
7096 (prepare_one_step): Add thread_info parameter, pass it to
7097 set_step_frame and prepare_one_step (recursive) call.
7098 (step_1): Pass thread to prepare_one_step call.
7099 (step_command_fsm::should_stop): Pass thread to
7100 prepare_one_step.
7101 (until_next_fsm): Pass thread to set_step_frame call.
7102 (finish_command): Pass thread to set_step_info call.
7103
b7d64b29
HD
71042020-03-06 Hannes Domani <ssbssa@yahoo.de>
7105
7106 * windows-tdep.c (windows_solib_create_inferior_hook):
7107 Check if inferior is running.
7108
09f2921c
TV
71092020-03-06 Tom de Vries <tdevries@suse.de>
7110
7111 * NEWS: Fix "the the".
7112 * ctfread.c: Same.
7113
fd760e79
TV
71142020-03-06 Tom de Vries <tdevries@suse.de>
7115
7116 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7117
20ea4a60
AB
71182020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7119
7120 * .dir-locals.el: Add a comment referencing the other copies of
7121 this file.
7122
0afbabf0
JB
71232020-03-05 John Baldwin <jhb@FreeBSD.org>
7124
7125 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7126 psargs.
7127
842806cb
TBA
71282020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7129
7130 * .gitattributes: New file.
7131
be1e3d3e
TT
71322020-03-04 Tom Tromey <tom@tromey.com>
7133
7134 * symmisc.c (print_symbol_bcache_statistics)
7135 (print_objfile_statistics): Update.
7136 * symfile.c (allocate_symtab): Use intern.
7137 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7138 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7139 macro_cache>: Remove.
7140 <string_cache>: New member.
7141 (struct objfile) <intern>: New methods.
7142 * elfread.c (elf_symtab_read): Use intern.
7143 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7144 (dwarf2_compute_name, dwarf2_physname)
7145 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7146 names.
7147 (guess_partial_die_structure_name): Update.
7148 (partial_die_info::fixup): Intern name.
7149 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7150 name.
7151 (dwarf2_name): Intern name. Update.
7152 * buildsym.c (buildsym_compunit::get_macro_table): Use
7153 string_cache.
7154
4e7625fd
TT
71552020-03-04 Tom Tromey <tom@tromey.com>
7156
7157 * jit.c (bfd_open_from_target_memory): Make "target" const.
7158 * corefile.c (gnutarget): Now const.
7159 * gdbcore.h (gnutarget): Now const.
7160
46f9f931
HD
71612020-03-04 Hannes Domani <ssbssa@yahoo.de>
7162
7163 * NEWS: Mention support for WOW64 processes.
7164 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7165 (amd64_windows_segment_register_p): Remove static.
7166 (_initialize_amd64_windows_nat): Update.
7167 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7168 * i386-windows-nat.c (context_offset): Update.
7169 (i386_mappings): Rename and remove static.
7170 (i386_windows_segment_register_p): Remove static.
7171 (_initialize_i386_windows_nat): Update.
7172 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7173 (STATUS_WX86_SINGLE_STEP): New macro.
7174 (EnumProcessModulesEx): New macro.
7175 (Wow64SuspendThread): New macro.
7176 (Wow64GetThreadContext): New macro.
7177 (Wow64SetThreadContext): New macro.
7178 (Wow64GetThreadSelectorEntry): New macro.
7179 (windows_set_context_register_offsets): Add static.
7180 (windows_set_segment_register_p): Likewise.
7181 (windows_add_thread): Adapt for WOW64 processes.
7182 (windows_fetch_one_register): Likewise.
7183 (windows_nat_target::fetch_registers): Likewise.
7184 (windows_store_one_register): Likewise.
7185 (display_selector): Likewise.
7186 (display_selectors): Likewise.
7187 (handle_exception): Likewise.
7188 (windows_continue): Likewise.
7189 (windows_nat_target::resume): Likewise.
7190 (windows_add_all_dlls): Likewise.
7191 (do_initial_windows_stuff): Likewise.
7192 (windows_nat_target::attach): Likewise.
7193 (windows_get_exec_module_filename): Likewise.
7194 (windows_nat_target::create_inferior): Likewise.
7195 (windows_xfer_siginfo): Likewise.
7196 (_initialize_loadable): Initialize Wow64SuspendThread,
7197 Wow64GetThreadContext, Wow64SetThreadContext,
7198 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7199 * windows-nat.h (windows_set_context_register_offsets):
7200 Remove declaration.
7201 (windows_set_segment_register_p): Likewise.
7202 (i386_windows_segment_register_p): Add declaration.
7203 (amd64_windows_segment_register_p): Likewise.
7204
440cf44e
LM
72052020-03-04 Luis Machado <luis.machado@linaro.org>
7206
7207 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7208 in "info registers" for AArch64/ARM.
7209
7210 The change caused "info registers" to not print GPR's.
7211
7212 gdb/ChangeLog:
7213
7214 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7215
7216 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7217 when reg->group is empty and reggroup is not.
7218
1009d92f
TT
72192020-03-03 Tom Tromey <tromey@adacore.com>
7220
7221 * dwarf2/frame.c (struct dwarf2_frame_cache)
7222 <checked_tailcall_bottom, entry_cfa_sp_offset,
7223 entry_cfa_sp_offset_p>: Remove members.
7224 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7225 (dwarf2_frame_prev_register): Don't call
7226 dwarf2_tailcall_sniffer_first.
7227 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7228 * frame-unwind.c (add_unwinder): New fuction.
7229 (frame_unwind_init): Use it. Add tailcall unwinder.
7230
5e5d66b6
AB
72312020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7232 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7233
7234 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7235 value should be printed as true.
7236
584cf46d
HD
72372020-03-03 Hannes Domani <ssbssa@yahoo.de>
7238
7239 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7240 (windows_init_abi): Set and use windows_so_ops.
7241
7b973adc
SDJ
72422020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7243
7244 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7245 when verifying if dealing with a convenience variable.
7246
bb7b70ab
LM
72472020-03-03 Luis Machado <luis.machado@linaro.org>
7248
7249 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7250
9822cb57
SM
72512020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7252
7253 * infrun.c (gdbarch_supports_displaced_stepping): New.
7254 (use_displaced_stepping): Break up conditions in smaller pieces.
7255 Use gdbarch_supports_displaced_stepping.
7256 (displaced_step_prepare_throw): Use
7257 gdbarch_supports_displaced_stepping.
7258
63e163f2
AB
72592020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7260
7261 * NEWS: Mention new behaviour of the history filename.
7262 * top.c (write_history_p): Add comment.
7263 (show_write_history_p): Add header comment, give a different
7264 message when history writing is on, but the history filename is
7265 empty.
7266 (history_filename): Add comment.
7267 (history_filename_empty): New function.
7268 (show_history_filename): Add header comment, give a different
7269 message when the filename is empty.
7270 (init_history): Compare history_filename against nullptr, and only
7271 read history if the filename is not empty.
7272 (set_history_filename): Add header comment, and only make
7273 non-empty filenames absolute.
7274 (init_main): Make the filename argument to 'set history filename'
7275 optional.
7276
81b86b97
CB
72772020-03-02 Christian Biesinger <cbiesinger@google.com>
7278
7279 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7280 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7281 (fetch_fp_register): Update.
7282 (fetch_fp_regs): Update.
7283 (store_fp_register): Update.
7284 (store_fp_regs): Update.
7285 (arm_netbsd_nat_target::read_description): New function.
7286 (fetch_elfcore_registers): Update.
7287
24ed6739
AB
72882020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7289
7290 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7291 general_thread if the stop reply is missing a thread-id.
7292 (remote_target::process_stop_reply): Use the first non-exited
7293 thread if the target didn't pass a thread-id.
7294 * infrun.c (do_target_wait): Move call to
7295 switch_to_inferior_no_thread to ....
7296 (do_target_wait_1): ... here.
7297
a84bb2a0
JT
72982020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7299
7300 * debuginfod-support.c: Include defs.h first.
7301
658dadf0
TV
73022020-02-28 Tom de Vries <tdevries@suse.de>
7303
7304 * symfile.c (set_initial_language): Use default language for lookup.
7305
4ebe4877
SM
73062020-02-28 Simon Marchi <simon.marchi@efficios.com>
7307
7308 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7309 reader variable, pass `this` to read_cutu_die_from_dwo.
7310
e5da1139
AM
73112020-02-27 Aaron Merey <amerey@redhat.com>
7312
7313 * source.c (open_source_file): Check for nullptr when computing
7314 srcpath.
7315
317f7127
TT
73162020-02-27 Tom Tromey <tromey@adacore.com>
7317
7318 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7319 member.
7320 (dwarf2_add_field): Don't update nfields.
7321 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7322
3104d9ee
AB
73232020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7324
7325 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7326 abs.
7327
b83470bf
TT
73282020-02-26 Tom Tromey <tom@tromey.com>
7329
7330 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7331 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7332 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7333 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7334 per_cu_data.
7335
edfe0a0c
TT
73362020-02-26 Tom Tromey <tom@tromey.com>
7337
7338 * dwarf2/index-write.c (psym_index_map): Change type.
7339 (add_address_entry_worker, write_one_signatured_type)
7340 (recursively_count_psymbols, recursively_write_psymbols)
7341 (class debug_names, psyms_seen_size, write_gdbindex)
7342 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7343
0d79cdc4
AM
73442020-02-26 Aaron Merey <amerey@redhat.com>
7345
7346 * Makefile.in: Handle optional debuginfod support.
7347 * NEWS: Update.
7348 * README: Add --with-debuginfod summary.
7349 * config.in: Regenerate.
7350 * configure: Regenerate.
7351 * configure.ac: Handle optional debuginfod support.
7352 * debuginfod-support.c: debuginfod helper functions.
7353 * debuginfod-support.h: Ditto.
7354 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7355 summary.
7356 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7357 when a dwz file cannot be found.
7358 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7359 debuginfo file cannot be found.
7360 * source.c (open_source_file): Query debuginfod servers when a
7361 source file cannot be found.
7362 * top.c (print_gdb_configuration): Include
7363 --{with,without}-debuginfod in the output.
7364
b65ce565
JG
73652020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7366
7367 * thread.c (thr_try_catch_cmd): Print thread name.
7368
d4c9a4f8
SM
73692020-02-26 Simon Marchi <simon.marchi@efficios.com>
7370
7371 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7372 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7373 dwarf2_fetch_die_type_sect_off): Move to...
7374 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7375 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7376 dwarf2_fetch_die_type_sect_off): ... here.
7377 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7378 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7379 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7380
0dce4280
TV
73812020-02-26 Tom de Vries <tdevries@suse.de>
7382
7383 PR gdb/25603
7384 * symfile.c (set_initial_language): Exit-early if
7385 language_mode == language_mode_manual.
7386
450a1bfc
SM
73872020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7388
7389 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7390 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7391 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7392
9e80cfa1
AB
73932020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7394
7395 * gdbtypes.c (create_array_type_with_stride): Handle negative
7396 array strides.
7397 * valarith.c (value_subscripted_rvalue): Likewise.
7398
09624f1f
LM
73992020-02-25 Luis Machado <luis.machado@linaro.org>
7400
7401 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7402
8cb5117c
SM
74032020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7404
7405 * loc.h (dwarf2_get_die_type): Move to...
7406 * read.h (dwarf2_get_die_type): ... here.
7407 * read.c (dwarf2_get_die_type): Move doc to header.
7408
c325c44e
JB
74092020-02-25 Joel Brobecker <brobecker@adacore.com>
7410
7411 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7412 'gnulib/Makefile.in' to the list.
7413
4ac93832
TT
74142020-02-24 Tom Tromey <tom@tromey.com>
7415
7416 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7417 Remove.
7418 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7419 XOBNEWVEC.
7420
197400e8
TT
74212020-02-24 Tom Tromey <tom@tromey.com>
7422
7423 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7424 New method.
7425 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7426 (dw2_do_instantiate_symtab, dw2_get_file_names)
7427 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7428
76935768
TT
74292020-02-24 Tom Tromey <tom@tromey.com>
7430
7431 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7432 make_scoped_restore.
7433 (dwarf2_psymtab::read_symtab): Don't clear
7434 reading_partial_symbols.
7435
a88ef40d
TV
74362020-02-24 Tom de Vries <tdevries@suse.de>
7437
7438 PR gdb/25592
7439 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7440
c9af6521
TV
74412020-02-24 Tom de Vries <tdevries@suse.de>
7442
7443 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7444 commands layout next/prev/regs.
7445
5707a07a
TT
74462020-02-22 Tom Tromey <tom@tromey.com>
7447
7448 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7449 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7450
3b0fb49e
TT
74512020-02-22 Tom Tromey <tom@tromey.com>
7452
7453 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7454
283be8bf
TT
74552020-02-22 Tom Tromey <tom@tromey.com>
7456
7457 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7458 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7459 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7460 * tui/tui.c (_initialize_tui): Add usage text.
7461
ca793b96
TT
74622020-02-22 Tom Tromey <tom@tromey.com>
7463
7464 * tui/tui-win.c (tui_set_focus_command)
7465 (tui_set_win_height_command): Use error_no_arg.
7466 (_initialize_tui_win): Update help text.
7467 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7468
432b5c40
TT
74692020-02-22 Tom Tromey <tom@tromey.com>
7470
7471 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7472 * tui/tui-disasm.h (struct tui_disasm_window)
7473 <display_start_addr>: Declare.
7474 * tui/tui-source.h (struct tui_source_window)
7475 <display_start_addr>: Declare.
7476 * tui/tui-winsource.h (struct tui_source_window_base)
7477 <show_source_line, display_start_addr>: New methods.
7478 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7479 Rename and move to protected section.
7480 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7481 (tui_source_window_base::do_erase_source_content): Update.
7482 (tui_source_window_base::show_source_line): Now a method.
7483 (tui_source_window_base::show_source_content)
7484 (tui_source_window_base::tui_source_window_base)
7485 (tui_source_window_base::rerender)
7486 (tui_source_window_base::refill)
7487 (tui_source_window_base::do_scroll_horizontal)
7488 (tui_source_window_base::set_is_exec_point_at)
7489 (tui_source_window_base::update_breakpoint_info)
7490 (tui_source_window_base::update_exec_info): Update.
7491 * tui/tui-source.c (tui_source_window::set_contents)
7492 (tui_source_window::showing_source_p)
7493 (tui_source_window::do_scroll_vertical)
7494 (tui_source_window::location_matches_p)
7495 (tui_source_window::line_is_displayed): Update.
7496 (tui_source_window::display_start_addr): New method.
7497 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7498 (tui_disasm_window::do_scroll_vertical)
7499 (tui_disasm_window::location_matches_p): Update.
7500 (tui_disasm_window::display_start_addr): New method.
7501
01b1af32
TT
75022020-02-22 Tom Tromey <tom@tromey.com>
7503
7504 * NEWS: Add entry for gdb.register_window_type.
7505 * tui/tui-layout.h (window_factory): New typedef.
7506 (tui_register_window): Declare.
7507 * tui/tui-layout.c (saved_tui_windows): New global.
7508 (tui_apply_current_layout): Use it.
7509 (tui_register_window): New function.
7510 * python/python.c (do_start_initialization): Call
7511 gdbpy_initialize_tui.
7512 (python_GdbMethods): Add "register_window_type" function.
7513 * python/python-internal.h (gdbpy_register_tui_window)
7514 (gdbpy_initialize_tui): Declare.
7515 * python/py-tui.c: New file.
7516 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7517
fc96d20b
TT
75182020-02-22 Tom Tromey <tom@tromey.com>
7519
7520 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7521
935c78c0
TT
75222020-02-22 Tom Tromey <tom@tromey.com>
7523
7524 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7525 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7526 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7527 (tui_set_win_focus_to): Move from tui-win.c.
7528
0240c8f1
TT
75292020-02-22 Tom Tromey <tom@tromey.com>
7530
7531 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7532 functions.
7533 (known_window_types): New global.
7534 (tui_get_window_by_name): Reimplement.
7535 (initialize_known_windows): New function.
7536 (validate_window_name): Rewrite.
7537 (_initialize_tui_layout): Call initialize_known_windows.
7538
fdb01f0c
TT
75392020-02-22 Tom Tromey <tom@tromey.com>
7540
7541 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7542 Remove constants.
7543 * tui/tui-winsource.h (struct tui_source_window_base)
7544 <tui_source_window_base>: Remove parameter.
7545 * tui/tui-winsource.c
7546 (tui_source_window_base::tui_source_window_base): Remove
7547 parameter.
7548 (tui_source_window_base::refill): Update.
7549 * tui/tui-stack.h (struct tui_locator_window)
7550 <tui_locator_window>: Update.
7551 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7552 Default the constructor.
7553 * tui/tui-regs.h (struct tui_data_item_window)
7554 <tui_data_item_window>: Default the constructor.
7555 (struct tui_data_window) <tui_data_window>: Likewise.
7556 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7557 Default the constructor.
7558 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7559 Default the constructor.
7560 <type>: Remove.
7561 (struct tui_win_info) <tui_win_info>: Default the constructor.
7562 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7563 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7564 Default the constructor.
7565
865a5aec
TT
75662020-02-22 Tom Tromey <tom@tromey.com>
7567
7568 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7569 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7570 * tui/tui-win.c (tui_resize_all): Don't call
7571 tui_delete_invisible_windows.
7572 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7573 done.
7574 (tui_set_layout): Update.
7575 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7576 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7577 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7578
e098d18c
TT
75792020-02-22 Tom Tromey <tom@tromey.com>
7580
7581 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7582 correctly.
7583
eb9c8874
TT
75842020-02-22 Tom Tromey <tom@tromey.com>
7585
7586 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7587
7eed1a8e
TT
75882020-02-22 Tom Tromey <tom@tromey.com>
7589
7590 * tui/tui-winsource.h (struct tui_source_window_iterator)
7591 <inner_iterator>: New etytypedef.
7592 <tui_source_window_iterator>: Take "end" parameter.
7593 <tui_source_window_iterator>: Take iterator.
7594 <operator*, advance>: Update.
7595 <m_iter>: Change type.
7596 <m_end>: New field.
7597 (struct tui_source_windows) <begin, end>: Update.
7598 * tui/tui-layout.c (tui_windows): New global.
7599 (tui_apply_current_layout): Clear tui_windows.
7600 (tui_layout_window::apply): Update tui_windows.
7601 * tui/tui-data.h (tui_windows): Declare.
7602 (all_tui_windows): Now inline function.
7603 (class tui_window_iterator, struct all_tui_windows): Remove.
7604
7c043ba6
TT
76052020-02-22 Tom Tromey <tom@tromey.com>
7606
7607 PR tui/17850:
7608 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7609 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7610 "height" argument.
7611 (class tui_layout_window) <get_sizes>: Likewise.
7612 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7613 argument.
7614 <get_sizes>: Add "height" argument.
7615 <m_vertical>: New field.
7616 * tui/tui-layout.c (tui_layout_split::clone): Update.
7617 (tui_layout_split::get_sizes): Add "height" argument.
7618 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7619 (tui_new_layout_command): Parse "-horizontal".
7620 (_initialize_tui_layout): Update help string.
7621 (tui_layout_split::specification): Add "-horizontal" when needed.
7622 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7623 argument.
7624 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7625 New methods.
7626
6bc56648
TT
76272020-02-22 Tom Tromey <tom@tromey.com>
7628
7629 * tui/tui-layout.h (enum tui_adjust_result): New.
7630 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7631 (class tui_layout_window) <adjust_size>: Return
7632 tui_adjust_result. Rewrite.
7633 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7634 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7635
c22fef7e
TT
76362020-02-22 Tom Tromey <tom@tromey.com>
7637
7638 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7639 parameter and return types.
7640 (class tui_layout_base) <specification>: Add "depth".
7641 (class tui_layout_window) <specification>: Add "depth".
7642 (class tui_layout_split) <specification>: Add "depth".
7643 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7644 and return types.
7645 (tui_new_layout_command): Parse sub-layouts.
7646 (_initialize_tui_layout): Update help string.
7647 (tui_layout_window::specification): Add "depth".
7648 (add_layout_command): Update.
7649
ee325b61
TT
76502020-02-22 Tom Tromey <tom@tromey.com>
7651
7652 * NEWS: Add "tui new-layout" item.
7653 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7654 Add new-layout command to help text.
7655 (validate_window_name): New function.
7656 (tui_new_layout_command): New function.
7657 (_initialize_tui_layout): Register "new-layout".
7658 (tui_layout_window::specification): New method.
7659 (tui_layout_window::specification): New method.
7660 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7661 method.
7662 (class tui_layout_window) <specification>: New method.
7663 (class tui_layout_split) <specification>: New method.
7664
416eb92d
TT
76652020-02-22 Tom Tromey <tom@tromey.com>
7666
7667 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7668 * tui/tui-win.c (window_name_completer): Update comment.
7669 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7670 Declare method.
7671 (class tui_layout_window) <replace_window>: Likewise.
7672 (class tui_layout_split) <replace_window>: Likewise.
7673 (tui_set_layout): Don't declare.
7674 (tui_set_initial_layout): Declare function.
7675 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7676 (asm_regs_layout): New globals.
7677 (tui_current_layout, show_layout): Remove.
7678 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7679 (find_layout, tui_apply_layout): New function.
7680 (layout_completer): Remove.
7681 (tui_next_layout): Reimplement.
7682 (tui_next_layout_command): New function.
7683 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7684 (tui_regs_layout): Reimplement.
7685 (tui_regs_layout_command): New function.
7686 (extract_display_start_addr): Rewrite.
7687 (next_layout, prev_layout): Remove.
7688 (tui_layout_window::replace_window): New method.
7689 (tui_layout_split::replace_window): New method.
7690 (destroy_layout): New function.
7691 (layout_list): New global.
7692 (add_layout_command): New function.
7693 (initialize_layouts): Update.
7694 (tui_layout_command): New function.
7695 (_initialize_tui_layout): Install "layout" commands.
7696 * tui/tui-data.h (enum tui_layout_type): Remove.
7697 (tui_current_layout): Don't declare.
7698
0dbc2fc7
TT
76992020-02-22 Tom Tromey <tom@tromey.com>
7700
7701 * tui/tui-regs.c (tui_reg_layout): Remove.
7702 (tui_reg_command): Use tui_regs_layout.
7703 * tui/tui-layout.h (tui_reg_command): Declare.
7704 * tui/tui-layout.c (tui_reg_command): New function.
7705
5afe342e
TT
77062020-02-22 Tom Tromey <tom@tromey.com>
7707
7708 * tui/tui.c (tui_rl_delete_other_windows): Call
7709 tui_remove_some_windows.
7710 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7711 Declare method.
7712 (class tui_layout_window) <remove_windows>: New method.
7713 (class tui_layout_split) <remove_windows>: Declare.
7714 (tui_remove_some_windows): Declare.
7715 * tui/tui-layout.c (tui_remove_some_windows): New function.
7716 (tui_layout_split::remove_windows): New method.
7717
427326a8
TT
77182020-02-22 Tom Tromey <tom@tromey.com>
7719
7720 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7721 * tui/tui-layout.h (tui_next_layout): Declare.
7722 * tui/tui-layout.c (tui_next_layout): New function.
7723
3fe12b6d
TT
77242020-02-22 Tom Tromey <tom@tromey.com>
7725
7726 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7727 correct coordinates.
7728
59b8b5d2
TT
77292020-02-22 Tom Tromey <tom@tromey.com>
7730
7731 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7732 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7733 DATA_WIN case.
7734
2a3d458b
TT
77352020-02-22 Tom Tromey <tom@tromey.com>
7736
7737 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7738 TUI_DISASM_WIN, not tui_win_list.
7739
3f0cbb04
TT
77402020-02-22 Tom Tromey <tom@tromey.com>
7741
7742 * valprint.c (generic_val_print_enum_1)
7743 (val_print_type_code_flags): Style member names.
7744 * rust-lang.c (val_print_struct, rust_print_enum)
7745 (rust_print_struct_def, rust_internal_print_type): Style member
7746 names.
7747 * p-valprint.c (pascal_object_print_value_fields): Style member
7748 names. Only call fprintf_symbol_filtered for static members.
7749 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7750 * f-valprint.c (f_val_print): Style member names.
7751 * f-typeprint.c (f_type_print_base): Style member names.
7752 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7753 call fprintf_symbol_filtered for static members.
7754 (cp_print_class_member): Style member names.
7755 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7756 member names.
7757 * ada-valprint.c (ada_print_scalar): Style enum names.
7758 (ada_val_print_enum): Likewise.
7759 * ada-typeprint.c (print_enum_type): Style enum names.
7760
d4d947ae
TT
77612020-02-21 Tom Tromey <tom@tromey.com>
7762
7763 * psympriv.h (struct partial_symtab): Update comment.
7764
e94e944b
TT
77652020-02-21 Tom Tromey <tromey@adacore.com>
7766
7767 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7768 type is CORE_ADDR.
7769
1eb73179
TV
77702020-02-21 Tom de Vries <tdevries@suse.de>
7771
7772 PR gdb/25534
7773 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7774 if dependencies[i]->user != NULL.
7775
4f180d53
AT
77762020-02-21 Ali Tamur <tamur@google.com>
7777
7778 * dwarf2/read.c (dwarf2_name): Add null check.
7779
22b6cd70
TT
77802020-02-20 Tom Tromey <tom@tromey.com>
7781
7782 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7783 ">=", in binary search.
7784 (dwarf2_find_containing_comp_unit): New overload.
7785 (run_test): New self-test.
7786 (_initialize_dwarf2_read): Register new test.
7787
bd0cf5a6
NC
77882020-02-20 Nelson Chu <nelson.chu@sifive.com>
7789
7790 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7791 * riscv-tdep.h: Likewise.
7792 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7793 rv32-only CSR.
7794 * features/riscv/64bit-csr.xml: Regenerated.
7795
3f702acd
SDJ
77962020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7797 Tom Tromey <tom@tromey.com>
7798
7799 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7800 of 'fputc_unfiltered'.
7801 (putchar_unfiltered): Call 'fputc_unfiltered'.
7802 (fputc_unfiltered): Call 'fputs_unfiltered'.
7803
d13c7322
AB
78042020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7805
7806 * config.in: Regenerate.
7807 * configure: Regenerate.
7808 * configure.ac: Add --with-python-libdir option.
7809 * main.c: Use WITH_PYTHON_LIBDIR.
7810
869d8950
TT
78112020-02-19 Tom Tromey <tom@tromey.com>
7812
7813 * symtab.c (general_symbol_info::compute_and_set_names): Use
7814 obstack_strndup. Simplify call to symbol_set_demangled_name.
7815
298e9637
SM
78162020-02-19 Simon Marchi <simon.marchi@efficios.com>
7817
7818 * dwarf2/read.c (allocate_signatured_type_table,
7819 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7820 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7821 Remove objfile parameter, update all callers.
7822
08410482
DE
78232020-02-19 Doug Evans <dje@google.com>
7824
7825 PR rust/25535
7826 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7827 rust_enum_variant calculation.
7828
dfdeeca1
TT
78292020-02-19 Tom Tromey <tromey@adacore.com>
7830
7831 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7832
2ef5453b
TT
78332020-02-19 Tom Tromey <tromey@adacore.com>
7834
7835 * ada-lang.c (cache_symbol): Use obstack_strdup.
7836
9f1528a1
AB
78372020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7838
7839 * configure: Regenerate.
7840
d3c22fa8
TT
78412020-02-19 Tom Tromey <tromey@adacore.com>
7842
7843 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7844 NULL check.
7845
bf84f706
MR
78462020-02-19 Maciej W. Rozycki <macro@wdc.com>
7847
7848 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7849
d1c9b20f
AB
78502020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7851
7852 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7853 if GDBSERVER is not defined.
7854 (riscv_tdesc_cache): Likewise, also store const target_desc.
7855 (STATIC_IN_GDB): Define.
7856 (riscv_create_target_description): Update declaration with
7857 STATIC_IN_GDB.
7858 (riscv_lookup_target_description): New function, only define if
7859 GDBSERVER is not defined.
7860 * arch/riscv.h (riscv_create_target_description): Declare only
7861 when GDBSERVER is defined.
7862 (riscv_lookup_target_description): New declaration when GDBSERVER
7863 is not defined.
7864 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7865 (riscv_linux_read_features): ...this, and return
7866 riscv_gdbarch_features instead of target_desc.
7867 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7868 (riscv_linux_read_description): Rename to...
7869 (riscv_linux_read_features): ...this.
7870 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7871 Update to use riscv_gdbarch_features and
7872 riscv_lookup_target_description.
7873 * riscv-tdep.c (riscv_find_default_target_description): Use
7874 riscv_lookup_target_description instead of
7875 riscv_create_target_description.
7876
373d7ac0
SM
78772020-02-18 Simon Marchi <simon.marchi@efficios.com>
7878
7879 * valprint.c (generic_val_print_enum_1): When printing a flag
7880 enum with value 0 and there is no enumerator with value 0, print
7881 just "0" instead of "(unknown: 0x0)".
7882
b29a2df0
SM
78832020-02-18 Simon Marchi <simon.marchi@efficios.com>
7884
7885 * valprint.c (generic_val_print_enum_1): Print unknown part of
7886 flag enum in hex.
7887
6740f0cc
SM
78882020-02-18 Simon Marchi <simon.marchi@efficios.com>
7889
7890 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7891 flag enums to contain duplicate enumerators.
7892 * valprint.c (generic_val_print_enum_1): Update comment.
7893
edd45eb0
SM
78942020-02-18 Simon Marchi <simon.marchi@efficios.com>
7895
7896 * dwarf2/read.c: Include "count-one-bits.h".
7897 (update_enumeration_type_from_children): If an enumerator has
7898 multiple bits set, don't treat the enumeration as a "flag enum".
7899 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7900 of flag enums have 0 or 1 bit set.
7901
6d0cf446
BE
79022020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7903
7904 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7905 conversion.
7906 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7907 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7908 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7909 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7910 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7911
7001c1b7
SM
79122020-02-18 Simon Marchi <simon.marchi@efficios.com>
7913
7914 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7915
fdb61c6c
SM
79162020-02-14 Simon Marchi <simon.marchi@efficios.com>
7917
7918 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7919 displaced_step_closure_up.
7920 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7921 (struct displaced_step_closure_up):
7922 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7923 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7924 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7925 Likewise.
7926 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7927 * gdbarch.c, gdbarch.h: Re-generate.
7928 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7929 displaced_step_closure_up.
7930 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7931 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7932 * infrun.h (displaced_step_closure_up): New type alias.
7933 (struct displaced_step_inferior_state) <step_closure>: Change
7934 type to displaced_step_closure_up.
7935 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7936 displaced_step_closure_up.
7937 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7938
a4a38eb4
TT
79392020-02-14 Tom Tromey <tom@tromey.com>
7940
7941 * minidebug.c (gnu_debug_key): New global.
7942 (find_separate_debug_file_in_section): Use it.
7943
e8217e61
SM
79442020-02-14 Simon Marchi <simon.marchi@efficios.com>
7945
7946 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7947 std::unique_ptr.
7948 * gdbarch.c: Re-generate.
7949 * gdbarch.h: Re-generate.
7950 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7951 change.
7952 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7953 type to std::unique_ptr.
7954 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7955 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7956 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7957 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7958 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7959 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7960 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7961 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7962 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7963
d8d83535
SM
79642020-02-14 Simon Marchi <simon.marchi@efficios.com>
7965
7966 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7967 std::unique_ptr.
7968 (displaced_step_clear): Rename to...
7969 (displaced_step_reset): ... this. Just call displaced->reset ().
7970 (displaced_step_clear_cleanup): Rename to...
7971 (displaced_step_reset_cleanup): ... this.
7972 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7973 (displaced_step_fixup): Likewise.
7974 (resume_1): Likewise.
7975 (handle_inferior_event): Restore child's memory before calling
7976 displaced_step_fixup on the parent.
7977 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
7978 to std::unique_ptr.
7979 <step_closure>: Change type to std::unique_ptr.
7980
5f661e03
SM
79812020-02-14 Simon Marchi <simon.marchi@efficios.com>
7982
7983 * arm-tdep.c: Include count-one-bits.h.
7984 (cleanup_block_store_pc): Use count_one_bits.
7985 (cleanup_block_load_pc): Use count_one_bits.
7986 (arm_copy_block_xfer): Use count_one_bits.
7987 (thumb2_copy_block_xfer): Use count_one_bits.
7988 (thumb_copy_pop_pc_16bit): Use count_one_bits.
7989 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
7990 (thumb_get_next_pcs_raw): Use count_one_bits.
7991 (arm_get_next_pcs_raw): Use count_one_bits_l.
7992 * arch/arm.c (bitcount): Remove.
7993 * arch/arm.h (bitcount): Remove.
7994
8084e579
TT
79952020-02-14 Tom Tromey <tromey@adacore.com>
7996
7997 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
7998 Update.
7999 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8000 * dwarf2/loc.c (call_site_find_chain_1): Return
8001 unique_xmalloc_ptr.
8002 (call_site_find_chain): Likewise.
8003
258bf0ee
RB
80042020-02-14 Richard Biener <rguenther@suse.de>
8005
8006 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8007 on expression with division operators.
8008
f98a8458
AKS
80092020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8010
8011 * MAINTAINERS (Write After Approval): Adding myself.
8012
d1437c0e
TT
80132020-02-12 Tom Tromey <tom@tromey.com>
8014
8015 * event-loop.c (event_data, gdb_event, event_handler_func):
8016 Remove.
8017
3d4560f7
TT
80182020-02-12 Tom Tromey <tom@tromey.com>
8019
8020 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8021 (dwarf2_frame_objfile_data): Add comment.
8022 (find_comp_unit, set_comp_unit): New functions.
8023 (dwarf2_frame_find_fde): Use find_comp_unit.
8024 (dwarf2_build_frame_info): Use set_comp_unit.
8025
21982304
TT
80262020-02-12 Tom Tromey <tom@tromey.com>
8027
8028 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8029 (comp_unit): Don't initialize objfile.
8030 (execute_cfa_program): Add text_offset parameter.
8031 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8032 (dwarf2_frame_cache): Update.
8033 (dwarf2_build_frame_info): Don't set "objfile" member.
8034
4debb237
TT
80352020-02-12 Tom Tromey <tom@tromey.com>
8036
8037 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8038 (decode_frame_entry): Likewise.
8039 (dwarf2_build_frame_info): Update.
8040
0d404d44
TT
80412020-02-12 Tom Tromey <tom@tromey.com>
8042
8043 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8044 (decode_frame_entry_1): Use the comp_unit obstack.
8045
a7a3ae5c
TT
80462020-02-12 Tom Tromey <tom@tromey.com>
8047
8048 * dwarf2/frame.c (struct comp_unit): Add initializers and
8049 constructor.
8050 (dwarf2_frame_objfile_data): Store a comp_unit.
8051 (dwarf2_frame_find_fde): Update.
8052 (dwarf2_build_frame_info): Use "new".
8053
a9d65418
TT
80542020-02-12 Tom Tromey <tom@tromey.com>
8055
8056 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8057 (dwarf2_fde_table): Typedef for std::vector.
8058 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8059 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8060 (decode_frame_entry): Update.
8061 (dwarf2_build_frame_info): Use "new".
8062
7559c217
CB
80632020-02-12 Christian Biesinger <cbiesinger@google.com>
8064
8065 * arm-tdep.c (arm_gdbarch_init): Update.
8066 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8067 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8068 have_neon, is_m>: Change to bool.
8069
aeefc73c
CB
80702020-02-12 Christian Biesinger <cbiesinger@google.com>
8071
8072 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8073
d27b8e5f
TT
80742020-02-12 Tom Tromey <tom@tromey.com>
8075
8076 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8077
cd5900f3
HD
80782020-02-12 Hannes Domani <ssbssa@yahoo.de>
8079
8080 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8081 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8082
f056b22b
TT
80832020-02-11 Tom Tromey <tom@tromey.com>
8084
8085 * psymtab.h: Update comment.
8086
f92ff6b5
TT
80872020-02-11 Tom Tromey <tom@tromey.com>
8088
8089 * gdb_obstack.h (struct auto_obstack): Use
8090 DISABLE_COPY_AND_ASSIGN.
8091
3fd6912b
TT
80922020-02-11 Tom Tromey <tom@tromey.com>
8093
8094 * dwarf2/frame.h (struct objfile): Don't forward declare.
8095
69ed9b74
CB
80962020-02-11 Christian Biesinger <cbiesinger@google.com>
8097
8098 * cris-tdep.c (cris_supply_gregset): Change signature to match
8099 what struct regset expects.
8100 (cris_regset): New struct.
8101 (fetch_core_registers): Remove.
8102 (cris_iterate_over_regset_sections): New function.
8103 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8104 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8105
bda874f6
CB
81062020-02-11 Christian Biesinger <cbiesinger@google.com>
8107
8108 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8109 registers.
8110
754e1564
CB
81112020-02-11 Christian Biesinger <cbiesinger@google.com>
8112
8113 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8114
8ddd8e0e
SM
81152020-02-11 Simon Marchi <simon.marchi@efficios.com>
8116
8117 * configure: Re-generate.
8118
898e7f60
SM
81192020-02-11 Simon Marchi <simon.marchi@efficios.com>
8120
8121 * configure: Re-generate.
8122
58df732b
SM
81232020-02-11 Simon Marchi <simon.marchi@efficios.com>
8124
8125 * acinclude: Update warning.m4 path.
8126 * warning.m4: Move to gdbsupport.
8127
da5bd37e
TT
81282020-02-11 Tom Tromey <tromey@adacore.com>
8129
8130 * remote.c (remote_console_output): Update.
8131 * printcmd.c (printf_command): Update.
8132 * event-loop.c (gdb_wait_for_event): Update.
8133 * linux-nat.c (sigchld_handler): Update.
8134 * remote-sim.c (gdb_os_write_stdout): Update.
8135 (gdb_os_flush_stdout): Update.
8136 (gdb_os_flush_stderr): Update.
8137 (gdb_os_write_stderr): Update.
8138 * exceptions.c (print_exception): Update.
8139 * remote-fileio.c (remote_fileio_func_read): Update.
8140 (remote_fileio_func_write): Update.
8141 * tui/tui.c (tui_enable): Update.
8142 * tui/tui-interp.c (tui_interp::init): Update.
8143 * utils.c (init_page_info): Update.
8144 (putchar_unfiltered, fputc_unfiltered): Update.
8145 (gdb_flush): Update.
8146 (emit_style_escape): Update.
8147 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8148 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8149 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8150 (stderr_file::write): Update.
8151 (stderr_file::puts): Update.
8152 * ui-file.h (ui_file_isatty, ui_file_write)
8153 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8154 (ui_file_puts): Don't declare.
8155
85f0dd3c
TV
81562020-02-10 Tom de Vries <tdevries@suse.de>
8157
8158 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8159 sentinel to char *.
8160
2e927613
TV
81612020-02-09 Tom de Vries <tdevries@suse.de>
8162
8163 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8164 filename if it matches "<artificial>".
8165
6bafc845
HD
81662020-02-09 Hannes Domani <ssbssa@yahoo.de>
8167
8168 * windows-tdep.c (struct enum_value_name): New struct.
8169 (create_enum): New function.
8170 (windows_get_siginfo_type): Create and use enum types.
8171
7928d571
HD
81722020-02-09 Hannes Domani <ssbssa@yahoo.de>
8173
8174 * NEWS: Mention $_siginfo support for Windows.
8175 * windows-nat.c (handle_exception): Set siginfo_er.
8176 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8177 (windows_xfer_siginfo): New function.
8178 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8179 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8180 (init_windows_gdbarch_data): New function.
8181 (get_windows_gdbarch_data): New function.
8182 (windows_get_siginfo_type): New function.
8183 (windows_init_abi): Register windows_get_siginfo_type.
8184 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8185
6751ebae
TT
81862020-02-08 Tom Tromey <tom@tromey.com>
8187
8188 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8189 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8190 <keep>: Declare method.
8191 <m_keep>: Remove member.
8192 <~cutu_reader>: Remove.
8193 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8194 (cutu_reader::cutu_reader): Update.
8195 (cutu_reader::keep): Rename from ~cutu_reader.
8196 (process_psymtab_comp_unit, build_type_psymtabs_1)
8197 (process_skeletonless_type_unit, load_partial_comp_unit)
8198 (load_full_comp_unit, dwarf2_read_addr_index)
8199 (read_signatured_type): Update.
8200
135f5437
TT
82012020-02-08 Tom Tromey <tom@tromey.com>
8202
8203 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8204 "want_partial_unit" parameter.
8205 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8206 Inline check for DW_TAG_partial_unit.
8207 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8208
9f66ff1c
TT
82092020-02-08 Tom Tromey <tom@tromey.com>
8210
8211 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8212 read.c.
8213 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8214 read.c.
8215
c8a7a66f
TT
82162020-02-08 Tom Tromey <tom@tromey.com>
8217
8218 * dwarf2/read.c (read_address): Move to comp-unit.c.
8219 (dwarf2_rnglists_process, dwarf2_ranges_process)
8220 (read_attribute_value, dwarf_decode_lines_1)
8221 (var_decode_location, decode_locdesc): Update.
8222 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8223 read.c. Remove "cu" parameter.
8224 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8225 method.
8226
8266302d
TT
82272020-02-08 Tom Tromey <tom@tromey.com>
8228
8229 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8230 (read_indirect_line_string): Update.
8231 * dwarf2/comp-unit.c (read_offset): Remove.
8232 (read_comp_unit_head): Update.
8233 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8234 method.
8235 (read_offset): Don't declare.
8236
4057dfde
TT
82372020-02-08 Tom Tromey <tom@tromey.com>
8238
8239 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8240 * dwarf2/read.c (struct comp_unit_head): Move to
8241 dwarf2/comp-unit.h.
8242 (enum class rcuh_kind): Move to comp-unit.h.
8243 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8244 (read_comp_unit_head, error_check_comp_unit_head)
8245 (read_and_check_comp_unit_head): Move to comp-unit.c.
8246 (read_offset, dwarf_unit_type_name): Likewise.
8247 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8248 (cutu_reader::cutu_reader, read_call_site_scope)
8249 (find_partial_die, follow_die_offset): Update.
8250 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8251
24aa364d
TT
82522020-02-08 Tom Tromey <tom@tromey.com>
8253
8254 * dwarf2/read.c (read_offset_1): Move to leb.c.
8255 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8256 (dwarf_decode_macro_bytes): Update.
8257 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8258 * dwarf2/leb.h (read_offset): Declare.
8259
2c7d5afc
TT
82602020-02-08 Tom Tromey <tom@tromey.com>
8261
8262 * dwarf2/read.c (dwarf2_section_size): Remove.
8263 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8264 Update.
8265 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8266
4075cb26
TT
82672020-02-08 Tom Tromey <tom@tromey.com>
8268
8269 * dwarf2/read.c (read_initial_length): Move to leb.c.
8270 * dwarf2/leb.h (read_initial_length): Declare.
8271 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8272 handle_nonstd parameter.
8273 * dwarf2/frame.c (read_initial_length): Remove.
8274 (decode_frame_entry_1): Update.
8275
09ba997f
TT
82762020-02-08 Tom Tromey <tom@tromey.com>
8277
8278 * dwarf2/loc.c (dwarf2_find_location_expression)
8279 (dwarf_evaluate_loc_desc::get_tls_address)
8280 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8281 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8282 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8283 (dwarf2_compile_property_to_c)
8284 (dwarf2_loc_desc_get_symbol_read_needs)
8285 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8286 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8287 (loclist_describe_location, loclist_tracepoint_var_ref)
8288 (loclist_generate_c_location): Update.
8289 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8290 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8291 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8292 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8293 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8294 (dwarf2_per_cu_data::addr_size)
8295 (dwarf2_per_cu_data::ref_addr_size)
8296 (dwarf2_per_cu_data::text_offset)
8297 (dwarf2_per_cu_data::addr_type): Now methods.
8298 (per_cu_header_read_in): Make per_cu "const".
8299 (dwarf2_version): Remove.
8300 (dwarf2_per_cu_data::int_type): Now a method.
8301 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8302 (set_die_type, read_array_type, read_subrange_index_type)
8303 (read_tag_string_type, read_subrange_type): Update.
8304 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8305 offset_size, ref_addr_size, text_offset, addr_type, version,
8306 objfile, int_type, addr_sized_int_type>: Declare methods.
8307
96c738c0
TT
83082020-02-08 Tom Tromey <tom@tromey.com>
8309
8310 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8311 Move earlier.
8312
8fdd972c
TT
83132020-02-08 Tom Tromey <tom@tromey.com>
8314
8315 * dwarf2/read.h (dwarf_line_debug): Declare.
8316 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8317 * dwarf2/read.c: Move line_header code to new files.
8318 (dwarf_line_debug): No longer static.
8319 * dwarf2/line-header.c: New file.
8320 * dwarf2/line-header.h: New file.
8321
03075812
TT
83222020-02-08 Tom Tromey <tom@tromey.com>
8323
8324 * dwarf2/read.c (struct line_header) <file_full_name,
8325 file_file_name>: Return unique_xmalloc_ptr.
8326 (line_header::file_file_name): Update.
8327 (line_header::file_full_name): Update.
8328 (dw2_get_file_names_reader): Update.
8329 (macro_start_file): Update.
8330
bb822404
TT
83312020-02-08 Tom Tromey <tom@tromey.com>
8332
8333 * dwarf2/read.c (struct line_header) <file_full_name,
8334 file_file_name>: Declare methods.
8335 (dw2_get_file_names_reader): Update.
8336 (file_file_name): Now a method.
8337 (file_full_name): Likewise.
8338 (macro_start_file): Update.
8339
009b64fc
TT
83402020-02-08 Tom Tromey <tom@tromey.com>
8341
8342 * dwarf2/read.c (dwarf_always_disassemble)
8343 (show_dwarf_always_disassemble): Move to loc.c.
8344 (_initialize_dwarf2_read): Move "always-disassemble" registration
8345 to loc.c.
8346 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8347 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8348 static.
8349 (show_dwarf_always_disassemble): Move from read.c.
8350 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8351
5895093f
TT
83522020-02-08 Tom Tromey <tom@tromey.com>
8353
8354 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8355 (create_quick_file_names_table): Return htab_up.
8356 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8357 Update.
8358 * dwarf2/read.h (struct dwarf2_per_objfile)
8359 <quick_file_names_table>: Now htab_up.
8360
b3b32279
TT
83612020-02-08 Tom Tromey <tom@tromey.com>
8362
8363 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8364
1d33d811
TT
83652020-02-08 Tom Tromey <tom@tromey.com>
8366
8367 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8368 Rewrite.
8369 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8370 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8371 (abbrev_table::abbrev_table): No longer inline.
8372 (ABBREV_HASH_SIZE): Remove.
8373 (abbrev_table::m_abbrevs): Now an htab_up.
8374
86de1d91
TT
83752020-02-08 Tom Tromey <tom@tromey.com>
8376
8377 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8378 (cutu_reader): Update.
8379 (build_type_psymtabs_1): Update.
8380 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8381 (abbrev_table::alloc_abbrev): Update.
8382 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8383 (abbrev_table::read): New static method, renamed from
8384 abbrev_table_read_table.
8385 (abbrev_table::alloc_abbrev)
8386 (abbrev_table::add_abbrev): Now private.
8387 (abbrev_table::abbrev_table): Now private.
8388 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8389
0335378b
TT
83902020-02-08 Tom Tromey <tom@tromey.com>
8391
8392 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8393 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8394 htab_up.
8395
48b490f2
TT
83962020-02-08 Tom Tromey <tom@tromey.com>
8397
8398 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8399 htab_up.
8400 (lookup_dwo_unit_in_dwp): Update.
8401 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8402 on obstack.
8403
bc68fb19
TT
84042020-02-08 Tom Tromey <tom@tromey.com>
8405
8406 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8407 obstack.
8408
d15acc42
TT
84092020-02-08 Tom Tromey <tom@tromey.com>
8410
8411 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8412 line_header_hash.
8413 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8414 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8415 Change type to htab_up.
8416
eaa5fa8b
TT
84172020-02-08 Tom Tromey <tom@tromey.com>
8418
8419 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8420 htab_up. Don't allocate on obstack.
8421 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8422 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8423 Change type to htab_up.
8424
b0b6a987
TT
84252020-02-08 Tom Tromey <tom@tromey.com>
8426
8427 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8428 Change type to htab_up.
8429 * dwarf2/read.c (create_signatured_type_table_from_index)
8430 (create_signatured_type_table_from_debug_names)
8431 (create_all_type_units, add_type_unit)
8432 (lookup_dwo_signatured_type, lookup_signatured_type)
8433 (process_skeletonless_type_unit): Update.
8434 (create_debug_type_hash_table, create_debug_types_hash_table):
8435 Change type of types_htab.
8436 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8437 htab_up. Don't allocate on obstack.
8438 (create_cus_hash_table): Change type of cus_htab parameter.
8439 (struct dwo_file) <cus, tus>: Now htab_up.
8440 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8441 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8442 (queue_and_load_all_dwo_tus): Update.
8443 * dwarf2/index-write.c (write_gdbindex): Update.
8444 (write_debug_names): Update.
8445
39856def
TT
84462020-02-08 Tom Tromey <tom@tromey.com>
8447
8448 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8449 dwarf2/read.c. Remove "next" member. Add constructor ntad
8450 destructor.
8451 (struct dwarf2_per_objfile) <queue>: New member.
8452 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8453 dwarf2/read.h.
8454 (dwarf2_queue, dwarf2_queue_tail): Remove.
8455 (class dwarf2_queue_guard): Add parameter to constructor. Use
8456 DISABLE_COPY_AND_ASSIGN.
8457 <m_per_objfile>: New member.
8458 <~dwarf2_queue_guard>: Rewrite.
8459 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8460 Update.
8461 (~dwarf2_queue_item): New.
8462
3e225074
TT
84632020-02-08 Tom Tromey <tom@tromey.com>
8464
8465 * dwarf2/read.c (struct die_info) <has_children>: New member.
8466 (dw2_get_file_names_reader): Remove has_children.
8467 (dw2_get_file_names): Update.
8468 (read_cutu_die_from_dwo): Remove has_children.
8469 (cutu_reader::init_tu_and_read_dwo_dies)
8470 (cutu_reader::cutu_reader): Update.
8471 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8472 Remove has_children.
8473 (build_type_psymtabs_1, process_skeletonless_type_unit)
8474 (load_partial_comp_unit, load_full_comp_unit): Update.
8475 (create_dwo_cu_reader): Remove has_children.
8476 (create_cus_hash_table, read_die_and_children): Update.
8477 (read_full_die_1,read_full_die): Remove has_children.
8478 (read_signatured_type): Update.
8479 (class cutu_reader) <has_children>: Remove.
8480
82ca8957
TT
84812020-02-08 Tom Tromey <tom@tromey.com>
8482
8483 * dwarf2/expr.c: Rename from dwarf2expr.c.
8484 * dwarf2/expr.h: Rename from dwarf2expr.h.
8485 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8486 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8487 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8488 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8489 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8490 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8491 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8492 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8493 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8494 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8495 * dwarf2/loc.c: Rename from dwarf2loc.c.
8496 * dwarf2/loc.h: Rename from dwarf2loc.h.
8497 * dwarf2/read.c: Rename from dwarf2read.c.
8498 * dwarf2/read.h: Rename from dwarf2read.h.
8499 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8500 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8501 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8502 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8503 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8504 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8505 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8506 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8507 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8508 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8509 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8510 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8511 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8512 Update.
8513 * Makefile.in (COMMON_SFILES): Update.
8514 (HFILES_NO_SRCDIR): Update.
8515
9e35d499
TT
85162020-02-08 Tom Tromey <tom@tromey.com>
8517
8518 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8519 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8520
1eba2311
TT
85212020-02-08 Tom Tromey <tom@tromey.com>
8522
8523 * dwarf2read.h (struct die_info): Don't declare.
8524
e41c2da2
TT
85252020-02-08 Tom Tromey <tom@tromey.com>
8526
8527 * dwarf2read.h (die_info_ptr): Remove typedef.
8528
4fc6c0d5
TT
85292020-02-08 Tom Tromey <tom@tromey.com>
8530
8531 * dwarf2read.c (read_call_site_scope)
8532 (handle_data_member_location, dwarf2_add_member_fn)
8533 (mark_common_block_symbol_computed, read_common_block)
8534 (attr_to_dynamic_prop, partial_die_info::read)
8535 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8536 (dwarf2_symbol_mark_computed, set_die_type): Update.
8537 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8538 method.
8539 (attr_form_is_block): Don't declare.
8540 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8541
cd6c91b4
TT
85422020-02-08 Tom Tromey <tom@tromey.com>
8543
8544 * dwarf2read.c (dwarf2_find_base_address, )
8545 (read_call_site_scope, rust_containing_type)
8546 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8547 (handle_data_member_location, dwarf2_add_member_fn)
8548 (get_alignment, read_structure_type, process_structure_scope)
8549 (mark_common_block_symbol_computed, read_common_block)
8550 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8551 (partial_die_info::read, read_attribute_value, new_symbol)
8552 (lookup_die_type, dwarf2_get_ref_die_offset)
8553 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8554 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8555 (dwarf2_symbol_mark_computed): Update.
8556 * dwarf2/attribute.h (struct attribute) <value_as_address,
8557 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8558 methods.
8559 (value_as_address, attr_form_is_section_offset)
8560 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8561 * dwarf2/attribute.c (attribute::value_as_address)
8562 (attribute::form_is_section_offset, attribute::form_is_constant)
8563 (attribute::form_is_ref): Now methods.
8564
162dce55
TT
85652020-02-08 Tom Tromey <tom@tromey.com>
8566
8567 * dwarf2read.c (struct attribute, DW_STRING)
8568 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8569 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8570 (attr_form_is_block, attr_form_is_section_offset)
8571 (attr_form_is_constant, attr_form_is_ref): Move.
8572 * dwarf2/attribute.h: New file.
8573 * dwarf2/attribute.c: New file, from dwarf2read.c.
8574 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8575
3054dd54
TT
85762020-02-08 Tom Tromey <tom@tromey.com>
8577
8578 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8579 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8580 Move.
8581 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8582 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8583 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8584 abbrev.c.
8585 * dwarf2/abbrev.h: New file.
8586 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8587 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8588
96b79293
TT
85892020-02-08 Tom Tromey <tom@tromey.com>
8590
8591 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8592 (dwarf2_section_size, dwarf2_get_section_info)
8593 (create_signatured_type_table_from_debug_names)
8594 (create_addrmap_from_aranges, read_debug_names_from_section)
8595 (get_gdb_index_contents_from_section, read_comp_unit_head)
8596 (error_check_comp_unit_head, read_abbrev_offset)
8597 (create_debug_type_hash_table, init_cu_die_reader)
8598 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8599 (read_comp_units_from_section, create_cus_hash_table)
8600 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8601 (create_dwp_v2_section, dwarf2_rnglists_process)
8602 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8603 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8604 (read_indirect_string_from_dwz, read_addr_index_1)
8605 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8606 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8607 (fill_in_loclist_baton): Update.
8608 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8609 get_containing_section, get_bfd_owner, get_bfd_section,
8610 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8611 (dwarf2_read_section, get_section_name, get_section_file_name)
8612 (get_containing_section, get_section_bfd_owner)
8613 (get_section_bfd_section, get_section_name, get_section_file_name)
8614 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8615 declare.
8616 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8617 (dwarf2_section_info::get_bfd_owner)
8618 (dwarf2_section_info::get_bfd_section)
8619 (dwarf2_section_info::get_name)
8620 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8621 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8622 (dwarf2_section_info::read): Now methods.
8623 * dwarf-index-write.c (class debug_names): Update.
8624
2c86cff9
TT
86252020-02-08 Tom Tromey <tom@tromey.com>
8626
8627 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8628 Move to dwarf2/section.h.
8629 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8630 (get_section_bfd_section, get_section_name)
8631 (get_section_file_name, get_section_id, get_section_flags)
8632 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8633 dwarf2/section.c.
8634 * dwarf2/section.h: New file.
8635 * dwarf2/section.c: New file, from dwarf2read.c.
8636 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8637
f4382c45
TT
86382020-02-08 Tom Tromey <tom@tromey.com>
8639
8640 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8641 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8642 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8643 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8644 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8645 * dwarf2/leb.h: New file, from dwarf2read.c.
8646 * dwarf2/leb.c: New file, from dwarf2read.c.
8647 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8648 Remove.
8649 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8650 (COMMON_SFILES): Add dwarf2/leb.c.
8651
01840b7a
JB
86522020-02-08 Joel Brobecker <brobecker@adacore.com>
8653
8654 GDB 9.1 released.
8655
dfcb27e4
IB
86562020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8657
8658 PR gdb/25190:
aac66a4c
SM
8659 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8660 * gdb/remote.c (remote_console_output): Update.
8661 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8662 (ui_file_puts): ...this.
8663 * gdb/ui-file.h (ui_file_puts): Add declaration.
8664 * gdb/utils.c (emit_style_escape): Update.
8665 (flush_wrap_buffer): Update.
8666 (fputs_maybe_filtered): Update.
8667 (fputs_unfiltered): Add function.
dfcb27e4 8668
faa17681
IB
86692020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8670
aac66a4c
SM
8671 * gdb/event-loop.c (gdb_wait_for_event): Update.
8672 * gdb/printcmd.c (printf_command): Update.
8673 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8674 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8675 (gdb_os_flush_stderr): Update.
8676 * gdb/remote.c (remote_console_output): Update.
8677 * gdb/ui-file.c (gdb_flush): Rename to...
8678 (ui_file_flush): ...this.
8679 (stderr_file::write): Update.
8680 (stderr_file::puts): Update.
8681 * gdb/ui-file.h (gdb_flush): Rename to...
8682 (ui_file_flush): ...this.
8683 * gdb/utils.c (gdb_flush): Add function.
8684 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8685
5abbbe1d
TT
86862020-02-07 Tom Tromey <tromey@adacore.com>
8687
8688 PR breakpoints/24915:
8689 * source.c (find_and_open_source): Do not check basenames_may_differ.
8690
919adfe8
TT
86912020-02-07 Tom Tromey <tom@tromey.com>
8692
8693 * README: Update gdbserver documentation.
8694 * gdbserver: Move to top level.
8695 * configure.tgt (build_gdbserver): Remove.
8696 * configure.ac: Remove --enable-gdbserver.
8697 * configure: Rebuild.
8698 * Makefile.in (distclean): Don't mention gdbserver.
8699
1d5d29e7
SV
87002020-02-06 Shahab Vahedi <shahab@synopsys.com>
8701
8702 * source-cache.c (source_cache::ensure): Surround
8703 get_plain_source_lines with a try/catch.
8704 (source_cache::get_line_charpos): Get rid of try/catch
8705 and only check for the return value of "ensure".
8706 * tui/tui-source.c (tui_source_window::set_contents):
8707 Simplify "nlines" calculation.
8708
6eb1129c
SV
87092020-02-06 Shahab Vahedi <shahab@synopsys.com>
8710
8711 * MAINTAINERS (Write After Approval): Add myself.
8712
c6a42d11
CB
87132020-02-05 Christian Biesinger <cbiesinger@google.com>
8714
8715 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8716 function call.
8717
c8ecdda6
CB
87182020-02-05 Christian Biesinger <cbiesinger@google.com>
8719
8720 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8721
f6480e70
MR
87222020-02-05 Maciej W. Rozycki <macro@wdc.com>
8723
8724 * nat/riscv-linux-tdesc.h: New file.
8725 * nat/riscv-linux-tdesc.c: New file, taking code from...
8726 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8727 ... here.
8728 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8729 NATDEPFILES.
8730
dcc9fbc6
AB
87312020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8732
8733 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8734 we don't set the fake simulator ptid to the null_ptid.
8735
719546c4
SM
87362020-02-03 Simon Marchi <simon.marchi@efficios.com>
8737
8738 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8739 * gdbthread.h (class thread_info) <resumed>: Likewise.
8740 * infrun.c (resume_1): Likewise.
8741 (proceed): Likewise.
8742 (infrun_thread_stop_requested): Likewise.
8743 (stop_all_threads): Likewise.
8744 (handle_inferior_event): Likewise.
8745 (restart_threads): Likewise.
8746 (finish_step_over): Likewise.
8747 (keep_going_stepped_thread): Likewise.
8748 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8749 (linux_handle_extended_wait): Likewise.
8750 * record-btrace.c (get_thread_current_frame_id): Likewise.
8751 * record-full.c (record_full_wait_1): Likewise.
8752 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8753 * target.c (target_resume): Likewise.
8754 * thread.c (set_running_thread): Likewise.
8755
e409c542
AKS
87562020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8757
8758 * f-valprint.c (f77_print_array_1): Changed datatype of index
8759 variable to LONGEST from int to enable it to contain bound
8760 values correctly.
8761
ee98c0da
MR
87622020-02-03 Maciej W. Rozycki <macro@wdc.com>
8763
8764 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8765 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8766 offsets according to FLEN determined.
8767 (riscv_linux_nat_target::read_description): Determine FLEN
8768 dynamically.
8769 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8770 according to FLEN determined.
8771 (riscv_linux_nat_target::store_registers): Likewise.
8772
aa66aac4
SV
87732020-02-01 Shahab Vahedi <shahab@synopsys.com>
8774
8775 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8776 when reg->group is empty and reggroup is not.
8777
fd9faca8
TT
87782020-01-31 Tom Tromey <tromey@adacore.com>
8779
8780 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8781 Call beneath target's mourn_inferior after unpushing.
8782
42330a68
AB
87832020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8784
8785 PR tui/9765
8786 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8787 have enough lines to fill the screen, still return the lowest
8788 address we found.
8789
7a27a45b
AB
87902020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8791
8792 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8793 '-', '<', and '>' commands.
8794
c47f70e2
PA
87952020-01-29 Pedro Alves <palves@redhat.com>
8796 Sergio Durigan Junior <sergiodj@redhat.com>
8797
8798 * infcmd.c (construct_inferior_arguments): Assert that
8799 'argc' is greater than 0.
8800
5133a315
LM
88012020-01-29 Luis Machado <luis.machado@linaro.org>
8802
8803 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8804 (BRK_INSN_MASK): Define to 0xd4200000.
8805 (aarch64_program_breakpoint_here_p): New function.
8806 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8807 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8808 breakpoint.c.
8809 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8810 breakpoint.h
8811 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8812 call gdbarch_program_breakpoint_here_p.
8813 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8814 default_program_breakpoint_here_p, changed return type to bool and
8815 simplified.
8816 * breakpoint.h (program_breakpoint_here): Moved prototype to
8817 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8818 return type to bool.
8819 * gdbarch.c: Regenerate.
8820 * gdbarch.h: Regenerate.
8821 * gdbarch.sh (program_breakpoint_here_p): New method.
8822 * infrun.c (handle_signal_stop): Call
8823 gdbarch_program_breakpoint_here_p.
8824
168f8c6b
TT
88252020-01-26 Tom Tromey <tom@tromey.com>
8826
8827 * ctfread.c (struct ctf_fp_info): Reindent.
8828 (_initialize_ctfread): Remove.
8829
128a391f
TT
88302020-01-26 Tom Tromey <tom@tromey.com>
8831
8832 * psymtab.c (partial_map_expand_apply)
8833 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8834 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8835 (psym_print_stats, psym_expand_symtabs_for_function)
8836 (psym_map_symbol_filenames, psym_map_matching_symbols)
8837 (psym_expand_symtabs_matching)
8838 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8839 (maintenance_check_psymtabs): Use new methods.
8840 * psympriv.h (struct partial_symtab) <readin_p,
8841 get_compunit_symtab>: New methods.
8842 <readin, compunit_symtab>: Remove members.
8843 (struct standard_psymtab): New.
8844 (struct legacy_psymtab): Derive from standard_psymtab.
8845 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8846 standard_psymtab.
8847 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8848
0494dbec
TT
88492020-01-26 Tom Tromey <tom@tromey.com>
8850
8851 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8852 read_dependencies. Add assert.
8853 * psymtab.c (partial_symtab::read_dependencies): New method.
8854 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8855 method.
8856 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8857 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8858 read_dependencies.
8859 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8860 Add assert.
8861
8566b89b
TT
88622020-01-26 Tom Tromey <tom@tromey.com>
8863
8864 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8865 Call expand_psymtab.
8866 (xcoff_read_symtab): Call expand_psymtab.
8867 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8868 legacy_expand_psymtab.
8869 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8870 method.
8871 (struct legacy_psymtab) <expand_psymtab>: Implement.
8872 <legacy_expand_psymtab>: New member.
8873 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8874 (parse_partial_symbols): Set legacy_expand_psymtab.
8875 (psymtab_to_symtab_1): Change argument order. Call
8876 expand_psymtab.
8877 (new_psymtab): Set legacy_expand_psymtab.
8878 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8879 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8880 expand_psymtab.
8881 (dwarf2_psymtab::expand_psymtab): Rename from
8882 psymtab_to_symtab_1. Call expand_psymtab.
8883 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8884 (dbx_end_psymtab): Likewise.
8885 (dbx_psymtab_to_symtab_1): Change argument order. Call
8886 expand_psymtab.
8887 (dbx_read_symtab): Call expand_psymtab.
8888 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8889 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8890 (ctf_psymtab::read_symtab): Call expand_psymtab.
8891
077cbab2
TT
88922020-01-26 Tom Tromey <tom@tromey.com>
8893
8894 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8895 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8896 messages.
8897 * mdebugread.c (mdebug_read_symtab): Remove prints.
8898 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8899 assert.
8900 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8901
891813be
TT
89022020-01-26 Tom Tromey <tom@tromey.com>
8903
8904 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8905 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8906 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8907 legacy_symtab.
8908 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8909 * psymtab.c (psymtab_to_symtab): Call method.
8910 (dump_psymtab): Update.
8911 * psympriv.h (struct partial_symtab): Add virtual destructor.
8912 <read_symtab>: New method.
8913 (struct legacy_symtab): New.
8914 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8915 (struct pst_map) <pst>: Now a legacy_psymtab.
8916 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8917 (new_psymtab): Use legacy_psymtab.
8918 * dwarf2read.h (struct dwarf2_psymtab): New.
8919 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8920 * dwarf2read.c (dwarf2_create_include_psymtab)
8921 (dwarf2_build_include_psymtabs, create_type_unit_group)
8922 (create_partial_symtab, process_psymtab_comp_unit_reader)
8923 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8924 (set_partial_user): Use dwarf2_psymtab.
8925 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8926 (psymtab_to_symtab_1, process_full_comp_unit)
8927 (process_full_type_unit, dwarf2_ranges_read)
8928 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8929 (dwarf_decode_lines): Use dwarf2_psymtab.
8930 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8931 (add_address_entry_worker, write_one_signatured_type)
8932 (recursively_count_psymbols, recursively_write_psymbols)
8933 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8934 (write_debug_names): Likewise.
8935 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8936 <pst>: Now a legacy_psymtab.
8937 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8938 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8939 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8940 * ctfread.c (struct ctf_psymtab): New.
8941 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8942 ctf_psymtab.
8943 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8944 (create_partial_symtab): Return a ctf_psymtab.
8945 (scan_partial_symbols): Update.
8946
c3693a1d
TT
89472020-01-26 Tom Tromey <tom@tromey.com>
8948
8949 * xcoffread.c (xcoff_start_psymtab): Use new.
8950 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8951 renamed from start_psymtab_common.
8952 * psympriv.h (struct partial_symtab): Add new constructor.
8953 (start_psymtab_common): Don't declare.
8954 * mdebugread.c (parse_partial_symbols): Use new.
8955 * dwarf2read.c (create_partial_symtab): Use new.
8956 * dbxread.c (start_psymtab): Use new.
8957 * ctfread.c (create_partial_symtab): Use new.
8958
32caafd0
TT
89592020-01-26 Tom Tromey <tom@tromey.com>
8960
8961 * xcoffread.c (xcoff_end_psymtab): Use new.
8962 * psymtab.c (start_psymtab_common): Use new.
8963 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8964 Update.
8965 * psympriv.h (struct partial_symtab): Add parameters to
8966 constructor. Don't inline.
8967 (allocate_psymtab): Don't declare.
8968 * mdebugread.c (new_psymtab): Use new.
8969 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8970 * dbxread.c (dbx_end_psymtab): Use new.
8971
abaa2f23
TT
89722020-01-26 Tom Tromey <tom@tromey.com>
8973
8974 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8975 allocate_psymtab. Update documentation.
8976 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8977 allocate_psymtab. Do not use new.
8978 (allocate_psymtab): Use new. Update.
8979
6d94535f
TT
89802020-01-26 Tom Tromey <tom@tromey.com>
8981
8982 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8983 * psymtab.c (psym_print_stats): Update.
8984 * psympriv.h (struct partial_symtab) <readin,
8985 psymtabs_addrmap_supported, anonymous>: Now bool.
8986 * mdebugread.c (psymtab_to_symtab_1): Update.
8987 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
8988 (build_type_psymtabs_reader, psymtab_to_symtab_1)
8989 (process_full_comp_unit, process_full_type_unit): Update.
8990 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8991 * ctfread.c (psymtab_to_symtab): Update.
8992
6f17252b
TT
89932020-01-26 Tom Tromey <tom@tromey.com>
8994
8995 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
8996 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
8997 * psymtab.c (psymtab_storage): Delete psymtabs.
8998 (psymtab_storage::allocate_psymtab): Use new.
8999 (psymtab_storage::discard_psymtab): Use delete.
9000 * psympriv.h (struct partial_symtab): Add constructor and
9001 initializers.
9002
f6f1cebc
TT
90032020-01-26 Tom Tromey <tom@tromey.com>
9004
9005 * machoread.c: Do not include psympriv.h.
9006
e47e48f6
PW
90072020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9008
9009 * NEWS: Mention the new option and the set/show commands.
9010
a2fedca9
PW
90112020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9012
9013 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9014 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9015 (validate_exec_file): New variables, enums, functions.
9016 (exec_file_locate_attach, print_section_info): Style the filenames.
9017 (_initialize_exec): Install show_exec_file_mismatch_command and
9018 set_exec_file_mismatch_command.
9019 * gdbcore.h (validate_exec_file): Declare.
9020 * infcmd.c (attach_command): Call validate_exec_file.
9021 * remote.c ( remote_target::remote_add_inferior): Likewise.
9022
7ffa82e1
AB
90232020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9024
9025 * frame.c (find_frame_sal): Move call to get_next_frame into more
9026 inner scope.
9027 * inline-frame.c (inilne_state) <inline_state>: Update argument
9028 types.
9029 (inilne_state) <skipped_symbol>: Rename to...
9030 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9031 (skip_inline_frames): Build vector of skipped symbols and use this
9032 to reate the inline_state.
9033 (inline_skipped_symbol): Add a comment and some assertions, fetch
9034 skipped symbol from the list.
9035
3d92a3e3
AB
90362020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9037
9038 * buildsym.c (lte_is_less_than): Delete.
9039 (buildsym_compunit::end_symtab_with_blockvector): Create local
9040 lambda function to sort line table entries, and use
9041 std::stable_sort instead of std::sort.
9042 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9043 markers when looking for a previous line.
9044
94a72be7
AB
90452020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9046
9047 * dwarf2read.c (lnp_state_machine::record_line): Include
9048 end_sequence parameter in debug print out. Record the line if we
9049 are at an end_sequence marker even if it's not the start of a
9050 statement.
9051 * symmisc.c (maintenance_print_one_line_table): Print end of
9052 sequence markers with 'END' not '0'.
9053
53af73bf
PA
90542020-01-24 Pedro Alves <palves@redhat.com>
9055
9056 PR gdb/25410
9057 * thread.c (scoped_restore_current_thread::restore): Use
9058 switch_to_inferior_no_thread.
9059 * exec.c: Include "progspace-and-thread.h".
9060 (add_target_sections, remove_target_sections):
9061 scoped_restore_current_pspace_and_thread instead of
9062 scoped_restore_current_thread.
9063 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9064 and aspace to the inferior before calling clone_program_space.
9065 Remove stale comment.
9066
3050c6f4
CB
90672020-01-24 Christian Biesinger <cbiesinger@google.com>
9068
9069 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9070 (arm_netbsd_nat_target::fetch_registers): ...this.
9071 (arm_nbsd_nat_target::store_registers): Rename to...
9072 (arm_netbsd_nat_target::store_registers): ...this.
9073
73685c7e
CB
90742020-01-24 Christian Biesinger <cbiesinger@google.com>
9075
9076 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9077 register_t.
9078
89203d40
CB
90792020-01-24 Christian Biesinger <cbiesinger@google.com>
9080
9081 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9082 Update comment.
9083 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9084 Likewise.
9085 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9086 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9087 the correct replacement (iterate_over_regset_sections).
9088 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9089 Update comment.
9090
1ba1ac88
AB
90912020-01-24 Graham Markall <graham.markall@embecosm.com>
9092
9093 PR gdb/23718
9094 * gdb/python/python.c (execute_gdb_command): Call
9095 async_enable_stdin in catch block.
9096
f3364a6d
AB
90972020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9098
9099 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9100 SWITCH_THRU_ALL_UIS.
9101
733d0a67
AB
91022020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9103
9104 PR tui/9765
9105 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9106 comment, add extra parameter, and update to store previous symbol
9107 when appropriate.
9108 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9109 add extra parameter.
9110 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9111 remove unneeded parameter, add try/catch around gdb_print_insn,
9112 rewrite to add items to asm_lines vector.
9113 (tui_find_backward_disassembly_start_address): New function.
9114 (tui_find_disassembly_address): Updated throughout.
9115 (tui_disasm_window::set_contents): Update for changes to
9116 tui_disassemble.
9117 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9118 number of lines to scroll.
9119
b3b3bada
SM
91202020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9121
9122 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9123 (SECT_OFF_DATA): Likewise.
9124 (SECT_OFF_RODATA): Likewise.
9125 (SECT_OFF_TEXT): Likewise.
9126 (SECT_OFF_BSS): Likewise.
9127 (struct objfile) <text_section_offset, data_section_offset>: New
9128 methods.
9129 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9130 objfile::text_section_offset.
9131 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9132 * coffread.c (coff_symtab_read): Likewise.
9133 (enter_linenos): Likewise.
9134 (process_coff_symbol): Likewise.
9135 * ctfread.c (get_objfile_text_range): Likewise.
9136 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9137 Use objfile::data_section_offset.
9138 * dwarf2-frame.c (execute_cfa_program): Use
9139 objfile::text_section_offset.
9140 (dwarf2_frame_find_fde): Likewise.
9141 * dwarf2read.c (create_addrmap_from_index): Likewise.
9142 (create_addrmap_from_aranges): Likewise.
9143 (dw2_find_pc_sect_compunit_symtab): Likewise.
9144 (process_psymtab_comp_unit_reader): Likewise.
9145 (add_partial_symbol): Likewise.
9146 (add_partial_subprogram): Likewise.
9147 (process_full_comp_unit): Likewise.
9148 (read_file_scope): Likewise.
9149 (read_func_scope): Likewise.
9150 (read_lexical_block_scope): Likewise.
9151 (read_call_site_scope): Likewise.
9152 (dwarf2_rnglists_process): Likewise.
9153 (dwarf2_ranges_process): Likewise.
9154 (dwarf2_ranges_read): Likewise.
9155 (dwarf_decode_lines_1): Likewise.
9156 (new_symbol): Likewise.
9157 (dwarf2_fetch_die_loc_sect_off): Likewise.
9158 (dwarf2_per_cu_text_offset): Likewise.
9159 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9160 * hppa-tdep.c (read_unwind_info): Likewise.
9161 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9162 * psympriv.h (struct partial_symtab): Likewise.
9163 * psymtab.c (find_pc_sect_psymtab): Likewise.
9164 * solib-svr4.c (enable_break): Likewise.
9165 * stap-probe.c (relocate_address): Use
9166 objfile::data_section_offset.
9167 * xcoffread.c (enter_line_range): Use
9168 objfile::text_section_offset.
9169 (read_xcoff_symtab): Likewise.
9170
ab53f382
SM
91712020-01-23 Simon Marchi <simon.marchi@efficios.com>
9172
9173 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9174 declaration to narrower scopes.
9175
e7eee665
SM
91762020-01-23 Simon Marchi <simon.marchi@efficios.com>
9177
9178 * darwin-nat.h (struct darwin_exception_msg, enum
9179 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9180 Move up.
9181 (class darwin_nat_target) <wait_1, check_new_threads,
9182 decode_exception_message, decode_message, stop_inferior,
9183 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9184 * darwin-nat.c (darwin_check_new_threads): Rename to...
9185 (darwin_nat_target::check_new_threads): ... this.
9186 (darwin_suspend_inferior_it): Remove.
9187 (darwin_decode_exception_message): Rename to...
9188 (darwin_nat_target::decode_exception_message): ... this.
9189 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9190 (darwin_decode_message): Rename to...
9191 (darwin_nat_target::decode_message): ... this.
9192 (cancel_breakpoint): Rename to...
9193 (darwin_nat_target::cancel_breakpoint): ... this.
9194 (darwin_wait): Rename to...
9195 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9196 instead of iterate_over_inferiors.
9197 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9198 (darwin_stop_inferior): Rename to...
9199 (darwin_nat_target::stop_inferior): ... this.
9200 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9201 (darwin_init_thread_list): Rename to...
9202 (darwin_nat_target::init_thread_list): ... this.
9203 (darwin_ptrace_him): Rename to...
9204 (darwin_nat_target::ptrace_him): ... this.
9205 (darwin_nat_target::create_inferior): Pass lambda function to
9206 fork_inferior.
9207 (darwin_nat_target::detach): Call stop_inferior instead of
9208 darwin_stop_inferior.
9209 * fork-inferior.h (fork_inferior): Change init_trace_fun
9210 parameter to gdb::function_view.
9211 * fork-inferior.c (fork_inferior): Likewise.
9212
c162ed3e
HD
92132020-01-23 Hannes Domani <ssbssa@yahoo.de>
9214
9215 * i386-cygwin-tdep.c (core_process_module_section): Update.
9216 * windows-nat.c (struct lm_info_windows): Add text_offset.
9217 (windows_xfer_shared_libraries): Update.
9218 * windows-tdep.c (windows_xfer_shared_library):
9219 Add text_offset_cached argument.
9220 * windows-tdep.h (windows_xfer_shared_library): Update.
9221
a1237872
SM
92222020-01-21 Simon Marchi <simon.marchi@efficios.com>
9223
9224 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9225
b3ee6dd9
SM
92262020-01-21 Simon Marchi <simon.marchi@efficios.com>
9227
9228 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9229 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9230 replace with range-based for.
9231 (gdbsim_interrupt_inferior): Remove.
9232 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9233 with a range-based for. Inline code from
9234 gdbsim_interrupt_inferior.
9235
f9fac3c8
SM
92362020-01-21 Simon Marchi <simon.marchi@efficios.com>
9237
9238 * infrun.c (proceed): Fix indentation.
9239
f6474de9
TT
92402020-01-21 Tom Tromey <tromey@adacore.com>
9241
9242 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9243 * python/python.c (python_extension_ops): Update.
9244 (gdbpy_colorize): New function.
9245 * python/lib/gdb/__init__.py (colorize): New function.
9246 * extension.h (ext_lang_colorize): Declare.
9247 * extension.c (ext_lang_colorize): New function.
9248 * extension-priv.h (struct extension_language_ops) <colorize>: New
9249 member.
9250 * cli/cli-style.c (_initialize_cli_style): Update help text.
9251
f0c702d4
LM
92522020-01-21 Luis Machado <luis.machado@linaro.org>
9253
9254 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9255 <cond>: Change type to bool.
9256 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9257 (aarch64_displaced_step_cb): Likewise.
9258 (aarch64_displaced_step_tb): Likewise.
9259
1ab139e5
LM
92602020-01-21 Luis Machado <luis.machado@linaro.org>
9261
9262 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9263 output.
9264
0c271889
LM
92652020-01-21 Luis Machado <luis.machado@linaro.org>
9266
9267 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9268 <pc_adjust>: Adjust the documentation.
9269 (aarch64_displaced_step_fixup): Check if PC really moved before
9270 adjusting it.
9271
4d89c1c7
TT
92722020-01-19 Tom Tromey <tom@tromey.com>
9273
9274 * disasm.c (~gdb_disassembler): New destructor.
9275 (gdb_buffered_insn_length): Call disassemble_free_target.
9276 * disasm.h (class gdb_disassembler): Declare destructor. Use
9277 DISABLE_COPY_AND_ASSIGN.
9278
c0ab21c2
TT
92792020-01-19 Tom Tromey <tom@tromey.com>
9280
9281 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9282 (die_reader_func_ftype): Remove.
9283 (cutu_reader): New class.
9284 (dw2_get_file_names_reader): Remove "data" parameter.
9285 (dw2_get_file_names): Use cutu_reader.
9286 (create_debug_type_hash_table): Update.
9287 (read_cutu_die_from_dwo): Update comment.
9288 (lookup_dwo_unit): Add dwo_name parameter.
9289 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9290 die_reader_func_ftype and data parameters.
9291 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9292 Remove die_reader_func_ftype and data parameters.
9293 (~cutu_reader): New; from init_cutu_and_read_dies.
9294 (cutu_reader::cutu_reader): Rename from
9295 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9296 and data parameters.
9297 (init_cutu_and_read_dies_simple): Remove.
9298 (struct process_psymtab_comp_unit_data): Remove.
9299 (process_psymtab_comp_unit_reader): Remove data parameter; add
9300 want_partial_unit and pretend_language parameters.
9301 (process_psymtab_comp_unit): Use cutu_reader.
9302 (build_type_psymtabs_reader): Remove data parameter.
9303 (build_type_psymtabs_1): Use cutu_reader.
9304 (process_skeletonless_type_unit): Likewise.
9305 (load_partial_comp_unit_reader): Remove.
9306 (load_partial_comp_unit): Use cutu_reader.
9307 (load_full_comp_unit_reader): Remove.
9308 (load_full_comp_unit): Use cutu_reader.
9309 (struct create_dwo_cu_data): Remove.
9310 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9311 dwo_unit parameters.
9312 (create_cus_hash_table): Use cutu_reader.
9313 (struct dwarf2_read_addr_index_data): Remove.
9314 (dwarf2_read_addr_index_reader): Remove.
9315 (dwarf2_read_addr_index): Use cutu_reader.
9316 (read_signatured_type_reader): Remove.
9317 (read_signatured_type): Use cutu_reader.
9318
45bbae5c
TT
93192020-01-19 Tom Tromey <tom@tromey.com>
9320
9321 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9322 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9323 (tui_wrefresh): Declare.
9324 * tui/tui-wingeneral.c (suppress_output): New global.
9325 (tui_suppress_output, ~tui_suppress_output): New constructor and
9326 destructor.
9327 (tui_wrefresh): New function.
9328 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9329 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9330 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9331 method.
9332 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9333 tui_wrefresh.
9334 (tui_data_window::no_refresh): New method.
9335 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9336 (tui_reg_command): Use tui_suppress_output
9337 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9338 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9339 method.
9340 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9341
4f13c1c0
TT
93422020-01-19 Tom Tromey <tom@tromey.com>
9343
9344 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9345 Handle case where symtab is null.
9346
fa47e446
SM
93472020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9348
9349 * linux-fork.c (one_fork_p): Simplify.
9350
26f42329
SM
93512020-01-17 Simon Marchi <simon.marchi@efficios.com>
9352
9353 * top.c (struct qt_args): Remove.
9354 (kill_or_detach): Change return type to void, replace `void *`
9355 parameter with a proper one.
9356 (print_inferior_quit_action): Likewise.
9357 (quit_confirm): Use range-based for loop to iterate over inferiors.
9358 (quit_force): Likewise.
9359
a9ac81b1
SM
93602020-01-17 Simon Marchi <simon.marchi@efficios.com>
9361
9362 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9363 `void *` parameter with proper parameters.
9364 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9365 (print_one_inferior): Change return type to void, replace `void *`
9366 parameter with proper parameters.
9367 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9368 inferiors.
9369 (get_other_inferior): Remove.
9370 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9371 inferiors.
9372
788eca49
SM
93732020-01-17 Simon Marchi <simon.marchi@efficios.com>
9374
9375 * mi/mi-interp.c (report_initial_inferior): Remove.
9376 (mi_interp::init): Use range-based for to iterate over inferiors.
9377
d9bc85b6
SM
93782020-01-17 Simon Marchi <simon.marchi@efficios.com>
9379
9380 * python/py-inferior.c (build_inferior_list): Remove.
9381 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9382
40c94099
CB
93832020-01-16 Christian Biesinger <cbiesinger@google.com>
9384
9385 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9386 (btrace_stitch_trace): Likewise.
9387 * charset.c (intermediate_encoding): Likewise (vaild).
9388 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9389 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9390 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9391
e0cdfe3c
HD
93922020-01-16 Hannes Domani <ssbssa@yahoo.de>
9393
9394 * windows-tdep.c (windows_get_tlb_type):
9395 Add rtl_user_process_parameters type.
9396
790f1718 93972020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9398 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9399
9400 PR build/24805
9401 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9402 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9403 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9404 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9405 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9406 (ps_plog): Redeclare exported functions with default visibility.
9407
3112ed97
NA
94082020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9409
9410 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9411 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9412
8dc3273e
SM
94132020-01-15 Simon Marchi <simon.marchi@efficios.com>
9414
9415 * infcmd.c (post_create_inferior): Use get_thread_regcache
9416 instead of get_current_regcache.
9417
ff47f4f0
TT
94182020-01-14 Tom Tromey <tom@tromey.com>
9419
9420 PR symtab/12535:
9421 * python/python.c (gdbpy_decode_line): Treat empty string the same
9422 as no argument.
9423
975f45b7
TT
94242020-01-14 Tom Tromey <tom@tromey.com>
9425
9426 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9427
25e57356
TT
94282020-01-14 Tom Tromey <tom@tromey.com>
9429
9430 * nat/linux-btrace.c: Don't include <config.h>.
9431 * nat/linux-ptrace.c: Don't include <config.h>.
9432 * nat/x86-linux-dregs.c: Don't include <config.h>.
9433
05ea2a05
TT
94342020-01-14 Tom Tromey <tom@tromey.com>
9435
9436 * configure: Rebuild.
9437 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9438
01027315
TT
94392020-01-14 Tom Tromey <tom@tromey.com>
9440
9441 * nat/x86-linux-dregs.c: Include configh.h.
9442 * nat/linux-ptrace.c: Include configh.h.
9443 * nat/linux-btrace.c: Include configh.h.
9444 * defs.h: Include config.h, bfd.h.
9445 * configure.ac: Don't source common.host.
9446 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9447 * configure: Rebuild.
9448 * acinclude.m4: Update path.
9449 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9450 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9451 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9452 (CLIBS): Add LIBSUPPORT.
9453 (CDEPS): Likewise.
9454 (COMMON_SFILES): Remove gdbsupport files.
9455 (HFILES_NO_SRCDIR): Likewise.
9456 (stamp-version): Update path to create-version.sh.
9457 (ALLDEPFILES): Remove gdbsupport files.
9458
b2ceabe8
TT
94592020-01-14 Tom Tromey <tom@tromey.com>
9460
9461 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9462 USE_WIN32API when needed.
9463 * configure.ac (USE_WIN32API): Don't define.
9464 (WIN32LIBS): Use WIN32APILIBS.
9465 * configure: Rebuild.
9466
25c51f71
TT
94672020-01-14 Tom Tromey <tom@tromey.com>
9468
9469 * configure: Rebuild.
9470 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9471
717c684d
BE
94722020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9473
9474 * skip.c (skip_function_command): Make skip w/o arguments use the
9475 name of the inlined function if pc is inside any inlined function.
9476
7da6a5b9
LM
94772020-01-14 Luis Machado <luis.machado@linaro.org>
9478
9479 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9480 * infrun.c (resume_1): Likewise.
9481 (handle_inferior_event): Remove stale comment.
9482 * linux-nat.c (linux_nat_target::resume): Update comments.
9483 (save_stop_reason): Likewise.
9484 (linux_nat_filter_event): Likewise.
9485 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9486
44e4c775
AB
94872020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9488
9489 * elfread.c (record_minimal_symbol): Set section index to 0 for
9490 non-allocatable sections.
9491
18a8505e
AT
9492
94932020-01-13 Ali Tamur <tamur@google.com>
9494
9495 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9496 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9497 to gdb::optional. Update comments.
9498 (dwo_file): Update comments.
9499 (read_attribute): Update API to take an additional out parameter,
9500 need_reprocess. This is used to mark attributes that need other
9501 attributes (e.g. str_offsets_base) for correct computation which may not
9502 have been read yet.
9503 (read_attribute_reprocess): New function declaration.
9504 (read_addr_index): Likewise.
9505 (read_dwo_str_index): Likewise.
9506 (read_stub_str_index): Likewise.
9507 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9508 (lookup_addr_base): New function definition.
9509 (lookup_ranges_base): Likewise.
9510 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9511 lookup_ranges_base.
9512 (init_cutu_and_read_dies): Update comments.
9513 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9514 unit. This is used to inherit parent's str_offsets_base and addr_base.
9515 Update comments.
9516 (init_cutu_and_read_dies_simple): Reflect API changes.
9517 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9518 (create_cus_hash_table): Change API to take parent compile unit.
9519 Reflect API changes.
9520 (open_and_init_dwo_file): Reflect API changes.
9521 (dwarf2_get_pc_bounds): Update comments.
9522 (dwarf2_record_block_ranges): Likewise.
9523 (read_full_die_1): Change implementation to reprocess attributes that
9524 need str_offsets_base and addr_base.
9525 (partial_die_info::read): Likewise.
9526 (read_attribute_reprocess): New function definition.
9527 (read_attribute_value): Change API to take an additional out parameter,
9528 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9529 when a non-dwo compile unit has index based attributes.
9530 (read_attribute): Reflect API changes.
9531 (read_addr_index_1): Reflect API changes. Update comments.
9532 (dwarf2_read_addr_index_data): Reflect API changes.
9533 (dwarf2_read_addr_index): Likewise.
9534 (read_str_index): Change API and implementation. This becomes a helper
9535 to be used by the new string index related methods. Update error
9536 message and comments.
9537 (read_dwo_str_index): New function definition.
9538 (read_stub_str_index): Likewise.
9539 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9540 * symfile.h (dwarf2_debug_sections): Likewise.
9541 * xcoffread.c (dwarf2_debug_sections): Likewise.
9542
0cac9354
SM
95432020-01-13 Simon Marchi <simon.marchi@efficios.com>
9544
9545 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9546 core_reg_sect type to gdb_byte *.
9547 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9548 * cris-tdep.c (fetch_core_registers): Likewise.
9549 * corelow.c (core_target::get_core_register_section): Change
9550 type of `contents` to gdb::byte_vector.
9551
9a6d629c
AB
95522020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9553
9554 * tui/tui-wingeneral.c (box_win): Position the title in the center
9555 of the border.
9556
d8b2f9e3
SM
95572020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9558
9559 * corelow.c (core_target::get_core_register_section): Use
9560 std::vector instead of alloca.
9561
bb564c58
SM
95622020-01-13 Simon Marchi <simon.marchi@efficios.com>
9563
9564 * warning.m4: Add -Wmissing-declarations to build_warnings.
9565 * configure: Re-generate.
9566
6b366111
SM
95672020-01-13 Simon Marchi <simon.marchi@efficios.com>
9568
9569 * python/python.c (init__gdb_module): Add declaration.
9570
6c265988
SM
95712020-01-13 Simon Marchi <simon.marchi@efficios.com>
9572
9573 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9574 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9575 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9576 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9577 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9578 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9579 * ada-exp.y (_initialize_ada_exp): Add declaration.
9580 * ada-lang.c (_initialize_ada_language): Add declaration.
9581 * ada-tasks.c (_initialize_tasks): Add declaration.
9582 * agent.c (_initialize_agent): Add declaration.
9583 * aix-thread.c (_initialize_aix_thread): Add declaration.
9584 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9585 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9586 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9587 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9588 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9589 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9590 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9591 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9592 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9593 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9594 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9595 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9596 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9597 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9598 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9599 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9600 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9601 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9602 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9603 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9604 * annotate.c (_initialize_annotate): Add declaration.
9605 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9606 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9607 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9608 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9609 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9610 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9611 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9612 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9613 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9614 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9615 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9616 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9617 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9618 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9619 * auto-load.c (_initialize_auto_load): Add declaration.
9620 * auxv.c (_initialize_auxv): Add declaration.
9621 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9622 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9623 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9624 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9625 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9626 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9627 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9628 * breakpoint.c (_initialize_breakpoint): Add declaration.
9629 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9630 * btrace.c (_initialize_btrace): Add declaration.
9631 * charset.c (_initialize_charset): Add declaration.
9632 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9633 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9634 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9635 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9636 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9637 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9638 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9639 * coffread.c (_initialize_coffread): Add declaration.
9640 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9641 * compile/compile.c (_initialize_compile): Add declaration.
9642 * complaints.c (_initialize_complaints): Add declaration.
9643 * completer.c (_initialize_completer): Add declaration.
9644 * copying.c (_initialize_copying): Add declaration.
9645 * corefile.c (_initialize_core): Add declaration.
9646 * corelow.c (_initialize_corelow): Add declaration.
9647 * cp-abi.c (_initialize_cp_abi): Add declaration.
9648 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9649 * cp-support.c (_initialize_cp_support): Add declaration.
9650 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9651 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9652 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9653 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9654 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9655 * ctfread.c (_initialize_ctfread): Add declaration.
9656 * d-lang.c (_initialize_d_language): Add declaration.
9657 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9658 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9659 * dbxread.c (_initialize_dbxread): Add declaration.
9660 * dcache.c (_initialize_dcache): Add declaration.
9661 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9662 * disasm.c (_initialize_disasm): Add declaration.
9663 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9664 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9665 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9666 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9667 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9668 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9669 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9670 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9671 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9672 * elfread.c (_initialize_elfread): Add declaration.
9673 * exec.c (_initialize_exec): Add declaration.
9674 * extension.c (_initialize_extension): Add declaration.
9675 * f-lang.c (_initialize_f_language): Add declaration.
9676 * f-valprint.c (_initialize_f_valprint): Add declaration.
9677 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9678 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9679 * filesystem.c (_initialize_filesystem): Add declaration.
9680 * findcmd.c (_initialize_mem_search): Add declaration.
9681 * findvar.c (_initialize_findvar): Add declaration.
9682 * fork-child.c (_initialize_fork_child): Add declaration.
9683 * frame-base.c (_initialize_frame_base): Add declaration.
9684 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9685 * frame.c (_initialize_frame): Add declaration.
9686 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9687 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9688 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9689 * gcore.c (_initialize_gcore): Add declaration.
9690 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9691 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9692 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9693 * gdbarch.c (_initialize_gdbarch): Add declaration.
9694 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9695 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9696 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9697 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9698 * go-lang.c (_initialize_go_language): Add declaration.
9699 * go32-nat.c (_initialize_go32_nat): Add declaration.
9700 * guile/guile.c (_initialize_guile): Add declaration.
9701 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9702 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9703 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9704 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9705 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9706 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9707 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9708 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9709 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9710 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9711 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9712 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9713 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9714 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9715 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9716 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9717 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9718 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9719 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9720 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9721 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9722 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9723 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9724 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9725 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9726 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9727 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9728 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9729 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9730 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9731 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9732 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9733 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9734 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9735 * infcall.c (_initialize_infcall): Add declaration.
9736 * infcmd.c (_initialize_infcmd): Add declaration.
9737 * inflow.c (_initialize_inflow): Add declaration.
9738 * infrun.c (_initialize_infrun): Add declaration.
9739 * interps.c (_initialize_interpreter): Add declaration.
9740 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9741 * jit.c (_initialize_jit): Add declaration.
9742 * language.c (_initialize_language): Add declaration.
9743 * linux-fork.c (_initialize_linux_fork): Add declaration.
9744 * linux-nat.c (_initialize_linux_nat): Add declaration.
9745 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9746 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9747 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9748 * m2-lang.c (_initialize_m2_language): Add declaration.
9749 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9750 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9751 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9752 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9753 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9754 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9755 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9756 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9757 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9758 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9759 * machoread.c (_initialize_machoread): Add declaration.
9760 * macrocmd.c (_initialize_macrocmd): Add declaration.
9761 * macroscope.c (_initialize_macroscope): Add declaration.
9762 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9763 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9764 * maint.c (_initialize_maint_cmds): Add declaration.
9765 * mdebugread.c (_initialize_mdebugread): Add declaration.
9766 * memattr.c (_initialize_mem): Add declaration.
9767 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9768 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9769 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9770 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9771 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9772 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9773 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9774 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9775 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9776 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9777 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9778 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9779 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9780 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9781 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9782 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9783 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9784 * mipsread.c (_initialize_mipsread): Add declaration.
9785 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9786 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9787 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9788 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9789 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9790 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9791 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9792 * nto-procfs.c (_initialize_procfs): Add declaration.
9793 * objc-lang.c (_initialize_objc_language): Add declaration.
9794 * observable.c (_initialize_observer): Add declaration.
9795 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9796 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9797 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9798 * osabi.c (_initialize_gdb_osabi): Add declaration.
9799 * osdata.c (_initialize_osdata): Add declaration.
9800 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9801 * parse.c (_initialize_parse): Add declaration.
9802 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9803 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9804 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9805 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9806 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9807 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9808 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9809 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9810 * printcmd.c (_initialize_printcmd): Add declaration.
9811 * probe.c (_initialize_probe): Add declaration.
9812 * proc-api.c (_initialize_proc_api): Add declaration.
9813 * proc-events.c (_initialize_proc_events): Add declaration.
9814 * proc-service.c (_initialize_proc_service): Add declaration.
9815 * procfs.c (_initialize_procfs): Add declaration.
9816 * producer.c (_initialize_producer): Add declaration.
9817 * psymtab.c (_initialize_psymtab): Add declaration.
9818 * python/python.c (_initialize_python): Add declaration.
9819 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9820 * record-btrace.c (_initialize_record_btrace): Add declaration.
9821 * record-full.c (_initialize_record_full): Add declaration.
9822 * record.c (_initialize_record): Add declaration.
9823 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9824 * regcache.c (_initialize_regcache): Add declaration.
9825 * reggroups.c (_initialize_reggroup): Add declaration.
9826 * remote-notif.c (_initialize_notif): Add declaration.
9827 * remote-sim.c (_initialize_remote_sim): Add declaration.
9828 * remote.c (_initialize_remote): Add declaration.
9829 * reverse.c (_initialize_reverse): Add declaration.
9830 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9831 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9832 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9833 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9834 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9835 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9836 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9837 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9838 Add declaration.
9839 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9840 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9841 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9842 * rust-exp.y (_initialize_rust_exp): Add declaration.
9843 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9844 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9845 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9846 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9847 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9848 * score-tdep.c (_initialize_score_tdep): Add declaration.
9849 * ser-go32.c (_initialize_ser_dos): Add declaration.
9850 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9851 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9852 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9853 * ser-uds.c (_initialize_ser_socket): Add declaration.
9854 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9855 * serial.c (_initialize_serial): Add declaration.
9856 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9857 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9858 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9859 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9860 * skip.c (_initialize_step_skip): Add declaration.
9861 * sol-thread.c (_initialize_sol_thread): Add declaration.
9862 * solib-aix.c (_initialize_solib_aix): Add declaration.
9863 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9864 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9865 * solib-frv.c (_initialize_frv_solib): Add declaration.
9866 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9867 * solib-target.c (_initialize_solib_target): Add declaration.
9868 * solib.c (_initialize_solib): Add declaration.
9869 * source-cache.c (_initialize_source_cache): Add declaration.
9870 * source.c (_initialize_source): Add declaration.
9871 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9872 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9873 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9874 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9875 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9876 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9877 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9878 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9879 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9880 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9881 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9882 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9883 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9884 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9885 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9886 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9887 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9888 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9889 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9890 * stabsread.c (_initialize_stabsread): Add declaration.
9891 * stack.c (_initialize_stack): Add declaration.
9892 * stap-probe.c (_initialize_stap_probe): Add declaration.
9893 * std-regs.c (_initialize_frame_reg): Add declaration.
9894 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9895 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9896 * symfile.c (_initialize_symfile): Add declaration.
9897 * symmisc.c (_initialize_symmisc): Add declaration.
9898 * symtab.c (_initialize_symtab): Add declaration.
9899 * target.c (_initialize_target): Add declaration.
9900 * target-connection.c (_initialize_target_connection): Add
9901 declaration.
9902 * target-dcache.c (_initialize_target_dcache): Add declaration.
9903 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9904 * thread.c (_initialize_thread): Add declaration.
9905 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9906 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9907 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9908 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9909 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9910 * tracectf.c (_initialize_ctf): Add declaration.
9911 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9912 * tracefile.c (_initialize_tracefile): Add declaration.
9913 * tracepoint.c (_initialize_tracepoint): Add declaration.
9914 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9915 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9916 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9917 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9918 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9919 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9920 * tui/tui.c (_initialize_tui): Add declaration.
9921 * typeprint.c (_initialize_typeprint): Add declaration.
9922 * ui-style.c (_initialize_ui_style): Add declaration.
9923 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9924 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9925 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9926 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9927 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9928 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9929 * unittests/filtered_iterator-selftests.c
9930 (_initialize_filtered_iterator_selftests): Add declaration.
9931 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9932 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9933 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9934 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9935 * unittests/main-thread-selftests.c
9936 (_initialize_main_thread_selftests): Add declaration.
9937 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9938 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9939 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9940 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9941 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9942 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9943 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9944 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9945 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9946 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9947 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9948 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9949 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9950 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9951 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9952 declaration.
9953 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9954 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9955 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9956 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9957 * user-regs.c (_initialize_user_regs): Add declaration.
9958 * utils.c (_initialize_utils): Add declaration.
9959 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9960 * valops.c (_initialize_valops): Add declaration.
9961 * valprint.c (_initialize_valprint): Add declaration.
9962 * value.c (_initialize_values): Add declaration.
9963 * varobj.c (_initialize_varobj): Add declaration.
9964 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9965 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9966 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9967 * windows-nat.c (_initialize_windows_nat): Add declaration.
9968 (_initialize_check_for_gdb_ini): Add declaration.
9969 (_initialize_loadable): Add declaration.
9970 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9971 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9972 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9973 * xcoffread.c (_initialize_xcoffread): Add declaration.
9974 * xml-support.c (_initialize_xml_support): Add declaration.
9975 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9976 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9977 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
9978 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
9979
e2de1eec
SM
99802020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9981
9982 * regformats/regdat.sh: Generate declaration for init function.
9983
e0037b4c
SM
99842020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9985
9986 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
9987 up.
9988 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
9989 close_one_inferior>: New methods.
9990 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
9991 pass down target to find_inferior_pid.
9992 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
9993 Pass down target to find_inferior_ptid.
9994 (gdbsim_target::create_inferior): Pass down target to
9995 add_thread_silent.
9996 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
9997 target down to find_inferior_ptid and switch_to_thread.
9998 (gdbsim_target::close): Update to call close_one_inferior.
9999 (struct resume_data): Remove.
10000 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10001 directly, rather than through a void pointer.
10002 (gdbsim_target::resume): Update to call resume_one_inferior.
10003
58920b5b
SM
100042020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10005
10006 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10007
4ec89149
PA
100082020-01-12 Pedro Alves <palves@redhat.com>
10009
10010 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10011 directly for the current inferior instead of
10012 discard_all_inferiors.
10013 (discard_all_inferiors): Delete.
10014
7c392d1d
TT
100152020-01-11 Tom Tromey <tom@tromey.com>
10016
10017 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10018 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10019 deprecated_safe_get_selected_frame.
10020
d9ebdab7
TBA
100212020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10022
10023 * inferior.c (print_inferior): Switch inferior before printing it.
10024
f3c469b9
PA
100252020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10026 Pedro Alves <palves@redhat.com>
10027
10028 * progspace-and-thread.c (switch_to_program_space_and_thread):
10029 Assert there's an inferior for PSPACE. Use
10030 switch_to_inferior_no_thread to switch the inferior too.
10031 * progspace.c (program_space::~program_space): Call
10032 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10033 (program_space::free_all_objfiles): Don't call clear_symtab_users
10034 here.
10035 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10036
65c574f6
PA
100372020-01-10 Pedro Alves <palves@redhat.com>
10038
10039 * NEWS: Mention multi-target debugging, "info connections", and
10040 "add-inferior -no-connection".
10041
2f4fcf00
PA
100422020-01-10 Pedro Alves <palves@redhat.com>
10043
10044 * infrun.c: Include "target-connection.h".
10045 (check_multi_target_resumption): New.
10046 (proceed): Call it.
10047 * target-connection.c (make_target_connection_string): Make
10048 extern.
10049 * target-connection.h (make_target_connection_string): Declare.
10050
121b3efd
PA
100512020-01-10 Pedro Alves <palves@redhat.com>
10052
10053 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10054 * inferior.c (uiout_field_connection): New function.
10055 (print_inferior): Add new "connection-id" column.
10056 (add_inferior_command): Show connection number/string of added
10057 inferior.
10058 * process-stratum-target.h
10059 (process_stratum_target::connection_string): New virtual method.
10060 (process_stratum_target::connection_number): New field.
10061 * remote.c (remote_target::connection_string): New override.
10062 * target-connection.c: New file.
10063 * target-connection.h: New file.
10064 * target.c (decref_target): Remove process_stratum targets from
10065 the connection list.
10066 (target_stack::push): Add process_stratum targets to the
10067 connection list.
10068
4f837581
PA
100692020-01-10 Pedro Alves <palves@redhat.com>
10070
10071 Revert:
10072 2016-04-12 Pedro Alves <palves@redhat.com>
10073 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10074 Remove references to name.
10075 * serial.h (struct serial) <name>: Delete.
10076
f4ec508e
PA
100772020-01-10 Pedro Alves <palves@redhat.com>
10078
10079 * gdbarch-selftests.c (register_to_value_test): Remove "target
10080 already pushed" check.
10081
5b6d1e4f
PA
100822020-01-10 Pedro Alves <palves@redhat.com>
10083 John Baldwin <jhb@FreeBSD.org>
10084
10085 * aarch64-linux-nat.c
10086 (aarch64_linux_nat_target::thread_architecture): Adjust.
10087 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10088 (task_command_1): Likewise.
10089 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10090 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10091 (aix_thread_target::store_registers)
10092 (aix_thread_target::thread_alive): Adjust.
10093 * amd64-fbsd-tdep.c: Include "inferior.h".
10094 (amd64fbsd_get_thread_local_address): Pass down target.
10095 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10096 thread's gdbarch instead of target_gdbarch.
10097 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10098 get_last_target_status.
10099 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10100 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10101 inferiors.
10102 (update_inserted_breakpoint_locations): Skip if inferiors with no
10103 execution.
10104 (update_global_location_list): When handling moribund locations,
10105 find representative inferior for location's pspace, and use thread
10106 count of its process_stratum target.
10107 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10108 * bsd-uthread.c (bsd_uthread_target::wait): Use
10109 as_process_stratum_target and adjust thread_change_ptid and
10110 add_thread calls.
10111 (bsd_uthread_target::update_thread_list): Use
10112 as_process_stratum_target and adjust find_thread_ptid,
10113 thread_change_ptid and add_thread calls.
10114 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10115 find_thread_ptid call.
10116 * corelow.c (add_to_thread_list): Adjust add_thread call.
10117 (core_target_open): Adjust add_thread_silent and thread_count
10118 calls.
10119 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10120 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10121 * event-top.c (async_disconnect): Pop targets from all inferiors.
10122 * exec.c (add_target_sections): Push exec target on all inferiors
10123 sharing the program space.
10124 (remove_target_sections): Remove the exec target from all
10125 inferiors sharing the program space.
10126 (exec_on_vfork): New.
10127 * exec.h (exec_on_vfork): Declare.
10128 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10129 Pass it down.
10130 (fbsd_nat_target::update_thread_list): Adjust.
10131 (fbsd_nat_target::resume): Adjust.
10132 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10133 down.
10134 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10135 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10136 get_thread_arch_regcache call.
10137 * fork-child.c (gdb_startup_inferior): Pass target down to
10138 startup_inferior and set_executing.
10139 * gdbthread.h (struct process_stratum_target): Forward declare.
10140 (add_thread, add_thread_silent, add_thread_with_info)
10141 (in_thread_list): Add process_stratum_target parameter.
10142 (find_thread_ptid(inferior*, ptid_t)): New overload.
10143 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10144 parameter.
10145 (all_threads()): Delete overload.
10146 (all_threads, all_non_exited_threads): Add process_stratum_target
10147 parameter.
10148 (all_threads_safe): Use brace initialization.
10149 (thread_count): Add process_stratum_target parameter.
10150 (set_resumed, set_running, set_stop_requested, set_executing)
10151 (threads_are_executing, finish_thread_state): Add
10152 process_stratum_target parameter.
10153 (switch_to_thread): Use is_current_thread.
10154 * i386-fbsd-tdep.c: Include "inferior.h".
10155 (i386fbsd_get_thread_local_address): Pass down target.
10156 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10157 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10158 have_inferiors check.
10159 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10160 (inf_ptrace_target::attach): Adjust.
10161 * infcall.c (run_inferior_call): Adjust.
10162 * infcmd.c (run_command_1): Pass target to
10163 scoped_finish_thread_state.
10164 (proceed_thread_callback): Skip inferiors with no execution.
10165 (continue_command): Rename 'all_threads' local to avoid hiding
10166 'all_threads' function. Adjust get_last_target_status call.
10167 (prepare_one_step): Adjust set_running call.
10168 (signal_command): Use user_visible_resume_target. Compare thread
10169 pointers instead of inferior_ptid.
10170 (info_program_command): Adjust to pass down target.
10171 (attach_command): Mark target's 'thread_executing' flag.
10172 (stop_current_target_threads_ns): New, factored out from ...
10173 (interrupt_target_1): ... this. Switch inferior before making
10174 target calls.
10175 * inferior-iter.h
10176 (struct all_inferiors_iterator, struct all_inferiors_range)
10177 (struct all_inferiors_safe_range)
10178 (struct all_non_exited_inferiors_range): Filter on
10179 process_stratum_target too. Remove explicit.
10180 * inferior.c (inferior::inferior): Push dummy target on target
10181 stack.
10182 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10183 Add process_stratum_target parameter, and pass it down.
10184 (have_live_inferiors): Adjust.
10185 (switch_to_inferior_and_push_target): New.
10186 (add_inferior_command, clone_inferior_command): Handle
10187 "-no-connection" parameter. Use
10188 switch_to_inferior_and_push_target.
10189 (_initialize_inferior): Mention "-no-connection" option in
10190 the help of "add-inferior" and "clone-inferior" commands.
10191 * inferior.h: Include "process-stratum-target.h".
10192 (interrupt_target_1): Use bool.
10193 (struct inferior) <push_target, unpush_target, target_is_pushed,
10194 find_target_beneath, top_target, process_target, target_at,
10195 m_stack>: New.
10196 (discard_all_inferiors): Delete.
10197 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10198 (all_inferiors, all_non_exited_inferiors): Add
10199 process_stratum_target parameter.
10200 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10201 (target_last_proc_target): New global.
10202 (follow_fork_inferior): Push target on new inferior. Pass target
10203 to add_thread_silent. Call exec_on_vfork. Handle target's
10204 reference count.
10205 (follow_fork): Adjust get_last_target_status call. Also consider
10206 target.
10207 (follow_exec): Push target on new inferior.
10208 (struct execution_control_state) <target>: New field.
10209 (user_visible_resume_target): New.
10210 (do_target_resume): Call target_async.
10211 (resume_1): Set target's threads_executing flag. Consider resume
10212 target.
10213 (commit_resume_all_targets): New.
10214 (proceed): Also consider resume target. Skip threads of inferiors
10215 with no execution. Commit resumtion in all targets.
10216 (start_remote): Pass current inferior to wait_for_inferior.
10217 (infrun_thread_stop_requested): Consider target as well. Pass
10218 thread_info pointer to clear_inline_frame_state instead of ptid.
10219 (infrun_thread_thread_exit): Consider target as well.
10220 (random_pending_event_thread): New inferior parameter. Use it.
10221 (do_target_wait): Rename to ...
10222 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10223 down.
10224 (threads_are_resumed_pending_p, do_target_wait): New.
10225 (prepare_for_detach): Adjust calls.
10226 (wait_for_inferior): New inferior parameter. Handle it. Use
10227 do_target_wait_1 instead of do_target_wait.
10228 (fetch_inferior_event): Adjust. Switch to representative
10229 inferior. Pass target down.
10230 (set_last_target_status): Add process_stratum_target parameter.
10231 Save target in global.
10232 (get_last_target_status): Add process_stratum_target parameter and
10233 handle it.
10234 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10235 (context_switch): Check inferior_ptid == null_ptid before calling
10236 inferior_thread().
10237 (get_inferior_stop_soon): Pass down target.
10238 (wait_one): Rename to ...
10239 (poll_one_curr_target): ... this.
10240 (struct wait_one_event): New.
10241 (wait_one): New.
10242 (stop_all_threads): Adjust.
10243 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10244 event's target.
10245 (switch_back_to_stepped_thread): Also consider target.
10246 (print_stop_event): Update.
10247 (normal_stop): Update. Also consider the resume target.
10248 * infrun.h (wait_for_inferior): Remove declaration.
10249 (user_visible_resume_target): New declaration.
10250 (get_last_target_status, set_last_target_status): New
10251 process_stratum_target parameter.
10252 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10253 process_stratum_target parameter, and use it.
10254 (clear_inline_frame_state (thread_info*)): New.
10255 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10256 process_stratum_target parameter.
10257 (clear_inline_frame_state (thread_info*)): Declare.
10258 * linux-fork.c (delete_checkpoint_command): Pass target down to
10259 find_thread_ptid.
10260 (checkpoint_command): Adjust.
10261 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10262 instead of just tweaking inferior_ptid.
10263 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10264 (exit_lwp): Pass target down to find_thread_ptid.
10265 (attach_proc_task_lwp_callback): Pass target down to
10266 add_thread/set_running/set_executing.
10267 (linux_nat_target::attach): Pass target down to
10268 thread_change_ptid.
10269 (get_detach_signal): Pass target down to find_thread_ptid.
10270 Consider last target status's target.
10271 (linux_resume_one_lwp_throw, resume_lwp)
10272 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10273 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10274 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10275 (linux_nat_target::async_wait_fd): New.
10276 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10277 target down.
10278 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10279 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10280 * linux-thread-db.c (struct thread_db_info::process_target): New
10281 field.
10282 (add_thread_db_info): Save target.
10283 (get_thread_db_info): New process_stratum_target parameter. Also
10284 match target.
10285 (delete_thread_db_info): New process_stratum_target parameter.
10286 Also match target.
10287 (thread_from_lwp): Adjust to pass down target.
10288 (thread_db_notice_clone): Pass down target.
10289 (check_thread_db_callback): Pass down target.
10290 (try_thread_db_load_1): Always push the thread_db target.
10291 (try_thread_db_load, record_thread): Pass target down.
10292 (thread_db_target::detach): Pass target down. Always unpush the
10293 thread_db target.
10294 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10295 target down. Always unpush the thread_db target.
10296 (find_new_threads_callback, thread_db_find_new_threads_2)
10297 (thread_db_target::update_thread_list): Pass target down.
10298 (thread_db_target::pid_to_str): Pass current inferior down.
10299 (thread_db_target::get_thread_local_address): Pass target down.
10300 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10301 target down.
10302 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10303 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10304 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10305 (procfs_init_inferior): Rename to ...
10306 (procfs_target::procfs_init_inferior): ... this and adjust.
10307 (procfs_target::create_inferior, procfs_notice_thread)
10308 (procfs_do_thread_registers): Adjust.
10309 * ppc-fbsd-tdep.c: Include "inferior.h".
10310 (ppcfbsd_get_thread_local_address): Pass down target.
10311 * proc-service.c (ps_xfer_memory): Switch current inferior and
10312 program space as well.
10313 (get_ps_regcache): Pass target down.
10314 * process-stratum-target.c
10315 (process_stratum_target::thread_address_space)
10316 (process_stratum_target::thread_architecture): Pass target down.
10317 * process-stratum-target.h
10318 (process_stratum_target::threads_executing): New field.
10319 (as_process_stratum_target): New.
10320 * ravenscar-thread.c
10321 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10322 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10323 down.
10324 * record-btrace.c (record_btrace_target::info_record): Adjust.
10325 (record_btrace_target::record_method)
10326 (record_btrace_target::record_is_replaying)
10327 (record_btrace_target::fetch_registers)
10328 (get_thread_current_frame_id, record_btrace_target::resume)
10329 (record_btrace_target::wait, record_btrace_target::stop): Pass
10330 target down.
10331 * record-full.c (record_full_wait_1): Switch to event thread.
10332 Pass target down.
10333 * regcache.c (regcache::regcache)
10334 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10335 process_stratum_target parameter and handle it.
10336 (current_thread_target): New global.
10337 (get_thread_regcache): Add process_stratum_target parameter and
10338 handle it. Switch inferior before calling target method.
10339 (get_thread_regcache): Pass target down.
10340 (get_thread_regcache_for_ptid): Pass target down.
10341 (registers_changed_ptid): Add process_stratum_target parameter and
10342 handle it.
10343 (registers_changed_thread, registers_changed): Pass target down.
10344 (test_get_thread_arch_aspace_regcache): New.
10345 (current_regcache_test): Define a couple local test_target_ops
10346 instances and use them for testing.
10347 (readwrite_regcache): Pass process_stratum_target parameter.
10348 (cooked_read_test, cooked_write_test): Pass mock_target down.
10349 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10350 (get_thread_arch_aspace_regcache): Add process_stratum_target
10351 parameter.
10352 (regcache::target): New method.
10353 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10354 (regcache::registers_changed_ptid): Add process_stratum_target
10355 parameter.
10356 (regcache::m_target): New field.
10357 (registers_changed_ptid): Add process_stratum_target parameter.
10358 * remote.c (remote_state::supports_vCont_probed): New field.
10359 (remote_target::async_wait_fd): New method.
10360 (remote_unpush_and_throw): Add remote_target parameter.
10361 (get_current_remote_target): Adjust.
10362 (remote_target::remote_add_inferior): Push target.
10363 (remote_target::remote_add_thread)
10364 (remote_target::remote_notice_new_inferior)
10365 (get_remote_thread_info): Pass target down.
10366 (remote_target::update_thread_list): Skip threads of inferiors
10367 bound to other targets. (remote_target::close): Don't discard
10368 inferiors. (remote_target::add_current_inferior_and_thread)
10369 (remote_target::process_initial_stop_replies)
10370 (remote_target::start_remote)
10371 (remote_target::remote_serial_quit_handler): Pass down target.
10372 (remote_target::remote_unpush_target): New remote_target
10373 parameter. Unpush the target from all inferiors.
10374 (remote_target::remote_unpush_and_throw): New remote_target
10375 parameter. Pass it down.
10376 (remote_target::open_1): Check whether the current inferior has
10377 execution instead of checking whether any inferior is live. Pass
10378 target down.
10379 (remote_target::remote_detach_1): Pass down target. Use
10380 remote_unpush_target.
10381 (extended_remote_target::attach): Pass down target.
10382 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10383 (remote_target::append_resumption): Pass down target.
10384 (remote_target::append_pending_thread_resumptions)
10385 (remote_target::remote_resume_with_hc, remote_target::resume)
10386 (remote_target::commit_resume): Pass down target.
10387 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10388 (remote_target::interrupt_query)
10389 (remote_target::remove_new_fork_children)
10390 (remote_target::check_pending_events_prevent_wildcard_vcont)
10391 (remote_target::remote_parse_stop_reply)
10392 (remote_target::process_stop_reply): Pass down target.
10393 (first_remote_resumed_thread): New remote_target parameter. Pass
10394 it down.
10395 (remote_target::wait_as): Pass down target.
10396 (unpush_and_perror): New remote_target parameter. Pass it down.
10397 (remote_target::readchar, remote_target::remote_serial_write)
10398 (remote_target::getpkt_or_notif_sane_1)
10399 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10400 down target.
10401 (remote_target::mourn_inferior): Pass down target. Use
10402 remote_unpush_target.
10403 (remote_target::core_of_thread)
10404 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10405 (remote_target::pid_to_exec_file)
10406 (remote_target::thread_handle_to_thread_info): Pass down target.
10407 (remote_target::async_wait_fd): New.
10408 * riscv-fbsd-tdep.c: Include "inferior.h".
10409 (riscv_fbsd_get_thread_local_address): Pass down target.
10410 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10411 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10412 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10413 Adjust.
10414 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10415 * solib-svr4.c (enable_break): Pass down target.
10416 * spu-multiarch.c (parse_spufs_run): Pass down target.
10417 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10418 * target-delegates.c: Regenerate.
10419 * target.c (g_target_stack): Delete.
10420 (current_top_target): Return the current inferior's top target.
10421 (target_has_execution_1): Refer to the passed-in inferior's top
10422 target.
10423 (target_supports_terminal_ours): Check whether the initial
10424 inferior was already created.
10425 (decref_target): New.
10426 (target_stack::push): Incref/decref the target.
10427 (push_target, push_target, unpush_target): Adjust.
10428 (target_stack::unpush): Defref target.
10429 (target_is_pushed): Return bool. Adjust to refer to the current
10430 inferior's target stack.
10431 (dispose_inferior): Delete, and inline parts ...
10432 (target_preopen): ... here. Only dispose of the current inferior.
10433 (target_detach): Hold strong target reference while detaching.
10434 Pass target down.
10435 (target_thread_name): Add assertion.
10436 (target_resume): Pass down target.
10437 (target_ops::beneath, find_target_at): Adjust to refer to the
10438 current inferior's target stack.
10439 (get_dummy_target): New.
10440 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10441 has a thread running.
10442 (initialize_targets): Rename to ...
10443 (_initialize_target): ... this.
10444 * target.h: Include "gdbsupport/refcounted-object.h".
10445 (struct target_ops): Inherit refcounted_object.
10446 (target_ops::shortname, target_ops::longname): Make const.
10447 (target_ops::async_wait_fd): New method.
10448 (decref_target): Declare.
10449 (struct target_ops_ref_policy): New.
10450 (target_ops_ref): New typedef.
10451 (get_dummy_target): Declare function.
10452 (target_is_pushed): Return bool.
10453 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10454 (all_matching_threads_iterator::all_matching_threads_iterator):
10455 Handle filter target.
10456 * thread-iter.h (struct all_matching_threads_iterator, struct
10457 all_matching_threads_range, class all_non_exited_threads_range):
10458 Filter by target too. Remove explicit.
10459 * thread.c (threads_executing): Delete.
10460 (inferior_thread): Pass down current inferior.
10461 (clear_thread_inferior_resources): Pass down thread pointer
10462 instead of ptid_t.
10463 (add_thread_silent, add_thread_with_info, add_thread): Add
10464 process_stratum_target parameter. Use it for thread and inferior
10465 searches.
10466 (is_current_thread): New.
10467 (thread_info::deletable): Use it.
10468 (find_thread_ptid, thread_count, in_thread_list)
10469 (thread_change_ptid, set_resumed, set_running): New
10470 process_stratum_target parameter. Pass it down.
10471 (set_executing): New process_stratum_target parameter. Pass it
10472 down. Adjust reference to 'threads_executing'.
10473 (threads_are_executing): New process_stratum_target parameter.
10474 Adjust reference to 'threads_executing'.
10475 (set_stop_requested, finish_thread_state): New
10476 process_stratum_target parameter. Pass it down.
10477 (switch_to_thread): Also match inferior.
10478 (switch_to_thread): New process_stratum_target parameter. Pass it
10479 down.
10480 (update_threads_executing): Reimplement.
10481 * top.c (quit_force): Pop targets from all inferior.
10482 (gdb_init): Don't call initialize_targets.
10483 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10484 Declare.
10485 (windows_add_thread, windows_delete_thread): Adjust.
10486 (get_windows_debug_event): Rename to ...
10487 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10488 * tracefile-tfile.c (tfile_target_open): Pass down target.
10489 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10490 Forward declare.
10491 (switch_to_thread): Add process_stratum_target parameter.
10492 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10493 parameter. Use it.
10494 (mi_on_resume): Pass target down.
10495 * nat/fork-inferior.c (startup_inferior): Add
10496 process_stratum_target parameter. Pass it down.
10497 * nat/fork-inferior.h (startup_inferior): Add
10498 process_stratum_target parameter.
10499 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10500
75c6c844
PA
105012020-01-10 Pedro Alves <palves@redhat.com>
10502
10503 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10504 directly. Instead find the first thread in the thread list and
10505 use switch_to_thread.
10506
78f2c40a
PA
105072020-01-10 Pedro Alves <palves@redhat.com>
10508
10509 * remote.c (remote_target::remote_add_inferior): Don't bind a
10510 process to the current inferior if the current inferior is already
10511 bound to a process.
10512
e7af6c70
TBA
105132020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10514 Pedro Alves <palves@redhat.com>
10515
10516 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10517 If no process is specified, return null_ptid instead of
10518 inferior_ptid.
10519 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10520 TARGET_WAITKIND_SIGNALLED with no pid.
10521
31ba933e
PA
105222020-01-10 Pedro Alves <palves@redhat.com>
10523
10524 * remote.c (first_remote_resumed_thread): New.
10525 (remote_target::wait_as): Use it as default event_ptid instead of
10526 inferior_ptid.
10527
735fc2ca
PA
105282020-01-10 Pedro Alves <palves@redhat.com>
10529
10530 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10531
c17e02e1
PA
105322020-01-10 Pedro Alves <palves@redhat.com>
10533
10534 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10535 not -1.
10536
ab1ddbcf
PA
105372020-01-10 Pedro Alves <palves@redhat.com>
10538
10539 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10540 ptid to get_last_target_status.
10541 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10542 ptid to get_last_target_status.
10543 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10544 get_last_target_status.
10545 (info_program_command): Don't pass a target_waitstatus to
10546 get_last_target_status.
10547 * infrun.c (init_wait_for_inferior): Use
10548 nullify_last_target_wait_ptid.
10549 (get_last_target_status): Handle nullptr arguments.
10550 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10551 (print_stop_event): Don't pass a ptid to get_last_target_status.
10552 (normal_stop): Don't pass a ptid to get_last_target_status.
10553 * infrun.h (get_last_target_status, set_last_target_status): Move
10554 comments here and update.
10555 (nullify_last_target_wait_ptid): Declare.
10556 * linux-fork.c (fork_load_infrun_state): Remove local extern
10557 declaration of nullify_last_target_wait_ptid.
10558 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10559 to get_last_target_status.
10560
f3f8ece4
PA
105612020-01-10 Pedro Alves <palves@redhat.com>
10562
10563 * gdbthread.h (scoped_restore_current_thread)
10564 <dont_restore, restore, m_dont_restore>: Declare.
10565 * thread.c (thread_alive): Add assertion. Return bool.
10566 (switch_to_thread_if_alive): New.
10567 (prune_threads): Switch inferior/thread.
10568 (print_thread_info_1): Switch thread before calling target methods.
10569 (scoped_restore_current_thread::restore): New, factored out from
10570 ...
10571 (scoped_restore_current_thread::~scoped_restore_current_thread):
10572 ... this.
10573 (scoped_restore_current_thread::scoped_restore_current_thread):
10574 Add assertion.
10575 (thread_apply_all_command, thread_select): Use
10576 switch_to_thread_if_alive.
10577 * infrun.c (proceed, restart_threads, handle_signal_stop)
10578 (switch_back_to_stepped_thread): Switch current thread before
10579 calling target methods.
10580
db2d40f7
PA
105812020-01-10 Pedro Alves <palves@redhat.com>
10582
10583 * inferior.c (switch_to_inferior_no_thread): New function,
10584 factored out from ...
10585 (inferior_command): ... here.
10586 * inferior.h (switch_to_inferior_no_thread): Declare.
10587 * mi/mi-main.c (run_one_inferior): Use
10588 switch_to_inferior_no_thread.
10589
bd420a2d
PA
105902020-01-10 Pedro Alves <palves@redhat.com>
10591
10592 * infcmd.c (kill_command): Remove dead code.
10593
ddf5db90
PA
105942020-01-10 Pedro Alves <palves@redhat.com>
10595
10596 * remote.c (remote_target::mourn_inferior): No longer check
10597 whether the target is running.
10598
5018ce90
PA
105992020-01-10 Pedro Alves <palves@redhat.com>
10600
10601 * corelow.c (core_target::has_execution): Change parameter type to
10602 inferior pointer.
10603 * inferior.c (number_of_live_inferiors): Use
10604 inferior::has_execution instead of target_has_execution_1.
10605 * inferior.h (inferior::has_execution): New.
10606 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10607 inferior::has_execution instead of target_has_execution_1.
10608 * process-stratum-target.c
10609 (process_stratum_target::has_execution): Change parameter type to
10610 inferior pointer. Check the inferior's PID instead of
10611 inferior_ptid.
10612 * process-stratum-target.h
10613 (process_stratum_target::has_execution): Change parameter type to
10614 inferior pointer.
10615 * record-full.c (record_full_core_target::has_execution): Change
10616 parameter type to inferior pointer.
10617 * target.c (target_has_execution_1): Change parameter type to
10618 inferior pointer.
10619 (target_has_execution_current): Adjust.
10620 * target.h (target_ops::has_execution): Change parameter type to
10621 inferior pointer.
10622 (target_has_execution_1): Change parameter type to inferior
10623 pointer. Change return type to bool.
10624 * tracefile.h (tracefile_target::has_execution): Change parameter
10625 type to inferior pointer.
10626
74375d18
PA
106272020-01-10 Pedro Alves <palves@redhat.com>
10628
10629 * exceptions.c (print_flush): Remove current_top_target() check.
10630
acdf84a6
PA
106312020-01-10 Pedro Alves <palves@redhat.com>
10632
10633 * remote.c (show_remote_exec_file): Show the current inferior's
10634 exec-file instead of the command variable's value.
10635
ec506636
PA
106362020-01-10 Pedro Alves <palves@redhat.com>
10637
10638 * record-full.c (record_full_resume_ptid): New global.
10639 (record_full_target::resume): Set it.
10640 (record_full_wait_1): Use record_full_resume_ptid instead of
10641 inferior_ptid.
10642
873657b9
PA
106432020-01-10 Pedro Alves <palves@redhat.com>
10644
10645 * gdbthread.h (scoped_restore_current_thread)
10646 <dont_restore, restore, m_dont_restore>: Declare.
10647 * thread.c (thread_alive): Add assertion. Return bool.
10648 (switch_to_thread_if_alive): New.
10649 (prune_threads): Switch inferior/thread.
10650 (print_thread_info_1): Switch thread before calling target methods.
10651 (scoped_restore_current_thread::restore): New, factored out from
10652 ...
10653 (scoped_restore_current_thread::~scoped_restore_current_thread):
10654 ... this.
10655 (scoped_restore_current_thread::scoped_restore_current_thread):
10656 Add assertion.
10657 (thread_apply_all_command, thread_select): Use
10658 switch_to_thread_if_alive.
10659
7f0ae84c
GB
106602020-01-10 George Barrett <bob@bob131.so>
10661
10662 * stap-probe.c (stap_modify_semaphore): Don't check for null
10663 semaphores.
10664 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10665 for null semaphores.
10666
f5a7c406
AB
106672020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10668
10669 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10670 all source windows, and maintain horizontal scroll status while
10671 doing so.
10672
9ae6bf64
TT
106732020-01-09 Tom Tromey <tom@tromey.com>
10674
10675 PR tui/18932:
10676 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10677 update_source_window, not print_source_lines.
10678
b2efe70c
AB
106792020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10680
10681 * tui/tui.c (tui_enable): Register tui hooks after calling
10682 tui_display_main.
10683
5f23a082
CB
106842020-01-09 Christian Biesinger <cbiesinger@google.com>
10685
10686 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10687
3061113b
SM
106882020-01-08 Simon Marchi <simon.marchi@efficios.com>
10689
10690 * thread.c (print_thread_info_1): Fix indentation.
10691
57d75002
CB
106922020-01-09 Christian Biesinger <cbiesinger@google.com>
10693
10694 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10695 unique_xmalloc_ptr outside the if to always free the demangled name.
10696
6a053cb1
TT
106972020-01-08 Tom Tromey <tromey@adacore.com>
10698
10699 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10700 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10701 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10702 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10703 Remove.
10704 (section_offsets): New typedef.
10705 * symtab.c (fixup_section, get_msymbol_address): Update.
10706 * symmisc.c (dump_msymbols): Update.
10707 * symfile.h (relative_addr_info_to_section_offsets)
10708 (symfile_map_offsets_to_segments): Update.
10709 * symfile.c (build_section_addr_info_from_objfile)
10710 (init_objfile_sect_indices): Update.
10711 (struct place_section_arg): Change type of "offsets".
10712 (place_section): Update.
10713 (relative_addr_info_to_section_offsets): Change type of
10714 "section_offsets". Remove "num_sections" parameter.
10715 (default_symfile_offsets, syms_from_objfile_1)
10716 (set_objfile_default_section_offset): Update.
10717 (reread_symbols): No need to preserve section offsets by hand.
10718 (symfile_map_offsets_to_segments): Change type of "offsets".
10719 * stap-probe.c (relocate_address): Update.
10720 * stabsread.h (process_one_symbol): Update.
10721 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10722 (solib_target_relocate_section_addresses): Update.
10723 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10724 Update.
10725 * solib-frv.c (frv_relocate_main_executable): Update.
10726 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10727 * solib-aix.c (solib_aix_get_section_offsets): Change return
10728 type.
10729 (solib_aix_solib_create_inferior_hook): Update.
10730 * remote.c (remote_target::get_offsets): Update.
10731 * psymtab.c (find_pc_sect_psymtab): Update.
10732 * psympriv.h (struct partial_symbol) <address, text_low,
10733 text_high>: Update.
10734 * objfiles.h (obj_section_offset): Update.
10735 (struct objfile) <section_offsets>: Change type.
10736 <num_sections>: Remove.
10737 (objfile_relocate): Update.
10738 * objfiles.c (entry_point_address_query): Update
10739 (relocate_one_symbol): Change type of "section_offsets".
10740 (objfile_relocate1, objfile_relocate1): Change type of
10741 "new_offsets".
10742 (objfile_rebase1): Update.
10743 * mipsread.c (mipscoff_symfile_read): Update.
10744 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10745 parameter.
10746 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10747 (parse_external, psymtab_to_symtab_1): Update.
10748 * machoread.c (macho_symfile_offsets): Update.
10749 * ia64-tdep.c (ia64_find_unwind_table): Update.
10750 * hppa-tdep.c (read_unwind_info): Update.
10751 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10752 * dwarf2read.c (create_addrmap_from_index)
10753 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10754 (process_psymtab_comp_unit_reader, add_partial_symbol)
10755 (add_partial_subprogram, process_full_comp_unit)
10756 (read_file_scope, read_func_scope, read_lexical_block_scope)
10757 (read_call_site_scope, dwarf2_rnglists_process)
10758 (dwarf2_ranges_process, dwarf2_ranges_read)
10759 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10760 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10761 Update.
10762 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10763 Update.
10764 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10765 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10766 (process_one_symbol): Change type of "section_offsets".
10767 * ctfread.c (get_objfile_text_range): Update.
10768 * coffread.c (coff_symtab_read, enter_linenos)
10769 (process_coff_symbol): Update.
10770 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10771 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10772
456e800a
TT
107732020-01-08 Tom Tromey <tromey@adacore.com>
10774
10775 * dwarf2read.c (parse_macro_definition): Use std::string.
10776 (parse_macro_definition): Likewise.
10777
6dfa2fc2
TT
107782020-01-08 Tom Tromey <tromey@adacore.com>
10779
10780 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10781 (ATTR_ALLOC_CHUNK): Remove.
10782
421d1616
TT
107832020-01-08 Tom Tromey <tromey@adacore.com>
10784
10785 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10786
43816ebc
TT
107872020-01-08 Tom Tromey <tromey@adacore.com>
10788
10789 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10790 (dwarf2_compute_name, open_dwo_file): Likewise.
10791 (process_enumeration_scope): Use std::vector.
10792 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10793 (partial_die_info::fixup, dwarf2_start_subfile)
10794 (guess_full_die_structure_name, dwarf2_name): Likewise.
10795 (determine_prefix): Update.
10796 (guess_full_die_structure_name): Make return type const.
10797 (partial_die_full_name): Return unique_xmalloc_ptr.
10798 (DW_FIELD_ALLOC_CHUNK): Remove.
10799
4212d509
TT
108002020-01-07 Tom Tromey <tromey@adacore.com>
10801
10802 PR build/24937:
10803 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10804
06a6207a
JT
108052020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10806
10807 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10808
153d79c4
AB
108092020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10810
10811 * stack.c (print_frame_info): Move disassemble_next_line code
10812 inside source_print block.
10813
66182876
EZ
108142020-01-06 Eli Zaretskii <eliz@gnu.org>
10815
10816 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10817 gdb/signals.h, as we are now using native signal symbols.
10818
cbfa8581
SV
108192020-01-06 Shahab Vahedi <shahab@synopsys.com>
10820
10821 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10822 overflow by an early check of content vs threshold.
aac66a4c 10823 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10824 Likewise.
10825
3f602821
EZ
108262020-01-06 Eli Zaretskii <eliz@gnu.org>
10827
10828 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10829
a08c904d
JT
108302020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10831
10832 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10833 export table if no section contains it's RVA.
10834
89a65580
EZ
108352020-01-06 Eli Zaretskii <eliz@gnu.org>
10836
10837 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10838
8b7fcda2
HD
108392020-01-06 Hannes Domani <ssbssa@yahoo.de>
10840
10841 * source.c (print_source_lines_base): Set last_line_listed.
10842
a61b4f69
SV
108432020-01-06 Shahab Vahedi <shahab@synopsys.com>
10844
10845 * tui/tui-disasm.c: Remove trailing spaces.
10846
559e7e50
EZ
108472020-01-06 Eli Zaretskii <eliz@gnu.org>
10848 Pedro Alves <palves@redhat.com>
10849
10850 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10851 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10852 (windows_gdb_signal_to_target): New function, uses the above
10853 enumeration to convert GDB internal signal codes to equivalent
10854 Windows codes.
10855 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10856 * windows-nat.c: Include "gdb_wait.h".
10857 (get_windows_debug_event): Extract the fatal exception from the
10858 exit status and convert to the equivalent Posix signal number.
10859 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10860 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10861 * gdbsupport/gdb_wait.c: New file, implements
10862 windows_status_to_termsig.
10863 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10864 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10865
f2302a34
AB
108662020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10867
10868 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10869 show_layout.
10870
6a5206eb
LM
108712020-01-05 Luis Machado <luis.machado@linaro.org>
10872
10873 * aarch64-linux-nat.c
10874 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10875 and bfd_mach_aarch64.
10876
6ec1d75e
PW
108772020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10878
10879 * ui-file.c (stdio_file::can_emit_style_escape)
10880 (tee_file::can_emit_style_escape): Ensure style is used also on
10881 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10882 to gdb_stdout.
10883 * main.c (set_gdb_data_directory): Use file style to output the
10884 warning that the given pathname is not a directory.
10885 * top.c (show_history_filename, gdb_safe_append_history)
10886 (show_gdb_datadir): Use file style.
10887
44f81a76
HD
108882020-01-03 Hannes Domani <ssbssa@yahoo.de>
10889
10890 * solib-target.c (struct lm_info_target):
10891 Change offsets to be a unique_xmalloc_ptr.
10892 (solib_target_relocate_section_addresses): Update.
10893
25057eb0
HD
108942020-01-03 Hannes Domani <ssbssa@yahoo.de>
10895
10896 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10897
6e2118f5
BE
108982020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10899
10900 * MAINTAINERS (Write After Approval): Add myself.
10901
8133c7dc
LM
109022020-01-02 Luis Machado <luis.machado@linaro.org>
10903
10904 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10905 Cell BE architecture.
10906 * target.h (struct target_ops) <thread_architecture>: Likewise.
10907
48189bec
HD
109082020-01-01 Hannes Domani <ssbssa@yahoo.de>
10909
10910 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10911
ead1063b
HD
109122020-01-01 Hannes Domani <ssbssa@yahoo.de>
10913
10914 * MAINTAINERS (Write After Approval): Add myself.
10915
e5d78223
JB
109162020-01-01 Joel Brobecker <brobecker@adacore.com>
10917
10918 * gdbarch.sh: Update copyright year range of generated files.
10919
b811d2c2
JB
109202020-01-01 Joel Brobecker <brobecker@adacore.com>
10921
10922 Update copyright year range in all GDB files.
10923
5f4def5c
JB
109242020-01-01 Joel Brobecker <brobecker@adacore.com>
10925
10926 * copyright.py: Convert to Python 3.
10927
51fd4002
JB
109282020-01-01 Joel Brobecker <brobecker@adacore.com>
10929
10930 * copyright.py: Adapt after move of gnulib directory from gdb
10931 directory to toplevel directory.
10932
5fb651f2
JB
109332020-01-01 Joel Brobecker <brobecker@adacore.com>
10934
10935 * copyright.py (main): Exit if run from the wrong directory.
10936
5dd8bf88
JB
109372020-01-01 Joel Brobecker <brobecker@adacore.com>
10938
10939 * top.c (print_gdb_version): Change copyright year to 2020.
10940
9f71dacb 109412020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10942
9f71dacb 10943 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10944
9f71dacb 10945For older changes see ChangeLog-2019.
c906108c
SS
10946\f
10947Local Variables:
10948mode: change-log
10949left-margin: 8
10950fill-column: 74
10951version-control: never
57da7796 10952coding: utf-8
c906108c 10953End: