]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Testcase for previous handle_no_resumed fixes
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d6cc5d98
PA
12020-07-10 Pedro Alves <pedro@palves.net>
2
3 PR gdb/26199
4 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5 executing threads.
6
7d3badc6
PA
72020-07-10 Pedro Alves <pedro@palves.net>
8
9 PR gdb/26199
10 * infrun.c (handle_no_resumed): Handle multiple targets.
11
42bd97a6
PA
122020-07-10 Pedro Alves <pedro@palves.net>
13
14 PR gdb/26199
15 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
16 target_is_async_p.
17
43667cc6
PA
182020-07-10 Pedro Alves <pedro@palves.net>
19
20 PR gdb/26199
21 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
22 threads, not all threads.
23
96118d11
PA
242020-07-10 Pedro Alves <pedro@palves.net>
25
26 PR gdb/26199
27 * remote.c (remote_target::open_1): Pass remote target pointer as
28 data to create_async_event_handler.
29 (remote_async_inferior_event_handler): Mark async event handler
30 before returning if the remote target still has either pending
31 events or unacknowledged notifications.
32
54904d81
JB
332020-07-10 John Baldwin <jhb@FreeBSD.org>
34
35 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
36 declaration.
37 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
38 function.
39
f37e5866
JB
402020-07-09 John Baldwin <jhb@FreeBSD.org>
41
42 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
43 inferior_ptid.
44
fc238d4a
JB
452020-07-09 John Baldwin <jhb@FreeBSD.org>
46
47 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
48 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
49 AT_FREEBSD_PS_STRINGS.
50
6e2469ff
HD
512020-07-08 Hannes Domani <ssbssa@yahoo.de>
52
53 * auto-load.c (auto_load_objfile_script_1): Convert drive part
54 of debugfile path on Windows.
55
d1076c41
JB
562020-07-08 John Baldwin <jhb@FreeBSD.org>
57
58 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
59 argument to 'data'.
60
15f3b077
TT
612020-07-08 Tom Tromey <tromey@adacore.com>
62
63 * ada-lang.c (ada_exception_message_1): Use read_memory.
64
9fc501fd
AB
652020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
66
67 PR python/22748
68 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
69 special handling for inline frames.
70 * findvar.c (value_of_register_lazy): Skip inline frames when
71 creating lazy register values.
72 * frame.c (frame_id_computed_p): Delete definition.
73 * frame.h (frame_id_computed_p): Delete declaration.
74
64cb3757
AB
752020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
76
77 * NEWS: Mention additions to Python API.
78 * python/py-arch.c (archpy_register_groups): New function.
79 (arch_object_methods): Add 'register_groups' method.
80 * python/py-registers.c (reggroup_iterator_object): New struct.
81 (reggroup_object): New struct.
82 (gdbpy_new_reggroup): New function.
83 (gdbpy_reggroup_to_string): New function.
84 (gdbpy_reggroup_name): New function.
85 (gdbpy_reggroup_iter): New function.
86 (gdbpy_reggroup_iter_next): New function.
87 (gdbpy_new_reggroup_iterator): New function
88 (gdbpy_initialize_registers): Register new types.
89 (reggroup_iterator_object_type): Define new Python type.
90 (gdbpy_reggroup_getset): New static global.
91 (reggroup_object_type): Define new Python type.
92 * python/python-internal.h
93
0f767f94
AB
942020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
95
96 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
97 * python/py-arch.c (archpy_registers): New function.
98 (arch_object_methods): Add 'registers' method.
99 * python/py-registers.c: New file.
100 * python/python-internal.h
101 (gdbpy_new_register_descriptor_iterator): Declare.
102 (gdbpy_initialize_registers): Declare.
103 * python/python.c (do_start_initialization): Call
104 gdbpy_initialize_registers.
105 * NEWS: Mention additions to the Python API.
106
87dbc774
AB
1072020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
108
109 * NEWS: Mention new Python API method.
110 * python/py-unwind.c (pending_framepy_architecture): New function.
111 (pending_frame_object_methods): Add architecture method.
112
3bc98c0c
AB
1132020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
114
115 * gdbarch.c: Regenerate.
116 * gdbarch.h: Regenerate.
117 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
118 (gdbarch_data): Use internal_error for the case where
119 deprecated_set_gdbarch_data was originally needed.
120 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
121 and use passed in obstack.
122 (libunwind_frame_set_descr): Should no longer get back NULL from
123 gdbarch_data.
124 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
125 type.
126 * user-regs.c (user_regs_init): Update parameters, and use passed
127 in obstack.
128 (user_reg_add): Should no longer get back NULL from gdbarch_data.
129 (_initialize_user_regs): Register as a pre-init gdbarch data type.
130
d8cc8af6
TV
1312020-07-06 Tom de Vries <tdevries@suse.de>
132
133 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
134 End-Of-Sequence in lte_is_less_than.
135 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
136 "gdb: Don't reorder line table entries too much when sorting".
137
947f7597
TV
1382020-07-06 Tom de Vries <tdevries@suse.de>
139
140 PR tui/26205
141 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
142
1e7c1b22
TV
1432020-07-05 Tom de Vries <tdevries@suse.de>
144
145 PR build/26187
146 * inferior.h (struct infcall_suspend_state_deleter): If available, use
147 std::uncaught_exceptions instead of deprecated
148 std::uncaught_exception.
149
a36158ec
SM
1502020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
151
152 * macroexp.h (macro_stringify): Return
153 gdb::unique_xmalloc_ptr<char>.
154 * macroexp.c (macro_stringify): Likewise.
155 * macrotab.c (fixup_definition): Update.
156
14d960c8
SM
1572020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
158
159 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
160 (lex_one_token): Update.
161 * macroexp.c (struct macro_buffer) <release>: Return
162 gdb::unique_xmalloc_ptr<char>.
163 (macro_stringify): Update.
164 (macro_expand): Update.
165 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
166 * macroexp.h (macro_expand_next): Likewise.
167
211d5b1c
SM
1682020-07-02 Simon Marchi <simon.marchi@efficios.com>
169
170 * macroexp.h (macro_lookup_ftype): Remove.
171 (macro_expand, macro_expand_once, macro_expand_next): Remove
172 lookup function parameters, add scope parameter.
173 * macroexp.c (scan, substitute_args, expand, maybe_expand,
174 macro_expand, macro_expand_once, macro_expand_next): Likewise.
175 * macroscope.h (standard_macro_lookup): Change parameter type
176 to macro_scope.
177 * macroscope.c (standard_macro_lookup): Likewise.
178 * c-exp.y (lex_one_token): Update.
179 * macrocmd.c (macro_expand_command): Likewise.
180 (macro_expand_once_command): Likewise.
181
b1a35af2
SM
1822020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
183
184 * inf-loop.c (inferior_event_handler): Remove client_data param.
185 * inf-loop.h (inferior_event_handler): Likewise.
186 * infcmd.c (step_1): Adjust.
187 * infrun.c (proceed): Adjust.
188 (fetch_inferior_event): Remove client_data param.
189 (infrun_async_inferior_event_handler): Adjust.
190 * infrun.h (fetch_inferior_event): Remove `void *` param.
191 * linux-nat.c (handle_target_event): Adjust.
192 * record-btrace.c (record_btrace_handle_async_inferior_event):
193 Adjust.
194 * record-full.c (record_full_async_inferior_event_handler):
195 Adjust.
196 * remote.c (remote_async_inferior_event_handler): Adjust.
197
1cdf9e33
TT
1982020-07-01 Tom Tromey <tom@tromey.com>
199
200 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
201 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
202
32c1e210
TT
2032020-07-01 Tom Tromey <tom@tromey.com>
204
205 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
206 tui_gen_win_info.
207 (tui_win_info::make_window): Merge with
208 tui_gen_win_info::make_window.
209 (tui_win_info::make_visible): Move from tui_gen_win_info.
210 * tui/tui-win.c (tui_win_info::max_width): Move from
211 tui_gen_win_info.
212 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
213 type.
214 <window_factory>: Likewise.
215 * tui/tui-layout.c (tui_win_info::resize): Move from
216 tui_gen_win_info.
217 (make_standard_window): Change return type.
218 (get_locator_window, tui_get_window_by_name): Likewise.
219 (tui_layout_window::apply): Remove a cast.
220 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
221 (struct tui_win_info): Merge with tui_gen_win_info.
222 (struct tui_gen_win_info): Remove.
223
a30cb6da
TT
2242020-07-01 Tom Tromey <tom@tromey.com>
225
226 * tui/tui-stack.h (struct tui_locator_window): Derive from
227 tui_win_info.
228 <do_scroll_horizontal, do_scroll_vertical>: New methods.
229 <can_box>: New method.
230
1eb2161f
TT
2312020-07-01 Tom Tromey <tom@tromey.com>
232
233 * tui/tui-stack.h (struct tui_locator_window): Remove body.
234
7134f2eb
TT
2352020-07-01 Tom Tromey <tom@tromey.com>
236
237 * tui/tui-regs.c (tui_data_window::display_registers_from)
238 (tui_data_window::display_registers_from)
239 (tui_data_window::first_data_item_displayed)
240 (tui_data_window::delete_data_content_windows): Update.
241 (tui_data_window::refresh_window, tui_data_window::no_refresh):
242 Remove.
243 (tui_data_window::check_register_values): Update.
244 (tui_data_item_window::rerender): Add parameters. Update.
245 (tui_data_item_window::refresh_window): Remove.
246 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
247 virtual.
248 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
249 tui_gen_win_info.
250 <refresh_window, max_height, min_height>: Remove.
251 <rerender>: Add parameters.
252 <x, y, visible>: New members.
253 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
254 <m_item_width>: New member.
255
22b7b041
TT
2562020-07-01 Tom Tromey <tom@tromey.com>
257
258 * tui/tui-regs.c (tui_data_window::show_register_group)
259 (tui_data_window::check_register_values): Update.
260 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
261 from item_no.
262
c9753adb
TT
2632020-07-01 Tom Tromey <tom@tromey.com>
264
265 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
266 useless "if".
267
9ab26b4a
TT
2682020-07-01 Tom Tromey <tom@tromey.com>
269
270 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
271 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
272
e555083f
TT
2732020-07-01 Tom Tromey <tom@tromey.com>
274
275 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
276 * tui/tui-winsource.h (enum tui_line_or_address_kind)
277 (struct tui_line_or_address): Move from tui-data.h.
278 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
279 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
280 (tui_cmd_window, tui_source_window_base, tui_source_window)
281 (tui_disasm_window): Don't declare.
282 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
283 to tui-winsource.h.
284 (SINGLE_KEY): Move to tui-stack.c.
285
7a02bab7
TT
2862020-07-01 Tom Tromey <tom@tromey.com>
287
288 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
289 std::string.
290 * tui/tui-regs.c (class tab_expansion_file): New.
291 (tab_expansion_file::write): New method.
292 (tui_register_format): Change return type. Use
293 tab_expansion_file.
294 (tui_get_register, tui_data_window::display_registers_from)
295 (tui_data_item_window::rerender): Update.
296 * tui/tui-io.h (tui_expand_tabs): Don't declare.
297 * tui/tui-io.c (tui_expand_tabs): Remove.
298
ea68593b
TT
2992020-07-01 Tom Tromey <tom@tromey.com>
300
301 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
302
a8caed5d
FS
3032020-07-01 Fangrui Song <maskray@google.com>
304
305 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
306
9cdf9820
AKS
3072020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
308
309 * dwarf2/read.c (set_die_type): Removed conditions to restrict
310 forms for DW_AT_associated and DW_AT_allocated attributes,
311 which is already checked in function attr_to_dynamic_prop.
312
a1520ad8
TT
3132020-06-30 Tom Tromey <tromey@adacore.com>
314
315 * dwarf2/read.c (quirk_rust_enum): Correctly call
316 alloc_rust_variant for default-less enum.
317
5ac58899
TT
3182020-06-30 Tom Tromey <tromey@adacore.com>
319
320 PR build/26183:
321 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
322 gdb::to_string.
323
19b187a9
SM
3242020-06-29 Simon Marchi <simon.marchi@efficios.com>
325
326 * gdbarch.sh (displaced_step_copy_insn): Update doc.
327 * gdbarch.h: Re-generate.
328
cd4c4c07
TT
3292020-06-28 Tom Tromey <tom@tromey.com>
330
331 * command.h (cmd_types): Remove.
332 (cmd_type): Don't declare.
333 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
334 typedef.
335 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
336 * cli/cli-decode.c (cmd_type): Remove.
337
05779d57
PA
3382020-06-27 Pedro Alves <palves@redhat.com>
339
340 * fork-child.c (prefork_hook): Adjust.
341 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
342 Delete.
343 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
344 * inferior.c (inferior::set_tty, inferior::tty): New methods.
345 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
346 Remove declarations.
347 (struct inferior) <set_tty, tty>: New methods.
348 (struct inferior) <terminal>: Rename to ...
349 (struct inferior) <m_terminal>: ... this and make private.
350 * main.c (captured_main_1): Adjust.
351 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
352 (mi_cmd_inferior_tty_show): Adjust.
353 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
354 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
355
1776e3e5
NA
3562020-06-26 Nick Alcock <nick.alcock@oracle.com>
357
358 * configure.ac: Add --enable-libctf: handle --disable-static
359 properly.
360 * acinclude.m4: sinclude ../config/enable.m4.
361 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
362 (LIBCTF): Substitute in.
363 (CTF_DEPS): New, likewise.
364 (CLIBS): libctf needs symbols from libbfd: move earlier.
365 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
366 flags.
367 * ctfread.c: Surround in ENABLE_LIBCTF.
368 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
369 * configure: Regenerate.
370 * config.in: Likewise.
371
58373b80
SM
3722020-06-25 Simon Marchi <simon.marchi@efficios.com>
373
374 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
375
277474ee
SM
3762020-06-25 Simon Marchi <simon.marchi@efficios.com>
377
378 * inferior.h (struct inferior) <terminal>: Change type to
379 gdb::unique_xmalloc_ptr<char>.
380 * inferior.c (inferior::~inferior): Don't free inf->terminal.
381 * infcmd.c (set_inferior_io_terminal): Don't free terminal
382 field, adjust to unique pointer.
383 (get_inferior_io_terminal): Adjust to unique pointer.
384
6d74da72
AB
3852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
386
387 * riscv-tdep.c (riscv_print_registers_info): Loop over all
388 registers, not just the known core set of registers.
389
2e52d038
AB
3902020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
391
392 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
393 fflags, frm, and fcsr registers.
394 (riscv_register_reggroup_p): Remove unknown CSRs from save and
395 restore groups.
396 (riscv_tdesc_unknown_reg): New function.
397 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
398 tdesc_use_registers.
399 * riscv-tdep.h (struct gdbarch_tdep): Add
400 unknown_csrs_first_regnum, unknown_csrs_count,
401 duplicate_fflags_regnum, duplicate_frm_regnum, and
402 duplicate_fcsr_regnum fields.
403
be64fd07
AB
4042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
405
406 * target-descriptions.c (tdesc_use_registers): Add new parameter a
407 callback, use the callback (when not null) to help number unknown
408 registers.
409 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
410 (tdesc_use_registers): Add extra parameter to declaration.
411
3b9fce96
AB
4122020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
413
414 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
415 in the file.
416 (class riscv_pending_register_alias): Likewise.
417 (riscv_register_feature::register_info): Change 'required_p' field
418 to 'required', and change its type. Add 'check' member function.
419 (riscv_register_feature::register_info::check): Define new member
420 function.
421 (riscv_xreg_feature): Change initialisation of 'required' field.
422 (riscv_freg_feature): Likewise.
423 (riscv_virtual_feature): Likewise.
424 (riscv_csr_feature): Likewise.
425 (riscv_check_tdesc_feature): Take extra parameter, the csr
426 tdesc_feature, rewrite the function to use the new
427 riscv_register_feature::register_info::check function.
428 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
429
865bad26
AB
4302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
431
432 * features/Makefile: Remove all references to the deleted files
433 below.
434 * features/riscv/32bit-csr.c: Deleted.
435 * features/riscv/32bit-csr.xml: Deleted.
436 * features/riscv/64bit-csr.c: Deleted.
437 * features/riscv/64bit-csr.xml: Deleted.
438 * features/riscv/rebuild-csr-xml.sh: Deleted.
439
ed69cbc8
AB
4402020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
441
442 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
443 whitespace error for declaration of names member variable.
444 (struct riscv_register_feature): Add new prefer_first_name member
445 variable, and fix whitespace error in declaration of registers.
446 (riscv_xreg_feature): Initialize prefer_first_name field.
447 (riscv_freg_feature): Likewise.
448 (riscv_virtual_feature): Likewise.
449 (riscv_csr_feature): Likewise.
450 (riscv_register_name): Expand on comments. Remove register name
451 modifications for CSR and virtual registers.
452
4445e8f5
AB
4532020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
454
455 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
456 errors.
457
767a879e
AB
4582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
459
460 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
461 riscv-opc.h.
462 (class riscv_pending_register_alias): New class.
463 (riscv_check_tdesc_feature): Take vector of pending aliases and
464 populate it as appropriate.
465 (riscv_setup_register_aliases): Delete.
466 (riscv_gdbarch_init): Create vector of pending aliases and pass it
467 to riscv_check_tdesc_feature in all cases. Use the vector to
468 create the register aliases.
469
bb6e55f3
RO
4702020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
471
472 * sol2-tdep.c (sol2_static_transform_name): Remove.
473 (sol2_init_abi): Don't register it.
474 * gdbarch.sh (static_transform_name): Remove.
475 * gdbarch.c, gdbarch.h: Regenerate.
476
477 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
478 gdbarch_static_transform_name.
479 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
480 * stabsread.c (define_symbol) <'X'>: Remove.
481 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
482 handling.
483 <'V'>: Likewise.
484 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
485 <'S'>: Remove call to gdbarch_static_transform_name.
486
c6d36836
RO
4872020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
488
489 * procfs.c (procfs_pre_trace): New function.
490 (procfs_target::create_inferior): Pass it to fork_inferior.
491
a7e6196b
RO
4922020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
493
494 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
495 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
496 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
497 sol2-tdep.o, sparc-sol2-tdep.o.
498 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
499 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
500 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
501 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
502
d412e696
RO
5032020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
504
505 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
506 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
507 Call sol2_init_abi.
508 Remove calls to set_gdbarch_skip_solib_resolver,
509 set_gdbarch_core_pid_to_str.
510 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
511 (i386_sol2_static_transform_name): Remove.
512 (i386_sol2_init_abi): Call sol2_init_abi.
513 Remove calls to set_gdbarch_sofun_address_maybe_missing,
514 set_gdbarch_static_transform_name,
515 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
516 Use sol2_sigtramp_p.
517 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
518 (sol2_sigtramp_p): New function.
519 (sol2_static_transform_name): New function.
520 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
521 (sol2_init_abi): New function.
522 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
523 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
524 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
525 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
526 (sparc_sol2_static_transform_name): Remove.
527 (sparc32_sol2_init_abi): Call sol2_init_abi.
528 Remove calls to set_gdbarch_sofun_address_maybe_missing,
529 set_gdbarch_static_transform_name,
530 set_gdbarch_skip_solib_resolver,
531 set_gdbarch_core_pid_to_str.
532 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
533 (sparc_sol2_static_transform_name): Remove
534 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
535 call sol2_sigtramp_p.
536 (sparc64_sol2_init_abi): Call sol2_init_abi.
537 Remove calls to set_gdbarch_sofun_address_maybe_missing,
538 set_gdbarch_static_transform_name,
539 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
540
a8654e7d
PW
5412020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
542
543 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
544 * exec.c (validate_exec_file): If from_tty, set both
545 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
546 * symfile.c (symbol_file_add_with_addrs): if always_confirm
547 and from_tty, unconditionally ask a confirmation.
548
caa7fd04
AB
5492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
550
551 * target-descriptions.c (tdesc_architecture_name): Protect against
552 NULL pointer dereference.
553 (maint_print_xml_tdesc_cmd): New function.
554 (_initialize_target_descriptions): Register new 'maint print
555 xml-tdesc' command and give it the filename completer.
556 * NEWS: Mention new 'maint print xml-tdesc' command.
557
fbf42f4e
AB
5582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
559
560 * target-descriptions.c (class tdesc_compatible_info): New class.
561 (struct target_desc): Change type of compatible vector.
562 (tdesc_compatible_p): Update for change in type of
563 target_desc::compatible.
564 (tdesc_compatible_info_list): New function.
565 (tdesc_compatible_info_arch_name): New function.
566 (tdesc_add_compatible): Update for change in type of
567 target_desc::compatible.
568 (print_c_tdesc::visit_pre): Likewise.
569
20821f4e
AB
5702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
571
572 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
573 whitespace to underscore.
574 (maint_print_c_tdesc_cmd): Use fake filename for target
575 descriptions that came from the target.
576 (_initialize_target_descriptions): Add filename command completion
577 for 'maint print c-tdesc'.
578
1fb5ee62
SM
5792020-06-23 Simon Marchi <simon.marchi@efficios.com>
580
581 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
582 lines.
583
fc3ecb3e
SM
5842020-06-23 Simon Marchi <simon.marchi@efficios.com>
585
586 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
587 lines.
588 (dwarf2_find_location_expression): Likewise.
589 (call_site_parameter_matches): Likewise.
590 (dwarf2_compile_expr_to_ax): Likewise.
591 (disassemble_dwarf_expression): Likewise.
592 (loclist_describe_location): Likewise.
593
236ef034
PA
5942020-06-23 Pedro Alves <palves@redhat.com>
595
596 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
597 progspace-and-thread.h. Include scoped-mock-context.h instead.
598 (register_to_value_test): Use scoped_mock_context.
599 * regcache.c: Include "scoped-mock-context.h".
600 (cooked_read_test): Don't error out if a target is already pushed.
601 Use scoped_mock_context. Adjust.
602 * scoped-mock-context.h: New file.
603
39e7ecca
AB
6042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
605
606 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
607 initializer.
608 (ada_language::is_string_type_p): New member function.
609 * c-lang.c (c_language_data): Delete la_is_string_type_p
610 initializer.
611 (cplus_language_data): Likewise.
612 (asm_language_data): Likewise.
613 (minimal_language_data): Likewise.
614 * d-lang.c (d_language_data): Likewise.
615 * f-lang.c (f_is_string_type_p): Delete function, implementation
616 moved to f_language::is_string_type_p.
617 (f_language_data): Delete la_is_string_type_p initializer.
618 (f_language::is_string_type_p): New member function,
619 implementation from f_is_string_type_p.
620 * go-lang.c (go_is_string_type_p): Delete function, implementation
621 moved to go_language::is_string_type_p.
622 (go_language_data): Delete la_is_string_type_p initializer.
623 (go_language::is_string_type_p): New member function,
624 implementation from go_is_string_type_p.
625 * language.c (language_defn::is_string_type_p): Define new member
626 function.
627 (default_is_string_type_p): Make static, add comment copied from
628 header file.
629 (unknown_language_data): Delete la_is_string_type_p initializer.
630 (unknown_language::is_string_type_p): New member function.
631 (auto_language_data): Delete la_is_string_type_p initializer.
632 (auto_language::is_string_type_p): New member function.
633 * language.h (language_data): Delete la_is_string_type_p field.
634 (language_defn::is_string_type_p): Declare new function.
635 (default_is_string_type_p): Delete desclaration, move comment to
636 definition.
637 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
638 moved to m2_language::is_string_type_p.
639 (m2_language_data): Delete la_is_string_type_p initializer.
640 (m2_language::is_string_type_p): New member function,
641 implementation from m2_is_string_type_p.
642 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
643 initializer.
644 * opencl-lang.c (opencl_language_data): Likewise.
645 * p-lang.c (pascal_is_string_type_p): Delete function,
646 implementation moved to pascal_language::is_string_type_p.
647 (pascal_language_data): Delete la_is_string_type_p initializer.
648 (pascal_language::is_string_type_p): New member function,
649 implementation from pascal_is_string_type_p.
650 * rust-lang.c (rust_is_string_type_p): Delete function,
651 implementation moved to rust_language::is_string_type_p.
652 (rust_language_data): Delete la_is_string_type_p initializer.
653 (rust_language::is_string_type_p): New member function,
654 implementation from rust_is_string_type_p.
655 * valprint.c (val_print_scalar_or_string_type_p): Update call to
656 is_string_type_p.
657
4ffc13fb
AB
6582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
659
660 * ada-lang.c (ada_language_data): Delete la_print_typedef
661 initializer.
662 (ada_language::print_typedef): New member function.
663 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
664 (cplus_language_data): Likewise.
665 (asm_language_data): Likewise.
666 (minimal_language_data): Likewise.
667 * d-lang.c (d_language_data): Likewise.
668 * f-lang.c (f_language_data): Likewise.
669 (f_language::print_typedef): New member function.
670 * go-lang.c (go_language_data): Delete la_print_typedef
671 initializer.
672 * language.c (language_defn::print_typedef): Define member
673 function.
674 (unknown_language_data): Delete la_print_typedef initializer.
675 (unknown_language::print_typedef): New member function.
676 (auto_language_data): Delete la_print_typedef initializer.
677 (auto_language::print_typedef): New member function.
678 * language.h (language_data): Delete la_print_typedef field.
679 (language_defn::print_typedef): Declare new member function.
680 (LA_PRINT_TYPEDEF): Update call to print_typedef.
681 (default_print_typedef): Delete declaration.
682 * m2-lang.c (m2_language_data): Delete la_print_typedef
683 initializer.
684 (m2_language::print_typedef): New member function.
685 * objc-lang.c (objc_language_data): Delete la_print_typedef
686 initializer.
687 * opencl-lang.c (opencl_language_data): Likewise.
688 * p-lang.c (pascal_language_data): Likewise.
689 (pascal_language::print_typedef): New member function.
690 * rust-lang.c (rust_print_typedef): Delete function,
691 implementation moved to rust_language::print_typedef.
692 (rust_language): Delete la_print_typedef initializer.
693 (rust_language::print_typedef): New member function,
694 implementation from rust_print_typedef.
695 * typeprint.c (default_print_typedef): Delete.
696
d711ee67
AB
6972020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
698
699 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
700 (ada_language::printstr): New member function.
701 * c-lang.c (c_language_data): Delete la_printstr initializer.
702 (cplus_language_data): Likewise.
703 (asm_language_data): Likewise.
704 (minimal_language_data): Likewise.
705 * d-lang.c (d_language_data): Likewise.
706 * f-lang.c (f_printstr): Rename to f_language::printstr.
707 (f_language_data): Delete la_printstr initializer.
708 (f_language::printstr): New member function, implementation from
709 f_printstr.
710 * go-lang.c (go_language_data): Delete la_printstr initializer.
711 * language.c (language_defn::printstr): Define new member
712 function.
713 (unk_lang_printstr): Delete.
714 (unknown_language_data): Delete la_printstr initializer.
715 (unknown_language::printstr): New member function.
716 (auto_language_data): Delete la_printstr initializer.
717 (auto_language::printstr): New member function.
718 * language.h (language_data): Delete la_printstr field.
719 (language_defn::printstr): Declare new member function.
720 (LA_PRINT_STRING): Update call to printstr.
721 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
722 (m2_language_data): Delete la_printstr initializer.
723 (m2_language::printstr): New member function, implementation from
724 m2_printstr.
725 * objc-lang.c (objc_language_data): Delete la_printstr
726 initializer.
727 * opencl-lang.c (opencl_language_data): Likewise.
728 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
729 (pascal_language_data): Delete la_printstr initializer.
730 (pascal_language::printstr): New member function, implementation
731 from pascal_printstr.
732 * p-lang.h (pascal_printstr): Delete declaration.
733 * rust-lang.c (rust_printstr): Update header comment.
734 (rust_language_data): Delete la_printstr initializer.
735 (rust_language::printstr): New member function.
736
52b50f2c
AB
7372020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
738
739 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
740 (ada_language::printchar): New member function.
741 * c-lang.c (c_language_data): Delete la_printchar 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_printchar): Rename to f_language::printchar.
747 (f_language_data): Delete la_printchar initializer.
748 (f_language::printchar): New member function, implementation from
749 f_printchar.
750 * go-lang.c (go_language_data): Delete la_printchar initializer.
751 * language.c (unk_lang_printchar): Delete.
752 (language_defn::printchar): Define new member function.
753 (unknown_language_data): Delete la_printchar initializer.
754 (unknown_language::printchar): New member function.
755 (auto_language_data): Delete la_printchar initializer.
756 (auto_language::printchar): New member function.
757 * language.h (language_data): Delete la_printchar field.
758 (language_defn::printchar): Declare new member function.
759 (LA_PRINT_CHAR): Update call to printchar.
760 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
761 (m2_language::printchar): New member function.
762 * objc-lang.c (objc_language_data): Delete la_printchar
763 initializer.
764 * opencl-lang.c (opencl_language_data): Likewise.
765 * p-lang.c (pascal_language_data): Delete la_printchar
766 initializer.
767 (pascal_language::printchar): New member function.
768 * rust-lang.c (rust_printchar): Rename to
769 rust_language::printchar.
770 (rust_language_data): Delete la_printchar initializer.
771 (rust_language::printchar): New member function, implementation
772 from rust_printchar.
773
ec8cec5b
AB
7742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
775
776 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
777 (ada_language_data): Delete la_emitchar initializer.
778 (ada_language::emitchar): New member function, implementation from
779 emit_char.
780 * c-lang.c (c_language_data): Delete la_emitchar initializer.
781 (cplus_language_data): Likewise.
782 (asm_language_data): Likewise.
783 (minimal_language_data): Likewise.
784 * d-lang.c (d_language_data): Likewise.
785 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
786 (f_language_data): Delete la_emitchar initializer.
787 (f_language::emitchar): New member function, implementation from
788 f_emit_char.
789 * go-lang.c (go_language_data): Delete la_emitchar initializer.
790 * language.c (unk_lang_emit_char): Delete.
791 (language_defn::emitchar): New member function definition.
792 (unknown_language_data): Delete la_emitchar initializer.
793 (unknown_language::emitchar): New member function.
794 (auto_language_data): Delete la_emitchar initializer.
795 (auto_language::emitchar): New member function.
796 * language.h (language_data): Delete la_emitchar field.
797 (language_defn::emitchar): New member field declaration.
798 (LA_EMIT_CHAR): Update call to emitchar.
799 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
800 (m2_language_data): Delete la_emitchar initializer.
801 (m2_language::emitchar): New member function, implementation from
802 m2_emit_char.
803 * objc-lang.c (objc_language_data): Delete la_emitchar
804 initializer.
805 * opencl-lang.c (opencl_language_data): Likewise.
806 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
807 (pascal_language_data): Delete la_emitchar initializer.
808 (pascal_language::emitchar): New member function, implementation
809 from pascal_emit_char.
810 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
811 (rust_language_data): Delete la_emitchar initializer.
812 (rust_language::emitchar): New member function, implementation
813 from rust_emitchar.
814
1bf9c363
AB
8152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
816
817 * ada-lang.c (resolve): Rename to ada_language::post_parser.
818 (ada_language_data): Delete la_post_parser initializer.
819 (ada_language::post_parser): New member function.
820 * c-lang.c (c_language_data): Delete la_post_parser initializer.
821 (cplus_language_data): Likewise.
822 (asm_language_data): Likewise.
823 (minimal_language_data): Likewise.
824 * d-lang.c (d_language_data): Likewise.
825 * f-lang.c (f_language_data): Likewise.
826 * go-lang.c (go_language_data): Likewise.
827 * language.c (unknown_language_data): Likewise.
828 (auto_language_data): Likewise.
829 * language.h (language_data): Delete la_post_parser field.
830 (language_defn::post_parser): New member function.
831 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
832 * objc-lang.c (objc_language_data): Likewise.
833 * opencl-lang.c (opencl_language_data): Likewise.
834 * p-lang.c (pascal_language_data): Likewise.
835 * parse.c (parse_exp_in_context): Update call to post_parser.
836 (null_post_parser): Delete definition.
837 * parser-defs.h (null_post_parser): Delete declaration.
838 * rust-lang.c (rust_language_data): Delete la_post_parser
839 initializer.
840
87afa652
AB
8412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
842
843 * ada-lang.c (parse): Rename to ada_language::parser.
844 (ada_language_data): Delete la_parser initializer.
845 (ada_language::parser): New member function, implementation from
846 parse.
847 * c-lang.c (c_language_data): Delete la_parser initializer.
848 (cplus_language_data): Likewise.
849 (asm_language_data): Likewise.
850 (minimal_language_data): Likewise.
851 * d-lang.c (d_language_data): Likewise.
852 (d_language::parser): New member function.
853 * f-lang.c (f_language_data): Delete la_parser initializer.
854 (f_language::parser): New member function.
855 * go-lang.c (go_language_data): Delete la_parser initializer.
856 (go_language::parser): New member function.
857 * language.c (unk_lang_parser): Delete.
858 (language_defn::parser): Define new member function.
859 (unknown_language_data): Delete la_parser initializer.
860 (unknown_language::parser): New member function.
861 (auto_language_data): Delete la_parser initializer.
862 (auto_language::parser): New member function.
863 * language.h (language_data): Delete la_parser field.
864 (language_defn::parser): Declare new member function.
865 * m2-lang.c (m2_language_data): Delete la_parser initializer.
866 (m2_language::parser): New member function.
867 * objc-lang.c (objc_language_data): Delete la_parser initializer.
868 * opencl-lang.c (opencl_language_data): Likewise.
869 * p-lang.c (pascal_language_data): Likewise.
870 (pascal_language::parser): New member function.
871 * parse.c (parse_exp_in_context): Update call to parser.
872 * rust-lang.c (rust_language_data): Delete la_parser initializer.
873 (rust_language::parser): New member function.
874
37825800
AB
8752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
876
877 * top.c (print_gdb_configuration): Print --with-python-libdir
878 configuration value.
879
5b860c93
PW
8802020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
881
882 * NEWS: Mention change to the alias command.
883
cf00cd6f
PW
8842020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
885
886 * cli/cli-cmds.c (lookup_cmd_for_default_args)
887 (alias_command_completer)
888 (make_alias_options_def_group): New functions.
889 (alias_opts, alias_option_defs): New struct and array.
890 (alias_usage_error): Update usage.
891 (alias_command): Handles optional DEFAULT-ARGS... arguments.
892 Use option framework.
893 (_initialize_cli_cmds): Update alias command help.
894 Update aliases command help.
895 (show_user):
896 Add NULL for new default_args lookup_cmd argument.
897 (valid_command_p): Rename to validate_aliased_command.
898 Add NULL for new default_args lookup_cmd argument. Verify that the
899 aliased_command has no default args.
900 * cli/cli-decode.c (help_cmd): Show aliases definitions.
901 (lookup_cmd_1, lookup_cmd): New argument default_args.
902 (add_alias_cmd):
903 Add NULL for new default_args lookup_cmd argument.
904 (print_help_for_command): Show default args under the layout
905 alias some_alias = some_aliased_cmd some_alias_default_arg.
906 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
907 xfree default_args in destructor.
908 * cli/cli-script.c (process_next_line, do_define_command):
909 Add NULL for new default_args lookup_cmd argument.
910 * command.h: Declare new default_args argument in lookup_cmd
911 and lookup_cmd_1.
912 * completer.c (complete_line_internal_1):
913 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
914 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
915 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
916 Likewise.
917 * infcmd.c (_initialize_infcmd): Likewise.
918 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
919 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
920 * python/py-param.c (add_setshow_generic): Likewise.
921 * remote.c (_initialize_remote): Likewise.
922 * top.c (execute_command): Prepend default_args if command has some.
923 (set_verbose):
924 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
925 * tracepoint.c (validate_actionline, encode_actions_1):
926 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
927
bd920864
TBA
9282020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
929
930 * jit.c (jit_read_descriptor): Use bool as the return type.
931 (jit_breakpoint_re_set_internal): Use bool as the return type.
932 Invert the return value logic; return true if the jit breakpoint
933 has been successfully initialized.
934 (jit_inferior_init): Update the call to
935 jit_breakpoint_re_set_internal.
936
f8098322
PA
9372020-06-22 Pedro Alves <palves@redhat.com>
938
939 PR gdb/25939
940 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
941 Use the current inferior instead. Don't return
942 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
943 wait again.
944 * sol-thread.c (sol_thread_target::wait): Don't reference
945 inferior_ptid.
946 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
947 (sol_update_thread_list_callback): Use the current inferior's pid
948 instead of inferior_ptid.
949
196535a6
RO
9502020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
951
952 * procfs.c: Cleanup many comments.
953
954 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
955 (AFTER_WATCHFLAG): Replace by value.
956
957 (MAIN_PROC_NAME_FORMAT): Inline ...
958 (create_procinfo): ... here.
959
960 (procfs_debug_inferior): Remove SYS_exec handling.
961 (syscall_is_exec): Likewise.
962 (procfs_set_exec_trap): Likewise.
963
964 (syscall_is_lwp_exit): Inline in callers.
965 (syscall_is_exit): Likewise.
966 (syscall_is_exec): Likewise.
967 (syscall_is_lwp_create): Likewise.
968
969 (invalidate_cache): Remove #if 0 code.
970
971 (make_signal_thread_runnable): Remove.
972 (procfs_target::resume): Remove #if 0 code.
973
cf6f3e86
RO
9742020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
975
976 PR gdb/25939
977 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
978 call ...
979 (procfs_target::create_inferior): ... here.
980
48e9cc84
PW
9812020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
982
983 * exec.c (validate_exec_file): Ensure the build-id is up to
984 date by calling reopen_exec_file (that checks file timestamp
985 to decide to re-read the file).
986
3922b302
PA
9872020-06-18 Pedro Alves <palves@redhat.com>
988
989 PR gdb/25412
990 * gdbthread.h (delete_thread, delete_thread_silent)
991 (find_thread_ptid): Update comments.
992 * thread.c (current_thread_): New global.
993 (is_current_thread): Move higher, and reimplement.
994 (inferior_thread): Reimplement.
995 (set_thread_exited): Use bool. Add assertions.
996 (add_thread_silent): Simplify thread-reuse handling by always
997 calling delete_thread.
998 (delete_thread): Remove intro comment.
999 (find_thread_ptid): Skip exited threads.
1000 (switch_to_thread_no_regs): Write to current_thread_.
1001 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1002 INFERIOR_PTID. Clear current_thread_.
1003
6dbdab44
PA
10042020-06-18 Pedro Alves <palves@redhat.com>
1005
1006 * aix-thread.c (pd_update): Use switch_to_thread.
1007
2da4b788
PA
10082020-06-18 Pedro Alves <palves@redhat.com>
1009
1010 * ravenscar-thread.c (ravenscar_thread_target): Update.
1011 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1012 (ravenscar_thread_target::add_active_thread): ... this. Don't
1013 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1014 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1015
50838d1b
PA
10162020-06-18 Pedro Alves <palves@redhat.com>
1017
1018 * nat/windows-nat.c (current_windows_thread): Remove.
1019 * nat/windows-nat.h (current_windows_thread): Remove.
1020 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1021 Adjust.
1022 (display_selectors): Adjust to fetch the current
1023 windows_thread_info based on inferior_ptid.
1024 (fake_create_process): No longer write to current_windows_thread.
1025 (windows_nat_target::get_windows_debug_event):
1026 Don't set inferior_ptid or current_windows_thread.
1027 (windows_nat_target::wait): Adjust to not rely on
1028 current_windows_thread.
1029 (do_initial_windows_stuff): Now a method of windows_nat_target.
1030 Switch to the last_ptid thread.
1031 (windows_nat_target::attach): Adjust.
1032 (windows_nat_target::detach): Use switch_to_no_thread instead of
1033 writing to inferior_ptid directly.
1034 (windows_nat_target::create_inferior): Adjust.
1035
31ce04e9
PA
10362020-06-18 Pedro Alves <palves@redhat.com>
1037
1038 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1039
1ee1a363
PA
10402020-06-18 Pedro Alves <palves@redhat.com>
1041
1042 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1043 after creating it, instead of writing to inferior_ptid. Don't
1044 write to inferior_ptid.
1045
6d350754
PA
10462020-06-18 Pedro Alves <palves@redhat.com>
1047
1048 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1049
5d971d48
PA
10502020-06-18 Pedro Alves <palves@redhat.com>
1051
1052 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1053 it, instead of writing to inferior_ptid.
1054
86e57d1b
PA
10552020-06-18 Pedro Alves <palves@redhat.com>
1056
1057 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1058 to inferior_ptid.
1059
f2e1c129
PA
10602020-06-18 Pedro Alves <palves@redhat.com>
1061
1062 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1063 instead of writing to inferior_ptid directly.
1064
60db1b85
PA
10652020-06-18 Pedro Alves <palves@redhat.com>
1066
1067 * corelow.c (core_target::close): Use switch_to_no_thread instead
1068 of writing to inferior_ptid directly.
1069 (add_to_thread_list, core_target_open): Use switch_to_thread
1070 instead of writing to inferior_ptid directly.
1071
fe7d6a8d
PA
10722020-06-18 Pedro Alves <palves@redhat.com>
1073
1074 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1075 inferior_ptid.
1076 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1077 inferior_ptid.
1078 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1079 inferior_ptid directly.
1080 (darwin_nat_target::init_thread_list): Switch to thread, instead
1081 of writing to inferior_ptid.
1082 (darwin_nat_target::attach): Don't write to inferior_ptid.
1083 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1084
975f8708
PA
10852020-06-18 Pedro Alves <palves@redhat.com>
1086
1087 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1088 thread.
1089 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1090 Instead use switch_to_thread.
1091 (gnu_nat_target::detach): Use switch_to_no_thread
1092 instead of writing to inferior_ptid directly. Used passed-in
1093 inferior instead of looking up the inferior by pid.
1094
1a204730
PA
10952020-06-18 Pedro Alves <palves@redhat.com>
1096
1097 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1098 inferior_ptid.
1099
ebe84f23
PA
11002020-06-18 Pedro Alves <palves@redhat.com>
1101
1102 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1103 inferior_ptid.
1104 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1105 thread.
1106 (nto_procfs_target::detach): Avoid referencing
1107 inferior_ptid. Use switch_to_no_thread instead of writing to
1108 inferior_ptid directly.
1109 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1110 instead of writing to inferior_ptid directly.
1111 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1112 to thread.
1113
191f02e5
PA
11142020-06-18 Pedro Alves <palves@redhat.com>
1115
1116 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1117 after creating it, instead of writing to inferior_ptid.
1118 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1119 to inferior_ptid directly.
1120 (gdbsim_target::wait): Don't write to inferior_ptid.
1121
0ac55310
PA
11222020-06-18 Pedro Alves <palves@redhat.com>
1123
1124 * remote.c (remote_target::remote_notice_new_inferior): Use
1125 switch_to_thread instead of writing to inferior_ptid directly.
1126 (remote_target::add_current_inferior_and_thread): Use
1127 switch_to_no_thread instead of writing to inferior_ptid directly.
1128 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1129 and switch_to_thread instead of using set_current_inferior or
1130 writing to inferior_ptid directly.
1131
5233f39b
PA
11322020-06-18 Pedro Alves <palves@redhat.com>
1133
1134 * tracectf.c (ctf_target_open): Switch to added thread instead of
1135 writing to inferior_ptid directly.
1136 (ctf_target::close): Use switch_to_no_thread instead of writing to
1137 inferior_ptid directly.
1138
087e161b
PA
11392020-06-18 Pedro Alves <palves@redhat.com>
1140
1141 * tracefile-tfile.c (tfile_target_open): Don't write to
1142 inferior_ptid directly, instead switch to added thread.
1143 (tfile_target::close): Use switch_to_no_thread instead of writing
1144 to inferior_ptid directly.
1145
7fb43e53
PA
11462020-06-18 Pedro Alves <palves@redhat.com>
1147
1148 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1149 (procfs_target::detach): Use switch_to_no_thread
1150 instead of writing to inferior_ptid directly.
1151 (do_attach): Change return type to void. Switch to the added
1152 thread.
1153 (procfs_target::create_inferior): Switch to the added thread.
1154 (procfs_do_thread_registers): Don't write to inferior_ptid.
1155
18493a00
PA
11562020-06-18 Pedro Alves <palves@redhat.com>
1157
1158 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1159 of writing to inferior_ptid.
1160 (scoped_restore_exited_inferior): Delete.
1161 (handle_vfork_child_exec_or_exit): Simplify using
1162 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1163 instead of writing to inferior_ptid.
1164 (THREAD_STOPPED_BY): Delete.
1165 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1166 (thread_stopped_by_hw_breakpoint): Delete.
1167 (save_waitstatus): Use
1168 scoped_restore_current_thread+switch_to_thread, and call
1169 target_stopped_by_watchpoint instead of
1170 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1171 instead of thread_stopped_by_sw_breakpoint, and
1172 target_stopped_by_hw_breakpoint instead of
1173 thread_stopped_by_hw_breakpoint.
1174 (handle_inferior_event)
1175 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1176 inferior_ptid directly, nor
1177 set_current_inferior/set_current_program_space. Use
1178 switch_to_thread / switch_to_inferior_no_thread instead.
1179
a0776b13
PA
11802020-06-18 Pedro Alves <palves@redhat.com>
1181
1182 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1183 instead of writing to inferior_ptid.
1184
6155c136
PA
11852020-06-18 Pedro Alves <palves@redhat.com>
1186
1187 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1188 added thread.
1189 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1190 to the added thread.
1191 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1192 instead of writing to inferior_ptid.
1193
c5316fc6
PA
11942020-06-18 Pedro Alves <palves@redhat.com>
1195
1196 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1197 (register_to_value_test): Mock a program_space too. Heap-allocate
1198 the address space. Don't write to inferior_ptid. Use
1199 switch_to_thread instead.
1200
8df01799
PA
12012020-06-18 Pedro Alves <palves@redhat.com>
1202
1203 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1204 Delete.
1205 (find_signalled_thread()): New, factored out from
1206 linux_make_corefile_notes and adjusted to handle exited threads.
1207 (linux_make_corefile_notes): Adjust to use the new
1208 find_signalled_thread.
1209
41792d68
PA
12102020-06-18 Pedro Alves <palves@redhat.com>
1211
1212 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1213 of saving/restoring inferior_ptid.
1214
612f258a
TT
12152020-06-17 Tom Tromey <tom@tromey.com>
1216
1217 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1218 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1219 declare.
1220 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1221
efb763a5
SM
12222020-06-15 Simon Marchi <simon.marchi@efficios.com>
1223
1224 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1225 of partial symtabs.
1226
2951f6c0
SM
12272020-06-17 Simon Marchi <simon.marchi@efficios.com>
1228
1229 * regformats/reg-arm.dat: Remove.
1230 * regformats/reg-bfin.dat: Remove.
1231 * regformats/reg-cris.dat: Remove.
1232 * regformats/reg-crisv32.dat: Remove.
1233 * regformats/reg-m32r.dat: Remove.
1234 * regformats/reg-tilegx.dat: Remove.
1235 * regformats/reg-tilegx32.dat: Remove.
1236
7d458ea5
SM
12372020-06-17 Simon Marchi <simon.marchi@efficios.com>
1238
1239 * features/Makefile (WHICH): Remove arm files.
1240 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1241 * regformats/arm/arm-with-neon.dat: Remove.
1242 * regformats/arm/arm-with-vfpv2.dat: Remove.
1243 * regformats/arm/arm-with-vfpv3.dat: Remove.
1244
3af96c0d
SM
12452020-06-17 Simon Marchi <simon.marchi@efficios.com>
1246
1247 * features/Makefile (XMLTOC): Remove rx.xml.
1248
b25e22fd
PA
12492020-06-17 Pedro Alves <palves@redhat.com>
1250
1251 * gdbthread.h (thread_control_state) <trap_expected> Update
1252 comments.
1253
a78a19b1
AB
12542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1255
1256 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1257 ada_language::lookup_symbol_nonlocal.
1258 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1259 (ada_language::lookup_symbol_nonlocal): New member function,
1260 implementation from ada_lookup_symbol_nonlocal.
1261 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1262 initializer.
1263 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1264 initializer.
1265 (cplus_language::lookup_symbol_nonlocal): New member function.
1266 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1267 (minimal_language_data) Likewise.
1268 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1269 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1270 initializer.
1271 (d_language::lookup_symbol_nonlocal): New member function.
1272 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1273 initializer.
1274 (f_language::lookup_symbol_nonlocal): New member function.
1275 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1276 initializer.
1277 * language.c (unknown_language_data): Likewise.
1278 (auto_language_data): Likewise.
1279 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1280 field.
1281 (language_defn::lookup_symbol_nonlocal): New member function.
1282 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1283 initializer.
1284 * objc-lang.c (objc_language_data): Likewise.
1285 * opencl-lang.c (opencl_language_data): Likewise.
1286 * p-lang.c (pascal_language_data): Likewise.
1287 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1288 rust_language::lookup_symbol_nonlocal.
1289 (rust_language_data): Delete la_lookup_symbol_nonlocal
1290 initializer.
1291 (rust_language::lookup_symbol_nonlocal): New member function,
1292 implementation from rust_lookup_symbol_nonlocal.
1293 * symtab.c (lookup_symbol_aux): Update call to
1294 lookup_symbol_nonlocal.
1295 (basic_lookup_symbol_nonlocal): Rename to...
1296 (language_defn::lookup_symbol_nonlocal): ...this, and update
1297 header comment. Remove language_defn parameter, and replace with
1298 uses of `this'.
1299 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1300
ebe2334e
AB
13012020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1302
1303 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1304 initializer.
1305 (ada_language::value_print_inner): New member function.
1306 * c-lang.c (c_language_data): Delete la_value_print_inner
1307 initializer.
1308 (cplus_language_data): Likewise.
1309 (asm_language_data): Likewise.
1310 (minimal_language_data): Likewise.
1311 * d-lang.c (d_language_data): Likewise.
1312 (d_language::value_print_inner): New member function.
1313 * f-lang.c (f_language_data): Delete la_value_print_inner
1314 initializer.
1315 (f_language::value_print_inner): New member function.
1316 * f-lang.h (f_value_print_innner): Rename to...
1317 (f_value_print_inner): ...this (note spelling of 'inner').
1318 * f-valprint.c (f_value_print_innner): Rename to...
1319 (f_value_print_inner): ...this (note spelling of 'inner').
1320 * go-lang.c (go_language_data): Delete la_value_print_inner
1321 initializer.
1322 (go_language::value_print_inner): New member function.
1323 * language.c (language_defn::value_print_inner): Define new member
1324 function.
1325 (unk_lang_value_print_inner): Delete.
1326 (unknown_language_data): Delete la_value_print_inner initializer.
1327 (unknown_language::value_print_inner): New member function.
1328 (auto_language_data): Delete la_value_print_inner initializer.
1329 (auto_language::value_print_inner): New member function.
1330 * language.h (language_data): Delete la_value_print_inner field.
1331 (language_defn::value_print_inner): Delcare new member function.
1332 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1333 initializer.
1334 (m2_language::value_print_inner): New member function.
1335 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1336 initializer.
1337 * opencl-lang.c (opencl_language_data): Likewise.
1338 * p-lang.c (pascal_language_data): Likewise.
1339 (pascal_language::value_print_inner): New member function.
1340 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1341 initializer.
1342 (rust_language::value_print_inner): New member function.
1343 * valprint.c (do_val_print): Update call to value_print_inner.
1344
a1d1fa3e
AB
13452020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1346
1347 * ada-lang.c (ada_language_data): Delete la_value_print
1348 initializer.
1349 (ada_language::value_print): New member function.
1350 * c-lang.c (c_language_data): Delete la_value_print initializer.
1351 (cplus_language_data): Likewise.
1352 (asm_language_data): Likewise.
1353 (minimal_language_data): Likewise.
1354 * d-lang.c (d_language_data): Likewise.
1355 * f-lang.c (f_language_data): Likewise.
1356 * go-lang.c (go_language_data): Likewise.
1357 * language.c (unk_lang_value_print): Delete.
1358 (language_defn::value_print): Define new member function.
1359 (unknown_language_data): Delete la_value_print initializer.
1360 (unknown_language::value_print): New member function.
1361 (auto_language_data): Delete la_value_print initializer.
1362 (auto_language::value_print): New member function.
1363 * language.h (language_data): Delete la_value_print field.
1364 (language_defn::value_print): Declare new member function.
1365 (LA_VALUE_PRINT): Update call to value_print.
1366 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1367 * objc-lang.c (objc_language_data): Likewise.
1368 * opencl-lang.c (opencl_language_data): Likewise.
1369 * p-lang.c (pascal_language_data): Likewise.
1370 (pascal_language::value_print): New member function.
1371 * rust-lang.c (rust_language_data): Delete la_value_print
1372 initializer.
1373
f16a9f57
AB
13742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1375
1376 * ada-lang.c (ada_watch_location_expression): Rename to
1377 ada_language::watch_location_expression.
1378 (ada_language_data): Delete la_watch_location_expression
1379 initializer.
1380 (ada_language::watch_location_expression): New member function,
1381 implementation from ada_watch_location_expression.
1382 * breakpoint.c (watch_command_1): Update call to
1383 watch_location_expression.
1384 * c-lang.c (c_watch_location_expression): Rename to
1385 language_defn::watch_location_expression.
1386 (c_language_data): Delete la_watch_location_expression
1387 initializer.
1388 (cplus_language_data): Likewise.
1389 (asm_language_data): Likewise.
1390 (minimal_language_data): Likewise.
1391 * c-lang.h (c_watch_location_expression): Delete declaration.
1392 * d-lang.c (d_language_data): Delete la_watch_location_expression
1393 initializer.
1394 * f-lang.c (f_language_data): Likewise.
1395 * go-lang.c (go_language_data): Likewise.
1396 * language.c (language_defn::watch_location_expression): Member
1397 function implementation from c_watch_location_expression.
1398 (unknown_language_data): Delete la_watch_location_expression
1399 initializer.
1400 (auto_language_data): Likewise.
1401 * language.h (language_data): Delete la_watch_location_expression
1402 field.
1403 (language_defn::watch_location_expression): Declare new member
1404 function.
1405 * m2-lang.c (m2_language_data): Delete
1406 la_watch_location_expression initializer.
1407 * objc-lang.c (objc_language_data): Likewise.
1408 * opencl-lang.c (opencl_language_data): Likewise.
1409 * p-lang.c (pascal_language_data): Likewise.
1410 * rust-lang.c (rust_watch_location_expression): Rename to
1411 rust_language::watch_location_expression.
1412 (rust_language_data): Delete la_watch_location_expression
1413 initializer.
1414 (rust_language::watch_location_expression): New member function,
1415 implementation from rust_watch_location_expression.
1416
7e56227d
AB
14172020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1418
1419 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1420 ada_language::collect_symbol_completion_matches.
1421 (ada_language_data): Delete la_collect_symbol_completion_matches
1422 initializer.
1423 (ada_language::collect_symbol_completion_matches): New member
1424 function, implementation from
1425 ada_collect_symbol_completion_matches.
1426 * c-lang.c (c_language_data): Delete
1427 la_collect_symbol_completion_matches initializer.
1428 (cplus_language_data): Likewise.
1429 (asm_language_data): Likewise.
1430 (minimal_language_data): Likewise.
1431 * d-lang.c (d_language_data): Likewise.
1432 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1433 f_language::collect_symbol_completion_matches.
1434 (f_language_data): Delete la_collect_symbol_completion_matches
1435 initializer.
1436 (f_language::collect_symbol_completion_matches) New member
1437 function, implementation from f_collect_symbol_completion_matches.
1438 * go-lang.c (go_language_data): Delete
1439 la_collect_symbol_completion_matches initializer.
1440 * language.c (unknown_language_data): Likewise.
1441 (auto_language_data): Likewise.
1442 * language.h (language_data): Delete
1443 la_collect_symbol_completion_matches field.
1444 (language_defn::collect_symbol_completion_matches): New member
1445 function.
1446 * m2-lang.c (m2_language_data): Delete
1447 la_collect_symbol_completion_matches initializer.
1448 * objc-lang.c (objc_language_data): Likewise.
1449 * opencl-lang.c (opencl_language_data): Likewise.
1450 * p-lang.c (pascal_language_data): Likewise.
1451 * rust-lang.c (rust_language_data): Likewise.
1452 * symtab.c (default_collect_symbol_completion_matches): Delete.
1453 (collect_symbol_completion_matches): Update call to
1454 collect_symbol_completion_matches.
1455 (collect_symbol_completion_matches_type): Likewise.
1456 * symtab.h (default_collect_symbol_completion_matches): Delete
1457 declaration.
1458
53fc67f8
AB
14592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1460
1461 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1462 (ada_language_data): Delete la_word_break_characters initializer.
1463 (ada_language::word_break_characters): New member function.
1464 * c-lang.c (c_language_data): Delete la_word_break_characters
1465 initializer.
1466 (cplus_language_data): Likewise.
1467 (asm_language_data): Likewise.
1468 (minimal_language_data): Likewise.
1469 * completer.c: Update global comment.
1470 (advance_to_expression_complete_word_point): Update call to
1471 word_break_characters.
1472 (complete_files_symbols): Likewise.
1473 (complete_line_internal_1): Likewise.
1474 (default_completer_handle_brkchars): Likewise.
1475 (skip_quoted_chars): Likewise.
1476 * d-lang.c (d_language_data): Delete la_word_break_characters
1477 initializer.
1478 * f-lang.c (f_word_break_characters): Delete.
1479 (f_language_data): Delete la_word_break_characters initializer.
1480 (f_language::word_break_characters): New member function.
1481 * go-lang.c (go_language_data): Delete la_word_break_characters
1482 initializer.
1483 * language.c (unknown_language_data): Likewise.
1484 (auto_language_data): Likewise.
1485 * language.h (default_word_break_characters): Move declaration to
1486 earlier in the file.
1487 (language_data): Delete la_word_break_characters field.
1488 (language_defn::word_break_characters): New member function.
1489 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1490 initializer.
1491 * objc-lang.c (objc_language_data): Likewise.
1492 * opencl-lang.c (opencl_language_data): Likewise.
1493 * p-lang.c (pascal_language_data): Likewise.
1494 * rust-lang.c (rust_language_data): Likewise.
1495
c9debfb9
AB
14962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1497
1498 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1499 (ada_language_data): Delete la_get_symbol_name_matcher
1500 initializer.
1501 (language_defn::get_symbol_name_matcher_inner): New member
1502 function.
1503 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1504 initializer.
1505 (cplus_language_data): Likewise.
1506 (cplus_language::get_symbol_name_matcher_inner): New member
1507 function.
1508 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1509 (minimal_language_data): Likewise.
1510 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1511 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1512 initializer.
1513 * dictionary.c (iter_match_first_hashed): Update call to
1514 get_symbol_name_matcher.
1515 (iter_match_next_hashed): Likewise.
1516 (iter_match_next_linear): Likewise.
1517 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1518 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1519 initializer.
1520 (f_language::get_symbol_name_matcher_inner): New member function.
1521 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1522 initializer.
1523 * language.c (default_symbol_name_matcher): Update header comment,
1524 make static.
1525 (language_defn::get_symbol_name_matcher): New definition.
1526 (language_defn::get_symbol_name_matcher_inner): Likewise.
1527 (get_symbol_name_matcher): Delete.
1528 (unknown_language_data): Delete la_get_symbol_name_matcher
1529 initializer.
1530 (auto_language_data): Likewise.
1531 * language.h (language_data): Delete la_get_symbol_name_matcher
1532 field.
1533 (language_defn::get_symbol_name_matcher): New member function.
1534 (language_defn::get_symbol_name_matcher_inner): Likewise.
1535 (default_symbol_name_matcher): Delete declaration.
1536 * linespec.c (find_methods): Update call to
1537 get_symbol_name_matcher.
1538 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1539 initializer.
1540 * minsyms.c (lookup_minimal_symbol): Update call to
1541 get_symbol_name_matcher.
1542 (iterate_over_minimal_symbols): Likewise.
1543 * objc-lang.c (objc_language_data): Delete
1544 la_get_symbol_name_matcher initializer.
1545 * opencl-lang.c (opencl_language_data): Likewise.
1546 * p-lang.c (pascal_language_data): Likewise.
1547 * psymtab.c (psymbol_name_matches): Update call to
1548 get_symbol_name_matcher.
1549 * rust-lang.c (rust_language_data): Delete
1550 la_get_symbol_name_matcher initializer.
1551 * symtab.c (symbol_matches_search_name): Update call to
1552 get_symbol_name_matcher.
1553 (compare_symbol_name): Likewise.
1554
9a49ad8c
AB
15552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1556
1557 * ada-lang.c (ada_language_data): Delete la_compute_program
1558 initializer.
1559 * c-lang.c (c_language_data): Likewise.
1560 (c_language::compute_program): New member function.
1561 (cplus_language_data): Delete la_compute_program initializer.
1562 (cplus_language::compute_program): New member function.
1563 (asm_language_data): Delete la_compute_program initializer.
1564 (minimal_language_data): Likewise.
1565 * c-lang.h (c_compute_program): Update comment.
1566 (cplus_compute_program): Likewise.
1567 * compile/compile-c-support.c (c_compute_program): Likewise.
1568 (cplus_compute_program): Likewise.
1569 * compile/compile.c (compile_to_object): Update call to
1570 la_compute_program.
1571 * d-lang.c (d_language_data): Delete la_compute_program
1572 initializer.
1573 * f-lang.c (f_language_data): Likewise.
1574 * go-lang.c (go_language_data): Likewise.
1575 * language.c (unknown_language_data): Likewise.
1576 (auto_language_data): Likewise.
1577 * language.h (language_data): Delete la_compute_program field.
1578 (language_defn::compute_program): New member function.
1579 * m2-lang.c (m2_language_data): Delete la_compute_program
1580 initializer.
1581 * objc-lang.c (objc_language_data): Likewise.
1582 * opencl-lang.c (opencl_language_data): Likewise.
1583 * p-lang.c (pascal_language_data): Likewise.
1584 * rust-lang.c (rust_language_data): Likewise.
1585
eff93b4d
AB
15862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1587
1588 * ada-lang.c (ada_language_data) Delete
1589 la_class_name_from_physname initializer.
1590 * c-lang.c (c_language_data): Likewise.
1591 (cplus_language_data): Likewise.
1592 (cplus_language::class_name_from_physname): New member function.
1593 (asm_language_data): Delete la_class_name_from_physname
1594 initializer.
1595 (minimal_language_data): Likewise.
1596 * d-lang.c (d_language_data): Likewise.
1597 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1598 method on language_defn class.
1599 (guess_full_die_structure_name): Likewise.
1600 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1601 initializer.
1602 * go-lang.c (go_language_data): Likewise.
1603 * language.c (language_class_name_from_physname): Delete.
1604 (unk_lang_class_name): Delete.
1605 (unknown_language_data): Delete la_class_name_from_physname
1606 initializer.
1607 (auto_language_data): Likewise.
1608 * language.h (language_data): Delete la_class_name_from_physname
1609 field.
1610 (language_defn::class_name_from_physname): New function.
1611 (language_class_name_from_physname): Delete declaration.
1612 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1613 initializer.
1614 * objc-lang.c (objc_language_data): Likewise.
1615 * opencl-lang.c (opencl_language_data): Likewise.
1616 * p-lang.c (pascal_language_data): Likewise.
1617 * rust-lang.c (rust_language_data): Likewise.
1618
de543742
TT
16192020-06-16 Tom Tromey <tom@tromey.com>
1620
1621 * tui/tui-data.h (STATUS_NAME): New macro.
1622 * tui/tui-layout.c (tui_remove_some_windows)
1623 (initialize_known_windows, tui_register_window)
1624 (tui_layout_split::remove_windows, initialize_layouts)
1625 (tui_new_layout_command): Don't use hard-coded window names.
1626
a350efd4
TT
16272020-06-16 Tom Tromey <tom@tromey.com>
1628
1629 PR tui/25348:
1630 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1631 tui_initialize_readline. Only run once. Call rl_initialize.
1632 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1633 tui_initialize_readline.
1634 * tui/tui-io.c (tui_setup_io): Call
1635 tui_ensure_readline_initialized.
1636 * tui/tui-interp.c (tui_interp::init): Update.
1637
39ec0490
TT
16382020-06-16 Tom Tromey <tom@tromey.com>
1639
1640 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1641 Also preserve the status window.
1642
d2d1ea20
TT
16432020-06-16 Tom Tromey <tom@tromey.com>
1644
1645 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1646 where m_window==nullptr.
1647
66920317
TT
16482020-06-15 Tom Tromey <tromey@adacore.com>
1649
1650 * windows-nat.c (windows_nat::handle_output_debug_string):
1651 Update.
1652 (windows_nat::handle_ms_vc_exception): Update.
1653 * target.h (target_read_string): Change API.
1654 * target.c (target_read_string): Change API.
1655 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1656 Update.
1657 * solib-frv.c (frv_current_sos): Update.
1658 * solib-dsbt.c (dsbt_current_sos): Update.
1659 * solib-darwin.c (darwin_current_sos): Update.
1660 * linux-thread-db.c (inferior_has_bug): Update.
1661 * expprint.c (print_subexp_standard): Update.
1662 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1663 (ada_exception_message_1): Update.
1664
a5d871dd
TT
16652020-06-15 Tom Tromey <tromey@adacore.com>
1666
1667 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1668
670e35fa
TT
16692020-06-15 Tom Tromey <tromey@adacore.com>
1670
1671 * valprint.c (read_string): Update comment.
1672 * target.c (MIN): Remove.
1673 (target_read_string): Rewrite.
1674
f5272a3b
TT
16752020-06-15 Tom Tromey <tromey@adacore.com>
1676
1677 * corefile.c (read_memory_string): Remove.
1678 * ada-valprint.c (ada_value_print_ptr): Update.
1679 * ada-lang.h (ada_tag_name): Change return type.
1680 * ada-lang.c (type_from_tag): Update.
1681 (ada_tag_name_from_tsd): Change return type. Use
1682 target_read_string.
1683 (ada_tag_name): Likewise.
1684 * gdbcore.h (read_memory_string): Don't declare.
1685
2c074f49
HD
16862020-06-14 Hannes Domani <ssbssa@yahoo.de>
1687
1688 * symtab.c (rbreak_command): Ignore Windows drive colon.
1689
6a17d503
SM
16902020-06-12 Simon Marchi <simon.marchi@efficios.com>
1691
1692 * NEWS: Mention removed GDBserver host support.
1693
453c733f
NC
16942020-06-12 Nelson Chu <nelson.chu@sifive.com>
1695
1696 * features/riscv/rebuild-csr-xml.sh: Updated.
1697
2b4e6a3f
TT
16982020-06-11 Tom Tromey <tom@tromey.com>
1699
1700 PR gdb/18318:
1701 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1702
4412332f
JG
17032020-06-09 Jonny Grant <jg@jguk.org>
17042020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1705
1706 * main.c (captured_main_1): Don't print new line after help.
1707 (print_gdb_help): add mailing list and IRC channel information
1708 to --help. Add new lines between items in the footer. Remove
1709 quotes around bug url.
1710
2f33032a
KS
17112020-06-11 Keith Seitz <keiths@redhat.com>
1712
1713 PR gdb/21356
1714 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1715 Resolve typedefs for type length calculations.
1716
7ab96794
TV
17172020-06-10 Tom de Vries <tdevries@suse.de>
1718
1719 PR ada/24713
1720 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1721 (write_psymbols): Enable .gdb_index for ada.
1722 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1723 ada.
1724
e5f3ece2
TV
17252020-06-10 Tom de Vries <tdevries@suse.de>
1726
1727 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1728 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1729 namei" instead of "const char *name" argument.
1730 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1731 dw2_symtab_iter_init.
1732
940da03e
SM
17332020-06-08 Simon Marchi <simon.marchi@efficios.com>
1734
1735 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1736 to use type::field and field::type instead.
1737
b6cdac4b
SM
17382020-06-08 Simon Marchi <simon.marchi@efficios.com>
1739
1740 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1741 to use field::type instead.
1742
5d14b6e5
SM
17432020-06-08 Simon Marchi <simon.marchi@efficios.com>
1744
1745 * gdbtypes.h (struct field) <type, set_type>: New methods.
1746 Rename `type` field to...
1747 <m_type>: ... this. Change references throughout to use type or
1748 set_type methods.
1749 (FIELD_TYPE): Use field::type. Change call sites that modify
1750 the field's type to use field::set_type instead.
1751
3d967001
SM
17522020-06-08 Simon Marchi <simon.marchi@efficios.com>
1753
1754 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1755 to use type::index_type instead.
1756
262abc0d
SM
17572020-06-08 Simon Marchi <simon.marchi@efficios.com>
1758
1759 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1760 methods.
1761 (TYPE_INDEX_TYPE): Use type::index_type.
1762 * gdbtypes.c (create_array_type_with_stride): Likewise.
1763
82836c92
TT
17642020-06-07 Tom Tromey <tom@tromey.com>
1765
1766 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1767 parameter.
1768 (generic_value_print): Update.
1769
940dace9
AB
17702020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1771
1772 Revert commit 982a38f60b0.
1773 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1774
982a38f6
AB
17752020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1776
1777 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1778 avoid use after free.
1779
82f06518
TV
17802020-06-05 Tom de Vries <tdevries@suse.de>
1781
1782 * NEWS: Fix typos.
1783
f8c41851
SM
17842020-06-04 Simon Marchi <simon.marchi@efficios.com>
1785
1786 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1787 the per_bfd object.
1788 (dwarf2_read_debug_names): Likewise.
1789 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1790 object when re-using a per_bfd object with an index.
1791
f9b5d5ea
TV
17922020-06-03 Tom de Vries <tdevries@suse.de>
1793
1794 PR symtab/26046
1795 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1796 children for C++.
1797 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1798 DW_TAG_subprogram.
1799
f6eee2d0
AB
18002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1801
1802 * ada-lang.c (ada_language_data): Delete skip_trampoline
1803 initializer.
1804 * c-lang.c (c_language_data): Likewise.
1805 (cplus_language_data): Likewise.
1806 (cplus_language::skip_trampoline): New member function.
1807 (asm_language_data): Delete skip_trampoline initializer.
1808 (minimal_language_data): Likewise.
1809 * d-lang.c (d_language_data): Likewise.
1810 * f-lang.c (f_language_data): Likewise.
1811 * go-lang.c (go_language_data): Likewise.
1812 * language.c (unk_lang_trampoline): Delete function.
1813 (skip_language_trampoline): Update.
1814 (unknown_language_data): Delete skip_trampoline initializer.
1815 (auto_language_data): Likewise.
1816 * language.h (language_data): Delete skip_trampoline field.
1817 (language_defn::skip_trampoline): New function.
1818 * m2-lang.c (m2_language_data): Delete skip_trampoline
1819 initializer.
1820 * objc-lang.c (objc_skip_trampoline): Delete function, move
1821 implementation to objc_language::skip_trampoline.
1822 (objc_language_data): Delete skip_trampoline initializer.
1823 (objc_language::skip_trampoline): New member function with
1824 implementation from objc_skip_trampoline.
1825 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1826 initializer.
1827 * p-lang.c (pascal_language_data): Likewise.
1828 * rust-lang.c (rust_language_data): Likewise.
1829
0a50df5d
AB
18302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1831
1832 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1833 (ada_language::demangle): New member function.
1834 * c-lang.c (c_language_data): Delete la_demangle initializer.
1835 (cplus_language_data): Delete la_demangle initializer.
1836 (cplus_language::demangle): New member function.
1837 (asm_language_data): Delete la_demangle initializer.
1838 (minimal_language_data): Delete la_demangle initializer.
1839 * d-lang.c (d_language_data): Delete la_demangle initializer.
1840 (d_language::demangle): New member function.
1841 * f-lang.c (f_language_data): Delete la_demangle initializer.
1842 (f_language::demangle): New member function.
1843 * go-lang.c (go_language_data): Delete la_demangle initializer.
1844 (go_language::demangle): New member function.
1845 * language.c (language_demangle): Update.
1846 (unk_lang_demangle): Delete.
1847 (unknown_language_data): Delete la_demangle initializer.
1848 (unknown_language::demangle): New member function.
1849 (auto_language_data): Delete la_demangle initializer.
1850 (auto_language::demangle): New member function.
1851 * language.h (language_data): Delete la_demangle field.
1852 (language_defn::demangle): New function.
1853 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1854 * objc-lang.c (objc_language_data): Delete la_demangle
1855 initializer.
1856 (objc_language::demangle): New member function.
1857 * opencl-lang.c (opencl_language_data): Delete la_demangle
1858 initializer.
1859 * p-lang.c (pascal_language_data): Likewise.
1860 * rust-lang.c (rust_language_data): Likewise.
1861 (rust_language::demangle): New member function.
1862
fbfb0a46
AB
18632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1864
1865 * ada-lang.c (ada_language_data): Delete la_print_type
1866 initializer.
1867 (ada_language::print_type): New member function.
1868 * c-lang.c (c_language_data): Delete la_print_type initializer.
1869 (c_language::print_type): New member function.
1870 (cplus_language_data): Delete la_print_type initializer.
1871 (cplus_language::print_type): New member function.
1872 (asm_language_data): Delete la_print_type initializer.
1873 (asm_language::print_type): New member function.
1874 (minimal_language_data): Delete la_print_type initializer.
1875 (minimal_language::print_type): New member function.
1876 * d-lang.c (d_language_data): Delete la_print_type initializer.
1877 (d_language::print_type): New member function.
1878 * f-lang.c (f_language_data): Delete la_print_type initializer.
1879 (f_language::print_type): New member function.
1880 * go-lang.c (go_language_data): Delete la_print_type initializer.
1881 (go_language::print_type): New member function.
1882 * language.c (unk_lang_print_type): Delete.
1883 (unknown_language_data): Delete la_print_type initializer.
1884 (unknown_language::print_type): New member function.
1885 (auto_language_data): Delete la_print_type initializer.
1886 (auto_language::print_type): New member function.
1887 * language.h (language_data): Delete la_print_type field.
1888 (language_defn::print_type): New function.
1889 (LA_PRINT_TYPE): Update.
1890 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1891 (m2_language::print_type): New member function.
1892 * objc-lang.c (objc_language_data): Delete la_print_type
1893 initializer.
1894 (objc_language::print_type): New member function.
1895 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1896 to opencl_language::print_type.
1897 (opencl_language_data): Delete la_print_type initializer.
1898 (opencl_language::print_type): New member function, implementation
1899 from opencl_print_type.
1900 * p-lang.c (pascal_language_data): Delete la_print_type
1901 initializer.
1902 (pascal_language::print_type): New member function.
1903 * rust-lang.c (rust_print_type): Delete, implementation moved to
1904 rust_language::print_type.
1905 (rust_language_data): Delete la_print_type initializer.
1906 (rust_language::print_type): New member function, implementation
1907 from rust_print_type.
1908
6f827019
AB
19092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1910
1911 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1912 implementation moves to...
1913 (ada_language::sniff_from_mangled_name): ...here. Update return
1914 type.
1915 (ada_language_data): Delete la_sniff_from_mangled_name
1916 initializer.
1917 * c-lang.c (c_language_data): Likewise.
1918 (cplus_language_data): Likewise.
1919 (cplus_language::sniff_from_mangled_name): New member function,
1920 implementation taken from gdb_sniff_from_mangled_name.
1921 (asm_language_data): Delete la_sniff_from_mangled_name
1922 initializer.
1923 (minimal_language_data): Likewise.
1924 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1925 implementation moves to cplus_language::sniff_from_mangled_name.
1926 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1927 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1928 moves to...
1929 (d_language::sniff_from_mangled_name): ...here.
1930 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1931 * f-lang.c (f_language_data): Likewise.
1932 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1933 moves to...
1934 (go_language::sniff_from_mangled_name): ...here.
1935 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1936 * language.c (language_sniff_from_mangled_name): Delete.
1937 (unknown_language_data): Delete la_sniff_from_mangled_name
1938 initializer.
1939 (auto_language_data): Likewise.
1940 * language.h (language_data): Delete la_sniff_from_mangled_name
1941 field.
1942 (language_defn::sniff_from_mangled_name): New function.
1943 (language_sniff_from_mangled_name): Delete declaration.
1944 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1945 field.
1946 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1947 implementation moves to...
1948 (objc_language::sniff_from_mangled_name): ...here.
1949 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1950 * opencl-lang.c (opencl_language_data): Likewise.
1951 * p-lang.c (pascal_language_data): Likewise.
1952 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1953 implementation moves to...
1954 (rust_language::sniff_from_mangled_name): ...here.
1955 (rust_language_data): Delete la_sniff_from_mangled_name
1956 initializer.
1957 * symtab.c (symbol_find_demangled_name): Call
1958 sniff_from_mangled_name member function.
1959
fb8006fd
AB
19602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1961
1962 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1963 initializer.
1964 * c-lang.c (c_language_data): Likewise.
1965 (cplus_language_data): Likewise.
1966 (cplus_language::search_name_hash): New member function.
1967 (asm_language_data): Delete la_search_name_hash initializer.
1968 (minimal_language_data): Likewise.
1969 * d-lang.c (d_language_data): Likewise.
1970 * dictionary.c (default_search_name_hash): Rename to...
1971 (language_defn::search_name_hash): ...this.
1972 * f-lang.c (f_language_data): Likewise.
1973 (f_language::search_name_hash): New member function.
1974 * go-lang.c (go_language_data): Delete la_search_name_hash
1975 initializer.
1976 * language.c (unknown_language_data): Likewise.
1977 (auto_language_data): Likewise.
1978 * language.h (struct language_data): Delete la_search_name_hash
1979 field.
1980 (language_defn::search_name_hash): Declare new member function.
1981 (default_search_name_hash): Delete declaration.
1982 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1983 initializer.
1984 * objc-lang.c (objc_language_data): Likewise.
1985 * opencl-lang.c (opencl_language_data): Likewise.
1986 * p-lang.c (pascal_language_data): Likewise.
1987 * rust-lang.c (rust_language_data): Likewise.
1988 * symtab.c (search_name_hash): Update call.
1989
8e25bafe
AB
19902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1991
1992 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1993 initializer.
1994 * c-lang.c (class compile_instance): Declare.
1995 (c_language_data): Delete la_get_compile_instance initializer.
1996 (c_language::get_compile_instance): New member function.
1997 (cplus_language_data): Delete la_get_compile_instance initializer.
1998 (cplus_language::get_compile_instance): New member function.
1999 (asm_language_data): Delete la_get_compile_instance initializer.
2000 (minimal_language_data): Likewise.
2001 * c-lang.h (c_get_compile_context): Update comment.
2002 (cplus_get_compile_context): Update comment.
2003 * compile/compile.c (compile_to_object): Update calls, don't rely
2004 on function pointer being NULL.
2005 * d-lang.c (d_language_data): Delete la_get_compile_instance
2006 initializer.
2007 * f-lang.c (f_language_data): Likewise.
2008 * go-lang.c (go_language_data): Likewise.
2009 * language.c (unknown_language_data): Likewise.
2010 (auto_language_data): Likewise.
2011 * language.h (language_data): Delete la_get_compile_instance field.
2012 (language_defn::get_compile_instance): New member function.
2013 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2014 initializer.
2015 * objc-lang.c (objc_language_data): Likewise.
2016 * opencl-lang.c (opencl_language_data): Likewise.
2017 * p-lang.c (pascal_language_data): Likewise.
2018 * rust-lang.c (rust_language_data): Likewise.
2019
4009ee92
AB
20202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2021
2022 * ada-lang.c (ada_add_all_symbols): Update comment.
2023 (ada_iterate_over_symbols): Delete, move implementation to...
2024 (ada_language::iterate_over_symbols): ...here, a new member
2025 function, rewrite to use range based for loop.
2026 (ada_language_data): Delete la_iterate_over_symbols initializer.
2027 * c-lang.c (c_language_data): Likewise.
2028 (cplus_language_data): Likewise.
2029 (asm_language_data): Likewise.
2030 (minimal_language_data): Likewise.
2031 * d-lang.c (d_language_data): Likewise.
2032 * f-lang.c (f_language_data): Likewise.
2033 * go-lang.c (go_language_data): Likewise.
2034 * language.c (unknown_language_data): Likewise.
2035 (auto_language_data): Likewise.
2036 * language.h (language_data): Delete la_iterate_over_symbols field.
2037 (language_defn::iterate_over_symbols): New member function.
2038 (LA_ITERATE_OVER_SYMBOLS): Update.
2039 * linespec.c (iterate_over_all_matching_symtabs): Update.
2040 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2041 initializer.
2042 * objc-lang.c (objc_language_data): Likewise.
2043 * opencl-lang.c (opencl_language_data): Likewise.
2044 * p-lang.c (pascal_language_data): Likewise.
2045 * rust-lang.c (rust_language_data): Likewise.
2046
54f4ca46
AB
20472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2048
2049 * ada-lang.c (ada_language_data): Delete
2050 la_lookup_transparent_type initializer.
2051 * c-lang.c (c_language_data): Likewise.
2052 (cplus_language_data): Likewise.
2053 (cplus_language::lookup_transparent_type): New member function.
2054 (asm_language_data): Delete la_lookup_transparent_type
2055 initializer.
2056 (minimal_language_data): Likewise.
2057 * d-lang.c (d_language_data): Likewise.
2058 * f-lang.c (f_language_data): Likewise.
2059 * go-lang.c (go_language_data): Likewise.
2060 * language.c (unknown_language_data): Likewise.
2061 (auto_language_data): Likewise.
2062 * language.h (struct language_data): Delete
2063 la_lookup_transparent_type field.
2064 (language_defn::lookup_transparent_type): New member function.
2065 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2066 initializer.
2067 * objc-lang.c (objc_language_data): Likewise.
2068 * opencl-lang.c (opencl_language_data): Likewise.
2069 * p-lang.c (pascal_language_data): Likewise.
2070 * rust-lang.c (rust_language_data): Likewise.
2071 * symtab.c (symbol_matches_domain): Update call.
2072
1fb314aa
AB
20732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2074
2075 * ada-lang.c (ada_language_arch_info): Delete function, move
2076 implementation to...
2077 (ada_language::language_arch_info): ...here, a new member
2078 function.
2079 (ada_language_data): Delete la_language_arch_info.
2080 * c-lang.c (c_language_data): Likewise.
2081 (c_language::language_arch_info): New member function.
2082 (cplus_language_arch_info): Delete function, move
2083 implementation to...
2084 (cplus_language::language_arch_info): ...here, a new member
2085 function.
2086 (cplus_language_data): Delete la_language_arch_info.
2087 (asm_language_data): Likewise.
2088 (asm_language::language_arch_info): New member function.
2089 (minimal_language_data): Delete la_language_arch_info.
2090 (minimal_language::language_arch_info): New member function.
2091 * d-lang.c (d_language_arch_info): Delete function, move
2092 implementation to...
2093 (d_language::language_arch_info): ...here, a new member
2094 function.
2095 (d_language_data): Delete la_language_arch_info.
2096 * f-lang.c (f_language_arch_info): Delete function, move
2097 implementation to...
2098 (f_language::language_arch_info): ...here, a new member
2099 function.
2100 (f_language_data): Delete la_language_arch_info.
2101 * go-lang.c (go_language_arch_info): Delete function, move
2102 implementation to...
2103 (go_language::language_arch_info): ...here, a new member
2104 function.
2105 (go_language_data): Delete la_language_arch_info.
2106 * language.c (unknown_language_data): Likewise.
2107 (unknown_language::language_arch_info): New member function.
2108 (auto_language_data): Delete la_language_arch_info.
2109 (auto_language::language_arch_info): New member function.
2110 (language_gdbarch_post_init): Update call to
2111 la_language_arch_info.
2112 * language.h (language_data): Delete la_language_arch_info
2113 function pointer.
2114 (language_defn::language_arch_info): New function.
2115 * m2-lang.c (m2_language_arch_info): Delete function, move
2116 implementation to...
2117 (m2_language::language_arch_info): ...here, a new member
2118 function.
2119 (m2_language_data): Delete la_language_arch_info.
2120 * objc-lang.c (objc_language_arch_info): Delete function, move
2121 implementation to...
2122 (objc_language::language_arch_info): ...here, a new member
2123 function.
2124 (objc_language_data): Delete la_language_arch_info.
2125 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2126 implementation to...
2127 (opencl_language::language_arch_info): ...here, a new member
2128 function.
2129 (opencl_language_data): Delete la_language_arch_info.
2130 * p-lang.c (pascal_language_arch_info): Delete function, move
2131 implementation to...
2132 (pascal_language::language_arch_info): ...here, a new member
2133 function.
2134 (pascal_language_data): Delete la_language_arch_info.
2135 * rust-lang.c (rust_language_arch_info): Delete function, move
2136 implementation to...
2137 (rust_language::language_arch_info): ...here, a new member
2138 function.
2139 (rust_language_data): Delete la_language_arch_info.
2140
48448202
AB
21412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2142
2143 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2144 initializer.
2145 * c-lang.c (c_language_data): Likewise.
2146 (cplus_language_data): Likewise.
2147 (cplus_language::pass_by_reference_info): New method.
2148 (asm_language_data): Delete la_pass_by_reference initializer.
2149 (minimal_language_data): Likewise.
2150 * cp-abi.c (cp_pass_by_reference): Remove use of
2151 default_pass_by_reference.
2152 * d-lang.c (d_language_data): Likewise.
2153 * f-lang.c (f_language_data): Likewise.
2154 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2155 default_pass_by_reference.
2156 * go-lang.c (go_language_data): Likewise.
2157 * language.c (language_pass_by_reference): Update.
2158 (default_pass_by_reference): Delete.
2159 (unknown_language_data): Delete la_pass_by_reference
2160 initializer.
2161 (auto_language_data): Likewise.
2162 * language.h (struct language_data): Delete la_pass_by_reference
2163 field.
2164 (language_defn::pass_by_reference_info): New member function.
2165 (default_pass_by_reference): Delete declaration.
2166 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2167 initializer.
2168 * objc-lang.c (objc_language_data): Likewise.
2169 * opencl-lang.c (opencl_language_data): Likewise.
2170 * p-lang.c (pascal_language_data): Likewise.
2171 * rust-lang.c (rust_language_data): Likewise.
2172
15e5fd35
AB
21732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2174
2175 * ada-lang.c (ada_read_var_value): Delete function, move
2176 implementation to...
2177 (ada_language::read_var_value): ...here.
2178 (ada_language_data): Delete la_read_var_value initializer.
2179 * c-lang.c (c_language_data): Likewise.
2180 (cplus_language_data): Likewise.
2181 (minimal_language_data): Likewise.
2182 * d-lang.c (d_language_data): Likewise.
2183 * f-lang.c (f_language_data): Likewise.
2184 * findvar.c (default_read_var_value): Rename to...
2185 (language_defn::read_var_value): ...this.
2186 * findvar.c (read_var_value): Update header comment, and change to
2187 call member function instead of function pointer.
2188 * go-lang.c (go_language_data): Likewise.
2189 * language.c (unknown_language_data): Delete la_read_var_value
2190 initializer.
2191 (auto_language_data): Likewise.
2192 * language.h (struct language_data): Delete la_read_var_value
2193 field.
2194 (language_defn::read_var_value): New member function.
2195 (default_read_var_value): Delete declaration.
2196 * m2-lang.c (m2_language_data): Delete la_read_var_value
2197 initializer.
2198 * objc-lang.c (objc_language_data): Likewise.
2199 * opencl-lang.c (opencl_language_data): Likewise.
2200 * p-lang.c (pascal_language_data): Likewise.
2201 * rust-lang.c (rust_language_data): Likewise.
2202 * value.h (default_read_var_value): Delete declaration.
2203
5bd40f2a
AB
22042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2205
2206 * ada-lang.c (ada_print_array_index): Delete function, move
2207 implementation to...
2208 (ada_language::print_array_index): ...here.
2209 (ada_language_data): Delete la_print_array_index initializer.
2210 * c-lang.c (c_language_data): Likewise.
2211 (cplus_language_data): Likewise.
2212 (minimal_language_data): Likewise.
2213 * d-lang.c (d_language_data): Likewise.
2214 * f-lang.c (f_language_data): Likewise.
2215 * go-lang.c (go_language_data): Likewise.
2216 * language.c (default_print_array_index): Delete function, move
2217 implementation to...
2218 (language_defn::print_array_index): ...here.
2219 (unknown_language_data): Delete la_print_array_index initializer.
2220 (auto_language_data): Likewise.
2221 * language.h (struct language_data): Delete la_print_array_index
2222 field.
2223 (language_defn::print_array_index): New member function.
2224 (LA_PRINT_ARRAY_INDEX): Update.
2225 (default_print_array_index): Delete declaration.
2226 * m2-lang.c (m2_language_data): Delete la_print_array_index
2227 initializer.
2228 * objc-lang.c (objc_language_data): Likewise.
2229 * opencl-lang.c (opencl_language_data): Likewise.
2230 * p-lang.c (pascal_language_data): Likewise.
2231 * rust-lang.c (rust_language_data): Likewise.
2232
0874fd07
AB
22332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2234
2235 * gdb/ada-lang.c (ada_language_defn): Convert to...
2236 (ada_language_data): ...this.
2237 (class ada_language): New class.
2238 (ada_language_defn): New static global.
2239 * gdb/c-lang.c (c_language_defn): Convert to...
2240 (c_language_data): ...this.
2241 (class c_language): New class.
2242 (c_language_defn): New static global.
2243 (cplus_language_defn): Convert to...
2244 (cplus_language_data): ...this.
2245 (class cplus_language): New class.
2246 (cplus_language_defn): New static global.
2247 (asm_language_defn): Convert to...
2248 (asm_language_data): ...this.
2249 (class asm_language): New class.
2250 (asm_language_defn): New static global.
2251 (minimal_language_defn): Convert to...
2252 (minimal_language_data): ...this.
2253 (class minimal_language): New class.
2254 (minimal_language_defn): New static global.
2255 * gdb/d-lang.c (d_language_defn): Convert to...
2256 (d_language_data): ...this.
2257 (class d_language): New class.
2258 (d_language_defn): New static global.
2259 * gdb/f-lang.c (f_language_defn): Convert to...
2260 (f_language_data): ...this.
2261 (class f_language): New class.
2262 (f_language_defn): New static global.
2263 * gdb/go-lang.c (go_language_defn): Convert to...
2264 (go_language_data): ...this.
2265 (class go_language): New class.
2266 (go_language_defn): New static global.
2267 * gdb/language.c (unknown_language_defn): Remove declaration.
2268 (current_language): Initialize to nullptr, real initialization is
2269 moved to _initialize_language.
2270 (languages): Delete global.
2271 (language_defn::languages): Define.
2272 (set_language_command): Use language_defn::languages.
2273 (set_language): Likewise.
2274 (range_error): Likewise.
2275 (language_enum): Likewise.
2276 (language_def): Likewise.
2277 (add_set_language_command): Use language_def::languages for the
2278 language list, and language_def to lookup language pointers.
2279 (skip_language_trampoline): Use language_defn::languages.
2280 (unknown_language_defn): Convert to...
2281 (unknown_language_data): ...this.
2282 (class unknown_language): New class.
2283 (unknown_language_defn): New static global.
2284 (auto_language_defn): Convert to...
2285 (auto_language_data): ...this.
2286 (class auto_language): New class.
2287 (auto_language_defn): New static global.
2288 (language_gdbarch_post_init): Use language_defn::languages.
2289 (_initialize_language): Initialize current_language.
2290 * gdb/language.h (struct language_defn): Rename to...
2291 (struct language_data): ...this.
2292 (struct language_defn): New.
2293 (auto_language_defn): Delete.
2294 (unknown_language_defn): Delete.
2295 (minimal_language_defn): Delete.
2296 (ada_language_defn): Delete.
2297 (asm_language_defn): Delete.
2298 (c_language_defn): Delete.
2299 (cplus_language_defn): Delete.
2300 (d_language_defn): Delete.
2301 (f_language_defn): Delete.
2302 (go_language_defn): Delete.
2303 (m2_language_defn): Delete.
2304 (objc_language_defn): Delete.
2305 (opencl_language_defn): Delete.
2306 (pascal_language_defn): Delete.
2307 (rust_language_defn): Delete.
2308 * gdb/m2-lang.c (m2_language_defn): Convert to...
2309 (m2_language_data): ...this.
2310 (class m2_language): New class.
2311 (m2_language_defn): New static global.
2312 * gdb/objc-lang.c (objc_language_defn): Convert to...
2313 (objc_language_data): ...this.
2314 (class objc_language): New class.
2315 (objc_language_defn): New static global.
2316 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2317 (opencl_language_data): ...this.
2318 (class opencl_language): New class.
2319 (opencl_language_defn): New static global.
2320 * gdb/p-lang.c (pascal_language_defn): Convert to...
2321 (pascal_language_data): ...this.
2322 (class pascal_language): New class.
2323 (pascal_language_defn): New static global.
2324 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2325 language pointer, update comment format.
2326 * gdb/rust-lang.c (rust_language_defn): Convert to...
2327 (rust_language_data): ...this.
2328 (class rust_language): New class.
2329 (rust_language_defn): New static global.
2330
1313c56e
AB
23312020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2332
2333 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2334 member variable.
2335 <m_stmt_at_address>: New member variable.
2336 (lnp_state_machine::record_line): Don't record some lines, update
2337 tracking of is_stmt at the same address.
2338 (lnp_state_machine::lnp_state_machine): Initialise new member
2339 variables.
2340
b7ed9f3d
ST
23412020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2342
2343 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2344 "-include gnu-nat-mig.h".
2345 * gnu-nat-mig.h: New file.
2346 * gnu-nat.c: Include "gnu-nat-mig.h".
2347 (exc_server, msg_reply_server, notify_server,
2348 process_reply_server): Remove declarations.
2349
14a8ad62
ST
23502020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2351
2352 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2353 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2354 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2355 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2356 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2357 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2358 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2359 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2360 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2361 to gnu_nat_target class.
2362 * gnu-nat.c: Likewise.
2363 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2364 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2365 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2366 object.
2367 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2368 instead of `gnu_target'.
2369
0af5e106
ST
23702020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2371
2372 * i386-gnu-tdep.c: Include "gdbcore.h"
2373 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2374 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2375 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2376 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2377 i386_gnu_sigcontext_addr): New functions
2378 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2379 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2380 tdep.
2381
078f2fc9
ST
23822020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2383
2384 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2385 before fork_inferior call. Avoid calling it if target_is_pushed returns
2386 true.
2387
53dff92c
ST
23882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2389
2390 * gnu-nat.h (gnu_target): New variable declaration.
2391 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2392 gnu_target.
2393 * gnu-nat.c (gnu_target): New variable.
2394 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2395 add_thread_silent, and add_thread calls.
2396 (gnu_nat_target::create_inferior): Pass gnu_target to
2397 add_thread_silent, thread_change_ptid call.
2398 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2399 call.
2400
5a8b8627
ST
24012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2402
2403 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2404 (gnu_nat_target::find_memory_regions): Remove unused
2405 `old_address' variable.
2406
366f550a
ST
24072020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2408
2409 * gnu-nat.c: Include "gdbarch.h".
2410
f14871bf
ST
24112020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2412
2413 * reply_mig_hack.awk (Error return): Cast function through
2414 void *, to bypass compiler function call check.
2415
c6887cfb
ST
24162020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2417
2418 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2419 $(srcdir)/reply_mig_hack.awk.
2420
6930bffe
ST
24212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2422
2423 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2424
112c22ed
JG
24252020-05-30 Jonny Grant <jg@jguk.org>
2426
2427 * configure.ac (ACX_BUGURL): change bug URL to https.
2428
f68f85b5
PA
24292020-05-30 Pedro Alves <palves@redhat.com>
2430
2431 * cp-support.c (replace_typedefs_template): New.
2432 (replace_typedefs_qualified_name): Handle
2433 DEMANGLE_COMPONENT_TEMPLATE.
2434
976ca316
SM
24352020-05-29 Simon Marchi <simon.marchi@efficios.com>
2436
2437 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2438 dwarf2/index-cache.h, dwarf2/index-write.c,
2439 dwarf2/index-write.h, dwarf2/line-header.c,
2440 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2441 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2442 variables and fields from `dwarf2_per_objfile` to just
2443 `per_objfile` throughout.
2444
989ade05
SM
24452020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2446
2447 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2448 <push_dwarf_reg_entry_value>: Add comment.
2449
c47bae85
KB
24502020-05-28 Kevin Buettner <kevinb@redhat.com>
2451 Keith Seitz <keiths@redhat.com>
2452
2453 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2454 instead of PyEval_ReleaseLock.
2455 (class gdbpy_gil): Move to earlier in file.
2456 (finalize_python): Set gdb_python_initialized.
2457 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2458 when not initialized.
2459
44486dcf
SM
24602020-05-28 Simon Marchi <simon.marchi@efficios.com>
2461
2462 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2463 <push_dwarf_reg_entry_value>: Remove assert. Override
2464 per_objfile with caller_per_objfile.
2465
f030440d
TV
24662020-05-28 Tom de Vries <tdevries@suse.de>
2467
2468 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2469 PR gold/15646 workaround to symbol kind "type".
2470
f0fbb768
TT
24712020-05-27 Tom Tromey <tromey@adacore.com>
2472
2473 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2474
af0b2a3e
TT
24752020-05-27 Tom Tromey <tromey@adacore.com>
2476
2477 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2478 Use htab_find_with_hash.
2479 <add_abbrev>: Remove "abbrev_number" parameter.
2480 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2481 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2482 (hash_abbrev): Add comment.
2483 (abbrev_table::lookup_abbrev): Move to header file.
2484 (abbrev_table::read): Update.
2485
7d00ffec
TT
24862020-05-27 Tom Tromey <tromey@adacore.com>
2487
2488 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2489 method.
2490 <canonical_name>: New member.
2491 <raw_name>: Rename from "name".
2492 (partial_die_info): Initialize canonical_name.
2493 (scan_partial_symbols): Check raw_name.
2494 (partial_die_parent_scope, partial_die_full_name)
2495 (add_partial_symbol, add_partial_subprogram)
2496 (add_partial_enumeration, load_partial_dies): Use "name" method.
2497 (partial_die_info::name): New method.
2498 (partial_die_info::read, guess_partial_die_structure_name)
2499 (partial_die_info::fixup): Update.
2500
697bba18
TT
25012020-05-27 Tom Tromey <tromey@adacore.com>
2502
2503 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2504 <get_ref_die_offset>: Inline.
2505 <get_ref_die_offset_complaint>: New method.
2506 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2507 (attribute::get_ref_die_offset_complaint): Rename from
2508 get_ref_die_offset. Just issue complaint.
2509
c17ace43
HD
25102020-05-27 Hannes Domani <ssbssa@yahoo.de>
2511
2512 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2513
96445f0b
HD
25142020-05-27 Hannes Domani <ssbssa@yahoo.de>
2515
2516 * exec.c (exec_file_attach): Use errno value of first openp failure.
2517
ac637ec3
HD
25182020-05-27 Hannes Domani <ssbssa@yahoo.de>
2519
2520 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2521 Don't close thread handle.
2522
17ee85fc
TT
25232020-05-27 Tom Tromey <tom@tromey.com>
2524 Simon Marchi <simon.marchi@efficios.com>
2525
2526 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2527 shared_ptr.
2528 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2529 member.
2530 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2531 dwarf2_per_bfd_objfile_data_key>: New globals.
2532 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2533 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2534 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2535 shared.
2536 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2537 short-circuit when sharing.
2538 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2539 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2540
39b16f87
SM
25412020-05-27 Simon Marchi <simon.marchi@efficios.com>
2542
2543 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2544 to...
2545 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2546 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2547
fcf23d5b
SM
25482020-05-27 Simon Marchi <simon.marchi@efficios.com>
2549
2550 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2551 build_name_components, find_name_components_bounds>:
2552 Add per_objfile parameter.
2553 (struct mapped_index) <symbol_name_at>: Likewise.
2554 (struct mapped_debug_names): Remove constructor.
2555 <dwarf2_per_objfile>: Remove field.
2556 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2557 (mapped_index_base::find_name_components_bounds,
2558 mapped_index_base::build_name_components,
2559 dw2_expand_symtabs_matching_symbol): Likewise.
2560 (class mock_mapped_index) <symbol_name_at>: Likewise.
2561 (check_match): Likewise.
2562 (check_find_bounds_finds): Likewise.
2563 (test_mapped_index_find_name_component_bounds): Update.
2564 (CHECK_MATCH): Update.
2565 (dw2_expand_symtabs_matching): Update.
2566 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2567 per_objfile parameter.
2568 <find_vec_in_debug_names>: Likewise.
2569 <m_per_objfile>: New field.
2570 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2571 parameter.
2572 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2573 (dw2_debug_names_iterator::next): Update.
2574 (dw2_debug_names_lookup_symbol): Update.
2575 (dw2_debug_names_expand_symtabs_for_function): Update.
2576 (dw2_debug_names_map_matching_symbols): Update.
2577 (dw2_debug_names_expand_symtabs_matching): Update.
2578 (dwarf2_read_debug_names): Update.
2579
7188ed02
SM
25802020-05-27 Simon Marchi <simon.marchi@efficios.com>
2581
2582 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2583 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2584 move to dwarf2_per_objfile.
2585 <read_in_chain>: Remove.
2586 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2587 remove_all_cus, age_comp_units>: New methods.
2588 <m_dwarf2_cus>: New member.
2589 (struct dwarf2_per_cu_data) <cu>: Remove.
2590 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2591 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2592 moved to methods of dwarf2_per_objfile.
2593 (dwarf2_clear_marks): Remove.
2594 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2595 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2596 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2597 (dwarf2_per_objfile::remove_all_cus): New.
2598 (class free_cached_comp_units) <~free_cached_comp_units>:
2599 Update.
2600 (load_cu): Update.
2601 (dw2_do_instantiate_symtab): Adjust.
2602 (fill_in_sig_entry_from_dwo_entry): Adjust.
2603 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2604 (cutu_reader::cutu_reader): Likewise.
2605 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2606 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2607 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2608 and dwarf2_per_objfile::age_comp_units.
2609 (load_partial_comp_unit): Update.
2610 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2611 (process_queue): Likewise.
2612 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2613 backlink.
2614 (dwarf2_read_addr_index): Likewise.
2615 (follow_die_offset): Likewise.
2616 (dwarf2_fetch_die_loc_sect_off): Likewise.
2617 (dwarf2_fetch_constant_bytes): Likewise.
2618 (dwarf2_fetch_die_type_sect_off): Likewise.
2619 (follow_die_sig_1): Likewise.
2620 (load_full_type_unit): Likewise.
2621 (read_signatured_type): Likewise.
2622 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2623 (dwarf2_cu::~dwarf2_cu): Remove.
2624 (dwarf2_per_objfile::get_cu): New.
2625 (dwarf2_per_objfile::set_cu): New.
2626 (age_cached_comp_units): Rename to...
2627 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2628 to std::unordered_map.
2629 (free_one_cached_comp_unit): Rename to...
2630 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2631 to std::unordered_map.
2632 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2633 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2634 a dwarf2_per_objfile in data.
2635 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2636 (dwarf2_clear_marks): Remove.
2637
2e671100
SM
26382020-05-27 Simon Marchi <simon.marchi@efficios.com>
2639
2640 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2641 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2642 (init_tu_and_read_dwo_dies): Likewise.
2643 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2644 (cutu_reader::cutu_reader): Likewise.
2645 (load_partial_comp_unit): Likewise.
2646 (process_psymtab_comp_unit): Update.
2647 (build_type_psymtabs_1): Update.
2648 (process_skeletonless_type_unit): Update.
2649 (load_full_comp_unit): Update.
2650 (find_partial_die): Update.
2651 (dwarf2_read_addr_index): Update.
2652 (read_signatured_type): Update.
2653
2e6a9f79
SM
26542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2655
2656 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2657 m_header_read_in>: New fields.
2658 <get_header>: New method.
2659 * dwarf2/read.c (per_cu_header_read_in): Remove.
2660 (dwarf2_per_cu_data::get_header): New.
2661 (dwarf2_per_cu_data::addr_size): Update.
2662 (dwarf2_per_cu_data::offset_size): Update.
2663 (dwarf2_per_cu_data::ref_addr_size): Update.
2664
1b555f17
SM
26652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2666
2667 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2668 (dw2_do_instantiate_symtab): Update.
2669 (queue_and_load_all_dwo_tus): Change parameter from
2670 dwarf2_per_cu_data to dwarf2_cu.
2671 (dwarf2_fetch_die_loc_sect_off): Update.
2672 (dwarf2_fetch_constant_bytes): Update.
2673 (dwarf2_fetch_die_type_sect_off): Update.
2674
8fc0b21d
SM
26752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2676
2677 * dwarf2/read.c (process_full_comp_unit,
2678 process_full_type_unit): Remove per_cu, per_objfile paramters.
2679 Add dwarf2_cu parameter.
2680 (process_queue): Update.
2681
168c9250
SM
26822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2683
2684 * dwarf2/read.c (create_cu_from_index_list): Replace
2685 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2686 (create_cus_from_index_list): Likewise.
2687 (create_cus_from_index): Likewise.
2688 (create_signatured_type_table_from_index): Likewise.
2689 (create_cus_from_debug_names_list): Likewise.
2690 (create_cus_from_debug_names): Likewise.
2691 (dwarf2_read_gdb_index): Update.
2692 (dwarf2_read_debug_names): Update.
2693
e286671b
TT
26942020-05-27 Tom Tromey <tom@tromey.com>
2695 Simon Marchi <simon.marchi@efficios.com>
2696
2697 * dwarf2/read.h (struct dwarf2_per_objfile)
2698 <get_type_for_signatured_type, set_type_for_signatured_type>:
2699 New methods.
2700 <m_type_map>: New member.
2701 (struct signatured_type) <type>: Remove.
2702 * dwarf2/read.c
2703 (dwarf2_per_objfile::get_type_for_signatured_type,
2704 dwarf2_per_objfile::set_type_for_signatured_type): New.
2705 (get_signatured_type): Use new methods.
2706
8adb8487
TT
27072020-05-27 Tom Tromey <tom@tromey.com>
2708 Simon Marchi <simon.marchi@efficios.com>
2709
2710 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2711 (struct dwarf2_per_objfile) <type_units>: New member.
2712 <get_type_unit_group_unshareable>: New method.
2713 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2714 num_symtabs, symtabs>: Remove; move to
2715 type_unit_group_unshareable.
2716 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2717 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2718 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2719
127bbf4b
SM
27202020-05-27 Simon Marchi <simon.marchi@efficios.com>
2721
2722 * dwarf2/read.h (struct dwarf2_per_cu_data):
2723 <dwarf2_per_objfile>: Remove.
2724 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2725 dwarf2_per_objfile.
2726 (create_signatured_type_table_from_index): Likewise.
2727 (create_signatured_type_table_from_debug_names): Likewise.
2728 (create_debug_type_hash_table): Likewise.
2729 (fill_in_sig_entry_from_dwo_entry): Likewise.
2730 (create_type_unit_group): Likewise.
2731 (read_comp_units_from_section): Likewise.
2732 (create_cus_hash_table): Likewise.
2733
f6e649dd
SM
27342020-05-27 Simon Marchi <simon.marchi@efficios.com>
2735
2736 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2737 dwarf2_per_cu_data::dwarf2_per_objfile.
2738 (compute_compunit_symtab_includes): Likewise.
2739 (dwarf2_cu::start_symtab): Likewise.
2740
aa66c379
SM
27412020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2742
2743 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2744 parameter.
2745 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2746 (read_namespace_alias): Update.
2747 (lookup_die_type): Update.
2748 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2749 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2750 Update.
2751 (disassemble_dwarf_expression): Update.
2752
120ce1b5
SM
27532020-05-27 Simon Marchi <simon.marchi@efficios.com>
2754
2755 * dwarf2/read.h (struct dwarf2_queue_item): Add
2756 dwarf2_per_objfile parameter, assign new parameter.
2757 <per_objfile>: New field.
2758 * dwarf2/read.c (free_one_cached_comp_unit): Add
2759 dwarf2_per_objfile parameter.
2760 (queue_comp_unit): Likewise.
2761 (dw2_do_instantiate_symtab): Update.
2762 (process_psymtab_comp_unit): Update.
2763 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2764 (process_imported_unit_die): Update.
2765 (queue_and_load_dwo_tu): Update.
2766 (follow_die_offset): Update.
2767 (follow_die_sig_1): Update.
2768
9f47c707
SM
27692020-05-27 Simon Marchi <simon.marchi@efficios.com>
2770
2771 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2772 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2773 (read_call_site_scope): Assign per_objfile.
2774 (dwarf2_per_cu_data::objfile): Remove.
2775 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2776 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2777 dwarf2_per_objfile parameter.
2778 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2779 dwarf2_per_objfile parameter.
2780 (dwarf_expr_reg_to_entry_parameter): Add output
2781 dwarf2_per_objfile parameter.
2782 (locexpr_get_frame_base): Update.
2783 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2784 <push_dwarf_reg_entry_value>: Update.
2785 <call_site_to_target_addr>: Update.
2786 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2787 parameter.
2788 (value_of_dwarf_reg_entry): Update.
2789 (rw_pieced_value): Update.
2790 (indirect_synthetic_pointer): Update.
2791 (dwarf2_evaluate_property): Update.
2792 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2793 parameter.
2794 (locexpr_read_variable): Update.
2795 (locexpr_get_symbol_read_needs): Update.
2796 (loclist_read_variable): Update.
2797
14095eb3
SM
27982020-05-27 Simon Marchi <simon.marchi@efficios.com>
2799
2800 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2801 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2802 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2803 parameter.
2804 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2805 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2806 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2807 parameter.
2808 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2809 sect_variable_value): Add dwarf2_per_objfile parameter.
2810 (class dwarf_evaluate_loc_desc) <dwarf_call,
2811 dwarf_variable_value>: Update.
2812 (fetch_const_value_from_synthetic_pointer): Add
2813 dwarf2_per_objfile parameter.
2814 (fetch_const_value_from_synthetic_pointer): Update.
2815 (coerced_pieced_ref): Update.
2816 (class symbol_needs_eval_context) <dwarf_call,
2817 dwarf_variable_value>: Update.
2818 (dwarf2_compile_expr_to_ax): Update.
2819
3c3cd3d4
SM
28202020-05-27 Simon Marchi <simon.marchi@efficios.com>
2821
2822 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2823 parameter.
2824 (dwarf2_evaluate_loc_desc_full): Update.
2825
82ca3f51
SM
28262020-05-27 Simon Marchi <simon.marchi@efficios.com>
2827
2828 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2829 parameter.
2830 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2831 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2832 dwarf2_per_objfile parameter.
2833 (decode_debug_loc_dwo_addresses): Likewise.
2834 (dwarf2_find_location_expression): Update.
2835 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2836 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2837 parameter.
2838 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2839 parameter.
2840 (locexpr_describe_location_1): Likewise.
2841 (locexpr_describe_location): Update.
2842
4b167ea1
SM
28432020-05-27 Simon Marchi <simon.marchi@efficios.com>
2844
2845 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2846 Remove.
2847 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2848 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2849 (dwarf2_compile_property_to_c): Update.
2850 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2851 use text offset from objfile.
2852 (locexpr_tracepoint_var_ref): Update.
2853 (locexpr_generate_c_location): Update.
2854 (loclist_describe_location): Update.
2855 (loclist_tracepoint_var_ref): Update.
2856 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2857 dwarf2_per_objfile parameter.
2858 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2859 use text offset from objfile.
2860 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2861
89b07335
SM
28622020-05-27 Simon Marchi <simon.marchi@efficios.com>
2863
2864 * dwarf2/expr.h (struct dwarf_expr_context)
2865 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2866 <offset>: Remove.
2867 <per_objfile>: New member.
2868 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2869 dwarf2_per_objfile parameter. Don't set offset, set
2870 per_objfile.
2871 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2872 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2873 a dwarf2_per_objfile object instead of an offset.
2874 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2875 constructor.
2876 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2877 to dwarf2_expr_executor constructor. Don't set offset.
2878 (dwarf2_fetch_cfa_info): Update.
2879 (struct dwarf2_frame_cache) <text_offset>: Remove.
2880 <per_objfile>: New field.
2881 (dwarf2_frame_cache): Update.
2882 (dwarf2_frame_prev_register): Update.
2883 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2884 <dwarf_evaluate_loc_desc>: Add constructor.
2885 (dwarf2_evaluate_loc_desc_full): Update.
2886 (dwarf2_locexpr_baton_eval): Update.
2887 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2888 Add constructor.
2889 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2890
293e7e51
SM
28912020-05-27 Simon Marchi <simon.marchi@efficios.com>
2892
2893 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2894 addr_sized_int_type>: Move to dwarf2_cu.
2895 <int_type>: Move to dwarf2_per_objfile.
2896 (struct dwarf2_per_objfile) <int_type>: Move here.
2897 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2898 addr_sized_int_type>: Move here.
2899 (read_func_scope): Update.
2900 (read_array_type): Update.
2901 (read_tag_string_type): Update.
2902 (attr_to_dynamic_prop): Update.
2903 (dwarf2_per_cu_data::int_type): Rename to...
2904 (dwarf2_per_objfile::int_type): ... this.
2905 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2906 (dwarf2_cu::addr_sized_int_type): ... this.
2907 (read_subrange_type): Update.
2908 (dwarf2_per_cu_data::addr_type): Rename to...
2909 (dwarf2_cu::addr_type): ... this.
2910 (set_die_type): Update.
2911
64874a40
SM
29122020-05-27 Simon Marchi <simon.marchi@efficios.com>
2913
2914 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2915 data through per_cu->cu.
2916
4ab09049
SM
29172020-05-27 Simon Marchi <simon.marchi@efficios.com>
2918
2919 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2920 dwarf2_per_cu_data parameter fo dwarf2_cu.
2921 (lookup_dwo_type_unit): Likewise.
2922 (read_cutu_die_from_dwo): Likewise.
2923 (lookup_dwo_unit): Likewise.
2924 (open_and_init_dwo_file): Likewise.
2925 (lookup_dwo_cutu): Likewise.
2926 (lookup_dwo_comp_unit): Likewise.
2927 (lookup_dwo_type_unit): Likewise.
2928 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2929 (cutu_reader::cutu_reader): Update.
2930
47b14e86
SM
29312020-05-27 Simon Marchi <simon.marchi@efficios.com>
2932
2933 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2934 parameter.
2935 (process_full_type_unit): Likewise.
2936 (process_queue): Update.
2937
43182c09
SM
29382020-05-27 Simon Marchi <simon.marchi@efficios.com>
2939
2940 * dwarf2/read.c (recursively_compute_inclusions): Add
2941 dwarf2_per_objfile parameter.
2942 (compute_compunit_symtab_includes): Likewise.
2943 (process_cu_includes): Update.
2944
7aa104c4
SM
29452020-05-27 Simon Marchi <simon.marchi@efficios.com>
2946
2947 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2948 parameter.
2949 (create_type_unit_group): Update.
2950 (process_psymtab_comp_unit_reader): Update.
2951 (build_type_psymtabs_reader): Update.
2952
e3beb21d
SM
29532020-05-27 Simon Marchi <simon.marchi@efficios.com>
2954
2955 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2956 object through m_this_cu->cu.
2957
d460f660
SM
29582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2959
2960 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2961 the info parameter.
2962 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2963
ab432490
SM
29642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2965
2966 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2967 per_objfile parameter.
2968 (load_full_type_unit): Add per_objfile parameter.
2969 (read_signatured_type): Likewise.
2970 (load_full_comp_unit): Likewise.
2971 (load_cu): Likewise.
2972 (dw2_do_instantiate_symtab): Likewise.
2973 (dw2_get_file_names): Likewise.
2974 (dw2_map_symtabs_matching_filename): Update.
2975 (dw_expand_symtabs_matching_file_matcher): Update.
2976 (dw2_map_symbol_filenames): Update.
2977 (process_psymtab_comp_unit): Add per_objfile parameter.
2978 (build_type_psymtabs_1): Update.
2979 (process_skeletonless_type_unit): Update.
2980 (dwarf2_build_psymtabs_hard): Update.
2981 (load_partial_comp_unit): Add per_objfile parameter.
2982 (scan_partial_symbols): Update.
2983 (load_full_comp_unit): Add per_objfile parameter.
2984 (process_imported_unit_die): Update.
2985 (create_cus_hash_table): Update.
2986 (find_partial_die): Update.
2987 (dwarf2_read_addr_index): Update.
2988 (follow_die_offset): Update.
2989 (dwarf2_fetch_die_loc_sect_off): Update.
2990 (dwarf2_fetch_constant_bytes): Update.
2991 (dwarf2_fetch_die_type_sect_off): Update.
2992 (follow_die_sig_1): Update.
2993 (load_full_type_unit): Add per_objfile parameter.
2994 (read_signatured_type): Likewise.
2995
313bad1b
SM
29962020-05-27 Simon Marchi <simon.marchi@efficios.com>
2997
2998 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2999 of objfile_name.
3000
c3699833
SM
30012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3002
3003 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3004 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3005 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3006 field.
3007 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3008 (create_cus_from_index): Update.
3009 (dwarf2_read_gdb_index): Update.
3010 (create_cus_from_debug_names): Update.
3011 (dwarf2_read_debug_names): Update.
3012 (get_abbrev_section_for_cu): Update.
3013 (create_all_comp_units): Update.
3014 (read_attribute_value): Update.
3015 (get_debug_line_section): Update.
3016 * dwarf2/index-cache.c (index_cache::store): Update.
3017 * dwarf2/index-write.c (save_gdb_index_command): Update.
3018 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3019
1859c670
SM
30202020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3021
3022 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3023 member.
3024 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3025 dwarf2_per_cu_data::per_bfd.
3026 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3027 (create_type_unit_group): Likewise.
3028 (queue_comp_unit): Remove reference to
3029 per_cu->dwarf2_per_objfile.
3030 (maybe_queue_comp_unit): Likewise.
3031 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3032 (create_cus_hash_table): Assign new field.
3033
5e22e966
SM
30342020-05-27 Simon Marchi <simon.marchi@efficios.com>
3035
3036 * dwarf2/read.c: Replace
3037 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3038 dwarf2_cu->per_objfile throughout.
3039
97a1449a
SM
30402020-05-27 Simon Marchi <simon.marchi@efficios.com>
3041
3042 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3043 parameter, don't use per_cu->dwarf2_per_objfile.
3044 (dw2_instantiate_symtab): Likewise.
3045 (dw2_find_last_source_symtab): Update.
3046 (dw2_map_expand_apply): Update.
3047 (dw2_lookup_symbol): Update.
3048 (dw2_expand_symtabs_for_function): Update.
3049 (dw2_expand_all_symtabs): Update.
3050 (dw2_expand_symtabs_with_fullname): Update.
3051 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3052 don't use per_cu->dwarf2_per_objfile.
3053 (dw2_expand_marked_cus): Update.
3054 (dw2_find_pc_sect_compunit_symtab): Update.
3055 (dw2_debug_names_lookup_symbol): Update.
3056 (dw2_debug_names_expand_symtabs_for_function): Update.
3057 (dw2_debug_names_map_matching_symbols): Update.
3058 (dwarf2_psymtab::expand_psymtab): Update.
3059
9e021579
SM
30602020-05-27 Simon Marchi <simon.marchi@efficios.com>
3061
3062 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3063 <per_objfile>: New member.
3064 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3065 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3066 call to dwarf2_cu.
3067 (cutu_reader::cutu_reader): Update.
3068 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3069
ae090bdb
SM
30702020-05-27 Simon Marchi <simon.marchi@efficios.com>
3071
3072 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3073 struct dwarf2_per_objfile.
3074 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3075 dwarf2_per_bfd.
3076 * dwarf2/read.c (set_die_type): Update.
3077 (get_die_type_at_offset): Update.
3078
af758d11
SM
30792020-05-27 Tom Tromey <tom@tromey.com>
3080 Simon Marchi <simon.marchi@efficios.com>
3081
3082 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3083 method.
3084 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3085 get_symtab, set_symtab>: New methods.
3086 <m_symtabs>: New field.
3087 (struct dwarf2_psymtab): Derive from partial_symtab.
3088 <readin_p, get_compunit_symtab>: Declare methods.
3089 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3090 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3091 New methods.
3092 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3093 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3094 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3095 (dw2_symtab_iter_next, dw2_print_stats)
3096 (dw2_expand_symtabs_with_fullname)
3097 (dw2_expand_symtabs_matching_one)
3098 (dw_expand_symtabs_matching_file_matcher)
3099 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3100 (dw2_debug_names_iterator::next)
3101 (dw2_debug_names_map_matching_symbols)
3102 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3103 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3104 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3105 New methods.
3106 (get_compunit_symtab, process_full_comp_unit)
3107 (process_full_type_unit): Update.
3108 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3109
5989a64e
SM
31102020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3111
3112 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3113 then introduce a new dwarf2_per_objfile type.
3114 <read_line_string>: Move to the new dwarf2_per_objfile type.
3115 <objfile>: Likewise.
3116 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3117 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3118 dwarf2_per_objfile->per_bfd.
3119 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3120 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3121 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3122 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3123 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3124 (dwarf2_per_objfile::locate_sections): Rename to...
3125 (dwarf2_per_bfd::locate_sections): ... this.
3126 (dwarf2_per_objfile::get_cutu): Rename to...
3127 (dwarf2_per_bfd::get_cutu): ... this.
3128 (dwarf2_per_objfile::get_cu): Rename to...
3129 (dwarf2_per_bfd::get_cu): ... this.
3130 (dwarf2_per_objfile::get_tu): Rename to...
3131 (dwarf2_per_bfd::get_tu): ... this.
3132 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3133 (dwarf2_per_bfd::allocate_per_cu): ... this.
3134 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3135 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3136 (get_gdb_index_contents_ftype): Change parameter from
3137 dwarf2_per_objfile to dwarf2_per_bfd.
3138 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3139 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3140
a50264ba
TT
31412020-05-27 Tom Tromey <tom@tromey.com>
3142 Simon Marchi <simon.marchi@efficios.com>
3143
3144 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3145 (allocate_piece_closure): Set "per_objfile" member.
3146 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3147 (locexpr_describe_location, loclist_describe_location): Use new
3148 member.
3149 * dwarf2/read.c (read_call_site_scope)
3150 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3151 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3152 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3153 handle_data_member_location): Set per_objfile member.
3154 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3155 member.
3156 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3157
d3473f0c
TT
31582020-05-27 Tom Tromey <tom@tromey.com>
3159
3160 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3161 allocate_signatured_type>: Declare new methods.
3162 <m_num_psymtabs>: New member.
3163 (struct dwarf2_per_cu_data) <index>: New member.
3164 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3165 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3166 (create_cu_from_index_list): Use allocate_per_cu.
3167 (create_signatured_type_table_from_index)
3168 (create_signatured_type_table_from_debug_names)
3169 (create_debug_type_hash_table, add_type_unit)
3170 (read_comp_units_from_section): Use allocate_signatured_type.
3171
5717c425
TT
31722020-05-27 Tom Tromey <tom@tromey.com>
3173
3174 * psymtab.c (partial_map_expand_apply)
3175 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3176 (psym_lookup_global_symbol_language)
3177 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3178 (psym_print_stats, psym_expand_symtabs_for_function)
3179 (psym_map_symbol_filenames, psym_map_matching_symbols)
3180 (psym_expand_symtabs_matching)
3181 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3182 (maintenance_check_psymtabs): Update.
3183 * psympriv.h (struct partial_symtab) <readin_p,
3184 get_compunit_symtab>: Add objfile parameter.
3185 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3186 Likewise.
3187 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3188 get_compunit_symtab>: Likewise.
3189 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3190
45940949
TT
31912020-05-27 Tom Tromey <tom@tromey.com>
3192
3193 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3194 member.
3195 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3196 (create_cu_from_index_list)
3197 (create_signatured_type_table_from_index)
3198 (create_signatured_type_table_from_debug_names)
3199 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3200 (dwarf2_create_include_psymtab)
3201 (create_debug_type_hash_table, add_type_unit)
3202 (create_type_unit_group, read_comp_units_from_section)
3203 (dwarf2_compute_name, create_cus_hash_table)
3204 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3205 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3206 obstack.
3207 (dw2_get_real_path): Likewise. Change argument to
3208 dwarf2_per_objfile.
3209
f8c6d152
LM
32102020-05-27 Luis Machado <luis.machado@linaro.org>
3211
3212 PR tdep/26000
3213 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3214 for ldrd (immediate).
3215
e98d2e6d
PW
32162020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3217
3218 * command.h: Add comment giving the name of class_tui.
3219 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3220 create the fake command for the help for class_tui.
3221
53a47a3e
TT
32222020-05-26 Tom Tromey <tromey@adacore.com>
3223
3224 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3225 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3226 (val_atr): New function.
3227 (value_val_atr): Use it.
3228 * ada-valprint.c (print_optional_low_bound): Change low bound
3229 handling for enums.
3230 (val_print_packed_array_elements): Don't call discrete_position.
3231 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3232 discrete_position for enum types.
3233 * language.c (default_print_array_index): Change type.
3234 * language.h (struct language_defn) <la_print_array_index>: Add
3235 index_type parameter, change type of index_value.
3236 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3237 (default_print_array_index): Update.
3238 * valprint.c (maybe_print_array_index): Don't call
3239 value_from_longest. Update.
3240 (value_print_array_elements): Don't call discrete_position.
3241
0bc2354b
TT
32422020-05-26 Tom Tromey <tromey@adacore.com>
3243
3244 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3245 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3246
1218a4bf
CDA
32472020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3248
3249 PR gdb/13519
3250 * avr-tdep.c (avr_integer_to_address): Return data or code
3251 address accordingly to the second 'type' argument of the
3252 function.
3253
92651b1d
MW
32542020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3255
3256 * infcmd.c, inferior.h: (construct_inferior_arguments):
3257 Moved function from here to gdbsupport/common-inferior.{h,cc}
3258
0a4f5f8c
TT
32592020-05-23 Tom Tromey <tom@tromey.com>
3260
3261 Revert commit eca1f90c:
3262 * NEWS: Remove entry for completion styling.
3263 * completer.c (_rl_completion_prefix_display_length): Move
3264 declaration later.
3265 (gdb_fnprint): Revert.
3266 (gdb_display_match_list_1): Likewise.
3267 * cli/cli-style.c (completion_prefix_style)
3268 (completion_difference_style, completion_suffix_style): Remove.
3269 (_initialize_cli_style): Revert.
3270 * cli/cli-style.h (completion_prefix_style)
3271 (completion_difference_style, completion_suffix_style): Don't
3272 declare.
3273
e08bd6c5
PA
32742020-05-24 Pedro Alves <palves@redhat.com>
3275
3276 * symtab.c (completion_list_add_name): Return boolean indication
3277 of whether the symbol matched.
3278 (completion_list_add_symbol): Don't try to remove C++ aliases if
3279 the symbol didn't match in the first place.
3280 * symtab.h (completion_list_add_name): Return bool.
3281
ceacbf6e
SM
32822020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3283
3284 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3285 type::field.
3286
26f16254
JB
32872020-05-23 Joel Brobecker <brobecker@adacore.com>
3288
3289 GDB 9.2 released.
3290
eca1f90c
TT
32912020-05-23 Tom Tromey <tom@tromey.com>
3292
3293 * NEWS: Add entry for completion styling.
3294 * completer.c (_rl_completion_prefix_display_length): Move
3295 declaration earlier.
3296 (gdb_fnprint): Use completion_style.
3297 (gdb_display_match_list_1): Likewise.
3298 * cli/cli-style.c (completion_prefix_style)
3299 (completion_difference_style, completion_suffix_style): New
3300 globals.
3301 (_initialize_cli_style): Register new globals.
3302 * cli/cli-style.h (completion_prefix_style)
3303 (completion_difference_style, completion_suffix_style): Declare.
3304
51e2cfa2
PA
33052020-05-23 Pedro Alves <palves@redhat.com>
3306
3307 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3308 (parse_escape): Use ISDIGIT instead of isdigit.
3309 (puts_debug): Use gdb_isprint instead of isprint.
3310 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3311 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3312 ISSPACE instead of isspace.
3313 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3314 instead of isspace.
3315 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3316 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3317 instead of isxdigit and ISDIGIT instead of isdigit.
3318
80fc5e77
SM
33192020-05-22 Simon Marchi <simon.marchi@efficios.com>
3320
3321 * gdbtypes.h (struct type) <field>: New method.
3322 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3323 or type::field.
3324
3cabb6b0
SM
33252020-05-22 Simon Marchi <simon.marchi@efficios.com>
3326
3327 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3328 (TYPE_FIELDS): Use type::fields. Change all call sites that
3329 modify the propery to use type::set_fields instead.
3330
1f704f76
SM
33312020-05-22 Simon Marchi <simon.marchi@efficios.com>
3332
3333 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3334 type::num_fields instead.
3335
5e33d5f4
SM
33362020-05-22 Simon Marchi <simon.marchi@efficios.com>
3337
3338 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3339 methods.
3340 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3341 that modify the number of fields to use type::set_num_fields
3342 instead.
3343
9392ebb3
TT
33442020-05-22 Tom Tromey <tromey@adacore.com>
3345
3346 * compile/compile-object-load.h (munmap_list_free): Don't
3347 declare.
3348
7c13f4e8
AB
33492020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3350
3351 * annotate.c (annotate_source_line): Update return type, add call
3352 to update current symtab and line.
3353 * annotate.h (annotate_source_line): Update return type, and
3354 extend header comment.
3355 * source.c (info_line_command): Check annotation_level before
3356 calling annotate_source_line.
3357 * stack.c (print_frame_info): If calling annotate_source_line
3358 returns true, then don't print any other source line information.
3359
aa370940
SM
33602020-05-21 Simon Marchi <simon.marchi@efficios.com>
3361
3362 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3363
84d53fa9
SM
33642020-05-21 Simon Marchi <simon.marchi@efficios.com>
3365
3366 * coffread.c (patch_type): Remove NULL check before xfree.
3367 * corefile.c (set_gnutarget): Likewise.
3368 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3369 * exec.c (build_section_table): Likewise.
3370 * remote.c (remote_target::pass_signals): Likewise.
3371 * utils.c (n_spaces): Likewise.
3372 * cli/cli-script.c (document_command): Likewise.
3373 * i386-windows-tdep.c (core_process_module_section): Likewise.
3374 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3375
9d428aae
SM
33762020-05-20 Simon Marchi <simon.marchi@efficios.com>
3377
3378 * symfile.c (reread_symbols): Clear objfile's section_offsets
3379 vector and section indices, re-compute them by calling
3380 sym_offsets.
3381
250106a7
TT
33822020-05-20 Tom Tromey <tromey@adacore.com>
3383
3384 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3385 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3386
9a0bacfb
TV
33872020-05-20 Tom de Vries <tdevries@suse.de>
3388
3389 PR symtab/25833
3390 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3391
7b958a48
AM
33922020-05-20 Alan Modra <amodra@gmail.com>
3393
3394 PR 25993
3395 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3396 bfd_set_filename.
3397 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3398 passed to bfd_set_filename.
3399 * symfile-mem.c (add_vsyscall_page): Likewise for string
3400 passed to symbol_file_add_from_memory.
3401 (symbol_file_add_from_memory): Make name param a const char* and
3402 don't strdup.
3403
c7e97679
AM
34042020-05-20 Alan Modra <amodra@gmail.com>
3405
3406 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3407 rather than accessing bfd->filename directly.
3408 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3409 and use bfd_section_name.
3410 * dwarf2/frame.c (decode_frame_entry): Likewise.
3411 * exec.c (exec_set_section_address): Likewise.
3412 * solib-aix.c (solib_aix_bfd_open): Likewise.
3413 * stap-probe.c (get_stap_base_address): Likewise.
3414 * symfile.c (reread_symbols): Likewise.
3415
563c591b
TT
34162020-05-19 Tom Tromey <tromey@adacore.com>
3417
3418 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3419
f408d82c
SM
34202020-05-19 Simon Marchi <simon.marchi@efficios.com>
3421
3422 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3423
98c59b52
PA
34242020-05-19 Pedro Alves <palves@redhat.com>
3425
3426 * NEWS (set exec-file-mismatch): Adjust entry.
3427 * exec.c: Include "build-id.h".
3428 (validate_exec_file): Try to match build IDs instead of filenames.
3429 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3430 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3431 and pass down 'warn_if_slow'.
3432 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3433 gdb_bfd_open_closure to pass it down.
3434 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3435
4111f652
PA
34362020-05-19 Pedro Alves <palves@redhat.com>
3437
3438 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3439 * target.c (target_fileio_open_1): Rename to target_fileio_open
3440 and make extern. Use bool.
3441 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3442 (target_fileio_read_alloc_1): Adjust.
3443 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3444 (target_fileio_open_warn_if_slow): Delete declaration.
3445
ad80db5b
PA
34462020-05-19 Pedro Alves <palves@redhat.com>
3447
3448 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3449 Adjust all callers.
3450
1d6ce4d3
YS
34512020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3452
3453 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3454 whether disp is negative.
3455
9005fbbb
SM
34562020-05-19 Simon Marchi <simon.marchi@efficios.com>
3457
3458 * symfile.h (struct symfile_segment_data)
3459 <~symfile_segment_data>: Remove.
3460 <segment_info>: Change to std::vector.
3461 * symfile.c (default_symfile_segments): Update.
3462 * elfread.c (elf_symfile_segments): Update.
3463
68b888ff
SM
34642020-05-19 Simon Marchi <simon.marchi@efficios.com>
3465
3466 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3467 <segments>: New.
3468 <segment_bases, segment_sizes>: Remove.
3469 * symfile.c (default_symfile_segments): Update.
3470 * elfread.c (elf_symfile_segments): Update.
3471 * remote.c (remote_target::get_offsets): Update.
3472 * solib-target.c (solib_target_relocate_section_addresses):
3473 Update.
3474
62982abd
SM
34752020-05-19 Simon Marchi <simon.marchi@efficios.com>
3476
3477 * symfile.h (struct symfile_segment_data): Initialize fields.
3478 <~symfile_segment_data>: Add.
3479 (symfile_segment_data_up): New.
3480 (struct sym_fns) <sym_segments>: Return a
3481 symfile_segment_data_up.
3482 (default_symfile_segments): Return a symfile_segment_data_up.
3483 (free_symfile_segment_data): Remove.
3484 (get_symfile_segment_data): Return a symfile_segment_data_up.
3485 * symfile.c (default_symfile_segments): Likewise.
3486 (get_symfile_segment_data): Likewise.
3487 (free_symfile_segment_data): Remove.
3488 (symfile_find_segment_sections): Update.
3489 * elfread.c (elf_symfile_segments): Return a
3490 symfile_segment_data_up.
3491 * remote.c (remote_target::get_offsets): Update.
3492 * solib-target.c (solib_target_relocate_section_addresses):
3493 Update.
3494 * symfile-debug.c (debug_sym_segments): Return a
3495 symfile_segment_data_up.
3496
7f204339
RO
34972020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3498
e52a0f1b
RO
3499 PR build/25981
3500 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3501 Hardcode register numbers.
3502
7f204339
RO
3503 PR build/25981
3504 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3505 procfs_find_LDT_entry): Remove.
3506 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3507 procfs_find_LDT_entry): Remove.
3508 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3509 Remove.
3510
7f32a4d5
PA
35112020-05-17 Pedro Alves <palves@redhat.com>
3512 Andrew Burgess <andrew.burgess@embecosm.com>
3513 Keno Fischer <keno@juliacomputing.com>
3514
3515 PR gdb/25741
3516 * breakpoint.c (build_target_condition_list): Update comments.
3517 (build_target_command_list): Update comments and skip matching
3518 locations.
3519 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3520 a separate function. Simplify "set breakpoint auto-hw off"
3521 handling.
3522 (insert_breakpoints): Update comment.
3523 (tracepoint_locations_match): New parameter. For breakpoints,
3524 compare location types too, if the caller wants to.
3525 (handle_automatic_hardware_breakpoints): New functions.
3526 (bp_location_is_less_than): Also sort by location type and
3527 hardware breakpoint length.
3528 (update_global_location_list): Handle "set breakpoint auto-hw on"
3529 here.
3530 (update_breakpoint_locations): Ask breakpoint_locations_match to
3531 ignore location types.
3532
7d93a1e0
SM
35332020-05-16 Simon Marchi <simon.marchi@efficios.com>
3534
3535 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3536 type::name instead.
3537
d0e39ea2
SM
35382020-05-16 Simon Marchi <simon.marchi@efficios.com>
3539
3540 * gdbtypes.h (struct type) <name, set_name>: New methods.
3541 (TYPE_CODE): Use type::name. Change all call sites used to set
3542 the name to use type::set_name instead.
3543
2dab0c7b
TT
35442020-05-16 Tom Tromey <tom@tromey.com>
3545
3546 * top.c (quit_force): Update.
3547 * infrun.c (handle_no_resumed): Update.
3548 * top.h (all_uis): New function.
3549 (ALL_UIS): Remove.
3550
59f7bd8d
SM
35512020-05-16 Simon Marchi <simon.marchi@efficios.com>
3552
3553 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3554
9bf058f0
PA
35552020-05-16 Pedro Alves <palves@redhat.com>
3556
3557 * ia64-linux-nat.c
3558 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3559 Declare method.
3560 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3561
8f86ae1a
SM
35622020-05-15 Simon Marchi <simon.marchi@efficios.com>
3563
3564 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3565 (sparc64_adi_info): Likewise.
3566
d6bc0792
TT
35672020-05-15 Tom Tromey <tom@tromey.com>
3568
3569 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3570 block_objfile.
3571 (lookup_objfile_from_block): Remove.
3572 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3573 (lookup_global_symbol): Use block_objfile.
3574 * symtab.h (lookup_objfile_from_block): Don't declare.
3575 * printcmd.c (clear_dangling_display_expressions): Use
3576 block_objfile.
3577 * parse.c (operator_check_standard): Use block_objfile.
3578
8c14c3a3
TT
35792020-05-15 Tom Tromey <tom@tromey.com>
3580
3581 * language.c (language_alloc_type_symbol): Set
3582 SYMBOL_SECTION.
3583 * symtab.c (initialize_objfile_symbol): Remove.
3584 (allocate_symbol): Remove.
3585 (allocate_template_symbol): Remove.
3586 * dwarf2/read.c (fixup_go_packaging): Use "new".
3587 (new_symbol): Use "new".
3588 (read_variable): Don't call initialize_objfile_symbol. Use
3589 "new".
3590 (read_func_scope): Use "new".
3591 * xcoffread.c (process_xcoff_symbol): Don't call
3592 initialize_objfile_symbol.
3593 (SYMBOL_DUP): Remove.
3594 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3595 "new".
3596 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3597 (allocate_template_symbol): Don't declare.
3598 (struct symbol): Add copy constructor. Change defaults.
3599 * jit.c (finalize_symtab): Use "new".
3600 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3601 Use "new".
3602 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3603 (common_block_end): Use "new".
3604 * mdebugread.c (parse_symbol): Use "new".
3605 (new_symbol): Likewise.
3606
5b4a1a8d
PW
36072020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3608
3609 * NEWS: Mention changes to help and apropos.
3610
57b4f16e
PW
36112020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3612
3613 * command.h (enum command_class): Improve comments, document
3614 that class_alias is for user-defined aliases, give the class
3615 name for each class, remove unused class_xdb.
3616 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3617 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3618 by a precise class.
3619 * infcmd.c (_initialize_infcmd): Likewise.
3620 * reverse.c (_initialize_reverse): Likewise.
3621 * stack.c (_initialize_stack): Likewise.
3622 * symfile.c (_initialize_symfile): Likewise.
3623 * tracepoint.c (_initialize_tracepoint): Likewise.
3624
7c05caf7
PW
36252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3626
3627 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3628 when their aliased command is traversed.
3629 (help_cmd): Add fput_command_names_styled call to
3630 output command name and aliases when command has an alias.
3631
3b3aaacb
PW
36322020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3633
3634 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3635 * cli/cli-decode.c (help_cmd_list): Declare as static,
3636 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3637 a command together with the command.
3638 (fput_command_name_styled, fput_command_names_styled): New functions.
3639 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3640 fput_command_name_styled.
3641 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3642 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3643
7aa1b46f
PW
36442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3645
3646 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3647 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3648 * command.h (cmd_show_list): Likewise.
3649 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3650 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3651
89bcba74
PW
36522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3653
3654 * unittests/command-def-selftests.c (traverse_command_structure):
3655 Verify all commands of a list have the same prefix command and
3656 that only the top cmdlist commands have a null prefix.
3657
3f4d92eb
PW
36582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3659
3660 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3661 as prefix, not one of its aliases.
3662 (set_cmd_prefix): Remove.
3663 (do_add_cmd): Centralize the setting of the prefix of a command, when
3664 command is defined after its full chain of prefix commands.
3665 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3666 (add_setshow_cmd_full): Likewise.
3667 (update_prefix_field_of_prefixed_commands): New function.
3668 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3669 update_prefix_field_of_prefixed_commands.
3670 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3671 addresses of remote_set_cmdlist and remote_show_cmdlist given
3672 as argument, not the address of an argument.
3673 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3674 * gdb/remote.c (_initialize_remote): Likewise.
3675
0605465f
PW
36762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3677
3678 * cli/cli-cmds.c (alias_command): Check for an existing alias
3679 using lookup_cmd_composition, as valid_command_p is too strict
3680 and forbids aliases that are the prefix of an existing alias
3681 or command.
3682 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3683 command is properly recognised as a valid command.
3684
58e6ac70
PW
36852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3686
3687 * unittests/help-doc-selftests.c: Rename to
3688 unittests/command-def-selftests.c
3689 * unittests/command-def-selftests.c (help_doc_tests): Update some
3690 comments.
3691 (command_structure_tests, traverse_command_structure): New namespace
3692 and function.
3693 (command_structure_invariants_tests): New function.
3694 (_initialize_command_def_selftests) Renamed from
3695 _initialize_help_doc_selftests, register command_structure_invariants
3696 selftest.
3697
a7b9ceb8
PW
36982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3699
3700 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3701 an alias of 'show'.
3702
b2188a06
JB
37032020-05-15 Joel Brobecker <brobecker@adacore.com>
3704
3705 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3706 ada_is_fixed_point_type. Update all callers.
3707 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3708 all callers.
3709 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3710 Update all callers.
3711 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3712 print_fixed_point_type. Update all callers.
3713 * ada-valprint.c (ada_value_print_num): Replace call to
3714 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3715
a51951c2
KB
37162020-05-14 Kevin Buettner <kevinb@redhat.com>
3717
3718 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3719 processors.
3720 (cpu_supports_bts): Add CV_AMD case.
3721
29d6859f
LM
37222020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3723 Simon Marchi <simon.marchi@efficios.com>
3724
3725 * infrun.c (stop_all_threads): Collect multiple wait events at
3726 each pass.
3727
78134374
SM
37282020-05-14 Simon Marchi <simon.marchi@efficios.com>
3729
3730 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3731 type::code instead.
3732
67607e24
SM
37332020-05-14 Simon Marchi <simon.marchi@efficios.com>
3734
3735 * gdbtypes.h (struct type) <code, set_code>: New methods.
3736 (TYPE_CODE): Use type::code. Change all call sites used to set
3737 the code to use type::set_code instead.
3738
a05575d3
TBA
37392020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3740 Tom de Vries <tdevries@suse.de>
3741 Pedro Alves <palves@redhat.com>
3742
3743 PR threads/25478
3744 * infrun.c (stop_all_threads): Do NOT ignore
3745 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3746 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3747 received.
3748 (handle_no_resumed): Remove code handling a live inferior with no
3749 threads.
3750 * remote.c (has_single_non_exited_thread): New.
3751 (remote_target::update_thread_list): Do not delete a thread if is
3752 the last thread of the process.
3753 * thread.c (thread_select): Call delete_exited_threads instead of
3754 prune_threads.
3755
6ad82919
TBA
37562020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3757
3758 * infrun.c (stop_all_threads): Enable/disable thread events of all
3759 targets. Move a debug message denoting the end of the function
3760 into the SCOPED_EXIT block.
3761
d890404b
TBA
37622020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3763
3764 * process-stratum-target.h: Include <set>.
3765 (all_non_exited_process_targets, switch_to_target_no_thread): New
3766 function declarations.
3767 * process-stratum-target.c (all_non_exited_process_targets)
3768 (switch_to_target_no_thread): New function implementations.
3769
293b3ebc
TBA
37702020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3771
3772 * infrun.c (handle_inferior_event): Extract out a piece of code
3773 into...
3774 (mark_non_executing_threads): ...this new function.
3775
7ca9b62a
TBA
37762020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3777
3778 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3779 use.
3780
fc75c28b
TBA
37812020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3782
3783 * regcache.c (regcache_read_pc_protected): New function
3784 implementation that returns 0 if the PC cannot read via
3785 'regcache_read_pc'.
3786 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3787 instead of 'regcache_read_pc'.
3788 (keep_going_pass_signal): Ditto.
3789
a89febbd
TT
37902020-05-13 Tom Tromey <tromey@adacore.com>
3791
3792 * ada-lang.c (align_value): Remove.
3793 (ada_template_to_fixed_record_type_1): Use align_up.
3794
f7e23710
TBA
37952020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3796
3797 * async-event.c: Update the copyright year.
3798 * async-event.h: Update the copyright year.
3799
02ff80c2
SM
38002020-05-12 Simon Marchi <simon.marchi@efficios.com>
3801
3802 * objfiles.h (is_addr_in_objfile,
3803 shared_objfile_contains_address_p): Return bool.
3804 * objfile.c (is_addr_in_objfile,
3805 shared_objfile_contains_address_p): Return bool.
3806
4fd6c7e8
TT
38072020-05-11 Tom Tromey <tromey@adacore.com>
3808
3809 * cli/cli-cmds.c (info_command): Restore.
3810 (_initialize_cli_cmds): Use add_prefix_command for "info".
3811 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3812
5eb68a39
TT
38132020-05-11 Tom Tromey <tromey@adacore.com>
3814
3815 * ada-lang.c (ada_value_primitive_field): Now public.
3816 * ada-lang.h (ada_value_primitive_field): Declare.
3817 * ada-valprint.c (print_field_values): Use
3818 ada_value_primitive_field for wrapper fields.
3819
7666722f
TV
38202020-05-11 Tom de Vries <tdevries@suse.de>
3821
3822 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3823 MODULE_DOMAIN.
3824
3ee6bb11
TV
38252020-05-11 Tom de Vries <tdevries@suse.de>
3826
3827 PR symtab/25941
3828 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3829 with length 0, if not gdb-produced.
3830 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3831
43434996
TV
38322020-05-09 Tom de Vries <tdevries@suse.de>
3833
3834 PR gdb/25955
3835 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3836 calculation.
3837
2f78cffc
TT
38382020-05-09 Tom Tromey <tom@tromey.com>
3839
3840 * top.c (server_command): Now bool.
3841 * top.h (server_command): Now bool.
3842
4f7bc5ed
TT
38432020-05-08 Tom Tromey <tromey@adacore.com>
3844
3845 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3846 already being processed.
3847
8be4b118
TT
38482020-05-08 Tom Tromey <tom@tromey.com>
3849
3850 * printcmd.c (struct display) <next>: Remove.
3851 <display>: New constructor.
3852 <exp_string>: Now a std::string.
3853 <enabled_p>: Now a bool.
3854 (display_number): Move definition earlier.
3855 (displays): Rename from display_chain. Now a std::vector.
3856 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3857 (display_command): Update.
3858 (do_one_display, disable_display)
3859 (enable_disable_display_command, do_enable_disable_display):
3860 Update.
3861 (free_display): Remove.
3862 (clear_displays): Rewrite.
3863 (delete_display): Update.
3864 (map_display_numbers): Use function_view. Remove "data"
3865 parameter. Update.
3866 (do_delete_display): Remove.
3867 (undisplay_command): Update.
3868 (do_one_display, do_displays, disable_display)
3869 (info_display_command): Update.
3870 (do_enable_disable_display): Remove.
3871 (enable_disable_display_command)
3872 (clear_dangling_display_expressions): Update.
3873
94c93c35
TT
38742020-05-08 Tom Tromey <tom@tromey.com>
3875
3876 * symtab.c (set_symbol_cache_size)
3877 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3878 (maintenance_print_symbol_cache_statistics): Update.
3879 * symmisc.c (print_symbol_bcache_statistics)
3880 (print_objfile_statistics, maintenance_print_objfiles)
3881 (maintenance_info_symtabs, maintenance_check_symtabs)
3882 (maintenance_expand_symtabs, maintenance_info_line_tables):
3883 Update.
3884 * symfile-debug.c (set_debug_symfile): Update.
3885 * source.c (forget_cached_source_info): Update.
3886 * python/python.c (gdbpy_progspaces): Update.
3887 * psymtab.c (maintenance_info_psymtabs): Update.
3888 * probe.c (parse_probes): Update.
3889 * linespec.c (iterate_over_all_matching_symtabs)
3890 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3891 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3892 * exec.c (exec_target::close): Update.
3893 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3894 * breakpoint.c (print_one_breakpoint_location)
3895 (create_longjmp_master_breakpoint)
3896 (create_std_terminate_master_breakpoint): Update.
3897 * progspace.c (program_spaces): Now a std::vector.
3898 (maybe_new_address_space): Update.
3899 (add_program_space): Remove.
3900 (program_space::program_space): Update.
3901 (remove_program_space): Update.
3902 (number_of_program_spaces): Remove.
3903 (print_program_space, update_address_spaces): Update.
3904 * progspace.h (program_spaces): Change type.
3905 (ALL_PSPACES): Remove.
3906 (number_of_program_spaces): Don't declare.
3907 (struct program_space) <next>: Remove.
3908
a1fd1ac9
TT
39092020-05-08 Tom Tromey <tom@tromey.com>
3910
3911 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3912 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3913 (enable_break): Update.
3914 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3915 (frv_fdpic_find_canonical_descriptor): Update.
3916 (frv_fetch_objfile_link_map): Update.
3917 * progspace.c (program_space::free_all_objfiles): Update.
3918 (program_space::solibs): New method.
3919 * progspace.h (struct program_space) <solibs>: New method.
3920 * solist.h (master_so_list): Don't declare.
3921 (ALL_SO_LIBS): Remove.
3922 * solib.h (so_list_head): Remove.
3923 (update_solib_list): Update comment.
3924 * solib.c (master_so_list): Remove.
3925 (solib_used, update_solib_list, solib_add)
3926 (info_sharedlibrary_command, clear_solib)
3927 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3928
38eae084
TT
39292020-05-08 Tom Tromey <tom@tromey.com>
3930
3931 * extension.c (extension_languages): Now a std::array.
3932 (ALL_EXTENSION_LANGUAGES): Remove.
3933 (get_ext_lang_defn, get_ext_lang_of_file)
3934 (eval_ext_lang_from_control_command): Update.
3935 (finish_ext_lang_initialization)
3936 (auto_load_ext_lang_scripts_for_objfile)
3937 (ext_lang_type_printers::ext_lang_type_printers)
3938 (apply_ext_lang_type_printers)
3939 (ext_lang_type_printers::~ext_lang_type_printers)
3940 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3941 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3942 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3943 (get_matching_xmethod_workers, ext_lang_colorize)
3944 (ext_lang_before_prompt): Update.
3945 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3946
596dc4ad
TT
39472020-05-08 Tom Tromey <tom@tromey.com>
3948
3949 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3950 overload.
3951 <swap_string, m_string>: Remove.
3952 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3953 Update.
3954 * stabsread.c (define_symbol, read_type): Update.
3955 * linespec.c (find_linespec_symbols): Update.
3956 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3957 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3958 * dbxread.c (read_dbx_symtab): Update.
3959 * cp-support.h (cp_canonicalize_string_full)
3960 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3961 Return unique_xmalloc_ptr.
3962 * cp-support.c (inspect_type): Update.
3963 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3964 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3965 Likewise.
3966 * c-typeprint.c (print_name_maybe_canonical): Update.
3967 * break-catch-throw.c (check_status_exception_catchpoint):
3968 Update.
3969
bf4cb9be
TV
39702020-05-08 Tom de Vries <tdevries@suse.de>
3971
3972 * infrun.c (follow_fork): Copy current_line and current_symtab to
3973 child thread.
3974
a1b68f28
SM
39752020-05-07 Simon Marchi <simon.marchi@efficios.com>
3976
3977 * async-event.c (struct async_signal_handler, struct
3978 async_event_handler): Reformat, remove typedef.
3979
98d48915
SM
39802020-05-07 Simon Marchi <simon.marchi@efficios.com>
3981
3982 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3983 access thistype->main_type->dyn_prop_list directly.
3984
7aa91313
SM
39852020-05-07 Simon Marchi <simon.marchi@efficios.com>
3986
3987 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3988 (remove_dyn_prop): Remove. Update all users to use
3989 type::remove_dyn_prop.
3990 * gdbtypes.c (remove_dyn_prop): Rename to...
3991 (type::remove_dyn_prop): ... this.
3992
5c54719c
SM
39932020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3994
3995 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3996 (add_dyn_prop): Remove. Update all users to use
3997 type::add_dyn_prop.
3998 * gdbtypes.c (add_dyn_prop): Rename to...
3999 (type::add_dyn_prop): ... this.
4000
24e99c6c
SM
40012020-05-07 Simon Marchi <simon.marchi@efficios.com>
4002
4003 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4004 (get_dyn_prop): Remove. Update all users to use
4005 type::dyn_prop.
4006 * gdbtypes.c (get_dyn_prop): Rename to...
4007 (type::dyn_prop): ... this.
4008
0d4bf016
SM
40092020-05-06 Simon Marchi <simon.marchi@efficios.com>
4010
4011 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4012
ac4a4f1c
SM
40132020-05-06 Simon Marchi <simon.marchi@efficios.com>
4014
4015 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4016 instruction, skip it if it's there.
4017
a3bbacc1
SM
40182020-05-05 Simon Marchi <simon.marchi@efficios.com>
4019
4020 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4021
c3236f84
SM
40222020-05-04 Simon Marchi <simon.marchi@efficios.com>
4023
4024 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4025 * gdbtypes.c (recursive_dump_type): Remove use of
4026 TYPE_INCOMPLETE.
4027
3b6acaee
TT
40282020-05-03 Tom Tromey <tom@tromey.com>
4029
4030 * breakpoint.c (catch_command, tcatch_command): Remove.
4031 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4032 add_show_prefix_cmd.
4033 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4034 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4035 Remove.
4036 (add_internal_problem_command): Use add_basic_prefix_cmd,
4037 add_show_prefix_cmd.
4038 * mips-tdep.c (set_mipsfpu_command): Remove.
4039 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4040 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4041 (_initialize_index_cache): Use add_basic_prefix_cmd.
4042 * memattr.c (dummy_cmd): Remove.
4043 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4044 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4045 (_initialize_tui_win): Use add_basic_prefix_cmd,
4046 add_show_prefix_cmd.
4047 * cli/cli-logging.c (set_logging_command): Remove.
4048 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4049 add_show_prefix_cmd.
4050 (show_logging_command): Remove.
4051 * target.c (target_command): Remove.
4052 (add_target): Use add_basic_prefix_cmd.
4053
a51119cd
HD
40542020-05-02 Hannes Domani <ssbssa@yahoo.de>
4055
4056 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4057
652fc23a 40582020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4059
652fc23a
PW
4060 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4061 info_command.
4062
117539e6
KR
40632020-04-30 Kamil Rytarowski <n54@gmx.com>
4064
4065 * nbsd-nat.c (nbsd_enable_proc_events)
4066 (nbsd_nat_target::post_startup_inferior): Add.
4067 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4068 (nbsd_nat_target::update_thread_list): Rewrite.
4069 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4070 "PTRACE_LWP_CREATE".
4071 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4072
102e38eb 40732020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4074
102e38eb
PW
4075 * stack.c (_initialize_stack): Remove duplicated creation
4076 of "frame" command and "f" alias.
4077
ee9d1e5f
HD
40782020-04-30 Hannes Domani <ssbssa@yahoo.de>
4079
4080 PR gdb/18706
4081 * gdbtypes.c (check_typedef): Calculate size of array of
4082 stubbed type.
4083
627c7fb8
HD
40842020-04-30 Hannes Domani <ssbssa@yahoo.de>
4085
4086 PR gdb/15559
4087 * i386-tdep.c (i386_push_dummy_call): Call
4088 i386_thiscall_push_dummy_call.
4089 (i386_thiscall_push_dummy_call): New function.
4090 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4091 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4092 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4093
ffc2844e
SM
40942020-04-29 Simon Marchi <simon.marchi@efficios.com>
4095
4096 * gdbarch.sh (do_read): Add shellcheck disable directive for
4097 warning SC2162.
4098
1207375d
SM
40992020-04-29 Simon Marchi <simon.marchi@efficios.com>
4100
4101 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4102 "referenced but not assigned" warning.
4103
9fdb2916
SM
41042020-04-29 Simon Marchi <simon.marchi@efficios.com>
4105
4106 * gdbarch.sh: Remove code that sets fallbackdefault.
4107
759cea5e
SM
41082020-04-29 Simon Marchi <simon.marchi@efficios.com>
4109
4110 * gdbarch.sh: Use shell operators && and || instead of
4111 -a and -o.
4112
cb02ab24
SM
41132020-04-29 Simon Marchi <simon.marchi@efficios.com>
4114
4115 * gdbarch.sh: Use $(...) instead of `...`.
4116
a6fc5ffc
SM
41172020-04-29 Simon Marchi <simon.marchi@efficios.com>
4118
4119 * gdbarch.sh: Use double quotes around variables.
4120
8d113d13
SM
41212020-04-29 Simon Marchi <simon.marchi@efficios.com>
4122
4123 * gdbarch.sh: Use %s with printf, instead of variables in the
4124 format string.
4125
ed6acedd
TT
41262020-04-29 Tom Tromey <tromey@adacore.com>
4127
4128 PR ada/25875:
4129 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4130 type fields here.
4131 (read_enumeration_type): Call
4132 update_enumeration_type_from_children later. Update comments.
4133 (process_enumeration_scope): Don't create type fields.
4134
b68b1b58
KR
41352020-04-29 Kamil Rytarowski <n54@gmx.com>
4136
4137 * nbsd-tdep.c: Include "xml-syscall.h".
4138 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4139
f94b2e03
KR
41402020-04-29 Kamil Rytarowski <n54@gmx.com>
4141
4142 * nbsd-nat.c: Include "sys/wait.h".
4143 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4144 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4145 (nbsd_nat_target::remove_exec_catchpoint)
4146 (nbsd_nat_target::set_syscall_catchpoint): Add.
4147 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4148 (nbsd_nat_target::insert_exec_catchpoint)
4149 (nbsd_nat_target::remove_exec_catchpoint)
4150 (nbsd_nat_target::set_syscall_catchpoint): Add.
4151 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4152 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4153 `nbsd_get_syscall_number'.
4154
fc49bc72
TT
41552020-04-29 Tom Tromey <tom@tromey.com>
4156
4157 * stack.c (print_block_frame_labels): Remove.
4158
d642b692
HD
41592020-04-29 Hannes Domani <ssbssa@yahoo.de>
4160
4161 PR gdb/17320
4162 * ada-valprint.c (val_print_packed_array_elements): Move array
4163 end bracket to new line.
4164 (ada_val_print_string): Remove extra spaces before first array
4165 element.
4166 * c-valprint.c (c_value_print_array): Likewise.
4167 * m2-valprint.c (m2_print_array_contents): Likewise.
4168 (m2_value_print_inner): Likewise.
4169 * p-valprint.c (pascal_value_print_inner): Likewise.
4170 * valprint.c (generic_val_print_array): Likewise.
4171 (value_print_array_elements): Move first array element and array
4172 end bracket to new line.
4173
ea90f227
TV
41742020-04-29 Tom de Vries <tdevries@suse.de>
4175
4176 PR symtab/25889
4177 * linespec.c (find_method): Fix ix calculation.
4178
4498ef4f
KR
41792020-04-28 Kamil Rytarowski <n54@gmx.com>
4180
4181 * syscalls/update-netbsd.sh: New file.
4182 * syscalls/netbsd.xml: Regenerate.
4183 * data-directory/Makefile.in: Register `netbsd.xml' in
4184 `SYSCALLS_FILES'.
4185
a55e30b5
SM
41862020-04-28 Simon Marchi <simon.marchi@efficios.com>
4187
4188 * syscalls/update-freebsd.sh: Add double quotes.
4189
2b2fbab8
TT
41902020-04-28 Tom Tromey <tom@tromey.com>
4191
4192 * NEWS: Update.
4193 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4194 (cmdpy_init): Allow class_tui.
4195
a65189c9
TV
41962020-04-28 Mark Williams <mark@myosotissp.com>
4197
4198 PR gdb/24480
4199 * dwarf2read.c: Add missing assingments to list_in_scope when
4200 start_symtab was already called.
4201
1b95cdb7
SM
42022020-04-28 Simon Marchi <simon.marchi@efficios.com>
4203
4204 PR gdb/25881
4205 * dwarf2/read.c (offset_map_type): Use
4206 gdb:hash_enum<sect_offset> as hash function.
4207
15cd93d0
TV
42082020-04-28 Tom de Vries <tdevries@suse.de>
4209
4210 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4211 with DW_AT_signature.
4212
1eb39914
SM
42132020-04-27 Simon Marchi <simon.marchi@efficios.com>
4214
4215 * configure.ac: Remove check for fs_base/gs_base in
4216 user_regs_struct.
4217 * configure: Re-generate.
4218 * config.in: Re-generate.
4219 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4220 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4221 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4222
991a3e2e
LM
42232020-04-27 Luis Machado <luis.machado@linaro.org>
4224
4225 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4226 problematic inline frame unwinding situation.
4227 * frame.c (frame_id_computed_p): New function.
4228 * frame.h (frame_id_computed_p): New prototype.
4229
361ba0e8
TT
42302020-04-26 Tom Tromey <tom@tromey.com>
4231
4232 * command.h (enum command_class) <class_pseudo>: Remove.
4233
bc3609fd
PW
42342020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4235
4236 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4237 and whitespace.
4238
b9771db7
KR
42392020-04-25 Kamil Rytarowski <n54@gmx.com>
4240
ec16513e
SM
4241 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4242 `PT_GET_PROCESS_STATE' block.
b9771db7 4243
7151c1af
TT
42442020-04-24 Tom Tromey <tom@tromey.com>
4245
4246 * symtab.h (symbol_get_demangled_name): Don't declare.
4247 * symtab.c (symbol_get_demangled_name): Remove.
4248 (general_symbol_info::natural_name)
4249 (general_symbol_info::demangled_name): Update.
4250
906bb4c5
TT
42512020-04-24 Tom Tromey <tom@tromey.com>
4252
4253 PR rust/25025:
4254 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4255
bcfe6157
TT
42562020-04-24 Tom Tromey <tom@tromey.com>
4257
4258 PR symtab/12707:
4259 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4260 exists.
4261 (new_symbol): Likewise.
4262 * compile/compile-object-load.c (get_out_value_type): Use
4263 symbol_matches_search_name.
4264
f049a313
TT
42652020-04-24 Tom Tromey <tom@tromey.com>
4266
4267 * dwarf2/read.c (add_partial_symbol): Do not call
4268 compute_and_set_names.
4269
76e288d1
TT
42702020-04-24 Tom Tromey <tom@tromey.com>
4271
4272 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4273 overload.
4274
2467f4f6
TT
42752020-04-24 Tom Tromey <tom@tromey.com>
4276
4277 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4278 (add_psymbol_to_list): New overload. Make old overload call new
4279 one.
4280 * psympriv.h (add_psymbol_to_list): New overload.
4281
e61108c9
TT
42822020-04-24 Tom Tromey <tom@tromey.com>
4283
4284 * dwarf2/read.c (partial_die_info::read) <case
4285 DW_AT_linkage_name>: Use value_as_string.
4286 (dwarf2_string_attr): Use value_as_string.
4287 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4288 method.
4289 * dwarf2/attribute.c (attribute::value_as_string): New method.
4290
8c87a452
TT
42912020-04-24 Tom Tromey <tom@tromey.com>
4292
4293 * symtab.c (general_symbol_info::natural_name)
4294 (general_symbol_info::demangled_name): Check for language_rust.
4295
787de330
TT
42962020-04-24 Tom Tromey <tom@tromey.com>
4297
4298 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4299 (dwarf2_physname): ... from here.
4300 (partial_die_info::read): Add Rust "{" hack.
4301
ff985671
TT
43022020-04-24 Tom Tromey <tom@tromey.com>
4303
4304 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4305 method.
4306 (symbol_set_demangled_name): Don't declare.
4307 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4308 symbol_set_demangled_name.
4309 (general_symbol_info::set_language)
4310 (general_symbol_info::compute_and_set_names): Update.
4311 * minsyms.c (minimal_symbol_reader::install): Update.
4312 * dwarf2/read.c (new_symbol): Update.
4313
1acda803
TT
43142020-04-24 Tom Tromey <tromey@adacore.com>
4315
4316 PR python/23662:
4317 * python/py-type.c (convert_field): Handle
4318 FIELD_LOC_KIND_DWARF_BLOCK.
4319 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4320 (typy_get_dynamic): Nw function.
4321 (type_object_getset): Add "dynamic".
4322 * NEWS: Add entry.
4323
d656f129
TT
43242020-04-24 Tom Tromey <tromey@adacore.com>
4325
4326 * ada-typeprint.c (print_choices, print_variant_part)
4327 (print_record_field_types_dynamic): New functions.
4328 (print_record_field_types): Use print_record_field_types_dynamic.
4329
7d79de9a
TT
43302020-04-24 Tom Tromey <tromey@adacore.com>
4331
4332 * dwarf2/read.c (handle_data_member_location): New overload.
4333 (dwarf2_add_field): Use it.
4334 (decode_locdesc): Add "computed" parameter. Update comment.
4335 * gdbtypes.c (is_dynamic_type_internal): Also look for
4336 FIELD_LOC_KIND_DWARF_BLOCK.
4337 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4338 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4339 virtual base classes.
4340 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4341 FIELD_LOC_KIND_DWARF_BLOCK.
4342
f8e89861
TT
43432020-04-24 Tom Tromey <tromey@adacore.com>
4344
4345 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4346 * gdbtypes.c (is_dynamic_type_internal): Check
4347 TYPE_HAS_DYNAMIC_LENGTH.
4348 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4349 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4350 New macros.
4351 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4352 constant.
4353
9c6a1327
TT
43542020-04-24 Tom Tromey <tromey@adacore.com>
4355
4356 * dwarf2/read.c (struct variant_field): Rewrite.
4357 (struct variant_part_builder): New.
4358 (struct nextfield): Remove "variant" field. Add "offset".
4359 (struct field_info): Add "current_variant_part" and
4360 "variant_parts".
4361 (alloc_discriminant_info): Remove.
4362 (alloc_rust_variant): New function.
4363 (quirk_rust_enum): Update.
4364 (dwarf2_add_field): Set "offset" member. Don't handle
4365 DW_TAG_variant_part.
4366 (offset_map_type): New typedef.
4367 (convert_variant_range, create_one_variant)
4368 (create_one_variant_part, create_variant_parts)
4369 (add_variant_property): New functions.
4370 (dwarf2_attach_fields_to_type): Call add_variant_property.
4371 (read_structure_type): Don't handle DW_TAG_variant_part.
4372 (handle_variant_part, handle_variant): New functions.
4373 (handle_struct_member_die): Use them.
4374 (process_structure_scope): Don't handle variant parts.
4375 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4376 (struct discriminant_info): Remove.
4377 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4378 (struct main_type) <flag_discriminated_union>: Remove.
4379 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4380 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4381 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4382 Update.
4383 * valops.c (value_union_variant): Remove.
4384 * value.h (value_union_variant): Don't declare.
4385
b249d2c2
TT
43862020-04-24 Tom Tromey <tromey@adacore.com>
4387
4388 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4389 (ada_value_primitive_packed_val): Update.
4390 * ada-valprint.c (ada_value_print_1): Update.
4391 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4392 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4393 just an address. Use evaluate_for_locexpr_baton.
4394 (dwarf2_evaluate_property): Update.
4395 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4396 array_view.
4397 * findvar.c (default_read_var_value): Update.
4398 * gdbtypes.c (compute_variant_fields_inner)
4399 (resolve_dynamic_type_internal): Update.
4400 (resolve_dynamic_type): Change type of valaddr parameter.
4401 * gdbtypes.h (resolve_dynamic_type): Update.
4402 * valarith.c (value_subscripted_rvalue): Update.
4403 * value.c (value_from_contents_and_address): Update.
4404
61122aa9
TT
44052020-04-24 Tom Tromey <tromey@adacore.com>
4406
4407 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4408 "push_initial_value" parameter.
4409 (dwarf2_evaluate_property): Likewise.
4410 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4411
ef83a141
TT
44122020-04-24 Tom Tromey <tromey@adacore.com>
4413
4414 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4415 (variant::matches, compute_variant_fields_recurse)
4416 (compute_variant_fields_inner, compute_variant_fields): New
4417 functions.
4418 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4419 Use resolved_type after type is made.
4420 (operator==): Add new cases.
4421 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4422 (struct discriminant_range, struct variant, struct variant_part):
4423 New.
4424 (union dynamic_prop_data) <variant_parts, original_type>: New
4425 members.
4426 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4427 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4428 constants.
4429 * value.c (unpack_bits_as_long): Now public.
4430 * value.h (unpack_bits_as_long): Declare.
4431
675127ec
TT
44322020-04-24 Tom Tromey <tromey@adacore.com>
4433
4434 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4435 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4436
9852ceef
HD
44372020-04-24 Hannes Domani <ssbssa@yahoo.de>
4438
4439 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4440
7632c6ce
KR
44412020-04-24 Kamil Rytarowski <n54@gmx.com>
4442
4443 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4444 (remove_fork_catchpoint, post_startup_inferior)
4445 (post_attach): Move...
4446 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4447 (remove_fork_catchpoint, post_startup_inferior)
4448 (post_attach): ...here.
4449 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4450 (remove_fork_catchpoint, post_startup_inferior)
4451 (post_attach): Move...
4452 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4453 (remove_fork_catchpoint, post_startup_inferior)
4454 (post_attach): ...here.
4455
7be2bb4f
TT
44562020-04-24 Tom Tromey <tromey@adacore.com>
4457
4458 * nat/windows-nat.h (struct windows_thread_info)
4459 <pc_adjusted>: New member.
4460 * windows-nat.c (windows_fetch_one_register): Check
4461 pc_adjusted.
4462 (windows_nat_target::get_windows_debug_event)
4463 (windows_nat_target::wait): Set pc_adjusted.
4464
f80cb3b4
TV
44652020-04-24 Tom de Vries <tdevries@suse.de>
4466
4467 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4468 Run gdb-add-index inside temp dir.
4469
29514b87
TT
44702020-04-23 Tom Tromey <tromey@adacore.com>
4471
4472 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4473 in loop.
4474
5939967b
LM
44752020-04-23 Luis Machado <luis.machado@linaro.org>
4476
4477 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4478 get_frame_register instead of gdbarch_unwind_pc.
4479
70bc38f5
TV
44802020-04-23 Tom de Vries <tdevries@suse.de>
4481
4482 * symtab.c (lookup_global_symbol): Prefer def over decl.
4483
de82891c
TV
44842020-04-23 Tom de Vries <tdevries@suse.de>
4485
4486 PR symtab/25807
4487 * block.c (best_symbol, better_symbol): Promote to external.
4488 * block.h (best_symbol, better_symbol): Declare.
4489 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4490 decl.
4491
ecc6c606
TT
44922020-04-23 Tom Tromey <tromey@adacore.com>
4493
4494 PR ada/25837:
4495 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4496 "const char *", not a "const std::string &".
4497 <name_and_matcher::operator==>: Update.
4498 * unittests/lookup_name_info-selftests.c: Change type of
4499 "result".
4500
740480b8
TT
45012020-04-23 Tom Tromey <tom@tromey.com>
4502
4503 * inferior.h (iterate_over_inferiors): Don't declare.
4504 * inferior.c (iterate_over_inferiors): Remove.
4505 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4506 Remove.
4507 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4508 use iterate_over_inferiors.
4509 (darwin_resume_inferior_it)
4510 (struct resume_inferior_threads_param)
4511 (darwin_resume_inferior_threads_it): Remove.
4512 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4513
ae3ab1f0
TV
45142020-04-23 Tom de Vries <tdevries@suse.de>
4515
4516 * blockframe.c (find_pc_partial_function): Use
4517 find_pc_sect_compunit_symtab rather than
4518 objfile->sf->qf->find_pc_sect_compunit_symtab.
4519
317d2668
TV
45202020-04-22 Tom de Vries <tdevries@suse.de>
4521
4522 PR symtab/25764
4523 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4524 in psymtabs.
4525
eea9e357
TV
45262020-04-22 Tom de Vries <tdevries@suse.de>
4527
4528 PR symtab/25801
4529 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4530 symtabs.
4531
3d5afab3
TV
45322020-04-22 Tom de Vries <tdevries@suse.de>
4533
4534 PR symtab/25700
4535 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4536 CU if already created.
4537
d43b7a2d
TBA
45382020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4539
4540 * infrun.c (displaced_step_fixup): Switch to the event_thread
4541 before calling displaced_step_restore, not after.
4542
d89edf9b
MM
45432020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4544
4545 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4546 its inferior is not recorded by us.
4547 (record_btrace_target_open): Replace call to
4548 all_non_exited_threads () with call to current_inferior
4549 ()->non_exited_threads ().
4550 (record_btrace_target::stop_recording): Likewise.
4551 (record_btrace_target::close): Likewise.
4552 (record_btrace_target::wait): Likewise.
4553 (record_btrace_target::record_stop_replaying): Likewise.
4554
5897fd49
MM
45552020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4556
4557 * btrace.c (btrace_enable): Throw an error on double enables and
4558 when enabling recording fails.
4559 (btrace_disable): Throw an error if the thread is not recorded.
4560
1a476b6d
MM
45612020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4562
4563 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4564 request if we do not have a thread_info.
4565
4778a5f8
TV
45662020-04-21 Tom de Vries <tdevries@suse.de>
4567
4568 PR gdb/25471
4569 * thread.c
4570 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4571 exception in get_frame_id.
4572
0fa7617d
TT
45732020-04-20 Tom Tromey <tromey@adacore.com>
4574
4575 * python/python.c (struct gdbpy_event): Mark move constructor as
4576 noexcept.
4577 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4578 constructor as noexcept.
4579 * completer.h (struct completion_result): Mark move constructor as
4580 noexcept.
4581 * completer.c (completion_result::completion_result): Use
4582 initialization style. Don't call reset_match_list.
4583
ad23bda0
MS
45842020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4585
4586 * MAINTAINERS (Write After Approval): Add myself.
4587
45e1f031
TT
45882020-04-18 Tom Tromey <tom@tromey.com>
4589
4590 * windows-tdep.c (init_w32_command_list)
4591 (w32_prefix_command_valid): Restore.
4592 (_initialize_windows_tdep): Call init_w32_command_list.
4593
08feed99
TT
45942020-04-18 Tom Tromey <tom@tromey.com>
4595
4596 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4597 * value.c (value_fn_field): Update.
4598 * valops.c (find_function_in_inferior)
4599 (value_allocate_space_in_inferior): Update.
4600 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4601 Update.
4602 * tui/tui-source.c (tui_source_window::set_contents): Update.
4603 * symtab.c (lookup_global_or_static_symbol)
4604 (find_function_start_sal_1, skip_prologue_sal)
4605 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4606 * symmisc.c (dump_msymbols, dump_symtab_1)
4607 (maintenance_print_one_line_table): Update.
4608 * symfile.c (init_entry_point_info, section_is_mapped)
4609 (list_overlays_command, simple_read_overlay_table)
4610 (simple_overlay_update_1): Update.
4611 * stap-probe.c (handle_stap_probe): Update.
4612 * stabsread.c (dbx_init_float_type, define_symbol)
4613 (read_one_struct_field, read_enum_type, read_range_type): Update.
4614 * source.c (info_line_command): Update.
4615 * python/python.c (gdbpy_source_objfile_script)
4616 (gdbpy_execute_objfile_script): Update.
4617 * python/py-type.c (save_objfile_types): Update.
4618 * python/py-objfile.c (py_free_objfile): Update.
4619 * python/py-inferior.c (python_new_objfile): Update.
4620 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4621 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4622 (maintenance_check_psymtabs): Update.
4623 * printcmd.c (info_address_command): Update.
4624 * objfiles.h (struct objfile) <arch>: New method, from
4625 get_objfile_arch.
4626 (get_objfile_arch): Don't declare.
4627 * objfiles.c (get_objfile_arch): Remove.
4628 (filter_overlapping_sections): Update.
4629 * minsyms.c (msymbol_is_function): Update.
4630 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4631 (output_nondebug_symbol): Update.
4632 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4633 (mdebug_expand_psymtab): Update.
4634 * machoread.c (macho_add_oso_symfile): Update.
4635 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4636 Update.
4637 * linux-fork.c (checkpoint_command): Update.
4638 * linespec.c (convert_linespec_to_sals): Update.
4639 * jit.c (finalize_symtab): Update.
4640 * infrun.c (insert_exception_resume_from_probe): Update.
4641 * ia64-tdep.c (ia64_find_unwind_table): Update.
4642 * hppa-tdep.c (internalize_unwinds): Update.
4643 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4644 Update.
4645 * gcore.c (call_target_sbrk): Update.
4646 * elfread.c (record_minimal_symbol, elf_symtab_read)
4647 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4648 (elf_gnu_ifunc_resolve_by_got): Update.
4649 * dwarf2/read.c (create_addrmap_from_index)
4650 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4651 (read_debug_names_from_section)
4652 (process_psymtab_comp_unit_reader, add_partial_symbol)
4653 (add_partial_subprogram, process_full_comp_unit)
4654 (read_file_scope, read_func_scope, read_lexical_block_scope)
4655 (read_call_site_scope, dwarf2_ranges_read)
4656 (dwarf2_record_block_ranges, dwarf2_add_field)
4657 (mark_common_block_symbol_computed, read_tag_pointer_type)
4658 (read_tag_string_type, dwarf2_init_float_type)
4659 (dwarf2_init_complex_target_type, read_base_type)
4660 (partial_die_info::read, partial_die_info::read)
4661 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4662 (dwarf2_fetch_die_loc_sect_off): Update.
4663 * dwarf2/loc.c (dwarf2_find_location_expression)
4664 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4665 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4666 (dwarf2_loc_desc_get_symbol_read_needs)
4667 (locexpr_describe_location_piece, locexpr_describe_location_1)
4668 (loclist_describe_location): Update.
4669 * dwarf2/index-write.c (write_debug_names): Update.
4670 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4671 * dtrace-probe.c (dtrace_process_dof): Update.
4672 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4673 (process_one_symbol): Update.
4674 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4675 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4676 (coff_read_enum_type): Update.
4677 * cli/cli-cmds.c (edit_command, list_command): Update.
4678 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4679 * breakpoint.c (create_overlay_event_breakpoint)
4680 (create_longjmp_master_breakpoint)
4681 (create_std_terminate_master_breakpoint)
4682 (create_exception_master_breakpoint, get_sal_arch): Update.
4683 * block.c (block_gdbarch): Update.
4684 * annotate.c (annotate_source_line): Update.
4685
0743fc83
TT
46862020-04-17 Tom Tromey <tromey@adacore.com>
4687
4688 * auto-load.c (show_auto_load_cmd): Remove.
4689 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4690 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4691 (maintenance_print_arc_command): Remove.
4692 * tui/tui-win.c (tui_command): Remove.
4693 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4694 * tui/tui-layout.c (tui_layout_command): Remove.
4695 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4696 * python/python.c (user_set_python, user_show_python): Remove.
4697 (_initialize_python): Use add_basic_prefix_cmd,
4698 add_show_prefix_cmd.
4699 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4700 (install_gdb_commands): Use add_basic_prefix_cmd,
4701 add_show_prefix_cmd.
4702 (info_guile_command): Remove.
4703 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4704 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4705 add_show_prefix_cmd.
4706 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4707 Remove do_set and do_show parameters.
4708 * cli/cli-style.c (set_style, show_style): Remove.
4709 (_initialize_cli_style): Use add_basic_prefix_cmd,
4710 add_show_prefix_cmd.
4711 (cli_style_option::add_setshow_commands): Remove do_set and
4712 do_show parameters.
4713 (cli_style_option::add_setshow_commands): Use
4714 add_basic_prefix_cmd, add_show_prefix_cmd.
4715 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4716 (set_style_name): Remove.
4717 * cli/cli-dump.c (dump_command, append_command): Remove.
4718 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4719 (tekhex_dump_command, binary_dump_command)
4720 (binary_append_command): Remove.
4721 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4722 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4723 (init_w32_command_list): Remove; move into ...
4724 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4725 * valprint.c (set_print, show_print, set_print_raw)
4726 (show_print_raw): Remove.
4727 (_initialize_valprint): Use add_basic_prefix_cmd,
4728 add_show_prefix_cmd.
4729 * typeprint.c (set_print_type, show_print_type): Remove.
4730 (_initialize_typeprint): Use add_basic_prefix_cmd,
4731 add_show_prefix_cmd.
4732 * record.c (set_record_command, show_record_command): Remove.
4733 (_initialize_record): Use add_basic_prefix_cmd,
4734 add_show_prefix_cmd.
4735 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4736 add_show_prefix_cmd.
4737 (info_command, show_command, set_debug, show_debug): Remove.
4738 * top.h (set_history, show_history): Don't declare.
4739 * top.c (set_history, show_history): Remove.
4740 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4741 (unset_tdesc_cmd): Remove.
4742 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4743 add_show_prefix_cmd.
4744 * symtab.c (info_module_command): Remove.
4745 (_initialize_symtab): Use add_basic_prefix_cmd.
4746 * symfile.c (overlay_command): Remove.
4747 (_initialize_symfile): Use add_basic_prefix_cmd.
4748 * sparc64-tdep.c (info_adi_command): Remove.
4749 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4750 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4751 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4752 add_show_prefix_cmd.
4753 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4754 (_initialize_serial): Use add_basic_prefix_cmd,
4755 add_show_prefix_cmd.
4756 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4757 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4758 add_show_prefix_cmd.
4759 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4760 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4761 add_show_prefix_cmd.
4762 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4763 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4764 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4765 add_show_prefix_cmd.
4766 * remote.c (remote_command, set_remote_cmd): Remove.
4767 (_initialize_remote): Use add_basic_prefix_cmd.
4768 * record-full.c (set_record_full_command)
4769 (show_record_full_command): Remove.
4770 (_initialize_record_full): Use add_basic_prefix_cmd,
4771 add_show_prefix_cmd.
4772 * record-btrace.c (cmd_set_record_btrace)
4773 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4774 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4775 (cmd_show_record_btrace_pt): Remove.
4776 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4777 add_show_prefix_cmd.
4778 * ravenscar-thread.c (set_ravenscar_command)
4779 (show_ravenscar_command): Remove.
4780 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4781 add_show_prefix_cmd.
4782 * mips-tdep.c (show_mips_command, set_mips_command)
4783 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4784 add_show_prefix_cmd.
4785 * maint.c (maintenance_command, maintenance_info_command)
4786 (maintenance_check_command, maintenance_print_command)
4787 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4788 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4789 add_show_prefix_cmd.
4790 (show_per_command_cmd): Remove.
4791 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4792 Remove.
4793 (maintenance_show_test_settings_cmd): Remove.
4794 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4795 add_show_prefix_cmd.
4796 * maint-test-options.c (maintenance_test_options_command):
4797 Remove.
4798 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4799 * macrocmd.c (macro_command): Remove
4800 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4801 * language.c (set_check, show_check): Remove.
4802 (_initialize_language): Use add_basic_prefix_cmd,
4803 add_show_prefix_cmd.
4804 * infcmd.c (unset_command): Remove.
4805 (_initialize_infcmd): Use add_basic_prefix_cmd.
4806 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4807 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4808 add_show_prefix_cmd.
4809 * go32-nat.c (go32_info_dos_command): Remove.
4810 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4811 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4812 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4813 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4814 (_initialize_frame): Use add_basic_prefix_cmd,
4815 add_show_prefix_cmd.
4816 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4817 (_initialize_dcache): Use add_basic_prefix_cmd,
4818 add_show_prefix_cmd.
4819 * cp-support.c (maint_cplus_command): Remove.
4820 (_initialize_cp_support): Use add_basic_prefix_cmd.
4821 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4822 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4823 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4824 add_basic_prefix_cmd, add_show_prefix_cmd.
4825 * breakpoint.c (save_command): Remove.
4826 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4827 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4828 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4829 add_show_prefix_cmd.
4830 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4831 (set_ada_command, show_ada_command): Remove.
4832 (_initialize_ada_language): Use add_basic_prefix_cmd,
4833 add_show_prefix_cmd.
4834 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4835
3557f442
KR
48362020-04-16 Kamil Rytarowski <n54@gmx.com>
4837
4838 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4839 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4840
16197208
SM
48412020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4842
4843 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4844 warning messages.
4845
00ac85d3
SM
48462020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4847
4848 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4849 import table is not at beginning of .idata section.
4850
381ce63f
PA
48512020-04-16 Pedro Alves <palves@redhat.com>
4852
4853 * inferior.c (delete_inferior): Use delete operator directly
4854 instead of delete_program_space.
4855 * progspace.c (add_program_space): New, factored out from
4856 program_space::program_space.
4857 (remove_program_space): New, factored out from
4858 delete_program_space.
4859 (program_space::program_space): Remove intro comment. Rewrite.
4860 (program_space::~program_space): Remove intro comment. Call
4861 remove_program_space.
4862 (delete_program_space): Delete.
4863 * progspace.h (program_space::program_space): Make explicit. Move
4864 intro comment here, adjusted.
4865 (program_space::~program_space): Move intro comment here,
4866 adjusted.
4867 (delete_program_space): Remove.
4868
a010605f
TT
48692020-04-16 Tom Tromey <tromey@adacore.com>
4870
4871 * windows-nat.c (windows_nat::handle_access_violation): New
4872 function.
4873 * nat/windows-nat.h (handle_access_violation): Declare.
4874 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4875 windows-nat.c. Call handle_access_violation.
4876
efba5c23
TV
48772020-04-16 Tom de Vries <tdevries@suse.de>
4878
4879 PR symtab/25791
4880 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4881 CUs without psymtab.
4882
97ed802d
KB
48832020-04-16 Kevin Buettner <kevinb@redhat.com>
4884
4885 * python/python.c (do_start_initialization): Don't call
4886 PyEval_InitThreads for Python 3.9 and beyond.
4887
c7d64809
KR
48882020-04-15 Kamil Rytarowski <n54@gmx.com>
4889
4890 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4891 thread functions.
4892 (obsd_nat_target::wait): Likewise.
4893
ce127a96
TT
48942020-04-15 Tom Tromey <tromey@adacore.com>
4895
4896 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4897 (DEBUG_EXCEPT): Use debug_printf.
4898
99f1bc6a
AB
48992020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4900
4901 * completer.c (class completion_tracker::completion_hash_entry)
4902 <hash_name>: New member function.
4903 (completion_tracker::discard_completions): New callback to hash a
4904 completion_hash_entry, pass this to htab_create_alloc.
4905
a0e9b532
JT
49062016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4907
4908 * windows-nat.c (windows_make_so): Warn rather than stopping with
4909 an error if realpath() fails.
4910
06ca5dd4
KR
49112020-04-14 Kamil Rytarowski <n54@gmx.com>
4912
4913 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4914 (nbsd_nat_target::info_proc): Add do_status.
4915
194d088f
TV
49162020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4917 Tom de Vries <tdevries@suse.de>
4918
4919 PR symtab/25718
4920 * psympriv.h (struct partial_symtab::read_symtab)
4921 (struct partial_symtab::expand_psymtab)
4922 (struct partial_symtab::read_dependencies): Update comments.
4923 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4924 read_symtab for includer.
4925 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4926 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4927 (struct dwarf2_include_psymtab::m_readin): Remove.
4928 (struct dwarf2_include_psymtab::includer): New member function.
4929 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4930
c1a66c06
TV
49312020-04-14 Tom de Vries <tdevries@suse.de>
4932
4933 PR symtab/25720
4934 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4935 with NULL symbol_matcher and lookup_name.
4936 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4937 and lookup_name.
4938 * dwarf2/read.c (dw2_expand_symtabs_matching)
4939 (dw2_debug_names_expand_symtabs_matching): Same.
4940 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4941 Make lookup_name a pointer. Update comment.
4942 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4943 lookup_name being a pointer.
4944 * symfile.c (expand_symtabs_matching): Same.
4945 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4946 * linespec.c (iterate_over_all_matching_symtabs): Same.
4947
400b5eca
TT
49482020-04-13 Tom Tromey <tom@tromey.com>
4949
4950 * run-on-main-thread.c: Update include.
4951 * unittests/main-thread-selftests.c: Update include.
4952 * tui/tui-win.c: Update include.
4953 * tui/tui-io.c: Update include.
4954 * tui/tui-interp.c: Update include.
4955 * tui/tui-hooks.c: Update include.
4956 * top.h: Update include.
4957 * top.c: Update include.
4958 * ser-base.c: Update include.
4959 * remote.c: Update include.
4960 * remote-notif.c: Update include.
4961 * remote-fileio.c: Update include.
4962 * record-full.c: Update include.
4963 * record-btrace.c: Update include.
4964 * python/python.c: Update include.
4965 * posix-hdep.c: Update include.
4966 * mingw-hdep.c: Update include.
4967 * mi/mi-main.c: Update include.
4968 * mi/mi-interp.c: Update include.
4969 * main.c: Update include.
4970 * linux-nat.c: Update include.
4971 * interps.c: Update include.
4972 * infrun.c: Update include.
4973 * inf-loop.c: Update include.
4974 * event-top.c: Update include.
4975 * event-loop.c: Move to ../gdbsupport/.
4976 * event-loop.h: Move to ../gdbsupport/.
4977 * async-event.h: Update include.
4978 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4979
93b54c8e
TT
49802020-04-13 Tom Tromey <tom@tromey.com>
4981
4982 * tui/tui-win.c: Include async-event.h.
4983 * remote.c: Include async-event.h.
4984 * remote-notif.c: Include async-event.h.
4985 * record-full.c: Include async-event.h.
4986 * record-btrace.c: Include async-event.h.
4987 * infrun.c: Include async-event.h.
4988 * event-top.c: Include async-event.h.
4989 * event-loop.h: Move some declarations to async-event.h.
4990 * event-loop.c: Don't include ser-event.h or top.h. Move some
4991 code to async-event.c.
4992 * async-event.h: New file.
4993 * async-event.c: New file.
4994 * Makefile.in (COMMON_SFILES): Add async-event.c.
4995 (HFILES_NO_SRCDIR): Add async-event.h.
4996
c1cd3163
TT
49972020-04-13 Tom Tromey <tom@tromey.com>
4998
4999 * utils.c (flush_streams): New function.
5000 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5001
29f2bf4f
TT
50022020-04-13 Tom Tromey <tom@tromey.com>
5003
5004 * event-loop.c (handle_file_event): Use warning, not
5005 printf_unfiltered.
5006
98029d02
TT
50072020-04-13 Tom Tromey <tom@tromey.com>
5008
5009 * event-loop.c: Include <chrono>.
5010
06cc9596
TT
50112020-04-13 Tom Tromey <tom@tromey.com>
5012
5013 * gdb_select.h: Move to ../gdbsupport/.
5014 * event-loop.c: Update include path.
5015 * top.c: Update include path.
5016 * ser-base.c: Update include path.
5017 * ui-file.c: Update include path.
5018 * ser-tcp.c: Update include path.
5019 * guile/scm-ports.c: Update include path.
5020 * posix-hdep.c: Update include path.
5021 * ser-unix.c: Update include path.
5022 * gdb_usleep.c: Update include path.
5023 * mingw-hdep.c: Update include path.
5024 * inflow.c: Update include path.
5025 * infrun.c: Update include path.
5026 * event-top.c: Update include path.
5027
8ae8e197
TT
50282020-04-13 Tom Tromey <tom@tromey.com>
5029
5030 * configure: Rebuild.
5031 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5032
58cf28e8
TT
50332020-04-13 Tom Tromey <tom@tromey.com>
5034
5035 * event-loop.h (start_event_loop): Don't declare.
5036 * event-loop.c (start_event_loop): Move...
5037 * main.c (start_event_loop): ...here. Now static.
5038
b7f999ae
SDJ
50392020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5040
5041 * MAINTAINERS: Update my email address.
5042
1085dfd4
KR
50432020-04-12 Kamil Rytarowski <n54@gmx.com>
5044
5045 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5046 IP_ALL.
5047
49d1d1f5
KR
50482020-04-12 Kamil Rytarowski <n54@gmx.com>
5049
5050 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5051 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5052
b4848d2a
KR
50532020-04-12 Kamil Rytarowski <n54@gmx.com>
5054
5055 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5056 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5057
51c133d5
KR
50582020-04-12 Kamil Rytarowski <n54@gmx.com>
5059
5060 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5061
54b8cbd0
KR
50622020-04-11 Kamil Rytarowski <n54@gmx.com>
5063
5064 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5065 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5066 (nbsd_nat_target::info_proc): New functions.
5067 * nbsd-nat.c (kinfo_get_vmmap): New function.
5068 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5069 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5070 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5071 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5072 functions.
5073 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5074 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5075 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5076 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5077 (KINFO_VME_FLAG_GROWS_DOWN): New.
5078
cf83625d
AS
50792020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5080
5081 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5082 bit shift.
5083
0c4311ab
TT
50842020-04-10 Tom Tromey <tromey@adacore.com>
5085
5086 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5087
3e65b3e9
TT
50882020-04-10 Tom Tromey <tromey@adacore.com>
5089
5090 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5091 separate debug files.
5092
13302e95
HD
50932020-04-10 Hannes Domani <ssbssa@yahoo.de>
5094
5095 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5096 Move to...
5097 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5098 ... here.
5099 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5100 Check for STATUS_WX86_BREAKPOINT.
5101 (windows_nat_target::wait): Same.
5102
bdfc1e8a
TV
51032020-04-10 Tom de Vries <tdevries@suse.de>
5104
5105 PR cli/25808
5106 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5107
f4460aec
SM
51082020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5109
5110 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5111 (Write After Approval): Remove Tom de Vries.
5112
a25198bb
BE
51132020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5114
5115 revert partially:
5116 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5117
aac66a4c
SM
5118 * buildsym.c (record_line): Fix undefined behavior and preserve
5119 lines at eof.
a25198bb 5120
206c98a6
KR
51212020-04-09 Kamil Rytarowski <n54@gmx.com>
5122
5123 * auxv.h (svr4_auxv_parse): New.
5124 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5125 and generic_auxv_parse.
5126 (svr4_auxv_parse): Add.
5127 * obsd-tdep.c: Include "auxv.h".
5128 (obsd_auxv_parse): Remove.
5129 (obsd_init_abi): Remove comment.
5130 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5131 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5132 * nbsd-tdep.c: Include "auxv.h".
5133 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5134
71fbdbaf
TT
51352020-04-08 Tom Tromey <tromey@adacore.com>
5136
5137 * nat/windows-nat.h (last_wait_event): Don't declare.
5138 (wait_for_debug_event): Update comment.
5139 * nat/windows-nat.c (last_wait_event): Now static.
5140
2c1d95e8
TT
51412020-04-08 Tom Tromey <tromey@adacore.com>
5142
5143 * windows-nat.c (wait_for_debug_event): Move to
5144 nat/windows-nat.c.
5145 * nat/windows-nat.h (wait_for_debug_event): Declare.
5146 * nat/windows-nat.c (wait_for_debug_event): Move from
5147 windows-nat.c. No longer static.
5148
d2977bc4
TT
51492020-04-08 Tom Tromey <tromey@adacore.com>
5150
5151 * windows-nat.c (get_windows_debug_event): Use
5152 fetch_pending_stop.
5153 * nat/windows-nat.h (fetch_pending_stop): Declare.
5154 * nat/windows-nat.c (fetch_pending_stop): New function.
5155
e758e19c
TT
51562020-04-08 Tom Tromey <tromey@adacore.com>
5157
5158 * windows-nat.c (windows_continue): Use matching_pending_stop and
5159 continue_last_debug_event.
5160 * nat/windows-nat.h (matching_pending_stop)
5161 (continue_last_debug_event): Declare.
5162 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5163 (matching_pending_stop, continue_last_debug_event): New
5164 functions.
5165
8d30e395
TT
51662020-04-08 Tom Tromey <tromey@adacore.com>
5167
5168 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5169 (handle_exception_result): Move to nat/windows-nat.h.
5170 (DEBUG_EXCEPTION_SIMPLE): Remove.
5171 (windows_nat::handle_ms_vc_exception): New function.
5172 (handle_exception): Move to nat/windows-nat.c.
5173 (get_windows_debug_event): Update.
5174 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5175 nat/windows-nat.c.
5176 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5177 (handle_exception_result): Move from windows-nat.c.
5178 (handle_exception): Declare.
5179 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5180 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5181 windows-nat.c.
5182
29de418d
TT
51832020-04-08 Tom Tromey <tromey@adacore.com>
5184
5185 * windows-nat.c (exception_count, event_count): Remove.
5186 (handle_exception, get_windows_debug_event)
5187 (do_initial_windows_stuff): Update.
5188
a816ba18
TT
51892020-04-08 Tom Tromey <tromey@adacore.com>
5190
5191 * windows-nat.c (windows_nat::handle_load_dll)
5192 (windows_nat::handle_unload_dll): Rename. No longer static.
5193 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5194 Declare.
5195
a00caa12
TT
51962020-04-08 Tom Tromey <tromey@adacore.com>
5197
5198 * complaints.h (stop_whining): Declare at top-level.
5199 (complaint): Don't declare stop_whining.
5200
d41b524f
TT
52012020-04-08 Tom Tromey <tromey@adacore.com>
5202
5203 * windows-nat.c (windows_nat::handle_output_debug_string):
5204 Rename. No longer static.
5205 * nat/windows-nat.h (handle_output_debug_string): Declare.
5206
3c76026d
TT
52072020-04-08 Tom Tromey <tromey@adacore.com>
5208
5209 * windows-nat.c (current_process_handle, current_process_id)
5210 (main_thread_id, last_sig, current_event, last_wait_event)
5211 (current_windows_thread, desired_stop_thread_id, pending_stops)
5212 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5213 (display_selectors, fake_create_process)
5214 (get_windows_debug_event): Update.
5215 * nat/windows-nat.h (current_process_handle, current_process_id)
5216 (main_thread_id, last_sig, current_event, last_wait_event)
5217 (current_windows_thread, desired_stop_thread_id, pending_stops)
5218 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5219 * nat/windows-nat.c (current_process_handle, current_process_id)
5220 (main_thread_id, last_sig, current_event, last_wait_event)
5221 (current_windows_thread, desired_stop_thread_id, pending_stops)
5222 (siginfo_er): New globals. Move from windows-nat.c.
5223
9d8679cc
TT
52242020-04-08 Tom Tromey <tromey@adacore.com>
5225
5226 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5227 (handle_load_dll): Update.
5228 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5229
28688adf
TT
52302020-04-08 Tom Tromey <tromey@adacore.com>
5231
5232 * windows-nat.c (enum thread_disposition_type): Move to
5233 nat/windows-nat.h.
5234 (windows_nat::thread_rec): Rename from thread_rec. No longer
5235 static.
5236 (windows_add_thread, windows_nat_target::fetch_registers)
5237 (windows_nat_target::store_registers, handle_exception)
5238 (windows_nat_target::resume, get_windows_debug_event)
5239 (windows_nat_target::get_tib_address)
5240 (windows_nat_target::thread_name)
5241 (windows_nat_target::thread_alive): Update.
5242 * nat/windows-nat.h (enum thread_disposition_type): Move from
5243 windows-nat.c.
5244 (thread_rec): Declare.
5245
4834dad0
TT
52462020-04-08 Tom Tromey <tromey@adacore.com>
5247
5248 * windows-nat.c: Add "using namespace".
5249 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5250 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5251
65bafd5b
TT
52522020-04-08 Tom Tromey <tromey@adacore.com>
5253
5254 * nat/windows-nat.h (struct windows_thread_info): Declare
5255 destructor.
5256 * nat/windows-nat.c (~windows_thread_info): New.
5257
0a4afda3
TT
52582020-04-08 Tom Tromey <tromey@adacore.com>
5259
5260 PR gdb/22992
5261 * windows-nat.c (current_event): Update comment.
5262 (last_wait_event, desired_stop_thread_id): New globals.
5263 (struct pending_stop): New.
5264 (pending_stops): New global.
5265 (windows_nat_target) <stopped_by_sw_breakpoint>
5266 <supports_stopped_by_sw_breakpoint>: New methods.
5267 (windows_fetch_one_register): Add assertions. Adjust PC.
5268 (windows_continue): Handle pending stops. Suspend other threads
5269 when stepping. Use last_wait_event
5270 (wait_for_debug_event): New function.
5271 (get_windows_debug_event): Use wait_for_debug_event. Handle
5272 pending stops. Queue spurious stops.
5273 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5274 (windows_nat_target::kill): Use wait_for_debug_event.
5275 * nat/windows-nat.h (struct windows_thread_info)
5276 <stopped_at_software_breakpoint>: New field.
5277 * nat/windows-nat.c (windows_thread_info::resume): Clear
5278 stopped_at_software_breakpoint.
5279
8e61ebec
TT
52802020-04-08 Tom Tromey <tromey@adacore.com>
5281
5282 * windows-nat.c (enum thread_disposition_type): New.
5283 (thread_rec): Replace "get_context" parameter with "disposition";
5284 change type.
5285 (windows_add_thread, windows_nat_target::fetch_registers)
5286 (windows_nat_target::store_registers, handle_exception)
5287 (windows_nat_target::resume, get_windows_debug_event)
5288 (windows_nat_target::get_tib_address)
5289 (windows_nat_target::thread_name)
5290 (windows_nat_target::thread_alive): Update.
5291
98a03287
TT
52922020-04-08 Tom Tromey <tromey@adacore.com>
5293
5294 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5295 (windows_continue): Use windows_continue::resume.
5296 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5297 resume>: Declare new methods.
5298 * nat/windows-nat.c: New file.
5299 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5300
7c7411bc
TT
53012020-04-08 Tom Tromey <tromey@adacore.com>
5302
5303 * windows-nat.c (windows_add_thread, windows_delete_thread)
5304 (windows_nat_target::fetch_registers)
5305 (windows_nat_target::store_registers, fake_create_process)
5306 (windows_nat_target::resume, windows_nat_target::resume)
5307 (get_windows_debug_event, windows_nat_target::wait)
5308 (windows_nat_target::pid_to_str)
5309 (windows_nat_target::get_tib_address)
5310 (windows_nat_target::get_ada_task_ptid)
5311 (windows_nat_target::thread_name)
5312 (windows_nat_target::thread_alive): Use lwp, not tid.
5313
2950fdf7
TT
53142020-04-08 Tom Tromey <tromey@adacore.com>
5315
5316 * windows-nat.c (handle_exception)
5317 (windows_nat_target::thread_name): Update.
5318 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5319 <name>: Now unique_xmalloc_ptr.
5320
62fe396b
TT
53212020-04-08 Tom Tromey <tromey@adacore.com>
5322
5323 * windows-nat.c (thread_rec)
5324 (windows_nat_target::fetch_registers): Update.
5325 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5326 Update comment.
5327 <debug_registers_changed, reload_context>: Now bool.
5328
e9534bd2
TT
53292020-04-08 Tom Tromey <tromey@adacore.com>
5330
5331 * windows-nat.c (windows_add_thread): Use new.
5332 (windows_init_thread_list, windows_delete_thread): Use delete.
5333 (get_windows_debug_event): Update.
5334 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5335 destructor, and initializers.
5336
ae1f8880
TT
53372020-04-08 Tom Tromey <tromey@adacore.com>
5338
5339 * windows-nat.c (struct windows_thread_info): Remove.
5340 * nat/windows-nat.h: New file.
5341
55a1e039
TT
53422020-04-08 Tom Tromey <tromey@adacore.com>
5343
5344 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5345 (thread_rec, windows_add_thread, windows_delete_thread)
5346 (windows_continue): Update.
5347
93366324
TT
53482020-04-08 Tom Tromey <tromey@adacore.com>
5349
5350 * windows-nat.c (struct windows_thread_info): Remove typedef.
5351 (thread_head): Remove.
5352 (thread_list): New global.
5353 (thread_rec, windows_add_thread, windows_init_thread_list)
5354 (windows_delete_thread, windows_continue): Update.
5355
0f2265e2
SM
53562020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5357
5358 * windows-tdep.h (windows_init_abi): Add comment.
5359 (cygwin_init_abi): New declaration.
5360 * windows-tdep.c: Split signal enumeration in two, one for
5361 Windows and one for Cygwin.
5362 (windows_gdb_signal_to_target): Only deal with signal of the
5363 Windows OS ABI.
5364 (cygwin_gdb_signal_to_target): New function.
5365 (windows_init_abi): Rename to windows_init_abi_common, don't set
5366 gdb_signal_to_target gdbarch method. Add new new function with
5367 this name.
5368 (cygwin_init_abi): New function.
5369 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5370 comment. Don't call windows_init_abi.
5371 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5372 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5373 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5374 i386_windows_init_abi_common, don't call windows_init_abi. Add
5375 a new function of this name.
5376 (i386_cygwin_init_abi): New function.
5377 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5378 OS ABI Cygwin.
5379
3810f182
SM
53802020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5381
5382 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5383 parameter.c.
5384 (dwarf2_read_gdb_index): Update.
5385
063f8e80
KR
53862020-04-07 Kamil Rytarowski <n54@gmx.com>
5387
5388 * nbsd-tdep.c: Include "objfiles.h".
5389 (nbsd_skip_solib_resolver): New.
5390 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5391
85a9510c 53922020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5393
5394 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5395 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5396 with DW_LLE_base_addressx are being emitted in DWARFv5.
5397 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5398 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5399 unsigned integer.
5400
9fc3eaae 54012020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5402
5403 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5404 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5405 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5406 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5407 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5408 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5409 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5410
5411
41144253 54122020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5413
5414 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5415 (read_loclist_index): New function definition.
5416 (lookup_loclist_base): New function definition.
5417 (read_loclist_header): New function definition.
5418 (dwarf2_cu): Add loclist_base and loclist_header field.
5419 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5420 (read_full_die_1): Read the value of DW_AT_loclists_base.
5421 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5422 (read_attribute_value): Handle DW_FORM_loclistx.
5423 (skip_one_die): Handle DW_FORM_loclistx.
5424 (loclist_header): New structure declaration.
5425 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5426
9f4e76a4
SM
54272020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5428
5429 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5430 constructor. Remove `addr` parameter from other constructor and
5431 add `per_cu` parameter.
5432 * dwarf2/read.c (create_partial_symtab): Update.
5433
25c11aca
TV
54342020-04-07 Tom de Vries <tdevries@suse.de>
5435
5436 PR symtab/25796
5437 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5438 (partial_die_info::fixup): Inherit has_const_value.
5439
5707e24b
TV
54402020-04-07 Tom de Vries <tdevries@suse.de>
5441
5442 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5443 symbols without address.
5444
05f00e22
KR
54452020-04-06 Kamil Rytarowski <n54@gmx.com>
5446
5447 * nbsd-nat.h (struct thread_info): Add forward declaration.
5448 (nbsd_nat_target::thread_alive): Add.
5449 (nbsd_nat_target::thread_name): Likewise.
5450 (nbsd_nat_target::update_thread_list): Likewise.
5451 (update_thread_list::post_attach): Likewise.
5452 (post_attach::pid_to_str): Likewise.
5453 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5454 (nbsd_thread_lister): Add.
5455 (nbsd_nat_target::thread_alive): Likewise.
5456 (nbsd_nat_target::thread_name): Likewise.
5457 (nbsd_add_threads): Likewise.
5458 (update_thread_list::post_attach): Likewise.
5459 (nbsd_nat_target::update_thread_list): Likewise.
5460 (post_attach::pid_to_str): Likewise.
5461
6ee448cc
TT
54622020-04-06 Tom Tromey <tromey@adacore.com>
5463
5464 * ada-valprint.c (print_variant_part): Extract the variant field.
5465 (print_field_values): Use the field as the outer value when
5466 recursing.
5467
dea34e8c
TT
54682020-04-06 Tom Tromey <tromey@adacore.com>
5469
5470 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5471 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5472 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5473 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5474 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5475
93689ce9
TT
54762020-04-06 Tom Tromey <tromey@adacore.com>
5477
5478 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5479 TYPE_CODE_ERROR.
5480
79743962
KR
54812020-04-06 Kamil Rytarowski <n54@gmx.com>
5482
5483 * nbsd-tdep.c: Include "gdbarch.h".
5484 Define enum with NetBSD signal numbers.
5485 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5486 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5487 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5488 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5489 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5490 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5491 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5492 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5493 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5494 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5495 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5496 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5497
9e7c9a03
HD
54982020-04-03 Hannes Domani <ssbssa@yahoo.de>
5499
5500 PR gdb/25325
5501 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5502
d9e49b61
TT
55032020-04-03 Tom Tromey <tromey@adacore.com>
5504
5505 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5506 Read constant block.
5507
e0fc5c3f
SM
55082020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5509
5510 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5511 (gdb_bfd_get_full_section_contents): New declaration.
5512 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5513 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5514 gdb_bfd_get_full_section_contents.
5515
e2ff18a0
SM
55162020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5517
5518 * exec.c (build_section_table): Replace internal_error with
5519 gdb_assert.
5520 (section_table_xfer_memory_partial): Likewise.
5521 * mdebugread.c (parse_partial_symbols): Likewise.
5522 * psymtab.c (lookup_partial_symbol): Likewise.
5523 * utils.c (wrap_here): Likewise.
5524
0830d301
TT
55252020-04-02 Tom Tromey <tromey@adacore.com>
5526
5527 * f-lang.c (build_fortran_types): Use arch_type to initialize
5528 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5529
e7da7f8f
TT
55302020-04-02 Tom Tromey <tromey@adacore.com>
5531
5532 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5533 of attributes.
5534
c90d28ac
AB
55352020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5536 Bernd Edlinger <bernd.edlinger@hotmail.de>
5537 Tom Tromey <tromey@adacore.com>
5538
5539 * buildsym.c (buildsym_compunit::record_line): Remove
5540 deduplication code.
5541
1aa98955
TV
55422020-04-02 Tom de Vries <tdevries@suse.de>
5543
5544 PR ada/24671
5545 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5546
d3214198
TV
55472020-04-02 Tom de Vries <tdevries@suse.de>
5548
5549 * dwarf2/read.c (dwarf2_gdb_index_functions,
5550 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5551 NULL.
5552 * psymtab.c (psym_lookup_global_symbol_language): New function.
5553 (psym_functions): Init psym_lookup_global_symbol_language with
5554 psym_lookup_global_symbol_language.
5555 * symfile-debug.c (debug_sym_quick_functions): Init
5556 lookup_global_symbol_language with NULL.
5557 * symfile.c (set_initial_language): Remove fixme comment.
5558 * symfile.h (struct quick_symbol_functions): Add
5559 lookup_global_symbol_language.
5560 * symtab.c (find_quick_global_symbol_language): New function.
5561 (find_main_name): Use find_quick_global_symbol_language.
5562
2836752f
SM
55632020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5564
5565 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5566
64dc2d4b
BE
55672020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5568
5569 * buildsym.c (record_line): Fix undefined behavior and preserve
5570 lines at eof.
5571
bbe3dc41
BE
55722020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5573
5574 * buildsym.c (record_line): Fix the resizing condition.
5575
6b4a335b
TT
55762020-04-01 Tom Tromey <tom@tromey.com>
5577
5578 * value.h (value_literal_complex): Add comment.
5579 * valops.c (value_literal_complex): Refer to value.h.
5580
3638a098
TT
55812020-04-01 Tom Tromey <tom@tromey.com>
5582
5583 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5584 (scalar_type): New rule, from typebase.
5585 (typebase): Use scalar_type. Recognize complex types.
5586 (field_name): Handle FLOAT_KEYWORD.
5587 (ident_tokens): Add _Complex and __complex__.
5588
c34e8714
TT
55892020-04-01 Tom Tromey <tom@tromey.com>
5590
5591 PR exp/25299:
5592 * valarith.c (promotion_type, complex_binop): New functions.
5593 (scalar_binop): Handle complex numbers. Use promotion_type.
5594 (value_pos, value_neg, value_complement): Handle complex numbers.
5595
fa649bb7
TT
55962020-04-01 Tom Tromey <tom@tromey.com>
5597
5598 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5599 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5600 (parse_number): Handle complex numbers.
5601
981c08ce
TT
56022020-04-01 Tom Tromey <tom@tromey.com>
5603
5604 * c-valprint.c (c_decorations): Change complex suffix to "i".
5605
4c99290d
TT
56062020-04-01 Tom Tromey <tom@tromey.com>
5607
5608 * valprint.c (generic_value_print_complex): Use accessors.
5609 * value.h (value_real_part, value_imaginary_part): Declare.
5610 * valops.c (value_real_part, value_imaginary_part): New
5611 functions.
5612 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5613
5b930b45
TT
56142020-04-01 Tom Tromey <tom@tromey.com>
5615
5616 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5617 (read_range_type): Update.
5618 * mdebugread.c (basic_type): Update.
5619 * go-lang.c (build_go_types): Use init_complex_type.
5620 * gdbtypes.h (struct main_type) <complex_type>: New member.
5621 (init_complex_type): Update.
5622 (arch_complex_type): Don't declare.
5623 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5624 Make name if none given. Use alloc_type_copy. Look for cached
5625 complex type.
5626 (arch_complex_type): Remove.
5627 (gdbtypes_post_init): Use init_complex_type.
5628 * f-lang.c (build_fortran_types): Use init_complex_type.
5629 * dwarf2/read.c (read_base_type): Update.
5630 * d-lang.c (build_d_types): Use init_complex_type.
5631 * ctfread.c (read_base_type): Update.
5632
53cccef1
TBA
56332020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5634
5635 * infrun.c (stop_all_threads): Update assertion, plus when
5636 stopping threads, take into account that we might be trying
5637 to stop an all-stop target.
5638 (stop_waiting): Call 'stop_all_threads' if there exists a
5639 non-stop target.
5640
a0714d30
TBA
56412020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5642
5643 * target.h (exists_non_stop_target): New function declaration.
5644 * target.c (exists_non_stop_target): New function.
5645
60e22c1e
HD
56462020-04-01 Hannes Domani <ssbssa@yahoo.de>
5647
5648 PR gdb/24789
5649 * eval.c (is_integral_or_integral_reference): New function.
5650 (evaluate_subexp_standard): Allow integer references in
5651 pointer arithmetic.
5652
e139a727
TBA
56532020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5654
5655 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5656 check for no ptid in the stop reply when the target is non-stop.
5657
e0802d59
TT
56582020-04-01 Tom Tromey <tromey@adacore.com>
5659
5660 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5661 "name" parameter to rvalue reference. Initialize m_name_holder.
5662 <lookup_name_info>: New overloads.
5663 <name>: Return gdb::string_view.
5664 <c_str>: New method.
5665 <make_ignore_params>: Update.
5666 <search_name_hash>: Update.
5667 <language_lookup_name>: Return const char *.
5668 <m_name>: Change type.
5669 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5670 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5671 (lookup_name_info::match_any): Update.
5672 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5673 Update.
5674 * minsyms.c (linkage_name_str): Update.
5675 * language.c (default_symbol_name_matcher): Update.
5676 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5677 Update.
5678 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5679 (ada_lookup_name_info::ada_lookup_name_info): Update.
5680 (literal_symbol_name_matcher): Update.
5681
8c072cb6
TT
56822020-04-01 Tom Tromey <tromey@adacore.com>
5683
5684 * psymtab.c (psymtab_search_name): Remove function.
5685 (psym_lookup_symbol): Create search name and lookup name here.
5686 (lookup_partial_symbol): Remove "name" parameter; add
5687 lookup_name.
5688 (psym_expand_symtabs_for_function): Update.
5689
6f29a534
TT
56902020-03-31 Joel Jones <joelkevinjones@gmail.com>
5691
5692 PR tui/25597:
5693 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5694
af62665e
TT
56952020-03-31 Tom Tromey <tromey@adacore.com>
5696
5697 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5698 memcpy.
5699
d1a89da5
NC
57002020-03-30 Nelson Chu <nelson.chu@sifive.com>
5701
5702 * features/riscv/32bit-csr.xml: Regenerated.
5703 * features/riscv/64bit-csr.xml: Regenerated.
5704
d8af9068
TT
57052020-03-30 Tom Tromey <tromey@adacore.com>
5706
5707 * ada-valprint.c (print_variant_part): Update.
5708 * ada-lang.h (ada_which_variant_applies): Update.
5709 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5710 outer_valaddr parameters; replace with "outer" value parameter.
5711 (to_fixed_variant_branch_type): Update.
5712
227c0bf4
PFC
57132020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5714
5715 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5716 <list>. Remove inclusion of observable.h.
5717 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5718 (struct arch_lwp_info): New struct.
5719 (class ppc_linux_dreg_interface): New class.
5720 (struct ppc_linux_process_info): New struct.
5721 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5722 <low_new_clone, low_forget_process, low_prepare_to_resume>
5723 <copy_thread_dreg_state, mark_thread_stale>
5724 <mark_debug_registers_changed, register_hw_breakpoint>
5725 <clear_hw_breakpoint, register_wp, clear_wp>
5726 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5727 <num_memory_accesses, get_trigger_type>
5728 <create_watchpoint_request, hwdebug_point_cmp>
5729 <init_arch_lwp_info, get_arch_lwp_info>
5730 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5731 methods.
5732 <struct ptid_hash>: New inner struct.
5733 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5734 members.
5735 (saved_dabr_value, hwdebug_info, max_slots_number)
5736 (struct hw_break_tuple, struct thread_points, ppc_threads)
5737 (have_ptrace_hwdebug_interface)
5738 (hwdebug_find_thread_points_by_tid)
5739 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5740 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5741 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5742 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5743 use m_dreg_interface.
5744 (hwdebug_point_cmp): Change to...
5745 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5746 reference arguments instead of pointers.
5747 (ppc_linux_nat_target::ranged_break_num_registers): Use
5748 m_dreg_interface.
5749 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5750 m_dreg_interface. Call register_hw_breakpoint.
5751 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5752 m_dreg_interface. Call clear_hw_breakpoint.
5753 (get_trigger_type): Change to...
5754 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5755 comment.
5756 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5757 use m_dreg_interface. Call register_hw_breakpoint.
5758 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5759 use m_dreg_interface. Call clear_hw_breakpoint.
5760 (can_use_watchpoint_cond_accel): Change to...
5761 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5762 method. Update comment, use m_dreg_interface and
5763 m_process_info.
5764 (calculate_dvc): Change to...
5765 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5766 m_dreg_interface.
5767 (num_memory_accesses): Change to...
5768 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5769 (check_condition): Change to...
5770 (ppc_linux_nat_target::check_condition): ...this method.
5771 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5772 comment, use m_dreg_interface.
5773 (create_watchpoint_request): Change to...
5774 (ppc_linux_nat_target::create_watchpoint_request): ...this
5775 method. Use m_dreg_interface.
5776 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5777 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5778 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5779 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5780 (ppc_linux_nat_target::low_forget_process)
5781 (ppc_linux_nat_target::low_new_fork)
5782 (ppc_linux_nat_target::low_new_clone)
5783 (ppc_linux_nat_target::low_delete_thread)
5784 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5785 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5786 only call mark_thread_stale.
5787 (ppc_linux_thread_exit): Remove.
5788 (ppc_linux_nat_target::stopped_data_address): Change to...
5789 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5790 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5791 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5792 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5793 comment. Call low_stopped_data_address.
5794 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5795 m_dreg_interface.
5796 (ppc_linux_nat_target::masked_watch_num_registers): Use
5797 m_dreg_interface.
5798 (ppc_linux_nat_target::copy_thread_dreg_state)
5799 (ppc_linux_nat_target::mark_thread_stale)
5800 (ppc_linux_nat_target::mark_debug_registers_changed)
5801 (ppc_linux_nat_target::register_hw_breakpoint)
5802 (ppc_linux_nat_target::clear_hw_breakpoint)
5803 (ppc_linux_nat_target::register_wp)
5804 (ppc_linux_nat_target::clear_wp)
5805 (ppc_linux_nat_target::init_arch_lwp_info)
5806 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5807 (_initialize_ppc_linux_nat): Remove observer callback.
5808
4db10d8f
PFC
58092020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5810
5811 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5812 (ppc_linux_nat_target::auxv_parse)
5813 (ppc_linux_nat_target::read_description)
5814 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5815 Move up.
5816
1310c1b0
PFC
58172020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5818
5819 * linux-nat.h (low_new_clone): New method.
5820 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5821
69b037c3
SM
58222020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5823
5824 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5825 (dbx_expand_psymtab): ... this.
5826 (start_psymtab): Update.
5827 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5828 (mdebug_expand_psymtab): ... this.
5829 (parse_partial_symbols): Update.
5830 (new_psymtab): Update.
5831 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5832 (xcoff_expand_psymtab): ... this.
5833 (xcoff_start_psymtab): Update.
5834
48993951
SM
58352020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5836
5837 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5838 <expand_dependencies>: ... this.
5839 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5840 (partial_symtab::expand_dependencies): ... this.
5841 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5842 Update.
5843 (dwarf2_psymtab::expand_psymtab): Update.
5844 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5845 * mdebugread.c (psymtab_to_symtab_1): Update.
5846 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5847
3ad83046
SM
58482020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5849
5850 * psympriv.h (discard_psymtab): Remove.
5851 * dbxread.c (dbx_end_psymtab): Update.
5852 * xcoffread.c (xcoff_end_psymtab): Update.
5853
4d1b9ab6
TT
58542020-03-28 Tom Tromey <tom@tromey.com>
5855
5856 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5857 comment.
5858
f1749218
TT
58592020-03-28 Tom Tromey <tom@tromey.com>
5860
5861 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5862
ebea7626
HD
58632020-03-27 Hannes Domani <ssbssa@yahoo.de>
5864
5865 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5866
a879b4d5
JB
58672020-03-26 John Baldwin <jhb@FreeBSD.org>
5868
5869 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5870
0826b30a
TT
58712020-03-26 Tom Tromey <tom@tromey.com>
5872
5873 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5874 (mark_common_block_symbol_computed, read_tag_string_type)
5875 (attr_to_dynamic_prop, read_subrange_type): Update.
5876 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5877 to be methods on struct attribute.
5878 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5879 (read_call_site_scope, partial_die_info::read)
5880 (partial_die_info::read, lookup_die_type, follow_die_ref):
5881 Update.
5882 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5883 from dwarf2_get_ref_die_offset.
5884 (attribute::constant_value): New method, from
5885 dwarf2_get_attr_constant_value.
5886 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5887 Declare method.
5888 <constant_value>: New method.
5889
2b2558bf
TT
58902020-03-26 Tom Tromey <tom@tromey.com>
5891
5892 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5893 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5894 (dwarf_type_encoding_name): Move to stringify.c.
5895 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5896 * dwarf2/stringify.c: New file.
5897 * dwarf2/stringify.h: New file.
5898
eeb64781
TT
58992020-03-26 Tom Tromey <tom@tromey.com>
5900
5901 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5902 Rewrite.
5903
a39fdb41
TT
59042020-03-26 Tom Tromey <tom@tromey.com>
5905
5906 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5907 methods.
5908 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5909 (lookup_ranges_base): Likewise.
5910 (read_cutu_die_from_dwo, read_full_die_1): Update.
5911
436c571c
TT
59122020-03-26 Tom Tromey <tom@tromey.com>
5913
5914 * dwarf2/read.c (read_import_statement, read_file_scope)
5915 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5916 (read_lexical_block_scope, read_call_site_scope)
5917 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5918 (handle_struct_member_die, process_structure_scope)
5919 (update_enumeration_type_from_children)
5920 (process_enumeration_scope, read_array_type, read_common_block)
5921 (read_namespace, read_module, read_subroutine_type): Update.
5922 (sibling_die): Remove.
5923
052c8bb8
TT
59242020-03-26 Tom Tromey <tom@tromey.com>
5925
5926 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5927 (build_type_psymtabs_reader, read_structure_type)
5928 (read_enumeration_type, read_full_die_1): Update.
5929 (dwarf2_attr_no_follow): Move to die.h.
5930 * dwarf2/die.h (struct die_info) <attr>: New method.
5931
2b24b6e4
TT
59322020-03-26 Tom Tromey <tom@tromey.com>
5933
5934 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5935 <base_address>: Now an optional.
5936 (dwarf2_find_base_address, dwarf2_rnglists_process)
5937 (dwarf2_ranges_process, fill_in_loclist_baton)
5938 (dwarf2_symbol_mark_computed): Update.
5939
c2d50fd0
TT
59402020-03-26 Tom Tromey <tom@tromey.com>
5941
5942 * dwarf2/read.c (struct die_info): Move to die.h.
5943 * dwarf2/die.h: New file.
5944
0df7ad3a
TT
59452020-03-26 Tom Tromey <tom@tromey.com>
5946
5947 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5948 * dwarf2/read.c
5949 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5950 Move to line-header.c.
5951 (read_checked_initial_length_and_offset, read_formatted_entries):
5952 Likewise.
5953 (dwarf_decode_line_header): Split into two.
5954 * dwarf2/line-header.c
5955 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5956 Move from read.c.
5957 (read_checked_initial_length_and_offset, read_formatted_entries):
5958 Likewise.
5959 (dwarf_decode_line_header): New function, split from read.c.
5960
86c0bb4c
TT
59612020-03-26 Tom Tromey <tom@tromey.com>
5962
5963 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5964 Declare method.
5965 * dwarf2/read.c (read_attribute_value): Update.
5966 (dwarf2_per_objfile::read_line_string): Rename from
5967 read_indirect_line_string.
5968 (read_formatted_entries): Update.
5969
2ef46c2f
TT
59702020-03-26 Tom Tromey <tom@tromey.com>
5971
5972 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5973 variable.
5974
4f9c1eda
TT
59752020-03-26 Tom Tromey <tom@tromey.com>
5976
5977 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5978 const.
5979 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5980 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5981 parameter const.
5982
5a0e026f
TT
59832020-03-26 Tom Tromey <tom@tromey.com>
5984
5985 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5986 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5987 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5988 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5989
8844c11b
TT
59902020-03-26 Tom Tromey <tom@tromey.com>
5991
5992 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5993 file_names_size, file_full_name, file_file_name>: Use const.
5994 <file_name_at, file_names>: Add const overload.
5995 * dwarf2/line-header.c (line_header::file_file_name)
5996 (line_header::file_full_name): Update.
5997
c90ec28a
TT
59982020-03-26 Tom Tromey <tom@tromey.com>
5999
6000 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6001 (macro_start_file, consume_improper_spaces)
6002 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6003 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6004 (dwarf_decode_macros): Move to macro.c.
6005 * dwarf2/macro.c: New file.
6006 * dwarf2/macro.h: New file.
6007 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6008
4f44ae6c
TT
60092020-03-26 Tom Tromey <tom@tromey.com>
6010
6011 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6012 method.
6013 * dwarf2/section.c: New method. From
6014 read_indirect_string_at_offset_from.
6015 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6016 (read_indirect_string_at_offset_from): Move to section.c.
6017 (read_indirect_string_at_offset): Rewrite.
6018 (read_indirect_line_string_at_offset): Remove.
6019 (read_indirect_string, read_indirect_line_string)
6020 (dwarf_decode_macro_bytes): Update.
6021
a0194fa8
TT
60222020-03-26 Tom Tromey <tom@tromey.com>
6023
6024 * dwarf2/section.h (struct dwarf2_section_info)
6025 <overload_complaint>: Declare.
6026 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6027 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6028 Rename from dwarf2_section_buffer_overflow_complaint.
6029 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6030 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6031
3d27bbdb
TT
60322020-03-26 Tom Tromey <tom@tromey.com>
6033
6034 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6035 Declare.
6036 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6037 Move from read.c.
6038 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6039 to section.c.
6040
9eac9650
TT
60412020-03-26 Tom Tromey <tom@tromey.com>
6042
6043 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6044
bf80d710
TT
60452020-03-26 Tom Tromey <tom@tromey.com>
6046
6047 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6048 "builder".
6049 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6050 parameter.
6051 (dwarf_decode_macros): Update.
6052
0314b390
TT
60532020-03-26 Tom Tromey <tom@tromey.com>
6054
6055 * dwarf2/read.c (read_attribute_value): Update.
6056 (read_indirect_string_from_dwz): Move to dwz.c; change into
6057 method.
6058 (dwarf_decode_macro_bytes): Update.
6059 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6060 * dwarf2/dwz.c: New file.
6061 * Makefile.in (COMMON_SFILES): Add dwz.c.
6062
9fda78b6
TT
60632020-03-26 Tom Tromey <tom@tromey.com>
6064
6065 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6066 * dwarf2/read.c: Add include.
6067 * dwarf2/index-write.c: Add include.
6068 * dwarf2/index-cache.c: Add include.
6069 * dwarf2/dwz.h: New file.
6070
33aa3c10
TT
60712020-03-25 Tom Tromey <tom@tromey.com>
6072
6073 * compile/compile-object-load.c (get_out_value_type): Mention
6074 correct symbol name in error message.
6075
d503b685
HD
60762020-03-25 Hannes Domani <ssbssa@yahoo.de>
6077
6078 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6079
7b1eff95
TV
60802020-03-25 Tom de Vries <tdevries@suse.de>
6081
6082 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6083 * symmisc.c (dump_symtab_1): Print user and includes fields.
6084 (maintenance_info_symtabs): Same.
6085
dd895392
AB
60862020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6087
6088 PR gdb/25534
6089 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6090 (riscv_regcache_cooked_write): New function.
6091 (riscv_push_dummy_call): Use new function.
6092 (riscv_return_value): Likewise.
6093
5ab2fbf1
SM
60942020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6095
6096 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6097 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6098 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6099 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6100 * infrun.c (follow_fork): Likewise.
6101 (follow_fork_inferior): Likewise.
6102 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6103 * linux-nat.h (class linux_nat_target): Likewise.
6104 * remote.c (class remote_target) <follow_fork>: Likewise.
6105 (remote_target::follow_fork): Likewise.
6106 * target-delegates.c: Re-generate.
6107 * target.c (default_follow_fork): Likewise.
6108 (target_follow_fork): Likewise.
6109 * target.h (struct target_ops) <follow_fork>: Likewise.
6110 (target_follow_fork): Likewise.
6111
a64fafb5
TV
61122020-03-24 Tom de Vries <tdevries@suse.de>
6113
6114 * psymtab.c (maintenance_info_psymtabs): Print user field.
6115
fe26d3a3
TT
61162020-03-20 Tom Tromey <tromey@adacore.com>
6117
6118 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6119 const.
6120 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6121 const.
6122
c884cc46
SM
61232020-03-20 Simon Marchi <simon.marchi@efficios.com>
6124
6125 * ptrace.m4: Don't check for ptrace declaration.
6126 * config.in: Re-generate.
6127 * configure: Re-generate.
6128 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6129 not defined.
6130
1ff700c2
KR
61312020-03-20 Kamil Rytarowski <n54@gmx.com>
6132
6133 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6134 `PTRACE_TYPE_RET'.
6135 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6136 * sparc-nat.c (gdb_ptrace): Likewise.
6137 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6138
f7d4f0b1
TT
61392020-03-20 Tom Tromey <tromey@adacore.com>
6140
6141 * c-exp.y (lex_one_token): Fix assert.
6142
f67210ff
TT
61432020-03-20 Tom Tromey <tromey@adacore.com>
6144
6145 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6146 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6147 strncpy call.
6148
1773be9e
TT
61492020-03-20 Tom Tromey <tromey@adacore.com>
6150
6151 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6152
70304be9
TT
61532020-03-20 Tom Tromey <tromey@adacore.com>
6154
6155 * ada-valprint.c (print_variant_part): Remove parameters; switch
6156 to value-based API.
6157 (print_field_values): Likewise.
6158 (ada_val_print_struct_union): Likewise.
6159 (ada_value_print_1): Update.
6160
9faa006d
KR
61612020-03-20 Kamil Rytarowski <n54@gmx.com>
6162
6163 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6164 nbsd_nat_target instead of inf_ptrace_target.
6165 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6166 nbsd_nat_target.
6167
4a90f062
KR
61682020-03-20 Kamil Rytarowski <n54@gmx.com>
6169
6170 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6171 it to the ptrace call.
6172 * (store_registers): Likewise.
6173
61742020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6175
6176 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6177 it to the ptrace call.
6178 * (store_registers): Likewise.
6179
2d07da27
LM
61802020-03-19 Luis Machado <luis.machado@linaro.org>
6181
6182 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6183 valid, fetch vg value from ptrace.
6184
f09db380
KR
61852020-03-19 Kamil Rytarowski <n54@gmx.com>
6186 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6187 * inf-ptrace.c: Likewise.
6188 * (gdb_ptrace): Add.
6189 * (inf_ptrace_target::resume): Update.
6190 * (inf_ptrace_target::xfer_partial): Likewise.
6191 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6192 * (inf_ptrace_peek_poke): Update.
6193
fcc7376e
KR
61942020-03-19 Kamil Rytarowski <n54@gmx.com>
6195
6196 * x86-bsd-nat.c (gdb_ptrace): New.
6197 * (x86bsd_dr_set): Add new argument `ptid'.
6198 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6199 x86bsd_dr_set_addr): Update.
6200
cada5fc9
AB
62012020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6202
6203 * remote.c (remote_target::process_stop_reply): Handle events for
6204 all threads differently.
6205
19a2740f
AB
62062020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6207
6208 * completer.c (completion_tracker::remove_completion): Define new
6209 function.
6210 * completer.h (completion_tracker::remove_completion): Declare new
6211 function.
6212 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6213 when adding a C++ function symbol.
6214
724fd9ba
AB
62152020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6216
6217 * completer.c (completion_tracker::completion_hash_entry): Define
6218 new class.
6219 (advance_to_filename_complete_word_point): Call
6220 recompute_lowest_common_denominator.
6221 (completion_tracker::completion_tracker): Call discard_completions
6222 to setup the hash table.
6223 (completion_tracker::discard_completions): Allow for being called
6224 from the constructor, pass new equal function, and element deleter
6225 when constructing the hash table. Initialise new class member
6226 variables.
6227 (completion_tracker::maybe_add_completion): Remove use of
6228 m_entries_vec, and store more information into m_entries_hash.
6229 (completion_tracker::recompute_lcd_visitor): New function, most
6230 content taken from...
6231 (completion_tracker::recompute_lowest_common_denominator):
6232 ...here, this now just visits each item in the hash calling the
6233 above visitor.
6234 (completion_tracker::build_completion_result): Remove use of
6235 m_entries_vec, call recompute_lowest_common_denominator.
6236 * completer.h (completion_tracker::have_completions): Remove use
6237 of m_entries_vec.
6238 (completion_tracker::completion_hash_entry): Declare new class.
6239 (completion_tracker::recompute_lowest_common_denominator): Change
6240 function signature.
6241 (completion_tracker::recompute_lcd_visitor): Declare new function.
6242 (completion_tracker::m_entries_vec): Delete.
6243 (completion_tracker::m_entries_hash): Initialize to NULL.
6244 (completion_tracker::m_lowest_common_denominator_valid): New
6245 member variable.
6246 (completion_tracker::m_lowest_common_denominator_max_length): New
6247 member variable.
6248
5a82b8a1
KR
62492020-03-17 Kamil Rytarowski <n54@gmx.com>
6250
6251 * regformats/regdef.h: Put reg in gdb namespace.
6252
fb516a69
KR
62532020-03-17 Kamil Rytarowski <n54@gmx.com>
6254
6255 * i386-bsd-nat.c (gdb_ptrace): New.
6256 * (i386bsd_fetch_inferior_registers,
6257 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6258 * (i386bsd_fetch_inferior_registers,
6259 i386bsd_store_inferior_registers) Use gdb_ptrace.
6260
1c0aa1fb
KR
62612020-03-17 Kamil Rytarowski <n54@gmx.com>
6262
6263 * amd64-bsd-nat.c (gdb_ptrace): New.
6264 * (amd64bsd_fetch_inferior_registers,
6265 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6266 * (amd64bsd_fetch_inferior_registers,
6267 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6268
5ccd2fb7
KR
62692020-03-17 Kamil Rytarowski <n54@gmx.com>
6270
6271 * user-regs.c (user_reg::read): Rename to...
6272 (user_reg::xread): ...this.
6273 * (append_user_reg): Rename argument `read' to `xread'.
6274 * (user_reg_add_builtin): Likewise.
6275 * (user_reg_add): Likewise.
6276 * (value_of_user_reg): Likewise.
6277
2108a63a
KR
62782020-03-17 Kamil Rytarowski <n54@gmx.com>
6279
6280 * sparc-nat.c (gdb_ptrace): New.
6281 * sparc-nat.c (sparc_fetch_inferior_registers)
6282 (sparc_store_inferior_registers) Remove obsolete comment.
6283 * sparc-nat.c (sparc_fetch_inferior_registers)
6284 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6285 * sparc-nat.c (sparc_fetch_inferior_registers)
6286 (sparc_store_inferior_registers) Use gdb_ptrace.
6287
a225c9a8
KR
62882020-03-17 Kamil Rytarowski <n54@gmx.com>
6289
6290 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6291 it to the ptrace call.
6292 * sh-nbsd-nat.c (store_registers): Likewise.
6293
98097623
KR
62942020-03-17 Kamil Rytarowski <n54@gmx.com>
6295
6296 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6297 nbsd_nat_target instead of inf_ptrace_target.
6298 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6299 nbsd_nat_target.
6300
9e38d619
KR
63012020-03-17 Kamil Rytarowski <n54@gmx.com>
6302
6303 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6304
a2ecbe9f
KR
63052020-03-17 Kamil Rytarowski <n54@gmx.com>
6306
6307 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6308 <sys/sysctl.h>.
6309 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6310
58990295
TV
63112020-03-17 Tom de Vries <tdevries@suse.de>
6312
6313 PR gdb/23710
6314 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6315 fields.
6316 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6317 fields.
6318 (process_imported_unit_die): Skip import of c++ CUs.
6319
771dd3a8
TT
63202020-03-16 Tom Tromey <tom@tromey.com>
6321
6322 * p-valprint.c (pascal_object_print_value): Initialize
6323 base_value.
6324
817a7585
AK
63252020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6326 Shahab Vahedi <shahab@synopsys.com>
6327
6328 * Makefile.in: Add arch/arc.o
6329 * configure.tgt: Likewise.
6330 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6331 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6332 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6333 * arc-tdep.h (arc_read_description): Add proto type.
6334 * arch/arc.c: New file.
6335 * arch/arc.h: Likewise.
6336 * features/Makefile: Replace old target descriptions with new.
6337 * features/arc-arcompact.c: Remove.
6338 * features/arc-arcompact.xml: Likewise.
6339 * features/arc-v2.c: Likewise
6340 * features/arc-v2.xml: Likewise
6341 * features/arc/aux-arcompact.xml: New file.
6342 * features/arc/aux-v2.xml: Likewise.
6343 * features/arc/core-arcompact.xml: Likewise.
6344 * features/arc/core-v2.xml: Likewise.
6345 * features/arc/aux-arcompact.c: Generate.
6346 * features/arc/aux-v2.c: Likewise.
6347 * features/arc/core-arcompact.c: Likewise.
6348 * features/arc/core-v2.c: Likewise.
6349 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6350
67430cd0
TT
63512020-03-16 Tom Tromey <tromey@adacore.com>
6352
6353 PR gdb/25663:
6354 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6355 putting value into bcache.
6356
30efb6c7
SM
63572020-03-16 Simon Marchi <simon.marchi@efficios.com>
6358
6359 PR gdb/21500
6360 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6361 to...
6362 (amd64_windows_init_abi_common): ... this. Don't set size of
6363 long type.
6364 (amd64_windows_init_abi): New function.
6365 (amd64_cygwin_init_abi): New function.
6366 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6367 the Cygwin OS ABI.
6368 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6369 comment.
6370
8db52437
SM
63712020-03-16 Simon Marchi <simon.marchi@efficios.com>
6372
6373 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6374 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6375 (pe_import_directory_entry): New struct type.
6376 (is_linked_with_cygwin_dll): New function.
6377 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6378 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6379 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6380
5982a56a
SM
63812020-03-16 Simon Marchi <simon.marchi@efficios.com>
6382
6383 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6384 i386_cygwin_core_osabi_sniffer.
6385
7a1998df
SM
63862020-03-16 Simon Marchi <simon.marchi@efficios.com>
6387
6388 * i386-cygwin-tdep.c: Rename to...
6389 * i386-windows-tdep.c: ... this.
6390 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6391 i386-windows-tdep.c.
6392 * configure.tgt: Likewise.
6393
053205cc
SM
63942020-03-16 Simon Marchi <simon.marchi@efficios.com>
6395
6396 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6397 * osabi.c (gdb_osabi_names): Add "Windows".
6398 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6399 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6400 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6401 i386_cygwin_osabi_sniffer.
6402 (_initialize_i386_cygwin_tdep): Register OS ABI
6403 GDB_OSABI_WINDOWS for i386.
6404 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6405 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6406 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6407 for x86-64.
6408 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6409 when the target matches '*-*-mingw*'.
6410
fe4b2ee6
SM
64112020-03-16 Simon Marchi <simon.marchi@efficios.com>
6412
6413 * defs.h (enum gdb_osabi): Move to...
6414 * osabi.h (enum gdb_osabi): ... here.
6415 * gdbarch.sh: Include osabi.h in gdbarch.h.
6416 * gdbarch.h: Re-generate.
6417
cb9b645d
SM
64182020-03-16 Simon Marchi <simon.marchi@efficios.com>
6419
6420 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6421 function.
6422 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6423
3293bbaf
TT
64242020-03-14 Tom Tromey <tom@tromey.com>
6425
6426 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6427 for C++.
6428 (c_type_print_modifier): Likewise. Add "language" parameter.
6429 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6430 (c_type_print_base_1): Update.
6431 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6432 constants.
6433 * type-stack.c (type_stack::insert): Handle tp_atomic and
6434 tp_restrict.
6435 (type_stack::follow_type_instance_flags): Likewise.
6436 (type_stack::follow_types): Likewise. Merge type-following code.
6437 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6438 (space_identifier, cv_with_space_id)
6439 (const_or_volatile_or_space_identifier_noopt)
6440 (const_or_volatile_or_space_identifier): Remove.
6441 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6442 rules.
6443 (ptr_operator, typebase): Update.
6444 (enum token_flag) <FLAG_C>: New constant.
6445 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6446 "_Atomic".
6447 (lex_one_token): Handle FLAG_C.
6448
154151a6
KR
64492020-03-14 Kamil Rytarowski <n54@gmx.com>
6450
6451 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6452 it to the ptrace call.
6453 * m68k-bsd-nat.c (store_registers): Likewise.
6454
bc107784
KR
64552020-03-14 Kamil Rytarowski <n54@gmx.com>
6456
6457 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6458 gdb_byte *.
6459 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6460 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6461 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6462
01a80117
KR
64632020-03-14 Kamil Rytarowski <n54@gmx.com>
6464
6465 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6466 nbsd_nat_target instead of inf_ptrace_target.
6467 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6468 nbsd_nat_target.
6469
f90280ca
KR
64702020-03-14 Kamil Rytarowski <n54@gmx.com>
6471
6472 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6473 register_t.
6474
6def66f1
KR
64752020-03-14 Kamil Rytarowski <n54@gmx.com>
6476
6477 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6478 it to the ptrace call.
6479 * alpha-bsd-nat.c (store_registers): Likewise.
6480
66eaca97
KR
64812020-03-14 Kamil Rytarowski <n54@gmx.com>
6482
6483 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6484 includes.
6485 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6486 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6487 fill_fpregset): Likewise.
6488
4fed520b
KR
64892020-03-14 Kamil Rytarowski <n54@gmx.com>
6490
6491 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6492 nbsd_nat_target instead of inf_ptrace_target.
6493 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6494 nbsd_nat_target.
6495
2190cf06
KR
64962020-03-14 Kamil Rytarowski <n54@gmx.com>
6497
6498 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6499 register_t.
6500
75c56d3d
KR
65012020-03-14 Kamil Rytarowski <n54@gmx.com>
6502
6503 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6504 it to the ptrace call.
6505 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6506 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6507 * arm-nbsd-nat.c (store_register): Likewise.
6508 * arm-nbsd-nat.c (store_regs): Likewise.
6509 * arm-nbsd-nat.c (store_fp_register): Likewise.
6510 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6511
6018d381
KR
65122020-03-14 Kamil Rytarowski <n54@gmx.com>
6513
6514 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6515 nbsd_nat_target instead of inf_ptrace_target.
6516 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6517 nbsd_nat_target.
6518
013f99f0
KR
65192020-03-14 Kamil Rytarowski <n54@gmx.com>
6520
6521 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6522 it to the ptrace call.
6523 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6524
12753073
KR
65252020-03-14 Kamil Rytarowski <n54@gmx.com>
6526
6227b330
KR
6527 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6528 it to the ptrace call.
6529 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6530
65312020-03-14 Kamil Rytarowski <n54@gmx.com>
6532
6533 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6534 gdb_byte *.
12753073
KR
6535 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6536
d5be5fa4
KR
65372020-03-14 Kamil Rytarowski <n54@gmx.com>
6538
6539 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6540 instead of inf_ptrace_target.
6541 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6542 nbsd_nat_target.
6543
8110f842
KR
65442020-03-14 Kamil Rytarowski <n54@gmx.com>
6545
6546 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6547 register_t.
6548
52feded7
KR
65492020-03-14 Kamil Rytarowski <n54@gmx.com>
6550
6551 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6552 register_t.
6553
25567eee
KR
65542020-03-14 Kamil Rytarowski <n54@gmx.com>
6555
6556 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6557 register_t.
6558
426a9c18
TT
65592020-03-13 Tom Tromey <tom@tromey.com>
6560
6561 * value.h (val_print): Don't declare.
6562 * valprint.h (val_print_array_elements)
6563 (val_print_scalar_formatted, generic_val_print): Don't declare.
6564 * valprint.c (generic_val_print_array): Take a struct value.
6565 (generic_val_print_ptr, generic_val_print_memberptr)
6566 (generic_val_print_bool, generic_val_print_int)
6567 (generic_val_print_char, generic_val_print_complex)
6568 (generic_val_print): Remove.
6569 (generic_value_print): Update.
6570 (do_val_print): Remove unused parameters. Don't call
6571 la_val_print.
6572 (val_print): Remove.
6573 (common_val_print): Update. Don't call value_check_printable.
6574 (val_print_scalar_formatted, val_print_array_elements): Remove.
6575 * rust-lang.c (rust_val_print): Remove.
6576 (rust_language_defn): Update.
6577 * p-valprint.c (pascal_val_print): Remove.
6578 (pascal_value_print_inner): Update.
6579 (pascal_object_print_val_fields, pascal_object_print_val):
6580 Remove.
6581 (pascal_object_print_static_field): Update.
6582 * p-lang.h (pascal_val_print): Don't declare.
6583 * p-lang.c (pascal_language_defn): Update.
6584 * opencl-lang.c (opencl_language_defn): Update.
6585 * objc-lang.c (objc_language_defn): Update.
6586 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6587 * m2-lang.h (m2_val_print): Don't declare.
6588 * m2-lang.c (m2_language_defn): Update.
6589 * language.h (struct language_defn) <la_val_print>: Remove.
6590 * language.c (unk_lang_value_print_inner): Rename. Change
6591 argument types.
6592 (unknown_language_defn, auto_language_defn): Update.
6593 * go-valprint.c (go_val_print): Remove.
6594 * go-lang.h (go_val_print): Don't declare.
6595 * go-lang.c (go_language_defn): Update.
6596 * f-valprint.c (f_val_print): Remove.
6597 * f-lang.h (f_value_print): Don't declare.
6598 * f-lang.c (f_language_defn): Update.
6599 * d-valprint.c (d_val_print): Remove.
6600 * d-lang.h (d_value_print): Don't declare.
6601 * d-lang.c (d_language_defn): Update.
6602 * cp-valprint.c (cp_print_value_fields)
6603 (cp_print_value_fields_rtti, cp_print_value): Remove.
6604 (cp_print_static_field): Update.
6605 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6606 (c_val_print_struct, c_val_print_union, c_val_print_int)
6607 (c_val_print_memberptr, c_val_print): Remove.
6608 * c-lang.h (c_val_print_array, cp_print_value_fields)
6609 (cp_print_value_fields_rtti): Don't declare.
6610 * c-lang.c (c_language_defn, cplus_language_defn)
6611 (asm_language_defn, minimal_language_defn): Update.
6612 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6613 (ada_val_print_enum): Take a struct value.
6614 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6615 (ada_val_print): Remove.
6616 (ada_value_print_1): Update.
6617 (printable_val_type): Remove.
6618 * ada-lang.h (ada_val_print): Don't declare.
6619 * ada-lang.c (ada_language_defn): Update.
6620
42331a1e
TT
66212020-03-13 Tom Tromey <tom@tromey.com>
6622
6623 * valprint.c (do_val_print): Update.
6624 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6625 a struct value.
6626 (value_to_value_object_no_release): Declare.
6627 * python/py-value.c (value_to_value_object_no_release): New
6628 function.
6629 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6630 struct value.
6631 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6632 function.
6633 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6634 a struct value.
6635 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6636 Declare.
6637 (gdbscm_apply_val_pretty_printer): Take a struct value.
6638 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6639 value.
6640 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6641 value.
6642 * extension-priv.h (struct extension_language_ops)
6643 <apply_val_pretty_printer>: Take a struct value.
6644 * cp-valprint.c (cp_print_value): Create a struct value.
6645 (cp_print_value): Update.
6646
3a916a97
TT
66472020-03-13 Tom Tromey <tom@tromey.com>
6648
6649 * ada-valprint.c (print_field_values): Call common_val_print.
6650
b59eac37
TT
66512020-03-13 Tom Tromey <tom@tromey.com>
6652
6653 * ada-valprint.c (val_print_packed_array_elements): Remove
6654 bitoffset and val parameters. Call common_val_print.
6655 (ada_val_print_string): Remove offset, address, and original_value
6656 parameters.
6657 (ada_val_print_array): Update.
6658 (ada_value_print_array): New function.
6659 (ada_value_print_1): Call it.
6660
03371129
TT
66612020-03-13 Tom Tromey <tom@tromey.com>
6662
6663 * ada-valprint.c (ada_value_print): Use common_val_print.
6664
2e088f8b
TT
66652020-03-13 Tom Tromey <tom@tromey.com>
6666
6667 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6668
39ef85a8
TT
66692020-03-13 Tom Tromey <tom@tromey.com>
6670
6671 * ada-valprint.c (ada_value_print_num): New function.
6672 (ada_value_print_1): Use it.
6673
b9fa6e07
TT
66742020-03-13 Tom Tromey <tom@tromey.com>
6675
6676 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6677
416595d6
TT
66782020-03-13 Tom Tromey <tom@tromey.com>
6679
6680 * ada-valprint.c (ada_value_print_ptr): New function.
6681 (ada_value_print_1): Use it.
6682
5b5e15ec
TT
66832020-03-13 Tom Tromey <tom@tromey.com>
6684
6685 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6686 call common_val_print.
6687 (ada_val_print_1): Update.
6688 (ada_value_print_1): New function.
6689 (ada_value_print_inner): Rewrite.
6690
fbf54e75
TT
66912020-03-13 Tom Tromey <tom@tromey.com>
6692
6693 * cp-valprint.c (cp_print_value_fields): Update.
6694 (cp_print_value): New function.
6695
64b653ca
TT
66962020-03-13 Tom Tromey <tom@tromey.com>
6697
6698 * m2-valprint.c (m2_value_print_inner): Use
6699 cp_print_value_fields.
6700 * cp-valprint.c (cp_print_value_fields): New function.
6701 * c-valprint.c (c_value_print_struct): New function.
6702 (c_value_print_inner): Use c_value_print_struct.
6703 * c-lang.h (cp_print_value_fields): Declare.
6704
6999f067
TT
67052020-03-13 Tom Tromey <tom@tromey.com>
6706
6707 * c-valprint.c (c_value_print_array): New function.
6708 (c_value_print_inner): Use it.
6709
ce80b8bd
TT
67102020-03-13 Tom Tromey <tom@tromey.com>
6711
6712 * c-valprint.c (c_value_print_memberptr): New function.
6713 (c_value_print_inner): Use it.
6714
2faac269
TT
67152020-03-13 Tom Tromey <tom@tromey.com>
6716
6717 * c-valprint.c (c_value_print_int): New function.
6718 (c_value_print_inner): Use it.
6719
da3e2c29
TT
67202020-03-13 Tom Tromey <tom@tromey.com>
6721
6722 * c-valprint.c (c_value_print_ptr): New function.
6723 (c_value_print_inner): Use it.
6724
50836231
TT
67252020-03-13 Tom Tromey <tom@tromey.com>
6726
6727 * c-valprint.c (c_value_print_inner): Rewrite.
6728
4f412b6e
TT
67292020-03-13 Tom Tromey <tom@tromey.com>
6730
6731 * valprint.c (generic_value_print_complex): New function.
6732 (generic_value_print): Use it.
6733
f5354008
TT
67342020-03-13 Tom Tromey <tom@tromey.com>
6735
6736 * valprint.c (generic_val_print_float): Don't call
6737 val_print_scalar_formatted.
6738 (generic_val_print, generic_value_print): Update.
6739
3eec3b05
TT
67402020-03-13 Tom Tromey <tom@tromey.com>
6741
6742 * valprint.c (generic_value_print_char): New function
6743 (generic_value_print): Use it.
6744
fdddfccb
TT
67452020-03-13 Tom Tromey <tom@tromey.com>
6746
6747 * valprint.c (generic_value_print_int): New function.
6748 (generic_value_print): Use it.
6749
6dde7521
TT
67502020-03-13 Tom Tromey <tom@tromey.com>
6751
6752 * valprint.c (generic_value_print_bool): New function.
6753 (generic_value_print): Use it.
6754
4112d2e6
TT
67552020-03-13 Tom Tromey <tom@tromey.com>
6756
6757 * valprint.c (generic_val_print_func): Simplify.
6758 (generic_val_print, generic_value_print): Update.
6759
65786af6
TT
67602020-03-13 Tom Tromey <tom@tromey.com>
6761
6762 * valprint.c (generic_val_print_flags): Remove.
6763 (generic_val_print, generic_value_print): Update.
6764 (val_print_type_code_flags): Add original_value parameter.
6765
40f3ce18
TT
67662020-03-13 Tom Tromey <tom@tromey.com>
6767
6768 * valprint.c (generic_val_print): Update.
6769 (generic_value_print): Update.
6770 * valprint.c (generic_val_print_enum): Don't call
6771 val_print_scalar_formatted.
6772
2a5b130b
TT
67732020-03-13 Tom Tromey <tom@tromey.com>
6774
6775 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6776 * valprint.c (generic_value_print_ptr): New function.
6777
abc66ce9
TT
67782020-03-13 Tom Tromey <tom@tromey.com>
6779
6780 * valprint.c (generic_value_print): Rewrite.
6781
07a32858
TT
67822020-03-13 Tom Tromey <tom@tromey.com>
6783
6784 * p-valprint.c (pascal_object_print_value_fields)
6785 (pascal_object_print_value): New functions.
6786
64d64d3a
TT
67872020-03-13 Tom Tromey <tom@tromey.com>
6788
6789 * p-valprint.c (pascal_value_print_inner): Rewrite.
6790
6a95a1f5
TT
67912020-03-13 Tom Tromey <tom@tromey.com>
6792
6793 * f-valprint.c (f_value_print_innner): Rewrite.
6794
59fcdac6
TT
67952020-03-13 Tom Tromey <tom@tromey.com>
6796
6797 * m2-valprint.c (m2_print_unbounded_array): New overload.
6798 (m2_print_unbounded_array): Update.
6799 (m2_print_array_contents): Take a struct value.
6800 (m2_value_print_inner): Rewrite.
6801
d133c3e1
TT
68022020-03-13 Tom Tromey <tom@tromey.com>
6803
6804 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6805 (d_value_print_inner): New function.
6806 * d-lang.h (d_value_print_inner): Declare.
6807 * d-lang.c (d_language_defn): Use d_value_print_inner.
6808
23b0f06b
TT
68092020-03-13 Tom Tromey <tom@tromey.com>
6810
6811 * go-valprint.c (go_value_print_inner): New function.
6812 * go-lang.h (go_value_print_inner): Declare.
6813 * go-lang.c (go_language_defn): Use go_value_print_inner.
6814
5f56f7cb
TT
68152020-03-13 Tom Tromey <tom@tromey.com>
6816
6817 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6818 API.
6819 (rust_val_print): Rewrite.
6820 (rust_value_print_inner): New function, from rust_val_print.
6821 (rust_language_defn): Use rust_value_print_inner.
6822
26792ee0
TT
68232020-03-13 Tom Tromey <tom@tromey.com>
6824
6825 * ada-valprint.c (ada_value_print_inner): New function.
6826 * ada-lang.h (ada_value_print_inner): Declare.
6827 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6828
24051bbe
TT
68292020-03-13 Tom Tromey <tom@tromey.com>
6830
6831 * f-valprint.c (f_value_print_innner): New function.
6832 * f-lang.h (f_value_print_innner): Declare.
6833 * f-lang.c (f_language_defn): Use f_value_print_innner.
6834
c0941be6
TT
68352020-03-13 Tom Tromey <tom@tromey.com>
6836
6837 * p-valprint.c (pascal_value_print_inner): New function.
6838 * p-lang.h (pascal_value_print_inner): Declare.
6839 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6840
62c4663d
TT
68412020-03-13 Tom Tromey <tom@tromey.com>
6842
6843 * m2-valprint.c (m2_value_print_inner): New function.
6844 * m2-lang.h (m2_value_print_inner): Declare.
6845 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6846
62182190
TT
68472020-03-13 Tom Tromey <tom@tromey.com>
6848
6849 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6850 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6851 * c-valprint.c (c_value_print_inner): New function.
6852 * c-lang.h (c_value_print_inner): Declare.
6853 * c-lang.c (c_language_defn, cplus_language_defn)
6854 (asm_language_defn, minimal_language_defn): Use
6855 c_value_print_inner.
6856
1e592a8a
TT
68572020-03-13 Tom Tromey <tom@tromey.com>
6858
6859 * p-valprint.c (pascal_object_print_value_fields): Now static.
6860 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6861
7fe471e9
TT
68622020-03-13 Tom Tromey <tom@tromey.com>
6863
6864 * c-valprint.c (c_val_print_array): Simplify.
6865
d121c6ce
TT
68662020-03-13 Tom Tromey <tom@tromey.com>
6867
6868 * valprint.c (value_print_array_elements): New function.
6869 * valprint.h (value_print_array_elements): Declare.
6870
4dba70ee
TT
68712020-03-13 Tom Tromey <tom@tromey.com>
6872
6873 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6874 * mips-tdep.c (mips_print_register): Use
6875 value_print_scalar_formatted.
6876
4f9ae810
TT
68772020-03-13 Tom Tromey <tom@tromey.com>
6878
6879 * valprint.h (value_print_scalar_formatted): Declare.
6880 * valprint.c (value_print_scalar_formatted): New function.
6881
156bfec9
TT
68822020-03-13 Tom Tromey <tom@tromey.com>
6883
6884 * valprint.h (generic_value_print): Declare.
6885 * valprint.c (generic_value_print): New function.
6886
2b4e573d
TT
68872020-03-13 Tom Tromey <tom@tromey.com>
6888
6889 * valprint.c (do_val_print): Call la_value_print_inner, if
6890 available.
6891 * rust-lang.c (rust_language_defn): Update.
6892 * p-lang.c (pascal_language_defn): Update.
6893 * opencl-lang.c (opencl_language_defn): Update.
6894 * objc-lang.c (objc_language_defn): Update.
6895 * m2-lang.c (m2_language_defn): Update.
6896 * language.h (struct language_defn) <la_value_print_inner>: New
6897 member.
6898 * language.c (unknown_language_defn, auto_language_defn): Update.
6899 * go-lang.c (go_language_defn): Update.
6900 * f-lang.c (f_language_defn): Update.
6901 * d-lang.c (d_language_defn): Update.
6902 * c-lang.c (c_language_defn, cplus_language_defn)
6903 (asm_language_defn, minimal_language_defn): Update.
6904 * ada-lang.c (ada_language_defn): Update.
6905
a1f6a07c
TT
69062020-03-13 Tom Tromey <tom@tromey.com>
6907
6908 * c-valprint.c (c_value_print): Use common_val_print.
6909
410cf315
TT
69102020-03-13 Tom Tromey <tom@tromey.com>
6911
6912 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6913
72a45c93
TT
69142020-03-13 Tom Tromey <tom@tromey.com>
6915
6916 * f-valprint.c (f77_print_array_1, f_val_print): Use
6917 common_val_print.
6918
040f66bd
TT
69192020-03-13 Tom Tromey <tom@tromey.com>
6920
6921 * riscv-tdep.c (riscv_print_one_register_info): Use
6922 common_val_print.
6923
a6e05a6c
TT
69242020-03-13 Tom Tromey <tom@tromey.com>
6925
6926 * mi/mi-main.c (output_register): Use common_val_print.
6927
3444c526
TT
69282020-03-13 Tom Tromey <tom@tromey.com>
6929
6930 * infcmd.c (default_print_one_register_info): Use
6931 common_val_print.
6932
c2a44efe
TT
69332020-03-13 Tom Tromey <tom@tromey.com>
6934
6935 * valprint.h (common_val_print_checked): Declare.
6936 * valprint.c (common_val_print_checked): New function.
6937 * stack.c (print_frame_arg): Use common_val_print_checked.
6938
b0c26e99
TT
69392020-03-13 Tom Tromey <tom@tromey.com>
6940
6941 * valprint.c (do_val_print): New function, from val_print.
6942 (val_print): Use do_val_print.
6943 (common_val_print): Use do_val_print.
6944
ce3acbe9
TT
69452020-03-13 Tom Tromey <tom@tromey.com>
6946
6947 * valprint.c (value_print): Use scoped_value_mark.
6948
96c7f873
TV
69492020-03-13 Tom de Vries <tdevries@suse.de>
6950
6951 PR symtab/25646
6952 * psymtab.c (partial_symtab::partial_symtab): Don't set
6953 globals_offset and statics_offset. Push element onto
6954 current_global_psymbols and current_static_psymbols stacks.
6955 (concat): New function.
6956 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6957 element from current_global_psymbols and current_static_psymbols
6958 stacks. Concat popped elements to global_psymbols and
6959 static_symbols.
6960 (add_psymbol_to_list): Use current_global_psymbols and
6961 current_static_psymbols stacks.
6962 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6963 current_static_psymbols fields.
6964
6ba0a321
CB
69652020-03-12 Christian Biesinger <cbiesinger@google.com>
6966
6967 * corelow.c (sniff_core_bfd): Remove.
6968 (class core_target) <m_core_vec>: Remove.
6969 (core_target::core_target): Update.
6970 (core_file_fns): Remove.
6971 (deprecated_add_core_fns): Remove.
6972 (default_core_sniffer): Remove.
6973 (sniff_core_bfd): Remove.
6974 (default_check_format): Remove.
6975 (gdb_check_format): Remove.
6976 (core_target_open): Update.
6977 (core_target::get_core_register_section): Update.
6978 (get_core_registers_cb): Update.
6979 (core_target::fetch_registers): Update.
6980 * gdbcore.h (struct core_fns): Remove.
6981 (deprecated_add_core_fns): Remove.
6982 (default_core_sniffer): Remove.
6983 (default_check_format): Remove.
6984
227031b2
TT
69852020-03-12 Tom Tromey <tom@tromey.com>
6986
6987 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6988 CORE_ADDR.
6989 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6990
53807e9f
TT
69912020-03-12 Tom Tromey <tom@tromey.com>
6992
6993 * remote.c (remote_target::download_tracepoint)
6994 (remote_target::enable_tracepoint)
6995 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6996 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6997 sprintf_vma.
6998
64f25102
TT
69992020-03-12 Tom Tromey <tom@tromey.com>
7000
7001 * symfile-mem.c: Update CORE_ADDR size assert.
7002
272cd5a3
SM
70032020-03-12 Simon Marchi <simon.marchi@efficios.com>
7004
7005 * selftest.m4: Move to gdbsupport/.
7006 * acinclude.m4: Update path to selftest.m4.
7007
74cd3f9d
SM
70082020-03-12 Simon Marchi <simon.marchi@efficios.com>
7009
7010 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7011 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7012 gdbarch-selfselftests.c and selftest-arch.c.
7013 (SUBDIR_UNITTESTS_OBS): Rename to...
7014 (SELFTESTS_OBS): ... this.
7015 (COMMON_SFILES): Remove disasm-selftests.c and
7016 gdbarch-selftests.c.
7017 * configure.ac: Don't add selftest-arch.{c,o} to
7018 CONFIG_{SRCS,OBS}.
7019 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7020 preprocessor conditions.
7021
db6878ac
SM
70222020-03-12 Simon Marchi <simon.marchi@efficios.com>
7023
7024 * configure.ac: Don't source bfd/development.sh.
7025 * selftest.m4: Modify comment.
7026 * configure: Re-generate.
7027
4d696a5c
SM
70282020-03-12 Simon Marchi <simon.marchi@efficios.com>
7029
7030 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7031 not "true" or "false".
7032 * configure: Re-generate.
7033
8dd8e1c7
CB
70342020-03-12 Christian Biesinger <cbiesinger@google.com>
7035
7036 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7037 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7038 renamed to arm_nbsd_supply_gregset.
7039 (fetch_register): Update to call arm_nbsd_supply_gregset.
7040 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7041 (arm_netbsd_nat_target::fetch_registers): Update.
7042 (fetch_elfcore_registers): Removed.
7043 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7044 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7045 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7046 not require NetBSD system headers.
7047 (arm_nbsd_regset): New struct.
7048 (arm_nbsd_iterate_over_regset_sections): New function.
7049 (arm_netbsd_init_abi_common): Updated to call
7050 set_gdbarch_iterate_over_regset_sections.
7051 * arm-nbsd-tdep.h: New file.
7052
dd69bf7a
KB
70532020-03-11 Kevin Buettner <kevinb@redhat.com>
7054
7055 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7056 recursion.
7057
a0761e34
SM
70582020-03-11 Simon Marchi <simon.marchi@efficios.com>
7059
7060 * configure: Re-generate.
7061
e7a82140
TT
70622020-03-11 Tom Tromey <tromey@adacore.com>
7063
7064 * ada-typeprint.c (print_choices): Fix comment.
7065
dcc050c8
AB
70662020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7067
7068 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7069 previous item in the list, when the list has no items.
7070
1c33af77
TV
70712020-03-11 Tom de Vries <tdevries@suse.de>
7072
7073 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7074 PROP_LOCLIST handling code.
7075
8c95582d
AB
70762020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7077
7078 * buildsym-legacy.c (record_line): Pass extra parameter to
7079 record_line.
7080 * buildsym.c (buildsym_compunit::record_line): Take an extra
7081 parameter, reduce duplication in the line table, and record the
7082 is_stmt flag in the line table.
7083 * buildsym.h (buildsym_compunit::record_line): Add extra
7084 parameter.
7085 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7086 non-statement lines.
7087 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7088 this to the symtab builder.
7089 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7090 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7091 through to dwarf_record_line_1.
7092 * infrun.c (process_event_stop_test): When stepping, don't stop at
7093 a non-statement instruction, and only refresh the step info when
7094 we land in the middle of a line's range. Also add an extra
7095 comment.
7096 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7097 field.
7098 * record-btrace.c (btrace_find_line_range): Only record lines
7099 marked as is-statement.
7100 * stack.c (frame_show_address): Show the frame address if we are
7101 in a non-statement sal.
7102 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7103 (maintenance_print_one_line_table): Print a header for the is_stmt
7104 column, and include is_stmt information in the output.
7105 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7106 preference to non-statements.
7107 (find_pcs_for_symtab_line): Prefer is-statement entries.
7108 (find_line_common): Likewise.
7109 * symtab.h (struct linetable_entry): Add is_stmt field.
7110 (struct symtab_and_line): Likewise.
7111 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7112 arranging the line table.
7113
e4003a34
TV
71142020-03-07 Tom de Vries <tdevries@suse.de>
7115
7116 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7117 DIE.
7118
e8932576
TT
71192020-03-07 Tom Tromey <tom@tromey.com>
7120
7121 * valops.c (value_literal_complex): Remove obsolete comment.
7122 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7123 comment.
7124
29734269
SM
71252020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7126
7127 * infrun.h: Forward-declare thread_info.
7128 (set_step_info): Add thread_info parameter, add doc.
7129 * infrun.c (set_step_info): Add thread_info parameter, move doc
7130 to header.
7131 * infrun.c (process_event_stop_test): Pass thread to
7132 set_step_info call.
7133 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7134 set_step_info.
7135 (prepare_one_step): Add thread_info parameter, pass it to
7136 set_step_frame and prepare_one_step (recursive) call.
7137 (step_1): Pass thread to prepare_one_step call.
7138 (step_command_fsm::should_stop): Pass thread to
7139 prepare_one_step.
7140 (until_next_fsm): Pass thread to set_step_frame call.
7141 (finish_command): Pass thread to set_step_info call.
7142
b7d64b29
HD
71432020-03-06 Hannes Domani <ssbssa@yahoo.de>
7144
7145 * windows-tdep.c (windows_solib_create_inferior_hook):
7146 Check if inferior is running.
7147
09f2921c
TV
71482020-03-06 Tom de Vries <tdevries@suse.de>
7149
7150 * NEWS: Fix "the the".
7151 * ctfread.c: Same.
7152
fd760e79
TV
71532020-03-06 Tom de Vries <tdevries@suse.de>
7154
7155 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7156
20ea4a60
AB
71572020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7158
7159 * .dir-locals.el: Add a comment referencing the other copies of
7160 this file.
7161
0afbabf0
JB
71622020-03-05 John Baldwin <jhb@FreeBSD.org>
7163
7164 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7165 psargs.
7166
842806cb
TBA
71672020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7168
7169 * .gitattributes: New file.
7170
be1e3d3e
TT
71712020-03-04 Tom Tromey <tom@tromey.com>
7172
7173 * symmisc.c (print_symbol_bcache_statistics)
7174 (print_objfile_statistics): Update.
7175 * symfile.c (allocate_symtab): Use intern.
7176 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7177 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7178 macro_cache>: Remove.
7179 <string_cache>: New member.
7180 (struct objfile) <intern>: New methods.
7181 * elfread.c (elf_symtab_read): Use intern.
7182 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7183 (dwarf2_compute_name, dwarf2_physname)
7184 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7185 names.
7186 (guess_partial_die_structure_name): Update.
7187 (partial_die_info::fixup): Intern name.
7188 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7189 name.
7190 (dwarf2_name): Intern name. Update.
7191 * buildsym.c (buildsym_compunit::get_macro_table): Use
7192 string_cache.
7193
4e7625fd
TT
71942020-03-04 Tom Tromey <tom@tromey.com>
7195
7196 * jit.c (bfd_open_from_target_memory): Make "target" const.
7197 * corefile.c (gnutarget): Now const.
7198 * gdbcore.h (gnutarget): Now const.
7199
46f9f931
HD
72002020-03-04 Hannes Domani <ssbssa@yahoo.de>
7201
7202 * NEWS: Mention support for WOW64 processes.
7203 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7204 (amd64_windows_segment_register_p): Remove static.
7205 (_initialize_amd64_windows_nat): Update.
7206 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7207 * i386-windows-nat.c (context_offset): Update.
7208 (i386_mappings): Rename and remove static.
7209 (i386_windows_segment_register_p): Remove static.
7210 (_initialize_i386_windows_nat): Update.
7211 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7212 (STATUS_WX86_SINGLE_STEP): New macro.
7213 (EnumProcessModulesEx): New macro.
7214 (Wow64SuspendThread): New macro.
7215 (Wow64GetThreadContext): New macro.
7216 (Wow64SetThreadContext): New macro.
7217 (Wow64GetThreadSelectorEntry): New macro.
7218 (windows_set_context_register_offsets): Add static.
7219 (windows_set_segment_register_p): Likewise.
7220 (windows_add_thread): Adapt for WOW64 processes.
7221 (windows_fetch_one_register): Likewise.
7222 (windows_nat_target::fetch_registers): Likewise.
7223 (windows_store_one_register): Likewise.
7224 (display_selector): Likewise.
7225 (display_selectors): Likewise.
7226 (handle_exception): Likewise.
7227 (windows_continue): Likewise.
7228 (windows_nat_target::resume): Likewise.
7229 (windows_add_all_dlls): Likewise.
7230 (do_initial_windows_stuff): Likewise.
7231 (windows_nat_target::attach): Likewise.
7232 (windows_get_exec_module_filename): Likewise.
7233 (windows_nat_target::create_inferior): Likewise.
7234 (windows_xfer_siginfo): Likewise.
7235 (_initialize_loadable): Initialize Wow64SuspendThread,
7236 Wow64GetThreadContext, Wow64SetThreadContext,
7237 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7238 * windows-nat.h (windows_set_context_register_offsets):
7239 Remove declaration.
7240 (windows_set_segment_register_p): Likewise.
7241 (i386_windows_segment_register_p): Add declaration.
7242 (amd64_windows_segment_register_p): Likewise.
7243
440cf44e
LM
72442020-03-04 Luis Machado <luis.machado@linaro.org>
7245
7246 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7247 in "info registers" for AArch64/ARM.
7248
7249 The change caused "info registers" to not print GPR's.
7250
7251 gdb/ChangeLog:
7252
7253 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7254
7255 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7256 when reg->group is empty and reggroup is not.
7257
1009d92f
TT
72582020-03-03 Tom Tromey <tromey@adacore.com>
7259
7260 * dwarf2/frame.c (struct dwarf2_frame_cache)
7261 <checked_tailcall_bottom, entry_cfa_sp_offset,
7262 entry_cfa_sp_offset_p>: Remove members.
7263 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7264 (dwarf2_frame_prev_register): Don't call
7265 dwarf2_tailcall_sniffer_first.
7266 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7267 * frame-unwind.c (add_unwinder): New fuction.
7268 (frame_unwind_init): Use it. Add tailcall unwinder.
7269
5e5d66b6
AB
72702020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7271 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7272
7273 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7274 value should be printed as true.
7275
584cf46d
HD
72762020-03-03 Hannes Domani <ssbssa@yahoo.de>
7277
7278 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7279 (windows_init_abi): Set and use windows_so_ops.
7280
7b973adc
SDJ
72812020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7282
7283 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7284 when verifying if dealing with a convenience variable.
7285
bb7b70ab
LM
72862020-03-03 Luis Machado <luis.machado@linaro.org>
7287
7288 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7289
9822cb57
SM
72902020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7291
7292 * infrun.c (gdbarch_supports_displaced_stepping): New.
7293 (use_displaced_stepping): Break up conditions in smaller pieces.
7294 Use gdbarch_supports_displaced_stepping.
7295 (displaced_step_prepare_throw): Use
7296 gdbarch_supports_displaced_stepping.
7297
63e163f2
AB
72982020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7299
7300 * NEWS: Mention new behaviour of the history filename.
7301 * top.c (write_history_p): Add comment.
7302 (show_write_history_p): Add header comment, give a different
7303 message when history writing is on, but the history filename is
7304 empty.
7305 (history_filename): Add comment.
7306 (history_filename_empty): New function.
7307 (show_history_filename): Add header comment, give a different
7308 message when the filename is empty.
7309 (init_history): Compare history_filename against nullptr, and only
7310 read history if the filename is not empty.
7311 (set_history_filename): Add header comment, and only make
7312 non-empty filenames absolute.
7313 (init_main): Make the filename argument to 'set history filename'
7314 optional.
7315
81b86b97
CB
73162020-03-02 Christian Biesinger <cbiesinger@google.com>
7317
7318 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7319 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7320 (fetch_fp_register): Update.
7321 (fetch_fp_regs): Update.
7322 (store_fp_register): Update.
7323 (store_fp_regs): Update.
7324 (arm_netbsd_nat_target::read_description): New function.
7325 (fetch_elfcore_registers): Update.
7326
24ed6739
AB
73272020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7328
7329 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7330 general_thread if the stop reply is missing a thread-id.
7331 (remote_target::process_stop_reply): Use the first non-exited
7332 thread if the target didn't pass a thread-id.
7333 * infrun.c (do_target_wait): Move call to
7334 switch_to_inferior_no_thread to ....
7335 (do_target_wait_1): ... here.
7336
a84bb2a0
JT
73372020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7338
7339 * debuginfod-support.c: Include defs.h first.
7340
658dadf0
TV
73412020-02-28 Tom de Vries <tdevries@suse.de>
7342
7343 * symfile.c (set_initial_language): Use default language for lookup.
7344
4ebe4877
SM
73452020-02-28 Simon Marchi <simon.marchi@efficios.com>
7346
7347 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7348 reader variable, pass `this` to read_cutu_die_from_dwo.
7349
e5da1139
AM
73502020-02-27 Aaron Merey <amerey@redhat.com>
7351
7352 * source.c (open_source_file): Check for nullptr when computing
7353 srcpath.
7354
317f7127
TT
73552020-02-27 Tom Tromey <tromey@adacore.com>
7356
7357 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7358 member.
7359 (dwarf2_add_field): Don't update nfields.
7360 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7361
3104d9ee
AB
73622020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7363
7364 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7365 abs.
7366
b83470bf
TT
73672020-02-26 Tom Tromey <tom@tromey.com>
7368
7369 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7370 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7371 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7372 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7373 per_cu_data.
7374
edfe0a0c
TT
73752020-02-26 Tom Tromey <tom@tromey.com>
7376
7377 * dwarf2/index-write.c (psym_index_map): Change type.
7378 (add_address_entry_worker, write_one_signatured_type)
7379 (recursively_count_psymbols, recursively_write_psymbols)
7380 (class debug_names, psyms_seen_size, write_gdbindex)
7381 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7382
0d79cdc4
AM
73832020-02-26 Aaron Merey <amerey@redhat.com>
7384
7385 * Makefile.in: Handle optional debuginfod support.
7386 * NEWS: Update.
7387 * README: Add --with-debuginfod summary.
7388 * config.in: Regenerate.
7389 * configure: Regenerate.
7390 * configure.ac: Handle optional debuginfod support.
7391 * debuginfod-support.c: debuginfod helper functions.
7392 * debuginfod-support.h: Ditto.
7393 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7394 summary.
7395 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7396 when a dwz file cannot be found.
7397 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7398 debuginfo file cannot be found.
7399 * source.c (open_source_file): Query debuginfod servers when a
7400 source file cannot be found.
7401 * top.c (print_gdb_configuration): Include
7402 --{with,without}-debuginfod in the output.
7403
b65ce565
JG
74042020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7405
7406 * thread.c (thr_try_catch_cmd): Print thread name.
7407
d4c9a4f8
SM
74082020-02-26 Simon Marchi <simon.marchi@efficios.com>
7409
7410 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7411 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7412 dwarf2_fetch_die_type_sect_off): Move to...
7413 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7414 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7415 dwarf2_fetch_die_type_sect_off): ... here.
7416 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7417 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7418 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7419
0dce4280
TV
74202020-02-26 Tom de Vries <tdevries@suse.de>
7421
7422 PR gdb/25603
7423 * symfile.c (set_initial_language): Exit-early if
7424 language_mode == language_mode_manual.
7425
450a1bfc
SM
74262020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7427
7428 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7429 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7430 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7431
9e80cfa1
AB
74322020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7433
7434 * gdbtypes.c (create_array_type_with_stride): Handle negative
7435 array strides.
7436 * valarith.c (value_subscripted_rvalue): Likewise.
7437
09624f1f
LM
74382020-02-25 Luis Machado <luis.machado@linaro.org>
7439
7440 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7441
8cb5117c
SM
74422020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7443
7444 * loc.h (dwarf2_get_die_type): Move to...
7445 * read.h (dwarf2_get_die_type): ... here.
7446 * read.c (dwarf2_get_die_type): Move doc to header.
7447
c325c44e
JB
74482020-02-25 Joel Brobecker <brobecker@adacore.com>
7449
7450 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7451 'gnulib/Makefile.in' to the list.
7452
4ac93832
TT
74532020-02-24 Tom Tromey <tom@tromey.com>
7454
7455 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7456 Remove.
7457 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7458 XOBNEWVEC.
7459
197400e8
TT
74602020-02-24 Tom Tromey <tom@tromey.com>
7461
7462 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7463 New method.
7464 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7465 (dw2_do_instantiate_symtab, dw2_get_file_names)
7466 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7467
76935768
TT
74682020-02-24 Tom Tromey <tom@tromey.com>
7469
7470 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7471 make_scoped_restore.
7472 (dwarf2_psymtab::read_symtab): Don't clear
7473 reading_partial_symbols.
7474
a88ef40d
TV
74752020-02-24 Tom de Vries <tdevries@suse.de>
7476
7477 PR gdb/25592
7478 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7479
c9af6521
TV
74802020-02-24 Tom de Vries <tdevries@suse.de>
7481
7482 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7483 commands layout next/prev/regs.
7484
5707a07a
TT
74852020-02-22 Tom Tromey <tom@tromey.com>
7486
7487 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7488 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7489
3b0fb49e
TT
74902020-02-22 Tom Tromey <tom@tromey.com>
7491
7492 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7493
283be8bf
TT
74942020-02-22 Tom Tromey <tom@tromey.com>
7495
7496 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7497 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7498 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7499 * tui/tui.c (_initialize_tui): Add usage text.
7500
ca793b96
TT
75012020-02-22 Tom Tromey <tom@tromey.com>
7502
7503 * tui/tui-win.c (tui_set_focus_command)
7504 (tui_set_win_height_command): Use error_no_arg.
7505 (_initialize_tui_win): Update help text.
7506 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7507
432b5c40
TT
75082020-02-22 Tom Tromey <tom@tromey.com>
7509
7510 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7511 * tui/tui-disasm.h (struct tui_disasm_window)
7512 <display_start_addr>: Declare.
7513 * tui/tui-source.h (struct tui_source_window)
7514 <display_start_addr>: Declare.
7515 * tui/tui-winsource.h (struct tui_source_window_base)
7516 <show_source_line, display_start_addr>: New methods.
7517 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7518 Rename and move to protected section.
7519 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7520 (tui_source_window_base::do_erase_source_content): Update.
7521 (tui_source_window_base::show_source_line): Now a method.
7522 (tui_source_window_base::show_source_content)
7523 (tui_source_window_base::tui_source_window_base)
7524 (tui_source_window_base::rerender)
7525 (tui_source_window_base::refill)
7526 (tui_source_window_base::do_scroll_horizontal)
7527 (tui_source_window_base::set_is_exec_point_at)
7528 (tui_source_window_base::update_breakpoint_info)
7529 (tui_source_window_base::update_exec_info): Update.
7530 * tui/tui-source.c (tui_source_window::set_contents)
7531 (tui_source_window::showing_source_p)
7532 (tui_source_window::do_scroll_vertical)
7533 (tui_source_window::location_matches_p)
7534 (tui_source_window::line_is_displayed): Update.
7535 (tui_source_window::display_start_addr): New method.
7536 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7537 (tui_disasm_window::do_scroll_vertical)
7538 (tui_disasm_window::location_matches_p): Update.
7539 (tui_disasm_window::display_start_addr): New method.
7540
01b1af32
TT
75412020-02-22 Tom Tromey <tom@tromey.com>
7542
7543 * NEWS: Add entry for gdb.register_window_type.
7544 * tui/tui-layout.h (window_factory): New typedef.
7545 (tui_register_window): Declare.
7546 * tui/tui-layout.c (saved_tui_windows): New global.
7547 (tui_apply_current_layout): Use it.
7548 (tui_register_window): New function.
7549 * python/python.c (do_start_initialization): Call
7550 gdbpy_initialize_tui.
7551 (python_GdbMethods): Add "register_window_type" function.
7552 * python/python-internal.h (gdbpy_register_tui_window)
7553 (gdbpy_initialize_tui): Declare.
7554 * python/py-tui.c: New file.
7555 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7556
fc96d20b
TT
75572020-02-22 Tom Tromey <tom@tromey.com>
7558
7559 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7560
935c78c0
TT
75612020-02-22 Tom Tromey <tom@tromey.com>
7562
7563 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7564 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7565 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7566 (tui_set_win_focus_to): Move from tui-win.c.
7567
0240c8f1
TT
75682020-02-22 Tom Tromey <tom@tromey.com>
7569
7570 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7571 functions.
7572 (known_window_types): New global.
7573 (tui_get_window_by_name): Reimplement.
7574 (initialize_known_windows): New function.
7575 (validate_window_name): Rewrite.
7576 (_initialize_tui_layout): Call initialize_known_windows.
7577
fdb01f0c
TT
75782020-02-22 Tom Tromey <tom@tromey.com>
7579
7580 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7581 Remove constants.
7582 * tui/tui-winsource.h (struct tui_source_window_base)
7583 <tui_source_window_base>: Remove parameter.
7584 * tui/tui-winsource.c
7585 (tui_source_window_base::tui_source_window_base): Remove
7586 parameter.
7587 (tui_source_window_base::refill): Update.
7588 * tui/tui-stack.h (struct tui_locator_window)
7589 <tui_locator_window>: Update.
7590 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7591 Default the constructor.
7592 * tui/tui-regs.h (struct tui_data_item_window)
7593 <tui_data_item_window>: Default the constructor.
7594 (struct tui_data_window) <tui_data_window>: Likewise.
7595 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7596 Default the constructor.
7597 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7598 Default the constructor.
7599 <type>: Remove.
7600 (struct tui_win_info) <tui_win_info>: Default the constructor.
7601 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7602 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7603 Default the constructor.
7604
865a5aec
TT
76052020-02-22 Tom Tromey <tom@tromey.com>
7606
7607 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7608 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7609 * tui/tui-win.c (tui_resize_all): Don't call
7610 tui_delete_invisible_windows.
7611 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7612 done.
7613 (tui_set_layout): Update.
7614 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7615 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7616 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7617
e098d18c
TT
76182020-02-22 Tom Tromey <tom@tromey.com>
7619
7620 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7621 correctly.
7622
eb9c8874
TT
76232020-02-22 Tom Tromey <tom@tromey.com>
7624
7625 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7626
7eed1a8e
TT
76272020-02-22 Tom Tromey <tom@tromey.com>
7628
7629 * tui/tui-winsource.h (struct tui_source_window_iterator)
7630 <inner_iterator>: New etytypedef.
7631 <tui_source_window_iterator>: Take "end" parameter.
7632 <tui_source_window_iterator>: Take iterator.
7633 <operator*, advance>: Update.
7634 <m_iter>: Change type.
7635 <m_end>: New field.
7636 (struct tui_source_windows) <begin, end>: Update.
7637 * tui/tui-layout.c (tui_windows): New global.
7638 (tui_apply_current_layout): Clear tui_windows.
7639 (tui_layout_window::apply): Update tui_windows.
7640 * tui/tui-data.h (tui_windows): Declare.
7641 (all_tui_windows): Now inline function.
7642 (class tui_window_iterator, struct all_tui_windows): Remove.
7643
7c043ba6
TT
76442020-02-22 Tom Tromey <tom@tromey.com>
7645
7646 PR tui/17850:
7647 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7648 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7649 "height" argument.
7650 (class tui_layout_window) <get_sizes>: Likewise.
7651 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7652 argument.
7653 <get_sizes>: Add "height" argument.
7654 <m_vertical>: New field.
7655 * tui/tui-layout.c (tui_layout_split::clone): Update.
7656 (tui_layout_split::get_sizes): Add "height" argument.
7657 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7658 (tui_new_layout_command): Parse "-horizontal".
7659 (_initialize_tui_layout): Update help string.
7660 (tui_layout_split::specification): Add "-horizontal" when needed.
7661 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7662 argument.
7663 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7664 New methods.
7665
6bc56648
TT
76662020-02-22 Tom Tromey <tom@tromey.com>
7667
7668 * tui/tui-layout.h (enum tui_adjust_result): New.
7669 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7670 (class tui_layout_window) <adjust_size>: Return
7671 tui_adjust_result. Rewrite.
7672 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7673 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7674
c22fef7e
TT
76752020-02-22 Tom Tromey <tom@tromey.com>
7676
7677 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7678 parameter and return types.
7679 (class tui_layout_base) <specification>: Add "depth".
7680 (class tui_layout_window) <specification>: Add "depth".
7681 (class tui_layout_split) <specification>: Add "depth".
7682 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7683 and return types.
7684 (tui_new_layout_command): Parse sub-layouts.
7685 (_initialize_tui_layout): Update help string.
7686 (tui_layout_window::specification): Add "depth".
7687 (add_layout_command): Update.
7688
ee325b61
TT
76892020-02-22 Tom Tromey <tom@tromey.com>
7690
7691 * NEWS: Add "tui new-layout" item.
7692 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7693 Add new-layout command to help text.
7694 (validate_window_name): New function.
7695 (tui_new_layout_command): New function.
7696 (_initialize_tui_layout): Register "new-layout".
7697 (tui_layout_window::specification): New method.
7698 (tui_layout_window::specification): New method.
7699 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7700 method.
7701 (class tui_layout_window) <specification>: New method.
7702 (class tui_layout_split) <specification>: New method.
7703
416eb92d
TT
77042020-02-22 Tom Tromey <tom@tromey.com>
7705
7706 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7707 * tui/tui-win.c (window_name_completer): Update comment.
7708 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7709 Declare method.
7710 (class tui_layout_window) <replace_window>: Likewise.
7711 (class tui_layout_split) <replace_window>: Likewise.
7712 (tui_set_layout): Don't declare.
7713 (tui_set_initial_layout): Declare function.
7714 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7715 (asm_regs_layout): New globals.
7716 (tui_current_layout, show_layout): Remove.
7717 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7718 (find_layout, tui_apply_layout): New function.
7719 (layout_completer): Remove.
7720 (tui_next_layout): Reimplement.
7721 (tui_next_layout_command): New function.
7722 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7723 (tui_regs_layout): Reimplement.
7724 (tui_regs_layout_command): New function.
7725 (extract_display_start_addr): Rewrite.
7726 (next_layout, prev_layout): Remove.
7727 (tui_layout_window::replace_window): New method.
7728 (tui_layout_split::replace_window): New method.
7729 (destroy_layout): New function.
7730 (layout_list): New global.
7731 (add_layout_command): New function.
7732 (initialize_layouts): Update.
7733 (tui_layout_command): New function.
7734 (_initialize_tui_layout): Install "layout" commands.
7735 * tui/tui-data.h (enum tui_layout_type): Remove.
7736 (tui_current_layout): Don't declare.
7737
0dbc2fc7
TT
77382020-02-22 Tom Tromey <tom@tromey.com>
7739
7740 * tui/tui-regs.c (tui_reg_layout): Remove.
7741 (tui_reg_command): Use tui_regs_layout.
7742 * tui/tui-layout.h (tui_reg_command): Declare.
7743 * tui/tui-layout.c (tui_reg_command): New function.
7744
5afe342e
TT
77452020-02-22 Tom Tromey <tom@tromey.com>
7746
7747 * tui/tui.c (tui_rl_delete_other_windows): Call
7748 tui_remove_some_windows.
7749 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7750 Declare method.
7751 (class tui_layout_window) <remove_windows>: New method.
7752 (class tui_layout_split) <remove_windows>: Declare.
7753 (tui_remove_some_windows): Declare.
7754 * tui/tui-layout.c (tui_remove_some_windows): New function.
7755 (tui_layout_split::remove_windows): New method.
7756
427326a8
TT
77572020-02-22 Tom Tromey <tom@tromey.com>
7758
7759 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7760 * tui/tui-layout.h (tui_next_layout): Declare.
7761 * tui/tui-layout.c (tui_next_layout): New function.
7762
3fe12b6d
TT
77632020-02-22 Tom Tromey <tom@tromey.com>
7764
7765 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7766 correct coordinates.
7767
59b8b5d2
TT
77682020-02-22 Tom Tromey <tom@tromey.com>
7769
7770 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7771 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7772 DATA_WIN case.
7773
2a3d458b
TT
77742020-02-22 Tom Tromey <tom@tromey.com>
7775
7776 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7777 TUI_DISASM_WIN, not tui_win_list.
7778
3f0cbb04
TT
77792020-02-22 Tom Tromey <tom@tromey.com>
7780
7781 * valprint.c (generic_val_print_enum_1)
7782 (val_print_type_code_flags): Style member names.
7783 * rust-lang.c (val_print_struct, rust_print_enum)
7784 (rust_print_struct_def, rust_internal_print_type): Style member
7785 names.
7786 * p-valprint.c (pascal_object_print_value_fields): Style member
7787 names. Only call fprintf_symbol_filtered for static members.
7788 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7789 * f-valprint.c (f_val_print): Style member names.
7790 * f-typeprint.c (f_type_print_base): Style member names.
7791 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7792 call fprintf_symbol_filtered for static members.
7793 (cp_print_class_member): Style member names.
7794 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7795 member names.
7796 * ada-valprint.c (ada_print_scalar): Style enum names.
7797 (ada_val_print_enum): Likewise.
7798 * ada-typeprint.c (print_enum_type): Style enum names.
7799
d4d947ae
TT
78002020-02-21 Tom Tromey <tom@tromey.com>
7801
7802 * psympriv.h (struct partial_symtab): Update comment.
7803
e94e944b
TT
78042020-02-21 Tom Tromey <tromey@adacore.com>
7805
7806 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7807 type is CORE_ADDR.
7808
1eb73179
TV
78092020-02-21 Tom de Vries <tdevries@suse.de>
7810
7811 PR gdb/25534
7812 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7813 if dependencies[i]->user != NULL.
7814
4f180d53
AT
78152020-02-21 Ali Tamur <tamur@google.com>
7816
7817 * dwarf2/read.c (dwarf2_name): Add null check.
7818
22b6cd70
TT
78192020-02-20 Tom Tromey <tom@tromey.com>
7820
7821 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7822 ">=", in binary search.
7823 (dwarf2_find_containing_comp_unit): New overload.
7824 (run_test): New self-test.
7825 (_initialize_dwarf2_read): Register new test.
7826
bd0cf5a6
NC
78272020-02-20 Nelson Chu <nelson.chu@sifive.com>
7828
7829 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7830 * riscv-tdep.h: Likewise.
7831 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7832 rv32-only CSR.
7833 * features/riscv/64bit-csr.xml: Regenerated.
7834
3f702acd
SDJ
78352020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7836 Tom Tromey <tom@tromey.com>
7837
7838 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7839 of 'fputc_unfiltered'.
7840 (putchar_unfiltered): Call 'fputc_unfiltered'.
7841 (fputc_unfiltered): Call 'fputs_unfiltered'.
7842
d13c7322
AB
78432020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7844
7845 * config.in: Regenerate.
7846 * configure: Regenerate.
7847 * configure.ac: Add --with-python-libdir option.
7848 * main.c: Use WITH_PYTHON_LIBDIR.
7849
869d8950
TT
78502020-02-19 Tom Tromey <tom@tromey.com>
7851
7852 * symtab.c (general_symbol_info::compute_and_set_names): Use
7853 obstack_strndup. Simplify call to symbol_set_demangled_name.
7854
298e9637
SM
78552020-02-19 Simon Marchi <simon.marchi@efficios.com>
7856
7857 * dwarf2/read.c (allocate_signatured_type_table,
7858 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7859 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7860 Remove objfile parameter, update all callers.
7861
08410482
DE
78622020-02-19 Doug Evans <dje@google.com>
7863
7864 PR rust/25535
7865 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7866 rust_enum_variant calculation.
7867
dfdeeca1
TT
78682020-02-19 Tom Tromey <tromey@adacore.com>
7869
7870 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7871
2ef5453b
TT
78722020-02-19 Tom Tromey <tromey@adacore.com>
7873
7874 * ada-lang.c (cache_symbol): Use obstack_strdup.
7875
9f1528a1
AB
78762020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7877
7878 * configure: Regenerate.
7879
d3c22fa8
TT
78802020-02-19 Tom Tromey <tromey@adacore.com>
7881
7882 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7883 NULL check.
7884
bf84f706
MR
78852020-02-19 Maciej W. Rozycki <macro@wdc.com>
7886
7887 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7888
d1c9b20f
AB
78892020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7890
7891 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7892 if GDBSERVER is not defined.
7893 (riscv_tdesc_cache): Likewise, also store const target_desc.
7894 (STATIC_IN_GDB): Define.
7895 (riscv_create_target_description): Update declaration with
7896 STATIC_IN_GDB.
7897 (riscv_lookup_target_description): New function, only define if
7898 GDBSERVER is not defined.
7899 * arch/riscv.h (riscv_create_target_description): Declare only
7900 when GDBSERVER is defined.
7901 (riscv_lookup_target_description): New declaration when GDBSERVER
7902 is not defined.
7903 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7904 (riscv_linux_read_features): ...this, and return
7905 riscv_gdbarch_features instead of target_desc.
7906 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7907 (riscv_linux_read_description): Rename to...
7908 (riscv_linux_read_features): ...this.
7909 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7910 Update to use riscv_gdbarch_features and
7911 riscv_lookup_target_description.
7912 * riscv-tdep.c (riscv_find_default_target_description): Use
7913 riscv_lookup_target_description instead of
7914 riscv_create_target_description.
7915
373d7ac0
SM
79162020-02-18 Simon Marchi <simon.marchi@efficios.com>
7917
7918 * valprint.c (generic_val_print_enum_1): When printing a flag
7919 enum with value 0 and there is no enumerator with value 0, print
7920 just "0" instead of "(unknown: 0x0)".
7921
b29a2df0
SM
79222020-02-18 Simon Marchi <simon.marchi@efficios.com>
7923
7924 * valprint.c (generic_val_print_enum_1): Print unknown part of
7925 flag enum in hex.
7926
6740f0cc
SM
79272020-02-18 Simon Marchi <simon.marchi@efficios.com>
7928
7929 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7930 flag enums to contain duplicate enumerators.
7931 * valprint.c (generic_val_print_enum_1): Update comment.
7932
edd45eb0
SM
79332020-02-18 Simon Marchi <simon.marchi@efficios.com>
7934
7935 * dwarf2/read.c: Include "count-one-bits.h".
7936 (update_enumeration_type_from_children): If an enumerator has
7937 multiple bits set, don't treat the enumeration as a "flag enum".
7938 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7939 of flag enums have 0 or 1 bit set.
7940
6d0cf446
BE
79412020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7942
7943 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7944 conversion.
7945 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7946 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7947 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7948 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7949 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7950
7001c1b7
SM
79512020-02-18 Simon Marchi <simon.marchi@efficios.com>
7952
7953 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7954
fdb61c6c
SM
79552020-02-14 Simon Marchi <simon.marchi@efficios.com>
7956
7957 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7958 displaced_step_closure_up.
7959 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7960 (struct displaced_step_closure_up):
7961 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7962 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7963 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7964 Likewise.
7965 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7966 * gdbarch.c, gdbarch.h: Re-generate.
7967 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7968 displaced_step_closure_up.
7969 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7970 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7971 * infrun.h (displaced_step_closure_up): New type alias.
7972 (struct displaced_step_inferior_state) <step_closure>: Change
7973 type to displaced_step_closure_up.
7974 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7975 displaced_step_closure_up.
7976 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7977
a4a38eb4
TT
79782020-02-14 Tom Tromey <tom@tromey.com>
7979
7980 * minidebug.c (gnu_debug_key): New global.
7981 (find_separate_debug_file_in_section): Use it.
7982
e8217e61
SM
79832020-02-14 Simon Marchi <simon.marchi@efficios.com>
7984
7985 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7986 std::unique_ptr.
7987 * gdbarch.c: Re-generate.
7988 * gdbarch.h: Re-generate.
7989 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7990 change.
7991 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7992 type to std::unique_ptr.
7993 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7994 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7995 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7996 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7997 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7998 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7999 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8000 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8001 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8002
d8d83535
SM
80032020-02-14 Simon Marchi <simon.marchi@efficios.com>
8004
8005 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8006 std::unique_ptr.
8007 (displaced_step_clear): Rename to...
8008 (displaced_step_reset): ... this. Just call displaced->reset ().
8009 (displaced_step_clear_cleanup): Rename to...
8010 (displaced_step_reset_cleanup): ... this.
8011 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8012 (displaced_step_fixup): Likewise.
8013 (resume_1): Likewise.
8014 (handle_inferior_event): Restore child's memory before calling
8015 displaced_step_fixup on the parent.
8016 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8017 to std::unique_ptr.
8018 <step_closure>: Change type to std::unique_ptr.
8019
5f661e03
SM
80202020-02-14 Simon Marchi <simon.marchi@efficios.com>
8021
8022 * arm-tdep.c: Include count-one-bits.h.
8023 (cleanup_block_store_pc): Use count_one_bits.
8024 (cleanup_block_load_pc): Use count_one_bits.
8025 (arm_copy_block_xfer): Use count_one_bits.
8026 (thumb2_copy_block_xfer): Use count_one_bits.
8027 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8028 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8029 (thumb_get_next_pcs_raw): Use count_one_bits.
8030 (arm_get_next_pcs_raw): Use count_one_bits_l.
8031 * arch/arm.c (bitcount): Remove.
8032 * arch/arm.h (bitcount): Remove.
8033
8084e579
TT
80342020-02-14 Tom Tromey <tromey@adacore.com>
8035
8036 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8037 Update.
8038 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8039 * dwarf2/loc.c (call_site_find_chain_1): Return
8040 unique_xmalloc_ptr.
8041 (call_site_find_chain): Likewise.
8042
258bf0ee
RB
80432020-02-14 Richard Biener <rguenther@suse.de>
8044
8045 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8046 on expression with division operators.
8047
f98a8458
AKS
80482020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8049
8050 * MAINTAINERS (Write After Approval): Adding myself.
8051
d1437c0e
TT
80522020-02-12 Tom Tromey <tom@tromey.com>
8053
8054 * event-loop.c (event_data, gdb_event, event_handler_func):
8055 Remove.
8056
3d4560f7
TT
80572020-02-12 Tom Tromey <tom@tromey.com>
8058
8059 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8060 (dwarf2_frame_objfile_data): Add comment.
8061 (find_comp_unit, set_comp_unit): New functions.
8062 (dwarf2_frame_find_fde): Use find_comp_unit.
8063 (dwarf2_build_frame_info): Use set_comp_unit.
8064
21982304
TT
80652020-02-12 Tom Tromey <tom@tromey.com>
8066
8067 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8068 (comp_unit): Don't initialize objfile.
8069 (execute_cfa_program): Add text_offset parameter.
8070 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8071 (dwarf2_frame_cache): Update.
8072 (dwarf2_build_frame_info): Don't set "objfile" member.
8073
4debb237
TT
80742020-02-12 Tom Tromey <tom@tromey.com>
8075
8076 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8077 (decode_frame_entry): Likewise.
8078 (dwarf2_build_frame_info): Update.
8079
0d404d44
TT
80802020-02-12 Tom Tromey <tom@tromey.com>
8081
8082 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8083 (decode_frame_entry_1): Use the comp_unit obstack.
8084
a7a3ae5c
TT
80852020-02-12 Tom Tromey <tom@tromey.com>
8086
8087 * dwarf2/frame.c (struct comp_unit): Add initializers and
8088 constructor.
8089 (dwarf2_frame_objfile_data): Store a comp_unit.
8090 (dwarf2_frame_find_fde): Update.
8091 (dwarf2_build_frame_info): Use "new".
8092
a9d65418
TT
80932020-02-12 Tom Tromey <tom@tromey.com>
8094
8095 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8096 (dwarf2_fde_table): Typedef for std::vector.
8097 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8098 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8099 (decode_frame_entry): Update.
8100 (dwarf2_build_frame_info): Use "new".
8101
7559c217
CB
81022020-02-12 Christian Biesinger <cbiesinger@google.com>
8103
8104 * arm-tdep.c (arm_gdbarch_init): Update.
8105 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8106 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8107 have_neon, is_m>: Change to bool.
8108
aeefc73c
CB
81092020-02-12 Christian Biesinger <cbiesinger@google.com>
8110
8111 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8112
d27b8e5f
TT
81132020-02-12 Tom Tromey <tom@tromey.com>
8114
8115 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8116
cd5900f3
HD
81172020-02-12 Hannes Domani <ssbssa@yahoo.de>
8118
8119 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8120 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8121
f056b22b
TT
81222020-02-11 Tom Tromey <tom@tromey.com>
8123
8124 * psymtab.h: Update comment.
8125
f92ff6b5
TT
81262020-02-11 Tom Tromey <tom@tromey.com>
8127
8128 * gdb_obstack.h (struct auto_obstack): Use
8129 DISABLE_COPY_AND_ASSIGN.
8130
3fd6912b
TT
81312020-02-11 Tom Tromey <tom@tromey.com>
8132
8133 * dwarf2/frame.h (struct objfile): Don't forward declare.
8134
69ed9b74
CB
81352020-02-11 Christian Biesinger <cbiesinger@google.com>
8136
8137 * cris-tdep.c (cris_supply_gregset): Change signature to match
8138 what struct regset expects.
8139 (cris_regset): New struct.
8140 (fetch_core_registers): Remove.
8141 (cris_iterate_over_regset_sections): New function.
8142 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8143 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8144
bda874f6
CB
81452020-02-11 Christian Biesinger <cbiesinger@google.com>
8146
8147 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8148 registers.
8149
754e1564
CB
81502020-02-11 Christian Biesinger <cbiesinger@google.com>
8151
8152 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8153
8ddd8e0e
SM
81542020-02-11 Simon Marchi <simon.marchi@efficios.com>
8155
8156 * configure: Re-generate.
8157
898e7f60
SM
81582020-02-11 Simon Marchi <simon.marchi@efficios.com>
8159
8160 * configure: Re-generate.
8161
58df732b
SM
81622020-02-11 Simon Marchi <simon.marchi@efficios.com>
8163
8164 * acinclude: Update warning.m4 path.
8165 * warning.m4: Move to gdbsupport.
8166
da5bd37e
TT
81672020-02-11 Tom Tromey <tromey@adacore.com>
8168
8169 * remote.c (remote_console_output): Update.
8170 * printcmd.c (printf_command): Update.
8171 * event-loop.c (gdb_wait_for_event): Update.
8172 * linux-nat.c (sigchld_handler): Update.
8173 * remote-sim.c (gdb_os_write_stdout): Update.
8174 (gdb_os_flush_stdout): Update.
8175 (gdb_os_flush_stderr): Update.
8176 (gdb_os_write_stderr): Update.
8177 * exceptions.c (print_exception): Update.
8178 * remote-fileio.c (remote_fileio_func_read): Update.
8179 (remote_fileio_func_write): Update.
8180 * tui/tui.c (tui_enable): Update.
8181 * tui/tui-interp.c (tui_interp::init): Update.
8182 * utils.c (init_page_info): Update.
8183 (putchar_unfiltered, fputc_unfiltered): Update.
8184 (gdb_flush): Update.
8185 (emit_style_escape): Update.
8186 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8187 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8188 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8189 (stderr_file::write): Update.
8190 (stderr_file::puts): Update.
8191 * ui-file.h (ui_file_isatty, ui_file_write)
8192 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8193 (ui_file_puts): Don't declare.
8194
85f0dd3c
TV
81952020-02-10 Tom de Vries <tdevries@suse.de>
8196
8197 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8198 sentinel to char *.
8199
2e927613
TV
82002020-02-09 Tom de Vries <tdevries@suse.de>
8201
8202 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8203 filename if it matches "<artificial>".
8204
6bafc845
HD
82052020-02-09 Hannes Domani <ssbssa@yahoo.de>
8206
8207 * windows-tdep.c (struct enum_value_name): New struct.
8208 (create_enum): New function.
8209 (windows_get_siginfo_type): Create and use enum types.
8210
7928d571
HD
82112020-02-09 Hannes Domani <ssbssa@yahoo.de>
8212
8213 * NEWS: Mention $_siginfo support for Windows.
8214 * windows-nat.c (handle_exception): Set siginfo_er.
8215 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8216 (windows_xfer_siginfo): New function.
8217 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8218 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8219 (init_windows_gdbarch_data): New function.
8220 (get_windows_gdbarch_data): New function.
8221 (windows_get_siginfo_type): New function.
8222 (windows_init_abi): Register windows_get_siginfo_type.
8223 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8224
6751ebae
TT
82252020-02-08 Tom Tromey <tom@tromey.com>
8226
8227 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8228 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8229 <keep>: Declare method.
8230 <m_keep>: Remove member.
8231 <~cutu_reader>: Remove.
8232 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8233 (cutu_reader::cutu_reader): Update.
8234 (cutu_reader::keep): Rename from ~cutu_reader.
8235 (process_psymtab_comp_unit, build_type_psymtabs_1)
8236 (process_skeletonless_type_unit, load_partial_comp_unit)
8237 (load_full_comp_unit, dwarf2_read_addr_index)
8238 (read_signatured_type): Update.
8239
135f5437
TT
82402020-02-08 Tom Tromey <tom@tromey.com>
8241
8242 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8243 "want_partial_unit" parameter.
8244 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8245 Inline check for DW_TAG_partial_unit.
8246 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8247
9f66ff1c
TT
82482020-02-08 Tom Tromey <tom@tromey.com>
8249
8250 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8251 read.c.
8252 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8253 read.c.
8254
c8a7a66f
TT
82552020-02-08 Tom Tromey <tom@tromey.com>
8256
8257 * dwarf2/read.c (read_address): Move to comp-unit.c.
8258 (dwarf2_rnglists_process, dwarf2_ranges_process)
8259 (read_attribute_value, dwarf_decode_lines_1)
8260 (var_decode_location, decode_locdesc): Update.
8261 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8262 read.c. Remove "cu" parameter.
8263 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8264 method.
8265
8266302d
TT
82662020-02-08 Tom Tromey <tom@tromey.com>
8267
8268 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8269 (read_indirect_line_string): Update.
8270 * dwarf2/comp-unit.c (read_offset): Remove.
8271 (read_comp_unit_head): Update.
8272 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8273 method.
8274 (read_offset): Don't declare.
8275
4057dfde
TT
82762020-02-08 Tom Tromey <tom@tromey.com>
8277
8278 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8279 * dwarf2/read.c (struct comp_unit_head): Move to
8280 dwarf2/comp-unit.h.
8281 (enum class rcuh_kind): Move to comp-unit.h.
8282 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8283 (read_comp_unit_head, error_check_comp_unit_head)
8284 (read_and_check_comp_unit_head): Move to comp-unit.c.
8285 (read_offset, dwarf_unit_type_name): Likewise.
8286 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8287 (cutu_reader::cutu_reader, read_call_site_scope)
8288 (find_partial_die, follow_die_offset): Update.
8289 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8290
24aa364d
TT
82912020-02-08 Tom Tromey <tom@tromey.com>
8292
8293 * dwarf2/read.c (read_offset_1): Move to leb.c.
8294 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8295 (dwarf_decode_macro_bytes): Update.
8296 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8297 * dwarf2/leb.h (read_offset): Declare.
8298
2c7d5afc
TT
82992020-02-08 Tom Tromey <tom@tromey.com>
8300
8301 * dwarf2/read.c (dwarf2_section_size): Remove.
8302 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8303 Update.
8304 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8305
4075cb26
TT
83062020-02-08 Tom Tromey <tom@tromey.com>
8307
8308 * dwarf2/read.c (read_initial_length): Move to leb.c.
8309 * dwarf2/leb.h (read_initial_length): Declare.
8310 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8311 handle_nonstd parameter.
8312 * dwarf2/frame.c (read_initial_length): Remove.
8313 (decode_frame_entry_1): Update.
8314
09ba997f
TT
83152020-02-08 Tom Tromey <tom@tromey.com>
8316
8317 * dwarf2/loc.c (dwarf2_find_location_expression)
8318 (dwarf_evaluate_loc_desc::get_tls_address)
8319 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8320 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8321 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8322 (dwarf2_compile_property_to_c)
8323 (dwarf2_loc_desc_get_symbol_read_needs)
8324 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8325 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8326 (loclist_describe_location, loclist_tracepoint_var_ref)
8327 (loclist_generate_c_location): Update.
8328 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8329 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8330 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8331 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8332 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8333 (dwarf2_per_cu_data::addr_size)
8334 (dwarf2_per_cu_data::ref_addr_size)
8335 (dwarf2_per_cu_data::text_offset)
8336 (dwarf2_per_cu_data::addr_type): Now methods.
8337 (per_cu_header_read_in): Make per_cu "const".
8338 (dwarf2_version): Remove.
8339 (dwarf2_per_cu_data::int_type): Now a method.
8340 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8341 (set_die_type, read_array_type, read_subrange_index_type)
8342 (read_tag_string_type, read_subrange_type): Update.
8343 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8344 offset_size, ref_addr_size, text_offset, addr_type, version,
8345 objfile, int_type, addr_sized_int_type>: Declare methods.
8346
96c738c0
TT
83472020-02-08 Tom Tromey <tom@tromey.com>
8348
8349 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8350 Move earlier.
8351
8fdd972c
TT
83522020-02-08 Tom Tromey <tom@tromey.com>
8353
8354 * dwarf2/read.h (dwarf_line_debug): Declare.
8355 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8356 * dwarf2/read.c: Move line_header code to new files.
8357 (dwarf_line_debug): No longer static.
8358 * dwarf2/line-header.c: New file.
8359 * dwarf2/line-header.h: New file.
8360
03075812
TT
83612020-02-08 Tom Tromey <tom@tromey.com>
8362
8363 * dwarf2/read.c (struct line_header) <file_full_name,
8364 file_file_name>: Return unique_xmalloc_ptr.
8365 (line_header::file_file_name): Update.
8366 (line_header::file_full_name): Update.
8367 (dw2_get_file_names_reader): Update.
8368 (macro_start_file): Update.
8369
bb822404
TT
83702020-02-08 Tom Tromey <tom@tromey.com>
8371
8372 * dwarf2/read.c (struct line_header) <file_full_name,
8373 file_file_name>: Declare methods.
8374 (dw2_get_file_names_reader): Update.
8375 (file_file_name): Now a method.
8376 (file_full_name): Likewise.
8377 (macro_start_file): Update.
8378
009b64fc
TT
83792020-02-08 Tom Tromey <tom@tromey.com>
8380
8381 * dwarf2/read.c (dwarf_always_disassemble)
8382 (show_dwarf_always_disassemble): Move to loc.c.
8383 (_initialize_dwarf2_read): Move "always-disassemble" registration
8384 to loc.c.
8385 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8386 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8387 static.
8388 (show_dwarf_always_disassemble): Move from read.c.
8389 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8390
5895093f
TT
83912020-02-08 Tom Tromey <tom@tromey.com>
8392
8393 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8394 (create_quick_file_names_table): Return htab_up.
8395 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8396 Update.
8397 * dwarf2/read.h (struct dwarf2_per_objfile)
8398 <quick_file_names_table>: Now htab_up.
8399
b3b32279
TT
84002020-02-08 Tom Tromey <tom@tromey.com>
8401
8402 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8403
1d33d811
TT
84042020-02-08 Tom Tromey <tom@tromey.com>
8405
8406 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8407 Rewrite.
8408 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8409 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8410 (abbrev_table::abbrev_table): No longer inline.
8411 (ABBREV_HASH_SIZE): Remove.
8412 (abbrev_table::m_abbrevs): Now an htab_up.
8413
86de1d91
TT
84142020-02-08 Tom Tromey <tom@tromey.com>
8415
8416 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8417 (cutu_reader): Update.
8418 (build_type_psymtabs_1): Update.
8419 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8420 (abbrev_table::alloc_abbrev): Update.
8421 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8422 (abbrev_table::read): New static method, renamed from
8423 abbrev_table_read_table.
8424 (abbrev_table::alloc_abbrev)
8425 (abbrev_table::add_abbrev): Now private.
8426 (abbrev_table::abbrev_table): Now private.
8427 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8428
0335378b
TT
84292020-02-08 Tom Tromey <tom@tromey.com>
8430
8431 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8432 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8433 htab_up.
8434
48b490f2
TT
84352020-02-08 Tom Tromey <tom@tromey.com>
8436
8437 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8438 htab_up.
8439 (lookup_dwo_unit_in_dwp): Update.
8440 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8441 on obstack.
8442
bc68fb19
TT
84432020-02-08 Tom Tromey <tom@tromey.com>
8444
8445 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8446 obstack.
8447
d15acc42
TT
84482020-02-08 Tom Tromey <tom@tromey.com>
8449
8450 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8451 line_header_hash.
8452 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8453 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8454 Change type to htab_up.
8455
eaa5fa8b
TT
84562020-02-08 Tom Tromey <tom@tromey.com>
8457
8458 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8459 htab_up. Don't allocate on obstack.
8460 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8461 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8462 Change type to htab_up.
8463
b0b6a987
TT
84642020-02-08 Tom Tromey <tom@tromey.com>
8465
8466 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8467 Change type to htab_up.
8468 * dwarf2/read.c (create_signatured_type_table_from_index)
8469 (create_signatured_type_table_from_debug_names)
8470 (create_all_type_units, add_type_unit)
8471 (lookup_dwo_signatured_type, lookup_signatured_type)
8472 (process_skeletonless_type_unit): Update.
8473 (create_debug_type_hash_table, create_debug_types_hash_table):
8474 Change type of types_htab.
8475 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8476 htab_up. Don't allocate on obstack.
8477 (create_cus_hash_table): Change type of cus_htab parameter.
8478 (struct dwo_file) <cus, tus>: Now htab_up.
8479 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8480 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8481 (queue_and_load_all_dwo_tus): Update.
8482 * dwarf2/index-write.c (write_gdbindex): Update.
8483 (write_debug_names): Update.
8484
39856def
TT
84852020-02-08 Tom Tromey <tom@tromey.com>
8486
8487 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8488 dwarf2/read.c. Remove "next" member. Add constructor ntad
8489 destructor.
8490 (struct dwarf2_per_objfile) <queue>: New member.
8491 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8492 dwarf2/read.h.
8493 (dwarf2_queue, dwarf2_queue_tail): Remove.
8494 (class dwarf2_queue_guard): Add parameter to constructor. Use
8495 DISABLE_COPY_AND_ASSIGN.
8496 <m_per_objfile>: New member.
8497 <~dwarf2_queue_guard>: Rewrite.
8498 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8499 Update.
8500 (~dwarf2_queue_item): New.
8501
3e225074
TT
85022020-02-08 Tom Tromey <tom@tromey.com>
8503
8504 * dwarf2/read.c (struct die_info) <has_children>: New member.
8505 (dw2_get_file_names_reader): Remove has_children.
8506 (dw2_get_file_names): Update.
8507 (read_cutu_die_from_dwo): Remove has_children.
8508 (cutu_reader::init_tu_and_read_dwo_dies)
8509 (cutu_reader::cutu_reader): Update.
8510 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8511 Remove has_children.
8512 (build_type_psymtabs_1, process_skeletonless_type_unit)
8513 (load_partial_comp_unit, load_full_comp_unit): Update.
8514 (create_dwo_cu_reader): Remove has_children.
8515 (create_cus_hash_table, read_die_and_children): Update.
8516 (read_full_die_1,read_full_die): Remove has_children.
8517 (read_signatured_type): Update.
8518 (class cutu_reader) <has_children>: Remove.
8519
82ca8957
TT
85202020-02-08 Tom Tromey <tom@tromey.com>
8521
8522 * dwarf2/expr.c: Rename from dwarf2expr.c.
8523 * dwarf2/expr.h: Rename from dwarf2expr.h.
8524 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8525 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8526 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8527 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8528 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8529 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8530 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8531 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8532 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8533 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8534 * dwarf2/loc.c: Rename from dwarf2loc.c.
8535 * dwarf2/loc.h: Rename from dwarf2loc.h.
8536 * dwarf2/read.c: Rename from dwarf2read.c.
8537 * dwarf2/read.h: Rename from dwarf2read.h.
8538 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8539 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8540 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8541 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8542 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8543 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8544 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8545 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8546 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8547 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8548 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8549 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8550 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8551 Update.
8552 * Makefile.in (COMMON_SFILES): Update.
8553 (HFILES_NO_SRCDIR): Update.
8554
9e35d499
TT
85552020-02-08 Tom Tromey <tom@tromey.com>
8556
8557 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8558 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8559
1eba2311
TT
85602020-02-08 Tom Tromey <tom@tromey.com>
8561
8562 * dwarf2read.h (struct die_info): Don't declare.
8563
e41c2da2
TT
85642020-02-08 Tom Tromey <tom@tromey.com>
8565
8566 * dwarf2read.h (die_info_ptr): Remove typedef.
8567
4fc6c0d5
TT
85682020-02-08 Tom Tromey <tom@tromey.com>
8569
8570 * dwarf2read.c (read_call_site_scope)
8571 (handle_data_member_location, dwarf2_add_member_fn)
8572 (mark_common_block_symbol_computed, read_common_block)
8573 (attr_to_dynamic_prop, partial_die_info::read)
8574 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8575 (dwarf2_symbol_mark_computed, set_die_type): Update.
8576 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8577 method.
8578 (attr_form_is_block): Don't declare.
8579 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8580
cd6c91b4
TT
85812020-02-08 Tom Tromey <tom@tromey.com>
8582
8583 * dwarf2read.c (dwarf2_find_base_address, )
8584 (read_call_site_scope, rust_containing_type)
8585 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8586 (handle_data_member_location, dwarf2_add_member_fn)
8587 (get_alignment, read_structure_type, process_structure_scope)
8588 (mark_common_block_symbol_computed, read_common_block)
8589 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8590 (partial_die_info::read, read_attribute_value, new_symbol)
8591 (lookup_die_type, dwarf2_get_ref_die_offset)
8592 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8593 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8594 (dwarf2_symbol_mark_computed): Update.
8595 * dwarf2/attribute.h (struct attribute) <value_as_address,
8596 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8597 methods.
8598 (value_as_address, attr_form_is_section_offset)
8599 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8600 * dwarf2/attribute.c (attribute::value_as_address)
8601 (attribute::form_is_section_offset, attribute::form_is_constant)
8602 (attribute::form_is_ref): Now methods.
8603
162dce55
TT
86042020-02-08 Tom Tromey <tom@tromey.com>
8605
8606 * dwarf2read.c (struct attribute, DW_STRING)
8607 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8608 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8609 (attr_form_is_block, attr_form_is_section_offset)
8610 (attr_form_is_constant, attr_form_is_ref): Move.
8611 * dwarf2/attribute.h: New file.
8612 * dwarf2/attribute.c: New file, from dwarf2read.c.
8613 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8614
3054dd54
TT
86152020-02-08 Tom Tromey <tom@tromey.com>
8616
8617 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8618 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8619 Move.
8620 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8621 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8622 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8623 abbrev.c.
8624 * dwarf2/abbrev.h: New file.
8625 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8626 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8627
96b79293
TT
86282020-02-08 Tom Tromey <tom@tromey.com>
8629
8630 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8631 (dwarf2_section_size, dwarf2_get_section_info)
8632 (create_signatured_type_table_from_debug_names)
8633 (create_addrmap_from_aranges, read_debug_names_from_section)
8634 (get_gdb_index_contents_from_section, read_comp_unit_head)
8635 (error_check_comp_unit_head, read_abbrev_offset)
8636 (create_debug_type_hash_table, init_cu_die_reader)
8637 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8638 (read_comp_units_from_section, create_cus_hash_table)
8639 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8640 (create_dwp_v2_section, dwarf2_rnglists_process)
8641 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8642 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8643 (read_indirect_string_from_dwz, read_addr_index_1)
8644 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8645 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8646 (fill_in_loclist_baton): Update.
8647 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8648 get_containing_section, get_bfd_owner, get_bfd_section,
8649 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8650 (dwarf2_read_section, get_section_name, get_section_file_name)
8651 (get_containing_section, get_section_bfd_owner)
8652 (get_section_bfd_section, get_section_name, get_section_file_name)
8653 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8654 declare.
8655 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8656 (dwarf2_section_info::get_bfd_owner)
8657 (dwarf2_section_info::get_bfd_section)
8658 (dwarf2_section_info::get_name)
8659 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8660 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8661 (dwarf2_section_info::read): Now methods.
8662 * dwarf-index-write.c (class debug_names): Update.
8663
2c86cff9
TT
86642020-02-08 Tom Tromey <tom@tromey.com>
8665
8666 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8667 Move to dwarf2/section.h.
8668 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8669 (get_section_bfd_section, get_section_name)
8670 (get_section_file_name, get_section_id, get_section_flags)
8671 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8672 dwarf2/section.c.
8673 * dwarf2/section.h: New file.
8674 * dwarf2/section.c: New file, from dwarf2read.c.
8675 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8676
f4382c45
TT
86772020-02-08 Tom Tromey <tom@tromey.com>
8678
8679 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8680 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8681 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8682 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8683 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8684 * dwarf2/leb.h: New file, from dwarf2read.c.
8685 * dwarf2/leb.c: New file, from dwarf2read.c.
8686 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8687 Remove.
8688 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8689 (COMMON_SFILES): Add dwarf2/leb.c.
8690
01840b7a
JB
86912020-02-08 Joel Brobecker <brobecker@adacore.com>
8692
8693 GDB 9.1 released.
8694
dfcb27e4
IB
86952020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8696
8697 PR gdb/25190:
aac66a4c
SM
8698 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8699 * gdb/remote.c (remote_console_output): Update.
8700 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8701 (ui_file_puts): ...this.
8702 * gdb/ui-file.h (ui_file_puts): Add declaration.
8703 * gdb/utils.c (emit_style_escape): Update.
8704 (flush_wrap_buffer): Update.
8705 (fputs_maybe_filtered): Update.
8706 (fputs_unfiltered): Add function.
dfcb27e4 8707
faa17681
IB
87082020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8709
aac66a4c
SM
8710 * gdb/event-loop.c (gdb_wait_for_event): Update.
8711 * gdb/printcmd.c (printf_command): Update.
8712 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8713 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8714 (gdb_os_flush_stderr): Update.
8715 * gdb/remote.c (remote_console_output): Update.
8716 * gdb/ui-file.c (gdb_flush): Rename to...
8717 (ui_file_flush): ...this.
8718 (stderr_file::write): Update.
8719 (stderr_file::puts): Update.
8720 * gdb/ui-file.h (gdb_flush): Rename to...
8721 (ui_file_flush): ...this.
8722 * gdb/utils.c (gdb_flush): Add function.
8723 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8724
5abbbe1d
TT
87252020-02-07 Tom Tromey <tromey@adacore.com>
8726
8727 PR breakpoints/24915:
8728 * source.c (find_and_open_source): Do not check basenames_may_differ.
8729
919adfe8
TT
87302020-02-07 Tom Tromey <tom@tromey.com>
8731
8732 * README: Update gdbserver documentation.
8733 * gdbserver: Move to top level.
8734 * configure.tgt (build_gdbserver): Remove.
8735 * configure.ac: Remove --enable-gdbserver.
8736 * configure: Rebuild.
8737 * Makefile.in (distclean): Don't mention gdbserver.
8738
1d5d29e7
SV
87392020-02-06 Shahab Vahedi <shahab@synopsys.com>
8740
8741 * source-cache.c (source_cache::ensure): Surround
8742 get_plain_source_lines with a try/catch.
8743 (source_cache::get_line_charpos): Get rid of try/catch
8744 and only check for the return value of "ensure".
8745 * tui/tui-source.c (tui_source_window::set_contents):
8746 Simplify "nlines" calculation.
8747
6eb1129c
SV
87482020-02-06 Shahab Vahedi <shahab@synopsys.com>
8749
8750 * MAINTAINERS (Write After Approval): Add myself.
8751
c6a42d11
CB
87522020-02-05 Christian Biesinger <cbiesinger@google.com>
8753
8754 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8755 function call.
8756
c8ecdda6
CB
87572020-02-05 Christian Biesinger <cbiesinger@google.com>
8758
8759 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8760
f6480e70
MR
87612020-02-05 Maciej W. Rozycki <macro@wdc.com>
8762
8763 * nat/riscv-linux-tdesc.h: New file.
8764 * nat/riscv-linux-tdesc.c: New file, taking code from...
8765 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8766 ... here.
8767 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8768 NATDEPFILES.
8769
dcc9fbc6
AB
87702020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8771
8772 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8773 we don't set the fake simulator ptid to the null_ptid.
8774
719546c4
SM
87752020-02-03 Simon Marchi <simon.marchi@efficios.com>
8776
8777 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8778 * gdbthread.h (class thread_info) <resumed>: Likewise.
8779 * infrun.c (resume_1): Likewise.
8780 (proceed): Likewise.
8781 (infrun_thread_stop_requested): Likewise.
8782 (stop_all_threads): Likewise.
8783 (handle_inferior_event): Likewise.
8784 (restart_threads): Likewise.
8785 (finish_step_over): Likewise.
8786 (keep_going_stepped_thread): Likewise.
8787 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8788 (linux_handle_extended_wait): Likewise.
8789 * record-btrace.c (get_thread_current_frame_id): Likewise.
8790 * record-full.c (record_full_wait_1): Likewise.
8791 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8792 * target.c (target_resume): Likewise.
8793 * thread.c (set_running_thread): Likewise.
8794
e409c542
AKS
87952020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8796
8797 * f-valprint.c (f77_print_array_1): Changed datatype of index
8798 variable to LONGEST from int to enable it to contain bound
8799 values correctly.
8800
ee98c0da
MR
88012020-02-03 Maciej W. Rozycki <macro@wdc.com>
8802
8803 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8804 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8805 offsets according to FLEN determined.
8806 (riscv_linux_nat_target::read_description): Determine FLEN
8807 dynamically.
8808 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8809 according to FLEN determined.
8810 (riscv_linux_nat_target::store_registers): Likewise.
8811
aa66aac4
SV
88122020-02-01 Shahab Vahedi <shahab@synopsys.com>
8813
8814 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8815 when reg->group is empty and reggroup is not.
8816
fd9faca8
TT
88172020-01-31 Tom Tromey <tromey@adacore.com>
8818
8819 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8820 Call beneath target's mourn_inferior after unpushing.
8821
42330a68
AB
88222020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8823
8824 PR tui/9765
8825 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8826 have enough lines to fill the screen, still return the lowest
8827 address we found.
8828
7a27a45b
AB
88292020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8830
8831 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8832 '-', '<', and '>' commands.
8833
c47f70e2
PA
88342020-01-29 Pedro Alves <palves@redhat.com>
8835 Sergio Durigan Junior <sergiodj@redhat.com>
8836
8837 * infcmd.c (construct_inferior_arguments): Assert that
8838 'argc' is greater than 0.
8839
5133a315
LM
88402020-01-29 Luis Machado <luis.machado@linaro.org>
8841
8842 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8843 (BRK_INSN_MASK): Define to 0xd4200000.
8844 (aarch64_program_breakpoint_here_p): New function.
8845 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8846 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8847 breakpoint.c.
8848 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8849 breakpoint.h
8850 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8851 call gdbarch_program_breakpoint_here_p.
8852 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8853 default_program_breakpoint_here_p, changed return type to bool and
8854 simplified.
8855 * breakpoint.h (program_breakpoint_here): Moved prototype to
8856 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8857 return type to bool.
8858 * gdbarch.c: Regenerate.
8859 * gdbarch.h: Regenerate.
8860 * gdbarch.sh (program_breakpoint_here_p): New method.
8861 * infrun.c (handle_signal_stop): Call
8862 gdbarch_program_breakpoint_here_p.
8863
168f8c6b
TT
88642020-01-26 Tom Tromey <tom@tromey.com>
8865
8866 * ctfread.c (struct ctf_fp_info): Reindent.
8867 (_initialize_ctfread): Remove.
8868
128a391f
TT
88692020-01-26 Tom Tromey <tom@tromey.com>
8870
8871 * psymtab.c (partial_map_expand_apply)
8872 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8873 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8874 (psym_print_stats, psym_expand_symtabs_for_function)
8875 (psym_map_symbol_filenames, psym_map_matching_symbols)
8876 (psym_expand_symtabs_matching)
8877 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8878 (maintenance_check_psymtabs): Use new methods.
8879 * psympriv.h (struct partial_symtab) <readin_p,
8880 get_compunit_symtab>: New methods.
8881 <readin, compunit_symtab>: Remove members.
8882 (struct standard_psymtab): New.
8883 (struct legacy_psymtab): Derive from standard_psymtab.
8884 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8885 standard_psymtab.
8886 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8887
0494dbec
TT
88882020-01-26 Tom Tromey <tom@tromey.com>
8889
8890 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8891 read_dependencies. Add assert.
8892 * psymtab.c (partial_symtab::read_dependencies): New method.
8893 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8894 method.
8895 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8896 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8897 read_dependencies.
8898 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8899 Add assert.
8900
8566b89b
TT
89012020-01-26 Tom Tromey <tom@tromey.com>
8902
8903 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8904 Call expand_psymtab.
8905 (xcoff_read_symtab): Call expand_psymtab.
8906 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8907 legacy_expand_psymtab.
8908 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8909 method.
8910 (struct legacy_psymtab) <expand_psymtab>: Implement.
8911 <legacy_expand_psymtab>: New member.
8912 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8913 (parse_partial_symbols): Set legacy_expand_psymtab.
8914 (psymtab_to_symtab_1): Change argument order. Call
8915 expand_psymtab.
8916 (new_psymtab): Set legacy_expand_psymtab.
8917 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8918 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8919 expand_psymtab.
8920 (dwarf2_psymtab::expand_psymtab): Rename from
8921 psymtab_to_symtab_1. Call expand_psymtab.
8922 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8923 (dbx_end_psymtab): Likewise.
8924 (dbx_psymtab_to_symtab_1): Change argument order. Call
8925 expand_psymtab.
8926 (dbx_read_symtab): Call expand_psymtab.
8927 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8928 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8929 (ctf_psymtab::read_symtab): Call expand_psymtab.
8930
077cbab2
TT
89312020-01-26 Tom Tromey <tom@tromey.com>
8932
8933 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8934 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8935 messages.
8936 * mdebugread.c (mdebug_read_symtab): Remove prints.
8937 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8938 assert.
8939 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8940
891813be
TT
89412020-01-26 Tom Tromey <tom@tromey.com>
8942
8943 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8944 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8945 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8946 legacy_symtab.
8947 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8948 * psymtab.c (psymtab_to_symtab): Call method.
8949 (dump_psymtab): Update.
8950 * psympriv.h (struct partial_symtab): Add virtual destructor.
8951 <read_symtab>: New method.
8952 (struct legacy_symtab): New.
8953 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8954 (struct pst_map) <pst>: Now a legacy_psymtab.
8955 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8956 (new_psymtab): Use legacy_psymtab.
8957 * dwarf2read.h (struct dwarf2_psymtab): New.
8958 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8959 * dwarf2read.c (dwarf2_create_include_psymtab)
8960 (dwarf2_build_include_psymtabs, create_type_unit_group)
8961 (create_partial_symtab, process_psymtab_comp_unit_reader)
8962 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8963 (set_partial_user): Use dwarf2_psymtab.
8964 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8965 (psymtab_to_symtab_1, process_full_comp_unit)
8966 (process_full_type_unit, dwarf2_ranges_read)
8967 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8968 (dwarf_decode_lines): Use dwarf2_psymtab.
8969 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8970 (add_address_entry_worker, write_one_signatured_type)
8971 (recursively_count_psymbols, recursively_write_psymbols)
8972 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8973 (write_debug_names): Likewise.
8974 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8975 <pst>: Now a legacy_psymtab.
8976 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8977 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8978 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8979 * ctfread.c (struct ctf_psymtab): New.
8980 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8981 ctf_psymtab.
8982 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8983 (create_partial_symtab): Return a ctf_psymtab.
8984 (scan_partial_symbols): Update.
8985
c3693a1d
TT
89862020-01-26 Tom Tromey <tom@tromey.com>
8987
8988 * xcoffread.c (xcoff_start_psymtab): Use new.
8989 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8990 renamed from start_psymtab_common.
8991 * psympriv.h (struct partial_symtab): Add new constructor.
8992 (start_psymtab_common): Don't declare.
8993 * mdebugread.c (parse_partial_symbols): Use new.
8994 * dwarf2read.c (create_partial_symtab): Use new.
8995 * dbxread.c (start_psymtab): Use new.
8996 * ctfread.c (create_partial_symtab): Use new.
8997
32caafd0
TT
89982020-01-26 Tom Tromey <tom@tromey.com>
8999
9000 * xcoffread.c (xcoff_end_psymtab): Use new.
9001 * psymtab.c (start_psymtab_common): Use new.
9002 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9003 Update.
9004 * psympriv.h (struct partial_symtab): Add parameters to
9005 constructor. Don't inline.
9006 (allocate_psymtab): Don't declare.
9007 * mdebugread.c (new_psymtab): Use new.
9008 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9009 * dbxread.c (dbx_end_psymtab): Use new.
9010
abaa2f23
TT
90112020-01-26 Tom Tromey <tom@tromey.com>
9012
9013 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9014 allocate_psymtab. Update documentation.
9015 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9016 allocate_psymtab. Do not use new.
9017 (allocate_psymtab): Use new. Update.
9018
6d94535f
TT
90192020-01-26 Tom Tromey <tom@tromey.com>
9020
9021 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9022 * psymtab.c (psym_print_stats): Update.
9023 * psympriv.h (struct partial_symtab) <readin,
9024 psymtabs_addrmap_supported, anonymous>: Now bool.
9025 * mdebugread.c (psymtab_to_symtab_1): Update.
9026 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9027 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9028 (process_full_comp_unit, process_full_type_unit): Update.
9029 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9030 * ctfread.c (psymtab_to_symtab): Update.
9031
6f17252b
TT
90322020-01-26 Tom Tromey <tom@tromey.com>
9033
9034 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9035 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9036 * psymtab.c (psymtab_storage): Delete psymtabs.
9037 (psymtab_storage::allocate_psymtab): Use new.
9038 (psymtab_storage::discard_psymtab): Use delete.
9039 * psympriv.h (struct partial_symtab): Add constructor and
9040 initializers.
9041
f6f1cebc
TT
90422020-01-26 Tom Tromey <tom@tromey.com>
9043
9044 * machoread.c: Do not include psympriv.h.
9045
e47e48f6
PW
90462020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9047
9048 * NEWS: Mention the new option and the set/show commands.
9049
a2fedca9
PW
90502020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9051
9052 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9053 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9054 (validate_exec_file): New variables, enums, functions.
9055 (exec_file_locate_attach, print_section_info): Style the filenames.
9056 (_initialize_exec): Install show_exec_file_mismatch_command and
9057 set_exec_file_mismatch_command.
9058 * gdbcore.h (validate_exec_file): Declare.
9059 * infcmd.c (attach_command): Call validate_exec_file.
9060 * remote.c ( remote_target::remote_add_inferior): Likewise.
9061
7ffa82e1
AB
90622020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9063
9064 * frame.c (find_frame_sal): Move call to get_next_frame into more
9065 inner scope.
9066 * inline-frame.c (inilne_state) <inline_state>: Update argument
9067 types.
9068 (inilne_state) <skipped_symbol>: Rename to...
9069 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9070 (skip_inline_frames): Build vector of skipped symbols and use this
9071 to reate the inline_state.
9072 (inline_skipped_symbol): Add a comment and some assertions, fetch
9073 skipped symbol from the list.
9074
3d92a3e3
AB
90752020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9076
9077 * buildsym.c (lte_is_less_than): Delete.
9078 (buildsym_compunit::end_symtab_with_blockvector): Create local
9079 lambda function to sort line table entries, and use
9080 std::stable_sort instead of std::sort.
9081 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9082 markers when looking for a previous line.
9083
94a72be7
AB
90842020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9085
9086 * dwarf2read.c (lnp_state_machine::record_line): Include
9087 end_sequence parameter in debug print out. Record the line if we
9088 are at an end_sequence marker even if it's not the start of a
9089 statement.
9090 * symmisc.c (maintenance_print_one_line_table): Print end of
9091 sequence markers with 'END' not '0'.
9092
53af73bf
PA
90932020-01-24 Pedro Alves <palves@redhat.com>
9094
9095 PR gdb/25410
9096 * thread.c (scoped_restore_current_thread::restore): Use
9097 switch_to_inferior_no_thread.
9098 * exec.c: Include "progspace-and-thread.h".
9099 (add_target_sections, remove_target_sections):
9100 scoped_restore_current_pspace_and_thread instead of
9101 scoped_restore_current_thread.
9102 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9103 and aspace to the inferior before calling clone_program_space.
9104 Remove stale comment.
9105
3050c6f4
CB
91062020-01-24 Christian Biesinger <cbiesinger@google.com>
9107
9108 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9109 (arm_netbsd_nat_target::fetch_registers): ...this.
9110 (arm_nbsd_nat_target::store_registers): Rename to...
9111 (arm_netbsd_nat_target::store_registers): ...this.
9112
73685c7e
CB
91132020-01-24 Christian Biesinger <cbiesinger@google.com>
9114
9115 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9116 register_t.
9117
89203d40
CB
91182020-01-24 Christian Biesinger <cbiesinger@google.com>
9119
9120 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9121 Update comment.
9122 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9123 Likewise.
9124 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9125 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9126 the correct replacement (iterate_over_regset_sections).
9127 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9128 Update comment.
9129
1ba1ac88
AB
91302020-01-24 Graham Markall <graham.markall@embecosm.com>
9131
9132 PR gdb/23718
9133 * gdb/python/python.c (execute_gdb_command): Call
9134 async_enable_stdin in catch block.
9135
f3364a6d
AB
91362020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9137
9138 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9139 SWITCH_THRU_ALL_UIS.
9140
733d0a67
AB
91412020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9142
9143 PR tui/9765
9144 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9145 comment, add extra parameter, and update to store previous symbol
9146 when appropriate.
9147 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9148 add extra parameter.
9149 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9150 remove unneeded parameter, add try/catch around gdb_print_insn,
9151 rewrite to add items to asm_lines vector.
9152 (tui_find_backward_disassembly_start_address): New function.
9153 (tui_find_disassembly_address): Updated throughout.
9154 (tui_disasm_window::set_contents): Update for changes to
9155 tui_disassemble.
9156 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9157 number of lines to scroll.
9158
b3b3bada
SM
91592020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9160
9161 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9162 (SECT_OFF_DATA): Likewise.
9163 (SECT_OFF_RODATA): Likewise.
9164 (SECT_OFF_TEXT): Likewise.
9165 (SECT_OFF_BSS): Likewise.
9166 (struct objfile) <text_section_offset, data_section_offset>: New
9167 methods.
9168 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9169 objfile::text_section_offset.
9170 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9171 * coffread.c (coff_symtab_read): Likewise.
9172 (enter_linenos): Likewise.
9173 (process_coff_symbol): Likewise.
9174 * ctfread.c (get_objfile_text_range): Likewise.
9175 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9176 Use objfile::data_section_offset.
9177 * dwarf2-frame.c (execute_cfa_program): Use
9178 objfile::text_section_offset.
9179 (dwarf2_frame_find_fde): Likewise.
9180 * dwarf2read.c (create_addrmap_from_index): Likewise.
9181 (create_addrmap_from_aranges): Likewise.
9182 (dw2_find_pc_sect_compunit_symtab): Likewise.
9183 (process_psymtab_comp_unit_reader): Likewise.
9184 (add_partial_symbol): Likewise.
9185 (add_partial_subprogram): Likewise.
9186 (process_full_comp_unit): Likewise.
9187 (read_file_scope): Likewise.
9188 (read_func_scope): Likewise.
9189 (read_lexical_block_scope): Likewise.
9190 (read_call_site_scope): Likewise.
9191 (dwarf2_rnglists_process): Likewise.
9192 (dwarf2_ranges_process): Likewise.
9193 (dwarf2_ranges_read): Likewise.
9194 (dwarf_decode_lines_1): Likewise.
9195 (new_symbol): Likewise.
9196 (dwarf2_fetch_die_loc_sect_off): Likewise.
9197 (dwarf2_per_cu_text_offset): Likewise.
9198 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9199 * hppa-tdep.c (read_unwind_info): Likewise.
9200 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9201 * psympriv.h (struct partial_symtab): Likewise.
9202 * psymtab.c (find_pc_sect_psymtab): Likewise.
9203 * solib-svr4.c (enable_break): Likewise.
9204 * stap-probe.c (relocate_address): Use
9205 objfile::data_section_offset.
9206 * xcoffread.c (enter_line_range): Use
9207 objfile::text_section_offset.
9208 (read_xcoff_symtab): Likewise.
9209
ab53f382
SM
92102020-01-23 Simon Marchi <simon.marchi@efficios.com>
9211
9212 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9213 declaration to narrower scopes.
9214
e7eee665
SM
92152020-01-23 Simon Marchi <simon.marchi@efficios.com>
9216
9217 * darwin-nat.h (struct darwin_exception_msg, enum
9218 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9219 Move up.
9220 (class darwin_nat_target) <wait_1, check_new_threads,
9221 decode_exception_message, decode_message, stop_inferior,
9222 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9223 * darwin-nat.c (darwin_check_new_threads): Rename to...
9224 (darwin_nat_target::check_new_threads): ... this.
9225 (darwin_suspend_inferior_it): Remove.
9226 (darwin_decode_exception_message): Rename to...
9227 (darwin_nat_target::decode_exception_message): ... this.
9228 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9229 (darwin_decode_message): Rename to...
9230 (darwin_nat_target::decode_message): ... this.
9231 (cancel_breakpoint): Rename to...
9232 (darwin_nat_target::cancel_breakpoint): ... this.
9233 (darwin_wait): Rename to...
9234 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9235 instead of iterate_over_inferiors.
9236 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9237 (darwin_stop_inferior): Rename to...
9238 (darwin_nat_target::stop_inferior): ... this.
9239 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9240 (darwin_init_thread_list): Rename to...
9241 (darwin_nat_target::init_thread_list): ... this.
9242 (darwin_ptrace_him): Rename to...
9243 (darwin_nat_target::ptrace_him): ... this.
9244 (darwin_nat_target::create_inferior): Pass lambda function to
9245 fork_inferior.
9246 (darwin_nat_target::detach): Call stop_inferior instead of
9247 darwin_stop_inferior.
9248 * fork-inferior.h (fork_inferior): Change init_trace_fun
9249 parameter to gdb::function_view.
9250 * fork-inferior.c (fork_inferior): Likewise.
9251
c162ed3e
HD
92522020-01-23 Hannes Domani <ssbssa@yahoo.de>
9253
9254 * i386-cygwin-tdep.c (core_process_module_section): Update.
9255 * windows-nat.c (struct lm_info_windows): Add text_offset.
9256 (windows_xfer_shared_libraries): Update.
9257 * windows-tdep.c (windows_xfer_shared_library):
9258 Add text_offset_cached argument.
9259 * windows-tdep.h (windows_xfer_shared_library): Update.
9260
a1237872
SM
92612020-01-21 Simon Marchi <simon.marchi@efficios.com>
9262
9263 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9264
b3ee6dd9
SM
92652020-01-21 Simon Marchi <simon.marchi@efficios.com>
9266
9267 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9268 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9269 replace with range-based for.
9270 (gdbsim_interrupt_inferior): Remove.
9271 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9272 with a range-based for. Inline code from
9273 gdbsim_interrupt_inferior.
9274
f9fac3c8
SM
92752020-01-21 Simon Marchi <simon.marchi@efficios.com>
9276
9277 * infrun.c (proceed): Fix indentation.
9278
f6474de9
TT
92792020-01-21 Tom Tromey <tromey@adacore.com>
9280
9281 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9282 * python/python.c (python_extension_ops): Update.
9283 (gdbpy_colorize): New function.
9284 * python/lib/gdb/__init__.py (colorize): New function.
9285 * extension.h (ext_lang_colorize): Declare.
9286 * extension.c (ext_lang_colorize): New function.
9287 * extension-priv.h (struct extension_language_ops) <colorize>: New
9288 member.
9289 * cli/cli-style.c (_initialize_cli_style): Update help text.
9290
f0c702d4
LM
92912020-01-21 Luis Machado <luis.machado@linaro.org>
9292
9293 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9294 <cond>: Change type to bool.
9295 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9296 (aarch64_displaced_step_cb): Likewise.
9297 (aarch64_displaced_step_tb): Likewise.
9298
1ab139e5
LM
92992020-01-21 Luis Machado <luis.machado@linaro.org>
9300
9301 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9302 output.
9303
0c271889
LM
93042020-01-21 Luis Machado <luis.machado@linaro.org>
9305
9306 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9307 <pc_adjust>: Adjust the documentation.
9308 (aarch64_displaced_step_fixup): Check if PC really moved before
9309 adjusting it.
9310
4d89c1c7
TT
93112020-01-19 Tom Tromey <tom@tromey.com>
9312
9313 * disasm.c (~gdb_disassembler): New destructor.
9314 (gdb_buffered_insn_length): Call disassemble_free_target.
9315 * disasm.h (class gdb_disassembler): Declare destructor. Use
9316 DISABLE_COPY_AND_ASSIGN.
9317
c0ab21c2
TT
93182020-01-19 Tom Tromey <tom@tromey.com>
9319
9320 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9321 (die_reader_func_ftype): Remove.
9322 (cutu_reader): New class.
9323 (dw2_get_file_names_reader): Remove "data" parameter.
9324 (dw2_get_file_names): Use cutu_reader.
9325 (create_debug_type_hash_table): Update.
9326 (read_cutu_die_from_dwo): Update comment.
9327 (lookup_dwo_unit): Add dwo_name parameter.
9328 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9329 die_reader_func_ftype and data parameters.
9330 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9331 Remove die_reader_func_ftype and data parameters.
9332 (~cutu_reader): New; from init_cutu_and_read_dies.
9333 (cutu_reader::cutu_reader): Rename from
9334 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9335 and data parameters.
9336 (init_cutu_and_read_dies_simple): Remove.
9337 (struct process_psymtab_comp_unit_data): Remove.
9338 (process_psymtab_comp_unit_reader): Remove data parameter; add
9339 want_partial_unit and pretend_language parameters.
9340 (process_psymtab_comp_unit): Use cutu_reader.
9341 (build_type_psymtabs_reader): Remove data parameter.
9342 (build_type_psymtabs_1): Use cutu_reader.
9343 (process_skeletonless_type_unit): Likewise.
9344 (load_partial_comp_unit_reader): Remove.
9345 (load_partial_comp_unit): Use cutu_reader.
9346 (load_full_comp_unit_reader): Remove.
9347 (load_full_comp_unit): Use cutu_reader.
9348 (struct create_dwo_cu_data): Remove.
9349 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9350 dwo_unit parameters.
9351 (create_cus_hash_table): Use cutu_reader.
9352 (struct dwarf2_read_addr_index_data): Remove.
9353 (dwarf2_read_addr_index_reader): Remove.
9354 (dwarf2_read_addr_index): Use cutu_reader.
9355 (read_signatured_type_reader): Remove.
9356 (read_signatured_type): Use cutu_reader.
9357
45bbae5c
TT
93582020-01-19 Tom Tromey <tom@tromey.com>
9359
9360 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9361 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9362 (tui_wrefresh): Declare.
9363 * tui/tui-wingeneral.c (suppress_output): New global.
9364 (tui_suppress_output, ~tui_suppress_output): New constructor and
9365 destructor.
9366 (tui_wrefresh): New function.
9367 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9368 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9369 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9370 method.
9371 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9372 tui_wrefresh.
9373 (tui_data_window::no_refresh): New method.
9374 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9375 (tui_reg_command): Use tui_suppress_output
9376 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9377 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9378 method.
9379 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9380
4f13c1c0
TT
93812020-01-19 Tom Tromey <tom@tromey.com>
9382
9383 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9384 Handle case where symtab is null.
9385
fa47e446
SM
93862020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9387
9388 * linux-fork.c (one_fork_p): Simplify.
9389
26f42329
SM
93902020-01-17 Simon Marchi <simon.marchi@efficios.com>
9391
9392 * top.c (struct qt_args): Remove.
9393 (kill_or_detach): Change return type to void, replace `void *`
9394 parameter with a proper one.
9395 (print_inferior_quit_action): Likewise.
9396 (quit_confirm): Use range-based for loop to iterate over inferiors.
9397 (quit_force): Likewise.
9398
a9ac81b1
SM
93992020-01-17 Simon Marchi <simon.marchi@efficios.com>
9400
9401 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9402 `void *` parameter with proper parameters.
9403 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9404 (print_one_inferior): Change return type to void, replace `void *`
9405 parameter with proper parameters.
9406 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9407 inferiors.
9408 (get_other_inferior): Remove.
9409 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9410 inferiors.
9411
788eca49
SM
94122020-01-17 Simon Marchi <simon.marchi@efficios.com>
9413
9414 * mi/mi-interp.c (report_initial_inferior): Remove.
9415 (mi_interp::init): Use range-based for to iterate over inferiors.
9416
d9bc85b6
SM
94172020-01-17 Simon Marchi <simon.marchi@efficios.com>
9418
9419 * python/py-inferior.c (build_inferior_list): Remove.
9420 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9421
40c94099
CB
94222020-01-16 Christian Biesinger <cbiesinger@google.com>
9423
9424 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9425 (btrace_stitch_trace): Likewise.
9426 * charset.c (intermediate_encoding): Likewise (vaild).
9427 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9428 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9429 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9430
e0cdfe3c
HD
94312020-01-16 Hannes Domani <ssbssa@yahoo.de>
9432
9433 * windows-tdep.c (windows_get_tlb_type):
9434 Add rtl_user_process_parameters type.
9435
790f1718 94362020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9437 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9438
9439 PR build/24805
9440 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9441 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9442 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9443 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9444 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9445 (ps_plog): Redeclare exported functions with default visibility.
9446
3112ed97
NA
94472020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9448
9449 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9450 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9451
8dc3273e
SM
94522020-01-15 Simon Marchi <simon.marchi@efficios.com>
9453
9454 * infcmd.c (post_create_inferior): Use get_thread_regcache
9455 instead of get_current_regcache.
9456
ff47f4f0
TT
94572020-01-14 Tom Tromey <tom@tromey.com>
9458
9459 PR symtab/12535:
9460 * python/python.c (gdbpy_decode_line): Treat empty string the same
9461 as no argument.
9462
975f45b7
TT
94632020-01-14 Tom Tromey <tom@tromey.com>
9464
9465 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9466
25e57356
TT
94672020-01-14 Tom Tromey <tom@tromey.com>
9468
9469 * nat/linux-btrace.c: Don't include <config.h>.
9470 * nat/linux-ptrace.c: Don't include <config.h>.
9471 * nat/x86-linux-dregs.c: Don't include <config.h>.
9472
05ea2a05
TT
94732020-01-14 Tom Tromey <tom@tromey.com>
9474
9475 * configure: Rebuild.
9476 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9477
01027315
TT
94782020-01-14 Tom Tromey <tom@tromey.com>
9479
9480 * nat/x86-linux-dregs.c: Include configh.h.
9481 * nat/linux-ptrace.c: Include configh.h.
9482 * nat/linux-btrace.c: Include configh.h.
9483 * defs.h: Include config.h, bfd.h.
9484 * configure.ac: Don't source common.host.
9485 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9486 * configure: Rebuild.
9487 * acinclude.m4: Update path.
9488 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9489 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9490 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9491 (CLIBS): Add LIBSUPPORT.
9492 (CDEPS): Likewise.
9493 (COMMON_SFILES): Remove gdbsupport files.
9494 (HFILES_NO_SRCDIR): Likewise.
9495 (stamp-version): Update path to create-version.sh.
9496 (ALLDEPFILES): Remove gdbsupport files.
9497
b2ceabe8
TT
94982020-01-14 Tom Tromey <tom@tromey.com>
9499
9500 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9501 USE_WIN32API when needed.
9502 * configure.ac (USE_WIN32API): Don't define.
9503 (WIN32LIBS): Use WIN32APILIBS.
9504 * configure: Rebuild.
9505
25c51f71
TT
95062020-01-14 Tom Tromey <tom@tromey.com>
9507
9508 * configure: Rebuild.
9509 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9510
717c684d
BE
95112020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9512
9513 * skip.c (skip_function_command): Make skip w/o arguments use the
9514 name of the inlined function if pc is inside any inlined function.
9515
7da6a5b9
LM
95162020-01-14 Luis Machado <luis.machado@linaro.org>
9517
9518 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9519 * infrun.c (resume_1): Likewise.
9520 (handle_inferior_event): Remove stale comment.
9521 * linux-nat.c (linux_nat_target::resume): Update comments.
9522 (save_stop_reason): Likewise.
9523 (linux_nat_filter_event): Likewise.
9524 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9525
44e4c775
AB
95262020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9527
9528 * elfread.c (record_minimal_symbol): Set section index to 0 for
9529 non-allocatable sections.
9530
18a8505e
AT
9531
95322020-01-13 Ali Tamur <tamur@google.com>
9533
9534 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9535 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9536 to gdb::optional. Update comments.
9537 (dwo_file): Update comments.
9538 (read_attribute): Update API to take an additional out parameter,
9539 need_reprocess. This is used to mark attributes that need other
9540 attributes (e.g. str_offsets_base) for correct computation which may not
9541 have been read yet.
9542 (read_attribute_reprocess): New function declaration.
9543 (read_addr_index): Likewise.
9544 (read_dwo_str_index): Likewise.
9545 (read_stub_str_index): Likewise.
9546 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9547 (lookup_addr_base): New function definition.
9548 (lookup_ranges_base): Likewise.
9549 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9550 lookup_ranges_base.
9551 (init_cutu_and_read_dies): Update comments.
9552 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9553 unit. This is used to inherit parent's str_offsets_base and addr_base.
9554 Update comments.
9555 (init_cutu_and_read_dies_simple): Reflect API changes.
9556 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9557 (create_cus_hash_table): Change API to take parent compile unit.
9558 Reflect API changes.
9559 (open_and_init_dwo_file): Reflect API changes.
9560 (dwarf2_get_pc_bounds): Update comments.
9561 (dwarf2_record_block_ranges): Likewise.
9562 (read_full_die_1): Change implementation to reprocess attributes that
9563 need str_offsets_base and addr_base.
9564 (partial_die_info::read): Likewise.
9565 (read_attribute_reprocess): New function definition.
9566 (read_attribute_value): Change API to take an additional out parameter,
9567 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9568 when a non-dwo compile unit has index based attributes.
9569 (read_attribute): Reflect API changes.
9570 (read_addr_index_1): Reflect API changes. Update comments.
9571 (dwarf2_read_addr_index_data): Reflect API changes.
9572 (dwarf2_read_addr_index): Likewise.
9573 (read_str_index): Change API and implementation. This becomes a helper
9574 to be used by the new string index related methods. Update error
9575 message and comments.
9576 (read_dwo_str_index): New function definition.
9577 (read_stub_str_index): Likewise.
9578 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9579 * symfile.h (dwarf2_debug_sections): Likewise.
9580 * xcoffread.c (dwarf2_debug_sections): Likewise.
9581
0cac9354
SM
95822020-01-13 Simon Marchi <simon.marchi@efficios.com>
9583
9584 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9585 core_reg_sect type to gdb_byte *.
9586 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9587 * cris-tdep.c (fetch_core_registers): Likewise.
9588 * corelow.c (core_target::get_core_register_section): Change
9589 type of `contents` to gdb::byte_vector.
9590
9a6d629c
AB
95912020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9592
9593 * tui/tui-wingeneral.c (box_win): Position the title in the center
9594 of the border.
9595
d8b2f9e3
SM
95962020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9597
9598 * corelow.c (core_target::get_core_register_section): Use
9599 std::vector instead of alloca.
9600
bb564c58
SM
96012020-01-13 Simon Marchi <simon.marchi@efficios.com>
9602
9603 * warning.m4: Add -Wmissing-declarations to build_warnings.
9604 * configure: Re-generate.
9605
6b366111
SM
96062020-01-13 Simon Marchi <simon.marchi@efficios.com>
9607
9608 * python/python.c (init__gdb_module): Add declaration.
9609
6c265988
SM
96102020-01-13 Simon Marchi <simon.marchi@efficios.com>
9611
9612 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9613 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9614 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9615 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9616 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9617 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9618 * ada-exp.y (_initialize_ada_exp): Add declaration.
9619 * ada-lang.c (_initialize_ada_language): Add declaration.
9620 * ada-tasks.c (_initialize_tasks): Add declaration.
9621 * agent.c (_initialize_agent): Add declaration.
9622 * aix-thread.c (_initialize_aix_thread): Add declaration.
9623 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9624 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9625 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9626 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9627 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9628 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9629 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9630 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9631 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9632 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9633 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9634 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9635 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9636 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9637 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9638 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9639 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9640 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9641 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9642 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9643 * annotate.c (_initialize_annotate): Add declaration.
9644 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9645 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9646 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9647 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9648 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9649 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9650 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9651 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9652 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9653 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9654 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9655 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9656 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9657 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9658 * auto-load.c (_initialize_auto_load): Add declaration.
9659 * auxv.c (_initialize_auxv): Add declaration.
9660 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9661 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9662 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9663 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9664 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9665 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9666 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9667 * breakpoint.c (_initialize_breakpoint): Add declaration.
9668 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9669 * btrace.c (_initialize_btrace): Add declaration.
9670 * charset.c (_initialize_charset): Add declaration.
9671 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9672 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9673 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9674 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9675 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9676 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9677 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9678 * coffread.c (_initialize_coffread): Add declaration.
9679 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9680 * compile/compile.c (_initialize_compile): Add declaration.
9681 * complaints.c (_initialize_complaints): Add declaration.
9682 * completer.c (_initialize_completer): Add declaration.
9683 * copying.c (_initialize_copying): Add declaration.
9684 * corefile.c (_initialize_core): Add declaration.
9685 * corelow.c (_initialize_corelow): Add declaration.
9686 * cp-abi.c (_initialize_cp_abi): Add declaration.
9687 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9688 * cp-support.c (_initialize_cp_support): Add declaration.
9689 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9690 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9691 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9692 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9693 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9694 * ctfread.c (_initialize_ctfread): Add declaration.
9695 * d-lang.c (_initialize_d_language): Add declaration.
9696 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9697 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9698 * dbxread.c (_initialize_dbxread): Add declaration.
9699 * dcache.c (_initialize_dcache): Add declaration.
9700 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9701 * disasm.c (_initialize_disasm): Add declaration.
9702 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9703 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9704 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9705 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9706 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9707 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9708 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9709 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9710 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9711 * elfread.c (_initialize_elfread): Add declaration.
9712 * exec.c (_initialize_exec): Add declaration.
9713 * extension.c (_initialize_extension): Add declaration.
9714 * f-lang.c (_initialize_f_language): Add declaration.
9715 * f-valprint.c (_initialize_f_valprint): Add declaration.
9716 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9717 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9718 * filesystem.c (_initialize_filesystem): Add declaration.
9719 * findcmd.c (_initialize_mem_search): Add declaration.
9720 * findvar.c (_initialize_findvar): Add declaration.
9721 * fork-child.c (_initialize_fork_child): Add declaration.
9722 * frame-base.c (_initialize_frame_base): Add declaration.
9723 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9724 * frame.c (_initialize_frame): Add declaration.
9725 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9726 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9727 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9728 * gcore.c (_initialize_gcore): Add declaration.
9729 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9730 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9731 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9732 * gdbarch.c (_initialize_gdbarch): Add declaration.
9733 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9734 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9735 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9736 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9737 * go-lang.c (_initialize_go_language): Add declaration.
9738 * go32-nat.c (_initialize_go32_nat): Add declaration.
9739 * guile/guile.c (_initialize_guile): Add declaration.
9740 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9741 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9742 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9743 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9744 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9745 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9746 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9747 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9748 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9749 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9750 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9751 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9752 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9753 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9754 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9755 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9756 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9757 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9758 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9759 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9760 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9761 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9762 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9763 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9764 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9765 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9766 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9767 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9768 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9769 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9770 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9771 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9772 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9773 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9774 * infcall.c (_initialize_infcall): Add declaration.
9775 * infcmd.c (_initialize_infcmd): Add declaration.
9776 * inflow.c (_initialize_inflow): Add declaration.
9777 * infrun.c (_initialize_infrun): Add declaration.
9778 * interps.c (_initialize_interpreter): Add declaration.
9779 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9780 * jit.c (_initialize_jit): Add declaration.
9781 * language.c (_initialize_language): Add declaration.
9782 * linux-fork.c (_initialize_linux_fork): Add declaration.
9783 * linux-nat.c (_initialize_linux_nat): Add declaration.
9784 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9785 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9786 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9787 * m2-lang.c (_initialize_m2_language): Add declaration.
9788 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9789 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9790 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9791 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9792 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9793 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9794 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9795 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9796 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9797 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9798 * machoread.c (_initialize_machoread): Add declaration.
9799 * macrocmd.c (_initialize_macrocmd): Add declaration.
9800 * macroscope.c (_initialize_macroscope): Add declaration.
9801 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9802 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9803 * maint.c (_initialize_maint_cmds): Add declaration.
9804 * mdebugread.c (_initialize_mdebugread): Add declaration.
9805 * memattr.c (_initialize_mem): Add declaration.
9806 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9807 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9808 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9809 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9810 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9811 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9812 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9813 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9814 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9815 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9816 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9817 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9818 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9819 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9820 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9821 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9822 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9823 * mipsread.c (_initialize_mipsread): Add declaration.
9824 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9825 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9826 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9827 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9828 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9829 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9830 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9831 * nto-procfs.c (_initialize_procfs): Add declaration.
9832 * objc-lang.c (_initialize_objc_language): Add declaration.
9833 * observable.c (_initialize_observer): Add declaration.
9834 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9835 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9836 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9837 * osabi.c (_initialize_gdb_osabi): Add declaration.
9838 * osdata.c (_initialize_osdata): Add declaration.
9839 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9840 * parse.c (_initialize_parse): Add declaration.
9841 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9842 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9843 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9844 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9845 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9846 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9847 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9848 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9849 * printcmd.c (_initialize_printcmd): Add declaration.
9850 * probe.c (_initialize_probe): Add declaration.
9851 * proc-api.c (_initialize_proc_api): Add declaration.
9852 * proc-events.c (_initialize_proc_events): Add declaration.
9853 * proc-service.c (_initialize_proc_service): Add declaration.
9854 * procfs.c (_initialize_procfs): Add declaration.
9855 * producer.c (_initialize_producer): Add declaration.
9856 * psymtab.c (_initialize_psymtab): Add declaration.
9857 * python/python.c (_initialize_python): Add declaration.
9858 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9859 * record-btrace.c (_initialize_record_btrace): Add declaration.
9860 * record-full.c (_initialize_record_full): Add declaration.
9861 * record.c (_initialize_record): Add declaration.
9862 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9863 * regcache.c (_initialize_regcache): Add declaration.
9864 * reggroups.c (_initialize_reggroup): Add declaration.
9865 * remote-notif.c (_initialize_notif): Add declaration.
9866 * remote-sim.c (_initialize_remote_sim): Add declaration.
9867 * remote.c (_initialize_remote): Add declaration.
9868 * reverse.c (_initialize_reverse): Add declaration.
9869 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9870 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9871 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9872 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9873 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9874 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9875 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9876 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9877 Add declaration.
9878 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9879 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9880 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9881 * rust-exp.y (_initialize_rust_exp): Add declaration.
9882 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9883 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9884 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9885 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9886 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9887 * score-tdep.c (_initialize_score_tdep): Add declaration.
9888 * ser-go32.c (_initialize_ser_dos): Add declaration.
9889 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9890 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9891 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9892 * ser-uds.c (_initialize_ser_socket): Add declaration.
9893 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9894 * serial.c (_initialize_serial): Add declaration.
9895 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9896 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9897 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9898 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9899 * skip.c (_initialize_step_skip): Add declaration.
9900 * sol-thread.c (_initialize_sol_thread): Add declaration.
9901 * solib-aix.c (_initialize_solib_aix): Add declaration.
9902 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9903 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9904 * solib-frv.c (_initialize_frv_solib): Add declaration.
9905 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9906 * solib-target.c (_initialize_solib_target): Add declaration.
9907 * solib.c (_initialize_solib): Add declaration.
9908 * source-cache.c (_initialize_source_cache): Add declaration.
9909 * source.c (_initialize_source): Add declaration.
9910 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9911 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9912 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9913 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9914 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9915 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9916 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9917 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9918 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9919 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9920 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9921 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9922 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9923 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9924 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9925 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9926 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9927 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9928 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9929 * stabsread.c (_initialize_stabsread): Add declaration.
9930 * stack.c (_initialize_stack): Add declaration.
9931 * stap-probe.c (_initialize_stap_probe): Add declaration.
9932 * std-regs.c (_initialize_frame_reg): Add declaration.
9933 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9934 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9935 * symfile.c (_initialize_symfile): Add declaration.
9936 * symmisc.c (_initialize_symmisc): Add declaration.
9937 * symtab.c (_initialize_symtab): Add declaration.
9938 * target.c (_initialize_target): Add declaration.
9939 * target-connection.c (_initialize_target_connection): Add
9940 declaration.
9941 * target-dcache.c (_initialize_target_dcache): Add declaration.
9942 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9943 * thread.c (_initialize_thread): Add declaration.
9944 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9945 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9946 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9947 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9948 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9949 * tracectf.c (_initialize_ctf): Add declaration.
9950 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9951 * tracefile.c (_initialize_tracefile): Add declaration.
9952 * tracepoint.c (_initialize_tracepoint): Add declaration.
9953 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9954 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9955 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9956 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9957 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9958 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9959 * tui/tui.c (_initialize_tui): Add declaration.
9960 * typeprint.c (_initialize_typeprint): Add declaration.
9961 * ui-style.c (_initialize_ui_style): Add declaration.
9962 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9963 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9964 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9965 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9966 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9967 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9968 * unittests/filtered_iterator-selftests.c
9969 (_initialize_filtered_iterator_selftests): Add declaration.
9970 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9971 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9972 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9973 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9974 * unittests/main-thread-selftests.c
9975 (_initialize_main_thread_selftests): Add declaration.
9976 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9977 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9978 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9979 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9980 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9981 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9982 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9983 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9984 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9985 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9986 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9987 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9988 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9989 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9990 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9991 declaration.
9992 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9993 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9994 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9995 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9996 * user-regs.c (_initialize_user_regs): Add declaration.
9997 * utils.c (_initialize_utils): Add declaration.
9998 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9999 * valops.c (_initialize_valops): Add declaration.
10000 * valprint.c (_initialize_valprint): Add declaration.
10001 * value.c (_initialize_values): Add declaration.
10002 * varobj.c (_initialize_varobj): Add declaration.
10003 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10004 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10005 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10006 * windows-nat.c (_initialize_windows_nat): Add declaration.
10007 (_initialize_check_for_gdb_ini): Add declaration.
10008 (_initialize_loadable): Add declaration.
10009 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10010 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10011 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10012 * xcoffread.c (_initialize_xcoffread): Add declaration.
10013 * xml-support.c (_initialize_xml_support): Add declaration.
10014 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10015 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10016 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10017 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10018
e2de1eec
SM
100192020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10020
10021 * regformats/regdat.sh: Generate declaration for init function.
10022
e0037b4c
SM
100232020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10024
10025 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10026 up.
10027 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10028 close_one_inferior>: New methods.
10029 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10030 pass down target to find_inferior_pid.
10031 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10032 Pass down target to find_inferior_ptid.
10033 (gdbsim_target::create_inferior): Pass down target to
10034 add_thread_silent.
10035 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10036 target down to find_inferior_ptid and switch_to_thread.
10037 (gdbsim_target::close): Update to call close_one_inferior.
10038 (struct resume_data): Remove.
10039 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10040 directly, rather than through a void pointer.
10041 (gdbsim_target::resume): Update to call resume_one_inferior.
10042
58920b5b
SM
100432020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10044
10045 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10046
4ec89149
PA
100472020-01-12 Pedro Alves <palves@redhat.com>
10048
10049 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10050 directly for the current inferior instead of
10051 discard_all_inferiors.
10052 (discard_all_inferiors): Delete.
10053
7c392d1d
TT
100542020-01-11 Tom Tromey <tom@tromey.com>
10055
10056 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10057 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10058 deprecated_safe_get_selected_frame.
10059
d9ebdab7
TBA
100602020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10061
10062 * inferior.c (print_inferior): Switch inferior before printing it.
10063
f3c469b9
PA
100642020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10065 Pedro Alves <palves@redhat.com>
10066
10067 * progspace-and-thread.c (switch_to_program_space_and_thread):
10068 Assert there's an inferior for PSPACE. Use
10069 switch_to_inferior_no_thread to switch the inferior too.
10070 * progspace.c (program_space::~program_space): Call
10071 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10072 (program_space::free_all_objfiles): Don't call clear_symtab_users
10073 here.
10074 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10075
65c574f6
PA
100762020-01-10 Pedro Alves <palves@redhat.com>
10077
10078 * NEWS: Mention multi-target debugging, "info connections", and
10079 "add-inferior -no-connection".
10080
2f4fcf00
PA
100812020-01-10 Pedro Alves <palves@redhat.com>
10082
10083 * infrun.c: Include "target-connection.h".
10084 (check_multi_target_resumption): New.
10085 (proceed): Call it.
10086 * target-connection.c (make_target_connection_string): Make
10087 extern.
10088 * target-connection.h (make_target_connection_string): Declare.
10089
121b3efd
PA
100902020-01-10 Pedro Alves <palves@redhat.com>
10091
10092 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10093 * inferior.c (uiout_field_connection): New function.
10094 (print_inferior): Add new "connection-id" column.
10095 (add_inferior_command): Show connection number/string of added
10096 inferior.
10097 * process-stratum-target.h
10098 (process_stratum_target::connection_string): New virtual method.
10099 (process_stratum_target::connection_number): New field.
10100 * remote.c (remote_target::connection_string): New override.
10101 * target-connection.c: New file.
10102 * target-connection.h: New file.
10103 * target.c (decref_target): Remove process_stratum targets from
10104 the connection list.
10105 (target_stack::push): Add process_stratum targets to the
10106 connection list.
10107
4f837581
PA
101082020-01-10 Pedro Alves <palves@redhat.com>
10109
10110 Revert:
10111 2016-04-12 Pedro Alves <palves@redhat.com>
10112 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10113 Remove references to name.
10114 * serial.h (struct serial) <name>: Delete.
10115
f4ec508e
PA
101162020-01-10 Pedro Alves <palves@redhat.com>
10117
10118 * gdbarch-selftests.c (register_to_value_test): Remove "target
10119 already pushed" check.
10120
5b6d1e4f
PA
101212020-01-10 Pedro Alves <palves@redhat.com>
10122 John Baldwin <jhb@FreeBSD.org>
10123
10124 * aarch64-linux-nat.c
10125 (aarch64_linux_nat_target::thread_architecture): Adjust.
10126 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10127 (task_command_1): Likewise.
10128 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10129 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10130 (aix_thread_target::store_registers)
10131 (aix_thread_target::thread_alive): Adjust.
10132 * amd64-fbsd-tdep.c: Include "inferior.h".
10133 (amd64fbsd_get_thread_local_address): Pass down target.
10134 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10135 thread's gdbarch instead of target_gdbarch.
10136 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10137 get_last_target_status.
10138 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10139 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10140 inferiors.
10141 (update_inserted_breakpoint_locations): Skip if inferiors with no
10142 execution.
10143 (update_global_location_list): When handling moribund locations,
10144 find representative inferior for location's pspace, and use thread
10145 count of its process_stratum target.
10146 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10147 * bsd-uthread.c (bsd_uthread_target::wait): Use
10148 as_process_stratum_target and adjust thread_change_ptid and
10149 add_thread calls.
10150 (bsd_uthread_target::update_thread_list): Use
10151 as_process_stratum_target and adjust find_thread_ptid,
10152 thread_change_ptid and add_thread calls.
10153 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10154 find_thread_ptid call.
10155 * corelow.c (add_to_thread_list): Adjust add_thread call.
10156 (core_target_open): Adjust add_thread_silent and thread_count
10157 calls.
10158 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10159 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10160 * event-top.c (async_disconnect): Pop targets from all inferiors.
10161 * exec.c (add_target_sections): Push exec target on all inferiors
10162 sharing the program space.
10163 (remove_target_sections): Remove the exec target from all
10164 inferiors sharing the program space.
10165 (exec_on_vfork): New.
10166 * exec.h (exec_on_vfork): Declare.
10167 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10168 Pass it down.
10169 (fbsd_nat_target::update_thread_list): Adjust.
10170 (fbsd_nat_target::resume): Adjust.
10171 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10172 down.
10173 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10174 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10175 get_thread_arch_regcache call.
10176 * fork-child.c (gdb_startup_inferior): Pass target down to
10177 startup_inferior and set_executing.
10178 * gdbthread.h (struct process_stratum_target): Forward declare.
10179 (add_thread, add_thread_silent, add_thread_with_info)
10180 (in_thread_list): Add process_stratum_target parameter.
10181 (find_thread_ptid(inferior*, ptid_t)): New overload.
10182 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10183 parameter.
10184 (all_threads()): Delete overload.
10185 (all_threads, all_non_exited_threads): Add process_stratum_target
10186 parameter.
10187 (all_threads_safe): Use brace initialization.
10188 (thread_count): Add process_stratum_target parameter.
10189 (set_resumed, set_running, set_stop_requested, set_executing)
10190 (threads_are_executing, finish_thread_state): Add
10191 process_stratum_target parameter.
10192 (switch_to_thread): Use is_current_thread.
10193 * i386-fbsd-tdep.c: Include "inferior.h".
10194 (i386fbsd_get_thread_local_address): Pass down target.
10195 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10196 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10197 have_inferiors check.
10198 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10199 (inf_ptrace_target::attach): Adjust.
10200 * infcall.c (run_inferior_call): Adjust.
10201 * infcmd.c (run_command_1): Pass target to
10202 scoped_finish_thread_state.
10203 (proceed_thread_callback): Skip inferiors with no execution.
10204 (continue_command): Rename 'all_threads' local to avoid hiding
10205 'all_threads' function. Adjust get_last_target_status call.
10206 (prepare_one_step): Adjust set_running call.
10207 (signal_command): Use user_visible_resume_target. Compare thread
10208 pointers instead of inferior_ptid.
10209 (info_program_command): Adjust to pass down target.
10210 (attach_command): Mark target's 'thread_executing' flag.
10211 (stop_current_target_threads_ns): New, factored out from ...
10212 (interrupt_target_1): ... this. Switch inferior before making
10213 target calls.
10214 * inferior-iter.h
10215 (struct all_inferiors_iterator, struct all_inferiors_range)
10216 (struct all_inferiors_safe_range)
10217 (struct all_non_exited_inferiors_range): Filter on
10218 process_stratum_target too. Remove explicit.
10219 * inferior.c (inferior::inferior): Push dummy target on target
10220 stack.
10221 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10222 Add process_stratum_target parameter, and pass it down.
10223 (have_live_inferiors): Adjust.
10224 (switch_to_inferior_and_push_target): New.
10225 (add_inferior_command, clone_inferior_command): Handle
10226 "-no-connection" parameter. Use
10227 switch_to_inferior_and_push_target.
10228 (_initialize_inferior): Mention "-no-connection" option in
10229 the help of "add-inferior" and "clone-inferior" commands.
10230 * inferior.h: Include "process-stratum-target.h".
10231 (interrupt_target_1): Use bool.
10232 (struct inferior) <push_target, unpush_target, target_is_pushed,
10233 find_target_beneath, top_target, process_target, target_at,
10234 m_stack>: New.
10235 (discard_all_inferiors): Delete.
10236 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10237 (all_inferiors, all_non_exited_inferiors): Add
10238 process_stratum_target parameter.
10239 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10240 (target_last_proc_target): New global.
10241 (follow_fork_inferior): Push target on new inferior. Pass target
10242 to add_thread_silent. Call exec_on_vfork. Handle target's
10243 reference count.
10244 (follow_fork): Adjust get_last_target_status call. Also consider
10245 target.
10246 (follow_exec): Push target on new inferior.
10247 (struct execution_control_state) <target>: New field.
10248 (user_visible_resume_target): New.
10249 (do_target_resume): Call target_async.
10250 (resume_1): Set target's threads_executing flag. Consider resume
10251 target.
10252 (commit_resume_all_targets): New.
10253 (proceed): Also consider resume target. Skip threads of inferiors
10254 with no execution. Commit resumtion in all targets.
10255 (start_remote): Pass current inferior to wait_for_inferior.
10256 (infrun_thread_stop_requested): Consider target as well. Pass
10257 thread_info pointer to clear_inline_frame_state instead of ptid.
10258 (infrun_thread_thread_exit): Consider target as well.
10259 (random_pending_event_thread): New inferior parameter. Use it.
10260 (do_target_wait): Rename to ...
10261 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10262 down.
10263 (threads_are_resumed_pending_p, do_target_wait): New.
10264 (prepare_for_detach): Adjust calls.
10265 (wait_for_inferior): New inferior parameter. Handle it. Use
10266 do_target_wait_1 instead of do_target_wait.
10267 (fetch_inferior_event): Adjust. Switch to representative
10268 inferior. Pass target down.
10269 (set_last_target_status): Add process_stratum_target parameter.
10270 Save target in global.
10271 (get_last_target_status): Add process_stratum_target parameter and
10272 handle it.
10273 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10274 (context_switch): Check inferior_ptid == null_ptid before calling
10275 inferior_thread().
10276 (get_inferior_stop_soon): Pass down target.
10277 (wait_one): Rename to ...
10278 (poll_one_curr_target): ... this.
10279 (struct wait_one_event): New.
10280 (wait_one): New.
10281 (stop_all_threads): Adjust.
10282 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10283 event's target.
10284 (switch_back_to_stepped_thread): Also consider target.
10285 (print_stop_event): Update.
10286 (normal_stop): Update. Also consider the resume target.
10287 * infrun.h (wait_for_inferior): Remove declaration.
10288 (user_visible_resume_target): New declaration.
10289 (get_last_target_status, set_last_target_status): New
10290 process_stratum_target parameter.
10291 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10292 process_stratum_target parameter, and use it.
10293 (clear_inline_frame_state (thread_info*)): New.
10294 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10295 process_stratum_target parameter.
10296 (clear_inline_frame_state (thread_info*)): Declare.
10297 * linux-fork.c (delete_checkpoint_command): Pass target down to
10298 find_thread_ptid.
10299 (checkpoint_command): Adjust.
10300 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10301 instead of just tweaking inferior_ptid.
10302 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10303 (exit_lwp): Pass target down to find_thread_ptid.
10304 (attach_proc_task_lwp_callback): Pass target down to
10305 add_thread/set_running/set_executing.
10306 (linux_nat_target::attach): Pass target down to
10307 thread_change_ptid.
10308 (get_detach_signal): Pass target down to find_thread_ptid.
10309 Consider last target status's target.
10310 (linux_resume_one_lwp_throw, resume_lwp)
10311 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10312 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10313 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10314 (linux_nat_target::async_wait_fd): New.
10315 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10316 target down.
10317 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10318 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10319 * linux-thread-db.c (struct thread_db_info::process_target): New
10320 field.
10321 (add_thread_db_info): Save target.
10322 (get_thread_db_info): New process_stratum_target parameter. Also
10323 match target.
10324 (delete_thread_db_info): New process_stratum_target parameter.
10325 Also match target.
10326 (thread_from_lwp): Adjust to pass down target.
10327 (thread_db_notice_clone): Pass down target.
10328 (check_thread_db_callback): Pass down target.
10329 (try_thread_db_load_1): Always push the thread_db target.
10330 (try_thread_db_load, record_thread): Pass target down.
10331 (thread_db_target::detach): Pass target down. Always unpush the
10332 thread_db target.
10333 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10334 target down. Always unpush the thread_db target.
10335 (find_new_threads_callback, thread_db_find_new_threads_2)
10336 (thread_db_target::update_thread_list): Pass target down.
10337 (thread_db_target::pid_to_str): Pass current inferior down.
10338 (thread_db_target::get_thread_local_address): Pass target down.
10339 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10340 target down.
10341 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10342 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10343 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10344 (procfs_init_inferior): Rename to ...
10345 (procfs_target::procfs_init_inferior): ... this and adjust.
10346 (procfs_target::create_inferior, procfs_notice_thread)
10347 (procfs_do_thread_registers): Adjust.
10348 * ppc-fbsd-tdep.c: Include "inferior.h".
10349 (ppcfbsd_get_thread_local_address): Pass down target.
10350 * proc-service.c (ps_xfer_memory): Switch current inferior and
10351 program space as well.
10352 (get_ps_regcache): Pass target down.
10353 * process-stratum-target.c
10354 (process_stratum_target::thread_address_space)
10355 (process_stratum_target::thread_architecture): Pass target down.
10356 * process-stratum-target.h
10357 (process_stratum_target::threads_executing): New field.
10358 (as_process_stratum_target): New.
10359 * ravenscar-thread.c
10360 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10361 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10362 down.
10363 * record-btrace.c (record_btrace_target::info_record): Adjust.
10364 (record_btrace_target::record_method)
10365 (record_btrace_target::record_is_replaying)
10366 (record_btrace_target::fetch_registers)
10367 (get_thread_current_frame_id, record_btrace_target::resume)
10368 (record_btrace_target::wait, record_btrace_target::stop): Pass
10369 target down.
10370 * record-full.c (record_full_wait_1): Switch to event thread.
10371 Pass target down.
10372 * regcache.c (regcache::regcache)
10373 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10374 process_stratum_target parameter and handle it.
10375 (current_thread_target): New global.
10376 (get_thread_regcache): Add process_stratum_target parameter and
10377 handle it. Switch inferior before calling target method.
10378 (get_thread_regcache): Pass target down.
10379 (get_thread_regcache_for_ptid): Pass target down.
10380 (registers_changed_ptid): Add process_stratum_target parameter and
10381 handle it.
10382 (registers_changed_thread, registers_changed): Pass target down.
10383 (test_get_thread_arch_aspace_regcache): New.
10384 (current_regcache_test): Define a couple local test_target_ops
10385 instances and use them for testing.
10386 (readwrite_regcache): Pass process_stratum_target parameter.
10387 (cooked_read_test, cooked_write_test): Pass mock_target down.
10388 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10389 (get_thread_arch_aspace_regcache): Add process_stratum_target
10390 parameter.
10391 (regcache::target): New method.
10392 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10393 (regcache::registers_changed_ptid): Add process_stratum_target
10394 parameter.
10395 (regcache::m_target): New field.
10396 (registers_changed_ptid): Add process_stratum_target parameter.
10397 * remote.c (remote_state::supports_vCont_probed): New field.
10398 (remote_target::async_wait_fd): New method.
10399 (remote_unpush_and_throw): Add remote_target parameter.
10400 (get_current_remote_target): Adjust.
10401 (remote_target::remote_add_inferior): Push target.
10402 (remote_target::remote_add_thread)
10403 (remote_target::remote_notice_new_inferior)
10404 (get_remote_thread_info): Pass target down.
10405 (remote_target::update_thread_list): Skip threads of inferiors
10406 bound to other targets. (remote_target::close): Don't discard
10407 inferiors. (remote_target::add_current_inferior_and_thread)
10408 (remote_target::process_initial_stop_replies)
10409 (remote_target::start_remote)
10410 (remote_target::remote_serial_quit_handler): Pass down target.
10411 (remote_target::remote_unpush_target): New remote_target
10412 parameter. Unpush the target from all inferiors.
10413 (remote_target::remote_unpush_and_throw): New remote_target
10414 parameter. Pass it down.
10415 (remote_target::open_1): Check whether the current inferior has
10416 execution instead of checking whether any inferior is live. Pass
10417 target down.
10418 (remote_target::remote_detach_1): Pass down target. Use
10419 remote_unpush_target.
10420 (extended_remote_target::attach): Pass down target.
10421 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10422 (remote_target::append_resumption): Pass down target.
10423 (remote_target::append_pending_thread_resumptions)
10424 (remote_target::remote_resume_with_hc, remote_target::resume)
10425 (remote_target::commit_resume): Pass down target.
10426 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10427 (remote_target::interrupt_query)
10428 (remote_target::remove_new_fork_children)
10429 (remote_target::check_pending_events_prevent_wildcard_vcont)
10430 (remote_target::remote_parse_stop_reply)
10431 (remote_target::process_stop_reply): Pass down target.
10432 (first_remote_resumed_thread): New remote_target parameter. Pass
10433 it down.
10434 (remote_target::wait_as): Pass down target.
10435 (unpush_and_perror): New remote_target parameter. Pass it down.
10436 (remote_target::readchar, remote_target::remote_serial_write)
10437 (remote_target::getpkt_or_notif_sane_1)
10438 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10439 down target.
10440 (remote_target::mourn_inferior): Pass down target. Use
10441 remote_unpush_target.
10442 (remote_target::core_of_thread)
10443 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10444 (remote_target::pid_to_exec_file)
10445 (remote_target::thread_handle_to_thread_info): Pass down target.
10446 (remote_target::async_wait_fd): New.
10447 * riscv-fbsd-tdep.c: Include "inferior.h".
10448 (riscv_fbsd_get_thread_local_address): Pass down target.
10449 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10450 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10451 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10452 Adjust.
10453 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10454 * solib-svr4.c (enable_break): Pass down target.
10455 * spu-multiarch.c (parse_spufs_run): Pass down target.
10456 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10457 * target-delegates.c: Regenerate.
10458 * target.c (g_target_stack): Delete.
10459 (current_top_target): Return the current inferior's top target.
10460 (target_has_execution_1): Refer to the passed-in inferior's top
10461 target.
10462 (target_supports_terminal_ours): Check whether the initial
10463 inferior was already created.
10464 (decref_target): New.
10465 (target_stack::push): Incref/decref the target.
10466 (push_target, push_target, unpush_target): Adjust.
10467 (target_stack::unpush): Defref target.
10468 (target_is_pushed): Return bool. Adjust to refer to the current
10469 inferior's target stack.
10470 (dispose_inferior): Delete, and inline parts ...
10471 (target_preopen): ... here. Only dispose of the current inferior.
10472 (target_detach): Hold strong target reference while detaching.
10473 Pass target down.
10474 (target_thread_name): Add assertion.
10475 (target_resume): Pass down target.
10476 (target_ops::beneath, find_target_at): Adjust to refer to the
10477 current inferior's target stack.
10478 (get_dummy_target): New.
10479 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10480 has a thread running.
10481 (initialize_targets): Rename to ...
10482 (_initialize_target): ... this.
10483 * target.h: Include "gdbsupport/refcounted-object.h".
10484 (struct target_ops): Inherit refcounted_object.
10485 (target_ops::shortname, target_ops::longname): Make const.
10486 (target_ops::async_wait_fd): New method.
10487 (decref_target): Declare.
10488 (struct target_ops_ref_policy): New.
10489 (target_ops_ref): New typedef.
10490 (get_dummy_target): Declare function.
10491 (target_is_pushed): Return bool.
10492 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10493 (all_matching_threads_iterator::all_matching_threads_iterator):
10494 Handle filter target.
10495 * thread-iter.h (struct all_matching_threads_iterator, struct
10496 all_matching_threads_range, class all_non_exited_threads_range):
10497 Filter by target too. Remove explicit.
10498 * thread.c (threads_executing): Delete.
10499 (inferior_thread): Pass down current inferior.
10500 (clear_thread_inferior_resources): Pass down thread pointer
10501 instead of ptid_t.
10502 (add_thread_silent, add_thread_with_info, add_thread): Add
10503 process_stratum_target parameter. Use it for thread and inferior
10504 searches.
10505 (is_current_thread): New.
10506 (thread_info::deletable): Use it.
10507 (find_thread_ptid, thread_count, in_thread_list)
10508 (thread_change_ptid, set_resumed, set_running): New
10509 process_stratum_target parameter. Pass it down.
10510 (set_executing): New process_stratum_target parameter. Pass it
10511 down. Adjust reference to 'threads_executing'.
10512 (threads_are_executing): New process_stratum_target parameter.
10513 Adjust reference to 'threads_executing'.
10514 (set_stop_requested, finish_thread_state): New
10515 process_stratum_target parameter. Pass it down.
10516 (switch_to_thread): Also match inferior.
10517 (switch_to_thread): New process_stratum_target parameter. Pass it
10518 down.
10519 (update_threads_executing): Reimplement.
10520 * top.c (quit_force): Pop targets from all inferior.
10521 (gdb_init): Don't call initialize_targets.
10522 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10523 Declare.
10524 (windows_add_thread, windows_delete_thread): Adjust.
10525 (get_windows_debug_event): Rename to ...
10526 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10527 * tracefile-tfile.c (tfile_target_open): Pass down target.
10528 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10529 Forward declare.
10530 (switch_to_thread): Add process_stratum_target parameter.
10531 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10532 parameter. Use it.
10533 (mi_on_resume): Pass target down.
10534 * nat/fork-inferior.c (startup_inferior): Add
10535 process_stratum_target parameter. Pass it down.
10536 * nat/fork-inferior.h (startup_inferior): Add
10537 process_stratum_target parameter.
10538 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10539
75c6c844
PA
105402020-01-10 Pedro Alves <palves@redhat.com>
10541
10542 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10543 directly. Instead find the first thread in the thread list and
10544 use switch_to_thread.
10545
78f2c40a
PA
105462020-01-10 Pedro Alves <palves@redhat.com>
10547
10548 * remote.c (remote_target::remote_add_inferior): Don't bind a
10549 process to the current inferior if the current inferior is already
10550 bound to a process.
10551
e7af6c70
TBA
105522020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10553 Pedro Alves <palves@redhat.com>
10554
10555 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10556 If no process is specified, return null_ptid instead of
10557 inferior_ptid.
10558 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10559 TARGET_WAITKIND_SIGNALLED with no pid.
10560
31ba933e
PA
105612020-01-10 Pedro Alves <palves@redhat.com>
10562
10563 * remote.c (first_remote_resumed_thread): New.
10564 (remote_target::wait_as): Use it as default event_ptid instead of
10565 inferior_ptid.
10566
735fc2ca
PA
105672020-01-10 Pedro Alves <palves@redhat.com>
10568
10569 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10570
c17e02e1
PA
105712020-01-10 Pedro Alves <palves@redhat.com>
10572
10573 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10574 not -1.
10575
ab1ddbcf
PA
105762020-01-10 Pedro Alves <palves@redhat.com>
10577
10578 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10579 ptid to get_last_target_status.
10580 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10581 ptid to get_last_target_status.
10582 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10583 get_last_target_status.
10584 (info_program_command): Don't pass a target_waitstatus to
10585 get_last_target_status.
10586 * infrun.c (init_wait_for_inferior): Use
10587 nullify_last_target_wait_ptid.
10588 (get_last_target_status): Handle nullptr arguments.
10589 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10590 (print_stop_event): Don't pass a ptid to get_last_target_status.
10591 (normal_stop): Don't pass a ptid to get_last_target_status.
10592 * infrun.h (get_last_target_status, set_last_target_status): Move
10593 comments here and update.
10594 (nullify_last_target_wait_ptid): Declare.
10595 * linux-fork.c (fork_load_infrun_state): Remove local extern
10596 declaration of nullify_last_target_wait_ptid.
10597 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10598 to get_last_target_status.
10599
f3f8ece4
PA
106002020-01-10 Pedro Alves <palves@redhat.com>
10601
10602 * gdbthread.h (scoped_restore_current_thread)
10603 <dont_restore, restore, m_dont_restore>: Declare.
10604 * thread.c (thread_alive): Add assertion. Return bool.
10605 (switch_to_thread_if_alive): New.
10606 (prune_threads): Switch inferior/thread.
10607 (print_thread_info_1): Switch thread before calling target methods.
10608 (scoped_restore_current_thread::restore): New, factored out from
10609 ...
10610 (scoped_restore_current_thread::~scoped_restore_current_thread):
10611 ... this.
10612 (scoped_restore_current_thread::scoped_restore_current_thread):
10613 Add assertion.
10614 (thread_apply_all_command, thread_select): Use
10615 switch_to_thread_if_alive.
10616 * infrun.c (proceed, restart_threads, handle_signal_stop)
10617 (switch_back_to_stepped_thread): Switch current thread before
10618 calling target methods.
10619
db2d40f7
PA
106202020-01-10 Pedro Alves <palves@redhat.com>
10621
10622 * inferior.c (switch_to_inferior_no_thread): New function,
10623 factored out from ...
10624 (inferior_command): ... here.
10625 * inferior.h (switch_to_inferior_no_thread): Declare.
10626 * mi/mi-main.c (run_one_inferior): Use
10627 switch_to_inferior_no_thread.
10628
bd420a2d
PA
106292020-01-10 Pedro Alves <palves@redhat.com>
10630
10631 * infcmd.c (kill_command): Remove dead code.
10632
ddf5db90
PA
106332020-01-10 Pedro Alves <palves@redhat.com>
10634
10635 * remote.c (remote_target::mourn_inferior): No longer check
10636 whether the target is running.
10637
5018ce90
PA
106382020-01-10 Pedro Alves <palves@redhat.com>
10639
10640 * corelow.c (core_target::has_execution): Change parameter type to
10641 inferior pointer.
10642 * inferior.c (number_of_live_inferiors): Use
10643 inferior::has_execution instead of target_has_execution_1.
10644 * inferior.h (inferior::has_execution): New.
10645 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10646 inferior::has_execution instead of target_has_execution_1.
10647 * process-stratum-target.c
10648 (process_stratum_target::has_execution): Change parameter type to
10649 inferior pointer. Check the inferior's PID instead of
10650 inferior_ptid.
10651 * process-stratum-target.h
10652 (process_stratum_target::has_execution): Change parameter type to
10653 inferior pointer.
10654 * record-full.c (record_full_core_target::has_execution): Change
10655 parameter type to inferior pointer.
10656 * target.c (target_has_execution_1): Change parameter type to
10657 inferior pointer.
10658 (target_has_execution_current): Adjust.
10659 * target.h (target_ops::has_execution): Change parameter type to
10660 inferior pointer.
10661 (target_has_execution_1): Change parameter type to inferior
10662 pointer. Change return type to bool.
10663 * tracefile.h (tracefile_target::has_execution): Change parameter
10664 type to inferior pointer.
10665
74375d18
PA
106662020-01-10 Pedro Alves <palves@redhat.com>
10667
10668 * exceptions.c (print_flush): Remove current_top_target() check.
10669
acdf84a6
PA
106702020-01-10 Pedro Alves <palves@redhat.com>
10671
10672 * remote.c (show_remote_exec_file): Show the current inferior's
10673 exec-file instead of the command variable's value.
10674
ec506636
PA
106752020-01-10 Pedro Alves <palves@redhat.com>
10676
10677 * record-full.c (record_full_resume_ptid): New global.
10678 (record_full_target::resume): Set it.
10679 (record_full_wait_1): Use record_full_resume_ptid instead of
10680 inferior_ptid.
10681
873657b9
PA
106822020-01-10 Pedro Alves <palves@redhat.com>
10683
10684 * gdbthread.h (scoped_restore_current_thread)
10685 <dont_restore, restore, m_dont_restore>: Declare.
10686 * thread.c (thread_alive): Add assertion. Return bool.
10687 (switch_to_thread_if_alive): New.
10688 (prune_threads): Switch inferior/thread.
10689 (print_thread_info_1): Switch thread before calling target methods.
10690 (scoped_restore_current_thread::restore): New, factored out from
10691 ...
10692 (scoped_restore_current_thread::~scoped_restore_current_thread):
10693 ... this.
10694 (scoped_restore_current_thread::scoped_restore_current_thread):
10695 Add assertion.
10696 (thread_apply_all_command, thread_select): Use
10697 switch_to_thread_if_alive.
10698
7f0ae84c
GB
106992020-01-10 George Barrett <bob@bob131.so>
10700
10701 * stap-probe.c (stap_modify_semaphore): Don't check for null
10702 semaphores.
10703 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10704 for null semaphores.
10705
f5a7c406
AB
107062020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10707
10708 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10709 all source windows, and maintain horizontal scroll status while
10710 doing so.
10711
9ae6bf64
TT
107122020-01-09 Tom Tromey <tom@tromey.com>
10713
10714 PR tui/18932:
10715 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10716 update_source_window, not print_source_lines.
10717
b2efe70c
AB
107182020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10719
10720 * tui/tui.c (tui_enable): Register tui hooks after calling
10721 tui_display_main.
10722
5f23a082
CB
107232020-01-09 Christian Biesinger <cbiesinger@google.com>
10724
10725 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10726
3061113b
SM
107272020-01-08 Simon Marchi <simon.marchi@efficios.com>
10728
10729 * thread.c (print_thread_info_1): Fix indentation.
10730
57d75002
CB
107312020-01-09 Christian Biesinger <cbiesinger@google.com>
10732
10733 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10734 unique_xmalloc_ptr outside the if to always free the demangled name.
10735
6a053cb1
TT
107362020-01-08 Tom Tromey <tromey@adacore.com>
10737
10738 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10739 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10740 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10741 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10742 Remove.
10743 (section_offsets): New typedef.
10744 * symtab.c (fixup_section, get_msymbol_address): Update.
10745 * symmisc.c (dump_msymbols): Update.
10746 * symfile.h (relative_addr_info_to_section_offsets)
10747 (symfile_map_offsets_to_segments): Update.
10748 * symfile.c (build_section_addr_info_from_objfile)
10749 (init_objfile_sect_indices): Update.
10750 (struct place_section_arg): Change type of "offsets".
10751 (place_section): Update.
10752 (relative_addr_info_to_section_offsets): Change type of
10753 "section_offsets". Remove "num_sections" parameter.
10754 (default_symfile_offsets, syms_from_objfile_1)
10755 (set_objfile_default_section_offset): Update.
10756 (reread_symbols): No need to preserve section offsets by hand.
10757 (symfile_map_offsets_to_segments): Change type of "offsets".
10758 * stap-probe.c (relocate_address): Update.
10759 * stabsread.h (process_one_symbol): Update.
10760 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10761 (solib_target_relocate_section_addresses): Update.
10762 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10763 Update.
10764 * solib-frv.c (frv_relocate_main_executable): Update.
10765 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10766 * solib-aix.c (solib_aix_get_section_offsets): Change return
10767 type.
10768 (solib_aix_solib_create_inferior_hook): Update.
10769 * remote.c (remote_target::get_offsets): Update.
10770 * psymtab.c (find_pc_sect_psymtab): Update.
10771 * psympriv.h (struct partial_symbol) <address, text_low,
10772 text_high>: Update.
10773 * objfiles.h (obj_section_offset): Update.
10774 (struct objfile) <section_offsets>: Change type.
10775 <num_sections>: Remove.
10776 (objfile_relocate): Update.
10777 * objfiles.c (entry_point_address_query): Update
10778 (relocate_one_symbol): Change type of "section_offsets".
10779 (objfile_relocate1, objfile_relocate1): Change type of
10780 "new_offsets".
10781 (objfile_rebase1): Update.
10782 * mipsread.c (mipscoff_symfile_read): Update.
10783 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10784 parameter.
10785 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10786 (parse_external, psymtab_to_symtab_1): Update.
10787 * machoread.c (macho_symfile_offsets): Update.
10788 * ia64-tdep.c (ia64_find_unwind_table): Update.
10789 * hppa-tdep.c (read_unwind_info): Update.
10790 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10791 * dwarf2read.c (create_addrmap_from_index)
10792 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10793 (process_psymtab_comp_unit_reader, add_partial_symbol)
10794 (add_partial_subprogram, process_full_comp_unit)
10795 (read_file_scope, read_func_scope, read_lexical_block_scope)
10796 (read_call_site_scope, dwarf2_rnglists_process)
10797 (dwarf2_ranges_process, dwarf2_ranges_read)
10798 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10799 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10800 Update.
10801 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10802 Update.
10803 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10804 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10805 (process_one_symbol): Change type of "section_offsets".
10806 * ctfread.c (get_objfile_text_range): Update.
10807 * coffread.c (coff_symtab_read, enter_linenos)
10808 (process_coff_symbol): Update.
10809 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10810 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10811
456e800a
TT
108122020-01-08 Tom Tromey <tromey@adacore.com>
10813
10814 * dwarf2read.c (parse_macro_definition): Use std::string.
10815 (parse_macro_definition): Likewise.
10816
6dfa2fc2
TT
108172020-01-08 Tom Tromey <tromey@adacore.com>
10818
10819 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10820 (ATTR_ALLOC_CHUNK): Remove.
10821
421d1616
TT
108222020-01-08 Tom Tromey <tromey@adacore.com>
10823
10824 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10825
43816ebc
TT
108262020-01-08 Tom Tromey <tromey@adacore.com>
10827
10828 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10829 (dwarf2_compute_name, open_dwo_file): Likewise.
10830 (process_enumeration_scope): Use std::vector.
10831 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10832 (partial_die_info::fixup, dwarf2_start_subfile)
10833 (guess_full_die_structure_name, dwarf2_name): Likewise.
10834 (determine_prefix): Update.
10835 (guess_full_die_structure_name): Make return type const.
10836 (partial_die_full_name): Return unique_xmalloc_ptr.
10837 (DW_FIELD_ALLOC_CHUNK): Remove.
10838
4212d509
TT
108392020-01-07 Tom Tromey <tromey@adacore.com>
10840
10841 PR build/24937:
10842 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10843
06a6207a
JT
108442020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10845
10846 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10847
153d79c4
AB
108482020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10849
10850 * stack.c (print_frame_info): Move disassemble_next_line code
10851 inside source_print block.
10852
66182876
EZ
108532020-01-06 Eli Zaretskii <eliz@gnu.org>
10854
10855 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10856 gdb/signals.h, as we are now using native signal symbols.
10857
cbfa8581
SV
108582020-01-06 Shahab Vahedi <shahab@synopsys.com>
10859
10860 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10861 overflow by an early check of content vs threshold.
aac66a4c 10862 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10863 Likewise.
10864
3f602821
EZ
108652020-01-06 Eli Zaretskii <eliz@gnu.org>
10866
10867 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10868
a08c904d
JT
108692020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10870
10871 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10872 export table if no section contains it's RVA.
10873
89a65580
EZ
108742020-01-06 Eli Zaretskii <eliz@gnu.org>
10875
10876 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10877
8b7fcda2
HD
108782020-01-06 Hannes Domani <ssbssa@yahoo.de>
10879
10880 * source.c (print_source_lines_base): Set last_line_listed.
10881
a61b4f69
SV
108822020-01-06 Shahab Vahedi <shahab@synopsys.com>
10883
10884 * tui/tui-disasm.c: Remove trailing spaces.
10885
559e7e50
EZ
108862020-01-06 Eli Zaretskii <eliz@gnu.org>
10887 Pedro Alves <palves@redhat.com>
10888
10889 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10890 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10891 (windows_gdb_signal_to_target): New function, uses the above
10892 enumeration to convert GDB internal signal codes to equivalent
10893 Windows codes.
10894 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10895 * windows-nat.c: Include "gdb_wait.h".
10896 (get_windows_debug_event): Extract the fatal exception from the
10897 exit status and convert to the equivalent Posix signal number.
10898 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10899 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10900 * gdbsupport/gdb_wait.c: New file, implements
10901 windows_status_to_termsig.
10902 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10903 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10904
f2302a34
AB
109052020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10906
10907 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10908 show_layout.
10909
6a5206eb
LM
109102020-01-05 Luis Machado <luis.machado@linaro.org>
10911
10912 * aarch64-linux-nat.c
10913 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10914 and bfd_mach_aarch64.
10915
6ec1d75e
PW
109162020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10917
10918 * ui-file.c (stdio_file::can_emit_style_escape)
10919 (tee_file::can_emit_style_escape): Ensure style is used also on
10920 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10921 to gdb_stdout.
10922 * main.c (set_gdb_data_directory): Use file style to output the
10923 warning that the given pathname is not a directory.
10924 * top.c (show_history_filename, gdb_safe_append_history)
10925 (show_gdb_datadir): Use file style.
10926
44f81a76
HD
109272020-01-03 Hannes Domani <ssbssa@yahoo.de>
10928
10929 * solib-target.c (struct lm_info_target):
10930 Change offsets to be a unique_xmalloc_ptr.
10931 (solib_target_relocate_section_addresses): Update.
10932
25057eb0
HD
109332020-01-03 Hannes Domani <ssbssa@yahoo.de>
10934
10935 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10936
6e2118f5
BE
109372020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10938
10939 * MAINTAINERS (Write After Approval): Add myself.
10940
8133c7dc
LM
109412020-01-02 Luis Machado <luis.machado@linaro.org>
10942
10943 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10944 Cell BE architecture.
10945 * target.h (struct target_ops) <thread_architecture>: Likewise.
10946
48189bec
HD
109472020-01-01 Hannes Domani <ssbssa@yahoo.de>
10948
10949 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10950
ead1063b
HD
109512020-01-01 Hannes Domani <ssbssa@yahoo.de>
10952
10953 * MAINTAINERS (Write After Approval): Add myself.
10954
e5d78223
JB
109552020-01-01 Joel Brobecker <brobecker@adacore.com>
10956
10957 * gdbarch.sh: Update copyright year range of generated files.
10958
b811d2c2
JB
109592020-01-01 Joel Brobecker <brobecker@adacore.com>
10960
10961 Update copyright year range in all GDB files.
10962
5f4def5c
JB
109632020-01-01 Joel Brobecker <brobecker@adacore.com>
10964
10965 * copyright.py: Convert to Python 3.
10966
51fd4002
JB
109672020-01-01 Joel Brobecker <brobecker@adacore.com>
10968
10969 * copyright.py: Adapt after move of gnulib directory from gdb
10970 directory to toplevel directory.
10971
5fb651f2
JB
109722020-01-01 Joel Brobecker <brobecker@adacore.com>
10973
10974 * copyright.py (main): Exit if run from the wrong directory.
10975
5dd8bf88
JB
109762020-01-01 Joel Brobecker <brobecker@adacore.com>
10977
10978 * top.c (print_gdb_version): Change copyright year to 2020.
10979
9f71dacb 109802020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10981
9f71dacb 10982 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10983
9f71dacb 10984For older changes see ChangeLog-2019.
c906108c
SS
10985\f
10986Local Variables:
10987mode: change-log
10988left-margin: 8
10989fill-column: 74
10990version-control: never
57da7796 10991coding: utf-8
c906108c 10992End: