]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Fix GDB busy loop when interrupting non-stop program (PR 26199)
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b3e3a4c1
SM
12020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2 Pedro Alves <pedro@palves.net>
3
4 PR gdb/26199
5 * infrun.c (threads_are_resumed_pending_p): Delete.
6 (do_target_wait): Remove threads_are_executing and
7 threads_are_resumed_pending_p checks from the inferior_matches
8 lambda. Update comments.
9
d6cc5d98
PA
102020-07-10 Pedro Alves <pedro@palves.net>
11
12 PR gdb/26199
13 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
14 executing threads.
15
7d3badc6
PA
162020-07-10 Pedro Alves <pedro@palves.net>
17
18 PR gdb/26199
19 * infrun.c (handle_no_resumed): Handle multiple targets.
20
42bd97a6
PA
212020-07-10 Pedro Alves <pedro@palves.net>
22
23 PR gdb/26199
24 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
25 target_is_async_p.
26
43667cc6
PA
272020-07-10 Pedro Alves <pedro@palves.net>
28
29 PR gdb/26199
30 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
31 threads, not all threads.
32
96118d11
PA
332020-07-10 Pedro Alves <pedro@palves.net>
34
35 PR gdb/26199
36 * remote.c (remote_target::open_1): Pass remote target pointer as
37 data to create_async_event_handler.
38 (remote_async_inferior_event_handler): Mark async event handler
39 before returning if the remote target still has either pending
40 events or unacknowledged notifications.
41
54904d81
JB
422020-07-10 John Baldwin <jhb@FreeBSD.org>
43
44 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
45 declaration.
46 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
47 function.
48
f37e5866
JB
492020-07-09 John Baldwin <jhb@FreeBSD.org>
50
51 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
52 inferior_ptid.
53
fc238d4a
JB
542020-07-09 John Baldwin <jhb@FreeBSD.org>
55
56 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
57 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
58 AT_FREEBSD_PS_STRINGS.
59
6e2469ff
HD
602020-07-08 Hannes Domani <ssbssa@yahoo.de>
61
62 * auto-load.c (auto_load_objfile_script_1): Convert drive part
63 of debugfile path on Windows.
64
d1076c41
JB
652020-07-08 John Baldwin <jhb@FreeBSD.org>
66
67 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
68 argument to 'data'.
69
15f3b077
TT
702020-07-08 Tom Tromey <tromey@adacore.com>
71
72 * ada-lang.c (ada_exception_message_1): Use read_memory.
73
9fc501fd
AB
742020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
75
76 PR python/22748
77 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
78 special handling for inline frames.
79 * findvar.c (value_of_register_lazy): Skip inline frames when
80 creating lazy register values.
81 * frame.c (frame_id_computed_p): Delete definition.
82 * frame.h (frame_id_computed_p): Delete declaration.
83
64cb3757
AB
842020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
85
86 * NEWS: Mention additions to Python API.
87 * python/py-arch.c (archpy_register_groups): New function.
88 (arch_object_methods): Add 'register_groups' method.
89 * python/py-registers.c (reggroup_iterator_object): New struct.
90 (reggroup_object): New struct.
91 (gdbpy_new_reggroup): New function.
92 (gdbpy_reggroup_to_string): New function.
93 (gdbpy_reggroup_name): New function.
94 (gdbpy_reggroup_iter): New function.
95 (gdbpy_reggroup_iter_next): New function.
96 (gdbpy_new_reggroup_iterator): New function
97 (gdbpy_initialize_registers): Register new types.
98 (reggroup_iterator_object_type): Define new Python type.
99 (gdbpy_reggroup_getset): New static global.
100 (reggroup_object_type): Define new Python type.
101 * python/python-internal.h
102
0f767f94
AB
1032020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
104
105 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
106 * python/py-arch.c (archpy_registers): New function.
107 (arch_object_methods): Add 'registers' method.
108 * python/py-registers.c: New file.
109 * python/python-internal.h
110 (gdbpy_new_register_descriptor_iterator): Declare.
111 (gdbpy_initialize_registers): Declare.
112 * python/python.c (do_start_initialization): Call
113 gdbpy_initialize_registers.
114 * NEWS: Mention additions to the Python API.
115
87dbc774
AB
1162020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
117
118 * NEWS: Mention new Python API method.
119 * python/py-unwind.c (pending_framepy_architecture): New function.
120 (pending_frame_object_methods): Add architecture method.
121
3bc98c0c
AB
1222020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
123
124 * gdbarch.c: Regenerate.
125 * gdbarch.h: Regenerate.
126 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
127 (gdbarch_data): Use internal_error for the case where
128 deprecated_set_gdbarch_data was originally needed.
129 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
130 and use passed in obstack.
131 (libunwind_frame_set_descr): Should no longer get back NULL from
132 gdbarch_data.
133 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
134 type.
135 * user-regs.c (user_regs_init): Update parameters, and use passed
136 in obstack.
137 (user_reg_add): Should no longer get back NULL from gdbarch_data.
138 (_initialize_user_regs): Register as a pre-init gdbarch data type.
139
d8cc8af6
TV
1402020-07-06 Tom de Vries <tdevries@suse.de>
141
142 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
143 End-Of-Sequence in lte_is_less_than.
144 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
145 "gdb: Don't reorder line table entries too much when sorting".
146
947f7597
TV
1472020-07-06 Tom de Vries <tdevries@suse.de>
148
149 PR tui/26205
150 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
151
1e7c1b22
TV
1522020-07-05 Tom de Vries <tdevries@suse.de>
153
154 PR build/26187
155 * inferior.h (struct infcall_suspend_state_deleter): If available, use
156 std::uncaught_exceptions instead of deprecated
157 std::uncaught_exception.
158
a36158ec
SM
1592020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
160
161 * macroexp.h (macro_stringify): Return
162 gdb::unique_xmalloc_ptr<char>.
163 * macroexp.c (macro_stringify): Likewise.
164 * macrotab.c (fixup_definition): Update.
165
14d960c8
SM
1662020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
167
168 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
169 (lex_one_token): Update.
170 * macroexp.c (struct macro_buffer) <release>: Return
171 gdb::unique_xmalloc_ptr<char>.
172 (macro_stringify): Update.
173 (macro_expand): Update.
174 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
175 * macroexp.h (macro_expand_next): Likewise.
176
211d5b1c
SM
1772020-07-02 Simon Marchi <simon.marchi@efficios.com>
178
179 * macroexp.h (macro_lookup_ftype): Remove.
180 (macro_expand, macro_expand_once, macro_expand_next): Remove
181 lookup function parameters, add scope parameter.
182 * macroexp.c (scan, substitute_args, expand, maybe_expand,
183 macro_expand, macro_expand_once, macro_expand_next): Likewise.
184 * macroscope.h (standard_macro_lookup): Change parameter type
185 to macro_scope.
186 * macroscope.c (standard_macro_lookup): Likewise.
187 * c-exp.y (lex_one_token): Update.
188 * macrocmd.c (macro_expand_command): Likewise.
189 (macro_expand_once_command): Likewise.
190
b1a35af2
SM
1912020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
192
193 * inf-loop.c (inferior_event_handler): Remove client_data param.
194 * inf-loop.h (inferior_event_handler): Likewise.
195 * infcmd.c (step_1): Adjust.
196 * infrun.c (proceed): Adjust.
197 (fetch_inferior_event): Remove client_data param.
198 (infrun_async_inferior_event_handler): Adjust.
199 * infrun.h (fetch_inferior_event): Remove `void *` param.
200 * linux-nat.c (handle_target_event): Adjust.
201 * record-btrace.c (record_btrace_handle_async_inferior_event):
202 Adjust.
203 * record-full.c (record_full_async_inferior_event_handler):
204 Adjust.
205 * remote.c (remote_async_inferior_event_handler): Adjust.
206
1cdf9e33
TT
2072020-07-01 Tom Tromey <tom@tromey.com>
208
209 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
210 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
211
32c1e210
TT
2122020-07-01 Tom Tromey <tom@tromey.com>
213
214 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
215 tui_gen_win_info.
216 (tui_win_info::make_window): Merge with
217 tui_gen_win_info::make_window.
218 (tui_win_info::make_visible): Move from tui_gen_win_info.
219 * tui/tui-win.c (tui_win_info::max_width): Move from
220 tui_gen_win_info.
221 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
222 type.
223 <window_factory>: Likewise.
224 * tui/tui-layout.c (tui_win_info::resize): Move from
225 tui_gen_win_info.
226 (make_standard_window): Change return type.
227 (get_locator_window, tui_get_window_by_name): Likewise.
228 (tui_layout_window::apply): Remove a cast.
229 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
230 (struct tui_win_info): Merge with tui_gen_win_info.
231 (struct tui_gen_win_info): Remove.
232
a30cb6da
TT
2332020-07-01 Tom Tromey <tom@tromey.com>
234
235 * tui/tui-stack.h (struct tui_locator_window): Derive from
236 tui_win_info.
237 <do_scroll_horizontal, do_scroll_vertical>: New methods.
238 <can_box>: New method.
239
1eb2161f
TT
2402020-07-01 Tom Tromey <tom@tromey.com>
241
242 * tui/tui-stack.h (struct tui_locator_window): Remove body.
243
7134f2eb
TT
2442020-07-01 Tom Tromey <tom@tromey.com>
245
246 * tui/tui-regs.c (tui_data_window::display_registers_from)
247 (tui_data_window::display_registers_from)
248 (tui_data_window::first_data_item_displayed)
249 (tui_data_window::delete_data_content_windows): Update.
250 (tui_data_window::refresh_window, tui_data_window::no_refresh):
251 Remove.
252 (tui_data_window::check_register_values): Update.
253 (tui_data_item_window::rerender): Add parameters. Update.
254 (tui_data_item_window::refresh_window): Remove.
255 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
256 virtual.
257 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
258 tui_gen_win_info.
259 <refresh_window, max_height, min_height>: Remove.
260 <rerender>: Add parameters.
261 <x, y, visible>: New members.
262 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
263 <m_item_width>: New member.
264
22b7b041
TT
2652020-07-01 Tom Tromey <tom@tromey.com>
266
267 * tui/tui-regs.c (tui_data_window::show_register_group)
268 (tui_data_window::check_register_values): Update.
269 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
270 from item_no.
271
c9753adb
TT
2722020-07-01 Tom Tromey <tom@tromey.com>
273
274 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
275 useless "if".
276
9ab26b4a
TT
2772020-07-01 Tom Tromey <tom@tromey.com>
278
279 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
280 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
281
e555083f
TT
2822020-07-01 Tom Tromey <tom@tromey.com>
283
284 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
285 * tui/tui-winsource.h (enum tui_line_or_address_kind)
286 (struct tui_line_or_address): Move from tui-data.h.
287 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
288 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
289 (tui_cmd_window, tui_source_window_base, tui_source_window)
290 (tui_disasm_window): Don't declare.
291 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
292 to tui-winsource.h.
293 (SINGLE_KEY): Move to tui-stack.c.
294
7a02bab7
TT
2952020-07-01 Tom Tromey <tom@tromey.com>
296
297 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
298 std::string.
299 * tui/tui-regs.c (class tab_expansion_file): New.
300 (tab_expansion_file::write): New method.
301 (tui_register_format): Change return type. Use
302 tab_expansion_file.
303 (tui_get_register, tui_data_window::display_registers_from)
304 (tui_data_item_window::rerender): Update.
305 * tui/tui-io.h (tui_expand_tabs): Don't declare.
306 * tui/tui-io.c (tui_expand_tabs): Remove.
307
ea68593b
TT
3082020-07-01 Tom Tromey <tom@tromey.com>
309
310 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
311
a8caed5d
FS
3122020-07-01 Fangrui Song <maskray@google.com>
313
314 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
315
9cdf9820
AKS
3162020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
317
318 * dwarf2/read.c (set_die_type): Removed conditions to restrict
319 forms for DW_AT_associated and DW_AT_allocated attributes,
320 which is already checked in function attr_to_dynamic_prop.
321
a1520ad8
TT
3222020-06-30 Tom Tromey <tromey@adacore.com>
323
324 * dwarf2/read.c (quirk_rust_enum): Correctly call
325 alloc_rust_variant for default-less enum.
326
5ac58899
TT
3272020-06-30 Tom Tromey <tromey@adacore.com>
328
329 PR build/26183:
330 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
331 gdb::to_string.
332
19b187a9
SM
3332020-06-29 Simon Marchi <simon.marchi@efficios.com>
334
335 * gdbarch.sh (displaced_step_copy_insn): Update doc.
336 * gdbarch.h: Re-generate.
337
cd4c4c07
TT
3382020-06-28 Tom Tromey <tom@tromey.com>
339
340 * command.h (cmd_types): Remove.
341 (cmd_type): Don't declare.
342 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
343 typedef.
344 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
345 * cli/cli-decode.c (cmd_type): Remove.
346
05779d57
PA
3472020-06-27 Pedro Alves <palves@redhat.com>
348
349 * fork-child.c (prefork_hook): Adjust.
350 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
351 Delete.
352 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
353 * inferior.c (inferior::set_tty, inferior::tty): New methods.
354 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
355 Remove declarations.
356 (struct inferior) <set_tty, tty>: New methods.
357 (struct inferior) <terminal>: Rename to ...
358 (struct inferior) <m_terminal>: ... this and make private.
359 * main.c (captured_main_1): Adjust.
360 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
361 (mi_cmd_inferior_tty_show): Adjust.
362 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
363 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
364
1776e3e5
NA
3652020-06-26 Nick Alcock <nick.alcock@oracle.com>
366
367 * configure.ac: Add --enable-libctf: handle --disable-static
368 properly.
369 * acinclude.m4: sinclude ../config/enable.m4.
370 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
371 (LIBCTF): Substitute in.
372 (CTF_DEPS): New, likewise.
373 (CLIBS): libctf needs symbols from libbfd: move earlier.
374 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
375 flags.
376 * ctfread.c: Surround in ENABLE_LIBCTF.
377 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
378 * configure: Regenerate.
379 * config.in: Likewise.
380
58373b80
SM
3812020-06-25 Simon Marchi <simon.marchi@efficios.com>
382
383 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
384
277474ee
SM
3852020-06-25 Simon Marchi <simon.marchi@efficios.com>
386
387 * inferior.h (struct inferior) <terminal>: Change type to
388 gdb::unique_xmalloc_ptr<char>.
389 * inferior.c (inferior::~inferior): Don't free inf->terminal.
390 * infcmd.c (set_inferior_io_terminal): Don't free terminal
391 field, adjust to unique pointer.
392 (get_inferior_io_terminal): Adjust to unique pointer.
393
6d74da72
AB
3942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
395
396 * riscv-tdep.c (riscv_print_registers_info): Loop over all
397 registers, not just the known core set of registers.
398
2e52d038
AB
3992020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
400
401 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
402 fflags, frm, and fcsr registers.
403 (riscv_register_reggroup_p): Remove unknown CSRs from save and
404 restore groups.
405 (riscv_tdesc_unknown_reg): New function.
406 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
407 tdesc_use_registers.
408 * riscv-tdep.h (struct gdbarch_tdep): Add
409 unknown_csrs_first_regnum, unknown_csrs_count,
410 duplicate_fflags_regnum, duplicate_frm_regnum, and
411 duplicate_fcsr_regnum fields.
412
be64fd07
AB
4132020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
414
415 * target-descriptions.c (tdesc_use_registers): Add new parameter a
416 callback, use the callback (when not null) to help number unknown
417 registers.
418 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
419 (tdesc_use_registers): Add extra parameter to declaration.
420
3b9fce96
AB
4212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
422
423 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
424 in the file.
425 (class riscv_pending_register_alias): Likewise.
426 (riscv_register_feature::register_info): Change 'required_p' field
427 to 'required', and change its type. Add 'check' member function.
428 (riscv_register_feature::register_info::check): Define new member
429 function.
430 (riscv_xreg_feature): Change initialisation of 'required' field.
431 (riscv_freg_feature): Likewise.
432 (riscv_virtual_feature): Likewise.
433 (riscv_csr_feature): Likewise.
434 (riscv_check_tdesc_feature): Take extra parameter, the csr
435 tdesc_feature, rewrite the function to use the new
436 riscv_register_feature::register_info::check function.
437 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
438
865bad26
AB
4392020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
440
441 * features/Makefile: Remove all references to the deleted files
442 below.
443 * features/riscv/32bit-csr.c: Deleted.
444 * features/riscv/32bit-csr.xml: Deleted.
445 * features/riscv/64bit-csr.c: Deleted.
446 * features/riscv/64bit-csr.xml: Deleted.
447 * features/riscv/rebuild-csr-xml.sh: Deleted.
448
ed69cbc8
AB
4492020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
450
451 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
452 whitespace error for declaration of names member variable.
453 (struct riscv_register_feature): Add new prefer_first_name member
454 variable, and fix whitespace error in declaration of registers.
455 (riscv_xreg_feature): Initialize prefer_first_name field.
456 (riscv_freg_feature): Likewise.
457 (riscv_virtual_feature): Likewise.
458 (riscv_csr_feature): Likewise.
459 (riscv_register_name): Expand on comments. Remove register name
460 modifications for CSR and virtual registers.
461
4445e8f5
AB
4622020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
463
464 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
465 errors.
466
767a879e
AB
4672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
468
469 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
470 riscv-opc.h.
471 (class riscv_pending_register_alias): New class.
472 (riscv_check_tdesc_feature): Take vector of pending aliases and
473 populate it as appropriate.
474 (riscv_setup_register_aliases): Delete.
475 (riscv_gdbarch_init): Create vector of pending aliases and pass it
476 to riscv_check_tdesc_feature in all cases. Use the vector to
477 create the register aliases.
478
bb6e55f3
RO
4792020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
480
481 * sol2-tdep.c (sol2_static_transform_name): Remove.
482 (sol2_init_abi): Don't register it.
483 * gdbarch.sh (static_transform_name): Remove.
484 * gdbarch.c, gdbarch.h: Regenerate.
485
486 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
487 gdbarch_static_transform_name.
488 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
489 * stabsread.c (define_symbol) <'X'>: Remove.
490 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
491 handling.
492 <'V'>: Likewise.
493 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
494 <'S'>: Remove call to gdbarch_static_transform_name.
495
c6d36836
RO
4962020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
497
498 * procfs.c (procfs_pre_trace): New function.
499 (procfs_target::create_inferior): Pass it to fork_inferior.
500
a7e6196b
RO
5012020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
502
503 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
504 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
505 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
506 sol2-tdep.o, sparc-sol2-tdep.o.
507 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
508 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
509 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
510 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
511
d412e696
RO
5122020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
513
514 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
515 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
516 Call sol2_init_abi.
517 Remove calls to set_gdbarch_skip_solib_resolver,
518 set_gdbarch_core_pid_to_str.
519 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
520 (i386_sol2_static_transform_name): Remove.
521 (i386_sol2_init_abi): Call sol2_init_abi.
522 Remove calls to set_gdbarch_sofun_address_maybe_missing,
523 set_gdbarch_static_transform_name,
524 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
525 Use sol2_sigtramp_p.
526 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
527 (sol2_sigtramp_p): New function.
528 (sol2_static_transform_name): New function.
529 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
530 (sol2_init_abi): New function.
531 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
532 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
533 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
534 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
535 (sparc_sol2_static_transform_name): Remove.
536 (sparc32_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,
540 set_gdbarch_core_pid_to_str.
541 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
542 (sparc_sol2_static_transform_name): Remove
543 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
544 call sol2_sigtramp_p.
545 (sparc64_sol2_init_abi): Call sol2_init_abi.
546 Remove calls to set_gdbarch_sofun_address_maybe_missing,
547 set_gdbarch_static_transform_name,
548 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
549
a8654e7d
PW
5502020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
551
552 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
553 * exec.c (validate_exec_file): If from_tty, set both
554 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
555 * symfile.c (symbol_file_add_with_addrs): if always_confirm
556 and from_tty, unconditionally ask a confirmation.
557
caa7fd04
AB
5582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
559
560 * target-descriptions.c (tdesc_architecture_name): Protect against
561 NULL pointer dereference.
562 (maint_print_xml_tdesc_cmd): New function.
563 (_initialize_target_descriptions): Register new 'maint print
564 xml-tdesc' command and give it the filename completer.
565 * NEWS: Mention new 'maint print xml-tdesc' command.
566
fbf42f4e
AB
5672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
568
569 * target-descriptions.c (class tdesc_compatible_info): New class.
570 (struct target_desc): Change type of compatible vector.
571 (tdesc_compatible_p): Update for change in type of
572 target_desc::compatible.
573 (tdesc_compatible_info_list): New function.
574 (tdesc_compatible_info_arch_name): New function.
575 (tdesc_add_compatible): Update for change in type of
576 target_desc::compatible.
577 (print_c_tdesc::visit_pre): Likewise.
578
20821f4e
AB
5792020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
580
581 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
582 whitespace to underscore.
583 (maint_print_c_tdesc_cmd): Use fake filename for target
584 descriptions that came from the target.
585 (_initialize_target_descriptions): Add filename command completion
586 for 'maint print c-tdesc'.
587
1fb5ee62
SM
5882020-06-23 Simon Marchi <simon.marchi@efficios.com>
589
590 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
591 lines.
592
fc3ecb3e
SM
5932020-06-23 Simon Marchi <simon.marchi@efficios.com>
594
595 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
596 lines.
597 (dwarf2_find_location_expression): Likewise.
598 (call_site_parameter_matches): Likewise.
599 (dwarf2_compile_expr_to_ax): Likewise.
600 (disassemble_dwarf_expression): Likewise.
601 (loclist_describe_location): Likewise.
602
236ef034
PA
6032020-06-23 Pedro Alves <palves@redhat.com>
604
605 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
606 progspace-and-thread.h. Include scoped-mock-context.h instead.
607 (register_to_value_test): Use scoped_mock_context.
608 * regcache.c: Include "scoped-mock-context.h".
609 (cooked_read_test): Don't error out if a target is already pushed.
610 Use scoped_mock_context. Adjust.
611 * scoped-mock-context.h: New file.
612
39e7ecca
AB
6132020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
614
615 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
616 initializer.
617 (ada_language::is_string_type_p): New member function.
618 * c-lang.c (c_language_data): Delete la_is_string_type_p
619 initializer.
620 (cplus_language_data): Likewise.
621 (asm_language_data): Likewise.
622 (minimal_language_data): Likewise.
623 * d-lang.c (d_language_data): Likewise.
624 * f-lang.c (f_is_string_type_p): Delete function, implementation
625 moved to f_language::is_string_type_p.
626 (f_language_data): Delete la_is_string_type_p initializer.
627 (f_language::is_string_type_p): New member function,
628 implementation from f_is_string_type_p.
629 * go-lang.c (go_is_string_type_p): Delete function, implementation
630 moved to go_language::is_string_type_p.
631 (go_language_data): Delete la_is_string_type_p initializer.
632 (go_language::is_string_type_p): New member function,
633 implementation from go_is_string_type_p.
634 * language.c (language_defn::is_string_type_p): Define new member
635 function.
636 (default_is_string_type_p): Make static, add comment copied from
637 header file.
638 (unknown_language_data): Delete la_is_string_type_p initializer.
639 (unknown_language::is_string_type_p): New member function.
640 (auto_language_data): Delete la_is_string_type_p initializer.
641 (auto_language::is_string_type_p): New member function.
642 * language.h (language_data): Delete la_is_string_type_p field.
643 (language_defn::is_string_type_p): Declare new function.
644 (default_is_string_type_p): Delete desclaration, move comment to
645 definition.
646 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
647 moved to m2_language::is_string_type_p.
648 (m2_language_data): Delete la_is_string_type_p initializer.
649 (m2_language::is_string_type_p): New member function,
650 implementation from m2_is_string_type_p.
651 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
652 initializer.
653 * opencl-lang.c (opencl_language_data): Likewise.
654 * p-lang.c (pascal_is_string_type_p): Delete function,
655 implementation moved to pascal_language::is_string_type_p.
656 (pascal_language_data): Delete la_is_string_type_p initializer.
657 (pascal_language::is_string_type_p): New member function,
658 implementation from pascal_is_string_type_p.
659 * rust-lang.c (rust_is_string_type_p): Delete function,
660 implementation moved to rust_language::is_string_type_p.
661 (rust_language_data): Delete la_is_string_type_p initializer.
662 (rust_language::is_string_type_p): New member function,
663 implementation from rust_is_string_type_p.
664 * valprint.c (val_print_scalar_or_string_type_p): Update call to
665 is_string_type_p.
666
4ffc13fb
AB
6672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
668
669 * ada-lang.c (ada_language_data): Delete la_print_typedef
670 initializer.
671 (ada_language::print_typedef): New member function.
672 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
673 (cplus_language_data): Likewise.
674 (asm_language_data): Likewise.
675 (minimal_language_data): Likewise.
676 * d-lang.c (d_language_data): Likewise.
677 * f-lang.c (f_language_data): Likewise.
678 (f_language::print_typedef): New member function.
679 * go-lang.c (go_language_data): Delete la_print_typedef
680 initializer.
681 * language.c (language_defn::print_typedef): Define member
682 function.
683 (unknown_language_data): Delete la_print_typedef initializer.
684 (unknown_language::print_typedef): New member function.
685 (auto_language_data): Delete la_print_typedef initializer.
686 (auto_language::print_typedef): New member function.
687 * language.h (language_data): Delete la_print_typedef field.
688 (language_defn::print_typedef): Declare new member function.
689 (LA_PRINT_TYPEDEF): Update call to print_typedef.
690 (default_print_typedef): Delete declaration.
691 * m2-lang.c (m2_language_data): Delete la_print_typedef
692 initializer.
693 (m2_language::print_typedef): New member function.
694 * objc-lang.c (objc_language_data): Delete la_print_typedef
695 initializer.
696 * opencl-lang.c (opencl_language_data): Likewise.
697 * p-lang.c (pascal_language_data): Likewise.
698 (pascal_language::print_typedef): New member function.
699 * rust-lang.c (rust_print_typedef): Delete function,
700 implementation moved to rust_language::print_typedef.
701 (rust_language): Delete la_print_typedef initializer.
702 (rust_language::print_typedef): New member function,
703 implementation from rust_print_typedef.
704 * typeprint.c (default_print_typedef): Delete.
705
d711ee67
AB
7062020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
707
708 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
709 (ada_language::printstr): New member function.
710 * c-lang.c (c_language_data): Delete la_printstr initializer.
711 (cplus_language_data): Likewise.
712 (asm_language_data): Likewise.
713 (minimal_language_data): Likewise.
714 * d-lang.c (d_language_data): Likewise.
715 * f-lang.c (f_printstr): Rename to f_language::printstr.
716 (f_language_data): Delete la_printstr initializer.
717 (f_language::printstr): New member function, implementation from
718 f_printstr.
719 * go-lang.c (go_language_data): Delete la_printstr initializer.
720 * language.c (language_defn::printstr): Define new member
721 function.
722 (unk_lang_printstr): Delete.
723 (unknown_language_data): Delete la_printstr initializer.
724 (unknown_language::printstr): New member function.
725 (auto_language_data): Delete la_printstr initializer.
726 (auto_language::printstr): New member function.
727 * language.h (language_data): Delete la_printstr field.
728 (language_defn::printstr): Declare new member function.
729 (LA_PRINT_STRING): Update call to printstr.
730 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
731 (m2_language_data): Delete la_printstr initializer.
732 (m2_language::printstr): New member function, implementation from
733 m2_printstr.
734 * objc-lang.c (objc_language_data): Delete la_printstr
735 initializer.
736 * opencl-lang.c (opencl_language_data): Likewise.
737 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
738 (pascal_language_data): Delete la_printstr initializer.
739 (pascal_language::printstr): New member function, implementation
740 from pascal_printstr.
741 * p-lang.h (pascal_printstr): Delete declaration.
742 * rust-lang.c (rust_printstr): Update header comment.
743 (rust_language_data): Delete la_printstr initializer.
744 (rust_language::printstr): New member function.
745
52b50f2c
AB
7462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
747
748 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
749 (ada_language::printchar): New member function.
750 * c-lang.c (c_language_data): Delete la_printchar initializer.
751 (cplus_language_data): Likewise.
752 (asm_language_data): Likewise.
753 (minimal_language_data): Likewise.
754 * d-lang.c (d_language_data): Likewise.
755 * f-lang.c (f_printchar): Rename to f_language::printchar.
756 (f_language_data): Delete la_printchar initializer.
757 (f_language::printchar): New member function, implementation from
758 f_printchar.
759 * go-lang.c (go_language_data): Delete la_printchar initializer.
760 * language.c (unk_lang_printchar): Delete.
761 (language_defn::printchar): Define new member function.
762 (unknown_language_data): Delete la_printchar initializer.
763 (unknown_language::printchar): New member function.
764 (auto_language_data): Delete la_printchar initializer.
765 (auto_language::printchar): New member function.
766 * language.h (language_data): Delete la_printchar field.
767 (language_defn::printchar): Declare new member function.
768 (LA_PRINT_CHAR): Update call to printchar.
769 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
770 (m2_language::printchar): New member function.
771 * objc-lang.c (objc_language_data): Delete la_printchar
772 initializer.
773 * opencl-lang.c (opencl_language_data): Likewise.
774 * p-lang.c (pascal_language_data): Delete la_printchar
775 initializer.
776 (pascal_language::printchar): New member function.
777 * rust-lang.c (rust_printchar): Rename to
778 rust_language::printchar.
779 (rust_language_data): Delete la_printchar initializer.
780 (rust_language::printchar): New member function, implementation
781 from rust_printchar.
782
ec8cec5b
AB
7832020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
784
785 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
786 (ada_language_data): Delete la_emitchar initializer.
787 (ada_language::emitchar): New member function, implementation from
788 emit_char.
789 * c-lang.c (c_language_data): Delete la_emitchar initializer.
790 (cplus_language_data): Likewise.
791 (asm_language_data): Likewise.
792 (minimal_language_data): Likewise.
793 * d-lang.c (d_language_data): Likewise.
794 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
795 (f_language_data): Delete la_emitchar initializer.
796 (f_language::emitchar): New member function, implementation from
797 f_emit_char.
798 * go-lang.c (go_language_data): Delete la_emitchar initializer.
799 * language.c (unk_lang_emit_char): Delete.
800 (language_defn::emitchar): New member function definition.
801 (unknown_language_data): Delete la_emitchar initializer.
802 (unknown_language::emitchar): New member function.
803 (auto_language_data): Delete la_emitchar initializer.
804 (auto_language::emitchar): New member function.
805 * language.h (language_data): Delete la_emitchar field.
806 (language_defn::emitchar): New member field declaration.
807 (LA_EMIT_CHAR): Update call to emitchar.
808 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
809 (m2_language_data): Delete la_emitchar initializer.
810 (m2_language::emitchar): New member function, implementation from
811 m2_emit_char.
812 * objc-lang.c (objc_language_data): Delete la_emitchar
813 initializer.
814 * opencl-lang.c (opencl_language_data): Likewise.
815 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
816 (pascal_language_data): Delete la_emitchar initializer.
817 (pascal_language::emitchar): New member function, implementation
818 from pascal_emit_char.
819 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
820 (rust_language_data): Delete la_emitchar initializer.
821 (rust_language::emitchar): New member function, implementation
822 from rust_emitchar.
823
1bf9c363
AB
8242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
825
826 * ada-lang.c (resolve): Rename to ada_language::post_parser.
827 (ada_language_data): Delete la_post_parser initializer.
828 (ada_language::post_parser): New member function.
829 * c-lang.c (c_language_data): Delete la_post_parser initializer.
830 (cplus_language_data): Likewise.
831 (asm_language_data): Likewise.
832 (minimal_language_data): Likewise.
833 * d-lang.c (d_language_data): Likewise.
834 * f-lang.c (f_language_data): Likewise.
835 * go-lang.c (go_language_data): Likewise.
836 * language.c (unknown_language_data): Likewise.
837 (auto_language_data): Likewise.
838 * language.h (language_data): Delete la_post_parser field.
839 (language_defn::post_parser): New member function.
840 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
841 * objc-lang.c (objc_language_data): Likewise.
842 * opencl-lang.c (opencl_language_data): Likewise.
843 * p-lang.c (pascal_language_data): Likewise.
844 * parse.c (parse_exp_in_context): Update call to post_parser.
845 (null_post_parser): Delete definition.
846 * parser-defs.h (null_post_parser): Delete declaration.
847 * rust-lang.c (rust_language_data): Delete la_post_parser
848 initializer.
849
87afa652
AB
8502020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
851
852 * ada-lang.c (parse): Rename to ada_language::parser.
853 (ada_language_data): Delete la_parser initializer.
854 (ada_language::parser): New member function, implementation from
855 parse.
856 * c-lang.c (c_language_data): Delete la_parser initializer.
857 (cplus_language_data): Likewise.
858 (asm_language_data): Likewise.
859 (minimal_language_data): Likewise.
860 * d-lang.c (d_language_data): Likewise.
861 (d_language::parser): New member function.
862 * f-lang.c (f_language_data): Delete la_parser initializer.
863 (f_language::parser): New member function.
864 * go-lang.c (go_language_data): Delete la_parser initializer.
865 (go_language::parser): New member function.
866 * language.c (unk_lang_parser): Delete.
867 (language_defn::parser): Define new member function.
868 (unknown_language_data): Delete la_parser initializer.
869 (unknown_language::parser): New member function.
870 (auto_language_data): Delete la_parser initializer.
871 (auto_language::parser): New member function.
872 * language.h (language_data): Delete la_parser field.
873 (language_defn::parser): Declare new member function.
874 * m2-lang.c (m2_language_data): Delete la_parser initializer.
875 (m2_language::parser): New member function.
876 * objc-lang.c (objc_language_data): Delete la_parser initializer.
877 * opencl-lang.c (opencl_language_data): Likewise.
878 * p-lang.c (pascal_language_data): Likewise.
879 (pascal_language::parser): New member function.
880 * parse.c (parse_exp_in_context): Update call to parser.
881 * rust-lang.c (rust_language_data): Delete la_parser initializer.
882 (rust_language::parser): New member function.
883
37825800
AB
8842020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
885
886 * top.c (print_gdb_configuration): Print --with-python-libdir
887 configuration value.
888
5b860c93
PW
8892020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
890
891 * NEWS: Mention change to the alias command.
892
cf00cd6f
PW
8932020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
894
895 * cli/cli-cmds.c (lookup_cmd_for_default_args)
896 (alias_command_completer)
897 (make_alias_options_def_group): New functions.
898 (alias_opts, alias_option_defs): New struct and array.
899 (alias_usage_error): Update usage.
900 (alias_command): Handles optional DEFAULT-ARGS... arguments.
901 Use option framework.
902 (_initialize_cli_cmds): Update alias command help.
903 Update aliases command help.
904 (show_user):
905 Add NULL for new default_args lookup_cmd argument.
906 (valid_command_p): Rename to validate_aliased_command.
907 Add NULL for new default_args lookup_cmd argument. Verify that the
908 aliased_command has no default args.
909 * cli/cli-decode.c (help_cmd): Show aliases definitions.
910 (lookup_cmd_1, lookup_cmd): New argument default_args.
911 (add_alias_cmd):
912 Add NULL for new default_args lookup_cmd argument.
913 (print_help_for_command): Show default args under the layout
914 alias some_alias = some_aliased_cmd some_alias_default_arg.
915 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
916 xfree default_args in destructor.
917 * cli/cli-script.c (process_next_line, do_define_command):
918 Add NULL for new default_args lookup_cmd argument.
919 * command.h: Declare new default_args argument in lookup_cmd
920 and lookup_cmd_1.
921 * completer.c (complete_line_internal_1):
922 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
923 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
924 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
925 Likewise.
926 * infcmd.c (_initialize_infcmd): Likewise.
927 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
928 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
929 * python/py-param.c (add_setshow_generic): Likewise.
930 * remote.c (_initialize_remote): Likewise.
931 * top.c (execute_command): Prepend default_args if command has some.
932 (set_verbose):
933 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
934 * tracepoint.c (validate_actionline, encode_actions_1):
935 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
936
bd920864
TBA
9372020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
938
939 * jit.c (jit_read_descriptor): Use bool as the return type.
940 (jit_breakpoint_re_set_internal): Use bool as the return type.
941 Invert the return value logic; return true if the jit breakpoint
942 has been successfully initialized.
943 (jit_inferior_init): Update the call to
944 jit_breakpoint_re_set_internal.
945
f8098322
PA
9462020-06-22 Pedro Alves <palves@redhat.com>
947
948 PR gdb/25939
949 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
950 Use the current inferior instead. Don't return
951 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
952 wait again.
953 * sol-thread.c (sol_thread_target::wait): Don't reference
954 inferior_ptid.
955 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
956 (sol_update_thread_list_callback): Use the current inferior's pid
957 instead of inferior_ptid.
958
196535a6
RO
9592020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
960
961 * procfs.c: Cleanup many comments.
962
963 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
964 (AFTER_WATCHFLAG): Replace by value.
965
966 (MAIN_PROC_NAME_FORMAT): Inline ...
967 (create_procinfo): ... here.
968
969 (procfs_debug_inferior): Remove SYS_exec handling.
970 (syscall_is_exec): Likewise.
971 (procfs_set_exec_trap): Likewise.
972
973 (syscall_is_lwp_exit): Inline in callers.
974 (syscall_is_exit): Likewise.
975 (syscall_is_exec): Likewise.
976 (syscall_is_lwp_create): Likewise.
977
978 (invalidate_cache): Remove #if 0 code.
979
980 (make_signal_thread_runnable): Remove.
981 (procfs_target::resume): Remove #if 0 code.
982
cf6f3e86
RO
9832020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
984
985 PR gdb/25939
986 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
987 call ...
988 (procfs_target::create_inferior): ... here.
989
48e9cc84
PW
9902020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
991
992 * exec.c (validate_exec_file): Ensure the build-id is up to
993 date by calling reopen_exec_file (that checks file timestamp
994 to decide to re-read the file).
995
3922b302
PA
9962020-06-18 Pedro Alves <palves@redhat.com>
997
998 PR gdb/25412
999 * gdbthread.h (delete_thread, delete_thread_silent)
1000 (find_thread_ptid): Update comments.
1001 * thread.c (current_thread_): New global.
1002 (is_current_thread): Move higher, and reimplement.
1003 (inferior_thread): Reimplement.
1004 (set_thread_exited): Use bool. Add assertions.
1005 (add_thread_silent): Simplify thread-reuse handling by always
1006 calling delete_thread.
1007 (delete_thread): Remove intro comment.
1008 (find_thread_ptid): Skip exited threads.
1009 (switch_to_thread_no_regs): Write to current_thread_.
1010 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1011 INFERIOR_PTID. Clear current_thread_.
1012
6dbdab44
PA
10132020-06-18 Pedro Alves <palves@redhat.com>
1014
1015 * aix-thread.c (pd_update): Use switch_to_thread.
1016
2da4b788
PA
10172020-06-18 Pedro Alves <palves@redhat.com>
1018
1019 * ravenscar-thread.c (ravenscar_thread_target): Update.
1020 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1021 (ravenscar_thread_target::add_active_thread): ... this. Don't
1022 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1023 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1024
50838d1b
PA
10252020-06-18 Pedro Alves <palves@redhat.com>
1026
1027 * nat/windows-nat.c (current_windows_thread): Remove.
1028 * nat/windows-nat.h (current_windows_thread): Remove.
1029 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1030 Adjust.
1031 (display_selectors): Adjust to fetch the current
1032 windows_thread_info based on inferior_ptid.
1033 (fake_create_process): No longer write to current_windows_thread.
1034 (windows_nat_target::get_windows_debug_event):
1035 Don't set inferior_ptid or current_windows_thread.
1036 (windows_nat_target::wait): Adjust to not rely on
1037 current_windows_thread.
1038 (do_initial_windows_stuff): Now a method of windows_nat_target.
1039 Switch to the last_ptid thread.
1040 (windows_nat_target::attach): Adjust.
1041 (windows_nat_target::detach): Use switch_to_no_thread instead of
1042 writing to inferior_ptid directly.
1043 (windows_nat_target::create_inferior): Adjust.
1044
31ce04e9
PA
10452020-06-18 Pedro Alves <palves@redhat.com>
1046
1047 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1048
1ee1a363
PA
10492020-06-18 Pedro Alves <palves@redhat.com>
1050
1051 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1052 after creating it, instead of writing to inferior_ptid. Don't
1053 write to inferior_ptid.
1054
6d350754
PA
10552020-06-18 Pedro Alves <palves@redhat.com>
1056
1057 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1058
5d971d48
PA
10592020-06-18 Pedro Alves <palves@redhat.com>
1060
1061 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1062 it, instead of writing to inferior_ptid.
1063
86e57d1b
PA
10642020-06-18 Pedro Alves <palves@redhat.com>
1065
1066 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1067 to inferior_ptid.
1068
f2e1c129
PA
10692020-06-18 Pedro Alves <palves@redhat.com>
1070
1071 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1072 instead of writing to inferior_ptid directly.
1073
60db1b85
PA
10742020-06-18 Pedro Alves <palves@redhat.com>
1075
1076 * corelow.c (core_target::close): Use switch_to_no_thread instead
1077 of writing to inferior_ptid directly.
1078 (add_to_thread_list, core_target_open): Use switch_to_thread
1079 instead of writing to inferior_ptid directly.
1080
fe7d6a8d
PA
10812020-06-18 Pedro Alves <palves@redhat.com>
1082
1083 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1084 inferior_ptid.
1085 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1086 inferior_ptid.
1087 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1088 inferior_ptid directly.
1089 (darwin_nat_target::init_thread_list): Switch to thread, instead
1090 of writing to inferior_ptid.
1091 (darwin_nat_target::attach): Don't write to inferior_ptid.
1092 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1093
975f8708
PA
10942020-06-18 Pedro Alves <palves@redhat.com>
1095
1096 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1097 thread.
1098 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1099 Instead use switch_to_thread.
1100 (gnu_nat_target::detach): Use switch_to_no_thread
1101 instead of writing to inferior_ptid directly. Used passed-in
1102 inferior instead of looking up the inferior by pid.
1103
1a204730
PA
11042020-06-18 Pedro Alves <palves@redhat.com>
1105
1106 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1107 inferior_ptid.
1108
ebe84f23
PA
11092020-06-18 Pedro Alves <palves@redhat.com>
1110
1111 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1112 inferior_ptid.
1113 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1114 thread.
1115 (nto_procfs_target::detach): Avoid referencing
1116 inferior_ptid. Use switch_to_no_thread instead of writing to
1117 inferior_ptid directly.
1118 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1119 instead of writing to inferior_ptid directly.
1120 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1121 to thread.
1122
191f02e5
PA
11232020-06-18 Pedro Alves <palves@redhat.com>
1124
1125 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1126 after creating it, instead of writing to inferior_ptid.
1127 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1128 to inferior_ptid directly.
1129 (gdbsim_target::wait): Don't write to inferior_ptid.
1130
0ac55310
PA
11312020-06-18 Pedro Alves <palves@redhat.com>
1132
1133 * remote.c (remote_target::remote_notice_new_inferior): Use
1134 switch_to_thread instead of writing to inferior_ptid directly.
1135 (remote_target::add_current_inferior_and_thread): Use
1136 switch_to_no_thread instead of writing to inferior_ptid directly.
1137 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1138 and switch_to_thread instead of using set_current_inferior or
1139 writing to inferior_ptid directly.
1140
5233f39b
PA
11412020-06-18 Pedro Alves <palves@redhat.com>
1142
1143 * tracectf.c (ctf_target_open): Switch to added thread instead of
1144 writing to inferior_ptid directly.
1145 (ctf_target::close): Use switch_to_no_thread instead of writing to
1146 inferior_ptid directly.
1147
087e161b
PA
11482020-06-18 Pedro Alves <palves@redhat.com>
1149
1150 * tracefile-tfile.c (tfile_target_open): Don't write to
1151 inferior_ptid directly, instead switch to added thread.
1152 (tfile_target::close): Use switch_to_no_thread instead of writing
1153 to inferior_ptid directly.
1154
7fb43e53
PA
11552020-06-18 Pedro Alves <palves@redhat.com>
1156
1157 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1158 (procfs_target::detach): Use switch_to_no_thread
1159 instead of writing to inferior_ptid directly.
1160 (do_attach): Change return type to void. Switch to the added
1161 thread.
1162 (procfs_target::create_inferior): Switch to the added thread.
1163 (procfs_do_thread_registers): Don't write to inferior_ptid.
1164
18493a00
PA
11652020-06-18 Pedro Alves <palves@redhat.com>
1166
1167 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1168 of writing to inferior_ptid.
1169 (scoped_restore_exited_inferior): Delete.
1170 (handle_vfork_child_exec_or_exit): Simplify using
1171 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1172 instead of writing to inferior_ptid.
1173 (THREAD_STOPPED_BY): Delete.
1174 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1175 (thread_stopped_by_hw_breakpoint): Delete.
1176 (save_waitstatus): Use
1177 scoped_restore_current_thread+switch_to_thread, and call
1178 target_stopped_by_watchpoint instead of
1179 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1180 instead of thread_stopped_by_sw_breakpoint, and
1181 target_stopped_by_hw_breakpoint instead of
1182 thread_stopped_by_hw_breakpoint.
1183 (handle_inferior_event)
1184 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1185 inferior_ptid directly, nor
1186 set_current_inferior/set_current_program_space. Use
1187 switch_to_thread / switch_to_inferior_no_thread instead.
1188
a0776b13
PA
11892020-06-18 Pedro Alves <palves@redhat.com>
1190
1191 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1192 instead of writing to inferior_ptid.
1193
6155c136
PA
11942020-06-18 Pedro Alves <palves@redhat.com>
1195
1196 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1197 added thread.
1198 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1199 to the added thread.
1200 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1201 instead of writing to inferior_ptid.
1202
c5316fc6
PA
12032020-06-18 Pedro Alves <palves@redhat.com>
1204
1205 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1206 (register_to_value_test): Mock a program_space too. Heap-allocate
1207 the address space. Don't write to inferior_ptid. Use
1208 switch_to_thread instead.
1209
8df01799
PA
12102020-06-18 Pedro Alves <palves@redhat.com>
1211
1212 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1213 Delete.
1214 (find_signalled_thread()): New, factored out from
1215 linux_make_corefile_notes and adjusted to handle exited threads.
1216 (linux_make_corefile_notes): Adjust to use the new
1217 find_signalled_thread.
1218
41792d68
PA
12192020-06-18 Pedro Alves <palves@redhat.com>
1220
1221 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1222 of saving/restoring inferior_ptid.
1223
612f258a
TT
12242020-06-17 Tom Tromey <tom@tromey.com>
1225
1226 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1227 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1228 declare.
1229 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1230
efb763a5
SM
12312020-06-15 Simon Marchi <simon.marchi@efficios.com>
1232
1233 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1234 of partial symtabs.
1235
2951f6c0
SM
12362020-06-17 Simon Marchi <simon.marchi@efficios.com>
1237
1238 * regformats/reg-arm.dat: Remove.
1239 * regformats/reg-bfin.dat: Remove.
1240 * regformats/reg-cris.dat: Remove.
1241 * regformats/reg-crisv32.dat: Remove.
1242 * regformats/reg-m32r.dat: Remove.
1243 * regformats/reg-tilegx.dat: Remove.
1244 * regformats/reg-tilegx32.dat: Remove.
1245
7d458ea5
SM
12462020-06-17 Simon Marchi <simon.marchi@efficios.com>
1247
1248 * features/Makefile (WHICH): Remove arm files.
1249 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1250 * regformats/arm/arm-with-neon.dat: Remove.
1251 * regformats/arm/arm-with-vfpv2.dat: Remove.
1252 * regformats/arm/arm-with-vfpv3.dat: Remove.
1253
3af96c0d
SM
12542020-06-17 Simon Marchi <simon.marchi@efficios.com>
1255
1256 * features/Makefile (XMLTOC): Remove rx.xml.
1257
b25e22fd
PA
12582020-06-17 Pedro Alves <palves@redhat.com>
1259
1260 * gdbthread.h (thread_control_state) <trap_expected> Update
1261 comments.
1262
a78a19b1
AB
12632020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1264
1265 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1266 ada_language::lookup_symbol_nonlocal.
1267 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1268 (ada_language::lookup_symbol_nonlocal): New member function,
1269 implementation from ada_lookup_symbol_nonlocal.
1270 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1271 initializer.
1272 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1273 initializer.
1274 (cplus_language::lookup_symbol_nonlocal): New member function.
1275 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1276 (minimal_language_data) Likewise.
1277 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1278 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1279 initializer.
1280 (d_language::lookup_symbol_nonlocal): New member function.
1281 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1282 initializer.
1283 (f_language::lookup_symbol_nonlocal): New member function.
1284 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1285 initializer.
1286 * language.c (unknown_language_data): Likewise.
1287 (auto_language_data): Likewise.
1288 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1289 field.
1290 (language_defn::lookup_symbol_nonlocal): New member function.
1291 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1292 initializer.
1293 * objc-lang.c (objc_language_data): Likewise.
1294 * opencl-lang.c (opencl_language_data): Likewise.
1295 * p-lang.c (pascal_language_data): Likewise.
1296 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1297 rust_language::lookup_symbol_nonlocal.
1298 (rust_language_data): Delete la_lookup_symbol_nonlocal
1299 initializer.
1300 (rust_language::lookup_symbol_nonlocal): New member function,
1301 implementation from rust_lookup_symbol_nonlocal.
1302 * symtab.c (lookup_symbol_aux): Update call to
1303 lookup_symbol_nonlocal.
1304 (basic_lookup_symbol_nonlocal): Rename to...
1305 (language_defn::lookup_symbol_nonlocal): ...this, and update
1306 header comment. Remove language_defn parameter, and replace with
1307 uses of `this'.
1308 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1309
ebe2334e
AB
13102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1311
1312 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1313 initializer.
1314 (ada_language::value_print_inner): New member function.
1315 * c-lang.c (c_language_data): Delete la_value_print_inner
1316 initializer.
1317 (cplus_language_data): Likewise.
1318 (asm_language_data): Likewise.
1319 (minimal_language_data): Likewise.
1320 * d-lang.c (d_language_data): Likewise.
1321 (d_language::value_print_inner): New member function.
1322 * f-lang.c (f_language_data): Delete la_value_print_inner
1323 initializer.
1324 (f_language::value_print_inner): New member function.
1325 * f-lang.h (f_value_print_innner): Rename to...
1326 (f_value_print_inner): ...this (note spelling of 'inner').
1327 * f-valprint.c (f_value_print_innner): Rename to...
1328 (f_value_print_inner): ...this (note spelling of 'inner').
1329 * go-lang.c (go_language_data): Delete la_value_print_inner
1330 initializer.
1331 (go_language::value_print_inner): New member function.
1332 * language.c (language_defn::value_print_inner): Define new member
1333 function.
1334 (unk_lang_value_print_inner): Delete.
1335 (unknown_language_data): Delete la_value_print_inner initializer.
1336 (unknown_language::value_print_inner): New member function.
1337 (auto_language_data): Delete la_value_print_inner initializer.
1338 (auto_language::value_print_inner): New member function.
1339 * language.h (language_data): Delete la_value_print_inner field.
1340 (language_defn::value_print_inner): Delcare new member function.
1341 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1342 initializer.
1343 (m2_language::value_print_inner): New member function.
1344 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1345 initializer.
1346 * opencl-lang.c (opencl_language_data): Likewise.
1347 * p-lang.c (pascal_language_data): Likewise.
1348 (pascal_language::value_print_inner): New member function.
1349 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1350 initializer.
1351 (rust_language::value_print_inner): New member function.
1352 * valprint.c (do_val_print): Update call to value_print_inner.
1353
a1d1fa3e
AB
13542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1355
1356 * ada-lang.c (ada_language_data): Delete la_value_print
1357 initializer.
1358 (ada_language::value_print): New member function.
1359 * c-lang.c (c_language_data): Delete la_value_print initializer.
1360 (cplus_language_data): Likewise.
1361 (asm_language_data): Likewise.
1362 (minimal_language_data): Likewise.
1363 * d-lang.c (d_language_data): Likewise.
1364 * f-lang.c (f_language_data): Likewise.
1365 * go-lang.c (go_language_data): Likewise.
1366 * language.c (unk_lang_value_print): Delete.
1367 (language_defn::value_print): Define new member function.
1368 (unknown_language_data): Delete la_value_print initializer.
1369 (unknown_language::value_print): New member function.
1370 (auto_language_data): Delete la_value_print initializer.
1371 (auto_language::value_print): New member function.
1372 * language.h (language_data): Delete la_value_print field.
1373 (language_defn::value_print): Declare new member function.
1374 (LA_VALUE_PRINT): Update call to value_print.
1375 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1376 * objc-lang.c (objc_language_data): Likewise.
1377 * opencl-lang.c (opencl_language_data): Likewise.
1378 * p-lang.c (pascal_language_data): Likewise.
1379 (pascal_language::value_print): New member function.
1380 * rust-lang.c (rust_language_data): Delete la_value_print
1381 initializer.
1382
f16a9f57
AB
13832020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1384
1385 * ada-lang.c (ada_watch_location_expression): Rename to
1386 ada_language::watch_location_expression.
1387 (ada_language_data): Delete la_watch_location_expression
1388 initializer.
1389 (ada_language::watch_location_expression): New member function,
1390 implementation from ada_watch_location_expression.
1391 * breakpoint.c (watch_command_1): Update call to
1392 watch_location_expression.
1393 * c-lang.c (c_watch_location_expression): Rename to
1394 language_defn::watch_location_expression.
1395 (c_language_data): Delete la_watch_location_expression
1396 initializer.
1397 (cplus_language_data): Likewise.
1398 (asm_language_data): Likewise.
1399 (minimal_language_data): Likewise.
1400 * c-lang.h (c_watch_location_expression): Delete declaration.
1401 * d-lang.c (d_language_data): Delete la_watch_location_expression
1402 initializer.
1403 * f-lang.c (f_language_data): Likewise.
1404 * go-lang.c (go_language_data): Likewise.
1405 * language.c (language_defn::watch_location_expression): Member
1406 function implementation from c_watch_location_expression.
1407 (unknown_language_data): Delete la_watch_location_expression
1408 initializer.
1409 (auto_language_data): Likewise.
1410 * language.h (language_data): Delete la_watch_location_expression
1411 field.
1412 (language_defn::watch_location_expression): Declare new member
1413 function.
1414 * m2-lang.c (m2_language_data): Delete
1415 la_watch_location_expression initializer.
1416 * objc-lang.c (objc_language_data): Likewise.
1417 * opencl-lang.c (opencl_language_data): Likewise.
1418 * p-lang.c (pascal_language_data): Likewise.
1419 * rust-lang.c (rust_watch_location_expression): Rename to
1420 rust_language::watch_location_expression.
1421 (rust_language_data): Delete la_watch_location_expression
1422 initializer.
1423 (rust_language::watch_location_expression): New member function,
1424 implementation from rust_watch_location_expression.
1425
7e56227d
AB
14262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1427
1428 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1429 ada_language::collect_symbol_completion_matches.
1430 (ada_language_data): Delete la_collect_symbol_completion_matches
1431 initializer.
1432 (ada_language::collect_symbol_completion_matches): New member
1433 function, implementation from
1434 ada_collect_symbol_completion_matches.
1435 * c-lang.c (c_language_data): Delete
1436 la_collect_symbol_completion_matches initializer.
1437 (cplus_language_data): Likewise.
1438 (asm_language_data): Likewise.
1439 (minimal_language_data): Likewise.
1440 * d-lang.c (d_language_data): Likewise.
1441 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1442 f_language::collect_symbol_completion_matches.
1443 (f_language_data): Delete la_collect_symbol_completion_matches
1444 initializer.
1445 (f_language::collect_symbol_completion_matches) New member
1446 function, implementation from f_collect_symbol_completion_matches.
1447 * go-lang.c (go_language_data): Delete
1448 la_collect_symbol_completion_matches initializer.
1449 * language.c (unknown_language_data): Likewise.
1450 (auto_language_data): Likewise.
1451 * language.h (language_data): Delete
1452 la_collect_symbol_completion_matches field.
1453 (language_defn::collect_symbol_completion_matches): New member
1454 function.
1455 * m2-lang.c (m2_language_data): Delete
1456 la_collect_symbol_completion_matches initializer.
1457 * objc-lang.c (objc_language_data): Likewise.
1458 * opencl-lang.c (opencl_language_data): Likewise.
1459 * p-lang.c (pascal_language_data): Likewise.
1460 * rust-lang.c (rust_language_data): Likewise.
1461 * symtab.c (default_collect_symbol_completion_matches): Delete.
1462 (collect_symbol_completion_matches): Update call to
1463 collect_symbol_completion_matches.
1464 (collect_symbol_completion_matches_type): Likewise.
1465 * symtab.h (default_collect_symbol_completion_matches): Delete
1466 declaration.
1467
53fc67f8
AB
14682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1469
1470 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1471 (ada_language_data): Delete la_word_break_characters initializer.
1472 (ada_language::word_break_characters): New member function.
1473 * c-lang.c (c_language_data): Delete la_word_break_characters
1474 initializer.
1475 (cplus_language_data): Likewise.
1476 (asm_language_data): Likewise.
1477 (minimal_language_data): Likewise.
1478 * completer.c: Update global comment.
1479 (advance_to_expression_complete_word_point): Update call to
1480 word_break_characters.
1481 (complete_files_symbols): Likewise.
1482 (complete_line_internal_1): Likewise.
1483 (default_completer_handle_brkchars): Likewise.
1484 (skip_quoted_chars): Likewise.
1485 * d-lang.c (d_language_data): Delete la_word_break_characters
1486 initializer.
1487 * f-lang.c (f_word_break_characters): Delete.
1488 (f_language_data): Delete la_word_break_characters initializer.
1489 (f_language::word_break_characters): New member function.
1490 * go-lang.c (go_language_data): Delete la_word_break_characters
1491 initializer.
1492 * language.c (unknown_language_data): Likewise.
1493 (auto_language_data): Likewise.
1494 * language.h (default_word_break_characters): Move declaration to
1495 earlier in the file.
1496 (language_data): Delete la_word_break_characters field.
1497 (language_defn::word_break_characters): New member function.
1498 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1499 initializer.
1500 * objc-lang.c (objc_language_data): Likewise.
1501 * opencl-lang.c (opencl_language_data): Likewise.
1502 * p-lang.c (pascal_language_data): Likewise.
1503 * rust-lang.c (rust_language_data): Likewise.
1504
c9debfb9
AB
15052020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1506
1507 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1508 (ada_language_data): Delete la_get_symbol_name_matcher
1509 initializer.
1510 (language_defn::get_symbol_name_matcher_inner): New member
1511 function.
1512 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1513 initializer.
1514 (cplus_language_data): Likewise.
1515 (cplus_language::get_symbol_name_matcher_inner): New member
1516 function.
1517 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1518 (minimal_language_data): Likewise.
1519 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1520 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1521 initializer.
1522 * dictionary.c (iter_match_first_hashed): Update call to
1523 get_symbol_name_matcher.
1524 (iter_match_next_hashed): Likewise.
1525 (iter_match_next_linear): Likewise.
1526 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1527 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1528 initializer.
1529 (f_language::get_symbol_name_matcher_inner): New member function.
1530 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1531 initializer.
1532 * language.c (default_symbol_name_matcher): Update header comment,
1533 make static.
1534 (language_defn::get_symbol_name_matcher): New definition.
1535 (language_defn::get_symbol_name_matcher_inner): Likewise.
1536 (get_symbol_name_matcher): Delete.
1537 (unknown_language_data): Delete la_get_symbol_name_matcher
1538 initializer.
1539 (auto_language_data): Likewise.
1540 * language.h (language_data): Delete la_get_symbol_name_matcher
1541 field.
1542 (language_defn::get_symbol_name_matcher): New member function.
1543 (language_defn::get_symbol_name_matcher_inner): Likewise.
1544 (default_symbol_name_matcher): Delete declaration.
1545 * linespec.c (find_methods): Update call to
1546 get_symbol_name_matcher.
1547 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1548 initializer.
1549 * minsyms.c (lookup_minimal_symbol): Update call to
1550 get_symbol_name_matcher.
1551 (iterate_over_minimal_symbols): Likewise.
1552 * objc-lang.c (objc_language_data): Delete
1553 la_get_symbol_name_matcher initializer.
1554 * opencl-lang.c (opencl_language_data): Likewise.
1555 * p-lang.c (pascal_language_data): Likewise.
1556 * psymtab.c (psymbol_name_matches): Update call to
1557 get_symbol_name_matcher.
1558 * rust-lang.c (rust_language_data): Delete
1559 la_get_symbol_name_matcher initializer.
1560 * symtab.c (symbol_matches_search_name): Update call to
1561 get_symbol_name_matcher.
1562 (compare_symbol_name): Likewise.
1563
9a49ad8c
AB
15642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1565
1566 * ada-lang.c (ada_language_data): Delete la_compute_program
1567 initializer.
1568 * c-lang.c (c_language_data): Likewise.
1569 (c_language::compute_program): New member function.
1570 (cplus_language_data): Delete la_compute_program initializer.
1571 (cplus_language::compute_program): New member function.
1572 (asm_language_data): Delete la_compute_program initializer.
1573 (minimal_language_data): Likewise.
1574 * c-lang.h (c_compute_program): Update comment.
1575 (cplus_compute_program): Likewise.
1576 * compile/compile-c-support.c (c_compute_program): Likewise.
1577 (cplus_compute_program): Likewise.
1578 * compile/compile.c (compile_to_object): Update call to
1579 la_compute_program.
1580 * d-lang.c (d_language_data): Delete la_compute_program
1581 initializer.
1582 * f-lang.c (f_language_data): Likewise.
1583 * go-lang.c (go_language_data): Likewise.
1584 * language.c (unknown_language_data): Likewise.
1585 (auto_language_data): Likewise.
1586 * language.h (language_data): Delete la_compute_program field.
1587 (language_defn::compute_program): New member function.
1588 * m2-lang.c (m2_language_data): Delete la_compute_program
1589 initializer.
1590 * objc-lang.c (objc_language_data): Likewise.
1591 * opencl-lang.c (opencl_language_data): Likewise.
1592 * p-lang.c (pascal_language_data): Likewise.
1593 * rust-lang.c (rust_language_data): Likewise.
1594
eff93b4d
AB
15952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1596
1597 * ada-lang.c (ada_language_data) Delete
1598 la_class_name_from_physname initializer.
1599 * c-lang.c (c_language_data): Likewise.
1600 (cplus_language_data): Likewise.
1601 (cplus_language::class_name_from_physname): New member function.
1602 (asm_language_data): Delete la_class_name_from_physname
1603 initializer.
1604 (minimal_language_data): Likewise.
1605 * d-lang.c (d_language_data): Likewise.
1606 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1607 method on language_defn class.
1608 (guess_full_die_structure_name): Likewise.
1609 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1610 initializer.
1611 * go-lang.c (go_language_data): Likewise.
1612 * language.c (language_class_name_from_physname): Delete.
1613 (unk_lang_class_name): Delete.
1614 (unknown_language_data): Delete la_class_name_from_physname
1615 initializer.
1616 (auto_language_data): Likewise.
1617 * language.h (language_data): Delete la_class_name_from_physname
1618 field.
1619 (language_defn::class_name_from_physname): New function.
1620 (language_class_name_from_physname): Delete declaration.
1621 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1622 initializer.
1623 * objc-lang.c (objc_language_data): Likewise.
1624 * opencl-lang.c (opencl_language_data): Likewise.
1625 * p-lang.c (pascal_language_data): Likewise.
1626 * rust-lang.c (rust_language_data): Likewise.
1627
de543742
TT
16282020-06-16 Tom Tromey <tom@tromey.com>
1629
1630 * tui/tui-data.h (STATUS_NAME): New macro.
1631 * tui/tui-layout.c (tui_remove_some_windows)
1632 (initialize_known_windows, tui_register_window)
1633 (tui_layout_split::remove_windows, initialize_layouts)
1634 (tui_new_layout_command): Don't use hard-coded window names.
1635
a350efd4
TT
16362020-06-16 Tom Tromey <tom@tromey.com>
1637
1638 PR tui/25348:
1639 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1640 tui_initialize_readline. Only run once. Call rl_initialize.
1641 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1642 tui_initialize_readline.
1643 * tui/tui-io.c (tui_setup_io): Call
1644 tui_ensure_readline_initialized.
1645 * tui/tui-interp.c (tui_interp::init): Update.
1646
39ec0490
TT
16472020-06-16 Tom Tromey <tom@tromey.com>
1648
1649 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1650 Also preserve the status window.
1651
d2d1ea20
TT
16522020-06-16 Tom Tromey <tom@tromey.com>
1653
1654 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1655 where m_window==nullptr.
1656
66920317
TT
16572020-06-15 Tom Tromey <tromey@adacore.com>
1658
1659 * windows-nat.c (windows_nat::handle_output_debug_string):
1660 Update.
1661 (windows_nat::handle_ms_vc_exception): Update.
1662 * target.h (target_read_string): Change API.
1663 * target.c (target_read_string): Change API.
1664 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1665 Update.
1666 * solib-frv.c (frv_current_sos): Update.
1667 * solib-dsbt.c (dsbt_current_sos): Update.
1668 * solib-darwin.c (darwin_current_sos): Update.
1669 * linux-thread-db.c (inferior_has_bug): Update.
1670 * expprint.c (print_subexp_standard): Update.
1671 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1672 (ada_exception_message_1): Update.
1673
a5d871dd
TT
16742020-06-15 Tom Tromey <tromey@adacore.com>
1675
1676 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1677
670e35fa
TT
16782020-06-15 Tom Tromey <tromey@adacore.com>
1679
1680 * valprint.c (read_string): Update comment.
1681 * target.c (MIN): Remove.
1682 (target_read_string): Rewrite.
1683
f5272a3b
TT
16842020-06-15 Tom Tromey <tromey@adacore.com>
1685
1686 * corefile.c (read_memory_string): Remove.
1687 * ada-valprint.c (ada_value_print_ptr): Update.
1688 * ada-lang.h (ada_tag_name): Change return type.
1689 * ada-lang.c (type_from_tag): Update.
1690 (ada_tag_name_from_tsd): Change return type. Use
1691 target_read_string.
1692 (ada_tag_name): Likewise.
1693 * gdbcore.h (read_memory_string): Don't declare.
1694
2c074f49
HD
16952020-06-14 Hannes Domani <ssbssa@yahoo.de>
1696
1697 * symtab.c (rbreak_command): Ignore Windows drive colon.
1698
6a17d503
SM
16992020-06-12 Simon Marchi <simon.marchi@efficios.com>
1700
1701 * NEWS: Mention removed GDBserver host support.
1702
453c733f
NC
17032020-06-12 Nelson Chu <nelson.chu@sifive.com>
1704
1705 * features/riscv/rebuild-csr-xml.sh: Updated.
1706
2b4e6a3f
TT
17072020-06-11 Tom Tromey <tom@tromey.com>
1708
1709 PR gdb/18318:
1710 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1711
4412332f
JG
17122020-06-09 Jonny Grant <jg@jguk.org>
17132020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1714
1715 * main.c (captured_main_1): Don't print new line after help.
1716 (print_gdb_help): add mailing list and IRC channel information
1717 to --help. Add new lines between items in the footer. Remove
1718 quotes around bug url.
1719
2f33032a
KS
17202020-06-11 Keith Seitz <keiths@redhat.com>
1721
1722 PR gdb/21356
1723 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1724 Resolve typedefs for type length calculations.
1725
7ab96794
TV
17262020-06-10 Tom de Vries <tdevries@suse.de>
1727
1728 PR ada/24713
1729 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1730 (write_psymbols): Enable .gdb_index for ada.
1731 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1732 ada.
1733
e5f3ece2
TV
17342020-06-10 Tom de Vries <tdevries@suse.de>
1735
1736 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1737 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1738 namei" instead of "const char *name" argument.
1739 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1740 dw2_symtab_iter_init.
1741
940da03e
SM
17422020-06-08 Simon Marchi <simon.marchi@efficios.com>
1743
1744 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1745 to use type::field and field::type instead.
1746
b6cdac4b
SM
17472020-06-08 Simon Marchi <simon.marchi@efficios.com>
1748
1749 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1750 to use field::type instead.
1751
5d14b6e5
SM
17522020-06-08 Simon Marchi <simon.marchi@efficios.com>
1753
1754 * gdbtypes.h (struct field) <type, set_type>: New methods.
1755 Rename `type` field to...
1756 <m_type>: ... this. Change references throughout to use type or
1757 set_type methods.
1758 (FIELD_TYPE): Use field::type. Change call sites that modify
1759 the field's type to use field::set_type instead.
1760
3d967001
SM
17612020-06-08 Simon Marchi <simon.marchi@efficios.com>
1762
1763 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1764 to use type::index_type instead.
1765
262abc0d
SM
17662020-06-08 Simon Marchi <simon.marchi@efficios.com>
1767
1768 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1769 methods.
1770 (TYPE_INDEX_TYPE): Use type::index_type.
1771 * gdbtypes.c (create_array_type_with_stride): Likewise.
1772
82836c92
TT
17732020-06-07 Tom Tromey <tom@tromey.com>
1774
1775 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1776 parameter.
1777 (generic_value_print): Update.
1778
940dace9
AB
17792020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1780
1781 Revert commit 982a38f60b0.
1782 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1783
982a38f6
AB
17842020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1785
1786 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1787 avoid use after free.
1788
82f06518
TV
17892020-06-05 Tom de Vries <tdevries@suse.de>
1790
1791 * NEWS: Fix typos.
1792
f8c41851
SM
17932020-06-04 Simon Marchi <simon.marchi@efficios.com>
1794
1795 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1796 the per_bfd object.
1797 (dwarf2_read_debug_names): Likewise.
1798 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1799 object when re-using a per_bfd object with an index.
1800
f9b5d5ea
TV
18012020-06-03 Tom de Vries <tdevries@suse.de>
1802
1803 PR symtab/26046
1804 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1805 children for C++.
1806 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1807 DW_TAG_subprogram.
1808
f6eee2d0
AB
18092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1810
1811 * ada-lang.c (ada_language_data): Delete skip_trampoline
1812 initializer.
1813 * c-lang.c (c_language_data): Likewise.
1814 (cplus_language_data): Likewise.
1815 (cplus_language::skip_trampoline): New member function.
1816 (asm_language_data): Delete skip_trampoline initializer.
1817 (minimal_language_data): Likewise.
1818 * d-lang.c (d_language_data): Likewise.
1819 * f-lang.c (f_language_data): Likewise.
1820 * go-lang.c (go_language_data): Likewise.
1821 * language.c (unk_lang_trampoline): Delete function.
1822 (skip_language_trampoline): Update.
1823 (unknown_language_data): Delete skip_trampoline initializer.
1824 (auto_language_data): Likewise.
1825 * language.h (language_data): Delete skip_trampoline field.
1826 (language_defn::skip_trampoline): New function.
1827 * m2-lang.c (m2_language_data): Delete skip_trampoline
1828 initializer.
1829 * objc-lang.c (objc_skip_trampoline): Delete function, move
1830 implementation to objc_language::skip_trampoline.
1831 (objc_language_data): Delete skip_trampoline initializer.
1832 (objc_language::skip_trampoline): New member function with
1833 implementation from objc_skip_trampoline.
1834 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1835 initializer.
1836 * p-lang.c (pascal_language_data): Likewise.
1837 * rust-lang.c (rust_language_data): Likewise.
1838
0a50df5d
AB
18392020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1840
1841 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1842 (ada_language::demangle): New member function.
1843 * c-lang.c (c_language_data): Delete la_demangle initializer.
1844 (cplus_language_data): Delete la_demangle initializer.
1845 (cplus_language::demangle): New member function.
1846 (asm_language_data): Delete la_demangle initializer.
1847 (minimal_language_data): Delete la_demangle initializer.
1848 * d-lang.c (d_language_data): Delete la_demangle initializer.
1849 (d_language::demangle): New member function.
1850 * f-lang.c (f_language_data): Delete la_demangle initializer.
1851 (f_language::demangle): New member function.
1852 * go-lang.c (go_language_data): Delete la_demangle initializer.
1853 (go_language::demangle): New member function.
1854 * language.c (language_demangle): Update.
1855 (unk_lang_demangle): Delete.
1856 (unknown_language_data): Delete la_demangle initializer.
1857 (unknown_language::demangle): New member function.
1858 (auto_language_data): Delete la_demangle initializer.
1859 (auto_language::demangle): New member function.
1860 * language.h (language_data): Delete la_demangle field.
1861 (language_defn::demangle): New function.
1862 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1863 * objc-lang.c (objc_language_data): Delete la_demangle
1864 initializer.
1865 (objc_language::demangle): New member function.
1866 * opencl-lang.c (opencl_language_data): Delete la_demangle
1867 initializer.
1868 * p-lang.c (pascal_language_data): Likewise.
1869 * rust-lang.c (rust_language_data): Likewise.
1870 (rust_language::demangle): New member function.
1871
fbfb0a46
AB
18722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1873
1874 * ada-lang.c (ada_language_data): Delete la_print_type
1875 initializer.
1876 (ada_language::print_type): New member function.
1877 * c-lang.c (c_language_data): Delete la_print_type initializer.
1878 (c_language::print_type): New member function.
1879 (cplus_language_data): Delete la_print_type initializer.
1880 (cplus_language::print_type): New member function.
1881 (asm_language_data): Delete la_print_type initializer.
1882 (asm_language::print_type): New member function.
1883 (minimal_language_data): Delete la_print_type initializer.
1884 (minimal_language::print_type): New member function.
1885 * d-lang.c (d_language_data): Delete la_print_type initializer.
1886 (d_language::print_type): New member function.
1887 * f-lang.c (f_language_data): Delete la_print_type initializer.
1888 (f_language::print_type): New member function.
1889 * go-lang.c (go_language_data): Delete la_print_type initializer.
1890 (go_language::print_type): New member function.
1891 * language.c (unk_lang_print_type): Delete.
1892 (unknown_language_data): Delete la_print_type initializer.
1893 (unknown_language::print_type): New member function.
1894 (auto_language_data): Delete la_print_type initializer.
1895 (auto_language::print_type): New member function.
1896 * language.h (language_data): Delete la_print_type field.
1897 (language_defn::print_type): New function.
1898 (LA_PRINT_TYPE): Update.
1899 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1900 (m2_language::print_type): New member function.
1901 * objc-lang.c (objc_language_data): Delete la_print_type
1902 initializer.
1903 (objc_language::print_type): New member function.
1904 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1905 to opencl_language::print_type.
1906 (opencl_language_data): Delete la_print_type initializer.
1907 (opencl_language::print_type): New member function, implementation
1908 from opencl_print_type.
1909 * p-lang.c (pascal_language_data): Delete la_print_type
1910 initializer.
1911 (pascal_language::print_type): New member function.
1912 * rust-lang.c (rust_print_type): Delete, implementation moved to
1913 rust_language::print_type.
1914 (rust_language_data): Delete la_print_type initializer.
1915 (rust_language::print_type): New member function, implementation
1916 from rust_print_type.
1917
6f827019
AB
19182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1919
1920 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1921 implementation moves to...
1922 (ada_language::sniff_from_mangled_name): ...here. Update return
1923 type.
1924 (ada_language_data): Delete la_sniff_from_mangled_name
1925 initializer.
1926 * c-lang.c (c_language_data): Likewise.
1927 (cplus_language_data): Likewise.
1928 (cplus_language::sniff_from_mangled_name): New member function,
1929 implementation taken from gdb_sniff_from_mangled_name.
1930 (asm_language_data): Delete la_sniff_from_mangled_name
1931 initializer.
1932 (minimal_language_data): Likewise.
1933 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1934 implementation moves to cplus_language::sniff_from_mangled_name.
1935 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1936 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1937 moves to...
1938 (d_language::sniff_from_mangled_name): ...here.
1939 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1940 * f-lang.c (f_language_data): Likewise.
1941 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1942 moves to...
1943 (go_language::sniff_from_mangled_name): ...here.
1944 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1945 * language.c (language_sniff_from_mangled_name): Delete.
1946 (unknown_language_data): Delete la_sniff_from_mangled_name
1947 initializer.
1948 (auto_language_data): Likewise.
1949 * language.h (language_data): Delete la_sniff_from_mangled_name
1950 field.
1951 (language_defn::sniff_from_mangled_name): New function.
1952 (language_sniff_from_mangled_name): Delete declaration.
1953 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1954 field.
1955 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1956 implementation moves to...
1957 (objc_language::sniff_from_mangled_name): ...here.
1958 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1959 * opencl-lang.c (opencl_language_data): Likewise.
1960 * p-lang.c (pascal_language_data): Likewise.
1961 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1962 implementation moves to...
1963 (rust_language::sniff_from_mangled_name): ...here.
1964 (rust_language_data): Delete la_sniff_from_mangled_name
1965 initializer.
1966 * symtab.c (symbol_find_demangled_name): Call
1967 sniff_from_mangled_name member function.
1968
fb8006fd
AB
19692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1970
1971 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1972 initializer.
1973 * c-lang.c (c_language_data): Likewise.
1974 (cplus_language_data): Likewise.
1975 (cplus_language::search_name_hash): New member function.
1976 (asm_language_data): Delete la_search_name_hash initializer.
1977 (minimal_language_data): Likewise.
1978 * d-lang.c (d_language_data): Likewise.
1979 * dictionary.c (default_search_name_hash): Rename to...
1980 (language_defn::search_name_hash): ...this.
1981 * f-lang.c (f_language_data): Likewise.
1982 (f_language::search_name_hash): New member function.
1983 * go-lang.c (go_language_data): Delete la_search_name_hash
1984 initializer.
1985 * language.c (unknown_language_data): Likewise.
1986 (auto_language_data): Likewise.
1987 * language.h (struct language_data): Delete la_search_name_hash
1988 field.
1989 (language_defn::search_name_hash): Declare new member function.
1990 (default_search_name_hash): Delete declaration.
1991 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1992 initializer.
1993 * objc-lang.c (objc_language_data): Likewise.
1994 * opencl-lang.c (opencl_language_data): Likewise.
1995 * p-lang.c (pascal_language_data): Likewise.
1996 * rust-lang.c (rust_language_data): Likewise.
1997 * symtab.c (search_name_hash): Update call.
1998
8e25bafe
AB
19992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2000
2001 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2002 initializer.
2003 * c-lang.c (class compile_instance): Declare.
2004 (c_language_data): Delete la_get_compile_instance initializer.
2005 (c_language::get_compile_instance): New member function.
2006 (cplus_language_data): Delete la_get_compile_instance initializer.
2007 (cplus_language::get_compile_instance): New member function.
2008 (asm_language_data): Delete la_get_compile_instance initializer.
2009 (minimal_language_data): Likewise.
2010 * c-lang.h (c_get_compile_context): Update comment.
2011 (cplus_get_compile_context): Update comment.
2012 * compile/compile.c (compile_to_object): Update calls, don't rely
2013 on function pointer being NULL.
2014 * d-lang.c (d_language_data): Delete la_get_compile_instance
2015 initializer.
2016 * f-lang.c (f_language_data): Likewise.
2017 * go-lang.c (go_language_data): Likewise.
2018 * language.c (unknown_language_data): Likewise.
2019 (auto_language_data): Likewise.
2020 * language.h (language_data): Delete la_get_compile_instance field.
2021 (language_defn::get_compile_instance): New member function.
2022 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2023 initializer.
2024 * objc-lang.c (objc_language_data): Likewise.
2025 * opencl-lang.c (opencl_language_data): Likewise.
2026 * p-lang.c (pascal_language_data): Likewise.
2027 * rust-lang.c (rust_language_data): Likewise.
2028
4009ee92
AB
20292020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2030
2031 * ada-lang.c (ada_add_all_symbols): Update comment.
2032 (ada_iterate_over_symbols): Delete, move implementation to...
2033 (ada_language::iterate_over_symbols): ...here, a new member
2034 function, rewrite to use range based for loop.
2035 (ada_language_data): Delete la_iterate_over_symbols initializer.
2036 * c-lang.c (c_language_data): Likewise.
2037 (cplus_language_data): Likewise.
2038 (asm_language_data): Likewise.
2039 (minimal_language_data): Likewise.
2040 * d-lang.c (d_language_data): Likewise.
2041 * f-lang.c (f_language_data): Likewise.
2042 * go-lang.c (go_language_data): Likewise.
2043 * language.c (unknown_language_data): Likewise.
2044 (auto_language_data): Likewise.
2045 * language.h (language_data): Delete la_iterate_over_symbols field.
2046 (language_defn::iterate_over_symbols): New member function.
2047 (LA_ITERATE_OVER_SYMBOLS): Update.
2048 * linespec.c (iterate_over_all_matching_symtabs): Update.
2049 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2050 initializer.
2051 * objc-lang.c (objc_language_data): Likewise.
2052 * opencl-lang.c (opencl_language_data): Likewise.
2053 * p-lang.c (pascal_language_data): Likewise.
2054 * rust-lang.c (rust_language_data): Likewise.
2055
54f4ca46
AB
20562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2057
2058 * ada-lang.c (ada_language_data): Delete
2059 la_lookup_transparent_type initializer.
2060 * c-lang.c (c_language_data): Likewise.
2061 (cplus_language_data): Likewise.
2062 (cplus_language::lookup_transparent_type): New member function.
2063 (asm_language_data): Delete la_lookup_transparent_type
2064 initializer.
2065 (minimal_language_data): Likewise.
2066 * d-lang.c (d_language_data): Likewise.
2067 * f-lang.c (f_language_data): Likewise.
2068 * go-lang.c (go_language_data): Likewise.
2069 * language.c (unknown_language_data): Likewise.
2070 (auto_language_data): Likewise.
2071 * language.h (struct language_data): Delete
2072 la_lookup_transparent_type field.
2073 (language_defn::lookup_transparent_type): New member function.
2074 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2075 initializer.
2076 * objc-lang.c (objc_language_data): Likewise.
2077 * opencl-lang.c (opencl_language_data): Likewise.
2078 * p-lang.c (pascal_language_data): Likewise.
2079 * rust-lang.c (rust_language_data): Likewise.
2080 * symtab.c (symbol_matches_domain): Update call.
2081
1fb314aa
AB
20822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2083
2084 * ada-lang.c (ada_language_arch_info): Delete function, move
2085 implementation to...
2086 (ada_language::language_arch_info): ...here, a new member
2087 function.
2088 (ada_language_data): Delete la_language_arch_info.
2089 * c-lang.c (c_language_data): Likewise.
2090 (c_language::language_arch_info): New member function.
2091 (cplus_language_arch_info): Delete function, move
2092 implementation to...
2093 (cplus_language::language_arch_info): ...here, a new member
2094 function.
2095 (cplus_language_data): Delete la_language_arch_info.
2096 (asm_language_data): Likewise.
2097 (asm_language::language_arch_info): New member function.
2098 (minimal_language_data): Delete la_language_arch_info.
2099 (minimal_language::language_arch_info): New member function.
2100 * d-lang.c (d_language_arch_info): Delete function, move
2101 implementation to...
2102 (d_language::language_arch_info): ...here, a new member
2103 function.
2104 (d_language_data): Delete la_language_arch_info.
2105 * f-lang.c (f_language_arch_info): Delete function, move
2106 implementation to...
2107 (f_language::language_arch_info): ...here, a new member
2108 function.
2109 (f_language_data): Delete la_language_arch_info.
2110 * go-lang.c (go_language_arch_info): Delete function, move
2111 implementation to...
2112 (go_language::language_arch_info): ...here, a new member
2113 function.
2114 (go_language_data): Delete la_language_arch_info.
2115 * language.c (unknown_language_data): Likewise.
2116 (unknown_language::language_arch_info): New member function.
2117 (auto_language_data): Delete la_language_arch_info.
2118 (auto_language::language_arch_info): New member function.
2119 (language_gdbarch_post_init): Update call to
2120 la_language_arch_info.
2121 * language.h (language_data): Delete la_language_arch_info
2122 function pointer.
2123 (language_defn::language_arch_info): New function.
2124 * m2-lang.c (m2_language_arch_info): Delete function, move
2125 implementation to...
2126 (m2_language::language_arch_info): ...here, a new member
2127 function.
2128 (m2_language_data): Delete la_language_arch_info.
2129 * objc-lang.c (objc_language_arch_info): Delete function, move
2130 implementation to...
2131 (objc_language::language_arch_info): ...here, a new member
2132 function.
2133 (objc_language_data): Delete la_language_arch_info.
2134 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2135 implementation to...
2136 (opencl_language::language_arch_info): ...here, a new member
2137 function.
2138 (opencl_language_data): Delete la_language_arch_info.
2139 * p-lang.c (pascal_language_arch_info): Delete function, move
2140 implementation to...
2141 (pascal_language::language_arch_info): ...here, a new member
2142 function.
2143 (pascal_language_data): Delete la_language_arch_info.
2144 * rust-lang.c (rust_language_arch_info): Delete function, move
2145 implementation to...
2146 (rust_language::language_arch_info): ...here, a new member
2147 function.
2148 (rust_language_data): Delete la_language_arch_info.
2149
48448202
AB
21502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2151
2152 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2153 initializer.
2154 * c-lang.c (c_language_data): Likewise.
2155 (cplus_language_data): Likewise.
2156 (cplus_language::pass_by_reference_info): New method.
2157 (asm_language_data): Delete la_pass_by_reference initializer.
2158 (minimal_language_data): Likewise.
2159 * cp-abi.c (cp_pass_by_reference): Remove use of
2160 default_pass_by_reference.
2161 * d-lang.c (d_language_data): Likewise.
2162 * f-lang.c (f_language_data): Likewise.
2163 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2164 default_pass_by_reference.
2165 * go-lang.c (go_language_data): Likewise.
2166 * language.c (language_pass_by_reference): Update.
2167 (default_pass_by_reference): Delete.
2168 (unknown_language_data): Delete la_pass_by_reference
2169 initializer.
2170 (auto_language_data): Likewise.
2171 * language.h (struct language_data): Delete la_pass_by_reference
2172 field.
2173 (language_defn::pass_by_reference_info): New member function.
2174 (default_pass_by_reference): Delete declaration.
2175 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2176 initializer.
2177 * objc-lang.c (objc_language_data): Likewise.
2178 * opencl-lang.c (opencl_language_data): Likewise.
2179 * p-lang.c (pascal_language_data): Likewise.
2180 * rust-lang.c (rust_language_data): Likewise.
2181
15e5fd35
AB
21822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2183
2184 * ada-lang.c (ada_read_var_value): Delete function, move
2185 implementation to...
2186 (ada_language::read_var_value): ...here.
2187 (ada_language_data): Delete la_read_var_value initializer.
2188 * c-lang.c (c_language_data): Likewise.
2189 (cplus_language_data): Likewise.
2190 (minimal_language_data): Likewise.
2191 * d-lang.c (d_language_data): Likewise.
2192 * f-lang.c (f_language_data): Likewise.
2193 * findvar.c (default_read_var_value): Rename to...
2194 (language_defn::read_var_value): ...this.
2195 * findvar.c (read_var_value): Update header comment, and change to
2196 call member function instead of function pointer.
2197 * go-lang.c (go_language_data): Likewise.
2198 * language.c (unknown_language_data): Delete la_read_var_value
2199 initializer.
2200 (auto_language_data): Likewise.
2201 * language.h (struct language_data): Delete la_read_var_value
2202 field.
2203 (language_defn::read_var_value): New member function.
2204 (default_read_var_value): Delete declaration.
2205 * m2-lang.c (m2_language_data): Delete la_read_var_value
2206 initializer.
2207 * objc-lang.c (objc_language_data): Likewise.
2208 * opencl-lang.c (opencl_language_data): Likewise.
2209 * p-lang.c (pascal_language_data): Likewise.
2210 * rust-lang.c (rust_language_data): Likewise.
2211 * value.h (default_read_var_value): Delete declaration.
2212
5bd40f2a
AB
22132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2214
2215 * ada-lang.c (ada_print_array_index): Delete function, move
2216 implementation to...
2217 (ada_language::print_array_index): ...here.
2218 (ada_language_data): Delete la_print_array_index initializer.
2219 * c-lang.c (c_language_data): Likewise.
2220 (cplus_language_data): Likewise.
2221 (minimal_language_data): Likewise.
2222 * d-lang.c (d_language_data): Likewise.
2223 * f-lang.c (f_language_data): Likewise.
2224 * go-lang.c (go_language_data): Likewise.
2225 * language.c (default_print_array_index): Delete function, move
2226 implementation to...
2227 (language_defn::print_array_index): ...here.
2228 (unknown_language_data): Delete la_print_array_index initializer.
2229 (auto_language_data): Likewise.
2230 * language.h (struct language_data): Delete la_print_array_index
2231 field.
2232 (language_defn::print_array_index): New member function.
2233 (LA_PRINT_ARRAY_INDEX): Update.
2234 (default_print_array_index): Delete declaration.
2235 * m2-lang.c (m2_language_data): Delete la_print_array_index
2236 initializer.
2237 * objc-lang.c (objc_language_data): Likewise.
2238 * opencl-lang.c (opencl_language_data): Likewise.
2239 * p-lang.c (pascal_language_data): Likewise.
2240 * rust-lang.c (rust_language_data): Likewise.
2241
0874fd07
AB
22422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2243
2244 * gdb/ada-lang.c (ada_language_defn): Convert to...
2245 (ada_language_data): ...this.
2246 (class ada_language): New class.
2247 (ada_language_defn): New static global.
2248 * gdb/c-lang.c (c_language_defn): Convert to...
2249 (c_language_data): ...this.
2250 (class c_language): New class.
2251 (c_language_defn): New static global.
2252 (cplus_language_defn): Convert to...
2253 (cplus_language_data): ...this.
2254 (class cplus_language): New class.
2255 (cplus_language_defn): New static global.
2256 (asm_language_defn): Convert to...
2257 (asm_language_data): ...this.
2258 (class asm_language): New class.
2259 (asm_language_defn): New static global.
2260 (minimal_language_defn): Convert to...
2261 (minimal_language_data): ...this.
2262 (class minimal_language): New class.
2263 (minimal_language_defn): New static global.
2264 * gdb/d-lang.c (d_language_defn): Convert to...
2265 (d_language_data): ...this.
2266 (class d_language): New class.
2267 (d_language_defn): New static global.
2268 * gdb/f-lang.c (f_language_defn): Convert to...
2269 (f_language_data): ...this.
2270 (class f_language): New class.
2271 (f_language_defn): New static global.
2272 * gdb/go-lang.c (go_language_defn): Convert to...
2273 (go_language_data): ...this.
2274 (class go_language): New class.
2275 (go_language_defn): New static global.
2276 * gdb/language.c (unknown_language_defn): Remove declaration.
2277 (current_language): Initialize to nullptr, real initialization is
2278 moved to _initialize_language.
2279 (languages): Delete global.
2280 (language_defn::languages): Define.
2281 (set_language_command): Use language_defn::languages.
2282 (set_language): Likewise.
2283 (range_error): Likewise.
2284 (language_enum): Likewise.
2285 (language_def): Likewise.
2286 (add_set_language_command): Use language_def::languages for the
2287 language list, and language_def to lookup language pointers.
2288 (skip_language_trampoline): Use language_defn::languages.
2289 (unknown_language_defn): Convert to...
2290 (unknown_language_data): ...this.
2291 (class unknown_language): New class.
2292 (unknown_language_defn): New static global.
2293 (auto_language_defn): Convert to...
2294 (auto_language_data): ...this.
2295 (class auto_language): New class.
2296 (auto_language_defn): New static global.
2297 (language_gdbarch_post_init): Use language_defn::languages.
2298 (_initialize_language): Initialize current_language.
2299 * gdb/language.h (struct language_defn): Rename to...
2300 (struct language_data): ...this.
2301 (struct language_defn): New.
2302 (auto_language_defn): Delete.
2303 (unknown_language_defn): Delete.
2304 (minimal_language_defn): Delete.
2305 (ada_language_defn): Delete.
2306 (asm_language_defn): Delete.
2307 (c_language_defn): Delete.
2308 (cplus_language_defn): Delete.
2309 (d_language_defn): Delete.
2310 (f_language_defn): Delete.
2311 (go_language_defn): Delete.
2312 (m2_language_defn): Delete.
2313 (objc_language_defn): Delete.
2314 (opencl_language_defn): Delete.
2315 (pascal_language_defn): Delete.
2316 (rust_language_defn): Delete.
2317 * gdb/m2-lang.c (m2_language_defn): Convert to...
2318 (m2_language_data): ...this.
2319 (class m2_language): New class.
2320 (m2_language_defn): New static global.
2321 * gdb/objc-lang.c (objc_language_defn): Convert to...
2322 (objc_language_data): ...this.
2323 (class objc_language): New class.
2324 (objc_language_defn): New static global.
2325 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2326 (opencl_language_data): ...this.
2327 (class opencl_language): New class.
2328 (opencl_language_defn): New static global.
2329 * gdb/p-lang.c (pascal_language_defn): Convert to...
2330 (pascal_language_data): ...this.
2331 (class pascal_language): New class.
2332 (pascal_language_defn): New static global.
2333 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2334 language pointer, update comment format.
2335 * gdb/rust-lang.c (rust_language_defn): Convert to...
2336 (rust_language_data): ...this.
2337 (class rust_language): New class.
2338 (rust_language_defn): New static global.
2339
1313c56e
AB
23402020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2341
2342 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2343 member variable.
2344 <m_stmt_at_address>: New member variable.
2345 (lnp_state_machine::record_line): Don't record some lines, update
2346 tracking of is_stmt at the same address.
2347 (lnp_state_machine::lnp_state_machine): Initialise new member
2348 variables.
2349
b7ed9f3d
ST
23502020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2351
2352 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2353 "-include gnu-nat-mig.h".
2354 * gnu-nat-mig.h: New file.
2355 * gnu-nat.c: Include "gnu-nat-mig.h".
2356 (exc_server, msg_reply_server, notify_server,
2357 process_reply_server): Remove declarations.
2358
14a8ad62
ST
23592020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2360
2361 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2362 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2363 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2364 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2365 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2366 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2367 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2368 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2369 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2370 to gnu_nat_target class.
2371 * gnu-nat.c: Likewise.
2372 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2373 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2374 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2375 object.
2376 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2377 instead of `gnu_target'.
2378
0af5e106
ST
23792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2380
2381 * i386-gnu-tdep.c: Include "gdbcore.h"
2382 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2383 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2384 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2385 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2386 i386_gnu_sigcontext_addr): New functions
2387 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2388 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2389 tdep.
2390
078f2fc9
ST
23912020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2392
2393 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2394 before fork_inferior call. Avoid calling it if target_is_pushed returns
2395 true.
2396
53dff92c
ST
23972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2398
2399 * gnu-nat.h (gnu_target): New variable declaration.
2400 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2401 gnu_target.
2402 * gnu-nat.c (gnu_target): New variable.
2403 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2404 add_thread_silent, and add_thread calls.
2405 (gnu_nat_target::create_inferior): Pass gnu_target to
2406 add_thread_silent, thread_change_ptid call.
2407 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2408 call.
2409
5a8b8627
ST
24102020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2411
2412 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2413 (gnu_nat_target::find_memory_regions): Remove unused
2414 `old_address' variable.
2415
366f550a
ST
24162020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2417
2418 * gnu-nat.c: Include "gdbarch.h".
2419
f14871bf
ST
24202020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2421
2422 * reply_mig_hack.awk (Error return): Cast function through
2423 void *, to bypass compiler function call check.
2424
c6887cfb
ST
24252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2426
2427 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2428 $(srcdir)/reply_mig_hack.awk.
2429
6930bffe
ST
24302020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2431
2432 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2433
112c22ed
JG
24342020-05-30 Jonny Grant <jg@jguk.org>
2435
2436 * configure.ac (ACX_BUGURL): change bug URL to https.
2437
f68f85b5
PA
24382020-05-30 Pedro Alves <palves@redhat.com>
2439
2440 * cp-support.c (replace_typedefs_template): New.
2441 (replace_typedefs_qualified_name): Handle
2442 DEMANGLE_COMPONENT_TEMPLATE.
2443
976ca316
SM
24442020-05-29 Simon Marchi <simon.marchi@efficios.com>
2445
2446 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2447 dwarf2/index-cache.h, dwarf2/index-write.c,
2448 dwarf2/index-write.h, dwarf2/line-header.c,
2449 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2450 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2451 variables and fields from `dwarf2_per_objfile` to just
2452 `per_objfile` throughout.
2453
989ade05
SM
24542020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2455
2456 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2457 <push_dwarf_reg_entry_value>: Add comment.
2458
c47bae85
KB
24592020-05-28 Kevin Buettner <kevinb@redhat.com>
2460 Keith Seitz <keiths@redhat.com>
2461
2462 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2463 instead of PyEval_ReleaseLock.
2464 (class gdbpy_gil): Move to earlier in file.
2465 (finalize_python): Set gdb_python_initialized.
2466 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2467 when not initialized.
2468
44486dcf
SM
24692020-05-28 Simon Marchi <simon.marchi@efficios.com>
2470
2471 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2472 <push_dwarf_reg_entry_value>: Remove assert. Override
2473 per_objfile with caller_per_objfile.
2474
f030440d
TV
24752020-05-28 Tom de Vries <tdevries@suse.de>
2476
2477 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2478 PR gold/15646 workaround to symbol kind "type".
2479
f0fbb768
TT
24802020-05-27 Tom Tromey <tromey@adacore.com>
2481
2482 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2483
af0b2a3e
TT
24842020-05-27 Tom Tromey <tromey@adacore.com>
2485
2486 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2487 Use htab_find_with_hash.
2488 <add_abbrev>: Remove "abbrev_number" parameter.
2489 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2490 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2491 (hash_abbrev): Add comment.
2492 (abbrev_table::lookup_abbrev): Move to header file.
2493 (abbrev_table::read): Update.
2494
7d00ffec
TT
24952020-05-27 Tom Tromey <tromey@adacore.com>
2496
2497 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2498 method.
2499 <canonical_name>: New member.
2500 <raw_name>: Rename from "name".
2501 (partial_die_info): Initialize canonical_name.
2502 (scan_partial_symbols): Check raw_name.
2503 (partial_die_parent_scope, partial_die_full_name)
2504 (add_partial_symbol, add_partial_subprogram)
2505 (add_partial_enumeration, load_partial_dies): Use "name" method.
2506 (partial_die_info::name): New method.
2507 (partial_die_info::read, guess_partial_die_structure_name)
2508 (partial_die_info::fixup): Update.
2509
697bba18
TT
25102020-05-27 Tom Tromey <tromey@adacore.com>
2511
2512 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2513 <get_ref_die_offset>: Inline.
2514 <get_ref_die_offset_complaint>: New method.
2515 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2516 (attribute::get_ref_die_offset_complaint): Rename from
2517 get_ref_die_offset. Just issue complaint.
2518
c17ace43
HD
25192020-05-27 Hannes Domani <ssbssa@yahoo.de>
2520
2521 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2522
96445f0b
HD
25232020-05-27 Hannes Domani <ssbssa@yahoo.de>
2524
2525 * exec.c (exec_file_attach): Use errno value of first openp failure.
2526
ac637ec3
HD
25272020-05-27 Hannes Domani <ssbssa@yahoo.de>
2528
2529 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2530 Don't close thread handle.
2531
17ee85fc
TT
25322020-05-27 Tom Tromey <tom@tromey.com>
2533 Simon Marchi <simon.marchi@efficios.com>
2534
2535 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2536 shared_ptr.
2537 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2538 member.
2539 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2540 dwarf2_per_bfd_objfile_data_key>: New globals.
2541 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2542 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2543 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2544 shared.
2545 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2546 short-circuit when sharing.
2547 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2548 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2549
39b16f87
SM
25502020-05-27 Simon Marchi <simon.marchi@efficios.com>
2551
2552 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2553 to...
2554 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2555 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2556
fcf23d5b
SM
25572020-05-27 Simon Marchi <simon.marchi@efficios.com>
2558
2559 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2560 build_name_components, find_name_components_bounds>:
2561 Add per_objfile parameter.
2562 (struct mapped_index) <symbol_name_at>: Likewise.
2563 (struct mapped_debug_names): Remove constructor.
2564 <dwarf2_per_objfile>: Remove field.
2565 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2566 (mapped_index_base::find_name_components_bounds,
2567 mapped_index_base::build_name_components,
2568 dw2_expand_symtabs_matching_symbol): Likewise.
2569 (class mock_mapped_index) <symbol_name_at>: Likewise.
2570 (check_match): Likewise.
2571 (check_find_bounds_finds): Likewise.
2572 (test_mapped_index_find_name_component_bounds): Update.
2573 (CHECK_MATCH): Update.
2574 (dw2_expand_symtabs_matching): Update.
2575 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2576 per_objfile parameter.
2577 <find_vec_in_debug_names>: Likewise.
2578 <m_per_objfile>: New field.
2579 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2580 parameter.
2581 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2582 (dw2_debug_names_iterator::next): Update.
2583 (dw2_debug_names_lookup_symbol): Update.
2584 (dw2_debug_names_expand_symtabs_for_function): Update.
2585 (dw2_debug_names_map_matching_symbols): Update.
2586 (dw2_debug_names_expand_symtabs_matching): Update.
2587 (dwarf2_read_debug_names): Update.
2588
7188ed02
SM
25892020-05-27 Simon Marchi <simon.marchi@efficios.com>
2590
2591 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2592 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2593 move to dwarf2_per_objfile.
2594 <read_in_chain>: Remove.
2595 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2596 remove_all_cus, age_comp_units>: New methods.
2597 <m_dwarf2_cus>: New member.
2598 (struct dwarf2_per_cu_data) <cu>: Remove.
2599 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2600 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2601 moved to methods of dwarf2_per_objfile.
2602 (dwarf2_clear_marks): Remove.
2603 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2604 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2605 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2606 (dwarf2_per_objfile::remove_all_cus): New.
2607 (class free_cached_comp_units) <~free_cached_comp_units>:
2608 Update.
2609 (load_cu): Update.
2610 (dw2_do_instantiate_symtab): Adjust.
2611 (fill_in_sig_entry_from_dwo_entry): Adjust.
2612 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2613 (cutu_reader::cutu_reader): Likewise.
2614 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2615 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2616 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2617 and dwarf2_per_objfile::age_comp_units.
2618 (load_partial_comp_unit): Update.
2619 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2620 (process_queue): Likewise.
2621 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2622 backlink.
2623 (dwarf2_read_addr_index): Likewise.
2624 (follow_die_offset): Likewise.
2625 (dwarf2_fetch_die_loc_sect_off): Likewise.
2626 (dwarf2_fetch_constant_bytes): Likewise.
2627 (dwarf2_fetch_die_type_sect_off): Likewise.
2628 (follow_die_sig_1): Likewise.
2629 (load_full_type_unit): Likewise.
2630 (read_signatured_type): Likewise.
2631 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2632 (dwarf2_cu::~dwarf2_cu): Remove.
2633 (dwarf2_per_objfile::get_cu): New.
2634 (dwarf2_per_objfile::set_cu): New.
2635 (age_cached_comp_units): Rename to...
2636 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2637 to std::unordered_map.
2638 (free_one_cached_comp_unit): Rename to...
2639 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2640 to std::unordered_map.
2641 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2642 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2643 a dwarf2_per_objfile in data.
2644 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2645 (dwarf2_clear_marks): Remove.
2646
2e671100
SM
26472020-05-27 Simon Marchi <simon.marchi@efficios.com>
2648
2649 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2650 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2651 (init_tu_and_read_dwo_dies): Likewise.
2652 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2653 (cutu_reader::cutu_reader): Likewise.
2654 (load_partial_comp_unit): Likewise.
2655 (process_psymtab_comp_unit): Update.
2656 (build_type_psymtabs_1): Update.
2657 (process_skeletonless_type_unit): Update.
2658 (load_full_comp_unit): Update.
2659 (find_partial_die): Update.
2660 (dwarf2_read_addr_index): Update.
2661 (read_signatured_type): Update.
2662
2e6a9f79
SM
26632020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2664
2665 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2666 m_header_read_in>: New fields.
2667 <get_header>: New method.
2668 * dwarf2/read.c (per_cu_header_read_in): Remove.
2669 (dwarf2_per_cu_data::get_header): New.
2670 (dwarf2_per_cu_data::addr_size): Update.
2671 (dwarf2_per_cu_data::offset_size): Update.
2672 (dwarf2_per_cu_data::ref_addr_size): Update.
2673
1b555f17
SM
26742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2675
2676 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2677 (dw2_do_instantiate_symtab): Update.
2678 (queue_and_load_all_dwo_tus): Change parameter from
2679 dwarf2_per_cu_data to dwarf2_cu.
2680 (dwarf2_fetch_die_loc_sect_off): Update.
2681 (dwarf2_fetch_constant_bytes): Update.
2682 (dwarf2_fetch_die_type_sect_off): Update.
2683
8fc0b21d
SM
26842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2685
2686 * dwarf2/read.c (process_full_comp_unit,
2687 process_full_type_unit): Remove per_cu, per_objfile paramters.
2688 Add dwarf2_cu parameter.
2689 (process_queue): Update.
2690
168c9250
SM
26912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2692
2693 * dwarf2/read.c (create_cu_from_index_list): Replace
2694 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2695 (create_cus_from_index_list): Likewise.
2696 (create_cus_from_index): Likewise.
2697 (create_signatured_type_table_from_index): Likewise.
2698 (create_cus_from_debug_names_list): Likewise.
2699 (create_cus_from_debug_names): Likewise.
2700 (dwarf2_read_gdb_index): Update.
2701 (dwarf2_read_debug_names): Update.
2702
e286671b
TT
27032020-05-27 Tom Tromey <tom@tromey.com>
2704 Simon Marchi <simon.marchi@efficios.com>
2705
2706 * dwarf2/read.h (struct dwarf2_per_objfile)
2707 <get_type_for_signatured_type, set_type_for_signatured_type>:
2708 New methods.
2709 <m_type_map>: New member.
2710 (struct signatured_type) <type>: Remove.
2711 * dwarf2/read.c
2712 (dwarf2_per_objfile::get_type_for_signatured_type,
2713 dwarf2_per_objfile::set_type_for_signatured_type): New.
2714 (get_signatured_type): Use new methods.
2715
8adb8487
TT
27162020-05-27 Tom Tromey <tom@tromey.com>
2717 Simon Marchi <simon.marchi@efficios.com>
2718
2719 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2720 (struct dwarf2_per_objfile) <type_units>: New member.
2721 <get_type_unit_group_unshareable>: New method.
2722 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2723 num_symtabs, symtabs>: Remove; move to
2724 type_unit_group_unshareable.
2725 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2726 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2727 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2728
127bbf4b
SM
27292020-05-27 Simon Marchi <simon.marchi@efficios.com>
2730
2731 * dwarf2/read.h (struct dwarf2_per_cu_data):
2732 <dwarf2_per_objfile>: Remove.
2733 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2734 dwarf2_per_objfile.
2735 (create_signatured_type_table_from_index): Likewise.
2736 (create_signatured_type_table_from_debug_names): Likewise.
2737 (create_debug_type_hash_table): Likewise.
2738 (fill_in_sig_entry_from_dwo_entry): Likewise.
2739 (create_type_unit_group): Likewise.
2740 (read_comp_units_from_section): Likewise.
2741 (create_cus_hash_table): Likewise.
2742
f6e649dd
SM
27432020-05-27 Simon Marchi <simon.marchi@efficios.com>
2744
2745 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2746 dwarf2_per_cu_data::dwarf2_per_objfile.
2747 (compute_compunit_symtab_includes): Likewise.
2748 (dwarf2_cu::start_symtab): Likewise.
2749
aa66c379
SM
27502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2751
2752 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2753 parameter.
2754 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2755 (read_namespace_alias): Update.
2756 (lookup_die_type): Update.
2757 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2758 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2759 Update.
2760 (disassemble_dwarf_expression): Update.
2761
120ce1b5
SM
27622020-05-27 Simon Marchi <simon.marchi@efficios.com>
2763
2764 * dwarf2/read.h (struct dwarf2_queue_item): Add
2765 dwarf2_per_objfile parameter, assign new parameter.
2766 <per_objfile>: New field.
2767 * dwarf2/read.c (free_one_cached_comp_unit): Add
2768 dwarf2_per_objfile parameter.
2769 (queue_comp_unit): Likewise.
2770 (dw2_do_instantiate_symtab): Update.
2771 (process_psymtab_comp_unit): Update.
2772 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2773 (process_imported_unit_die): Update.
2774 (queue_and_load_dwo_tu): Update.
2775 (follow_die_offset): Update.
2776 (follow_die_sig_1): Update.
2777
9f47c707
SM
27782020-05-27 Simon Marchi <simon.marchi@efficios.com>
2779
2780 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2781 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2782 (read_call_site_scope): Assign per_objfile.
2783 (dwarf2_per_cu_data::objfile): Remove.
2784 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2785 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2786 dwarf2_per_objfile parameter.
2787 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2788 dwarf2_per_objfile parameter.
2789 (dwarf_expr_reg_to_entry_parameter): Add output
2790 dwarf2_per_objfile parameter.
2791 (locexpr_get_frame_base): Update.
2792 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2793 <push_dwarf_reg_entry_value>: Update.
2794 <call_site_to_target_addr>: Update.
2795 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2796 parameter.
2797 (value_of_dwarf_reg_entry): Update.
2798 (rw_pieced_value): Update.
2799 (indirect_synthetic_pointer): Update.
2800 (dwarf2_evaluate_property): Update.
2801 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2802 parameter.
2803 (locexpr_read_variable): Update.
2804 (locexpr_get_symbol_read_needs): Update.
2805 (loclist_read_variable): Update.
2806
14095eb3
SM
28072020-05-27 Simon Marchi <simon.marchi@efficios.com>
2808
2809 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2810 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2811 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2812 parameter.
2813 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2814 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2815 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2816 parameter.
2817 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2818 sect_variable_value): Add dwarf2_per_objfile parameter.
2819 (class dwarf_evaluate_loc_desc) <dwarf_call,
2820 dwarf_variable_value>: Update.
2821 (fetch_const_value_from_synthetic_pointer): Add
2822 dwarf2_per_objfile parameter.
2823 (fetch_const_value_from_synthetic_pointer): Update.
2824 (coerced_pieced_ref): Update.
2825 (class symbol_needs_eval_context) <dwarf_call,
2826 dwarf_variable_value>: Update.
2827 (dwarf2_compile_expr_to_ax): Update.
2828
3c3cd3d4
SM
28292020-05-27 Simon Marchi <simon.marchi@efficios.com>
2830
2831 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2832 parameter.
2833 (dwarf2_evaluate_loc_desc_full): Update.
2834
82ca3f51
SM
28352020-05-27 Simon Marchi <simon.marchi@efficios.com>
2836
2837 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2838 parameter.
2839 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2840 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2841 dwarf2_per_objfile parameter.
2842 (decode_debug_loc_dwo_addresses): Likewise.
2843 (dwarf2_find_location_expression): Update.
2844 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2845 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2846 parameter.
2847 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2848 parameter.
2849 (locexpr_describe_location_1): Likewise.
2850 (locexpr_describe_location): Update.
2851
4b167ea1
SM
28522020-05-27 Simon Marchi <simon.marchi@efficios.com>
2853
2854 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2855 Remove.
2856 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2857 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2858 (dwarf2_compile_property_to_c): Update.
2859 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2860 use text offset from objfile.
2861 (locexpr_tracepoint_var_ref): Update.
2862 (locexpr_generate_c_location): Update.
2863 (loclist_describe_location): Update.
2864 (loclist_tracepoint_var_ref): Update.
2865 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2866 dwarf2_per_objfile parameter.
2867 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2868 use text offset from objfile.
2869 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2870
89b07335
SM
28712020-05-27 Simon Marchi <simon.marchi@efficios.com>
2872
2873 * dwarf2/expr.h (struct dwarf_expr_context)
2874 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2875 <offset>: Remove.
2876 <per_objfile>: New member.
2877 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2878 dwarf2_per_objfile parameter. Don't set offset, set
2879 per_objfile.
2880 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2881 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2882 a dwarf2_per_objfile object instead of an offset.
2883 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2884 constructor.
2885 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2886 to dwarf2_expr_executor constructor. Don't set offset.
2887 (dwarf2_fetch_cfa_info): Update.
2888 (struct dwarf2_frame_cache) <text_offset>: Remove.
2889 <per_objfile>: New field.
2890 (dwarf2_frame_cache): Update.
2891 (dwarf2_frame_prev_register): Update.
2892 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2893 <dwarf_evaluate_loc_desc>: Add constructor.
2894 (dwarf2_evaluate_loc_desc_full): Update.
2895 (dwarf2_locexpr_baton_eval): Update.
2896 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2897 Add constructor.
2898 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2899
293e7e51
SM
29002020-05-27 Simon Marchi <simon.marchi@efficios.com>
2901
2902 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2903 addr_sized_int_type>: Move to dwarf2_cu.
2904 <int_type>: Move to dwarf2_per_objfile.
2905 (struct dwarf2_per_objfile) <int_type>: Move here.
2906 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2907 addr_sized_int_type>: Move here.
2908 (read_func_scope): Update.
2909 (read_array_type): Update.
2910 (read_tag_string_type): Update.
2911 (attr_to_dynamic_prop): Update.
2912 (dwarf2_per_cu_data::int_type): Rename to...
2913 (dwarf2_per_objfile::int_type): ... this.
2914 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2915 (dwarf2_cu::addr_sized_int_type): ... this.
2916 (read_subrange_type): Update.
2917 (dwarf2_per_cu_data::addr_type): Rename to...
2918 (dwarf2_cu::addr_type): ... this.
2919 (set_die_type): Update.
2920
64874a40
SM
29212020-05-27 Simon Marchi <simon.marchi@efficios.com>
2922
2923 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2924 data through per_cu->cu.
2925
4ab09049
SM
29262020-05-27 Simon Marchi <simon.marchi@efficios.com>
2927
2928 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2929 dwarf2_per_cu_data parameter fo dwarf2_cu.
2930 (lookup_dwo_type_unit): Likewise.
2931 (read_cutu_die_from_dwo): Likewise.
2932 (lookup_dwo_unit): Likewise.
2933 (open_and_init_dwo_file): Likewise.
2934 (lookup_dwo_cutu): Likewise.
2935 (lookup_dwo_comp_unit): Likewise.
2936 (lookup_dwo_type_unit): Likewise.
2937 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2938 (cutu_reader::cutu_reader): Update.
2939
47b14e86
SM
29402020-05-27 Simon Marchi <simon.marchi@efficios.com>
2941
2942 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2943 parameter.
2944 (process_full_type_unit): Likewise.
2945 (process_queue): Update.
2946
43182c09
SM
29472020-05-27 Simon Marchi <simon.marchi@efficios.com>
2948
2949 * dwarf2/read.c (recursively_compute_inclusions): Add
2950 dwarf2_per_objfile parameter.
2951 (compute_compunit_symtab_includes): Likewise.
2952 (process_cu_includes): Update.
2953
7aa104c4
SM
29542020-05-27 Simon Marchi <simon.marchi@efficios.com>
2955
2956 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2957 parameter.
2958 (create_type_unit_group): Update.
2959 (process_psymtab_comp_unit_reader): Update.
2960 (build_type_psymtabs_reader): Update.
2961
e3beb21d
SM
29622020-05-27 Simon Marchi <simon.marchi@efficios.com>
2963
2964 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2965 object through m_this_cu->cu.
2966
d460f660
SM
29672020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2968
2969 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2970 the info parameter.
2971 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2972
ab432490
SM
29732020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2974
2975 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2976 per_objfile parameter.
2977 (load_full_type_unit): Add per_objfile parameter.
2978 (read_signatured_type): Likewise.
2979 (load_full_comp_unit): Likewise.
2980 (load_cu): Likewise.
2981 (dw2_do_instantiate_symtab): Likewise.
2982 (dw2_get_file_names): Likewise.
2983 (dw2_map_symtabs_matching_filename): Update.
2984 (dw_expand_symtabs_matching_file_matcher): Update.
2985 (dw2_map_symbol_filenames): Update.
2986 (process_psymtab_comp_unit): Add per_objfile parameter.
2987 (build_type_psymtabs_1): Update.
2988 (process_skeletonless_type_unit): Update.
2989 (dwarf2_build_psymtabs_hard): Update.
2990 (load_partial_comp_unit): Add per_objfile parameter.
2991 (scan_partial_symbols): Update.
2992 (load_full_comp_unit): Add per_objfile parameter.
2993 (process_imported_unit_die): Update.
2994 (create_cus_hash_table): Update.
2995 (find_partial_die): Update.
2996 (dwarf2_read_addr_index): Update.
2997 (follow_die_offset): Update.
2998 (dwarf2_fetch_die_loc_sect_off): Update.
2999 (dwarf2_fetch_constant_bytes): Update.
3000 (dwarf2_fetch_die_type_sect_off): Update.
3001 (follow_die_sig_1): Update.
3002 (load_full_type_unit): Add per_objfile parameter.
3003 (read_signatured_type): Likewise.
3004
313bad1b
SM
30052020-05-27 Simon Marchi <simon.marchi@efficios.com>
3006
3007 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3008 of objfile_name.
3009
c3699833
SM
30102020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3011
3012 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3013 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3014 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3015 field.
3016 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3017 (create_cus_from_index): Update.
3018 (dwarf2_read_gdb_index): Update.
3019 (create_cus_from_debug_names): Update.
3020 (dwarf2_read_debug_names): Update.
3021 (get_abbrev_section_for_cu): Update.
3022 (create_all_comp_units): Update.
3023 (read_attribute_value): Update.
3024 (get_debug_line_section): Update.
3025 * dwarf2/index-cache.c (index_cache::store): Update.
3026 * dwarf2/index-write.c (save_gdb_index_command): Update.
3027 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3028
1859c670
SM
30292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3030
3031 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3032 member.
3033 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3034 dwarf2_per_cu_data::per_bfd.
3035 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3036 (create_type_unit_group): Likewise.
3037 (queue_comp_unit): Remove reference to
3038 per_cu->dwarf2_per_objfile.
3039 (maybe_queue_comp_unit): Likewise.
3040 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3041 (create_cus_hash_table): Assign new field.
3042
5e22e966
SM
30432020-05-27 Simon Marchi <simon.marchi@efficios.com>
3044
3045 * dwarf2/read.c: Replace
3046 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3047 dwarf2_cu->per_objfile throughout.
3048
97a1449a
SM
30492020-05-27 Simon Marchi <simon.marchi@efficios.com>
3050
3051 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3052 parameter, don't use per_cu->dwarf2_per_objfile.
3053 (dw2_instantiate_symtab): Likewise.
3054 (dw2_find_last_source_symtab): Update.
3055 (dw2_map_expand_apply): Update.
3056 (dw2_lookup_symbol): Update.
3057 (dw2_expand_symtabs_for_function): Update.
3058 (dw2_expand_all_symtabs): Update.
3059 (dw2_expand_symtabs_with_fullname): Update.
3060 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3061 don't use per_cu->dwarf2_per_objfile.
3062 (dw2_expand_marked_cus): Update.
3063 (dw2_find_pc_sect_compunit_symtab): Update.
3064 (dw2_debug_names_lookup_symbol): Update.
3065 (dw2_debug_names_expand_symtabs_for_function): Update.
3066 (dw2_debug_names_map_matching_symbols): Update.
3067 (dwarf2_psymtab::expand_psymtab): Update.
3068
9e021579
SM
30692020-05-27 Simon Marchi <simon.marchi@efficios.com>
3070
3071 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3072 <per_objfile>: New member.
3073 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3074 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3075 call to dwarf2_cu.
3076 (cutu_reader::cutu_reader): Update.
3077 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3078
ae090bdb
SM
30792020-05-27 Simon Marchi <simon.marchi@efficios.com>
3080
3081 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3082 struct dwarf2_per_objfile.
3083 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3084 dwarf2_per_bfd.
3085 * dwarf2/read.c (set_die_type): Update.
3086 (get_die_type_at_offset): Update.
3087
af758d11
SM
30882020-05-27 Tom Tromey <tom@tromey.com>
3089 Simon Marchi <simon.marchi@efficios.com>
3090
3091 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3092 method.
3093 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3094 get_symtab, set_symtab>: New methods.
3095 <m_symtabs>: New field.
3096 (struct dwarf2_psymtab): Derive from partial_symtab.
3097 <readin_p, get_compunit_symtab>: Declare methods.
3098 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3099 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3100 New methods.
3101 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3102 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3103 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3104 (dw2_symtab_iter_next, dw2_print_stats)
3105 (dw2_expand_symtabs_with_fullname)
3106 (dw2_expand_symtabs_matching_one)
3107 (dw_expand_symtabs_matching_file_matcher)
3108 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3109 (dw2_debug_names_iterator::next)
3110 (dw2_debug_names_map_matching_symbols)
3111 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3112 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3113 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3114 New methods.
3115 (get_compunit_symtab, process_full_comp_unit)
3116 (process_full_type_unit): Update.
3117 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3118
5989a64e
SM
31192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3120
3121 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3122 then introduce a new dwarf2_per_objfile type.
3123 <read_line_string>: Move to the new dwarf2_per_objfile type.
3124 <objfile>: Likewise.
3125 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3126 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3127 dwarf2_per_objfile->per_bfd.
3128 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3129 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3130 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3131 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3132 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3133 (dwarf2_per_objfile::locate_sections): Rename to...
3134 (dwarf2_per_bfd::locate_sections): ... this.
3135 (dwarf2_per_objfile::get_cutu): Rename to...
3136 (dwarf2_per_bfd::get_cutu): ... this.
3137 (dwarf2_per_objfile::get_cu): Rename to...
3138 (dwarf2_per_bfd::get_cu): ... this.
3139 (dwarf2_per_objfile::get_tu): Rename to...
3140 (dwarf2_per_bfd::get_tu): ... this.
3141 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3142 (dwarf2_per_bfd::allocate_per_cu): ... this.
3143 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3144 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3145 (get_gdb_index_contents_ftype): Change parameter from
3146 dwarf2_per_objfile to dwarf2_per_bfd.
3147 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3148 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3149
a50264ba
TT
31502020-05-27 Tom Tromey <tom@tromey.com>
3151 Simon Marchi <simon.marchi@efficios.com>
3152
3153 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3154 (allocate_piece_closure): Set "per_objfile" member.
3155 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3156 (locexpr_describe_location, loclist_describe_location): Use new
3157 member.
3158 * dwarf2/read.c (read_call_site_scope)
3159 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3160 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3161 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3162 handle_data_member_location): Set per_objfile member.
3163 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3164 member.
3165 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3166
d3473f0c
TT
31672020-05-27 Tom Tromey <tom@tromey.com>
3168
3169 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3170 allocate_signatured_type>: Declare new methods.
3171 <m_num_psymtabs>: New member.
3172 (struct dwarf2_per_cu_data) <index>: New member.
3173 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3174 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3175 (create_cu_from_index_list): Use allocate_per_cu.
3176 (create_signatured_type_table_from_index)
3177 (create_signatured_type_table_from_debug_names)
3178 (create_debug_type_hash_table, add_type_unit)
3179 (read_comp_units_from_section): Use allocate_signatured_type.
3180
5717c425
TT
31812020-05-27 Tom Tromey <tom@tromey.com>
3182
3183 * psymtab.c (partial_map_expand_apply)
3184 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3185 (psym_lookup_global_symbol_language)
3186 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3187 (psym_print_stats, psym_expand_symtabs_for_function)
3188 (psym_map_symbol_filenames, psym_map_matching_symbols)
3189 (psym_expand_symtabs_matching)
3190 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3191 (maintenance_check_psymtabs): Update.
3192 * psympriv.h (struct partial_symtab) <readin_p,
3193 get_compunit_symtab>: Add objfile parameter.
3194 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3195 Likewise.
3196 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3197 get_compunit_symtab>: Likewise.
3198 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3199
45940949
TT
32002020-05-27 Tom Tromey <tom@tromey.com>
3201
3202 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3203 member.
3204 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3205 (create_cu_from_index_list)
3206 (create_signatured_type_table_from_index)
3207 (create_signatured_type_table_from_debug_names)
3208 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3209 (dwarf2_create_include_psymtab)
3210 (create_debug_type_hash_table, add_type_unit)
3211 (create_type_unit_group, read_comp_units_from_section)
3212 (dwarf2_compute_name, create_cus_hash_table)
3213 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3214 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3215 obstack.
3216 (dw2_get_real_path): Likewise. Change argument to
3217 dwarf2_per_objfile.
3218
f8c6d152
LM
32192020-05-27 Luis Machado <luis.machado@linaro.org>
3220
3221 PR tdep/26000
3222 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3223 for ldrd (immediate).
3224
e98d2e6d
PW
32252020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3226
3227 * command.h: Add comment giving the name of class_tui.
3228 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3229 create the fake command for the help for class_tui.
3230
53a47a3e
TT
32312020-05-26 Tom Tromey <tromey@adacore.com>
3232
3233 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3234 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3235 (val_atr): New function.
3236 (value_val_atr): Use it.
3237 * ada-valprint.c (print_optional_low_bound): Change low bound
3238 handling for enums.
3239 (val_print_packed_array_elements): Don't call discrete_position.
3240 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3241 discrete_position for enum types.
3242 * language.c (default_print_array_index): Change type.
3243 * language.h (struct language_defn) <la_print_array_index>: Add
3244 index_type parameter, change type of index_value.
3245 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3246 (default_print_array_index): Update.
3247 * valprint.c (maybe_print_array_index): Don't call
3248 value_from_longest. Update.
3249 (value_print_array_elements): Don't call discrete_position.
3250
0bc2354b
TT
32512020-05-26 Tom Tromey <tromey@adacore.com>
3252
3253 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3254 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3255
1218a4bf
CDA
32562020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3257
3258 PR gdb/13519
3259 * avr-tdep.c (avr_integer_to_address): Return data or code
3260 address accordingly to the second 'type' argument of the
3261 function.
3262
92651b1d
MW
32632020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3264
3265 * infcmd.c, inferior.h: (construct_inferior_arguments):
3266 Moved function from here to gdbsupport/common-inferior.{h,cc}
3267
0a4f5f8c
TT
32682020-05-23 Tom Tromey <tom@tromey.com>
3269
3270 Revert commit eca1f90c:
3271 * NEWS: Remove entry for completion styling.
3272 * completer.c (_rl_completion_prefix_display_length): Move
3273 declaration later.
3274 (gdb_fnprint): Revert.
3275 (gdb_display_match_list_1): Likewise.
3276 * cli/cli-style.c (completion_prefix_style)
3277 (completion_difference_style, completion_suffix_style): Remove.
3278 (_initialize_cli_style): Revert.
3279 * cli/cli-style.h (completion_prefix_style)
3280 (completion_difference_style, completion_suffix_style): Don't
3281 declare.
3282
e08bd6c5
PA
32832020-05-24 Pedro Alves <palves@redhat.com>
3284
3285 * symtab.c (completion_list_add_name): Return boolean indication
3286 of whether the symbol matched.
3287 (completion_list_add_symbol): Don't try to remove C++ aliases if
3288 the symbol didn't match in the first place.
3289 * symtab.h (completion_list_add_name): Return bool.
3290
ceacbf6e
SM
32912020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3292
3293 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3294 type::field.
3295
26f16254
JB
32962020-05-23 Joel Brobecker <brobecker@adacore.com>
3297
3298 GDB 9.2 released.
3299
eca1f90c
TT
33002020-05-23 Tom Tromey <tom@tromey.com>
3301
3302 * NEWS: Add entry for completion styling.
3303 * completer.c (_rl_completion_prefix_display_length): Move
3304 declaration earlier.
3305 (gdb_fnprint): Use completion_style.
3306 (gdb_display_match_list_1): Likewise.
3307 * cli/cli-style.c (completion_prefix_style)
3308 (completion_difference_style, completion_suffix_style): New
3309 globals.
3310 (_initialize_cli_style): Register new globals.
3311 * cli/cli-style.h (completion_prefix_style)
3312 (completion_difference_style, completion_suffix_style): Declare.
3313
51e2cfa2
PA
33142020-05-23 Pedro Alves <palves@redhat.com>
3315
3316 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3317 (parse_escape): Use ISDIGIT instead of isdigit.
3318 (puts_debug): Use gdb_isprint instead of isprint.
3319 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3320 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3321 ISSPACE instead of isspace.
3322 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3323 instead of isspace.
3324 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3325 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3326 instead of isxdigit and ISDIGIT instead of isdigit.
3327
80fc5e77
SM
33282020-05-22 Simon Marchi <simon.marchi@efficios.com>
3329
3330 * gdbtypes.h (struct type) <field>: New method.
3331 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3332 or type::field.
3333
3cabb6b0
SM
33342020-05-22 Simon Marchi <simon.marchi@efficios.com>
3335
3336 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3337 (TYPE_FIELDS): Use type::fields. Change all call sites that
3338 modify the propery to use type::set_fields instead.
3339
1f704f76
SM
33402020-05-22 Simon Marchi <simon.marchi@efficios.com>
3341
3342 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3343 type::num_fields instead.
3344
5e33d5f4
SM
33452020-05-22 Simon Marchi <simon.marchi@efficios.com>
3346
3347 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3348 methods.
3349 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3350 that modify the number of fields to use type::set_num_fields
3351 instead.
3352
9392ebb3
TT
33532020-05-22 Tom Tromey <tromey@adacore.com>
3354
3355 * compile/compile-object-load.h (munmap_list_free): Don't
3356 declare.
3357
7c13f4e8
AB
33582020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3359
3360 * annotate.c (annotate_source_line): Update return type, add call
3361 to update current symtab and line.
3362 * annotate.h (annotate_source_line): Update return type, and
3363 extend header comment.
3364 * source.c (info_line_command): Check annotation_level before
3365 calling annotate_source_line.
3366 * stack.c (print_frame_info): If calling annotate_source_line
3367 returns true, then don't print any other source line information.
3368
aa370940
SM
33692020-05-21 Simon Marchi <simon.marchi@efficios.com>
3370
3371 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3372
84d53fa9
SM
33732020-05-21 Simon Marchi <simon.marchi@efficios.com>
3374
3375 * coffread.c (patch_type): Remove NULL check before xfree.
3376 * corefile.c (set_gnutarget): Likewise.
3377 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3378 * exec.c (build_section_table): Likewise.
3379 * remote.c (remote_target::pass_signals): Likewise.
3380 * utils.c (n_spaces): Likewise.
3381 * cli/cli-script.c (document_command): Likewise.
3382 * i386-windows-tdep.c (core_process_module_section): Likewise.
3383 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3384
9d428aae
SM
33852020-05-20 Simon Marchi <simon.marchi@efficios.com>
3386
3387 * symfile.c (reread_symbols): Clear objfile's section_offsets
3388 vector and section indices, re-compute them by calling
3389 sym_offsets.
3390
250106a7
TT
33912020-05-20 Tom Tromey <tromey@adacore.com>
3392
3393 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3394 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3395
9a0bacfb
TV
33962020-05-20 Tom de Vries <tdevries@suse.de>
3397
3398 PR symtab/25833
3399 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3400
7b958a48
AM
34012020-05-20 Alan Modra <amodra@gmail.com>
3402
3403 PR 25993
3404 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3405 bfd_set_filename.
3406 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3407 passed to bfd_set_filename.
3408 * symfile-mem.c (add_vsyscall_page): Likewise for string
3409 passed to symbol_file_add_from_memory.
3410 (symbol_file_add_from_memory): Make name param a const char* and
3411 don't strdup.
3412
c7e97679
AM
34132020-05-20 Alan Modra <amodra@gmail.com>
3414
3415 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3416 rather than accessing bfd->filename directly.
3417 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3418 and use bfd_section_name.
3419 * dwarf2/frame.c (decode_frame_entry): Likewise.
3420 * exec.c (exec_set_section_address): Likewise.
3421 * solib-aix.c (solib_aix_bfd_open): Likewise.
3422 * stap-probe.c (get_stap_base_address): Likewise.
3423 * symfile.c (reread_symbols): Likewise.
3424
563c591b
TT
34252020-05-19 Tom Tromey <tromey@adacore.com>
3426
3427 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3428
f408d82c
SM
34292020-05-19 Simon Marchi <simon.marchi@efficios.com>
3430
3431 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3432
98c59b52
PA
34332020-05-19 Pedro Alves <palves@redhat.com>
3434
3435 * NEWS (set exec-file-mismatch): Adjust entry.
3436 * exec.c: Include "build-id.h".
3437 (validate_exec_file): Try to match build IDs instead of filenames.
3438 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3439 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3440 and pass down 'warn_if_slow'.
3441 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3442 gdb_bfd_open_closure to pass it down.
3443 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3444
4111f652
PA
34452020-05-19 Pedro Alves <palves@redhat.com>
3446
3447 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3448 * target.c (target_fileio_open_1): Rename to target_fileio_open
3449 and make extern. Use bool.
3450 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3451 (target_fileio_read_alloc_1): Adjust.
3452 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3453 (target_fileio_open_warn_if_slow): Delete declaration.
3454
ad80db5b
PA
34552020-05-19 Pedro Alves <palves@redhat.com>
3456
3457 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3458 Adjust all callers.
3459
1d6ce4d3
YS
34602020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3461
3462 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3463 whether disp is negative.
3464
9005fbbb
SM
34652020-05-19 Simon Marchi <simon.marchi@efficios.com>
3466
3467 * symfile.h (struct symfile_segment_data)
3468 <~symfile_segment_data>: Remove.
3469 <segment_info>: Change to std::vector.
3470 * symfile.c (default_symfile_segments): Update.
3471 * elfread.c (elf_symfile_segments): Update.
3472
68b888ff
SM
34732020-05-19 Simon Marchi <simon.marchi@efficios.com>
3474
3475 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3476 <segments>: New.
3477 <segment_bases, segment_sizes>: Remove.
3478 * symfile.c (default_symfile_segments): Update.
3479 * elfread.c (elf_symfile_segments): Update.
3480 * remote.c (remote_target::get_offsets): Update.
3481 * solib-target.c (solib_target_relocate_section_addresses):
3482 Update.
3483
62982abd
SM
34842020-05-19 Simon Marchi <simon.marchi@efficios.com>
3485
3486 * symfile.h (struct symfile_segment_data): Initialize fields.
3487 <~symfile_segment_data>: Add.
3488 (symfile_segment_data_up): New.
3489 (struct sym_fns) <sym_segments>: Return a
3490 symfile_segment_data_up.
3491 (default_symfile_segments): Return a symfile_segment_data_up.
3492 (free_symfile_segment_data): Remove.
3493 (get_symfile_segment_data): Return a symfile_segment_data_up.
3494 * symfile.c (default_symfile_segments): Likewise.
3495 (get_symfile_segment_data): Likewise.
3496 (free_symfile_segment_data): Remove.
3497 (symfile_find_segment_sections): Update.
3498 * elfread.c (elf_symfile_segments): Return a
3499 symfile_segment_data_up.
3500 * remote.c (remote_target::get_offsets): Update.
3501 * solib-target.c (solib_target_relocate_section_addresses):
3502 Update.
3503 * symfile-debug.c (debug_sym_segments): Return a
3504 symfile_segment_data_up.
3505
7f204339
RO
35062020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3507
e52a0f1b
RO
3508 PR build/25981
3509 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3510 Hardcode register numbers.
3511
7f204339
RO
3512 PR build/25981
3513 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3514 procfs_find_LDT_entry): Remove.
3515 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3516 procfs_find_LDT_entry): Remove.
3517 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3518 Remove.
3519
7f32a4d5
PA
35202020-05-17 Pedro Alves <palves@redhat.com>
3521 Andrew Burgess <andrew.burgess@embecosm.com>
3522 Keno Fischer <keno@juliacomputing.com>
3523
3524 PR gdb/25741
3525 * breakpoint.c (build_target_condition_list): Update comments.
3526 (build_target_command_list): Update comments and skip matching
3527 locations.
3528 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3529 a separate function. Simplify "set breakpoint auto-hw off"
3530 handling.
3531 (insert_breakpoints): Update comment.
3532 (tracepoint_locations_match): New parameter. For breakpoints,
3533 compare location types too, if the caller wants to.
3534 (handle_automatic_hardware_breakpoints): New functions.
3535 (bp_location_is_less_than): Also sort by location type and
3536 hardware breakpoint length.
3537 (update_global_location_list): Handle "set breakpoint auto-hw on"
3538 here.
3539 (update_breakpoint_locations): Ask breakpoint_locations_match to
3540 ignore location types.
3541
7d93a1e0
SM
35422020-05-16 Simon Marchi <simon.marchi@efficios.com>
3543
3544 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3545 type::name instead.
3546
d0e39ea2
SM
35472020-05-16 Simon Marchi <simon.marchi@efficios.com>
3548
3549 * gdbtypes.h (struct type) <name, set_name>: New methods.
3550 (TYPE_CODE): Use type::name. Change all call sites used to set
3551 the name to use type::set_name instead.
3552
2dab0c7b
TT
35532020-05-16 Tom Tromey <tom@tromey.com>
3554
3555 * top.c (quit_force): Update.
3556 * infrun.c (handle_no_resumed): Update.
3557 * top.h (all_uis): New function.
3558 (ALL_UIS): Remove.
3559
59f7bd8d
SM
35602020-05-16 Simon Marchi <simon.marchi@efficios.com>
3561
3562 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3563
9bf058f0
PA
35642020-05-16 Pedro Alves <palves@redhat.com>
3565
3566 * ia64-linux-nat.c
3567 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3568 Declare method.
3569 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3570
8f86ae1a
SM
35712020-05-15 Simon Marchi <simon.marchi@efficios.com>
3572
3573 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3574 (sparc64_adi_info): Likewise.
3575
d6bc0792
TT
35762020-05-15 Tom Tromey <tom@tromey.com>
3577
3578 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3579 block_objfile.
3580 (lookup_objfile_from_block): Remove.
3581 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3582 (lookup_global_symbol): Use block_objfile.
3583 * symtab.h (lookup_objfile_from_block): Don't declare.
3584 * printcmd.c (clear_dangling_display_expressions): Use
3585 block_objfile.
3586 * parse.c (operator_check_standard): Use block_objfile.
3587
8c14c3a3
TT
35882020-05-15 Tom Tromey <tom@tromey.com>
3589
3590 * language.c (language_alloc_type_symbol): Set
3591 SYMBOL_SECTION.
3592 * symtab.c (initialize_objfile_symbol): Remove.
3593 (allocate_symbol): Remove.
3594 (allocate_template_symbol): Remove.
3595 * dwarf2/read.c (fixup_go_packaging): Use "new".
3596 (new_symbol): Use "new".
3597 (read_variable): Don't call initialize_objfile_symbol. Use
3598 "new".
3599 (read_func_scope): Use "new".
3600 * xcoffread.c (process_xcoff_symbol): Don't call
3601 initialize_objfile_symbol.
3602 (SYMBOL_DUP): Remove.
3603 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3604 "new".
3605 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3606 (allocate_template_symbol): Don't declare.
3607 (struct symbol): Add copy constructor. Change defaults.
3608 * jit.c (finalize_symtab): Use "new".
3609 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3610 Use "new".
3611 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3612 (common_block_end): Use "new".
3613 * mdebugread.c (parse_symbol): Use "new".
3614 (new_symbol): Likewise.
3615
5b4a1a8d
PW
36162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3617
3618 * NEWS: Mention changes to help and apropos.
3619
57b4f16e
PW
36202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3621
3622 * command.h (enum command_class): Improve comments, document
3623 that class_alias is for user-defined aliases, give the class
3624 name for each class, remove unused class_xdb.
3625 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3626 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3627 by a precise class.
3628 * infcmd.c (_initialize_infcmd): Likewise.
3629 * reverse.c (_initialize_reverse): Likewise.
3630 * stack.c (_initialize_stack): Likewise.
3631 * symfile.c (_initialize_symfile): Likewise.
3632 * tracepoint.c (_initialize_tracepoint): Likewise.
3633
7c05caf7
PW
36342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3635
3636 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3637 when their aliased command is traversed.
3638 (help_cmd): Add fput_command_names_styled call to
3639 output command name and aliases when command has an alias.
3640
3b3aaacb
PW
36412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3642
3643 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3644 * cli/cli-decode.c (help_cmd_list): Declare as static,
3645 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3646 a command together with the command.
3647 (fput_command_name_styled, fput_command_names_styled): New functions.
3648 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3649 fput_command_name_styled.
3650 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3651 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3652
7aa1b46f
PW
36532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3654
3655 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3656 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3657 * command.h (cmd_show_list): Likewise.
3658 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3659 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3660
89bcba74
PW
36612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3662
3663 * unittests/command-def-selftests.c (traverse_command_structure):
3664 Verify all commands of a list have the same prefix command and
3665 that only the top cmdlist commands have a null prefix.
3666
3f4d92eb
PW
36672020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3668
3669 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3670 as prefix, not one of its aliases.
3671 (set_cmd_prefix): Remove.
3672 (do_add_cmd): Centralize the setting of the prefix of a command, when
3673 command is defined after its full chain of prefix commands.
3674 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3675 (add_setshow_cmd_full): Likewise.
3676 (update_prefix_field_of_prefixed_commands): New function.
3677 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3678 update_prefix_field_of_prefixed_commands.
3679 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3680 addresses of remote_set_cmdlist and remote_show_cmdlist given
3681 as argument, not the address of an argument.
3682 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3683 * gdb/remote.c (_initialize_remote): Likewise.
3684
0605465f
PW
36852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3686
3687 * cli/cli-cmds.c (alias_command): Check for an existing alias
3688 using lookup_cmd_composition, as valid_command_p is too strict
3689 and forbids aliases that are the prefix of an existing alias
3690 or command.
3691 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3692 command is properly recognised as a valid command.
3693
58e6ac70
PW
36942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3695
3696 * unittests/help-doc-selftests.c: Rename to
3697 unittests/command-def-selftests.c
3698 * unittests/command-def-selftests.c (help_doc_tests): Update some
3699 comments.
3700 (command_structure_tests, traverse_command_structure): New namespace
3701 and function.
3702 (command_structure_invariants_tests): New function.
3703 (_initialize_command_def_selftests) Renamed from
3704 _initialize_help_doc_selftests, register command_structure_invariants
3705 selftest.
3706
a7b9ceb8
PW
37072020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3708
3709 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3710 an alias of 'show'.
3711
b2188a06
JB
37122020-05-15 Joel Brobecker <brobecker@adacore.com>
3713
3714 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3715 ada_is_fixed_point_type. Update all callers.
3716 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3717 all callers.
3718 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3719 Update all callers.
3720 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3721 print_fixed_point_type. Update all callers.
3722 * ada-valprint.c (ada_value_print_num): Replace call to
3723 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3724
a51951c2
KB
37252020-05-14 Kevin Buettner <kevinb@redhat.com>
3726
3727 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3728 processors.
3729 (cpu_supports_bts): Add CV_AMD case.
3730
29d6859f
LM
37312020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3732 Simon Marchi <simon.marchi@efficios.com>
3733
3734 * infrun.c (stop_all_threads): Collect multiple wait events at
3735 each pass.
3736
78134374
SM
37372020-05-14 Simon Marchi <simon.marchi@efficios.com>
3738
3739 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3740 type::code instead.
3741
67607e24
SM
37422020-05-14 Simon Marchi <simon.marchi@efficios.com>
3743
3744 * gdbtypes.h (struct type) <code, set_code>: New methods.
3745 (TYPE_CODE): Use type::code. Change all call sites used to set
3746 the code to use type::set_code instead.
3747
a05575d3
TBA
37482020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3749 Tom de Vries <tdevries@suse.de>
3750 Pedro Alves <palves@redhat.com>
3751
3752 PR threads/25478
3753 * infrun.c (stop_all_threads): Do NOT ignore
3754 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3755 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3756 received.
3757 (handle_no_resumed): Remove code handling a live inferior with no
3758 threads.
3759 * remote.c (has_single_non_exited_thread): New.
3760 (remote_target::update_thread_list): Do not delete a thread if is
3761 the last thread of the process.
3762 * thread.c (thread_select): Call delete_exited_threads instead of
3763 prune_threads.
3764
6ad82919
TBA
37652020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3766
3767 * infrun.c (stop_all_threads): Enable/disable thread events of all
3768 targets. Move a debug message denoting the end of the function
3769 into the SCOPED_EXIT block.
3770
d890404b
TBA
37712020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3772
3773 * process-stratum-target.h: Include <set>.
3774 (all_non_exited_process_targets, switch_to_target_no_thread): New
3775 function declarations.
3776 * process-stratum-target.c (all_non_exited_process_targets)
3777 (switch_to_target_no_thread): New function implementations.
3778
293b3ebc
TBA
37792020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3780
3781 * infrun.c (handle_inferior_event): Extract out a piece of code
3782 into...
3783 (mark_non_executing_threads): ...this new function.
3784
7ca9b62a
TBA
37852020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3786
3787 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3788 use.
3789
fc75c28b
TBA
37902020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3791
3792 * regcache.c (regcache_read_pc_protected): New function
3793 implementation that returns 0 if the PC cannot read via
3794 'regcache_read_pc'.
3795 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3796 instead of 'regcache_read_pc'.
3797 (keep_going_pass_signal): Ditto.
3798
a89febbd
TT
37992020-05-13 Tom Tromey <tromey@adacore.com>
3800
3801 * ada-lang.c (align_value): Remove.
3802 (ada_template_to_fixed_record_type_1): Use align_up.
3803
f7e23710
TBA
38042020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3805
3806 * async-event.c: Update the copyright year.
3807 * async-event.h: Update the copyright year.
3808
02ff80c2
SM
38092020-05-12 Simon Marchi <simon.marchi@efficios.com>
3810
3811 * objfiles.h (is_addr_in_objfile,
3812 shared_objfile_contains_address_p): Return bool.
3813 * objfile.c (is_addr_in_objfile,
3814 shared_objfile_contains_address_p): Return bool.
3815
4fd6c7e8
TT
38162020-05-11 Tom Tromey <tromey@adacore.com>
3817
3818 * cli/cli-cmds.c (info_command): Restore.
3819 (_initialize_cli_cmds): Use add_prefix_command for "info".
3820 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3821
5eb68a39
TT
38222020-05-11 Tom Tromey <tromey@adacore.com>
3823
3824 * ada-lang.c (ada_value_primitive_field): Now public.
3825 * ada-lang.h (ada_value_primitive_field): Declare.
3826 * ada-valprint.c (print_field_values): Use
3827 ada_value_primitive_field for wrapper fields.
3828
7666722f
TV
38292020-05-11 Tom de Vries <tdevries@suse.de>
3830
3831 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3832 MODULE_DOMAIN.
3833
3ee6bb11
TV
38342020-05-11 Tom de Vries <tdevries@suse.de>
3835
3836 PR symtab/25941
3837 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3838 with length 0, if not gdb-produced.
3839 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3840
43434996
TV
38412020-05-09 Tom de Vries <tdevries@suse.de>
3842
3843 PR gdb/25955
3844 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3845 calculation.
3846
2f78cffc
TT
38472020-05-09 Tom Tromey <tom@tromey.com>
3848
3849 * top.c (server_command): Now bool.
3850 * top.h (server_command): Now bool.
3851
4f7bc5ed
TT
38522020-05-08 Tom Tromey <tromey@adacore.com>
3853
3854 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3855 already being processed.
3856
8be4b118
TT
38572020-05-08 Tom Tromey <tom@tromey.com>
3858
3859 * printcmd.c (struct display) <next>: Remove.
3860 <display>: New constructor.
3861 <exp_string>: Now a std::string.
3862 <enabled_p>: Now a bool.
3863 (display_number): Move definition earlier.
3864 (displays): Rename from display_chain. Now a std::vector.
3865 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3866 (display_command): Update.
3867 (do_one_display, disable_display)
3868 (enable_disable_display_command, do_enable_disable_display):
3869 Update.
3870 (free_display): Remove.
3871 (clear_displays): Rewrite.
3872 (delete_display): Update.
3873 (map_display_numbers): Use function_view. Remove "data"
3874 parameter. Update.
3875 (do_delete_display): Remove.
3876 (undisplay_command): Update.
3877 (do_one_display, do_displays, disable_display)
3878 (info_display_command): Update.
3879 (do_enable_disable_display): Remove.
3880 (enable_disable_display_command)
3881 (clear_dangling_display_expressions): Update.
3882
94c93c35
TT
38832020-05-08 Tom Tromey <tom@tromey.com>
3884
3885 * symtab.c (set_symbol_cache_size)
3886 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3887 (maintenance_print_symbol_cache_statistics): Update.
3888 * symmisc.c (print_symbol_bcache_statistics)
3889 (print_objfile_statistics, maintenance_print_objfiles)
3890 (maintenance_info_symtabs, maintenance_check_symtabs)
3891 (maintenance_expand_symtabs, maintenance_info_line_tables):
3892 Update.
3893 * symfile-debug.c (set_debug_symfile): Update.
3894 * source.c (forget_cached_source_info): Update.
3895 * python/python.c (gdbpy_progspaces): Update.
3896 * psymtab.c (maintenance_info_psymtabs): Update.
3897 * probe.c (parse_probes): Update.
3898 * linespec.c (iterate_over_all_matching_symtabs)
3899 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3900 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3901 * exec.c (exec_target::close): Update.
3902 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3903 * breakpoint.c (print_one_breakpoint_location)
3904 (create_longjmp_master_breakpoint)
3905 (create_std_terminate_master_breakpoint): Update.
3906 * progspace.c (program_spaces): Now a std::vector.
3907 (maybe_new_address_space): Update.
3908 (add_program_space): Remove.
3909 (program_space::program_space): Update.
3910 (remove_program_space): Update.
3911 (number_of_program_spaces): Remove.
3912 (print_program_space, update_address_spaces): Update.
3913 * progspace.h (program_spaces): Change type.
3914 (ALL_PSPACES): Remove.
3915 (number_of_program_spaces): Don't declare.
3916 (struct program_space) <next>: Remove.
3917
a1fd1ac9
TT
39182020-05-08 Tom Tromey <tom@tromey.com>
3919
3920 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3921 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3922 (enable_break): Update.
3923 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3924 (frv_fdpic_find_canonical_descriptor): Update.
3925 (frv_fetch_objfile_link_map): Update.
3926 * progspace.c (program_space::free_all_objfiles): Update.
3927 (program_space::solibs): New method.
3928 * progspace.h (struct program_space) <solibs>: New method.
3929 * solist.h (master_so_list): Don't declare.
3930 (ALL_SO_LIBS): Remove.
3931 * solib.h (so_list_head): Remove.
3932 (update_solib_list): Update comment.
3933 * solib.c (master_so_list): Remove.
3934 (solib_used, update_solib_list, solib_add)
3935 (info_sharedlibrary_command, clear_solib)
3936 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3937
38eae084
TT
39382020-05-08 Tom Tromey <tom@tromey.com>
3939
3940 * extension.c (extension_languages): Now a std::array.
3941 (ALL_EXTENSION_LANGUAGES): Remove.
3942 (get_ext_lang_defn, get_ext_lang_of_file)
3943 (eval_ext_lang_from_control_command): Update.
3944 (finish_ext_lang_initialization)
3945 (auto_load_ext_lang_scripts_for_objfile)
3946 (ext_lang_type_printers::ext_lang_type_printers)
3947 (apply_ext_lang_type_printers)
3948 (ext_lang_type_printers::~ext_lang_type_printers)
3949 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3950 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3951 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3952 (get_matching_xmethod_workers, ext_lang_colorize)
3953 (ext_lang_before_prompt): Update.
3954 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3955
596dc4ad
TT
39562020-05-08 Tom Tromey <tom@tromey.com>
3957
3958 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3959 overload.
3960 <swap_string, m_string>: Remove.
3961 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3962 Update.
3963 * stabsread.c (define_symbol, read_type): Update.
3964 * linespec.c (find_linespec_symbols): Update.
3965 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3966 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3967 * dbxread.c (read_dbx_symtab): Update.
3968 * cp-support.h (cp_canonicalize_string_full)
3969 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3970 Return unique_xmalloc_ptr.
3971 * cp-support.c (inspect_type): Update.
3972 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3973 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3974 Likewise.
3975 * c-typeprint.c (print_name_maybe_canonical): Update.
3976 * break-catch-throw.c (check_status_exception_catchpoint):
3977 Update.
3978
bf4cb9be
TV
39792020-05-08 Tom de Vries <tdevries@suse.de>
3980
3981 * infrun.c (follow_fork): Copy current_line and current_symtab to
3982 child thread.
3983
a1b68f28
SM
39842020-05-07 Simon Marchi <simon.marchi@efficios.com>
3985
3986 * async-event.c (struct async_signal_handler, struct
3987 async_event_handler): Reformat, remove typedef.
3988
98d48915
SM
39892020-05-07 Simon Marchi <simon.marchi@efficios.com>
3990
3991 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3992 access thistype->main_type->dyn_prop_list directly.
3993
7aa91313
SM
39942020-05-07 Simon Marchi <simon.marchi@efficios.com>
3995
3996 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3997 (remove_dyn_prop): Remove. Update all users to use
3998 type::remove_dyn_prop.
3999 * gdbtypes.c (remove_dyn_prop): Rename to...
4000 (type::remove_dyn_prop): ... this.
4001
5c54719c
SM
40022020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4003
4004 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4005 (add_dyn_prop): Remove. Update all users to use
4006 type::add_dyn_prop.
4007 * gdbtypes.c (add_dyn_prop): Rename to...
4008 (type::add_dyn_prop): ... this.
4009
24e99c6c
SM
40102020-05-07 Simon Marchi <simon.marchi@efficios.com>
4011
4012 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4013 (get_dyn_prop): Remove. Update all users to use
4014 type::dyn_prop.
4015 * gdbtypes.c (get_dyn_prop): Rename to...
4016 (type::dyn_prop): ... this.
4017
0d4bf016
SM
40182020-05-06 Simon Marchi <simon.marchi@efficios.com>
4019
4020 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4021
ac4a4f1c
SM
40222020-05-06 Simon Marchi <simon.marchi@efficios.com>
4023
4024 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4025 instruction, skip it if it's there.
4026
a3bbacc1
SM
40272020-05-05 Simon Marchi <simon.marchi@efficios.com>
4028
4029 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4030
c3236f84
SM
40312020-05-04 Simon Marchi <simon.marchi@efficios.com>
4032
4033 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4034 * gdbtypes.c (recursive_dump_type): Remove use of
4035 TYPE_INCOMPLETE.
4036
3b6acaee
TT
40372020-05-03 Tom Tromey <tom@tromey.com>
4038
4039 * breakpoint.c (catch_command, tcatch_command): Remove.
4040 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4041 add_show_prefix_cmd.
4042 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4043 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4044 Remove.
4045 (add_internal_problem_command): Use add_basic_prefix_cmd,
4046 add_show_prefix_cmd.
4047 * mips-tdep.c (set_mipsfpu_command): Remove.
4048 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4049 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4050 (_initialize_index_cache): Use add_basic_prefix_cmd.
4051 * memattr.c (dummy_cmd): Remove.
4052 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4053 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4054 (_initialize_tui_win): Use add_basic_prefix_cmd,
4055 add_show_prefix_cmd.
4056 * cli/cli-logging.c (set_logging_command): Remove.
4057 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4058 add_show_prefix_cmd.
4059 (show_logging_command): Remove.
4060 * target.c (target_command): Remove.
4061 (add_target): Use add_basic_prefix_cmd.
4062
a51119cd
HD
40632020-05-02 Hannes Domani <ssbssa@yahoo.de>
4064
4065 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4066
652fc23a 40672020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4068
652fc23a
PW
4069 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4070 info_command.
4071
117539e6
KR
40722020-04-30 Kamil Rytarowski <n54@gmx.com>
4073
4074 * nbsd-nat.c (nbsd_enable_proc_events)
4075 (nbsd_nat_target::post_startup_inferior): Add.
4076 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4077 (nbsd_nat_target::update_thread_list): Rewrite.
4078 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4079 "PTRACE_LWP_CREATE".
4080 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4081
102e38eb 40822020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4083
102e38eb
PW
4084 * stack.c (_initialize_stack): Remove duplicated creation
4085 of "frame" command and "f" alias.
4086
ee9d1e5f
HD
40872020-04-30 Hannes Domani <ssbssa@yahoo.de>
4088
4089 PR gdb/18706
4090 * gdbtypes.c (check_typedef): Calculate size of array of
4091 stubbed type.
4092
627c7fb8
HD
40932020-04-30 Hannes Domani <ssbssa@yahoo.de>
4094
4095 PR gdb/15559
4096 * i386-tdep.c (i386_push_dummy_call): Call
4097 i386_thiscall_push_dummy_call.
4098 (i386_thiscall_push_dummy_call): New function.
4099 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4100 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4101 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4102
ffc2844e
SM
41032020-04-29 Simon Marchi <simon.marchi@efficios.com>
4104
4105 * gdbarch.sh (do_read): Add shellcheck disable directive for
4106 warning SC2162.
4107
1207375d
SM
41082020-04-29 Simon Marchi <simon.marchi@efficios.com>
4109
4110 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4111 "referenced but not assigned" warning.
4112
9fdb2916
SM
41132020-04-29 Simon Marchi <simon.marchi@efficios.com>
4114
4115 * gdbarch.sh: Remove code that sets fallbackdefault.
4116
759cea5e
SM
41172020-04-29 Simon Marchi <simon.marchi@efficios.com>
4118
4119 * gdbarch.sh: Use shell operators && and || instead of
4120 -a and -o.
4121
cb02ab24
SM
41222020-04-29 Simon Marchi <simon.marchi@efficios.com>
4123
4124 * gdbarch.sh: Use $(...) instead of `...`.
4125
a6fc5ffc
SM
41262020-04-29 Simon Marchi <simon.marchi@efficios.com>
4127
4128 * gdbarch.sh: Use double quotes around variables.
4129
8d113d13
SM
41302020-04-29 Simon Marchi <simon.marchi@efficios.com>
4131
4132 * gdbarch.sh: Use %s with printf, instead of variables in the
4133 format string.
4134
ed6acedd
TT
41352020-04-29 Tom Tromey <tromey@adacore.com>
4136
4137 PR ada/25875:
4138 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4139 type fields here.
4140 (read_enumeration_type): Call
4141 update_enumeration_type_from_children later. Update comments.
4142 (process_enumeration_scope): Don't create type fields.
4143
b68b1b58
KR
41442020-04-29 Kamil Rytarowski <n54@gmx.com>
4145
4146 * nbsd-tdep.c: Include "xml-syscall.h".
4147 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4148
f94b2e03
KR
41492020-04-29 Kamil Rytarowski <n54@gmx.com>
4150
4151 * nbsd-nat.c: Include "sys/wait.h".
4152 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4153 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4154 (nbsd_nat_target::remove_exec_catchpoint)
4155 (nbsd_nat_target::set_syscall_catchpoint): Add.
4156 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4157 (nbsd_nat_target::insert_exec_catchpoint)
4158 (nbsd_nat_target::remove_exec_catchpoint)
4159 (nbsd_nat_target::set_syscall_catchpoint): Add.
4160 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4161 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4162 `nbsd_get_syscall_number'.
4163
fc49bc72
TT
41642020-04-29 Tom Tromey <tom@tromey.com>
4165
4166 * stack.c (print_block_frame_labels): Remove.
4167
d642b692
HD
41682020-04-29 Hannes Domani <ssbssa@yahoo.de>
4169
4170 PR gdb/17320
4171 * ada-valprint.c (val_print_packed_array_elements): Move array
4172 end bracket to new line.
4173 (ada_val_print_string): Remove extra spaces before first array
4174 element.
4175 * c-valprint.c (c_value_print_array): Likewise.
4176 * m2-valprint.c (m2_print_array_contents): Likewise.
4177 (m2_value_print_inner): Likewise.
4178 * p-valprint.c (pascal_value_print_inner): Likewise.
4179 * valprint.c (generic_val_print_array): Likewise.
4180 (value_print_array_elements): Move first array element and array
4181 end bracket to new line.
4182
ea90f227
TV
41832020-04-29 Tom de Vries <tdevries@suse.de>
4184
4185 PR symtab/25889
4186 * linespec.c (find_method): Fix ix calculation.
4187
4498ef4f
KR
41882020-04-28 Kamil Rytarowski <n54@gmx.com>
4189
4190 * syscalls/update-netbsd.sh: New file.
4191 * syscalls/netbsd.xml: Regenerate.
4192 * data-directory/Makefile.in: Register `netbsd.xml' in
4193 `SYSCALLS_FILES'.
4194
a55e30b5
SM
41952020-04-28 Simon Marchi <simon.marchi@efficios.com>
4196
4197 * syscalls/update-freebsd.sh: Add double quotes.
4198
2b2fbab8
TT
41992020-04-28 Tom Tromey <tom@tromey.com>
4200
4201 * NEWS: Update.
4202 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4203 (cmdpy_init): Allow class_tui.
4204
a65189c9
TV
42052020-04-28 Mark Williams <mark@myosotissp.com>
4206
4207 PR gdb/24480
4208 * dwarf2read.c: Add missing assingments to list_in_scope when
4209 start_symtab was already called.
4210
1b95cdb7
SM
42112020-04-28 Simon Marchi <simon.marchi@efficios.com>
4212
4213 PR gdb/25881
4214 * dwarf2/read.c (offset_map_type): Use
4215 gdb:hash_enum<sect_offset> as hash function.
4216
15cd93d0
TV
42172020-04-28 Tom de Vries <tdevries@suse.de>
4218
4219 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4220 with DW_AT_signature.
4221
1eb39914
SM
42222020-04-27 Simon Marchi <simon.marchi@efficios.com>
4223
4224 * configure.ac: Remove check for fs_base/gs_base in
4225 user_regs_struct.
4226 * configure: Re-generate.
4227 * config.in: Re-generate.
4228 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4229 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4230 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4231
991a3e2e
LM
42322020-04-27 Luis Machado <luis.machado@linaro.org>
4233
4234 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4235 problematic inline frame unwinding situation.
4236 * frame.c (frame_id_computed_p): New function.
4237 * frame.h (frame_id_computed_p): New prototype.
4238
361ba0e8
TT
42392020-04-26 Tom Tromey <tom@tromey.com>
4240
4241 * command.h (enum command_class) <class_pseudo>: Remove.
4242
bc3609fd
PW
42432020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4244
4245 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4246 and whitespace.
4247
b9771db7
KR
42482020-04-25 Kamil Rytarowski <n54@gmx.com>
4249
ec16513e
SM
4250 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4251 `PT_GET_PROCESS_STATE' block.
b9771db7 4252
7151c1af
TT
42532020-04-24 Tom Tromey <tom@tromey.com>
4254
4255 * symtab.h (symbol_get_demangled_name): Don't declare.
4256 * symtab.c (symbol_get_demangled_name): Remove.
4257 (general_symbol_info::natural_name)
4258 (general_symbol_info::demangled_name): Update.
4259
906bb4c5
TT
42602020-04-24 Tom Tromey <tom@tromey.com>
4261
4262 PR rust/25025:
4263 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4264
bcfe6157
TT
42652020-04-24 Tom Tromey <tom@tromey.com>
4266
4267 PR symtab/12707:
4268 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4269 exists.
4270 (new_symbol): Likewise.
4271 * compile/compile-object-load.c (get_out_value_type): Use
4272 symbol_matches_search_name.
4273
f049a313
TT
42742020-04-24 Tom Tromey <tom@tromey.com>
4275
4276 * dwarf2/read.c (add_partial_symbol): Do not call
4277 compute_and_set_names.
4278
76e288d1
TT
42792020-04-24 Tom Tromey <tom@tromey.com>
4280
4281 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4282 overload.
4283
2467f4f6
TT
42842020-04-24 Tom Tromey <tom@tromey.com>
4285
4286 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4287 (add_psymbol_to_list): New overload. Make old overload call new
4288 one.
4289 * psympriv.h (add_psymbol_to_list): New overload.
4290
e61108c9
TT
42912020-04-24 Tom Tromey <tom@tromey.com>
4292
4293 * dwarf2/read.c (partial_die_info::read) <case
4294 DW_AT_linkage_name>: Use value_as_string.
4295 (dwarf2_string_attr): Use value_as_string.
4296 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4297 method.
4298 * dwarf2/attribute.c (attribute::value_as_string): New method.
4299
8c87a452
TT
43002020-04-24 Tom Tromey <tom@tromey.com>
4301
4302 * symtab.c (general_symbol_info::natural_name)
4303 (general_symbol_info::demangled_name): Check for language_rust.
4304
787de330
TT
43052020-04-24 Tom Tromey <tom@tromey.com>
4306
4307 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4308 (dwarf2_physname): ... from here.
4309 (partial_die_info::read): Add Rust "{" hack.
4310
ff985671
TT
43112020-04-24 Tom Tromey <tom@tromey.com>
4312
4313 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4314 method.
4315 (symbol_set_demangled_name): Don't declare.
4316 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4317 symbol_set_demangled_name.
4318 (general_symbol_info::set_language)
4319 (general_symbol_info::compute_and_set_names): Update.
4320 * minsyms.c (minimal_symbol_reader::install): Update.
4321 * dwarf2/read.c (new_symbol): Update.
4322
1acda803
TT
43232020-04-24 Tom Tromey <tromey@adacore.com>
4324
4325 PR python/23662:
4326 * python/py-type.c (convert_field): Handle
4327 FIELD_LOC_KIND_DWARF_BLOCK.
4328 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4329 (typy_get_dynamic): Nw function.
4330 (type_object_getset): Add "dynamic".
4331 * NEWS: Add entry.
4332
d656f129
TT
43332020-04-24 Tom Tromey <tromey@adacore.com>
4334
4335 * ada-typeprint.c (print_choices, print_variant_part)
4336 (print_record_field_types_dynamic): New functions.
4337 (print_record_field_types): Use print_record_field_types_dynamic.
4338
7d79de9a
TT
43392020-04-24 Tom Tromey <tromey@adacore.com>
4340
4341 * dwarf2/read.c (handle_data_member_location): New overload.
4342 (dwarf2_add_field): Use it.
4343 (decode_locdesc): Add "computed" parameter. Update comment.
4344 * gdbtypes.c (is_dynamic_type_internal): Also look for
4345 FIELD_LOC_KIND_DWARF_BLOCK.
4346 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4347 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4348 virtual base classes.
4349 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4350 FIELD_LOC_KIND_DWARF_BLOCK.
4351
f8e89861
TT
43522020-04-24 Tom Tromey <tromey@adacore.com>
4353
4354 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4355 * gdbtypes.c (is_dynamic_type_internal): Check
4356 TYPE_HAS_DYNAMIC_LENGTH.
4357 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4358 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4359 New macros.
4360 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4361 constant.
4362
9c6a1327
TT
43632020-04-24 Tom Tromey <tromey@adacore.com>
4364
4365 * dwarf2/read.c (struct variant_field): Rewrite.
4366 (struct variant_part_builder): New.
4367 (struct nextfield): Remove "variant" field. Add "offset".
4368 (struct field_info): Add "current_variant_part" and
4369 "variant_parts".
4370 (alloc_discriminant_info): Remove.
4371 (alloc_rust_variant): New function.
4372 (quirk_rust_enum): Update.
4373 (dwarf2_add_field): Set "offset" member. Don't handle
4374 DW_TAG_variant_part.
4375 (offset_map_type): New typedef.
4376 (convert_variant_range, create_one_variant)
4377 (create_one_variant_part, create_variant_parts)
4378 (add_variant_property): New functions.
4379 (dwarf2_attach_fields_to_type): Call add_variant_property.
4380 (read_structure_type): Don't handle DW_TAG_variant_part.
4381 (handle_variant_part, handle_variant): New functions.
4382 (handle_struct_member_die): Use them.
4383 (process_structure_scope): Don't handle variant parts.
4384 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4385 (struct discriminant_info): Remove.
4386 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4387 (struct main_type) <flag_discriminated_union>: Remove.
4388 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4389 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4390 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4391 Update.
4392 * valops.c (value_union_variant): Remove.
4393 * value.h (value_union_variant): Don't declare.
4394
b249d2c2
TT
43952020-04-24 Tom Tromey <tromey@adacore.com>
4396
4397 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4398 (ada_value_primitive_packed_val): Update.
4399 * ada-valprint.c (ada_value_print_1): Update.
4400 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4401 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4402 just an address. Use evaluate_for_locexpr_baton.
4403 (dwarf2_evaluate_property): Update.
4404 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4405 array_view.
4406 * findvar.c (default_read_var_value): Update.
4407 * gdbtypes.c (compute_variant_fields_inner)
4408 (resolve_dynamic_type_internal): Update.
4409 (resolve_dynamic_type): Change type of valaddr parameter.
4410 * gdbtypes.h (resolve_dynamic_type): Update.
4411 * valarith.c (value_subscripted_rvalue): Update.
4412 * value.c (value_from_contents_and_address): Update.
4413
61122aa9
TT
44142020-04-24 Tom Tromey <tromey@adacore.com>
4415
4416 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4417 "push_initial_value" parameter.
4418 (dwarf2_evaluate_property): Likewise.
4419 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4420
ef83a141
TT
44212020-04-24 Tom Tromey <tromey@adacore.com>
4422
4423 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4424 (variant::matches, compute_variant_fields_recurse)
4425 (compute_variant_fields_inner, compute_variant_fields): New
4426 functions.
4427 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4428 Use resolved_type after type is made.
4429 (operator==): Add new cases.
4430 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4431 (struct discriminant_range, struct variant, struct variant_part):
4432 New.
4433 (union dynamic_prop_data) <variant_parts, original_type>: New
4434 members.
4435 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4436 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4437 constants.
4438 * value.c (unpack_bits_as_long): Now public.
4439 * value.h (unpack_bits_as_long): Declare.
4440
675127ec
TT
44412020-04-24 Tom Tromey <tromey@adacore.com>
4442
4443 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4444 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4445
9852ceef
HD
44462020-04-24 Hannes Domani <ssbssa@yahoo.de>
4447
4448 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4449
7632c6ce
KR
44502020-04-24 Kamil Rytarowski <n54@gmx.com>
4451
4452 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4453 (remove_fork_catchpoint, post_startup_inferior)
4454 (post_attach): Move...
4455 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4456 (remove_fork_catchpoint, post_startup_inferior)
4457 (post_attach): ...here.
4458 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4459 (remove_fork_catchpoint, post_startup_inferior)
4460 (post_attach): Move...
4461 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4462 (remove_fork_catchpoint, post_startup_inferior)
4463 (post_attach): ...here.
4464
7be2bb4f
TT
44652020-04-24 Tom Tromey <tromey@adacore.com>
4466
4467 * nat/windows-nat.h (struct windows_thread_info)
4468 <pc_adjusted>: New member.
4469 * windows-nat.c (windows_fetch_one_register): Check
4470 pc_adjusted.
4471 (windows_nat_target::get_windows_debug_event)
4472 (windows_nat_target::wait): Set pc_adjusted.
4473
f80cb3b4
TV
44742020-04-24 Tom de Vries <tdevries@suse.de>
4475
4476 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4477 Run gdb-add-index inside temp dir.
4478
29514b87
TT
44792020-04-23 Tom Tromey <tromey@adacore.com>
4480
4481 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4482 in loop.
4483
5939967b
LM
44842020-04-23 Luis Machado <luis.machado@linaro.org>
4485
4486 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4487 get_frame_register instead of gdbarch_unwind_pc.
4488
70bc38f5
TV
44892020-04-23 Tom de Vries <tdevries@suse.de>
4490
4491 * symtab.c (lookup_global_symbol): Prefer def over decl.
4492
de82891c
TV
44932020-04-23 Tom de Vries <tdevries@suse.de>
4494
4495 PR symtab/25807
4496 * block.c (best_symbol, better_symbol): Promote to external.
4497 * block.h (best_symbol, better_symbol): Declare.
4498 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4499 decl.
4500
ecc6c606
TT
45012020-04-23 Tom Tromey <tromey@adacore.com>
4502
4503 PR ada/25837:
4504 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4505 "const char *", not a "const std::string &".
4506 <name_and_matcher::operator==>: Update.
4507 * unittests/lookup_name_info-selftests.c: Change type of
4508 "result".
4509
740480b8
TT
45102020-04-23 Tom Tromey <tom@tromey.com>
4511
4512 * inferior.h (iterate_over_inferiors): Don't declare.
4513 * inferior.c (iterate_over_inferiors): Remove.
4514 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4515 Remove.
4516 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4517 use iterate_over_inferiors.
4518 (darwin_resume_inferior_it)
4519 (struct resume_inferior_threads_param)
4520 (darwin_resume_inferior_threads_it): Remove.
4521 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4522
ae3ab1f0
TV
45232020-04-23 Tom de Vries <tdevries@suse.de>
4524
4525 * blockframe.c (find_pc_partial_function): Use
4526 find_pc_sect_compunit_symtab rather than
4527 objfile->sf->qf->find_pc_sect_compunit_symtab.
4528
317d2668
TV
45292020-04-22 Tom de Vries <tdevries@suse.de>
4530
4531 PR symtab/25764
4532 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4533 in psymtabs.
4534
eea9e357
TV
45352020-04-22 Tom de Vries <tdevries@suse.de>
4536
4537 PR symtab/25801
4538 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4539 symtabs.
4540
3d5afab3
TV
45412020-04-22 Tom de Vries <tdevries@suse.de>
4542
4543 PR symtab/25700
4544 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4545 CU if already created.
4546
d43b7a2d
TBA
45472020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4548
4549 * infrun.c (displaced_step_fixup): Switch to the event_thread
4550 before calling displaced_step_restore, not after.
4551
d89edf9b
MM
45522020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4553
4554 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4555 its inferior is not recorded by us.
4556 (record_btrace_target_open): Replace call to
4557 all_non_exited_threads () with call to current_inferior
4558 ()->non_exited_threads ().
4559 (record_btrace_target::stop_recording): Likewise.
4560 (record_btrace_target::close): Likewise.
4561 (record_btrace_target::wait): Likewise.
4562 (record_btrace_target::record_stop_replaying): Likewise.
4563
5897fd49
MM
45642020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4565
4566 * btrace.c (btrace_enable): Throw an error on double enables and
4567 when enabling recording fails.
4568 (btrace_disable): Throw an error if the thread is not recorded.
4569
1a476b6d
MM
45702020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4571
4572 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4573 request if we do not have a thread_info.
4574
4778a5f8
TV
45752020-04-21 Tom de Vries <tdevries@suse.de>
4576
4577 PR gdb/25471
4578 * thread.c
4579 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4580 exception in get_frame_id.
4581
0fa7617d
TT
45822020-04-20 Tom Tromey <tromey@adacore.com>
4583
4584 * python/python.c (struct gdbpy_event): Mark move constructor as
4585 noexcept.
4586 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4587 constructor as noexcept.
4588 * completer.h (struct completion_result): Mark move constructor as
4589 noexcept.
4590 * completer.c (completion_result::completion_result): Use
4591 initialization style. Don't call reset_match_list.
4592
ad23bda0
MS
45932020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4594
4595 * MAINTAINERS (Write After Approval): Add myself.
4596
45e1f031
TT
45972020-04-18 Tom Tromey <tom@tromey.com>
4598
4599 * windows-tdep.c (init_w32_command_list)
4600 (w32_prefix_command_valid): Restore.
4601 (_initialize_windows_tdep): Call init_w32_command_list.
4602
08feed99
TT
46032020-04-18 Tom Tromey <tom@tromey.com>
4604
4605 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4606 * value.c (value_fn_field): Update.
4607 * valops.c (find_function_in_inferior)
4608 (value_allocate_space_in_inferior): Update.
4609 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4610 Update.
4611 * tui/tui-source.c (tui_source_window::set_contents): Update.
4612 * symtab.c (lookup_global_or_static_symbol)
4613 (find_function_start_sal_1, skip_prologue_sal)
4614 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4615 * symmisc.c (dump_msymbols, dump_symtab_1)
4616 (maintenance_print_one_line_table): Update.
4617 * symfile.c (init_entry_point_info, section_is_mapped)
4618 (list_overlays_command, simple_read_overlay_table)
4619 (simple_overlay_update_1): Update.
4620 * stap-probe.c (handle_stap_probe): Update.
4621 * stabsread.c (dbx_init_float_type, define_symbol)
4622 (read_one_struct_field, read_enum_type, read_range_type): Update.
4623 * source.c (info_line_command): Update.
4624 * python/python.c (gdbpy_source_objfile_script)
4625 (gdbpy_execute_objfile_script): Update.
4626 * python/py-type.c (save_objfile_types): Update.
4627 * python/py-objfile.c (py_free_objfile): Update.
4628 * python/py-inferior.c (python_new_objfile): Update.
4629 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4630 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4631 (maintenance_check_psymtabs): Update.
4632 * printcmd.c (info_address_command): Update.
4633 * objfiles.h (struct objfile) <arch>: New method, from
4634 get_objfile_arch.
4635 (get_objfile_arch): Don't declare.
4636 * objfiles.c (get_objfile_arch): Remove.
4637 (filter_overlapping_sections): Update.
4638 * minsyms.c (msymbol_is_function): Update.
4639 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4640 (output_nondebug_symbol): Update.
4641 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4642 (mdebug_expand_psymtab): Update.
4643 * machoread.c (macho_add_oso_symfile): Update.
4644 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4645 Update.
4646 * linux-fork.c (checkpoint_command): Update.
4647 * linespec.c (convert_linespec_to_sals): Update.
4648 * jit.c (finalize_symtab): Update.
4649 * infrun.c (insert_exception_resume_from_probe): Update.
4650 * ia64-tdep.c (ia64_find_unwind_table): Update.
4651 * hppa-tdep.c (internalize_unwinds): Update.
4652 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4653 Update.
4654 * gcore.c (call_target_sbrk): Update.
4655 * elfread.c (record_minimal_symbol, elf_symtab_read)
4656 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4657 (elf_gnu_ifunc_resolve_by_got): Update.
4658 * dwarf2/read.c (create_addrmap_from_index)
4659 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4660 (read_debug_names_from_section)
4661 (process_psymtab_comp_unit_reader, add_partial_symbol)
4662 (add_partial_subprogram, process_full_comp_unit)
4663 (read_file_scope, read_func_scope, read_lexical_block_scope)
4664 (read_call_site_scope, dwarf2_ranges_read)
4665 (dwarf2_record_block_ranges, dwarf2_add_field)
4666 (mark_common_block_symbol_computed, read_tag_pointer_type)
4667 (read_tag_string_type, dwarf2_init_float_type)
4668 (dwarf2_init_complex_target_type, read_base_type)
4669 (partial_die_info::read, partial_die_info::read)
4670 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4671 (dwarf2_fetch_die_loc_sect_off): Update.
4672 * dwarf2/loc.c (dwarf2_find_location_expression)
4673 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4674 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4675 (dwarf2_loc_desc_get_symbol_read_needs)
4676 (locexpr_describe_location_piece, locexpr_describe_location_1)
4677 (loclist_describe_location): Update.
4678 * dwarf2/index-write.c (write_debug_names): Update.
4679 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4680 * dtrace-probe.c (dtrace_process_dof): Update.
4681 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4682 (process_one_symbol): Update.
4683 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4684 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4685 (coff_read_enum_type): Update.
4686 * cli/cli-cmds.c (edit_command, list_command): Update.
4687 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4688 * breakpoint.c (create_overlay_event_breakpoint)
4689 (create_longjmp_master_breakpoint)
4690 (create_std_terminate_master_breakpoint)
4691 (create_exception_master_breakpoint, get_sal_arch): Update.
4692 * block.c (block_gdbarch): Update.
4693 * annotate.c (annotate_source_line): Update.
4694
0743fc83
TT
46952020-04-17 Tom Tromey <tromey@adacore.com>
4696
4697 * auto-load.c (show_auto_load_cmd): Remove.
4698 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4699 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4700 (maintenance_print_arc_command): Remove.
4701 * tui/tui-win.c (tui_command): Remove.
4702 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4703 * tui/tui-layout.c (tui_layout_command): Remove.
4704 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4705 * python/python.c (user_set_python, user_show_python): Remove.
4706 (_initialize_python): Use add_basic_prefix_cmd,
4707 add_show_prefix_cmd.
4708 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4709 (install_gdb_commands): Use add_basic_prefix_cmd,
4710 add_show_prefix_cmd.
4711 (info_guile_command): Remove.
4712 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4713 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4714 add_show_prefix_cmd.
4715 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4716 Remove do_set and do_show parameters.
4717 * cli/cli-style.c (set_style, show_style): Remove.
4718 (_initialize_cli_style): Use add_basic_prefix_cmd,
4719 add_show_prefix_cmd.
4720 (cli_style_option::add_setshow_commands): Remove do_set and
4721 do_show parameters.
4722 (cli_style_option::add_setshow_commands): Use
4723 add_basic_prefix_cmd, add_show_prefix_cmd.
4724 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4725 (set_style_name): Remove.
4726 * cli/cli-dump.c (dump_command, append_command): Remove.
4727 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4728 (tekhex_dump_command, binary_dump_command)
4729 (binary_append_command): Remove.
4730 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4731 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4732 (init_w32_command_list): Remove; move into ...
4733 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4734 * valprint.c (set_print, show_print, set_print_raw)
4735 (show_print_raw): Remove.
4736 (_initialize_valprint): Use add_basic_prefix_cmd,
4737 add_show_prefix_cmd.
4738 * typeprint.c (set_print_type, show_print_type): Remove.
4739 (_initialize_typeprint): Use add_basic_prefix_cmd,
4740 add_show_prefix_cmd.
4741 * record.c (set_record_command, show_record_command): Remove.
4742 (_initialize_record): Use add_basic_prefix_cmd,
4743 add_show_prefix_cmd.
4744 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4745 add_show_prefix_cmd.
4746 (info_command, show_command, set_debug, show_debug): Remove.
4747 * top.h (set_history, show_history): Don't declare.
4748 * top.c (set_history, show_history): Remove.
4749 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4750 (unset_tdesc_cmd): Remove.
4751 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4752 add_show_prefix_cmd.
4753 * symtab.c (info_module_command): Remove.
4754 (_initialize_symtab): Use add_basic_prefix_cmd.
4755 * symfile.c (overlay_command): Remove.
4756 (_initialize_symfile): Use add_basic_prefix_cmd.
4757 * sparc64-tdep.c (info_adi_command): Remove.
4758 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4759 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4760 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4761 add_show_prefix_cmd.
4762 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4763 (_initialize_serial): Use add_basic_prefix_cmd,
4764 add_show_prefix_cmd.
4765 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4766 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4767 add_show_prefix_cmd.
4768 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4769 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4770 add_show_prefix_cmd.
4771 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4772 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4773 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4774 add_show_prefix_cmd.
4775 * remote.c (remote_command, set_remote_cmd): Remove.
4776 (_initialize_remote): Use add_basic_prefix_cmd.
4777 * record-full.c (set_record_full_command)
4778 (show_record_full_command): Remove.
4779 (_initialize_record_full): Use add_basic_prefix_cmd,
4780 add_show_prefix_cmd.
4781 * record-btrace.c (cmd_set_record_btrace)
4782 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4783 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4784 (cmd_show_record_btrace_pt): Remove.
4785 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4786 add_show_prefix_cmd.
4787 * ravenscar-thread.c (set_ravenscar_command)
4788 (show_ravenscar_command): Remove.
4789 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4790 add_show_prefix_cmd.
4791 * mips-tdep.c (show_mips_command, set_mips_command)
4792 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4793 add_show_prefix_cmd.
4794 * maint.c (maintenance_command, maintenance_info_command)
4795 (maintenance_check_command, maintenance_print_command)
4796 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4797 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4798 add_show_prefix_cmd.
4799 (show_per_command_cmd): Remove.
4800 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4801 Remove.
4802 (maintenance_show_test_settings_cmd): Remove.
4803 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4804 add_show_prefix_cmd.
4805 * maint-test-options.c (maintenance_test_options_command):
4806 Remove.
4807 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4808 * macrocmd.c (macro_command): Remove
4809 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4810 * language.c (set_check, show_check): Remove.
4811 (_initialize_language): Use add_basic_prefix_cmd,
4812 add_show_prefix_cmd.
4813 * infcmd.c (unset_command): Remove.
4814 (_initialize_infcmd): Use add_basic_prefix_cmd.
4815 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4816 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4817 add_show_prefix_cmd.
4818 * go32-nat.c (go32_info_dos_command): Remove.
4819 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4820 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4821 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4822 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4823 (_initialize_frame): Use add_basic_prefix_cmd,
4824 add_show_prefix_cmd.
4825 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4826 (_initialize_dcache): Use add_basic_prefix_cmd,
4827 add_show_prefix_cmd.
4828 * cp-support.c (maint_cplus_command): Remove.
4829 (_initialize_cp_support): Use add_basic_prefix_cmd.
4830 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4831 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4832 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4833 add_basic_prefix_cmd, add_show_prefix_cmd.
4834 * breakpoint.c (save_command): Remove.
4835 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4836 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4837 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4838 add_show_prefix_cmd.
4839 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4840 (set_ada_command, show_ada_command): Remove.
4841 (_initialize_ada_language): Use add_basic_prefix_cmd,
4842 add_show_prefix_cmd.
4843 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4844
3557f442
KR
48452020-04-16 Kamil Rytarowski <n54@gmx.com>
4846
4847 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4848 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4849
16197208
SM
48502020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4851
4852 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4853 warning messages.
4854
00ac85d3
SM
48552020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4856
4857 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4858 import table is not at beginning of .idata section.
4859
381ce63f
PA
48602020-04-16 Pedro Alves <palves@redhat.com>
4861
4862 * inferior.c (delete_inferior): Use delete operator directly
4863 instead of delete_program_space.
4864 * progspace.c (add_program_space): New, factored out from
4865 program_space::program_space.
4866 (remove_program_space): New, factored out from
4867 delete_program_space.
4868 (program_space::program_space): Remove intro comment. Rewrite.
4869 (program_space::~program_space): Remove intro comment. Call
4870 remove_program_space.
4871 (delete_program_space): Delete.
4872 * progspace.h (program_space::program_space): Make explicit. Move
4873 intro comment here, adjusted.
4874 (program_space::~program_space): Move intro comment here,
4875 adjusted.
4876 (delete_program_space): Remove.
4877
a010605f
TT
48782020-04-16 Tom Tromey <tromey@adacore.com>
4879
4880 * windows-nat.c (windows_nat::handle_access_violation): New
4881 function.
4882 * nat/windows-nat.h (handle_access_violation): Declare.
4883 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4884 windows-nat.c. Call handle_access_violation.
4885
efba5c23
TV
48862020-04-16 Tom de Vries <tdevries@suse.de>
4887
4888 PR symtab/25791
4889 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4890 CUs without psymtab.
4891
97ed802d
KB
48922020-04-16 Kevin Buettner <kevinb@redhat.com>
4893
4894 * python/python.c (do_start_initialization): Don't call
4895 PyEval_InitThreads for Python 3.9 and beyond.
4896
c7d64809
KR
48972020-04-15 Kamil Rytarowski <n54@gmx.com>
4898
4899 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4900 thread functions.
4901 (obsd_nat_target::wait): Likewise.
4902
ce127a96
TT
49032020-04-15 Tom Tromey <tromey@adacore.com>
4904
4905 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4906 (DEBUG_EXCEPT): Use debug_printf.
4907
99f1bc6a
AB
49082020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4909
4910 * completer.c (class completion_tracker::completion_hash_entry)
4911 <hash_name>: New member function.
4912 (completion_tracker::discard_completions): New callback to hash a
4913 completion_hash_entry, pass this to htab_create_alloc.
4914
a0e9b532
JT
49152016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4916
4917 * windows-nat.c (windows_make_so): Warn rather than stopping with
4918 an error if realpath() fails.
4919
06ca5dd4
KR
49202020-04-14 Kamil Rytarowski <n54@gmx.com>
4921
4922 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4923 (nbsd_nat_target::info_proc): Add do_status.
4924
194d088f
TV
49252020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4926 Tom de Vries <tdevries@suse.de>
4927
4928 PR symtab/25718
4929 * psympriv.h (struct partial_symtab::read_symtab)
4930 (struct partial_symtab::expand_psymtab)
4931 (struct partial_symtab::read_dependencies): Update comments.
4932 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4933 read_symtab for includer.
4934 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4935 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4936 (struct dwarf2_include_psymtab::m_readin): Remove.
4937 (struct dwarf2_include_psymtab::includer): New member function.
4938 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4939
c1a66c06
TV
49402020-04-14 Tom de Vries <tdevries@suse.de>
4941
4942 PR symtab/25720
4943 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4944 with NULL symbol_matcher and lookup_name.
4945 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4946 and lookup_name.
4947 * dwarf2/read.c (dw2_expand_symtabs_matching)
4948 (dw2_debug_names_expand_symtabs_matching): Same.
4949 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4950 Make lookup_name a pointer. Update comment.
4951 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4952 lookup_name being a pointer.
4953 * symfile.c (expand_symtabs_matching): Same.
4954 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4955 * linespec.c (iterate_over_all_matching_symtabs): Same.
4956
400b5eca
TT
49572020-04-13 Tom Tromey <tom@tromey.com>
4958
4959 * run-on-main-thread.c: Update include.
4960 * unittests/main-thread-selftests.c: Update include.
4961 * tui/tui-win.c: Update include.
4962 * tui/tui-io.c: Update include.
4963 * tui/tui-interp.c: Update include.
4964 * tui/tui-hooks.c: Update include.
4965 * top.h: Update include.
4966 * top.c: Update include.
4967 * ser-base.c: Update include.
4968 * remote.c: Update include.
4969 * remote-notif.c: Update include.
4970 * remote-fileio.c: Update include.
4971 * record-full.c: Update include.
4972 * record-btrace.c: Update include.
4973 * python/python.c: Update include.
4974 * posix-hdep.c: Update include.
4975 * mingw-hdep.c: Update include.
4976 * mi/mi-main.c: Update include.
4977 * mi/mi-interp.c: Update include.
4978 * main.c: Update include.
4979 * linux-nat.c: Update include.
4980 * interps.c: Update include.
4981 * infrun.c: Update include.
4982 * inf-loop.c: Update include.
4983 * event-top.c: Update include.
4984 * event-loop.c: Move to ../gdbsupport/.
4985 * event-loop.h: Move to ../gdbsupport/.
4986 * async-event.h: Update include.
4987 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4988
93b54c8e
TT
49892020-04-13 Tom Tromey <tom@tromey.com>
4990
4991 * tui/tui-win.c: Include async-event.h.
4992 * remote.c: Include async-event.h.
4993 * remote-notif.c: Include async-event.h.
4994 * record-full.c: Include async-event.h.
4995 * record-btrace.c: Include async-event.h.
4996 * infrun.c: Include async-event.h.
4997 * event-top.c: Include async-event.h.
4998 * event-loop.h: Move some declarations to async-event.h.
4999 * event-loop.c: Don't include ser-event.h or top.h. Move some
5000 code to async-event.c.
5001 * async-event.h: New file.
5002 * async-event.c: New file.
5003 * Makefile.in (COMMON_SFILES): Add async-event.c.
5004 (HFILES_NO_SRCDIR): Add async-event.h.
5005
c1cd3163
TT
50062020-04-13 Tom Tromey <tom@tromey.com>
5007
5008 * utils.c (flush_streams): New function.
5009 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5010
29f2bf4f
TT
50112020-04-13 Tom Tromey <tom@tromey.com>
5012
5013 * event-loop.c (handle_file_event): Use warning, not
5014 printf_unfiltered.
5015
98029d02
TT
50162020-04-13 Tom Tromey <tom@tromey.com>
5017
5018 * event-loop.c: Include <chrono>.
5019
06cc9596
TT
50202020-04-13 Tom Tromey <tom@tromey.com>
5021
5022 * gdb_select.h: Move to ../gdbsupport/.
5023 * event-loop.c: Update include path.
5024 * top.c: Update include path.
5025 * ser-base.c: Update include path.
5026 * ui-file.c: Update include path.
5027 * ser-tcp.c: Update include path.
5028 * guile/scm-ports.c: Update include path.
5029 * posix-hdep.c: Update include path.
5030 * ser-unix.c: Update include path.
5031 * gdb_usleep.c: Update include path.
5032 * mingw-hdep.c: Update include path.
5033 * inflow.c: Update include path.
5034 * infrun.c: Update include path.
5035 * event-top.c: Update include path.
5036
8ae8e197
TT
50372020-04-13 Tom Tromey <tom@tromey.com>
5038
5039 * configure: Rebuild.
5040 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5041
58cf28e8
TT
50422020-04-13 Tom Tromey <tom@tromey.com>
5043
5044 * event-loop.h (start_event_loop): Don't declare.
5045 * event-loop.c (start_event_loop): Move...
5046 * main.c (start_event_loop): ...here. Now static.
5047
b7f999ae
SDJ
50482020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5049
5050 * MAINTAINERS: Update my email address.
5051
1085dfd4
KR
50522020-04-12 Kamil Rytarowski <n54@gmx.com>
5053
5054 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5055 IP_ALL.
5056
49d1d1f5
KR
50572020-04-12 Kamil Rytarowski <n54@gmx.com>
5058
5059 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5060 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5061
b4848d2a
KR
50622020-04-12 Kamil Rytarowski <n54@gmx.com>
5063
5064 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5065 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5066
51c133d5
KR
50672020-04-12 Kamil Rytarowski <n54@gmx.com>
5068
5069 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5070
54b8cbd0
KR
50712020-04-11 Kamil Rytarowski <n54@gmx.com>
5072
5073 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5074 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5075 (nbsd_nat_target::info_proc): New functions.
5076 * nbsd-nat.c (kinfo_get_vmmap): New function.
5077 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5078 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5079 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5080 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5081 functions.
5082 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5083 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5084 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5085 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5086 (KINFO_VME_FLAG_GROWS_DOWN): New.
5087
cf83625d
AS
50882020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5089
5090 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5091 bit shift.
5092
0c4311ab
TT
50932020-04-10 Tom Tromey <tromey@adacore.com>
5094
5095 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5096
3e65b3e9
TT
50972020-04-10 Tom Tromey <tromey@adacore.com>
5098
5099 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5100 separate debug files.
5101
13302e95
HD
51022020-04-10 Hannes Domani <ssbssa@yahoo.de>
5103
5104 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5105 Move to...
5106 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5107 ... here.
5108 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5109 Check for STATUS_WX86_BREAKPOINT.
5110 (windows_nat_target::wait): Same.
5111
bdfc1e8a
TV
51122020-04-10 Tom de Vries <tdevries@suse.de>
5113
5114 PR cli/25808
5115 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5116
f4460aec
SM
51172020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5118
5119 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5120 (Write After Approval): Remove Tom de Vries.
5121
a25198bb
BE
51222020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5123
5124 revert partially:
5125 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5126
aac66a4c
SM
5127 * buildsym.c (record_line): Fix undefined behavior and preserve
5128 lines at eof.
a25198bb 5129
206c98a6
KR
51302020-04-09 Kamil Rytarowski <n54@gmx.com>
5131
5132 * auxv.h (svr4_auxv_parse): New.
5133 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5134 and generic_auxv_parse.
5135 (svr4_auxv_parse): Add.
5136 * obsd-tdep.c: Include "auxv.h".
5137 (obsd_auxv_parse): Remove.
5138 (obsd_init_abi): Remove comment.
5139 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5140 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5141 * nbsd-tdep.c: Include "auxv.h".
5142 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5143
71fbdbaf
TT
51442020-04-08 Tom Tromey <tromey@adacore.com>
5145
5146 * nat/windows-nat.h (last_wait_event): Don't declare.
5147 (wait_for_debug_event): Update comment.
5148 * nat/windows-nat.c (last_wait_event): Now static.
5149
2c1d95e8
TT
51502020-04-08 Tom Tromey <tromey@adacore.com>
5151
5152 * windows-nat.c (wait_for_debug_event): Move to
5153 nat/windows-nat.c.
5154 * nat/windows-nat.h (wait_for_debug_event): Declare.
5155 * nat/windows-nat.c (wait_for_debug_event): Move from
5156 windows-nat.c. No longer static.
5157
d2977bc4
TT
51582020-04-08 Tom Tromey <tromey@adacore.com>
5159
5160 * windows-nat.c (get_windows_debug_event): Use
5161 fetch_pending_stop.
5162 * nat/windows-nat.h (fetch_pending_stop): Declare.
5163 * nat/windows-nat.c (fetch_pending_stop): New function.
5164
e758e19c
TT
51652020-04-08 Tom Tromey <tromey@adacore.com>
5166
5167 * windows-nat.c (windows_continue): Use matching_pending_stop and
5168 continue_last_debug_event.
5169 * nat/windows-nat.h (matching_pending_stop)
5170 (continue_last_debug_event): Declare.
5171 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5172 (matching_pending_stop, continue_last_debug_event): New
5173 functions.
5174
8d30e395
TT
51752020-04-08 Tom Tromey <tromey@adacore.com>
5176
5177 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5178 (handle_exception_result): Move to nat/windows-nat.h.
5179 (DEBUG_EXCEPTION_SIMPLE): Remove.
5180 (windows_nat::handle_ms_vc_exception): New function.
5181 (handle_exception): Move to nat/windows-nat.c.
5182 (get_windows_debug_event): Update.
5183 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5184 nat/windows-nat.c.
5185 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5186 (handle_exception_result): Move from windows-nat.c.
5187 (handle_exception): Declare.
5188 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5189 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5190 windows-nat.c.
5191
29de418d
TT
51922020-04-08 Tom Tromey <tromey@adacore.com>
5193
5194 * windows-nat.c (exception_count, event_count): Remove.
5195 (handle_exception, get_windows_debug_event)
5196 (do_initial_windows_stuff): Update.
5197
a816ba18
TT
51982020-04-08 Tom Tromey <tromey@adacore.com>
5199
5200 * windows-nat.c (windows_nat::handle_load_dll)
5201 (windows_nat::handle_unload_dll): Rename. No longer static.
5202 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5203 Declare.
5204
a00caa12
TT
52052020-04-08 Tom Tromey <tromey@adacore.com>
5206
5207 * complaints.h (stop_whining): Declare at top-level.
5208 (complaint): Don't declare stop_whining.
5209
d41b524f
TT
52102020-04-08 Tom Tromey <tromey@adacore.com>
5211
5212 * windows-nat.c (windows_nat::handle_output_debug_string):
5213 Rename. No longer static.
5214 * nat/windows-nat.h (handle_output_debug_string): Declare.
5215
3c76026d
TT
52162020-04-08 Tom Tromey <tromey@adacore.com>
5217
5218 * windows-nat.c (current_process_handle, current_process_id)
5219 (main_thread_id, last_sig, current_event, last_wait_event)
5220 (current_windows_thread, desired_stop_thread_id, pending_stops)
5221 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5222 (display_selectors, fake_create_process)
5223 (get_windows_debug_event): Update.
5224 * nat/windows-nat.h (current_process_handle, current_process_id)
5225 (main_thread_id, last_sig, current_event, last_wait_event)
5226 (current_windows_thread, desired_stop_thread_id, pending_stops)
5227 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5228 * nat/windows-nat.c (current_process_handle, current_process_id)
5229 (main_thread_id, last_sig, current_event, last_wait_event)
5230 (current_windows_thread, desired_stop_thread_id, pending_stops)
5231 (siginfo_er): New globals. Move from windows-nat.c.
5232
9d8679cc
TT
52332020-04-08 Tom Tromey <tromey@adacore.com>
5234
5235 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5236 (handle_load_dll): Update.
5237 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5238
28688adf
TT
52392020-04-08 Tom Tromey <tromey@adacore.com>
5240
5241 * windows-nat.c (enum thread_disposition_type): Move to
5242 nat/windows-nat.h.
5243 (windows_nat::thread_rec): Rename from thread_rec. No longer
5244 static.
5245 (windows_add_thread, windows_nat_target::fetch_registers)
5246 (windows_nat_target::store_registers, handle_exception)
5247 (windows_nat_target::resume, get_windows_debug_event)
5248 (windows_nat_target::get_tib_address)
5249 (windows_nat_target::thread_name)
5250 (windows_nat_target::thread_alive): Update.
5251 * nat/windows-nat.h (enum thread_disposition_type): Move from
5252 windows-nat.c.
5253 (thread_rec): Declare.
5254
4834dad0
TT
52552020-04-08 Tom Tromey <tromey@adacore.com>
5256
5257 * windows-nat.c: Add "using namespace".
5258 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5259 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5260
65bafd5b
TT
52612020-04-08 Tom Tromey <tromey@adacore.com>
5262
5263 * nat/windows-nat.h (struct windows_thread_info): Declare
5264 destructor.
5265 * nat/windows-nat.c (~windows_thread_info): New.
5266
0a4afda3
TT
52672020-04-08 Tom Tromey <tromey@adacore.com>
5268
5269 PR gdb/22992
5270 * windows-nat.c (current_event): Update comment.
5271 (last_wait_event, desired_stop_thread_id): New globals.
5272 (struct pending_stop): New.
5273 (pending_stops): New global.
5274 (windows_nat_target) <stopped_by_sw_breakpoint>
5275 <supports_stopped_by_sw_breakpoint>: New methods.
5276 (windows_fetch_one_register): Add assertions. Adjust PC.
5277 (windows_continue): Handle pending stops. Suspend other threads
5278 when stepping. Use last_wait_event
5279 (wait_for_debug_event): New function.
5280 (get_windows_debug_event): Use wait_for_debug_event. Handle
5281 pending stops. Queue spurious stops.
5282 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5283 (windows_nat_target::kill): Use wait_for_debug_event.
5284 * nat/windows-nat.h (struct windows_thread_info)
5285 <stopped_at_software_breakpoint>: New field.
5286 * nat/windows-nat.c (windows_thread_info::resume): Clear
5287 stopped_at_software_breakpoint.
5288
8e61ebec
TT
52892020-04-08 Tom Tromey <tromey@adacore.com>
5290
5291 * windows-nat.c (enum thread_disposition_type): New.
5292 (thread_rec): Replace "get_context" parameter with "disposition";
5293 change type.
5294 (windows_add_thread, windows_nat_target::fetch_registers)
5295 (windows_nat_target::store_registers, handle_exception)
5296 (windows_nat_target::resume, get_windows_debug_event)
5297 (windows_nat_target::get_tib_address)
5298 (windows_nat_target::thread_name)
5299 (windows_nat_target::thread_alive): Update.
5300
98a03287
TT
53012020-04-08 Tom Tromey <tromey@adacore.com>
5302
5303 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5304 (windows_continue): Use windows_continue::resume.
5305 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5306 resume>: Declare new methods.
5307 * nat/windows-nat.c: New file.
5308 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5309
7c7411bc
TT
53102020-04-08 Tom Tromey <tromey@adacore.com>
5311
5312 * windows-nat.c (windows_add_thread, windows_delete_thread)
5313 (windows_nat_target::fetch_registers)
5314 (windows_nat_target::store_registers, fake_create_process)
5315 (windows_nat_target::resume, windows_nat_target::resume)
5316 (get_windows_debug_event, windows_nat_target::wait)
5317 (windows_nat_target::pid_to_str)
5318 (windows_nat_target::get_tib_address)
5319 (windows_nat_target::get_ada_task_ptid)
5320 (windows_nat_target::thread_name)
5321 (windows_nat_target::thread_alive): Use lwp, not tid.
5322
2950fdf7
TT
53232020-04-08 Tom Tromey <tromey@adacore.com>
5324
5325 * windows-nat.c (handle_exception)
5326 (windows_nat_target::thread_name): Update.
5327 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5328 <name>: Now unique_xmalloc_ptr.
5329
62fe396b
TT
53302020-04-08 Tom Tromey <tromey@adacore.com>
5331
5332 * windows-nat.c (thread_rec)
5333 (windows_nat_target::fetch_registers): Update.
5334 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5335 Update comment.
5336 <debug_registers_changed, reload_context>: Now bool.
5337
e9534bd2
TT
53382020-04-08 Tom Tromey <tromey@adacore.com>
5339
5340 * windows-nat.c (windows_add_thread): Use new.
5341 (windows_init_thread_list, windows_delete_thread): Use delete.
5342 (get_windows_debug_event): Update.
5343 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5344 destructor, and initializers.
5345
ae1f8880
TT
53462020-04-08 Tom Tromey <tromey@adacore.com>
5347
5348 * windows-nat.c (struct windows_thread_info): Remove.
5349 * nat/windows-nat.h: New file.
5350
55a1e039
TT
53512020-04-08 Tom Tromey <tromey@adacore.com>
5352
5353 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5354 (thread_rec, windows_add_thread, windows_delete_thread)
5355 (windows_continue): Update.
5356
93366324
TT
53572020-04-08 Tom Tromey <tromey@adacore.com>
5358
5359 * windows-nat.c (struct windows_thread_info): Remove typedef.
5360 (thread_head): Remove.
5361 (thread_list): New global.
5362 (thread_rec, windows_add_thread, windows_init_thread_list)
5363 (windows_delete_thread, windows_continue): Update.
5364
0f2265e2
SM
53652020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5366
5367 * windows-tdep.h (windows_init_abi): Add comment.
5368 (cygwin_init_abi): New declaration.
5369 * windows-tdep.c: Split signal enumeration in two, one for
5370 Windows and one for Cygwin.
5371 (windows_gdb_signal_to_target): Only deal with signal of the
5372 Windows OS ABI.
5373 (cygwin_gdb_signal_to_target): New function.
5374 (windows_init_abi): Rename to windows_init_abi_common, don't set
5375 gdb_signal_to_target gdbarch method. Add new new function with
5376 this name.
5377 (cygwin_init_abi): New function.
5378 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5379 comment. Don't call windows_init_abi.
5380 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5381 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5382 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5383 i386_windows_init_abi_common, don't call windows_init_abi. Add
5384 a new function of this name.
5385 (i386_cygwin_init_abi): New function.
5386 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5387 OS ABI Cygwin.
5388
3810f182
SM
53892020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5390
5391 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5392 parameter.c.
5393 (dwarf2_read_gdb_index): Update.
5394
063f8e80
KR
53952020-04-07 Kamil Rytarowski <n54@gmx.com>
5396
5397 * nbsd-tdep.c: Include "objfiles.h".
5398 (nbsd_skip_solib_resolver): New.
5399 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5400
85a9510c 54012020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5402
5403 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5404 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5405 with DW_LLE_base_addressx are being emitted in DWARFv5.
5406 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5407 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5408 unsigned integer.
5409
9fc3eaae 54102020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5411
5412 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5413 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5414 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5415 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5416 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5417 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5418 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5419
5420
41144253 54212020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5422
5423 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5424 (read_loclist_index): New function definition.
5425 (lookup_loclist_base): New function definition.
5426 (read_loclist_header): New function definition.
5427 (dwarf2_cu): Add loclist_base and loclist_header field.
5428 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5429 (read_full_die_1): Read the value of DW_AT_loclists_base.
5430 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5431 (read_attribute_value): Handle DW_FORM_loclistx.
5432 (skip_one_die): Handle DW_FORM_loclistx.
5433 (loclist_header): New structure declaration.
5434 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5435
9f4e76a4
SM
54362020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5437
5438 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5439 constructor. Remove `addr` parameter from other constructor and
5440 add `per_cu` parameter.
5441 * dwarf2/read.c (create_partial_symtab): Update.
5442
25c11aca
TV
54432020-04-07 Tom de Vries <tdevries@suse.de>
5444
5445 PR symtab/25796
5446 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5447 (partial_die_info::fixup): Inherit has_const_value.
5448
5707e24b
TV
54492020-04-07 Tom de Vries <tdevries@suse.de>
5450
5451 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5452 symbols without address.
5453
05f00e22
KR
54542020-04-06 Kamil Rytarowski <n54@gmx.com>
5455
5456 * nbsd-nat.h (struct thread_info): Add forward declaration.
5457 (nbsd_nat_target::thread_alive): Add.
5458 (nbsd_nat_target::thread_name): Likewise.
5459 (nbsd_nat_target::update_thread_list): Likewise.
5460 (update_thread_list::post_attach): Likewise.
5461 (post_attach::pid_to_str): Likewise.
5462 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5463 (nbsd_thread_lister): Add.
5464 (nbsd_nat_target::thread_alive): Likewise.
5465 (nbsd_nat_target::thread_name): Likewise.
5466 (nbsd_add_threads): Likewise.
5467 (update_thread_list::post_attach): Likewise.
5468 (nbsd_nat_target::update_thread_list): Likewise.
5469 (post_attach::pid_to_str): Likewise.
5470
6ee448cc
TT
54712020-04-06 Tom Tromey <tromey@adacore.com>
5472
5473 * ada-valprint.c (print_variant_part): Extract the variant field.
5474 (print_field_values): Use the field as the outer value when
5475 recursing.
5476
dea34e8c
TT
54772020-04-06 Tom Tromey <tromey@adacore.com>
5478
5479 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5480 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5481 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5482 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5483 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5484
93689ce9
TT
54852020-04-06 Tom Tromey <tromey@adacore.com>
5486
5487 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5488 TYPE_CODE_ERROR.
5489
79743962
KR
54902020-04-06 Kamil Rytarowski <n54@gmx.com>
5491
5492 * nbsd-tdep.c: Include "gdbarch.h".
5493 Define enum with NetBSD signal numbers.
5494 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5495 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5496 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5497 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5498 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5499 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5500 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5501 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5502 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5503 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5504 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5505 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5506
9e7c9a03
HD
55072020-04-03 Hannes Domani <ssbssa@yahoo.de>
5508
5509 PR gdb/25325
5510 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5511
d9e49b61
TT
55122020-04-03 Tom Tromey <tromey@adacore.com>
5513
5514 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5515 Read constant block.
5516
e0fc5c3f
SM
55172020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5518
5519 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5520 (gdb_bfd_get_full_section_contents): New declaration.
5521 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5522 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5523 gdb_bfd_get_full_section_contents.
5524
e2ff18a0
SM
55252020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5526
5527 * exec.c (build_section_table): Replace internal_error with
5528 gdb_assert.
5529 (section_table_xfer_memory_partial): Likewise.
5530 * mdebugread.c (parse_partial_symbols): Likewise.
5531 * psymtab.c (lookup_partial_symbol): Likewise.
5532 * utils.c (wrap_here): Likewise.
5533
0830d301
TT
55342020-04-02 Tom Tromey <tromey@adacore.com>
5535
5536 * f-lang.c (build_fortran_types): Use arch_type to initialize
5537 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5538
e7da7f8f
TT
55392020-04-02 Tom Tromey <tromey@adacore.com>
5540
5541 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5542 of attributes.
5543
c90d28ac
AB
55442020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5545 Bernd Edlinger <bernd.edlinger@hotmail.de>
5546 Tom Tromey <tromey@adacore.com>
5547
5548 * buildsym.c (buildsym_compunit::record_line): Remove
5549 deduplication code.
5550
1aa98955
TV
55512020-04-02 Tom de Vries <tdevries@suse.de>
5552
5553 PR ada/24671
5554 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5555
d3214198
TV
55562020-04-02 Tom de Vries <tdevries@suse.de>
5557
5558 * dwarf2/read.c (dwarf2_gdb_index_functions,
5559 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5560 NULL.
5561 * psymtab.c (psym_lookup_global_symbol_language): New function.
5562 (psym_functions): Init psym_lookup_global_symbol_language with
5563 psym_lookup_global_symbol_language.
5564 * symfile-debug.c (debug_sym_quick_functions): Init
5565 lookup_global_symbol_language with NULL.
5566 * symfile.c (set_initial_language): Remove fixme comment.
5567 * symfile.h (struct quick_symbol_functions): Add
5568 lookup_global_symbol_language.
5569 * symtab.c (find_quick_global_symbol_language): New function.
5570 (find_main_name): Use find_quick_global_symbol_language.
5571
2836752f
SM
55722020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5573
5574 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5575
64dc2d4b
BE
55762020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5577
5578 * buildsym.c (record_line): Fix undefined behavior and preserve
5579 lines at eof.
5580
bbe3dc41
BE
55812020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5582
5583 * buildsym.c (record_line): Fix the resizing condition.
5584
6b4a335b
TT
55852020-04-01 Tom Tromey <tom@tromey.com>
5586
5587 * value.h (value_literal_complex): Add comment.
5588 * valops.c (value_literal_complex): Refer to value.h.
5589
3638a098
TT
55902020-04-01 Tom Tromey <tom@tromey.com>
5591
5592 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5593 (scalar_type): New rule, from typebase.
5594 (typebase): Use scalar_type. Recognize complex types.
5595 (field_name): Handle FLOAT_KEYWORD.
5596 (ident_tokens): Add _Complex and __complex__.
5597
c34e8714
TT
55982020-04-01 Tom Tromey <tom@tromey.com>
5599
5600 PR exp/25299:
5601 * valarith.c (promotion_type, complex_binop): New functions.
5602 (scalar_binop): Handle complex numbers. Use promotion_type.
5603 (value_pos, value_neg, value_complement): Handle complex numbers.
5604
fa649bb7
TT
56052020-04-01 Tom Tromey <tom@tromey.com>
5606
5607 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5608 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5609 (parse_number): Handle complex numbers.
5610
981c08ce
TT
56112020-04-01 Tom Tromey <tom@tromey.com>
5612
5613 * c-valprint.c (c_decorations): Change complex suffix to "i".
5614
4c99290d
TT
56152020-04-01 Tom Tromey <tom@tromey.com>
5616
5617 * valprint.c (generic_value_print_complex): Use accessors.
5618 * value.h (value_real_part, value_imaginary_part): Declare.
5619 * valops.c (value_real_part, value_imaginary_part): New
5620 functions.
5621 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5622
5b930b45
TT
56232020-04-01 Tom Tromey <tom@tromey.com>
5624
5625 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5626 (read_range_type): Update.
5627 * mdebugread.c (basic_type): Update.
5628 * go-lang.c (build_go_types): Use init_complex_type.
5629 * gdbtypes.h (struct main_type) <complex_type>: New member.
5630 (init_complex_type): Update.
5631 (arch_complex_type): Don't declare.
5632 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5633 Make name if none given. Use alloc_type_copy. Look for cached
5634 complex type.
5635 (arch_complex_type): Remove.
5636 (gdbtypes_post_init): Use init_complex_type.
5637 * f-lang.c (build_fortran_types): Use init_complex_type.
5638 * dwarf2/read.c (read_base_type): Update.
5639 * d-lang.c (build_d_types): Use init_complex_type.
5640 * ctfread.c (read_base_type): Update.
5641
53cccef1
TBA
56422020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5643
5644 * infrun.c (stop_all_threads): Update assertion, plus when
5645 stopping threads, take into account that we might be trying
5646 to stop an all-stop target.
5647 (stop_waiting): Call 'stop_all_threads' if there exists a
5648 non-stop target.
5649
a0714d30
TBA
56502020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5651
5652 * target.h (exists_non_stop_target): New function declaration.
5653 * target.c (exists_non_stop_target): New function.
5654
60e22c1e
HD
56552020-04-01 Hannes Domani <ssbssa@yahoo.de>
5656
5657 PR gdb/24789
5658 * eval.c (is_integral_or_integral_reference): New function.
5659 (evaluate_subexp_standard): Allow integer references in
5660 pointer arithmetic.
5661
e139a727
TBA
56622020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5663
5664 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5665 check for no ptid in the stop reply when the target is non-stop.
5666
e0802d59
TT
56672020-04-01 Tom Tromey <tromey@adacore.com>
5668
5669 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5670 "name" parameter to rvalue reference. Initialize m_name_holder.
5671 <lookup_name_info>: New overloads.
5672 <name>: Return gdb::string_view.
5673 <c_str>: New method.
5674 <make_ignore_params>: Update.
5675 <search_name_hash>: Update.
5676 <language_lookup_name>: Return const char *.
5677 <m_name>: Change type.
5678 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5679 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5680 (lookup_name_info::match_any): Update.
5681 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5682 Update.
5683 * minsyms.c (linkage_name_str): Update.
5684 * language.c (default_symbol_name_matcher): Update.
5685 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5686 Update.
5687 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5688 (ada_lookup_name_info::ada_lookup_name_info): Update.
5689 (literal_symbol_name_matcher): Update.
5690
8c072cb6
TT
56912020-04-01 Tom Tromey <tromey@adacore.com>
5692
5693 * psymtab.c (psymtab_search_name): Remove function.
5694 (psym_lookup_symbol): Create search name and lookup name here.
5695 (lookup_partial_symbol): Remove "name" parameter; add
5696 lookup_name.
5697 (psym_expand_symtabs_for_function): Update.
5698
6f29a534
TT
56992020-03-31 Joel Jones <joelkevinjones@gmail.com>
5700
5701 PR tui/25597:
5702 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5703
af62665e
TT
57042020-03-31 Tom Tromey <tromey@adacore.com>
5705
5706 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5707 memcpy.
5708
d1a89da5
NC
57092020-03-30 Nelson Chu <nelson.chu@sifive.com>
5710
5711 * features/riscv/32bit-csr.xml: Regenerated.
5712 * features/riscv/64bit-csr.xml: Regenerated.
5713
d8af9068
TT
57142020-03-30 Tom Tromey <tromey@adacore.com>
5715
5716 * ada-valprint.c (print_variant_part): Update.
5717 * ada-lang.h (ada_which_variant_applies): Update.
5718 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5719 outer_valaddr parameters; replace with "outer" value parameter.
5720 (to_fixed_variant_branch_type): Update.
5721
227c0bf4
PFC
57222020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5723
5724 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5725 <list>. Remove inclusion of observable.h.
5726 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5727 (struct arch_lwp_info): New struct.
5728 (class ppc_linux_dreg_interface): New class.
5729 (struct ppc_linux_process_info): New struct.
5730 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5731 <low_new_clone, low_forget_process, low_prepare_to_resume>
5732 <copy_thread_dreg_state, mark_thread_stale>
5733 <mark_debug_registers_changed, register_hw_breakpoint>
5734 <clear_hw_breakpoint, register_wp, clear_wp>
5735 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5736 <num_memory_accesses, get_trigger_type>
5737 <create_watchpoint_request, hwdebug_point_cmp>
5738 <init_arch_lwp_info, get_arch_lwp_info>
5739 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5740 methods.
5741 <struct ptid_hash>: New inner struct.
5742 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5743 members.
5744 (saved_dabr_value, hwdebug_info, max_slots_number)
5745 (struct hw_break_tuple, struct thread_points, ppc_threads)
5746 (have_ptrace_hwdebug_interface)
5747 (hwdebug_find_thread_points_by_tid)
5748 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5749 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5750 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5751 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5752 use m_dreg_interface.
5753 (hwdebug_point_cmp): Change to...
5754 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5755 reference arguments instead of pointers.
5756 (ppc_linux_nat_target::ranged_break_num_registers): Use
5757 m_dreg_interface.
5758 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5759 m_dreg_interface. Call register_hw_breakpoint.
5760 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5761 m_dreg_interface. Call clear_hw_breakpoint.
5762 (get_trigger_type): Change to...
5763 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5764 comment.
5765 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5766 use m_dreg_interface. Call register_hw_breakpoint.
5767 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5768 use m_dreg_interface. Call clear_hw_breakpoint.
5769 (can_use_watchpoint_cond_accel): Change to...
5770 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5771 method. Update comment, use m_dreg_interface and
5772 m_process_info.
5773 (calculate_dvc): Change to...
5774 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5775 m_dreg_interface.
5776 (num_memory_accesses): Change to...
5777 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5778 (check_condition): Change to...
5779 (ppc_linux_nat_target::check_condition): ...this method.
5780 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5781 comment, use m_dreg_interface.
5782 (create_watchpoint_request): Change to...
5783 (ppc_linux_nat_target::create_watchpoint_request): ...this
5784 method. Use m_dreg_interface.
5785 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5786 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5787 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5788 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5789 (ppc_linux_nat_target::low_forget_process)
5790 (ppc_linux_nat_target::low_new_fork)
5791 (ppc_linux_nat_target::low_new_clone)
5792 (ppc_linux_nat_target::low_delete_thread)
5793 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5794 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5795 only call mark_thread_stale.
5796 (ppc_linux_thread_exit): Remove.
5797 (ppc_linux_nat_target::stopped_data_address): Change to...
5798 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5799 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5800 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5801 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5802 comment. Call low_stopped_data_address.
5803 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5804 m_dreg_interface.
5805 (ppc_linux_nat_target::masked_watch_num_registers): Use
5806 m_dreg_interface.
5807 (ppc_linux_nat_target::copy_thread_dreg_state)
5808 (ppc_linux_nat_target::mark_thread_stale)
5809 (ppc_linux_nat_target::mark_debug_registers_changed)
5810 (ppc_linux_nat_target::register_hw_breakpoint)
5811 (ppc_linux_nat_target::clear_hw_breakpoint)
5812 (ppc_linux_nat_target::register_wp)
5813 (ppc_linux_nat_target::clear_wp)
5814 (ppc_linux_nat_target::init_arch_lwp_info)
5815 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5816 (_initialize_ppc_linux_nat): Remove observer callback.
5817
4db10d8f
PFC
58182020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5819
5820 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5821 (ppc_linux_nat_target::auxv_parse)
5822 (ppc_linux_nat_target::read_description)
5823 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5824 Move up.
5825
1310c1b0
PFC
58262020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5827
5828 * linux-nat.h (low_new_clone): New method.
5829 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5830
69b037c3
SM
58312020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5832
5833 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5834 (dbx_expand_psymtab): ... this.
5835 (start_psymtab): Update.
5836 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5837 (mdebug_expand_psymtab): ... this.
5838 (parse_partial_symbols): Update.
5839 (new_psymtab): Update.
5840 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5841 (xcoff_expand_psymtab): ... this.
5842 (xcoff_start_psymtab): Update.
5843
48993951
SM
58442020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5845
5846 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5847 <expand_dependencies>: ... this.
5848 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5849 (partial_symtab::expand_dependencies): ... this.
5850 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5851 Update.
5852 (dwarf2_psymtab::expand_psymtab): Update.
5853 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5854 * mdebugread.c (psymtab_to_symtab_1): Update.
5855 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5856
3ad83046
SM
58572020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5858
5859 * psympriv.h (discard_psymtab): Remove.
5860 * dbxread.c (dbx_end_psymtab): Update.
5861 * xcoffread.c (xcoff_end_psymtab): Update.
5862
4d1b9ab6
TT
58632020-03-28 Tom Tromey <tom@tromey.com>
5864
5865 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5866 comment.
5867
f1749218
TT
58682020-03-28 Tom Tromey <tom@tromey.com>
5869
5870 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5871
ebea7626
HD
58722020-03-27 Hannes Domani <ssbssa@yahoo.de>
5873
5874 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5875
a879b4d5
JB
58762020-03-26 John Baldwin <jhb@FreeBSD.org>
5877
5878 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5879
0826b30a
TT
58802020-03-26 Tom Tromey <tom@tromey.com>
5881
5882 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5883 (mark_common_block_symbol_computed, read_tag_string_type)
5884 (attr_to_dynamic_prop, read_subrange_type): Update.
5885 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5886 to be methods on struct attribute.
5887 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5888 (read_call_site_scope, partial_die_info::read)
5889 (partial_die_info::read, lookup_die_type, follow_die_ref):
5890 Update.
5891 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5892 from dwarf2_get_ref_die_offset.
5893 (attribute::constant_value): New method, from
5894 dwarf2_get_attr_constant_value.
5895 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5896 Declare method.
5897 <constant_value>: New method.
5898
2b2558bf
TT
58992020-03-26 Tom Tromey <tom@tromey.com>
5900
5901 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5902 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5903 (dwarf_type_encoding_name): Move to stringify.c.
5904 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5905 * dwarf2/stringify.c: New file.
5906 * dwarf2/stringify.h: New file.
5907
eeb64781
TT
59082020-03-26 Tom Tromey <tom@tromey.com>
5909
5910 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5911 Rewrite.
5912
a39fdb41
TT
59132020-03-26 Tom Tromey <tom@tromey.com>
5914
5915 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5916 methods.
5917 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5918 (lookup_ranges_base): Likewise.
5919 (read_cutu_die_from_dwo, read_full_die_1): Update.
5920
436c571c
TT
59212020-03-26 Tom Tromey <tom@tromey.com>
5922
5923 * dwarf2/read.c (read_import_statement, read_file_scope)
5924 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5925 (read_lexical_block_scope, read_call_site_scope)
5926 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5927 (handle_struct_member_die, process_structure_scope)
5928 (update_enumeration_type_from_children)
5929 (process_enumeration_scope, read_array_type, read_common_block)
5930 (read_namespace, read_module, read_subroutine_type): Update.
5931 (sibling_die): Remove.
5932
052c8bb8
TT
59332020-03-26 Tom Tromey <tom@tromey.com>
5934
5935 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5936 (build_type_psymtabs_reader, read_structure_type)
5937 (read_enumeration_type, read_full_die_1): Update.
5938 (dwarf2_attr_no_follow): Move to die.h.
5939 * dwarf2/die.h (struct die_info) <attr>: New method.
5940
2b24b6e4
TT
59412020-03-26 Tom Tromey <tom@tromey.com>
5942
5943 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5944 <base_address>: Now an optional.
5945 (dwarf2_find_base_address, dwarf2_rnglists_process)
5946 (dwarf2_ranges_process, fill_in_loclist_baton)
5947 (dwarf2_symbol_mark_computed): Update.
5948
c2d50fd0
TT
59492020-03-26 Tom Tromey <tom@tromey.com>
5950
5951 * dwarf2/read.c (struct die_info): Move to die.h.
5952 * dwarf2/die.h: New file.
5953
0df7ad3a
TT
59542020-03-26 Tom Tromey <tom@tromey.com>
5955
5956 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5957 * dwarf2/read.c
5958 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5959 Move to line-header.c.
5960 (read_checked_initial_length_and_offset, read_formatted_entries):
5961 Likewise.
5962 (dwarf_decode_line_header): Split into two.
5963 * dwarf2/line-header.c
5964 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5965 Move from read.c.
5966 (read_checked_initial_length_and_offset, read_formatted_entries):
5967 Likewise.
5968 (dwarf_decode_line_header): New function, split from read.c.
5969
86c0bb4c
TT
59702020-03-26 Tom Tromey <tom@tromey.com>
5971
5972 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5973 Declare method.
5974 * dwarf2/read.c (read_attribute_value): Update.
5975 (dwarf2_per_objfile::read_line_string): Rename from
5976 read_indirect_line_string.
5977 (read_formatted_entries): Update.
5978
2ef46c2f
TT
59792020-03-26 Tom Tromey <tom@tromey.com>
5980
5981 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5982 variable.
5983
4f9c1eda
TT
59842020-03-26 Tom Tromey <tom@tromey.com>
5985
5986 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5987 const.
5988 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5989 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5990 parameter const.
5991
5a0e026f
TT
59922020-03-26 Tom Tromey <tom@tromey.com>
5993
5994 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5995 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5996 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5997 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5998
8844c11b
TT
59992020-03-26 Tom Tromey <tom@tromey.com>
6000
6001 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6002 file_names_size, file_full_name, file_file_name>: Use const.
6003 <file_name_at, file_names>: Add const overload.
6004 * dwarf2/line-header.c (line_header::file_file_name)
6005 (line_header::file_full_name): Update.
6006
c90ec28a
TT
60072020-03-26 Tom Tromey <tom@tromey.com>
6008
6009 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6010 (macro_start_file, consume_improper_spaces)
6011 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6012 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6013 (dwarf_decode_macros): Move to macro.c.
6014 * dwarf2/macro.c: New file.
6015 * dwarf2/macro.h: New file.
6016 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6017
4f44ae6c
TT
60182020-03-26 Tom Tromey <tom@tromey.com>
6019
6020 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6021 method.
6022 * dwarf2/section.c: New method. From
6023 read_indirect_string_at_offset_from.
6024 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6025 (read_indirect_string_at_offset_from): Move to section.c.
6026 (read_indirect_string_at_offset): Rewrite.
6027 (read_indirect_line_string_at_offset): Remove.
6028 (read_indirect_string, read_indirect_line_string)
6029 (dwarf_decode_macro_bytes): Update.
6030
a0194fa8
TT
60312020-03-26 Tom Tromey <tom@tromey.com>
6032
6033 * dwarf2/section.h (struct dwarf2_section_info)
6034 <overload_complaint>: Declare.
6035 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6036 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6037 Rename from dwarf2_section_buffer_overflow_complaint.
6038 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6039 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6040
3d27bbdb
TT
60412020-03-26 Tom Tromey <tom@tromey.com>
6042
6043 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6044 Declare.
6045 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6046 Move from read.c.
6047 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6048 to section.c.
6049
9eac9650
TT
60502020-03-26 Tom Tromey <tom@tromey.com>
6051
6052 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6053
bf80d710
TT
60542020-03-26 Tom Tromey <tom@tromey.com>
6055
6056 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6057 "builder".
6058 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6059 parameter.
6060 (dwarf_decode_macros): Update.
6061
0314b390
TT
60622020-03-26 Tom Tromey <tom@tromey.com>
6063
6064 * dwarf2/read.c (read_attribute_value): Update.
6065 (read_indirect_string_from_dwz): Move to dwz.c; change into
6066 method.
6067 (dwarf_decode_macro_bytes): Update.
6068 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6069 * dwarf2/dwz.c: New file.
6070 * Makefile.in (COMMON_SFILES): Add dwz.c.
6071
9fda78b6
TT
60722020-03-26 Tom Tromey <tom@tromey.com>
6073
6074 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6075 * dwarf2/read.c: Add include.
6076 * dwarf2/index-write.c: Add include.
6077 * dwarf2/index-cache.c: Add include.
6078 * dwarf2/dwz.h: New file.
6079
33aa3c10
TT
60802020-03-25 Tom Tromey <tom@tromey.com>
6081
6082 * compile/compile-object-load.c (get_out_value_type): Mention
6083 correct symbol name in error message.
6084
d503b685
HD
60852020-03-25 Hannes Domani <ssbssa@yahoo.de>
6086
6087 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6088
7b1eff95
TV
60892020-03-25 Tom de Vries <tdevries@suse.de>
6090
6091 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6092 * symmisc.c (dump_symtab_1): Print user and includes fields.
6093 (maintenance_info_symtabs): Same.
6094
dd895392
AB
60952020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6096
6097 PR gdb/25534
6098 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6099 (riscv_regcache_cooked_write): New function.
6100 (riscv_push_dummy_call): Use new function.
6101 (riscv_return_value): Likewise.
6102
5ab2fbf1
SM
61032020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6104
6105 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6106 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6107 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6108 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6109 * infrun.c (follow_fork): Likewise.
6110 (follow_fork_inferior): Likewise.
6111 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6112 * linux-nat.h (class linux_nat_target): Likewise.
6113 * remote.c (class remote_target) <follow_fork>: Likewise.
6114 (remote_target::follow_fork): Likewise.
6115 * target-delegates.c: Re-generate.
6116 * target.c (default_follow_fork): Likewise.
6117 (target_follow_fork): Likewise.
6118 * target.h (struct target_ops) <follow_fork>: Likewise.
6119 (target_follow_fork): Likewise.
6120
a64fafb5
TV
61212020-03-24 Tom de Vries <tdevries@suse.de>
6122
6123 * psymtab.c (maintenance_info_psymtabs): Print user field.
6124
fe26d3a3
TT
61252020-03-20 Tom Tromey <tromey@adacore.com>
6126
6127 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6128 const.
6129 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6130 const.
6131
c884cc46
SM
61322020-03-20 Simon Marchi <simon.marchi@efficios.com>
6133
6134 * ptrace.m4: Don't check for ptrace declaration.
6135 * config.in: Re-generate.
6136 * configure: Re-generate.
6137 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6138 not defined.
6139
1ff700c2
KR
61402020-03-20 Kamil Rytarowski <n54@gmx.com>
6141
6142 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6143 `PTRACE_TYPE_RET'.
6144 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6145 * sparc-nat.c (gdb_ptrace): Likewise.
6146 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6147
f7d4f0b1
TT
61482020-03-20 Tom Tromey <tromey@adacore.com>
6149
6150 * c-exp.y (lex_one_token): Fix assert.
6151
f67210ff
TT
61522020-03-20 Tom Tromey <tromey@adacore.com>
6153
6154 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6155 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6156 strncpy call.
6157
1773be9e
TT
61582020-03-20 Tom Tromey <tromey@adacore.com>
6159
6160 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6161
70304be9
TT
61622020-03-20 Tom Tromey <tromey@adacore.com>
6163
6164 * ada-valprint.c (print_variant_part): Remove parameters; switch
6165 to value-based API.
6166 (print_field_values): Likewise.
6167 (ada_val_print_struct_union): Likewise.
6168 (ada_value_print_1): Update.
6169
9faa006d
KR
61702020-03-20 Kamil Rytarowski <n54@gmx.com>
6171
6172 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6173 nbsd_nat_target instead of inf_ptrace_target.
6174 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6175 nbsd_nat_target.
6176
4a90f062
KR
61772020-03-20 Kamil Rytarowski <n54@gmx.com>
6178
6179 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6180 it to the ptrace call.
6181 * (store_registers): Likewise.
6182
61832020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6184
6185 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6186 it to the ptrace call.
6187 * (store_registers): Likewise.
6188
2d07da27
LM
61892020-03-19 Luis Machado <luis.machado@linaro.org>
6190
6191 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6192 valid, fetch vg value from ptrace.
6193
f09db380
KR
61942020-03-19 Kamil Rytarowski <n54@gmx.com>
6195 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6196 * inf-ptrace.c: Likewise.
6197 * (gdb_ptrace): Add.
6198 * (inf_ptrace_target::resume): Update.
6199 * (inf_ptrace_target::xfer_partial): Likewise.
6200 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6201 * (inf_ptrace_peek_poke): Update.
6202
fcc7376e
KR
62032020-03-19 Kamil Rytarowski <n54@gmx.com>
6204
6205 * x86-bsd-nat.c (gdb_ptrace): New.
6206 * (x86bsd_dr_set): Add new argument `ptid'.
6207 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6208 x86bsd_dr_set_addr): Update.
6209
cada5fc9
AB
62102020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6211
6212 * remote.c (remote_target::process_stop_reply): Handle events for
6213 all threads differently.
6214
19a2740f
AB
62152020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6216
6217 * completer.c (completion_tracker::remove_completion): Define new
6218 function.
6219 * completer.h (completion_tracker::remove_completion): Declare new
6220 function.
6221 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6222 when adding a C++ function symbol.
6223
724fd9ba
AB
62242020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6225
6226 * completer.c (completion_tracker::completion_hash_entry): Define
6227 new class.
6228 (advance_to_filename_complete_word_point): Call
6229 recompute_lowest_common_denominator.
6230 (completion_tracker::completion_tracker): Call discard_completions
6231 to setup the hash table.
6232 (completion_tracker::discard_completions): Allow for being called
6233 from the constructor, pass new equal function, and element deleter
6234 when constructing the hash table. Initialise new class member
6235 variables.
6236 (completion_tracker::maybe_add_completion): Remove use of
6237 m_entries_vec, and store more information into m_entries_hash.
6238 (completion_tracker::recompute_lcd_visitor): New function, most
6239 content taken from...
6240 (completion_tracker::recompute_lowest_common_denominator):
6241 ...here, this now just visits each item in the hash calling the
6242 above visitor.
6243 (completion_tracker::build_completion_result): Remove use of
6244 m_entries_vec, call recompute_lowest_common_denominator.
6245 * completer.h (completion_tracker::have_completions): Remove use
6246 of m_entries_vec.
6247 (completion_tracker::completion_hash_entry): Declare new class.
6248 (completion_tracker::recompute_lowest_common_denominator): Change
6249 function signature.
6250 (completion_tracker::recompute_lcd_visitor): Declare new function.
6251 (completion_tracker::m_entries_vec): Delete.
6252 (completion_tracker::m_entries_hash): Initialize to NULL.
6253 (completion_tracker::m_lowest_common_denominator_valid): New
6254 member variable.
6255 (completion_tracker::m_lowest_common_denominator_max_length): New
6256 member variable.
6257
5a82b8a1
KR
62582020-03-17 Kamil Rytarowski <n54@gmx.com>
6259
6260 * regformats/regdef.h: Put reg in gdb namespace.
6261
fb516a69
KR
62622020-03-17 Kamil Rytarowski <n54@gmx.com>
6263
6264 * i386-bsd-nat.c (gdb_ptrace): New.
6265 * (i386bsd_fetch_inferior_registers,
6266 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6267 * (i386bsd_fetch_inferior_registers,
6268 i386bsd_store_inferior_registers) Use gdb_ptrace.
6269
1c0aa1fb
KR
62702020-03-17 Kamil Rytarowski <n54@gmx.com>
6271
6272 * amd64-bsd-nat.c (gdb_ptrace): New.
6273 * (amd64bsd_fetch_inferior_registers,
6274 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6275 * (amd64bsd_fetch_inferior_registers,
6276 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6277
5ccd2fb7
KR
62782020-03-17 Kamil Rytarowski <n54@gmx.com>
6279
6280 * user-regs.c (user_reg::read): Rename to...
6281 (user_reg::xread): ...this.
6282 * (append_user_reg): Rename argument `read' to `xread'.
6283 * (user_reg_add_builtin): Likewise.
6284 * (user_reg_add): Likewise.
6285 * (value_of_user_reg): Likewise.
6286
2108a63a
KR
62872020-03-17 Kamil Rytarowski <n54@gmx.com>
6288
6289 * sparc-nat.c (gdb_ptrace): New.
6290 * sparc-nat.c (sparc_fetch_inferior_registers)
6291 (sparc_store_inferior_registers) Remove obsolete comment.
6292 * sparc-nat.c (sparc_fetch_inferior_registers)
6293 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6294 * sparc-nat.c (sparc_fetch_inferior_registers)
6295 (sparc_store_inferior_registers) Use gdb_ptrace.
6296
a225c9a8
KR
62972020-03-17 Kamil Rytarowski <n54@gmx.com>
6298
6299 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6300 it to the ptrace call.
6301 * sh-nbsd-nat.c (store_registers): Likewise.
6302
98097623
KR
63032020-03-17 Kamil Rytarowski <n54@gmx.com>
6304
6305 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6306 nbsd_nat_target instead of inf_ptrace_target.
6307 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6308 nbsd_nat_target.
6309
9e38d619
KR
63102020-03-17 Kamil Rytarowski <n54@gmx.com>
6311
6312 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6313
a2ecbe9f
KR
63142020-03-17 Kamil Rytarowski <n54@gmx.com>
6315
6316 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6317 <sys/sysctl.h>.
6318 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6319
58990295
TV
63202020-03-17 Tom de Vries <tdevries@suse.de>
6321
6322 PR gdb/23710
6323 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6324 fields.
6325 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6326 fields.
6327 (process_imported_unit_die): Skip import of c++ CUs.
6328
771dd3a8
TT
63292020-03-16 Tom Tromey <tom@tromey.com>
6330
6331 * p-valprint.c (pascal_object_print_value): Initialize
6332 base_value.
6333
817a7585
AK
63342020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6335 Shahab Vahedi <shahab@synopsys.com>
6336
6337 * Makefile.in: Add arch/arc.o
6338 * configure.tgt: Likewise.
6339 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6340 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6341 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6342 * arc-tdep.h (arc_read_description): Add proto type.
6343 * arch/arc.c: New file.
6344 * arch/arc.h: Likewise.
6345 * features/Makefile: Replace old target descriptions with new.
6346 * features/arc-arcompact.c: Remove.
6347 * features/arc-arcompact.xml: Likewise.
6348 * features/arc-v2.c: Likewise
6349 * features/arc-v2.xml: Likewise
6350 * features/arc/aux-arcompact.xml: New file.
6351 * features/arc/aux-v2.xml: Likewise.
6352 * features/arc/core-arcompact.xml: Likewise.
6353 * features/arc/core-v2.xml: Likewise.
6354 * features/arc/aux-arcompact.c: Generate.
6355 * features/arc/aux-v2.c: Likewise.
6356 * features/arc/core-arcompact.c: Likewise.
6357 * features/arc/core-v2.c: Likewise.
6358 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6359
67430cd0
TT
63602020-03-16 Tom Tromey <tromey@adacore.com>
6361
6362 PR gdb/25663:
6363 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6364 putting value into bcache.
6365
30efb6c7
SM
63662020-03-16 Simon Marchi <simon.marchi@efficios.com>
6367
6368 PR gdb/21500
6369 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6370 to...
6371 (amd64_windows_init_abi_common): ... this. Don't set size of
6372 long type.
6373 (amd64_windows_init_abi): New function.
6374 (amd64_cygwin_init_abi): New function.
6375 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6376 the Cygwin OS ABI.
6377 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6378 comment.
6379
8db52437
SM
63802020-03-16 Simon Marchi <simon.marchi@efficios.com>
6381
6382 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6383 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6384 (pe_import_directory_entry): New struct type.
6385 (is_linked_with_cygwin_dll): New function.
6386 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6387 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6388 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6389
5982a56a
SM
63902020-03-16 Simon Marchi <simon.marchi@efficios.com>
6391
6392 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6393 i386_cygwin_core_osabi_sniffer.
6394
7a1998df
SM
63952020-03-16 Simon Marchi <simon.marchi@efficios.com>
6396
6397 * i386-cygwin-tdep.c: Rename to...
6398 * i386-windows-tdep.c: ... this.
6399 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6400 i386-windows-tdep.c.
6401 * configure.tgt: Likewise.
6402
053205cc
SM
64032020-03-16 Simon Marchi <simon.marchi@efficios.com>
6404
6405 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6406 * osabi.c (gdb_osabi_names): Add "Windows".
6407 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6408 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6409 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6410 i386_cygwin_osabi_sniffer.
6411 (_initialize_i386_cygwin_tdep): Register OS ABI
6412 GDB_OSABI_WINDOWS for i386.
6413 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6414 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6415 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6416 for x86-64.
6417 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6418 when the target matches '*-*-mingw*'.
6419
fe4b2ee6
SM
64202020-03-16 Simon Marchi <simon.marchi@efficios.com>
6421
6422 * defs.h (enum gdb_osabi): Move to...
6423 * osabi.h (enum gdb_osabi): ... here.
6424 * gdbarch.sh: Include osabi.h in gdbarch.h.
6425 * gdbarch.h: Re-generate.
6426
cb9b645d
SM
64272020-03-16 Simon Marchi <simon.marchi@efficios.com>
6428
6429 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6430 function.
6431 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6432
3293bbaf
TT
64332020-03-14 Tom Tromey <tom@tromey.com>
6434
6435 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6436 for C++.
6437 (c_type_print_modifier): Likewise. Add "language" parameter.
6438 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6439 (c_type_print_base_1): Update.
6440 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6441 constants.
6442 * type-stack.c (type_stack::insert): Handle tp_atomic and
6443 tp_restrict.
6444 (type_stack::follow_type_instance_flags): Likewise.
6445 (type_stack::follow_types): Likewise. Merge type-following code.
6446 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6447 (space_identifier, cv_with_space_id)
6448 (const_or_volatile_or_space_identifier_noopt)
6449 (const_or_volatile_or_space_identifier): Remove.
6450 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6451 rules.
6452 (ptr_operator, typebase): Update.
6453 (enum token_flag) <FLAG_C>: New constant.
6454 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6455 "_Atomic".
6456 (lex_one_token): Handle FLAG_C.
6457
154151a6
KR
64582020-03-14 Kamil Rytarowski <n54@gmx.com>
6459
6460 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6461 it to the ptrace call.
6462 * m68k-bsd-nat.c (store_registers): Likewise.
6463
bc107784
KR
64642020-03-14 Kamil Rytarowski <n54@gmx.com>
6465
6466 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6467 gdb_byte *.
6468 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6469 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6470 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6471
01a80117
KR
64722020-03-14 Kamil Rytarowski <n54@gmx.com>
6473
6474 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6475 nbsd_nat_target instead of inf_ptrace_target.
6476 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6477 nbsd_nat_target.
6478
f90280ca
KR
64792020-03-14 Kamil Rytarowski <n54@gmx.com>
6480
6481 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6482 register_t.
6483
6def66f1
KR
64842020-03-14 Kamil Rytarowski <n54@gmx.com>
6485
6486 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6487 it to the ptrace call.
6488 * alpha-bsd-nat.c (store_registers): Likewise.
6489
66eaca97
KR
64902020-03-14 Kamil Rytarowski <n54@gmx.com>
6491
6492 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6493 includes.
6494 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6495 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6496 fill_fpregset): Likewise.
6497
4fed520b
KR
64982020-03-14 Kamil Rytarowski <n54@gmx.com>
6499
6500 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6501 nbsd_nat_target instead of inf_ptrace_target.
6502 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6503 nbsd_nat_target.
6504
2190cf06
KR
65052020-03-14 Kamil Rytarowski <n54@gmx.com>
6506
6507 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6508 register_t.
6509
75c56d3d
KR
65102020-03-14 Kamil Rytarowski <n54@gmx.com>
6511
6512 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6513 it to the ptrace call.
6514 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6515 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6516 * arm-nbsd-nat.c (store_register): Likewise.
6517 * arm-nbsd-nat.c (store_regs): Likewise.
6518 * arm-nbsd-nat.c (store_fp_register): Likewise.
6519 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6520
6018d381
KR
65212020-03-14 Kamil Rytarowski <n54@gmx.com>
6522
6523 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6524 nbsd_nat_target instead of inf_ptrace_target.
6525 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6526 nbsd_nat_target.
6527
013f99f0
KR
65282020-03-14 Kamil Rytarowski <n54@gmx.com>
6529
6530 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6531 it to the ptrace call.
6532 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6533
12753073
KR
65342020-03-14 Kamil Rytarowski <n54@gmx.com>
6535
6227b330
KR
6536 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6537 it to the ptrace call.
6538 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6539
65402020-03-14 Kamil Rytarowski <n54@gmx.com>
6541
6542 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6543 gdb_byte *.
12753073
KR
6544 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6545
d5be5fa4
KR
65462020-03-14 Kamil Rytarowski <n54@gmx.com>
6547
6548 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6549 instead of inf_ptrace_target.
6550 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6551 nbsd_nat_target.
6552
8110f842
KR
65532020-03-14 Kamil Rytarowski <n54@gmx.com>
6554
6555 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6556 register_t.
6557
52feded7
KR
65582020-03-14 Kamil Rytarowski <n54@gmx.com>
6559
6560 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6561 register_t.
6562
25567eee
KR
65632020-03-14 Kamil Rytarowski <n54@gmx.com>
6564
6565 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6566 register_t.
6567
426a9c18
TT
65682020-03-13 Tom Tromey <tom@tromey.com>
6569
6570 * value.h (val_print): Don't declare.
6571 * valprint.h (val_print_array_elements)
6572 (val_print_scalar_formatted, generic_val_print): Don't declare.
6573 * valprint.c (generic_val_print_array): Take a struct value.
6574 (generic_val_print_ptr, generic_val_print_memberptr)
6575 (generic_val_print_bool, generic_val_print_int)
6576 (generic_val_print_char, generic_val_print_complex)
6577 (generic_val_print): Remove.
6578 (generic_value_print): Update.
6579 (do_val_print): Remove unused parameters. Don't call
6580 la_val_print.
6581 (val_print): Remove.
6582 (common_val_print): Update. Don't call value_check_printable.
6583 (val_print_scalar_formatted, val_print_array_elements): Remove.
6584 * rust-lang.c (rust_val_print): Remove.
6585 (rust_language_defn): Update.
6586 * p-valprint.c (pascal_val_print): Remove.
6587 (pascal_value_print_inner): Update.
6588 (pascal_object_print_val_fields, pascal_object_print_val):
6589 Remove.
6590 (pascal_object_print_static_field): Update.
6591 * p-lang.h (pascal_val_print): Don't declare.
6592 * p-lang.c (pascal_language_defn): Update.
6593 * opencl-lang.c (opencl_language_defn): Update.
6594 * objc-lang.c (objc_language_defn): Update.
6595 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6596 * m2-lang.h (m2_val_print): Don't declare.
6597 * m2-lang.c (m2_language_defn): Update.
6598 * language.h (struct language_defn) <la_val_print>: Remove.
6599 * language.c (unk_lang_value_print_inner): Rename. Change
6600 argument types.
6601 (unknown_language_defn, auto_language_defn): Update.
6602 * go-valprint.c (go_val_print): Remove.
6603 * go-lang.h (go_val_print): Don't declare.
6604 * go-lang.c (go_language_defn): Update.
6605 * f-valprint.c (f_val_print): Remove.
6606 * f-lang.h (f_value_print): Don't declare.
6607 * f-lang.c (f_language_defn): Update.
6608 * d-valprint.c (d_val_print): Remove.
6609 * d-lang.h (d_value_print): Don't declare.
6610 * d-lang.c (d_language_defn): Update.
6611 * cp-valprint.c (cp_print_value_fields)
6612 (cp_print_value_fields_rtti, cp_print_value): Remove.
6613 (cp_print_static_field): Update.
6614 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6615 (c_val_print_struct, c_val_print_union, c_val_print_int)
6616 (c_val_print_memberptr, c_val_print): Remove.
6617 * c-lang.h (c_val_print_array, cp_print_value_fields)
6618 (cp_print_value_fields_rtti): Don't declare.
6619 * c-lang.c (c_language_defn, cplus_language_defn)
6620 (asm_language_defn, minimal_language_defn): Update.
6621 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6622 (ada_val_print_enum): Take a struct value.
6623 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6624 (ada_val_print): Remove.
6625 (ada_value_print_1): Update.
6626 (printable_val_type): Remove.
6627 * ada-lang.h (ada_val_print): Don't declare.
6628 * ada-lang.c (ada_language_defn): Update.
6629
42331a1e
TT
66302020-03-13 Tom Tromey <tom@tromey.com>
6631
6632 * valprint.c (do_val_print): Update.
6633 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6634 a struct value.
6635 (value_to_value_object_no_release): Declare.
6636 * python/py-value.c (value_to_value_object_no_release): New
6637 function.
6638 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6639 struct value.
6640 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6641 function.
6642 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6643 a struct value.
6644 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6645 Declare.
6646 (gdbscm_apply_val_pretty_printer): Take a struct value.
6647 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6648 value.
6649 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6650 value.
6651 * extension-priv.h (struct extension_language_ops)
6652 <apply_val_pretty_printer>: Take a struct value.
6653 * cp-valprint.c (cp_print_value): Create a struct value.
6654 (cp_print_value): Update.
6655
3a916a97
TT
66562020-03-13 Tom Tromey <tom@tromey.com>
6657
6658 * ada-valprint.c (print_field_values): Call common_val_print.
6659
b59eac37
TT
66602020-03-13 Tom Tromey <tom@tromey.com>
6661
6662 * ada-valprint.c (val_print_packed_array_elements): Remove
6663 bitoffset and val parameters. Call common_val_print.
6664 (ada_val_print_string): Remove offset, address, and original_value
6665 parameters.
6666 (ada_val_print_array): Update.
6667 (ada_value_print_array): New function.
6668 (ada_value_print_1): Call it.
6669
03371129
TT
66702020-03-13 Tom Tromey <tom@tromey.com>
6671
6672 * ada-valprint.c (ada_value_print): Use common_val_print.
6673
2e088f8b
TT
66742020-03-13 Tom Tromey <tom@tromey.com>
6675
6676 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6677
39ef85a8
TT
66782020-03-13 Tom Tromey <tom@tromey.com>
6679
6680 * ada-valprint.c (ada_value_print_num): New function.
6681 (ada_value_print_1): Use it.
6682
b9fa6e07
TT
66832020-03-13 Tom Tromey <tom@tromey.com>
6684
6685 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6686
416595d6
TT
66872020-03-13 Tom Tromey <tom@tromey.com>
6688
6689 * ada-valprint.c (ada_value_print_ptr): New function.
6690 (ada_value_print_1): Use it.
6691
5b5e15ec
TT
66922020-03-13 Tom Tromey <tom@tromey.com>
6693
6694 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6695 call common_val_print.
6696 (ada_val_print_1): Update.
6697 (ada_value_print_1): New function.
6698 (ada_value_print_inner): Rewrite.
6699
fbf54e75
TT
67002020-03-13 Tom Tromey <tom@tromey.com>
6701
6702 * cp-valprint.c (cp_print_value_fields): Update.
6703 (cp_print_value): New function.
6704
64b653ca
TT
67052020-03-13 Tom Tromey <tom@tromey.com>
6706
6707 * m2-valprint.c (m2_value_print_inner): Use
6708 cp_print_value_fields.
6709 * cp-valprint.c (cp_print_value_fields): New function.
6710 * c-valprint.c (c_value_print_struct): New function.
6711 (c_value_print_inner): Use c_value_print_struct.
6712 * c-lang.h (cp_print_value_fields): Declare.
6713
6999f067
TT
67142020-03-13 Tom Tromey <tom@tromey.com>
6715
6716 * c-valprint.c (c_value_print_array): New function.
6717 (c_value_print_inner): Use it.
6718
ce80b8bd
TT
67192020-03-13 Tom Tromey <tom@tromey.com>
6720
6721 * c-valprint.c (c_value_print_memberptr): New function.
6722 (c_value_print_inner): Use it.
6723
2faac269
TT
67242020-03-13 Tom Tromey <tom@tromey.com>
6725
6726 * c-valprint.c (c_value_print_int): New function.
6727 (c_value_print_inner): Use it.
6728
da3e2c29
TT
67292020-03-13 Tom Tromey <tom@tromey.com>
6730
6731 * c-valprint.c (c_value_print_ptr): New function.
6732 (c_value_print_inner): Use it.
6733
50836231
TT
67342020-03-13 Tom Tromey <tom@tromey.com>
6735
6736 * c-valprint.c (c_value_print_inner): Rewrite.
6737
4f412b6e
TT
67382020-03-13 Tom Tromey <tom@tromey.com>
6739
6740 * valprint.c (generic_value_print_complex): New function.
6741 (generic_value_print): Use it.
6742
f5354008
TT
67432020-03-13 Tom Tromey <tom@tromey.com>
6744
6745 * valprint.c (generic_val_print_float): Don't call
6746 val_print_scalar_formatted.
6747 (generic_val_print, generic_value_print): Update.
6748
3eec3b05
TT
67492020-03-13 Tom Tromey <tom@tromey.com>
6750
6751 * valprint.c (generic_value_print_char): New function
6752 (generic_value_print): Use it.
6753
fdddfccb
TT
67542020-03-13 Tom Tromey <tom@tromey.com>
6755
6756 * valprint.c (generic_value_print_int): New function.
6757 (generic_value_print): Use it.
6758
6dde7521
TT
67592020-03-13 Tom Tromey <tom@tromey.com>
6760
6761 * valprint.c (generic_value_print_bool): New function.
6762 (generic_value_print): Use it.
6763
4112d2e6
TT
67642020-03-13 Tom Tromey <tom@tromey.com>
6765
6766 * valprint.c (generic_val_print_func): Simplify.
6767 (generic_val_print, generic_value_print): Update.
6768
65786af6
TT
67692020-03-13 Tom Tromey <tom@tromey.com>
6770
6771 * valprint.c (generic_val_print_flags): Remove.
6772 (generic_val_print, generic_value_print): Update.
6773 (val_print_type_code_flags): Add original_value parameter.
6774
40f3ce18
TT
67752020-03-13 Tom Tromey <tom@tromey.com>
6776
6777 * valprint.c (generic_val_print): Update.
6778 (generic_value_print): Update.
6779 * valprint.c (generic_val_print_enum): Don't call
6780 val_print_scalar_formatted.
6781
2a5b130b
TT
67822020-03-13 Tom Tromey <tom@tromey.com>
6783
6784 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6785 * valprint.c (generic_value_print_ptr): New function.
6786
abc66ce9
TT
67872020-03-13 Tom Tromey <tom@tromey.com>
6788
6789 * valprint.c (generic_value_print): Rewrite.
6790
07a32858
TT
67912020-03-13 Tom Tromey <tom@tromey.com>
6792
6793 * p-valprint.c (pascal_object_print_value_fields)
6794 (pascal_object_print_value): New functions.
6795
64d64d3a
TT
67962020-03-13 Tom Tromey <tom@tromey.com>
6797
6798 * p-valprint.c (pascal_value_print_inner): Rewrite.
6799
6a95a1f5
TT
68002020-03-13 Tom Tromey <tom@tromey.com>
6801
6802 * f-valprint.c (f_value_print_innner): Rewrite.
6803
59fcdac6
TT
68042020-03-13 Tom Tromey <tom@tromey.com>
6805
6806 * m2-valprint.c (m2_print_unbounded_array): New overload.
6807 (m2_print_unbounded_array): Update.
6808 (m2_print_array_contents): Take a struct value.
6809 (m2_value_print_inner): Rewrite.
6810
d133c3e1
TT
68112020-03-13 Tom Tromey <tom@tromey.com>
6812
6813 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6814 (d_value_print_inner): New function.
6815 * d-lang.h (d_value_print_inner): Declare.
6816 * d-lang.c (d_language_defn): Use d_value_print_inner.
6817
23b0f06b
TT
68182020-03-13 Tom Tromey <tom@tromey.com>
6819
6820 * go-valprint.c (go_value_print_inner): New function.
6821 * go-lang.h (go_value_print_inner): Declare.
6822 * go-lang.c (go_language_defn): Use go_value_print_inner.
6823
5f56f7cb
TT
68242020-03-13 Tom Tromey <tom@tromey.com>
6825
6826 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6827 API.
6828 (rust_val_print): Rewrite.
6829 (rust_value_print_inner): New function, from rust_val_print.
6830 (rust_language_defn): Use rust_value_print_inner.
6831
26792ee0
TT
68322020-03-13 Tom Tromey <tom@tromey.com>
6833
6834 * ada-valprint.c (ada_value_print_inner): New function.
6835 * ada-lang.h (ada_value_print_inner): Declare.
6836 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6837
24051bbe
TT
68382020-03-13 Tom Tromey <tom@tromey.com>
6839
6840 * f-valprint.c (f_value_print_innner): New function.
6841 * f-lang.h (f_value_print_innner): Declare.
6842 * f-lang.c (f_language_defn): Use f_value_print_innner.
6843
c0941be6
TT
68442020-03-13 Tom Tromey <tom@tromey.com>
6845
6846 * p-valprint.c (pascal_value_print_inner): New function.
6847 * p-lang.h (pascal_value_print_inner): Declare.
6848 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6849
62c4663d
TT
68502020-03-13 Tom Tromey <tom@tromey.com>
6851
6852 * m2-valprint.c (m2_value_print_inner): New function.
6853 * m2-lang.h (m2_value_print_inner): Declare.
6854 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6855
62182190
TT
68562020-03-13 Tom Tromey <tom@tromey.com>
6857
6858 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6859 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6860 * c-valprint.c (c_value_print_inner): New function.
6861 * c-lang.h (c_value_print_inner): Declare.
6862 * c-lang.c (c_language_defn, cplus_language_defn)
6863 (asm_language_defn, minimal_language_defn): Use
6864 c_value_print_inner.
6865
1e592a8a
TT
68662020-03-13 Tom Tromey <tom@tromey.com>
6867
6868 * p-valprint.c (pascal_object_print_value_fields): Now static.
6869 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6870
7fe471e9
TT
68712020-03-13 Tom Tromey <tom@tromey.com>
6872
6873 * c-valprint.c (c_val_print_array): Simplify.
6874
d121c6ce
TT
68752020-03-13 Tom Tromey <tom@tromey.com>
6876
6877 * valprint.c (value_print_array_elements): New function.
6878 * valprint.h (value_print_array_elements): Declare.
6879
4dba70ee
TT
68802020-03-13 Tom Tromey <tom@tromey.com>
6881
6882 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6883 * mips-tdep.c (mips_print_register): Use
6884 value_print_scalar_formatted.
6885
4f9ae810
TT
68862020-03-13 Tom Tromey <tom@tromey.com>
6887
6888 * valprint.h (value_print_scalar_formatted): Declare.
6889 * valprint.c (value_print_scalar_formatted): New function.
6890
156bfec9
TT
68912020-03-13 Tom Tromey <tom@tromey.com>
6892
6893 * valprint.h (generic_value_print): Declare.
6894 * valprint.c (generic_value_print): New function.
6895
2b4e573d
TT
68962020-03-13 Tom Tromey <tom@tromey.com>
6897
6898 * valprint.c (do_val_print): Call la_value_print_inner, if
6899 available.
6900 * rust-lang.c (rust_language_defn): Update.
6901 * p-lang.c (pascal_language_defn): Update.
6902 * opencl-lang.c (opencl_language_defn): Update.
6903 * objc-lang.c (objc_language_defn): Update.
6904 * m2-lang.c (m2_language_defn): Update.
6905 * language.h (struct language_defn) <la_value_print_inner>: New
6906 member.
6907 * language.c (unknown_language_defn, auto_language_defn): Update.
6908 * go-lang.c (go_language_defn): Update.
6909 * f-lang.c (f_language_defn): Update.
6910 * d-lang.c (d_language_defn): Update.
6911 * c-lang.c (c_language_defn, cplus_language_defn)
6912 (asm_language_defn, minimal_language_defn): Update.
6913 * ada-lang.c (ada_language_defn): Update.
6914
a1f6a07c
TT
69152020-03-13 Tom Tromey <tom@tromey.com>
6916
6917 * c-valprint.c (c_value_print): Use common_val_print.
6918
410cf315
TT
69192020-03-13 Tom Tromey <tom@tromey.com>
6920
6921 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6922
72a45c93
TT
69232020-03-13 Tom Tromey <tom@tromey.com>
6924
6925 * f-valprint.c (f77_print_array_1, f_val_print): Use
6926 common_val_print.
6927
040f66bd
TT
69282020-03-13 Tom Tromey <tom@tromey.com>
6929
6930 * riscv-tdep.c (riscv_print_one_register_info): Use
6931 common_val_print.
6932
a6e05a6c
TT
69332020-03-13 Tom Tromey <tom@tromey.com>
6934
6935 * mi/mi-main.c (output_register): Use common_val_print.
6936
3444c526
TT
69372020-03-13 Tom Tromey <tom@tromey.com>
6938
6939 * infcmd.c (default_print_one_register_info): Use
6940 common_val_print.
6941
c2a44efe
TT
69422020-03-13 Tom Tromey <tom@tromey.com>
6943
6944 * valprint.h (common_val_print_checked): Declare.
6945 * valprint.c (common_val_print_checked): New function.
6946 * stack.c (print_frame_arg): Use common_val_print_checked.
6947
b0c26e99
TT
69482020-03-13 Tom Tromey <tom@tromey.com>
6949
6950 * valprint.c (do_val_print): New function, from val_print.
6951 (val_print): Use do_val_print.
6952 (common_val_print): Use do_val_print.
6953
ce3acbe9
TT
69542020-03-13 Tom Tromey <tom@tromey.com>
6955
6956 * valprint.c (value_print): Use scoped_value_mark.
6957
96c7f873
TV
69582020-03-13 Tom de Vries <tdevries@suse.de>
6959
6960 PR symtab/25646
6961 * psymtab.c (partial_symtab::partial_symtab): Don't set
6962 globals_offset and statics_offset. Push element onto
6963 current_global_psymbols and current_static_psymbols stacks.
6964 (concat): New function.
6965 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6966 element from current_global_psymbols and current_static_psymbols
6967 stacks. Concat popped elements to global_psymbols and
6968 static_symbols.
6969 (add_psymbol_to_list): Use current_global_psymbols and
6970 current_static_psymbols stacks.
6971 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6972 current_static_psymbols fields.
6973
6ba0a321
CB
69742020-03-12 Christian Biesinger <cbiesinger@google.com>
6975
6976 * corelow.c (sniff_core_bfd): Remove.
6977 (class core_target) <m_core_vec>: Remove.
6978 (core_target::core_target): Update.
6979 (core_file_fns): Remove.
6980 (deprecated_add_core_fns): Remove.
6981 (default_core_sniffer): Remove.
6982 (sniff_core_bfd): Remove.
6983 (default_check_format): Remove.
6984 (gdb_check_format): Remove.
6985 (core_target_open): Update.
6986 (core_target::get_core_register_section): Update.
6987 (get_core_registers_cb): Update.
6988 (core_target::fetch_registers): Update.
6989 * gdbcore.h (struct core_fns): Remove.
6990 (deprecated_add_core_fns): Remove.
6991 (default_core_sniffer): Remove.
6992 (default_check_format): Remove.
6993
227031b2
TT
69942020-03-12 Tom Tromey <tom@tromey.com>
6995
6996 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6997 CORE_ADDR.
6998 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6999
53807e9f
TT
70002020-03-12 Tom Tromey <tom@tromey.com>
7001
7002 * remote.c (remote_target::download_tracepoint)
7003 (remote_target::enable_tracepoint)
7004 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7005 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7006 sprintf_vma.
7007
64f25102
TT
70082020-03-12 Tom Tromey <tom@tromey.com>
7009
7010 * symfile-mem.c: Update CORE_ADDR size assert.
7011
272cd5a3
SM
70122020-03-12 Simon Marchi <simon.marchi@efficios.com>
7013
7014 * selftest.m4: Move to gdbsupport/.
7015 * acinclude.m4: Update path to selftest.m4.
7016
74cd3f9d
SM
70172020-03-12 Simon Marchi <simon.marchi@efficios.com>
7018
7019 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7020 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7021 gdbarch-selfselftests.c and selftest-arch.c.
7022 (SUBDIR_UNITTESTS_OBS): Rename to...
7023 (SELFTESTS_OBS): ... this.
7024 (COMMON_SFILES): Remove disasm-selftests.c and
7025 gdbarch-selftests.c.
7026 * configure.ac: Don't add selftest-arch.{c,o} to
7027 CONFIG_{SRCS,OBS}.
7028 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7029 preprocessor conditions.
7030
db6878ac
SM
70312020-03-12 Simon Marchi <simon.marchi@efficios.com>
7032
7033 * configure.ac: Don't source bfd/development.sh.
7034 * selftest.m4: Modify comment.
7035 * configure: Re-generate.
7036
4d696a5c
SM
70372020-03-12 Simon Marchi <simon.marchi@efficios.com>
7038
7039 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7040 not "true" or "false".
7041 * configure: Re-generate.
7042
8dd8e1c7
CB
70432020-03-12 Christian Biesinger <cbiesinger@google.com>
7044
7045 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7046 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7047 renamed to arm_nbsd_supply_gregset.
7048 (fetch_register): Update to call arm_nbsd_supply_gregset.
7049 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7050 (arm_netbsd_nat_target::fetch_registers): Update.
7051 (fetch_elfcore_registers): Removed.
7052 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7053 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7054 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7055 not require NetBSD system headers.
7056 (arm_nbsd_regset): New struct.
7057 (arm_nbsd_iterate_over_regset_sections): New function.
7058 (arm_netbsd_init_abi_common): Updated to call
7059 set_gdbarch_iterate_over_regset_sections.
7060 * arm-nbsd-tdep.h: New file.
7061
dd69bf7a
KB
70622020-03-11 Kevin Buettner <kevinb@redhat.com>
7063
7064 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7065 recursion.
7066
a0761e34
SM
70672020-03-11 Simon Marchi <simon.marchi@efficios.com>
7068
7069 * configure: Re-generate.
7070
e7a82140
TT
70712020-03-11 Tom Tromey <tromey@adacore.com>
7072
7073 * ada-typeprint.c (print_choices): Fix comment.
7074
dcc050c8
AB
70752020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7076
7077 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7078 previous item in the list, when the list has no items.
7079
1c33af77
TV
70802020-03-11 Tom de Vries <tdevries@suse.de>
7081
7082 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7083 PROP_LOCLIST handling code.
7084
8c95582d
AB
70852020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7086
7087 * buildsym-legacy.c (record_line): Pass extra parameter to
7088 record_line.
7089 * buildsym.c (buildsym_compunit::record_line): Take an extra
7090 parameter, reduce duplication in the line table, and record the
7091 is_stmt flag in the line table.
7092 * buildsym.h (buildsym_compunit::record_line): Add extra
7093 parameter.
7094 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7095 non-statement lines.
7096 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7097 this to the symtab builder.
7098 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7099 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7100 through to dwarf_record_line_1.
7101 * infrun.c (process_event_stop_test): When stepping, don't stop at
7102 a non-statement instruction, and only refresh the step info when
7103 we land in the middle of a line's range. Also add an extra
7104 comment.
7105 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7106 field.
7107 * record-btrace.c (btrace_find_line_range): Only record lines
7108 marked as is-statement.
7109 * stack.c (frame_show_address): Show the frame address if we are
7110 in a non-statement sal.
7111 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7112 (maintenance_print_one_line_table): Print a header for the is_stmt
7113 column, and include is_stmt information in the output.
7114 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7115 preference to non-statements.
7116 (find_pcs_for_symtab_line): Prefer is-statement entries.
7117 (find_line_common): Likewise.
7118 * symtab.h (struct linetable_entry): Add is_stmt field.
7119 (struct symtab_and_line): Likewise.
7120 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7121 arranging the line table.
7122
e4003a34
TV
71232020-03-07 Tom de Vries <tdevries@suse.de>
7124
7125 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7126 DIE.
7127
e8932576
TT
71282020-03-07 Tom Tromey <tom@tromey.com>
7129
7130 * valops.c (value_literal_complex): Remove obsolete comment.
7131 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7132 comment.
7133
29734269
SM
71342020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7135
7136 * infrun.h: Forward-declare thread_info.
7137 (set_step_info): Add thread_info parameter, add doc.
7138 * infrun.c (set_step_info): Add thread_info parameter, move doc
7139 to header.
7140 * infrun.c (process_event_stop_test): Pass thread to
7141 set_step_info call.
7142 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7143 set_step_info.
7144 (prepare_one_step): Add thread_info parameter, pass it to
7145 set_step_frame and prepare_one_step (recursive) call.
7146 (step_1): Pass thread to prepare_one_step call.
7147 (step_command_fsm::should_stop): Pass thread to
7148 prepare_one_step.
7149 (until_next_fsm): Pass thread to set_step_frame call.
7150 (finish_command): Pass thread to set_step_info call.
7151
b7d64b29
HD
71522020-03-06 Hannes Domani <ssbssa@yahoo.de>
7153
7154 * windows-tdep.c (windows_solib_create_inferior_hook):
7155 Check if inferior is running.
7156
09f2921c
TV
71572020-03-06 Tom de Vries <tdevries@suse.de>
7158
7159 * NEWS: Fix "the the".
7160 * ctfread.c: Same.
7161
fd760e79
TV
71622020-03-06 Tom de Vries <tdevries@suse.de>
7163
7164 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7165
20ea4a60
AB
71662020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7167
7168 * .dir-locals.el: Add a comment referencing the other copies of
7169 this file.
7170
0afbabf0
JB
71712020-03-05 John Baldwin <jhb@FreeBSD.org>
7172
7173 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7174 psargs.
7175
842806cb
TBA
71762020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7177
7178 * .gitattributes: New file.
7179
be1e3d3e
TT
71802020-03-04 Tom Tromey <tom@tromey.com>
7181
7182 * symmisc.c (print_symbol_bcache_statistics)
7183 (print_objfile_statistics): Update.
7184 * symfile.c (allocate_symtab): Use intern.
7185 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7186 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7187 macro_cache>: Remove.
7188 <string_cache>: New member.
7189 (struct objfile) <intern>: New methods.
7190 * elfread.c (elf_symtab_read): Use intern.
7191 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7192 (dwarf2_compute_name, dwarf2_physname)
7193 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7194 names.
7195 (guess_partial_die_structure_name): Update.
7196 (partial_die_info::fixup): Intern name.
7197 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7198 name.
7199 (dwarf2_name): Intern name. Update.
7200 * buildsym.c (buildsym_compunit::get_macro_table): Use
7201 string_cache.
7202
4e7625fd
TT
72032020-03-04 Tom Tromey <tom@tromey.com>
7204
7205 * jit.c (bfd_open_from_target_memory): Make "target" const.
7206 * corefile.c (gnutarget): Now const.
7207 * gdbcore.h (gnutarget): Now const.
7208
46f9f931
HD
72092020-03-04 Hannes Domani <ssbssa@yahoo.de>
7210
7211 * NEWS: Mention support for WOW64 processes.
7212 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7213 (amd64_windows_segment_register_p): Remove static.
7214 (_initialize_amd64_windows_nat): Update.
7215 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7216 * i386-windows-nat.c (context_offset): Update.
7217 (i386_mappings): Rename and remove static.
7218 (i386_windows_segment_register_p): Remove static.
7219 (_initialize_i386_windows_nat): Update.
7220 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7221 (STATUS_WX86_SINGLE_STEP): New macro.
7222 (EnumProcessModulesEx): New macro.
7223 (Wow64SuspendThread): New macro.
7224 (Wow64GetThreadContext): New macro.
7225 (Wow64SetThreadContext): New macro.
7226 (Wow64GetThreadSelectorEntry): New macro.
7227 (windows_set_context_register_offsets): Add static.
7228 (windows_set_segment_register_p): Likewise.
7229 (windows_add_thread): Adapt for WOW64 processes.
7230 (windows_fetch_one_register): Likewise.
7231 (windows_nat_target::fetch_registers): Likewise.
7232 (windows_store_one_register): Likewise.
7233 (display_selector): Likewise.
7234 (display_selectors): Likewise.
7235 (handle_exception): Likewise.
7236 (windows_continue): Likewise.
7237 (windows_nat_target::resume): Likewise.
7238 (windows_add_all_dlls): Likewise.
7239 (do_initial_windows_stuff): Likewise.
7240 (windows_nat_target::attach): Likewise.
7241 (windows_get_exec_module_filename): Likewise.
7242 (windows_nat_target::create_inferior): Likewise.
7243 (windows_xfer_siginfo): Likewise.
7244 (_initialize_loadable): Initialize Wow64SuspendThread,
7245 Wow64GetThreadContext, Wow64SetThreadContext,
7246 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7247 * windows-nat.h (windows_set_context_register_offsets):
7248 Remove declaration.
7249 (windows_set_segment_register_p): Likewise.
7250 (i386_windows_segment_register_p): Add declaration.
7251 (amd64_windows_segment_register_p): Likewise.
7252
440cf44e
LM
72532020-03-04 Luis Machado <luis.machado@linaro.org>
7254
7255 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7256 in "info registers" for AArch64/ARM.
7257
7258 The change caused "info registers" to not print GPR's.
7259
7260 gdb/ChangeLog:
7261
7262 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7263
7264 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7265 when reg->group is empty and reggroup is not.
7266
1009d92f
TT
72672020-03-03 Tom Tromey <tromey@adacore.com>
7268
7269 * dwarf2/frame.c (struct dwarf2_frame_cache)
7270 <checked_tailcall_bottom, entry_cfa_sp_offset,
7271 entry_cfa_sp_offset_p>: Remove members.
7272 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7273 (dwarf2_frame_prev_register): Don't call
7274 dwarf2_tailcall_sniffer_first.
7275 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7276 * frame-unwind.c (add_unwinder): New fuction.
7277 (frame_unwind_init): Use it. Add tailcall unwinder.
7278
5e5d66b6
AB
72792020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7280 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7281
7282 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7283 value should be printed as true.
7284
584cf46d
HD
72852020-03-03 Hannes Domani <ssbssa@yahoo.de>
7286
7287 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7288 (windows_init_abi): Set and use windows_so_ops.
7289
7b973adc
SDJ
72902020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7291
7292 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7293 when verifying if dealing with a convenience variable.
7294
bb7b70ab
LM
72952020-03-03 Luis Machado <luis.machado@linaro.org>
7296
7297 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7298
9822cb57
SM
72992020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7300
7301 * infrun.c (gdbarch_supports_displaced_stepping): New.
7302 (use_displaced_stepping): Break up conditions in smaller pieces.
7303 Use gdbarch_supports_displaced_stepping.
7304 (displaced_step_prepare_throw): Use
7305 gdbarch_supports_displaced_stepping.
7306
63e163f2
AB
73072020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7308
7309 * NEWS: Mention new behaviour of the history filename.
7310 * top.c (write_history_p): Add comment.
7311 (show_write_history_p): Add header comment, give a different
7312 message when history writing is on, but the history filename is
7313 empty.
7314 (history_filename): Add comment.
7315 (history_filename_empty): New function.
7316 (show_history_filename): Add header comment, give a different
7317 message when the filename is empty.
7318 (init_history): Compare history_filename against nullptr, and only
7319 read history if the filename is not empty.
7320 (set_history_filename): Add header comment, and only make
7321 non-empty filenames absolute.
7322 (init_main): Make the filename argument to 'set history filename'
7323 optional.
7324
81b86b97
CB
73252020-03-02 Christian Biesinger <cbiesinger@google.com>
7326
7327 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7328 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7329 (fetch_fp_register): Update.
7330 (fetch_fp_regs): Update.
7331 (store_fp_register): Update.
7332 (store_fp_regs): Update.
7333 (arm_netbsd_nat_target::read_description): New function.
7334 (fetch_elfcore_registers): Update.
7335
24ed6739
AB
73362020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7337
7338 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7339 general_thread if the stop reply is missing a thread-id.
7340 (remote_target::process_stop_reply): Use the first non-exited
7341 thread if the target didn't pass a thread-id.
7342 * infrun.c (do_target_wait): Move call to
7343 switch_to_inferior_no_thread to ....
7344 (do_target_wait_1): ... here.
7345
a84bb2a0
JT
73462020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7347
7348 * debuginfod-support.c: Include defs.h first.
7349
658dadf0
TV
73502020-02-28 Tom de Vries <tdevries@suse.de>
7351
7352 * symfile.c (set_initial_language): Use default language for lookup.
7353
4ebe4877
SM
73542020-02-28 Simon Marchi <simon.marchi@efficios.com>
7355
7356 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7357 reader variable, pass `this` to read_cutu_die_from_dwo.
7358
e5da1139
AM
73592020-02-27 Aaron Merey <amerey@redhat.com>
7360
7361 * source.c (open_source_file): Check for nullptr when computing
7362 srcpath.
7363
317f7127
TT
73642020-02-27 Tom Tromey <tromey@adacore.com>
7365
7366 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7367 member.
7368 (dwarf2_add_field): Don't update nfields.
7369 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7370
3104d9ee
AB
73712020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7372
7373 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7374 abs.
7375
b83470bf
TT
73762020-02-26 Tom Tromey <tom@tromey.com>
7377
7378 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7379 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7380 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7381 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7382 per_cu_data.
7383
edfe0a0c
TT
73842020-02-26 Tom Tromey <tom@tromey.com>
7385
7386 * dwarf2/index-write.c (psym_index_map): Change type.
7387 (add_address_entry_worker, write_one_signatured_type)
7388 (recursively_count_psymbols, recursively_write_psymbols)
7389 (class debug_names, psyms_seen_size, write_gdbindex)
7390 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7391
0d79cdc4
AM
73922020-02-26 Aaron Merey <amerey@redhat.com>
7393
7394 * Makefile.in: Handle optional debuginfod support.
7395 * NEWS: Update.
7396 * README: Add --with-debuginfod summary.
7397 * config.in: Regenerate.
7398 * configure: Regenerate.
7399 * configure.ac: Handle optional debuginfod support.
7400 * debuginfod-support.c: debuginfod helper functions.
7401 * debuginfod-support.h: Ditto.
7402 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7403 summary.
7404 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7405 when a dwz file cannot be found.
7406 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7407 debuginfo file cannot be found.
7408 * source.c (open_source_file): Query debuginfod servers when a
7409 source file cannot be found.
7410 * top.c (print_gdb_configuration): Include
7411 --{with,without}-debuginfod in the output.
7412
b65ce565
JG
74132020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7414
7415 * thread.c (thr_try_catch_cmd): Print thread name.
7416
d4c9a4f8
SM
74172020-02-26 Simon Marchi <simon.marchi@efficios.com>
7418
7419 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7420 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7421 dwarf2_fetch_die_type_sect_off): Move to...
7422 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7423 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7424 dwarf2_fetch_die_type_sect_off): ... here.
7425 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7426 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7427 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7428
0dce4280
TV
74292020-02-26 Tom de Vries <tdevries@suse.de>
7430
7431 PR gdb/25603
7432 * symfile.c (set_initial_language): Exit-early if
7433 language_mode == language_mode_manual.
7434
450a1bfc
SM
74352020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7436
7437 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7438 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7439 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7440
9e80cfa1
AB
74412020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7442
7443 * gdbtypes.c (create_array_type_with_stride): Handle negative
7444 array strides.
7445 * valarith.c (value_subscripted_rvalue): Likewise.
7446
09624f1f
LM
74472020-02-25 Luis Machado <luis.machado@linaro.org>
7448
7449 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7450
8cb5117c
SM
74512020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7452
7453 * loc.h (dwarf2_get_die_type): Move to...
7454 * read.h (dwarf2_get_die_type): ... here.
7455 * read.c (dwarf2_get_die_type): Move doc to header.
7456
c325c44e
JB
74572020-02-25 Joel Brobecker <brobecker@adacore.com>
7458
7459 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7460 'gnulib/Makefile.in' to the list.
7461
4ac93832
TT
74622020-02-24 Tom Tromey <tom@tromey.com>
7463
7464 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7465 Remove.
7466 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7467 XOBNEWVEC.
7468
197400e8
TT
74692020-02-24 Tom Tromey <tom@tromey.com>
7470
7471 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7472 New method.
7473 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7474 (dw2_do_instantiate_symtab, dw2_get_file_names)
7475 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7476
76935768
TT
74772020-02-24 Tom Tromey <tom@tromey.com>
7478
7479 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7480 make_scoped_restore.
7481 (dwarf2_psymtab::read_symtab): Don't clear
7482 reading_partial_symbols.
7483
a88ef40d
TV
74842020-02-24 Tom de Vries <tdevries@suse.de>
7485
7486 PR gdb/25592
7487 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7488
c9af6521
TV
74892020-02-24 Tom de Vries <tdevries@suse.de>
7490
7491 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7492 commands layout next/prev/regs.
7493
5707a07a
TT
74942020-02-22 Tom Tromey <tom@tromey.com>
7495
7496 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7497 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7498
3b0fb49e
TT
74992020-02-22 Tom Tromey <tom@tromey.com>
7500
7501 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7502
283be8bf
TT
75032020-02-22 Tom Tromey <tom@tromey.com>
7504
7505 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7506 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7507 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7508 * tui/tui.c (_initialize_tui): Add usage text.
7509
ca793b96
TT
75102020-02-22 Tom Tromey <tom@tromey.com>
7511
7512 * tui/tui-win.c (tui_set_focus_command)
7513 (tui_set_win_height_command): Use error_no_arg.
7514 (_initialize_tui_win): Update help text.
7515 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7516
432b5c40
TT
75172020-02-22 Tom Tromey <tom@tromey.com>
7518
7519 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7520 * tui/tui-disasm.h (struct tui_disasm_window)
7521 <display_start_addr>: Declare.
7522 * tui/tui-source.h (struct tui_source_window)
7523 <display_start_addr>: Declare.
7524 * tui/tui-winsource.h (struct tui_source_window_base)
7525 <show_source_line, display_start_addr>: New methods.
7526 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7527 Rename and move to protected section.
7528 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7529 (tui_source_window_base::do_erase_source_content): Update.
7530 (tui_source_window_base::show_source_line): Now a method.
7531 (tui_source_window_base::show_source_content)
7532 (tui_source_window_base::tui_source_window_base)
7533 (tui_source_window_base::rerender)
7534 (tui_source_window_base::refill)
7535 (tui_source_window_base::do_scroll_horizontal)
7536 (tui_source_window_base::set_is_exec_point_at)
7537 (tui_source_window_base::update_breakpoint_info)
7538 (tui_source_window_base::update_exec_info): Update.
7539 * tui/tui-source.c (tui_source_window::set_contents)
7540 (tui_source_window::showing_source_p)
7541 (tui_source_window::do_scroll_vertical)
7542 (tui_source_window::location_matches_p)
7543 (tui_source_window::line_is_displayed): Update.
7544 (tui_source_window::display_start_addr): New method.
7545 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7546 (tui_disasm_window::do_scroll_vertical)
7547 (tui_disasm_window::location_matches_p): Update.
7548 (tui_disasm_window::display_start_addr): New method.
7549
01b1af32
TT
75502020-02-22 Tom Tromey <tom@tromey.com>
7551
7552 * NEWS: Add entry for gdb.register_window_type.
7553 * tui/tui-layout.h (window_factory): New typedef.
7554 (tui_register_window): Declare.
7555 * tui/tui-layout.c (saved_tui_windows): New global.
7556 (tui_apply_current_layout): Use it.
7557 (tui_register_window): New function.
7558 * python/python.c (do_start_initialization): Call
7559 gdbpy_initialize_tui.
7560 (python_GdbMethods): Add "register_window_type" function.
7561 * python/python-internal.h (gdbpy_register_tui_window)
7562 (gdbpy_initialize_tui): Declare.
7563 * python/py-tui.c: New file.
7564 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7565
fc96d20b
TT
75662020-02-22 Tom Tromey <tom@tromey.com>
7567
7568 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7569
935c78c0
TT
75702020-02-22 Tom Tromey <tom@tromey.com>
7571
7572 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7573 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7574 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7575 (tui_set_win_focus_to): Move from tui-win.c.
7576
0240c8f1
TT
75772020-02-22 Tom Tromey <tom@tromey.com>
7578
7579 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7580 functions.
7581 (known_window_types): New global.
7582 (tui_get_window_by_name): Reimplement.
7583 (initialize_known_windows): New function.
7584 (validate_window_name): Rewrite.
7585 (_initialize_tui_layout): Call initialize_known_windows.
7586
fdb01f0c
TT
75872020-02-22 Tom Tromey <tom@tromey.com>
7588
7589 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7590 Remove constants.
7591 * tui/tui-winsource.h (struct tui_source_window_base)
7592 <tui_source_window_base>: Remove parameter.
7593 * tui/tui-winsource.c
7594 (tui_source_window_base::tui_source_window_base): Remove
7595 parameter.
7596 (tui_source_window_base::refill): Update.
7597 * tui/tui-stack.h (struct tui_locator_window)
7598 <tui_locator_window>: Update.
7599 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7600 Default the constructor.
7601 * tui/tui-regs.h (struct tui_data_item_window)
7602 <tui_data_item_window>: Default the constructor.
7603 (struct tui_data_window) <tui_data_window>: Likewise.
7604 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7605 Default the constructor.
7606 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7607 Default the constructor.
7608 <type>: Remove.
7609 (struct tui_win_info) <tui_win_info>: Default the constructor.
7610 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7611 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7612 Default the constructor.
7613
865a5aec
TT
76142020-02-22 Tom Tromey <tom@tromey.com>
7615
7616 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7617 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7618 * tui/tui-win.c (tui_resize_all): Don't call
7619 tui_delete_invisible_windows.
7620 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7621 done.
7622 (tui_set_layout): Update.
7623 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7624 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7625 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7626
e098d18c
TT
76272020-02-22 Tom Tromey <tom@tromey.com>
7628
7629 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7630 correctly.
7631
eb9c8874
TT
76322020-02-22 Tom Tromey <tom@tromey.com>
7633
7634 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7635
7eed1a8e
TT
76362020-02-22 Tom Tromey <tom@tromey.com>
7637
7638 * tui/tui-winsource.h (struct tui_source_window_iterator)
7639 <inner_iterator>: New etytypedef.
7640 <tui_source_window_iterator>: Take "end" parameter.
7641 <tui_source_window_iterator>: Take iterator.
7642 <operator*, advance>: Update.
7643 <m_iter>: Change type.
7644 <m_end>: New field.
7645 (struct tui_source_windows) <begin, end>: Update.
7646 * tui/tui-layout.c (tui_windows): New global.
7647 (tui_apply_current_layout): Clear tui_windows.
7648 (tui_layout_window::apply): Update tui_windows.
7649 * tui/tui-data.h (tui_windows): Declare.
7650 (all_tui_windows): Now inline function.
7651 (class tui_window_iterator, struct all_tui_windows): Remove.
7652
7c043ba6
TT
76532020-02-22 Tom Tromey <tom@tromey.com>
7654
7655 PR tui/17850:
7656 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7657 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7658 "height" argument.
7659 (class tui_layout_window) <get_sizes>: Likewise.
7660 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7661 argument.
7662 <get_sizes>: Add "height" argument.
7663 <m_vertical>: New field.
7664 * tui/tui-layout.c (tui_layout_split::clone): Update.
7665 (tui_layout_split::get_sizes): Add "height" argument.
7666 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7667 (tui_new_layout_command): Parse "-horizontal".
7668 (_initialize_tui_layout): Update help string.
7669 (tui_layout_split::specification): Add "-horizontal" when needed.
7670 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7671 argument.
7672 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7673 New methods.
7674
6bc56648
TT
76752020-02-22 Tom Tromey <tom@tromey.com>
7676
7677 * tui/tui-layout.h (enum tui_adjust_result): New.
7678 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7679 (class tui_layout_window) <adjust_size>: Return
7680 tui_adjust_result. Rewrite.
7681 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7682 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7683
c22fef7e
TT
76842020-02-22 Tom Tromey <tom@tromey.com>
7685
7686 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7687 parameter and return types.
7688 (class tui_layout_base) <specification>: Add "depth".
7689 (class tui_layout_window) <specification>: Add "depth".
7690 (class tui_layout_split) <specification>: Add "depth".
7691 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7692 and return types.
7693 (tui_new_layout_command): Parse sub-layouts.
7694 (_initialize_tui_layout): Update help string.
7695 (tui_layout_window::specification): Add "depth".
7696 (add_layout_command): Update.
7697
ee325b61
TT
76982020-02-22 Tom Tromey <tom@tromey.com>
7699
7700 * NEWS: Add "tui new-layout" item.
7701 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7702 Add new-layout command to help text.
7703 (validate_window_name): New function.
7704 (tui_new_layout_command): New function.
7705 (_initialize_tui_layout): Register "new-layout".
7706 (tui_layout_window::specification): New method.
7707 (tui_layout_window::specification): New method.
7708 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7709 method.
7710 (class tui_layout_window) <specification>: New method.
7711 (class tui_layout_split) <specification>: New method.
7712
416eb92d
TT
77132020-02-22 Tom Tromey <tom@tromey.com>
7714
7715 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7716 * tui/tui-win.c (window_name_completer): Update comment.
7717 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7718 Declare method.
7719 (class tui_layout_window) <replace_window>: Likewise.
7720 (class tui_layout_split) <replace_window>: Likewise.
7721 (tui_set_layout): Don't declare.
7722 (tui_set_initial_layout): Declare function.
7723 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7724 (asm_regs_layout): New globals.
7725 (tui_current_layout, show_layout): Remove.
7726 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7727 (find_layout, tui_apply_layout): New function.
7728 (layout_completer): Remove.
7729 (tui_next_layout): Reimplement.
7730 (tui_next_layout_command): New function.
7731 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7732 (tui_regs_layout): Reimplement.
7733 (tui_regs_layout_command): New function.
7734 (extract_display_start_addr): Rewrite.
7735 (next_layout, prev_layout): Remove.
7736 (tui_layout_window::replace_window): New method.
7737 (tui_layout_split::replace_window): New method.
7738 (destroy_layout): New function.
7739 (layout_list): New global.
7740 (add_layout_command): New function.
7741 (initialize_layouts): Update.
7742 (tui_layout_command): New function.
7743 (_initialize_tui_layout): Install "layout" commands.
7744 * tui/tui-data.h (enum tui_layout_type): Remove.
7745 (tui_current_layout): Don't declare.
7746
0dbc2fc7
TT
77472020-02-22 Tom Tromey <tom@tromey.com>
7748
7749 * tui/tui-regs.c (tui_reg_layout): Remove.
7750 (tui_reg_command): Use tui_regs_layout.
7751 * tui/tui-layout.h (tui_reg_command): Declare.
7752 * tui/tui-layout.c (tui_reg_command): New function.
7753
5afe342e
TT
77542020-02-22 Tom Tromey <tom@tromey.com>
7755
7756 * tui/tui.c (tui_rl_delete_other_windows): Call
7757 tui_remove_some_windows.
7758 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7759 Declare method.
7760 (class tui_layout_window) <remove_windows>: New method.
7761 (class tui_layout_split) <remove_windows>: Declare.
7762 (tui_remove_some_windows): Declare.
7763 * tui/tui-layout.c (tui_remove_some_windows): New function.
7764 (tui_layout_split::remove_windows): New method.
7765
427326a8
TT
77662020-02-22 Tom Tromey <tom@tromey.com>
7767
7768 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7769 * tui/tui-layout.h (tui_next_layout): Declare.
7770 * tui/tui-layout.c (tui_next_layout): New function.
7771
3fe12b6d
TT
77722020-02-22 Tom Tromey <tom@tromey.com>
7773
7774 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7775 correct coordinates.
7776
59b8b5d2
TT
77772020-02-22 Tom Tromey <tom@tromey.com>
7778
7779 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7780 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7781 DATA_WIN case.
7782
2a3d458b
TT
77832020-02-22 Tom Tromey <tom@tromey.com>
7784
7785 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7786 TUI_DISASM_WIN, not tui_win_list.
7787
3f0cbb04
TT
77882020-02-22 Tom Tromey <tom@tromey.com>
7789
7790 * valprint.c (generic_val_print_enum_1)
7791 (val_print_type_code_flags): Style member names.
7792 * rust-lang.c (val_print_struct, rust_print_enum)
7793 (rust_print_struct_def, rust_internal_print_type): Style member
7794 names.
7795 * p-valprint.c (pascal_object_print_value_fields): Style member
7796 names. Only call fprintf_symbol_filtered for static members.
7797 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7798 * f-valprint.c (f_val_print): Style member names.
7799 * f-typeprint.c (f_type_print_base): Style member names.
7800 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7801 call fprintf_symbol_filtered for static members.
7802 (cp_print_class_member): Style member names.
7803 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7804 member names.
7805 * ada-valprint.c (ada_print_scalar): Style enum names.
7806 (ada_val_print_enum): Likewise.
7807 * ada-typeprint.c (print_enum_type): Style enum names.
7808
d4d947ae
TT
78092020-02-21 Tom Tromey <tom@tromey.com>
7810
7811 * psympriv.h (struct partial_symtab): Update comment.
7812
e94e944b
TT
78132020-02-21 Tom Tromey <tromey@adacore.com>
7814
7815 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7816 type is CORE_ADDR.
7817
1eb73179
TV
78182020-02-21 Tom de Vries <tdevries@suse.de>
7819
7820 PR gdb/25534
7821 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7822 if dependencies[i]->user != NULL.
7823
4f180d53
AT
78242020-02-21 Ali Tamur <tamur@google.com>
7825
7826 * dwarf2/read.c (dwarf2_name): Add null check.
7827
22b6cd70
TT
78282020-02-20 Tom Tromey <tom@tromey.com>
7829
7830 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7831 ">=", in binary search.
7832 (dwarf2_find_containing_comp_unit): New overload.
7833 (run_test): New self-test.
7834 (_initialize_dwarf2_read): Register new test.
7835
bd0cf5a6
NC
78362020-02-20 Nelson Chu <nelson.chu@sifive.com>
7837
7838 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7839 * riscv-tdep.h: Likewise.
7840 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7841 rv32-only CSR.
7842 * features/riscv/64bit-csr.xml: Regenerated.
7843
3f702acd
SDJ
78442020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7845 Tom Tromey <tom@tromey.com>
7846
7847 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7848 of 'fputc_unfiltered'.
7849 (putchar_unfiltered): Call 'fputc_unfiltered'.
7850 (fputc_unfiltered): Call 'fputs_unfiltered'.
7851
d13c7322
AB
78522020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7853
7854 * config.in: Regenerate.
7855 * configure: Regenerate.
7856 * configure.ac: Add --with-python-libdir option.
7857 * main.c: Use WITH_PYTHON_LIBDIR.
7858
869d8950
TT
78592020-02-19 Tom Tromey <tom@tromey.com>
7860
7861 * symtab.c (general_symbol_info::compute_and_set_names): Use
7862 obstack_strndup. Simplify call to symbol_set_demangled_name.
7863
298e9637
SM
78642020-02-19 Simon Marchi <simon.marchi@efficios.com>
7865
7866 * dwarf2/read.c (allocate_signatured_type_table,
7867 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7868 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7869 Remove objfile parameter, update all callers.
7870
08410482
DE
78712020-02-19 Doug Evans <dje@google.com>
7872
7873 PR rust/25535
7874 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7875 rust_enum_variant calculation.
7876
dfdeeca1
TT
78772020-02-19 Tom Tromey <tromey@adacore.com>
7878
7879 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7880
2ef5453b
TT
78812020-02-19 Tom Tromey <tromey@adacore.com>
7882
7883 * ada-lang.c (cache_symbol): Use obstack_strdup.
7884
9f1528a1
AB
78852020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7886
7887 * configure: Regenerate.
7888
d3c22fa8
TT
78892020-02-19 Tom Tromey <tromey@adacore.com>
7890
7891 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7892 NULL check.
7893
bf84f706
MR
78942020-02-19 Maciej W. Rozycki <macro@wdc.com>
7895
7896 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7897
d1c9b20f
AB
78982020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7899
7900 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7901 if GDBSERVER is not defined.
7902 (riscv_tdesc_cache): Likewise, also store const target_desc.
7903 (STATIC_IN_GDB): Define.
7904 (riscv_create_target_description): Update declaration with
7905 STATIC_IN_GDB.
7906 (riscv_lookup_target_description): New function, only define if
7907 GDBSERVER is not defined.
7908 * arch/riscv.h (riscv_create_target_description): Declare only
7909 when GDBSERVER is defined.
7910 (riscv_lookup_target_description): New declaration when GDBSERVER
7911 is not defined.
7912 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7913 (riscv_linux_read_features): ...this, and return
7914 riscv_gdbarch_features instead of target_desc.
7915 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7916 (riscv_linux_read_description): Rename to...
7917 (riscv_linux_read_features): ...this.
7918 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7919 Update to use riscv_gdbarch_features and
7920 riscv_lookup_target_description.
7921 * riscv-tdep.c (riscv_find_default_target_description): Use
7922 riscv_lookup_target_description instead of
7923 riscv_create_target_description.
7924
373d7ac0
SM
79252020-02-18 Simon Marchi <simon.marchi@efficios.com>
7926
7927 * valprint.c (generic_val_print_enum_1): When printing a flag
7928 enum with value 0 and there is no enumerator with value 0, print
7929 just "0" instead of "(unknown: 0x0)".
7930
b29a2df0
SM
79312020-02-18 Simon Marchi <simon.marchi@efficios.com>
7932
7933 * valprint.c (generic_val_print_enum_1): Print unknown part of
7934 flag enum in hex.
7935
6740f0cc
SM
79362020-02-18 Simon Marchi <simon.marchi@efficios.com>
7937
7938 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7939 flag enums to contain duplicate enumerators.
7940 * valprint.c (generic_val_print_enum_1): Update comment.
7941
edd45eb0
SM
79422020-02-18 Simon Marchi <simon.marchi@efficios.com>
7943
7944 * dwarf2/read.c: Include "count-one-bits.h".
7945 (update_enumeration_type_from_children): If an enumerator has
7946 multiple bits set, don't treat the enumeration as a "flag enum".
7947 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7948 of flag enums have 0 or 1 bit set.
7949
6d0cf446
BE
79502020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7951
7952 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7953 conversion.
7954 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7955 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7956 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7957 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7958 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7959
7001c1b7
SM
79602020-02-18 Simon Marchi <simon.marchi@efficios.com>
7961
7962 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7963
fdb61c6c
SM
79642020-02-14 Simon Marchi <simon.marchi@efficios.com>
7965
7966 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7967 displaced_step_closure_up.
7968 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7969 (struct displaced_step_closure_up):
7970 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7971 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7972 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7973 Likewise.
7974 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7975 * gdbarch.c, gdbarch.h: Re-generate.
7976 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7977 displaced_step_closure_up.
7978 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7979 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7980 * infrun.h (displaced_step_closure_up): New type alias.
7981 (struct displaced_step_inferior_state) <step_closure>: Change
7982 type to displaced_step_closure_up.
7983 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7984 displaced_step_closure_up.
7985 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7986
a4a38eb4
TT
79872020-02-14 Tom Tromey <tom@tromey.com>
7988
7989 * minidebug.c (gnu_debug_key): New global.
7990 (find_separate_debug_file_in_section): Use it.
7991
e8217e61
SM
79922020-02-14 Simon Marchi <simon.marchi@efficios.com>
7993
7994 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7995 std::unique_ptr.
7996 * gdbarch.c: Re-generate.
7997 * gdbarch.h: Re-generate.
7998 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7999 change.
8000 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8001 type to std::unique_ptr.
8002 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8003 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8004 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8005 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8006 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8007 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8008 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8009 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8010 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8011
d8d83535
SM
80122020-02-14 Simon Marchi <simon.marchi@efficios.com>
8013
8014 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8015 std::unique_ptr.
8016 (displaced_step_clear): Rename to...
8017 (displaced_step_reset): ... this. Just call displaced->reset ().
8018 (displaced_step_clear_cleanup): Rename to...
8019 (displaced_step_reset_cleanup): ... this.
8020 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8021 (displaced_step_fixup): Likewise.
8022 (resume_1): Likewise.
8023 (handle_inferior_event): Restore child's memory before calling
8024 displaced_step_fixup on the parent.
8025 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8026 to std::unique_ptr.
8027 <step_closure>: Change type to std::unique_ptr.
8028
5f661e03
SM
80292020-02-14 Simon Marchi <simon.marchi@efficios.com>
8030
8031 * arm-tdep.c: Include count-one-bits.h.
8032 (cleanup_block_store_pc): Use count_one_bits.
8033 (cleanup_block_load_pc): Use count_one_bits.
8034 (arm_copy_block_xfer): Use count_one_bits.
8035 (thumb2_copy_block_xfer): Use count_one_bits.
8036 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8037 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8038 (thumb_get_next_pcs_raw): Use count_one_bits.
8039 (arm_get_next_pcs_raw): Use count_one_bits_l.
8040 * arch/arm.c (bitcount): Remove.
8041 * arch/arm.h (bitcount): Remove.
8042
8084e579
TT
80432020-02-14 Tom Tromey <tromey@adacore.com>
8044
8045 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8046 Update.
8047 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8048 * dwarf2/loc.c (call_site_find_chain_1): Return
8049 unique_xmalloc_ptr.
8050 (call_site_find_chain): Likewise.
8051
258bf0ee
RB
80522020-02-14 Richard Biener <rguenther@suse.de>
8053
8054 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8055 on expression with division operators.
8056
f98a8458
AKS
80572020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8058
8059 * MAINTAINERS (Write After Approval): Adding myself.
8060
d1437c0e
TT
80612020-02-12 Tom Tromey <tom@tromey.com>
8062
8063 * event-loop.c (event_data, gdb_event, event_handler_func):
8064 Remove.
8065
3d4560f7
TT
80662020-02-12 Tom Tromey <tom@tromey.com>
8067
8068 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8069 (dwarf2_frame_objfile_data): Add comment.
8070 (find_comp_unit, set_comp_unit): New functions.
8071 (dwarf2_frame_find_fde): Use find_comp_unit.
8072 (dwarf2_build_frame_info): Use set_comp_unit.
8073
21982304
TT
80742020-02-12 Tom Tromey <tom@tromey.com>
8075
8076 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8077 (comp_unit): Don't initialize objfile.
8078 (execute_cfa_program): Add text_offset parameter.
8079 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8080 (dwarf2_frame_cache): Update.
8081 (dwarf2_build_frame_info): Don't set "objfile" member.
8082
4debb237
TT
80832020-02-12 Tom Tromey <tom@tromey.com>
8084
8085 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8086 (decode_frame_entry): Likewise.
8087 (dwarf2_build_frame_info): Update.
8088
0d404d44
TT
80892020-02-12 Tom Tromey <tom@tromey.com>
8090
8091 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8092 (decode_frame_entry_1): Use the comp_unit obstack.
8093
a7a3ae5c
TT
80942020-02-12 Tom Tromey <tom@tromey.com>
8095
8096 * dwarf2/frame.c (struct comp_unit): Add initializers and
8097 constructor.
8098 (dwarf2_frame_objfile_data): Store a comp_unit.
8099 (dwarf2_frame_find_fde): Update.
8100 (dwarf2_build_frame_info): Use "new".
8101
a9d65418
TT
81022020-02-12 Tom Tromey <tom@tromey.com>
8103
8104 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8105 (dwarf2_fde_table): Typedef for std::vector.
8106 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8107 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8108 (decode_frame_entry): Update.
8109 (dwarf2_build_frame_info): Use "new".
8110
7559c217
CB
81112020-02-12 Christian Biesinger <cbiesinger@google.com>
8112
8113 * arm-tdep.c (arm_gdbarch_init): Update.
8114 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8115 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8116 have_neon, is_m>: Change to bool.
8117
aeefc73c
CB
81182020-02-12 Christian Biesinger <cbiesinger@google.com>
8119
8120 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8121
d27b8e5f
TT
81222020-02-12 Tom Tromey <tom@tromey.com>
8123
8124 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8125
cd5900f3
HD
81262020-02-12 Hannes Domani <ssbssa@yahoo.de>
8127
8128 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8129 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8130
f056b22b
TT
81312020-02-11 Tom Tromey <tom@tromey.com>
8132
8133 * psymtab.h: Update comment.
8134
f92ff6b5
TT
81352020-02-11 Tom Tromey <tom@tromey.com>
8136
8137 * gdb_obstack.h (struct auto_obstack): Use
8138 DISABLE_COPY_AND_ASSIGN.
8139
3fd6912b
TT
81402020-02-11 Tom Tromey <tom@tromey.com>
8141
8142 * dwarf2/frame.h (struct objfile): Don't forward declare.
8143
69ed9b74
CB
81442020-02-11 Christian Biesinger <cbiesinger@google.com>
8145
8146 * cris-tdep.c (cris_supply_gregset): Change signature to match
8147 what struct regset expects.
8148 (cris_regset): New struct.
8149 (fetch_core_registers): Remove.
8150 (cris_iterate_over_regset_sections): New function.
8151 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8152 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8153
bda874f6
CB
81542020-02-11 Christian Biesinger <cbiesinger@google.com>
8155
8156 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8157 registers.
8158
754e1564
CB
81592020-02-11 Christian Biesinger <cbiesinger@google.com>
8160
8161 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8162
8ddd8e0e
SM
81632020-02-11 Simon Marchi <simon.marchi@efficios.com>
8164
8165 * configure: Re-generate.
8166
898e7f60
SM
81672020-02-11 Simon Marchi <simon.marchi@efficios.com>
8168
8169 * configure: Re-generate.
8170
58df732b
SM
81712020-02-11 Simon Marchi <simon.marchi@efficios.com>
8172
8173 * acinclude: Update warning.m4 path.
8174 * warning.m4: Move to gdbsupport.
8175
da5bd37e
TT
81762020-02-11 Tom Tromey <tromey@adacore.com>
8177
8178 * remote.c (remote_console_output): Update.
8179 * printcmd.c (printf_command): Update.
8180 * event-loop.c (gdb_wait_for_event): Update.
8181 * linux-nat.c (sigchld_handler): Update.
8182 * remote-sim.c (gdb_os_write_stdout): Update.
8183 (gdb_os_flush_stdout): Update.
8184 (gdb_os_flush_stderr): Update.
8185 (gdb_os_write_stderr): Update.
8186 * exceptions.c (print_exception): Update.
8187 * remote-fileio.c (remote_fileio_func_read): Update.
8188 (remote_fileio_func_write): Update.
8189 * tui/tui.c (tui_enable): Update.
8190 * tui/tui-interp.c (tui_interp::init): Update.
8191 * utils.c (init_page_info): Update.
8192 (putchar_unfiltered, fputc_unfiltered): Update.
8193 (gdb_flush): Update.
8194 (emit_style_escape): Update.
8195 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8196 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8197 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8198 (stderr_file::write): Update.
8199 (stderr_file::puts): Update.
8200 * ui-file.h (ui_file_isatty, ui_file_write)
8201 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8202 (ui_file_puts): Don't declare.
8203
85f0dd3c
TV
82042020-02-10 Tom de Vries <tdevries@suse.de>
8205
8206 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8207 sentinel to char *.
8208
2e927613
TV
82092020-02-09 Tom de Vries <tdevries@suse.de>
8210
8211 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8212 filename if it matches "<artificial>".
8213
6bafc845
HD
82142020-02-09 Hannes Domani <ssbssa@yahoo.de>
8215
8216 * windows-tdep.c (struct enum_value_name): New struct.
8217 (create_enum): New function.
8218 (windows_get_siginfo_type): Create and use enum types.
8219
7928d571
HD
82202020-02-09 Hannes Domani <ssbssa@yahoo.de>
8221
8222 * NEWS: Mention $_siginfo support for Windows.
8223 * windows-nat.c (handle_exception): Set siginfo_er.
8224 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8225 (windows_xfer_siginfo): New function.
8226 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8227 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8228 (init_windows_gdbarch_data): New function.
8229 (get_windows_gdbarch_data): New function.
8230 (windows_get_siginfo_type): New function.
8231 (windows_init_abi): Register windows_get_siginfo_type.
8232 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8233
6751ebae
TT
82342020-02-08 Tom Tromey <tom@tromey.com>
8235
8236 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8237 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8238 <keep>: Declare method.
8239 <m_keep>: Remove member.
8240 <~cutu_reader>: Remove.
8241 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8242 (cutu_reader::cutu_reader): Update.
8243 (cutu_reader::keep): Rename from ~cutu_reader.
8244 (process_psymtab_comp_unit, build_type_psymtabs_1)
8245 (process_skeletonless_type_unit, load_partial_comp_unit)
8246 (load_full_comp_unit, dwarf2_read_addr_index)
8247 (read_signatured_type): Update.
8248
135f5437
TT
82492020-02-08 Tom Tromey <tom@tromey.com>
8250
8251 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8252 "want_partial_unit" parameter.
8253 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8254 Inline check for DW_TAG_partial_unit.
8255 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8256
9f66ff1c
TT
82572020-02-08 Tom Tromey <tom@tromey.com>
8258
8259 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8260 read.c.
8261 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8262 read.c.
8263
c8a7a66f
TT
82642020-02-08 Tom Tromey <tom@tromey.com>
8265
8266 * dwarf2/read.c (read_address): Move to comp-unit.c.
8267 (dwarf2_rnglists_process, dwarf2_ranges_process)
8268 (read_attribute_value, dwarf_decode_lines_1)
8269 (var_decode_location, decode_locdesc): Update.
8270 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8271 read.c. Remove "cu" parameter.
8272 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8273 method.
8274
8266302d
TT
82752020-02-08 Tom Tromey <tom@tromey.com>
8276
8277 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8278 (read_indirect_line_string): Update.
8279 * dwarf2/comp-unit.c (read_offset): Remove.
8280 (read_comp_unit_head): Update.
8281 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8282 method.
8283 (read_offset): Don't declare.
8284
4057dfde
TT
82852020-02-08 Tom Tromey <tom@tromey.com>
8286
8287 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8288 * dwarf2/read.c (struct comp_unit_head): Move to
8289 dwarf2/comp-unit.h.
8290 (enum class rcuh_kind): Move to comp-unit.h.
8291 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8292 (read_comp_unit_head, error_check_comp_unit_head)
8293 (read_and_check_comp_unit_head): Move to comp-unit.c.
8294 (read_offset, dwarf_unit_type_name): Likewise.
8295 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8296 (cutu_reader::cutu_reader, read_call_site_scope)
8297 (find_partial_die, follow_die_offset): Update.
8298 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8299
24aa364d
TT
83002020-02-08 Tom Tromey <tom@tromey.com>
8301
8302 * dwarf2/read.c (read_offset_1): Move to leb.c.
8303 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8304 (dwarf_decode_macro_bytes): Update.
8305 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8306 * dwarf2/leb.h (read_offset): Declare.
8307
2c7d5afc
TT
83082020-02-08 Tom Tromey <tom@tromey.com>
8309
8310 * dwarf2/read.c (dwarf2_section_size): Remove.
8311 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8312 Update.
8313 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8314
4075cb26
TT
83152020-02-08 Tom Tromey <tom@tromey.com>
8316
8317 * dwarf2/read.c (read_initial_length): Move to leb.c.
8318 * dwarf2/leb.h (read_initial_length): Declare.
8319 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8320 handle_nonstd parameter.
8321 * dwarf2/frame.c (read_initial_length): Remove.
8322 (decode_frame_entry_1): Update.
8323
09ba997f
TT
83242020-02-08 Tom Tromey <tom@tromey.com>
8325
8326 * dwarf2/loc.c (dwarf2_find_location_expression)
8327 (dwarf_evaluate_loc_desc::get_tls_address)
8328 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8329 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8330 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8331 (dwarf2_compile_property_to_c)
8332 (dwarf2_loc_desc_get_symbol_read_needs)
8333 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8334 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8335 (loclist_describe_location, loclist_tracepoint_var_ref)
8336 (loclist_generate_c_location): Update.
8337 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8338 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8339 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8340 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8341 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8342 (dwarf2_per_cu_data::addr_size)
8343 (dwarf2_per_cu_data::ref_addr_size)
8344 (dwarf2_per_cu_data::text_offset)
8345 (dwarf2_per_cu_data::addr_type): Now methods.
8346 (per_cu_header_read_in): Make per_cu "const".
8347 (dwarf2_version): Remove.
8348 (dwarf2_per_cu_data::int_type): Now a method.
8349 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8350 (set_die_type, read_array_type, read_subrange_index_type)
8351 (read_tag_string_type, read_subrange_type): Update.
8352 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8353 offset_size, ref_addr_size, text_offset, addr_type, version,
8354 objfile, int_type, addr_sized_int_type>: Declare methods.
8355
96c738c0
TT
83562020-02-08 Tom Tromey <tom@tromey.com>
8357
8358 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8359 Move earlier.
8360
8fdd972c
TT
83612020-02-08 Tom Tromey <tom@tromey.com>
8362
8363 * dwarf2/read.h (dwarf_line_debug): Declare.
8364 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8365 * dwarf2/read.c: Move line_header code to new files.
8366 (dwarf_line_debug): No longer static.
8367 * dwarf2/line-header.c: New file.
8368 * dwarf2/line-header.h: New file.
8369
03075812
TT
83702020-02-08 Tom Tromey <tom@tromey.com>
8371
8372 * dwarf2/read.c (struct line_header) <file_full_name,
8373 file_file_name>: Return unique_xmalloc_ptr.
8374 (line_header::file_file_name): Update.
8375 (line_header::file_full_name): Update.
8376 (dw2_get_file_names_reader): Update.
8377 (macro_start_file): Update.
8378
bb822404
TT
83792020-02-08 Tom Tromey <tom@tromey.com>
8380
8381 * dwarf2/read.c (struct line_header) <file_full_name,
8382 file_file_name>: Declare methods.
8383 (dw2_get_file_names_reader): Update.
8384 (file_file_name): Now a method.
8385 (file_full_name): Likewise.
8386 (macro_start_file): Update.
8387
009b64fc
TT
83882020-02-08 Tom Tromey <tom@tromey.com>
8389
8390 * dwarf2/read.c (dwarf_always_disassemble)
8391 (show_dwarf_always_disassemble): Move to loc.c.
8392 (_initialize_dwarf2_read): Move "always-disassemble" registration
8393 to loc.c.
8394 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8395 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8396 static.
8397 (show_dwarf_always_disassemble): Move from read.c.
8398 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8399
5895093f
TT
84002020-02-08 Tom Tromey <tom@tromey.com>
8401
8402 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8403 (create_quick_file_names_table): Return htab_up.
8404 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8405 Update.
8406 * dwarf2/read.h (struct dwarf2_per_objfile)
8407 <quick_file_names_table>: Now htab_up.
8408
b3b32279
TT
84092020-02-08 Tom Tromey <tom@tromey.com>
8410
8411 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8412
1d33d811
TT
84132020-02-08 Tom Tromey <tom@tromey.com>
8414
8415 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8416 Rewrite.
8417 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8418 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8419 (abbrev_table::abbrev_table): No longer inline.
8420 (ABBREV_HASH_SIZE): Remove.
8421 (abbrev_table::m_abbrevs): Now an htab_up.
8422
86de1d91
TT
84232020-02-08 Tom Tromey <tom@tromey.com>
8424
8425 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8426 (cutu_reader): Update.
8427 (build_type_psymtabs_1): Update.
8428 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8429 (abbrev_table::alloc_abbrev): Update.
8430 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8431 (abbrev_table::read): New static method, renamed from
8432 abbrev_table_read_table.
8433 (abbrev_table::alloc_abbrev)
8434 (abbrev_table::add_abbrev): Now private.
8435 (abbrev_table::abbrev_table): Now private.
8436 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8437
0335378b
TT
84382020-02-08 Tom Tromey <tom@tromey.com>
8439
8440 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8441 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8442 htab_up.
8443
48b490f2
TT
84442020-02-08 Tom Tromey <tom@tromey.com>
8445
8446 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8447 htab_up.
8448 (lookup_dwo_unit_in_dwp): Update.
8449 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8450 on obstack.
8451
bc68fb19
TT
84522020-02-08 Tom Tromey <tom@tromey.com>
8453
8454 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8455 obstack.
8456
d15acc42
TT
84572020-02-08 Tom Tromey <tom@tromey.com>
8458
8459 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8460 line_header_hash.
8461 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8462 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8463 Change type to htab_up.
8464
eaa5fa8b
TT
84652020-02-08 Tom Tromey <tom@tromey.com>
8466
8467 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8468 htab_up. Don't allocate on obstack.
8469 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8470 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8471 Change type to htab_up.
8472
b0b6a987
TT
84732020-02-08 Tom Tromey <tom@tromey.com>
8474
8475 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8476 Change type to htab_up.
8477 * dwarf2/read.c (create_signatured_type_table_from_index)
8478 (create_signatured_type_table_from_debug_names)
8479 (create_all_type_units, add_type_unit)
8480 (lookup_dwo_signatured_type, lookup_signatured_type)
8481 (process_skeletonless_type_unit): Update.
8482 (create_debug_type_hash_table, create_debug_types_hash_table):
8483 Change type of types_htab.
8484 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8485 htab_up. Don't allocate on obstack.
8486 (create_cus_hash_table): Change type of cus_htab parameter.
8487 (struct dwo_file) <cus, tus>: Now htab_up.
8488 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8489 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8490 (queue_and_load_all_dwo_tus): Update.
8491 * dwarf2/index-write.c (write_gdbindex): Update.
8492 (write_debug_names): Update.
8493
39856def
TT
84942020-02-08 Tom Tromey <tom@tromey.com>
8495
8496 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8497 dwarf2/read.c. Remove "next" member. Add constructor ntad
8498 destructor.
8499 (struct dwarf2_per_objfile) <queue>: New member.
8500 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8501 dwarf2/read.h.
8502 (dwarf2_queue, dwarf2_queue_tail): Remove.
8503 (class dwarf2_queue_guard): Add parameter to constructor. Use
8504 DISABLE_COPY_AND_ASSIGN.
8505 <m_per_objfile>: New member.
8506 <~dwarf2_queue_guard>: Rewrite.
8507 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8508 Update.
8509 (~dwarf2_queue_item): New.
8510
3e225074
TT
85112020-02-08 Tom Tromey <tom@tromey.com>
8512
8513 * dwarf2/read.c (struct die_info) <has_children>: New member.
8514 (dw2_get_file_names_reader): Remove has_children.
8515 (dw2_get_file_names): Update.
8516 (read_cutu_die_from_dwo): Remove has_children.
8517 (cutu_reader::init_tu_and_read_dwo_dies)
8518 (cutu_reader::cutu_reader): Update.
8519 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8520 Remove has_children.
8521 (build_type_psymtabs_1, process_skeletonless_type_unit)
8522 (load_partial_comp_unit, load_full_comp_unit): Update.
8523 (create_dwo_cu_reader): Remove has_children.
8524 (create_cus_hash_table, read_die_and_children): Update.
8525 (read_full_die_1,read_full_die): Remove has_children.
8526 (read_signatured_type): Update.
8527 (class cutu_reader) <has_children>: Remove.
8528
82ca8957
TT
85292020-02-08 Tom Tromey <tom@tromey.com>
8530
8531 * dwarf2/expr.c: Rename from dwarf2expr.c.
8532 * dwarf2/expr.h: Rename from dwarf2expr.h.
8533 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8534 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8535 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8536 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8537 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8538 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8539 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8540 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8541 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8542 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8543 * dwarf2/loc.c: Rename from dwarf2loc.c.
8544 * dwarf2/loc.h: Rename from dwarf2loc.h.
8545 * dwarf2/read.c: Rename from dwarf2read.c.
8546 * dwarf2/read.h: Rename from dwarf2read.h.
8547 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8548 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8549 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8550 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8551 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8552 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8553 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8554 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8555 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8556 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8557 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8558 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8559 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8560 Update.
8561 * Makefile.in (COMMON_SFILES): Update.
8562 (HFILES_NO_SRCDIR): Update.
8563
9e35d499
TT
85642020-02-08 Tom Tromey <tom@tromey.com>
8565
8566 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8567 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8568
1eba2311
TT
85692020-02-08 Tom Tromey <tom@tromey.com>
8570
8571 * dwarf2read.h (struct die_info): Don't declare.
8572
e41c2da2
TT
85732020-02-08 Tom Tromey <tom@tromey.com>
8574
8575 * dwarf2read.h (die_info_ptr): Remove typedef.
8576
4fc6c0d5
TT
85772020-02-08 Tom Tromey <tom@tromey.com>
8578
8579 * dwarf2read.c (read_call_site_scope)
8580 (handle_data_member_location, dwarf2_add_member_fn)
8581 (mark_common_block_symbol_computed, read_common_block)
8582 (attr_to_dynamic_prop, partial_die_info::read)
8583 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8584 (dwarf2_symbol_mark_computed, set_die_type): Update.
8585 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8586 method.
8587 (attr_form_is_block): Don't declare.
8588 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8589
cd6c91b4
TT
85902020-02-08 Tom Tromey <tom@tromey.com>
8591
8592 * dwarf2read.c (dwarf2_find_base_address, )
8593 (read_call_site_scope, rust_containing_type)
8594 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8595 (handle_data_member_location, dwarf2_add_member_fn)
8596 (get_alignment, read_structure_type, process_structure_scope)
8597 (mark_common_block_symbol_computed, read_common_block)
8598 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8599 (partial_die_info::read, read_attribute_value, new_symbol)
8600 (lookup_die_type, dwarf2_get_ref_die_offset)
8601 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8602 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8603 (dwarf2_symbol_mark_computed): Update.
8604 * dwarf2/attribute.h (struct attribute) <value_as_address,
8605 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8606 methods.
8607 (value_as_address, attr_form_is_section_offset)
8608 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8609 * dwarf2/attribute.c (attribute::value_as_address)
8610 (attribute::form_is_section_offset, attribute::form_is_constant)
8611 (attribute::form_is_ref): Now methods.
8612
162dce55
TT
86132020-02-08 Tom Tromey <tom@tromey.com>
8614
8615 * dwarf2read.c (struct attribute, DW_STRING)
8616 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8617 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8618 (attr_form_is_block, attr_form_is_section_offset)
8619 (attr_form_is_constant, attr_form_is_ref): Move.
8620 * dwarf2/attribute.h: New file.
8621 * dwarf2/attribute.c: New file, from dwarf2read.c.
8622 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8623
3054dd54
TT
86242020-02-08 Tom Tromey <tom@tromey.com>
8625
8626 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8627 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8628 Move.
8629 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8630 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8631 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8632 abbrev.c.
8633 * dwarf2/abbrev.h: New file.
8634 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8635 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8636
96b79293
TT
86372020-02-08 Tom Tromey <tom@tromey.com>
8638
8639 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8640 (dwarf2_section_size, dwarf2_get_section_info)
8641 (create_signatured_type_table_from_debug_names)
8642 (create_addrmap_from_aranges, read_debug_names_from_section)
8643 (get_gdb_index_contents_from_section, read_comp_unit_head)
8644 (error_check_comp_unit_head, read_abbrev_offset)
8645 (create_debug_type_hash_table, init_cu_die_reader)
8646 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8647 (read_comp_units_from_section, create_cus_hash_table)
8648 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8649 (create_dwp_v2_section, dwarf2_rnglists_process)
8650 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8651 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8652 (read_indirect_string_from_dwz, read_addr_index_1)
8653 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8654 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8655 (fill_in_loclist_baton): Update.
8656 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8657 get_containing_section, get_bfd_owner, get_bfd_section,
8658 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8659 (dwarf2_read_section, get_section_name, get_section_file_name)
8660 (get_containing_section, get_section_bfd_owner)
8661 (get_section_bfd_section, get_section_name, get_section_file_name)
8662 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8663 declare.
8664 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8665 (dwarf2_section_info::get_bfd_owner)
8666 (dwarf2_section_info::get_bfd_section)
8667 (dwarf2_section_info::get_name)
8668 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8669 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8670 (dwarf2_section_info::read): Now methods.
8671 * dwarf-index-write.c (class debug_names): Update.
8672
2c86cff9
TT
86732020-02-08 Tom Tromey <tom@tromey.com>
8674
8675 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8676 Move to dwarf2/section.h.
8677 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8678 (get_section_bfd_section, get_section_name)
8679 (get_section_file_name, get_section_id, get_section_flags)
8680 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8681 dwarf2/section.c.
8682 * dwarf2/section.h: New file.
8683 * dwarf2/section.c: New file, from dwarf2read.c.
8684 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8685
f4382c45
TT
86862020-02-08 Tom Tromey <tom@tromey.com>
8687
8688 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8689 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8690 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8691 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8692 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8693 * dwarf2/leb.h: New file, from dwarf2read.c.
8694 * dwarf2/leb.c: New file, from dwarf2read.c.
8695 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8696 Remove.
8697 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8698 (COMMON_SFILES): Add dwarf2/leb.c.
8699
01840b7a
JB
87002020-02-08 Joel Brobecker <brobecker@adacore.com>
8701
8702 GDB 9.1 released.
8703
dfcb27e4
IB
87042020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8705
8706 PR gdb/25190:
aac66a4c
SM
8707 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8708 * gdb/remote.c (remote_console_output): Update.
8709 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8710 (ui_file_puts): ...this.
8711 * gdb/ui-file.h (ui_file_puts): Add declaration.
8712 * gdb/utils.c (emit_style_escape): Update.
8713 (flush_wrap_buffer): Update.
8714 (fputs_maybe_filtered): Update.
8715 (fputs_unfiltered): Add function.
dfcb27e4 8716
faa17681
IB
87172020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8718
aac66a4c
SM
8719 * gdb/event-loop.c (gdb_wait_for_event): Update.
8720 * gdb/printcmd.c (printf_command): Update.
8721 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8722 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8723 (gdb_os_flush_stderr): Update.
8724 * gdb/remote.c (remote_console_output): Update.
8725 * gdb/ui-file.c (gdb_flush): Rename to...
8726 (ui_file_flush): ...this.
8727 (stderr_file::write): Update.
8728 (stderr_file::puts): Update.
8729 * gdb/ui-file.h (gdb_flush): Rename to...
8730 (ui_file_flush): ...this.
8731 * gdb/utils.c (gdb_flush): Add function.
8732 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8733
5abbbe1d
TT
87342020-02-07 Tom Tromey <tromey@adacore.com>
8735
8736 PR breakpoints/24915:
8737 * source.c (find_and_open_source): Do not check basenames_may_differ.
8738
919adfe8
TT
87392020-02-07 Tom Tromey <tom@tromey.com>
8740
8741 * README: Update gdbserver documentation.
8742 * gdbserver: Move to top level.
8743 * configure.tgt (build_gdbserver): Remove.
8744 * configure.ac: Remove --enable-gdbserver.
8745 * configure: Rebuild.
8746 * Makefile.in (distclean): Don't mention gdbserver.
8747
1d5d29e7
SV
87482020-02-06 Shahab Vahedi <shahab@synopsys.com>
8749
8750 * source-cache.c (source_cache::ensure): Surround
8751 get_plain_source_lines with a try/catch.
8752 (source_cache::get_line_charpos): Get rid of try/catch
8753 and only check for the return value of "ensure".
8754 * tui/tui-source.c (tui_source_window::set_contents):
8755 Simplify "nlines" calculation.
8756
6eb1129c
SV
87572020-02-06 Shahab Vahedi <shahab@synopsys.com>
8758
8759 * MAINTAINERS (Write After Approval): Add myself.
8760
c6a42d11
CB
87612020-02-05 Christian Biesinger <cbiesinger@google.com>
8762
8763 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8764 function call.
8765
c8ecdda6
CB
87662020-02-05 Christian Biesinger <cbiesinger@google.com>
8767
8768 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8769
f6480e70
MR
87702020-02-05 Maciej W. Rozycki <macro@wdc.com>
8771
8772 * nat/riscv-linux-tdesc.h: New file.
8773 * nat/riscv-linux-tdesc.c: New file, taking code from...
8774 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8775 ... here.
8776 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8777 NATDEPFILES.
8778
dcc9fbc6
AB
87792020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8780
8781 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8782 we don't set the fake simulator ptid to the null_ptid.
8783
719546c4
SM
87842020-02-03 Simon Marchi <simon.marchi@efficios.com>
8785
8786 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8787 * gdbthread.h (class thread_info) <resumed>: Likewise.
8788 * infrun.c (resume_1): Likewise.
8789 (proceed): Likewise.
8790 (infrun_thread_stop_requested): Likewise.
8791 (stop_all_threads): Likewise.
8792 (handle_inferior_event): Likewise.
8793 (restart_threads): Likewise.
8794 (finish_step_over): Likewise.
8795 (keep_going_stepped_thread): Likewise.
8796 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8797 (linux_handle_extended_wait): Likewise.
8798 * record-btrace.c (get_thread_current_frame_id): Likewise.
8799 * record-full.c (record_full_wait_1): Likewise.
8800 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8801 * target.c (target_resume): Likewise.
8802 * thread.c (set_running_thread): Likewise.
8803
e409c542
AKS
88042020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8805
8806 * f-valprint.c (f77_print_array_1): Changed datatype of index
8807 variable to LONGEST from int to enable it to contain bound
8808 values correctly.
8809
ee98c0da
MR
88102020-02-03 Maciej W. Rozycki <macro@wdc.com>
8811
8812 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8813 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8814 offsets according to FLEN determined.
8815 (riscv_linux_nat_target::read_description): Determine FLEN
8816 dynamically.
8817 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8818 according to FLEN determined.
8819 (riscv_linux_nat_target::store_registers): Likewise.
8820
aa66aac4
SV
88212020-02-01 Shahab Vahedi <shahab@synopsys.com>
8822
8823 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8824 when reg->group is empty and reggroup is not.
8825
fd9faca8
TT
88262020-01-31 Tom Tromey <tromey@adacore.com>
8827
8828 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8829 Call beneath target's mourn_inferior after unpushing.
8830
42330a68
AB
88312020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8832
8833 PR tui/9765
8834 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8835 have enough lines to fill the screen, still return the lowest
8836 address we found.
8837
7a27a45b
AB
88382020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8839
8840 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8841 '-', '<', and '>' commands.
8842
c47f70e2
PA
88432020-01-29 Pedro Alves <palves@redhat.com>
8844 Sergio Durigan Junior <sergiodj@redhat.com>
8845
8846 * infcmd.c (construct_inferior_arguments): Assert that
8847 'argc' is greater than 0.
8848
5133a315
LM
88492020-01-29 Luis Machado <luis.machado@linaro.org>
8850
8851 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8852 (BRK_INSN_MASK): Define to 0xd4200000.
8853 (aarch64_program_breakpoint_here_p): New function.
8854 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8855 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8856 breakpoint.c.
8857 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8858 breakpoint.h
8859 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8860 call gdbarch_program_breakpoint_here_p.
8861 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8862 default_program_breakpoint_here_p, changed return type to bool and
8863 simplified.
8864 * breakpoint.h (program_breakpoint_here): Moved prototype to
8865 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8866 return type to bool.
8867 * gdbarch.c: Regenerate.
8868 * gdbarch.h: Regenerate.
8869 * gdbarch.sh (program_breakpoint_here_p): New method.
8870 * infrun.c (handle_signal_stop): Call
8871 gdbarch_program_breakpoint_here_p.
8872
168f8c6b
TT
88732020-01-26 Tom Tromey <tom@tromey.com>
8874
8875 * ctfread.c (struct ctf_fp_info): Reindent.
8876 (_initialize_ctfread): Remove.
8877
128a391f
TT
88782020-01-26 Tom Tromey <tom@tromey.com>
8879
8880 * psymtab.c (partial_map_expand_apply)
8881 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8882 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8883 (psym_print_stats, psym_expand_symtabs_for_function)
8884 (psym_map_symbol_filenames, psym_map_matching_symbols)
8885 (psym_expand_symtabs_matching)
8886 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8887 (maintenance_check_psymtabs): Use new methods.
8888 * psympriv.h (struct partial_symtab) <readin_p,
8889 get_compunit_symtab>: New methods.
8890 <readin, compunit_symtab>: Remove members.
8891 (struct standard_psymtab): New.
8892 (struct legacy_psymtab): Derive from standard_psymtab.
8893 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8894 standard_psymtab.
8895 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8896
0494dbec
TT
88972020-01-26 Tom Tromey <tom@tromey.com>
8898
8899 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8900 read_dependencies. Add assert.
8901 * psymtab.c (partial_symtab::read_dependencies): New method.
8902 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8903 method.
8904 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8905 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8906 read_dependencies.
8907 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8908 Add assert.
8909
8566b89b
TT
89102020-01-26 Tom Tromey <tom@tromey.com>
8911
8912 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8913 Call expand_psymtab.
8914 (xcoff_read_symtab): Call expand_psymtab.
8915 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8916 legacy_expand_psymtab.
8917 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8918 method.
8919 (struct legacy_psymtab) <expand_psymtab>: Implement.
8920 <legacy_expand_psymtab>: New member.
8921 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8922 (parse_partial_symbols): Set legacy_expand_psymtab.
8923 (psymtab_to_symtab_1): Change argument order. Call
8924 expand_psymtab.
8925 (new_psymtab): Set legacy_expand_psymtab.
8926 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8927 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8928 expand_psymtab.
8929 (dwarf2_psymtab::expand_psymtab): Rename from
8930 psymtab_to_symtab_1. Call expand_psymtab.
8931 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8932 (dbx_end_psymtab): Likewise.
8933 (dbx_psymtab_to_symtab_1): Change argument order. Call
8934 expand_psymtab.
8935 (dbx_read_symtab): Call expand_psymtab.
8936 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8937 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8938 (ctf_psymtab::read_symtab): Call expand_psymtab.
8939
077cbab2
TT
89402020-01-26 Tom Tromey <tom@tromey.com>
8941
8942 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8943 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8944 messages.
8945 * mdebugread.c (mdebug_read_symtab): Remove prints.
8946 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8947 assert.
8948 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8949
891813be
TT
89502020-01-26 Tom Tromey <tom@tromey.com>
8951
8952 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8953 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8954 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8955 legacy_symtab.
8956 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8957 * psymtab.c (psymtab_to_symtab): Call method.
8958 (dump_psymtab): Update.
8959 * psympriv.h (struct partial_symtab): Add virtual destructor.
8960 <read_symtab>: New method.
8961 (struct legacy_symtab): New.
8962 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8963 (struct pst_map) <pst>: Now a legacy_psymtab.
8964 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8965 (new_psymtab): Use legacy_psymtab.
8966 * dwarf2read.h (struct dwarf2_psymtab): New.
8967 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8968 * dwarf2read.c (dwarf2_create_include_psymtab)
8969 (dwarf2_build_include_psymtabs, create_type_unit_group)
8970 (create_partial_symtab, process_psymtab_comp_unit_reader)
8971 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8972 (set_partial_user): Use dwarf2_psymtab.
8973 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8974 (psymtab_to_symtab_1, process_full_comp_unit)
8975 (process_full_type_unit, dwarf2_ranges_read)
8976 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8977 (dwarf_decode_lines): Use dwarf2_psymtab.
8978 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8979 (add_address_entry_worker, write_one_signatured_type)
8980 (recursively_count_psymbols, recursively_write_psymbols)
8981 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8982 (write_debug_names): Likewise.
8983 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8984 <pst>: Now a legacy_psymtab.
8985 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8986 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8987 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8988 * ctfread.c (struct ctf_psymtab): New.
8989 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8990 ctf_psymtab.
8991 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8992 (create_partial_symtab): Return a ctf_psymtab.
8993 (scan_partial_symbols): Update.
8994
c3693a1d
TT
89952020-01-26 Tom Tromey <tom@tromey.com>
8996
8997 * xcoffread.c (xcoff_start_psymtab): Use new.
8998 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8999 renamed from start_psymtab_common.
9000 * psympriv.h (struct partial_symtab): Add new constructor.
9001 (start_psymtab_common): Don't declare.
9002 * mdebugread.c (parse_partial_symbols): Use new.
9003 * dwarf2read.c (create_partial_symtab): Use new.
9004 * dbxread.c (start_psymtab): Use new.
9005 * ctfread.c (create_partial_symtab): Use new.
9006
32caafd0
TT
90072020-01-26 Tom Tromey <tom@tromey.com>
9008
9009 * xcoffread.c (xcoff_end_psymtab): Use new.
9010 * psymtab.c (start_psymtab_common): Use new.
9011 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9012 Update.
9013 * psympriv.h (struct partial_symtab): Add parameters to
9014 constructor. Don't inline.
9015 (allocate_psymtab): Don't declare.
9016 * mdebugread.c (new_psymtab): Use new.
9017 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9018 * dbxread.c (dbx_end_psymtab): Use new.
9019
abaa2f23
TT
90202020-01-26 Tom Tromey <tom@tromey.com>
9021
9022 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9023 allocate_psymtab. Update documentation.
9024 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9025 allocate_psymtab. Do not use new.
9026 (allocate_psymtab): Use new. Update.
9027
6d94535f
TT
90282020-01-26 Tom Tromey <tom@tromey.com>
9029
9030 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9031 * psymtab.c (psym_print_stats): Update.
9032 * psympriv.h (struct partial_symtab) <readin,
9033 psymtabs_addrmap_supported, anonymous>: Now bool.
9034 * mdebugread.c (psymtab_to_symtab_1): Update.
9035 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9036 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9037 (process_full_comp_unit, process_full_type_unit): Update.
9038 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9039 * ctfread.c (psymtab_to_symtab): Update.
9040
6f17252b
TT
90412020-01-26 Tom Tromey <tom@tromey.com>
9042
9043 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9044 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9045 * psymtab.c (psymtab_storage): Delete psymtabs.
9046 (psymtab_storage::allocate_psymtab): Use new.
9047 (psymtab_storage::discard_psymtab): Use delete.
9048 * psympriv.h (struct partial_symtab): Add constructor and
9049 initializers.
9050
f6f1cebc
TT
90512020-01-26 Tom Tromey <tom@tromey.com>
9052
9053 * machoread.c: Do not include psympriv.h.
9054
e47e48f6
PW
90552020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9056
9057 * NEWS: Mention the new option and the set/show commands.
9058
a2fedca9
PW
90592020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9060
9061 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9062 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9063 (validate_exec_file): New variables, enums, functions.
9064 (exec_file_locate_attach, print_section_info): Style the filenames.
9065 (_initialize_exec): Install show_exec_file_mismatch_command and
9066 set_exec_file_mismatch_command.
9067 * gdbcore.h (validate_exec_file): Declare.
9068 * infcmd.c (attach_command): Call validate_exec_file.
9069 * remote.c ( remote_target::remote_add_inferior): Likewise.
9070
7ffa82e1
AB
90712020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9072
9073 * frame.c (find_frame_sal): Move call to get_next_frame into more
9074 inner scope.
9075 * inline-frame.c (inilne_state) <inline_state>: Update argument
9076 types.
9077 (inilne_state) <skipped_symbol>: Rename to...
9078 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9079 (skip_inline_frames): Build vector of skipped symbols and use this
9080 to reate the inline_state.
9081 (inline_skipped_symbol): Add a comment and some assertions, fetch
9082 skipped symbol from the list.
9083
3d92a3e3
AB
90842020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9085
9086 * buildsym.c (lte_is_less_than): Delete.
9087 (buildsym_compunit::end_symtab_with_blockvector): Create local
9088 lambda function to sort line table entries, and use
9089 std::stable_sort instead of std::sort.
9090 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9091 markers when looking for a previous line.
9092
94a72be7
AB
90932020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9094
9095 * dwarf2read.c (lnp_state_machine::record_line): Include
9096 end_sequence parameter in debug print out. Record the line if we
9097 are at an end_sequence marker even if it's not the start of a
9098 statement.
9099 * symmisc.c (maintenance_print_one_line_table): Print end of
9100 sequence markers with 'END' not '0'.
9101
53af73bf
PA
91022020-01-24 Pedro Alves <palves@redhat.com>
9103
9104 PR gdb/25410
9105 * thread.c (scoped_restore_current_thread::restore): Use
9106 switch_to_inferior_no_thread.
9107 * exec.c: Include "progspace-and-thread.h".
9108 (add_target_sections, remove_target_sections):
9109 scoped_restore_current_pspace_and_thread instead of
9110 scoped_restore_current_thread.
9111 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9112 and aspace to the inferior before calling clone_program_space.
9113 Remove stale comment.
9114
3050c6f4
CB
91152020-01-24 Christian Biesinger <cbiesinger@google.com>
9116
9117 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9118 (arm_netbsd_nat_target::fetch_registers): ...this.
9119 (arm_nbsd_nat_target::store_registers): Rename to...
9120 (arm_netbsd_nat_target::store_registers): ...this.
9121
73685c7e
CB
91222020-01-24 Christian Biesinger <cbiesinger@google.com>
9123
9124 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9125 register_t.
9126
89203d40
CB
91272020-01-24 Christian Biesinger <cbiesinger@google.com>
9128
9129 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9130 Update comment.
9131 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9132 Likewise.
9133 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9134 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9135 the correct replacement (iterate_over_regset_sections).
9136 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9137 Update comment.
9138
1ba1ac88
AB
91392020-01-24 Graham Markall <graham.markall@embecosm.com>
9140
9141 PR gdb/23718
9142 * gdb/python/python.c (execute_gdb_command): Call
9143 async_enable_stdin in catch block.
9144
f3364a6d
AB
91452020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9146
9147 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9148 SWITCH_THRU_ALL_UIS.
9149
733d0a67
AB
91502020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9151
9152 PR tui/9765
9153 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9154 comment, add extra parameter, and update to store previous symbol
9155 when appropriate.
9156 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9157 add extra parameter.
9158 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9159 remove unneeded parameter, add try/catch around gdb_print_insn,
9160 rewrite to add items to asm_lines vector.
9161 (tui_find_backward_disassembly_start_address): New function.
9162 (tui_find_disassembly_address): Updated throughout.
9163 (tui_disasm_window::set_contents): Update for changes to
9164 tui_disassemble.
9165 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9166 number of lines to scroll.
9167
b3b3bada
SM
91682020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9169
9170 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9171 (SECT_OFF_DATA): Likewise.
9172 (SECT_OFF_RODATA): Likewise.
9173 (SECT_OFF_TEXT): Likewise.
9174 (SECT_OFF_BSS): Likewise.
9175 (struct objfile) <text_section_offset, data_section_offset>: New
9176 methods.
9177 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9178 objfile::text_section_offset.
9179 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9180 * coffread.c (coff_symtab_read): Likewise.
9181 (enter_linenos): Likewise.
9182 (process_coff_symbol): Likewise.
9183 * ctfread.c (get_objfile_text_range): Likewise.
9184 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9185 Use objfile::data_section_offset.
9186 * dwarf2-frame.c (execute_cfa_program): Use
9187 objfile::text_section_offset.
9188 (dwarf2_frame_find_fde): Likewise.
9189 * dwarf2read.c (create_addrmap_from_index): Likewise.
9190 (create_addrmap_from_aranges): Likewise.
9191 (dw2_find_pc_sect_compunit_symtab): Likewise.
9192 (process_psymtab_comp_unit_reader): Likewise.
9193 (add_partial_symbol): Likewise.
9194 (add_partial_subprogram): Likewise.
9195 (process_full_comp_unit): Likewise.
9196 (read_file_scope): Likewise.
9197 (read_func_scope): Likewise.
9198 (read_lexical_block_scope): Likewise.
9199 (read_call_site_scope): Likewise.
9200 (dwarf2_rnglists_process): Likewise.
9201 (dwarf2_ranges_process): Likewise.
9202 (dwarf2_ranges_read): Likewise.
9203 (dwarf_decode_lines_1): Likewise.
9204 (new_symbol): Likewise.
9205 (dwarf2_fetch_die_loc_sect_off): Likewise.
9206 (dwarf2_per_cu_text_offset): Likewise.
9207 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9208 * hppa-tdep.c (read_unwind_info): Likewise.
9209 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9210 * psympriv.h (struct partial_symtab): Likewise.
9211 * psymtab.c (find_pc_sect_psymtab): Likewise.
9212 * solib-svr4.c (enable_break): Likewise.
9213 * stap-probe.c (relocate_address): Use
9214 objfile::data_section_offset.
9215 * xcoffread.c (enter_line_range): Use
9216 objfile::text_section_offset.
9217 (read_xcoff_symtab): Likewise.
9218
ab53f382
SM
92192020-01-23 Simon Marchi <simon.marchi@efficios.com>
9220
9221 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9222 declaration to narrower scopes.
9223
e7eee665
SM
92242020-01-23 Simon Marchi <simon.marchi@efficios.com>
9225
9226 * darwin-nat.h (struct darwin_exception_msg, enum
9227 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9228 Move up.
9229 (class darwin_nat_target) <wait_1, check_new_threads,
9230 decode_exception_message, decode_message, stop_inferior,
9231 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9232 * darwin-nat.c (darwin_check_new_threads): Rename to...
9233 (darwin_nat_target::check_new_threads): ... this.
9234 (darwin_suspend_inferior_it): Remove.
9235 (darwin_decode_exception_message): Rename to...
9236 (darwin_nat_target::decode_exception_message): ... this.
9237 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9238 (darwin_decode_message): Rename to...
9239 (darwin_nat_target::decode_message): ... this.
9240 (cancel_breakpoint): Rename to...
9241 (darwin_nat_target::cancel_breakpoint): ... this.
9242 (darwin_wait): Rename to...
9243 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9244 instead of iterate_over_inferiors.
9245 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9246 (darwin_stop_inferior): Rename to...
9247 (darwin_nat_target::stop_inferior): ... this.
9248 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9249 (darwin_init_thread_list): Rename to...
9250 (darwin_nat_target::init_thread_list): ... this.
9251 (darwin_ptrace_him): Rename to...
9252 (darwin_nat_target::ptrace_him): ... this.
9253 (darwin_nat_target::create_inferior): Pass lambda function to
9254 fork_inferior.
9255 (darwin_nat_target::detach): Call stop_inferior instead of
9256 darwin_stop_inferior.
9257 * fork-inferior.h (fork_inferior): Change init_trace_fun
9258 parameter to gdb::function_view.
9259 * fork-inferior.c (fork_inferior): Likewise.
9260
c162ed3e
HD
92612020-01-23 Hannes Domani <ssbssa@yahoo.de>
9262
9263 * i386-cygwin-tdep.c (core_process_module_section): Update.
9264 * windows-nat.c (struct lm_info_windows): Add text_offset.
9265 (windows_xfer_shared_libraries): Update.
9266 * windows-tdep.c (windows_xfer_shared_library):
9267 Add text_offset_cached argument.
9268 * windows-tdep.h (windows_xfer_shared_library): Update.
9269
a1237872
SM
92702020-01-21 Simon Marchi <simon.marchi@efficios.com>
9271
9272 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9273
b3ee6dd9
SM
92742020-01-21 Simon Marchi <simon.marchi@efficios.com>
9275
9276 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9277 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9278 replace with range-based for.
9279 (gdbsim_interrupt_inferior): Remove.
9280 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9281 with a range-based for. Inline code from
9282 gdbsim_interrupt_inferior.
9283
f9fac3c8
SM
92842020-01-21 Simon Marchi <simon.marchi@efficios.com>
9285
9286 * infrun.c (proceed): Fix indentation.
9287
f6474de9
TT
92882020-01-21 Tom Tromey <tromey@adacore.com>
9289
9290 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9291 * python/python.c (python_extension_ops): Update.
9292 (gdbpy_colorize): New function.
9293 * python/lib/gdb/__init__.py (colorize): New function.
9294 * extension.h (ext_lang_colorize): Declare.
9295 * extension.c (ext_lang_colorize): New function.
9296 * extension-priv.h (struct extension_language_ops) <colorize>: New
9297 member.
9298 * cli/cli-style.c (_initialize_cli_style): Update help text.
9299
f0c702d4
LM
93002020-01-21 Luis Machado <luis.machado@linaro.org>
9301
9302 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9303 <cond>: Change type to bool.
9304 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9305 (aarch64_displaced_step_cb): Likewise.
9306 (aarch64_displaced_step_tb): Likewise.
9307
1ab139e5
LM
93082020-01-21 Luis Machado <luis.machado@linaro.org>
9309
9310 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9311 output.
9312
0c271889
LM
93132020-01-21 Luis Machado <luis.machado@linaro.org>
9314
9315 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9316 <pc_adjust>: Adjust the documentation.
9317 (aarch64_displaced_step_fixup): Check if PC really moved before
9318 adjusting it.
9319
4d89c1c7
TT
93202020-01-19 Tom Tromey <tom@tromey.com>
9321
9322 * disasm.c (~gdb_disassembler): New destructor.
9323 (gdb_buffered_insn_length): Call disassemble_free_target.
9324 * disasm.h (class gdb_disassembler): Declare destructor. Use
9325 DISABLE_COPY_AND_ASSIGN.
9326
c0ab21c2
TT
93272020-01-19 Tom Tromey <tom@tromey.com>
9328
9329 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9330 (die_reader_func_ftype): Remove.
9331 (cutu_reader): New class.
9332 (dw2_get_file_names_reader): Remove "data" parameter.
9333 (dw2_get_file_names): Use cutu_reader.
9334 (create_debug_type_hash_table): Update.
9335 (read_cutu_die_from_dwo): Update comment.
9336 (lookup_dwo_unit): Add dwo_name parameter.
9337 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9338 die_reader_func_ftype and data parameters.
9339 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9340 Remove die_reader_func_ftype and data parameters.
9341 (~cutu_reader): New; from init_cutu_and_read_dies.
9342 (cutu_reader::cutu_reader): Rename from
9343 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9344 and data parameters.
9345 (init_cutu_and_read_dies_simple): Remove.
9346 (struct process_psymtab_comp_unit_data): Remove.
9347 (process_psymtab_comp_unit_reader): Remove data parameter; add
9348 want_partial_unit and pretend_language parameters.
9349 (process_psymtab_comp_unit): Use cutu_reader.
9350 (build_type_psymtabs_reader): Remove data parameter.
9351 (build_type_psymtabs_1): Use cutu_reader.
9352 (process_skeletonless_type_unit): Likewise.
9353 (load_partial_comp_unit_reader): Remove.
9354 (load_partial_comp_unit): Use cutu_reader.
9355 (load_full_comp_unit_reader): Remove.
9356 (load_full_comp_unit): Use cutu_reader.
9357 (struct create_dwo_cu_data): Remove.
9358 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9359 dwo_unit parameters.
9360 (create_cus_hash_table): Use cutu_reader.
9361 (struct dwarf2_read_addr_index_data): Remove.
9362 (dwarf2_read_addr_index_reader): Remove.
9363 (dwarf2_read_addr_index): Use cutu_reader.
9364 (read_signatured_type_reader): Remove.
9365 (read_signatured_type): Use cutu_reader.
9366
45bbae5c
TT
93672020-01-19 Tom Tromey <tom@tromey.com>
9368
9369 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9370 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9371 (tui_wrefresh): Declare.
9372 * tui/tui-wingeneral.c (suppress_output): New global.
9373 (tui_suppress_output, ~tui_suppress_output): New constructor and
9374 destructor.
9375 (tui_wrefresh): New function.
9376 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9377 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9378 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9379 method.
9380 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9381 tui_wrefresh.
9382 (tui_data_window::no_refresh): New method.
9383 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9384 (tui_reg_command): Use tui_suppress_output
9385 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9386 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9387 method.
9388 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9389
4f13c1c0
TT
93902020-01-19 Tom Tromey <tom@tromey.com>
9391
9392 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9393 Handle case where symtab is null.
9394
fa47e446
SM
93952020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9396
9397 * linux-fork.c (one_fork_p): Simplify.
9398
26f42329
SM
93992020-01-17 Simon Marchi <simon.marchi@efficios.com>
9400
9401 * top.c (struct qt_args): Remove.
9402 (kill_or_detach): Change return type to void, replace `void *`
9403 parameter with a proper one.
9404 (print_inferior_quit_action): Likewise.
9405 (quit_confirm): Use range-based for loop to iterate over inferiors.
9406 (quit_force): Likewise.
9407
a9ac81b1
SM
94082020-01-17 Simon Marchi <simon.marchi@efficios.com>
9409
9410 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9411 `void *` parameter with proper parameters.
9412 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9413 (print_one_inferior): Change return type to void, replace `void *`
9414 parameter with proper parameters.
9415 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9416 inferiors.
9417 (get_other_inferior): Remove.
9418 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9419 inferiors.
9420
788eca49
SM
94212020-01-17 Simon Marchi <simon.marchi@efficios.com>
9422
9423 * mi/mi-interp.c (report_initial_inferior): Remove.
9424 (mi_interp::init): Use range-based for to iterate over inferiors.
9425
d9bc85b6
SM
94262020-01-17 Simon Marchi <simon.marchi@efficios.com>
9427
9428 * python/py-inferior.c (build_inferior_list): Remove.
9429 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9430
40c94099
CB
94312020-01-16 Christian Biesinger <cbiesinger@google.com>
9432
9433 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9434 (btrace_stitch_trace): Likewise.
9435 * charset.c (intermediate_encoding): Likewise (vaild).
9436 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9437 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9438 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9439
e0cdfe3c
HD
94402020-01-16 Hannes Domani <ssbssa@yahoo.de>
9441
9442 * windows-tdep.c (windows_get_tlb_type):
9443 Add rtl_user_process_parameters type.
9444
790f1718 94452020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9446 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9447
9448 PR build/24805
9449 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9450 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9451 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9452 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9453 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9454 (ps_plog): Redeclare exported functions with default visibility.
9455
3112ed97
NA
94562020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9457
9458 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9459 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9460
8dc3273e
SM
94612020-01-15 Simon Marchi <simon.marchi@efficios.com>
9462
9463 * infcmd.c (post_create_inferior): Use get_thread_regcache
9464 instead of get_current_regcache.
9465
ff47f4f0
TT
94662020-01-14 Tom Tromey <tom@tromey.com>
9467
9468 PR symtab/12535:
9469 * python/python.c (gdbpy_decode_line): Treat empty string the same
9470 as no argument.
9471
975f45b7
TT
94722020-01-14 Tom Tromey <tom@tromey.com>
9473
9474 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9475
25e57356
TT
94762020-01-14 Tom Tromey <tom@tromey.com>
9477
9478 * nat/linux-btrace.c: Don't include <config.h>.
9479 * nat/linux-ptrace.c: Don't include <config.h>.
9480 * nat/x86-linux-dregs.c: Don't include <config.h>.
9481
05ea2a05
TT
94822020-01-14 Tom Tromey <tom@tromey.com>
9483
9484 * configure: Rebuild.
9485 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9486
01027315
TT
94872020-01-14 Tom Tromey <tom@tromey.com>
9488
9489 * nat/x86-linux-dregs.c: Include configh.h.
9490 * nat/linux-ptrace.c: Include configh.h.
9491 * nat/linux-btrace.c: Include configh.h.
9492 * defs.h: Include config.h, bfd.h.
9493 * configure.ac: Don't source common.host.
9494 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9495 * configure: Rebuild.
9496 * acinclude.m4: Update path.
9497 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9498 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9499 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9500 (CLIBS): Add LIBSUPPORT.
9501 (CDEPS): Likewise.
9502 (COMMON_SFILES): Remove gdbsupport files.
9503 (HFILES_NO_SRCDIR): Likewise.
9504 (stamp-version): Update path to create-version.sh.
9505 (ALLDEPFILES): Remove gdbsupport files.
9506
b2ceabe8
TT
95072020-01-14 Tom Tromey <tom@tromey.com>
9508
9509 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9510 USE_WIN32API when needed.
9511 * configure.ac (USE_WIN32API): Don't define.
9512 (WIN32LIBS): Use WIN32APILIBS.
9513 * configure: Rebuild.
9514
25c51f71
TT
95152020-01-14 Tom Tromey <tom@tromey.com>
9516
9517 * configure: Rebuild.
9518 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9519
717c684d
BE
95202020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9521
9522 * skip.c (skip_function_command): Make skip w/o arguments use the
9523 name of the inlined function if pc is inside any inlined function.
9524
7da6a5b9
LM
95252020-01-14 Luis Machado <luis.machado@linaro.org>
9526
9527 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9528 * infrun.c (resume_1): Likewise.
9529 (handle_inferior_event): Remove stale comment.
9530 * linux-nat.c (linux_nat_target::resume): Update comments.
9531 (save_stop_reason): Likewise.
9532 (linux_nat_filter_event): Likewise.
9533 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9534
44e4c775
AB
95352020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9536
9537 * elfread.c (record_minimal_symbol): Set section index to 0 for
9538 non-allocatable sections.
9539
18a8505e
AT
9540
95412020-01-13 Ali Tamur <tamur@google.com>
9542
9543 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9544 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9545 to gdb::optional. Update comments.
9546 (dwo_file): Update comments.
9547 (read_attribute): Update API to take an additional out parameter,
9548 need_reprocess. This is used to mark attributes that need other
9549 attributes (e.g. str_offsets_base) for correct computation which may not
9550 have been read yet.
9551 (read_attribute_reprocess): New function declaration.
9552 (read_addr_index): Likewise.
9553 (read_dwo_str_index): Likewise.
9554 (read_stub_str_index): Likewise.
9555 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9556 (lookup_addr_base): New function definition.
9557 (lookup_ranges_base): Likewise.
9558 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9559 lookup_ranges_base.
9560 (init_cutu_and_read_dies): Update comments.
9561 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9562 unit. This is used to inherit parent's str_offsets_base and addr_base.
9563 Update comments.
9564 (init_cutu_and_read_dies_simple): Reflect API changes.
9565 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9566 (create_cus_hash_table): Change API to take parent compile unit.
9567 Reflect API changes.
9568 (open_and_init_dwo_file): Reflect API changes.
9569 (dwarf2_get_pc_bounds): Update comments.
9570 (dwarf2_record_block_ranges): Likewise.
9571 (read_full_die_1): Change implementation to reprocess attributes that
9572 need str_offsets_base and addr_base.
9573 (partial_die_info::read): Likewise.
9574 (read_attribute_reprocess): New function definition.
9575 (read_attribute_value): Change API to take an additional out parameter,
9576 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9577 when a non-dwo compile unit has index based attributes.
9578 (read_attribute): Reflect API changes.
9579 (read_addr_index_1): Reflect API changes. Update comments.
9580 (dwarf2_read_addr_index_data): Reflect API changes.
9581 (dwarf2_read_addr_index): Likewise.
9582 (read_str_index): Change API and implementation. This becomes a helper
9583 to be used by the new string index related methods. Update error
9584 message and comments.
9585 (read_dwo_str_index): New function definition.
9586 (read_stub_str_index): Likewise.
9587 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9588 * symfile.h (dwarf2_debug_sections): Likewise.
9589 * xcoffread.c (dwarf2_debug_sections): Likewise.
9590
0cac9354
SM
95912020-01-13 Simon Marchi <simon.marchi@efficios.com>
9592
9593 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9594 core_reg_sect type to gdb_byte *.
9595 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9596 * cris-tdep.c (fetch_core_registers): Likewise.
9597 * corelow.c (core_target::get_core_register_section): Change
9598 type of `contents` to gdb::byte_vector.
9599
9a6d629c
AB
96002020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9601
9602 * tui/tui-wingeneral.c (box_win): Position the title in the center
9603 of the border.
9604
d8b2f9e3
SM
96052020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9606
9607 * corelow.c (core_target::get_core_register_section): Use
9608 std::vector instead of alloca.
9609
bb564c58
SM
96102020-01-13 Simon Marchi <simon.marchi@efficios.com>
9611
9612 * warning.m4: Add -Wmissing-declarations to build_warnings.
9613 * configure: Re-generate.
9614
6b366111
SM
96152020-01-13 Simon Marchi <simon.marchi@efficios.com>
9616
9617 * python/python.c (init__gdb_module): Add declaration.
9618
6c265988
SM
96192020-01-13 Simon Marchi <simon.marchi@efficios.com>
9620
9621 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9622 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9623 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9624 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9625 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9626 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9627 * ada-exp.y (_initialize_ada_exp): Add declaration.
9628 * ada-lang.c (_initialize_ada_language): Add declaration.
9629 * ada-tasks.c (_initialize_tasks): Add declaration.
9630 * agent.c (_initialize_agent): Add declaration.
9631 * aix-thread.c (_initialize_aix_thread): Add declaration.
9632 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9633 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9634 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9635 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9636 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9637 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9638 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9639 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9640 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9641 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9642 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9643 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9644 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9645 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9646 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9647 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9648 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9649 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9650 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9651 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9652 * annotate.c (_initialize_annotate): Add declaration.
9653 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9654 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9655 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9656 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9657 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9658 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9659 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9660 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9661 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9662 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9663 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9664 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9665 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9666 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9667 * auto-load.c (_initialize_auto_load): Add declaration.
9668 * auxv.c (_initialize_auxv): Add declaration.
9669 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9670 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9671 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9672 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9673 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9674 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9675 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9676 * breakpoint.c (_initialize_breakpoint): Add declaration.
9677 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9678 * btrace.c (_initialize_btrace): Add declaration.
9679 * charset.c (_initialize_charset): Add declaration.
9680 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9681 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9682 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9683 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9684 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9685 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9686 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9687 * coffread.c (_initialize_coffread): Add declaration.
9688 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9689 * compile/compile.c (_initialize_compile): Add declaration.
9690 * complaints.c (_initialize_complaints): Add declaration.
9691 * completer.c (_initialize_completer): Add declaration.
9692 * copying.c (_initialize_copying): Add declaration.
9693 * corefile.c (_initialize_core): Add declaration.
9694 * corelow.c (_initialize_corelow): Add declaration.
9695 * cp-abi.c (_initialize_cp_abi): Add declaration.
9696 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9697 * cp-support.c (_initialize_cp_support): Add declaration.
9698 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9699 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9700 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9701 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9702 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9703 * ctfread.c (_initialize_ctfread): Add declaration.
9704 * d-lang.c (_initialize_d_language): Add declaration.
9705 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9706 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9707 * dbxread.c (_initialize_dbxread): Add declaration.
9708 * dcache.c (_initialize_dcache): Add declaration.
9709 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9710 * disasm.c (_initialize_disasm): Add declaration.
9711 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9712 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9713 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9714 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9715 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9716 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9717 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9718 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9719 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9720 * elfread.c (_initialize_elfread): Add declaration.
9721 * exec.c (_initialize_exec): Add declaration.
9722 * extension.c (_initialize_extension): Add declaration.
9723 * f-lang.c (_initialize_f_language): Add declaration.
9724 * f-valprint.c (_initialize_f_valprint): Add declaration.
9725 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9726 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9727 * filesystem.c (_initialize_filesystem): Add declaration.
9728 * findcmd.c (_initialize_mem_search): Add declaration.
9729 * findvar.c (_initialize_findvar): Add declaration.
9730 * fork-child.c (_initialize_fork_child): Add declaration.
9731 * frame-base.c (_initialize_frame_base): Add declaration.
9732 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9733 * frame.c (_initialize_frame): Add declaration.
9734 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9735 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9736 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9737 * gcore.c (_initialize_gcore): Add declaration.
9738 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9739 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9740 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9741 * gdbarch.c (_initialize_gdbarch): Add declaration.
9742 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9743 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9744 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9745 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9746 * go-lang.c (_initialize_go_language): Add declaration.
9747 * go32-nat.c (_initialize_go32_nat): Add declaration.
9748 * guile/guile.c (_initialize_guile): Add declaration.
9749 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9750 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9751 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9752 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9753 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9754 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9755 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9756 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9757 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9758 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9759 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9760 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9761 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9762 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9763 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9764 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9765 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9766 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9767 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9768 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9769 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9770 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9771 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9772 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9773 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9774 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9775 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9776 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9777 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9778 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9779 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9780 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9781 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9782 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9783 * infcall.c (_initialize_infcall): Add declaration.
9784 * infcmd.c (_initialize_infcmd): Add declaration.
9785 * inflow.c (_initialize_inflow): Add declaration.
9786 * infrun.c (_initialize_infrun): Add declaration.
9787 * interps.c (_initialize_interpreter): Add declaration.
9788 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9789 * jit.c (_initialize_jit): Add declaration.
9790 * language.c (_initialize_language): Add declaration.
9791 * linux-fork.c (_initialize_linux_fork): Add declaration.
9792 * linux-nat.c (_initialize_linux_nat): Add declaration.
9793 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9794 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9795 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9796 * m2-lang.c (_initialize_m2_language): Add declaration.
9797 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9798 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9799 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9800 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9801 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9802 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9803 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9804 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9805 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9806 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9807 * machoread.c (_initialize_machoread): Add declaration.
9808 * macrocmd.c (_initialize_macrocmd): Add declaration.
9809 * macroscope.c (_initialize_macroscope): Add declaration.
9810 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9811 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9812 * maint.c (_initialize_maint_cmds): Add declaration.
9813 * mdebugread.c (_initialize_mdebugread): Add declaration.
9814 * memattr.c (_initialize_mem): Add declaration.
9815 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9816 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9817 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9818 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9819 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9820 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9821 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9822 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9823 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9824 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9825 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9826 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9827 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9828 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9829 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9830 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9831 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9832 * mipsread.c (_initialize_mipsread): Add declaration.
9833 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9834 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9835 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9836 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9837 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9838 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9839 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9840 * nto-procfs.c (_initialize_procfs): Add declaration.
9841 * objc-lang.c (_initialize_objc_language): Add declaration.
9842 * observable.c (_initialize_observer): Add declaration.
9843 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9844 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9845 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9846 * osabi.c (_initialize_gdb_osabi): Add declaration.
9847 * osdata.c (_initialize_osdata): Add declaration.
9848 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9849 * parse.c (_initialize_parse): Add declaration.
9850 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9851 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9852 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9853 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9854 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9855 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9856 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9857 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9858 * printcmd.c (_initialize_printcmd): Add declaration.
9859 * probe.c (_initialize_probe): Add declaration.
9860 * proc-api.c (_initialize_proc_api): Add declaration.
9861 * proc-events.c (_initialize_proc_events): Add declaration.
9862 * proc-service.c (_initialize_proc_service): Add declaration.
9863 * procfs.c (_initialize_procfs): Add declaration.
9864 * producer.c (_initialize_producer): Add declaration.
9865 * psymtab.c (_initialize_psymtab): Add declaration.
9866 * python/python.c (_initialize_python): Add declaration.
9867 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9868 * record-btrace.c (_initialize_record_btrace): Add declaration.
9869 * record-full.c (_initialize_record_full): Add declaration.
9870 * record.c (_initialize_record): Add declaration.
9871 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9872 * regcache.c (_initialize_regcache): Add declaration.
9873 * reggroups.c (_initialize_reggroup): Add declaration.
9874 * remote-notif.c (_initialize_notif): Add declaration.
9875 * remote-sim.c (_initialize_remote_sim): Add declaration.
9876 * remote.c (_initialize_remote): Add declaration.
9877 * reverse.c (_initialize_reverse): Add declaration.
9878 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9879 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9880 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9881 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9882 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9883 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9884 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9885 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9886 Add declaration.
9887 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9888 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9889 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9890 * rust-exp.y (_initialize_rust_exp): Add declaration.
9891 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9892 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9893 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9894 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9895 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9896 * score-tdep.c (_initialize_score_tdep): Add declaration.
9897 * ser-go32.c (_initialize_ser_dos): Add declaration.
9898 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9899 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9900 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9901 * ser-uds.c (_initialize_ser_socket): Add declaration.
9902 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9903 * serial.c (_initialize_serial): Add declaration.
9904 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9905 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9906 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9907 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9908 * skip.c (_initialize_step_skip): Add declaration.
9909 * sol-thread.c (_initialize_sol_thread): Add declaration.
9910 * solib-aix.c (_initialize_solib_aix): Add declaration.
9911 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9912 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9913 * solib-frv.c (_initialize_frv_solib): Add declaration.
9914 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9915 * solib-target.c (_initialize_solib_target): Add declaration.
9916 * solib.c (_initialize_solib): Add declaration.
9917 * source-cache.c (_initialize_source_cache): Add declaration.
9918 * source.c (_initialize_source): Add declaration.
9919 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9920 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9921 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9922 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9923 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9924 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9925 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9926 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9927 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9928 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9929 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9930 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9931 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9932 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9933 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9934 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9935 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9936 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9937 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9938 * stabsread.c (_initialize_stabsread): Add declaration.
9939 * stack.c (_initialize_stack): Add declaration.
9940 * stap-probe.c (_initialize_stap_probe): Add declaration.
9941 * std-regs.c (_initialize_frame_reg): Add declaration.
9942 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9943 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9944 * symfile.c (_initialize_symfile): Add declaration.
9945 * symmisc.c (_initialize_symmisc): Add declaration.
9946 * symtab.c (_initialize_symtab): Add declaration.
9947 * target.c (_initialize_target): Add declaration.
9948 * target-connection.c (_initialize_target_connection): Add
9949 declaration.
9950 * target-dcache.c (_initialize_target_dcache): Add declaration.
9951 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9952 * thread.c (_initialize_thread): Add declaration.
9953 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9954 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9955 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9956 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9957 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9958 * tracectf.c (_initialize_ctf): Add declaration.
9959 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9960 * tracefile.c (_initialize_tracefile): Add declaration.
9961 * tracepoint.c (_initialize_tracepoint): Add declaration.
9962 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9963 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9964 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9965 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9966 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9967 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9968 * tui/tui.c (_initialize_tui): Add declaration.
9969 * typeprint.c (_initialize_typeprint): Add declaration.
9970 * ui-style.c (_initialize_ui_style): Add declaration.
9971 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9972 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9973 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9974 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9975 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9976 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9977 * unittests/filtered_iterator-selftests.c
9978 (_initialize_filtered_iterator_selftests): Add declaration.
9979 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9980 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9981 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9982 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9983 * unittests/main-thread-selftests.c
9984 (_initialize_main_thread_selftests): Add declaration.
9985 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9986 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9987 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9988 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9989 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9990 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9991 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9992 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9993 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9994 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9995 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9996 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9997 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9998 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9999 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10000 declaration.
10001 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10002 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10003 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10004 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10005 * user-regs.c (_initialize_user_regs): Add declaration.
10006 * utils.c (_initialize_utils): Add declaration.
10007 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10008 * valops.c (_initialize_valops): Add declaration.
10009 * valprint.c (_initialize_valprint): Add declaration.
10010 * value.c (_initialize_values): Add declaration.
10011 * varobj.c (_initialize_varobj): Add declaration.
10012 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10013 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10014 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10015 * windows-nat.c (_initialize_windows_nat): Add declaration.
10016 (_initialize_check_for_gdb_ini): Add declaration.
10017 (_initialize_loadable): Add declaration.
10018 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10019 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10020 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10021 * xcoffread.c (_initialize_xcoffread): Add declaration.
10022 * xml-support.c (_initialize_xml_support): Add declaration.
10023 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10024 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10025 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10026 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10027
e2de1eec
SM
100282020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10029
10030 * regformats/regdat.sh: Generate declaration for init function.
10031
e0037b4c
SM
100322020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10033
10034 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10035 up.
10036 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10037 close_one_inferior>: New methods.
10038 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10039 pass down target to find_inferior_pid.
10040 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10041 Pass down target to find_inferior_ptid.
10042 (gdbsim_target::create_inferior): Pass down target to
10043 add_thread_silent.
10044 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10045 target down to find_inferior_ptid and switch_to_thread.
10046 (gdbsim_target::close): Update to call close_one_inferior.
10047 (struct resume_data): Remove.
10048 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10049 directly, rather than through a void pointer.
10050 (gdbsim_target::resume): Update to call resume_one_inferior.
10051
58920b5b
SM
100522020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10053
10054 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10055
4ec89149
PA
100562020-01-12 Pedro Alves <palves@redhat.com>
10057
10058 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10059 directly for the current inferior instead of
10060 discard_all_inferiors.
10061 (discard_all_inferiors): Delete.
10062
7c392d1d
TT
100632020-01-11 Tom Tromey <tom@tromey.com>
10064
10065 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10066 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10067 deprecated_safe_get_selected_frame.
10068
d9ebdab7
TBA
100692020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10070
10071 * inferior.c (print_inferior): Switch inferior before printing it.
10072
f3c469b9
PA
100732020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10074 Pedro Alves <palves@redhat.com>
10075
10076 * progspace-and-thread.c (switch_to_program_space_and_thread):
10077 Assert there's an inferior for PSPACE. Use
10078 switch_to_inferior_no_thread to switch the inferior too.
10079 * progspace.c (program_space::~program_space): Call
10080 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10081 (program_space::free_all_objfiles): Don't call clear_symtab_users
10082 here.
10083 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10084
65c574f6
PA
100852020-01-10 Pedro Alves <palves@redhat.com>
10086
10087 * NEWS: Mention multi-target debugging, "info connections", and
10088 "add-inferior -no-connection".
10089
2f4fcf00
PA
100902020-01-10 Pedro Alves <palves@redhat.com>
10091
10092 * infrun.c: Include "target-connection.h".
10093 (check_multi_target_resumption): New.
10094 (proceed): Call it.
10095 * target-connection.c (make_target_connection_string): Make
10096 extern.
10097 * target-connection.h (make_target_connection_string): Declare.
10098
121b3efd
PA
100992020-01-10 Pedro Alves <palves@redhat.com>
10100
10101 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10102 * inferior.c (uiout_field_connection): New function.
10103 (print_inferior): Add new "connection-id" column.
10104 (add_inferior_command): Show connection number/string of added
10105 inferior.
10106 * process-stratum-target.h
10107 (process_stratum_target::connection_string): New virtual method.
10108 (process_stratum_target::connection_number): New field.
10109 * remote.c (remote_target::connection_string): New override.
10110 * target-connection.c: New file.
10111 * target-connection.h: New file.
10112 * target.c (decref_target): Remove process_stratum targets from
10113 the connection list.
10114 (target_stack::push): Add process_stratum targets to the
10115 connection list.
10116
4f837581
PA
101172020-01-10 Pedro Alves <palves@redhat.com>
10118
10119 Revert:
10120 2016-04-12 Pedro Alves <palves@redhat.com>
10121 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10122 Remove references to name.
10123 * serial.h (struct serial) <name>: Delete.
10124
f4ec508e
PA
101252020-01-10 Pedro Alves <palves@redhat.com>
10126
10127 * gdbarch-selftests.c (register_to_value_test): Remove "target
10128 already pushed" check.
10129
5b6d1e4f
PA
101302020-01-10 Pedro Alves <palves@redhat.com>
10131 John Baldwin <jhb@FreeBSD.org>
10132
10133 * aarch64-linux-nat.c
10134 (aarch64_linux_nat_target::thread_architecture): Adjust.
10135 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10136 (task_command_1): Likewise.
10137 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10138 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10139 (aix_thread_target::store_registers)
10140 (aix_thread_target::thread_alive): Adjust.
10141 * amd64-fbsd-tdep.c: Include "inferior.h".
10142 (amd64fbsd_get_thread_local_address): Pass down target.
10143 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10144 thread's gdbarch instead of target_gdbarch.
10145 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10146 get_last_target_status.
10147 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10148 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10149 inferiors.
10150 (update_inserted_breakpoint_locations): Skip if inferiors with no
10151 execution.
10152 (update_global_location_list): When handling moribund locations,
10153 find representative inferior for location's pspace, and use thread
10154 count of its process_stratum target.
10155 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10156 * bsd-uthread.c (bsd_uthread_target::wait): Use
10157 as_process_stratum_target and adjust thread_change_ptid and
10158 add_thread calls.
10159 (bsd_uthread_target::update_thread_list): Use
10160 as_process_stratum_target and adjust find_thread_ptid,
10161 thread_change_ptid and add_thread calls.
10162 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10163 find_thread_ptid call.
10164 * corelow.c (add_to_thread_list): Adjust add_thread call.
10165 (core_target_open): Adjust add_thread_silent and thread_count
10166 calls.
10167 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10168 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10169 * event-top.c (async_disconnect): Pop targets from all inferiors.
10170 * exec.c (add_target_sections): Push exec target on all inferiors
10171 sharing the program space.
10172 (remove_target_sections): Remove the exec target from all
10173 inferiors sharing the program space.
10174 (exec_on_vfork): New.
10175 * exec.h (exec_on_vfork): Declare.
10176 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10177 Pass it down.
10178 (fbsd_nat_target::update_thread_list): Adjust.
10179 (fbsd_nat_target::resume): Adjust.
10180 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10181 down.
10182 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10183 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10184 get_thread_arch_regcache call.
10185 * fork-child.c (gdb_startup_inferior): Pass target down to
10186 startup_inferior and set_executing.
10187 * gdbthread.h (struct process_stratum_target): Forward declare.
10188 (add_thread, add_thread_silent, add_thread_with_info)
10189 (in_thread_list): Add process_stratum_target parameter.
10190 (find_thread_ptid(inferior*, ptid_t)): New overload.
10191 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10192 parameter.
10193 (all_threads()): Delete overload.
10194 (all_threads, all_non_exited_threads): Add process_stratum_target
10195 parameter.
10196 (all_threads_safe): Use brace initialization.
10197 (thread_count): Add process_stratum_target parameter.
10198 (set_resumed, set_running, set_stop_requested, set_executing)
10199 (threads_are_executing, finish_thread_state): Add
10200 process_stratum_target parameter.
10201 (switch_to_thread): Use is_current_thread.
10202 * i386-fbsd-tdep.c: Include "inferior.h".
10203 (i386fbsd_get_thread_local_address): Pass down target.
10204 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10205 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10206 have_inferiors check.
10207 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10208 (inf_ptrace_target::attach): Adjust.
10209 * infcall.c (run_inferior_call): Adjust.
10210 * infcmd.c (run_command_1): Pass target to
10211 scoped_finish_thread_state.
10212 (proceed_thread_callback): Skip inferiors with no execution.
10213 (continue_command): Rename 'all_threads' local to avoid hiding
10214 'all_threads' function. Adjust get_last_target_status call.
10215 (prepare_one_step): Adjust set_running call.
10216 (signal_command): Use user_visible_resume_target. Compare thread
10217 pointers instead of inferior_ptid.
10218 (info_program_command): Adjust to pass down target.
10219 (attach_command): Mark target's 'thread_executing' flag.
10220 (stop_current_target_threads_ns): New, factored out from ...
10221 (interrupt_target_1): ... this. Switch inferior before making
10222 target calls.
10223 * inferior-iter.h
10224 (struct all_inferiors_iterator, struct all_inferiors_range)
10225 (struct all_inferiors_safe_range)
10226 (struct all_non_exited_inferiors_range): Filter on
10227 process_stratum_target too. Remove explicit.
10228 * inferior.c (inferior::inferior): Push dummy target on target
10229 stack.
10230 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10231 Add process_stratum_target parameter, and pass it down.
10232 (have_live_inferiors): Adjust.
10233 (switch_to_inferior_and_push_target): New.
10234 (add_inferior_command, clone_inferior_command): Handle
10235 "-no-connection" parameter. Use
10236 switch_to_inferior_and_push_target.
10237 (_initialize_inferior): Mention "-no-connection" option in
10238 the help of "add-inferior" and "clone-inferior" commands.
10239 * inferior.h: Include "process-stratum-target.h".
10240 (interrupt_target_1): Use bool.
10241 (struct inferior) <push_target, unpush_target, target_is_pushed,
10242 find_target_beneath, top_target, process_target, target_at,
10243 m_stack>: New.
10244 (discard_all_inferiors): Delete.
10245 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10246 (all_inferiors, all_non_exited_inferiors): Add
10247 process_stratum_target parameter.
10248 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10249 (target_last_proc_target): New global.
10250 (follow_fork_inferior): Push target on new inferior. Pass target
10251 to add_thread_silent. Call exec_on_vfork. Handle target's
10252 reference count.
10253 (follow_fork): Adjust get_last_target_status call. Also consider
10254 target.
10255 (follow_exec): Push target on new inferior.
10256 (struct execution_control_state) <target>: New field.
10257 (user_visible_resume_target): New.
10258 (do_target_resume): Call target_async.
10259 (resume_1): Set target's threads_executing flag. Consider resume
10260 target.
10261 (commit_resume_all_targets): New.
10262 (proceed): Also consider resume target. Skip threads of inferiors
10263 with no execution. Commit resumtion in all targets.
10264 (start_remote): Pass current inferior to wait_for_inferior.
10265 (infrun_thread_stop_requested): Consider target as well. Pass
10266 thread_info pointer to clear_inline_frame_state instead of ptid.
10267 (infrun_thread_thread_exit): Consider target as well.
10268 (random_pending_event_thread): New inferior parameter. Use it.
10269 (do_target_wait): Rename to ...
10270 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10271 down.
10272 (threads_are_resumed_pending_p, do_target_wait): New.
10273 (prepare_for_detach): Adjust calls.
10274 (wait_for_inferior): New inferior parameter. Handle it. Use
10275 do_target_wait_1 instead of do_target_wait.
10276 (fetch_inferior_event): Adjust. Switch to representative
10277 inferior. Pass target down.
10278 (set_last_target_status): Add process_stratum_target parameter.
10279 Save target in global.
10280 (get_last_target_status): Add process_stratum_target parameter and
10281 handle it.
10282 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10283 (context_switch): Check inferior_ptid == null_ptid before calling
10284 inferior_thread().
10285 (get_inferior_stop_soon): Pass down target.
10286 (wait_one): Rename to ...
10287 (poll_one_curr_target): ... this.
10288 (struct wait_one_event): New.
10289 (wait_one): New.
10290 (stop_all_threads): Adjust.
10291 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10292 event's target.
10293 (switch_back_to_stepped_thread): Also consider target.
10294 (print_stop_event): Update.
10295 (normal_stop): Update. Also consider the resume target.
10296 * infrun.h (wait_for_inferior): Remove declaration.
10297 (user_visible_resume_target): New declaration.
10298 (get_last_target_status, set_last_target_status): New
10299 process_stratum_target parameter.
10300 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10301 process_stratum_target parameter, and use it.
10302 (clear_inline_frame_state (thread_info*)): New.
10303 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10304 process_stratum_target parameter.
10305 (clear_inline_frame_state (thread_info*)): Declare.
10306 * linux-fork.c (delete_checkpoint_command): Pass target down to
10307 find_thread_ptid.
10308 (checkpoint_command): Adjust.
10309 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10310 instead of just tweaking inferior_ptid.
10311 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10312 (exit_lwp): Pass target down to find_thread_ptid.
10313 (attach_proc_task_lwp_callback): Pass target down to
10314 add_thread/set_running/set_executing.
10315 (linux_nat_target::attach): Pass target down to
10316 thread_change_ptid.
10317 (get_detach_signal): Pass target down to find_thread_ptid.
10318 Consider last target status's target.
10319 (linux_resume_one_lwp_throw, resume_lwp)
10320 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10321 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10322 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10323 (linux_nat_target::async_wait_fd): New.
10324 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10325 target down.
10326 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10327 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10328 * linux-thread-db.c (struct thread_db_info::process_target): New
10329 field.
10330 (add_thread_db_info): Save target.
10331 (get_thread_db_info): New process_stratum_target parameter. Also
10332 match target.
10333 (delete_thread_db_info): New process_stratum_target parameter.
10334 Also match target.
10335 (thread_from_lwp): Adjust to pass down target.
10336 (thread_db_notice_clone): Pass down target.
10337 (check_thread_db_callback): Pass down target.
10338 (try_thread_db_load_1): Always push the thread_db target.
10339 (try_thread_db_load, record_thread): Pass target down.
10340 (thread_db_target::detach): Pass target down. Always unpush the
10341 thread_db target.
10342 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10343 target down. Always unpush the thread_db target.
10344 (find_new_threads_callback, thread_db_find_new_threads_2)
10345 (thread_db_target::update_thread_list): Pass target down.
10346 (thread_db_target::pid_to_str): Pass current inferior down.
10347 (thread_db_target::get_thread_local_address): Pass target down.
10348 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10349 target down.
10350 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10351 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10352 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10353 (procfs_init_inferior): Rename to ...
10354 (procfs_target::procfs_init_inferior): ... this and adjust.
10355 (procfs_target::create_inferior, procfs_notice_thread)
10356 (procfs_do_thread_registers): Adjust.
10357 * ppc-fbsd-tdep.c: Include "inferior.h".
10358 (ppcfbsd_get_thread_local_address): Pass down target.
10359 * proc-service.c (ps_xfer_memory): Switch current inferior and
10360 program space as well.
10361 (get_ps_regcache): Pass target down.
10362 * process-stratum-target.c
10363 (process_stratum_target::thread_address_space)
10364 (process_stratum_target::thread_architecture): Pass target down.
10365 * process-stratum-target.h
10366 (process_stratum_target::threads_executing): New field.
10367 (as_process_stratum_target): New.
10368 * ravenscar-thread.c
10369 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10370 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10371 down.
10372 * record-btrace.c (record_btrace_target::info_record): Adjust.
10373 (record_btrace_target::record_method)
10374 (record_btrace_target::record_is_replaying)
10375 (record_btrace_target::fetch_registers)
10376 (get_thread_current_frame_id, record_btrace_target::resume)
10377 (record_btrace_target::wait, record_btrace_target::stop): Pass
10378 target down.
10379 * record-full.c (record_full_wait_1): Switch to event thread.
10380 Pass target down.
10381 * regcache.c (regcache::regcache)
10382 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10383 process_stratum_target parameter and handle it.
10384 (current_thread_target): New global.
10385 (get_thread_regcache): Add process_stratum_target parameter and
10386 handle it. Switch inferior before calling target method.
10387 (get_thread_regcache): Pass target down.
10388 (get_thread_regcache_for_ptid): Pass target down.
10389 (registers_changed_ptid): Add process_stratum_target parameter and
10390 handle it.
10391 (registers_changed_thread, registers_changed): Pass target down.
10392 (test_get_thread_arch_aspace_regcache): New.
10393 (current_regcache_test): Define a couple local test_target_ops
10394 instances and use them for testing.
10395 (readwrite_regcache): Pass process_stratum_target parameter.
10396 (cooked_read_test, cooked_write_test): Pass mock_target down.
10397 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10398 (get_thread_arch_aspace_regcache): Add process_stratum_target
10399 parameter.
10400 (regcache::target): New method.
10401 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10402 (regcache::registers_changed_ptid): Add process_stratum_target
10403 parameter.
10404 (regcache::m_target): New field.
10405 (registers_changed_ptid): Add process_stratum_target parameter.
10406 * remote.c (remote_state::supports_vCont_probed): New field.
10407 (remote_target::async_wait_fd): New method.
10408 (remote_unpush_and_throw): Add remote_target parameter.
10409 (get_current_remote_target): Adjust.
10410 (remote_target::remote_add_inferior): Push target.
10411 (remote_target::remote_add_thread)
10412 (remote_target::remote_notice_new_inferior)
10413 (get_remote_thread_info): Pass target down.
10414 (remote_target::update_thread_list): Skip threads of inferiors
10415 bound to other targets. (remote_target::close): Don't discard
10416 inferiors. (remote_target::add_current_inferior_and_thread)
10417 (remote_target::process_initial_stop_replies)
10418 (remote_target::start_remote)
10419 (remote_target::remote_serial_quit_handler): Pass down target.
10420 (remote_target::remote_unpush_target): New remote_target
10421 parameter. Unpush the target from all inferiors.
10422 (remote_target::remote_unpush_and_throw): New remote_target
10423 parameter. Pass it down.
10424 (remote_target::open_1): Check whether the current inferior has
10425 execution instead of checking whether any inferior is live. Pass
10426 target down.
10427 (remote_target::remote_detach_1): Pass down target. Use
10428 remote_unpush_target.
10429 (extended_remote_target::attach): Pass down target.
10430 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10431 (remote_target::append_resumption): Pass down target.
10432 (remote_target::append_pending_thread_resumptions)
10433 (remote_target::remote_resume_with_hc, remote_target::resume)
10434 (remote_target::commit_resume): Pass down target.
10435 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10436 (remote_target::interrupt_query)
10437 (remote_target::remove_new_fork_children)
10438 (remote_target::check_pending_events_prevent_wildcard_vcont)
10439 (remote_target::remote_parse_stop_reply)
10440 (remote_target::process_stop_reply): Pass down target.
10441 (first_remote_resumed_thread): New remote_target parameter. Pass
10442 it down.
10443 (remote_target::wait_as): Pass down target.
10444 (unpush_and_perror): New remote_target parameter. Pass it down.
10445 (remote_target::readchar, remote_target::remote_serial_write)
10446 (remote_target::getpkt_or_notif_sane_1)
10447 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10448 down target.
10449 (remote_target::mourn_inferior): Pass down target. Use
10450 remote_unpush_target.
10451 (remote_target::core_of_thread)
10452 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10453 (remote_target::pid_to_exec_file)
10454 (remote_target::thread_handle_to_thread_info): Pass down target.
10455 (remote_target::async_wait_fd): New.
10456 * riscv-fbsd-tdep.c: Include "inferior.h".
10457 (riscv_fbsd_get_thread_local_address): Pass down target.
10458 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10459 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10460 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10461 Adjust.
10462 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10463 * solib-svr4.c (enable_break): Pass down target.
10464 * spu-multiarch.c (parse_spufs_run): Pass down target.
10465 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10466 * target-delegates.c: Regenerate.
10467 * target.c (g_target_stack): Delete.
10468 (current_top_target): Return the current inferior's top target.
10469 (target_has_execution_1): Refer to the passed-in inferior's top
10470 target.
10471 (target_supports_terminal_ours): Check whether the initial
10472 inferior was already created.
10473 (decref_target): New.
10474 (target_stack::push): Incref/decref the target.
10475 (push_target, push_target, unpush_target): Adjust.
10476 (target_stack::unpush): Defref target.
10477 (target_is_pushed): Return bool. Adjust to refer to the current
10478 inferior's target stack.
10479 (dispose_inferior): Delete, and inline parts ...
10480 (target_preopen): ... here. Only dispose of the current inferior.
10481 (target_detach): Hold strong target reference while detaching.
10482 Pass target down.
10483 (target_thread_name): Add assertion.
10484 (target_resume): Pass down target.
10485 (target_ops::beneath, find_target_at): Adjust to refer to the
10486 current inferior's target stack.
10487 (get_dummy_target): New.
10488 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10489 has a thread running.
10490 (initialize_targets): Rename to ...
10491 (_initialize_target): ... this.
10492 * target.h: Include "gdbsupport/refcounted-object.h".
10493 (struct target_ops): Inherit refcounted_object.
10494 (target_ops::shortname, target_ops::longname): Make const.
10495 (target_ops::async_wait_fd): New method.
10496 (decref_target): Declare.
10497 (struct target_ops_ref_policy): New.
10498 (target_ops_ref): New typedef.
10499 (get_dummy_target): Declare function.
10500 (target_is_pushed): Return bool.
10501 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10502 (all_matching_threads_iterator::all_matching_threads_iterator):
10503 Handle filter target.
10504 * thread-iter.h (struct all_matching_threads_iterator, struct
10505 all_matching_threads_range, class all_non_exited_threads_range):
10506 Filter by target too. Remove explicit.
10507 * thread.c (threads_executing): Delete.
10508 (inferior_thread): Pass down current inferior.
10509 (clear_thread_inferior_resources): Pass down thread pointer
10510 instead of ptid_t.
10511 (add_thread_silent, add_thread_with_info, add_thread): Add
10512 process_stratum_target parameter. Use it for thread and inferior
10513 searches.
10514 (is_current_thread): New.
10515 (thread_info::deletable): Use it.
10516 (find_thread_ptid, thread_count, in_thread_list)
10517 (thread_change_ptid, set_resumed, set_running): New
10518 process_stratum_target parameter. Pass it down.
10519 (set_executing): New process_stratum_target parameter. Pass it
10520 down. Adjust reference to 'threads_executing'.
10521 (threads_are_executing): New process_stratum_target parameter.
10522 Adjust reference to 'threads_executing'.
10523 (set_stop_requested, finish_thread_state): New
10524 process_stratum_target parameter. Pass it down.
10525 (switch_to_thread): Also match inferior.
10526 (switch_to_thread): New process_stratum_target parameter. Pass it
10527 down.
10528 (update_threads_executing): Reimplement.
10529 * top.c (quit_force): Pop targets from all inferior.
10530 (gdb_init): Don't call initialize_targets.
10531 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10532 Declare.
10533 (windows_add_thread, windows_delete_thread): Adjust.
10534 (get_windows_debug_event): Rename to ...
10535 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10536 * tracefile-tfile.c (tfile_target_open): Pass down target.
10537 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10538 Forward declare.
10539 (switch_to_thread): Add process_stratum_target parameter.
10540 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10541 parameter. Use it.
10542 (mi_on_resume): Pass target down.
10543 * nat/fork-inferior.c (startup_inferior): Add
10544 process_stratum_target parameter. Pass it down.
10545 * nat/fork-inferior.h (startup_inferior): Add
10546 process_stratum_target parameter.
10547 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10548
75c6c844
PA
105492020-01-10 Pedro Alves <palves@redhat.com>
10550
10551 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10552 directly. Instead find the first thread in the thread list and
10553 use switch_to_thread.
10554
78f2c40a
PA
105552020-01-10 Pedro Alves <palves@redhat.com>
10556
10557 * remote.c (remote_target::remote_add_inferior): Don't bind a
10558 process to the current inferior if the current inferior is already
10559 bound to a process.
10560
e7af6c70
TBA
105612020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10562 Pedro Alves <palves@redhat.com>
10563
10564 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10565 If no process is specified, return null_ptid instead of
10566 inferior_ptid.
10567 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10568 TARGET_WAITKIND_SIGNALLED with no pid.
10569
31ba933e
PA
105702020-01-10 Pedro Alves <palves@redhat.com>
10571
10572 * remote.c (first_remote_resumed_thread): New.
10573 (remote_target::wait_as): Use it as default event_ptid instead of
10574 inferior_ptid.
10575
735fc2ca
PA
105762020-01-10 Pedro Alves <palves@redhat.com>
10577
10578 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10579
c17e02e1
PA
105802020-01-10 Pedro Alves <palves@redhat.com>
10581
10582 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10583 not -1.
10584
ab1ddbcf
PA
105852020-01-10 Pedro Alves <palves@redhat.com>
10586
10587 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10588 ptid to get_last_target_status.
10589 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10590 ptid to get_last_target_status.
10591 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10592 get_last_target_status.
10593 (info_program_command): Don't pass a target_waitstatus to
10594 get_last_target_status.
10595 * infrun.c (init_wait_for_inferior): Use
10596 nullify_last_target_wait_ptid.
10597 (get_last_target_status): Handle nullptr arguments.
10598 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10599 (print_stop_event): Don't pass a ptid to get_last_target_status.
10600 (normal_stop): Don't pass a ptid to get_last_target_status.
10601 * infrun.h (get_last_target_status, set_last_target_status): Move
10602 comments here and update.
10603 (nullify_last_target_wait_ptid): Declare.
10604 * linux-fork.c (fork_load_infrun_state): Remove local extern
10605 declaration of nullify_last_target_wait_ptid.
10606 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10607 to get_last_target_status.
10608
f3f8ece4
PA
106092020-01-10 Pedro Alves <palves@redhat.com>
10610
10611 * gdbthread.h (scoped_restore_current_thread)
10612 <dont_restore, restore, m_dont_restore>: Declare.
10613 * thread.c (thread_alive): Add assertion. Return bool.
10614 (switch_to_thread_if_alive): New.
10615 (prune_threads): Switch inferior/thread.
10616 (print_thread_info_1): Switch thread before calling target methods.
10617 (scoped_restore_current_thread::restore): New, factored out from
10618 ...
10619 (scoped_restore_current_thread::~scoped_restore_current_thread):
10620 ... this.
10621 (scoped_restore_current_thread::scoped_restore_current_thread):
10622 Add assertion.
10623 (thread_apply_all_command, thread_select): Use
10624 switch_to_thread_if_alive.
10625 * infrun.c (proceed, restart_threads, handle_signal_stop)
10626 (switch_back_to_stepped_thread): Switch current thread before
10627 calling target methods.
10628
db2d40f7
PA
106292020-01-10 Pedro Alves <palves@redhat.com>
10630
10631 * inferior.c (switch_to_inferior_no_thread): New function,
10632 factored out from ...
10633 (inferior_command): ... here.
10634 * inferior.h (switch_to_inferior_no_thread): Declare.
10635 * mi/mi-main.c (run_one_inferior): Use
10636 switch_to_inferior_no_thread.
10637
bd420a2d
PA
106382020-01-10 Pedro Alves <palves@redhat.com>
10639
10640 * infcmd.c (kill_command): Remove dead code.
10641
ddf5db90
PA
106422020-01-10 Pedro Alves <palves@redhat.com>
10643
10644 * remote.c (remote_target::mourn_inferior): No longer check
10645 whether the target is running.
10646
5018ce90
PA
106472020-01-10 Pedro Alves <palves@redhat.com>
10648
10649 * corelow.c (core_target::has_execution): Change parameter type to
10650 inferior pointer.
10651 * inferior.c (number_of_live_inferiors): Use
10652 inferior::has_execution instead of target_has_execution_1.
10653 * inferior.h (inferior::has_execution): New.
10654 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10655 inferior::has_execution instead of target_has_execution_1.
10656 * process-stratum-target.c
10657 (process_stratum_target::has_execution): Change parameter type to
10658 inferior pointer. Check the inferior's PID instead of
10659 inferior_ptid.
10660 * process-stratum-target.h
10661 (process_stratum_target::has_execution): Change parameter type to
10662 inferior pointer.
10663 * record-full.c (record_full_core_target::has_execution): Change
10664 parameter type to inferior pointer.
10665 * target.c (target_has_execution_1): Change parameter type to
10666 inferior pointer.
10667 (target_has_execution_current): Adjust.
10668 * target.h (target_ops::has_execution): Change parameter type to
10669 inferior pointer.
10670 (target_has_execution_1): Change parameter type to inferior
10671 pointer. Change return type to bool.
10672 * tracefile.h (tracefile_target::has_execution): Change parameter
10673 type to inferior pointer.
10674
74375d18
PA
106752020-01-10 Pedro Alves <palves@redhat.com>
10676
10677 * exceptions.c (print_flush): Remove current_top_target() check.
10678
acdf84a6
PA
106792020-01-10 Pedro Alves <palves@redhat.com>
10680
10681 * remote.c (show_remote_exec_file): Show the current inferior's
10682 exec-file instead of the command variable's value.
10683
ec506636
PA
106842020-01-10 Pedro Alves <palves@redhat.com>
10685
10686 * record-full.c (record_full_resume_ptid): New global.
10687 (record_full_target::resume): Set it.
10688 (record_full_wait_1): Use record_full_resume_ptid instead of
10689 inferior_ptid.
10690
873657b9
PA
106912020-01-10 Pedro Alves <palves@redhat.com>
10692
10693 * gdbthread.h (scoped_restore_current_thread)
10694 <dont_restore, restore, m_dont_restore>: Declare.
10695 * thread.c (thread_alive): Add assertion. Return bool.
10696 (switch_to_thread_if_alive): New.
10697 (prune_threads): Switch inferior/thread.
10698 (print_thread_info_1): Switch thread before calling target methods.
10699 (scoped_restore_current_thread::restore): New, factored out from
10700 ...
10701 (scoped_restore_current_thread::~scoped_restore_current_thread):
10702 ... this.
10703 (scoped_restore_current_thread::scoped_restore_current_thread):
10704 Add assertion.
10705 (thread_apply_all_command, thread_select): Use
10706 switch_to_thread_if_alive.
10707
7f0ae84c
GB
107082020-01-10 George Barrett <bob@bob131.so>
10709
10710 * stap-probe.c (stap_modify_semaphore): Don't check for null
10711 semaphores.
10712 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10713 for null semaphores.
10714
f5a7c406
AB
107152020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10716
10717 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10718 all source windows, and maintain horizontal scroll status while
10719 doing so.
10720
9ae6bf64
TT
107212020-01-09 Tom Tromey <tom@tromey.com>
10722
10723 PR tui/18932:
10724 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10725 update_source_window, not print_source_lines.
10726
b2efe70c
AB
107272020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10728
10729 * tui/tui.c (tui_enable): Register tui hooks after calling
10730 tui_display_main.
10731
5f23a082
CB
107322020-01-09 Christian Biesinger <cbiesinger@google.com>
10733
10734 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10735
3061113b
SM
107362020-01-08 Simon Marchi <simon.marchi@efficios.com>
10737
10738 * thread.c (print_thread_info_1): Fix indentation.
10739
57d75002
CB
107402020-01-09 Christian Biesinger <cbiesinger@google.com>
10741
10742 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10743 unique_xmalloc_ptr outside the if to always free the demangled name.
10744
6a053cb1
TT
107452020-01-08 Tom Tromey <tromey@adacore.com>
10746
10747 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10748 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10749 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10750 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10751 Remove.
10752 (section_offsets): New typedef.
10753 * symtab.c (fixup_section, get_msymbol_address): Update.
10754 * symmisc.c (dump_msymbols): Update.
10755 * symfile.h (relative_addr_info_to_section_offsets)
10756 (symfile_map_offsets_to_segments): Update.
10757 * symfile.c (build_section_addr_info_from_objfile)
10758 (init_objfile_sect_indices): Update.
10759 (struct place_section_arg): Change type of "offsets".
10760 (place_section): Update.
10761 (relative_addr_info_to_section_offsets): Change type of
10762 "section_offsets". Remove "num_sections" parameter.
10763 (default_symfile_offsets, syms_from_objfile_1)
10764 (set_objfile_default_section_offset): Update.
10765 (reread_symbols): No need to preserve section offsets by hand.
10766 (symfile_map_offsets_to_segments): Change type of "offsets".
10767 * stap-probe.c (relocate_address): Update.
10768 * stabsread.h (process_one_symbol): Update.
10769 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10770 (solib_target_relocate_section_addresses): Update.
10771 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10772 Update.
10773 * solib-frv.c (frv_relocate_main_executable): Update.
10774 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10775 * solib-aix.c (solib_aix_get_section_offsets): Change return
10776 type.
10777 (solib_aix_solib_create_inferior_hook): Update.
10778 * remote.c (remote_target::get_offsets): Update.
10779 * psymtab.c (find_pc_sect_psymtab): Update.
10780 * psympriv.h (struct partial_symbol) <address, text_low,
10781 text_high>: Update.
10782 * objfiles.h (obj_section_offset): Update.
10783 (struct objfile) <section_offsets>: Change type.
10784 <num_sections>: Remove.
10785 (objfile_relocate): Update.
10786 * objfiles.c (entry_point_address_query): Update
10787 (relocate_one_symbol): Change type of "section_offsets".
10788 (objfile_relocate1, objfile_relocate1): Change type of
10789 "new_offsets".
10790 (objfile_rebase1): Update.
10791 * mipsread.c (mipscoff_symfile_read): Update.
10792 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10793 parameter.
10794 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10795 (parse_external, psymtab_to_symtab_1): Update.
10796 * machoread.c (macho_symfile_offsets): Update.
10797 * ia64-tdep.c (ia64_find_unwind_table): Update.
10798 * hppa-tdep.c (read_unwind_info): Update.
10799 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10800 * dwarf2read.c (create_addrmap_from_index)
10801 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10802 (process_psymtab_comp_unit_reader, add_partial_symbol)
10803 (add_partial_subprogram, process_full_comp_unit)
10804 (read_file_scope, read_func_scope, read_lexical_block_scope)
10805 (read_call_site_scope, dwarf2_rnglists_process)
10806 (dwarf2_ranges_process, dwarf2_ranges_read)
10807 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10808 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10809 Update.
10810 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10811 Update.
10812 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10813 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10814 (process_one_symbol): Change type of "section_offsets".
10815 * ctfread.c (get_objfile_text_range): Update.
10816 * coffread.c (coff_symtab_read, enter_linenos)
10817 (process_coff_symbol): Update.
10818 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10819 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10820
456e800a
TT
108212020-01-08 Tom Tromey <tromey@adacore.com>
10822
10823 * dwarf2read.c (parse_macro_definition): Use std::string.
10824 (parse_macro_definition): Likewise.
10825
6dfa2fc2
TT
108262020-01-08 Tom Tromey <tromey@adacore.com>
10827
10828 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10829 (ATTR_ALLOC_CHUNK): Remove.
10830
421d1616
TT
108312020-01-08 Tom Tromey <tromey@adacore.com>
10832
10833 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10834
43816ebc
TT
108352020-01-08 Tom Tromey <tromey@adacore.com>
10836
10837 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10838 (dwarf2_compute_name, open_dwo_file): Likewise.
10839 (process_enumeration_scope): Use std::vector.
10840 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10841 (partial_die_info::fixup, dwarf2_start_subfile)
10842 (guess_full_die_structure_name, dwarf2_name): Likewise.
10843 (determine_prefix): Update.
10844 (guess_full_die_structure_name): Make return type const.
10845 (partial_die_full_name): Return unique_xmalloc_ptr.
10846 (DW_FIELD_ALLOC_CHUNK): Remove.
10847
4212d509
TT
108482020-01-07 Tom Tromey <tromey@adacore.com>
10849
10850 PR build/24937:
10851 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10852
06a6207a
JT
108532020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10854
10855 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10856
153d79c4
AB
108572020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10858
10859 * stack.c (print_frame_info): Move disassemble_next_line code
10860 inside source_print block.
10861
66182876
EZ
108622020-01-06 Eli Zaretskii <eliz@gnu.org>
10863
10864 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10865 gdb/signals.h, as we are now using native signal symbols.
10866
cbfa8581
SV
108672020-01-06 Shahab Vahedi <shahab@synopsys.com>
10868
10869 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10870 overflow by an early check of content vs threshold.
aac66a4c 10871 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10872 Likewise.
10873
3f602821
EZ
108742020-01-06 Eli Zaretskii <eliz@gnu.org>
10875
10876 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10877
a08c904d
JT
108782020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10879
10880 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10881 export table if no section contains it's RVA.
10882
89a65580
EZ
108832020-01-06 Eli Zaretskii <eliz@gnu.org>
10884
10885 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10886
8b7fcda2
HD
108872020-01-06 Hannes Domani <ssbssa@yahoo.de>
10888
10889 * source.c (print_source_lines_base): Set last_line_listed.
10890
a61b4f69
SV
108912020-01-06 Shahab Vahedi <shahab@synopsys.com>
10892
10893 * tui/tui-disasm.c: Remove trailing spaces.
10894
559e7e50
EZ
108952020-01-06 Eli Zaretskii <eliz@gnu.org>
10896 Pedro Alves <palves@redhat.com>
10897
10898 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10899 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10900 (windows_gdb_signal_to_target): New function, uses the above
10901 enumeration to convert GDB internal signal codes to equivalent
10902 Windows codes.
10903 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10904 * windows-nat.c: Include "gdb_wait.h".
10905 (get_windows_debug_event): Extract the fatal exception from the
10906 exit status and convert to the equivalent Posix signal number.
10907 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10908 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10909 * gdbsupport/gdb_wait.c: New file, implements
10910 windows_status_to_termsig.
10911 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10912 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10913
f2302a34
AB
109142020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10915
10916 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10917 show_layout.
10918
6a5206eb
LM
109192020-01-05 Luis Machado <luis.machado@linaro.org>
10920
10921 * aarch64-linux-nat.c
10922 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10923 and bfd_mach_aarch64.
10924
6ec1d75e
PW
109252020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10926
10927 * ui-file.c (stdio_file::can_emit_style_escape)
10928 (tee_file::can_emit_style_escape): Ensure style is used also on
10929 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10930 to gdb_stdout.
10931 * main.c (set_gdb_data_directory): Use file style to output the
10932 warning that the given pathname is not a directory.
10933 * top.c (show_history_filename, gdb_safe_append_history)
10934 (show_gdb_datadir): Use file style.
10935
44f81a76
HD
109362020-01-03 Hannes Domani <ssbssa@yahoo.de>
10937
10938 * solib-target.c (struct lm_info_target):
10939 Change offsets to be a unique_xmalloc_ptr.
10940 (solib_target_relocate_section_addresses): Update.
10941
25057eb0
HD
109422020-01-03 Hannes Domani <ssbssa@yahoo.de>
10943
10944 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10945
6e2118f5
BE
109462020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10947
10948 * MAINTAINERS (Write After Approval): Add myself.
10949
8133c7dc
LM
109502020-01-02 Luis Machado <luis.machado@linaro.org>
10951
10952 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10953 Cell BE architecture.
10954 * target.h (struct target_ops) <thread_architecture>: Likewise.
10955
48189bec
HD
109562020-01-01 Hannes Domani <ssbssa@yahoo.de>
10957
10958 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10959
ead1063b
HD
109602020-01-01 Hannes Domani <ssbssa@yahoo.de>
10961
10962 * MAINTAINERS (Write After Approval): Add myself.
10963
e5d78223
JB
109642020-01-01 Joel Brobecker <brobecker@adacore.com>
10965
10966 * gdbarch.sh: Update copyright year range of generated files.
10967
b811d2c2
JB
109682020-01-01 Joel Brobecker <brobecker@adacore.com>
10969
10970 Update copyright year range in all GDB files.
10971
5f4def5c
JB
109722020-01-01 Joel Brobecker <brobecker@adacore.com>
10973
10974 * copyright.py: Convert to Python 3.
10975
51fd4002
JB
109762020-01-01 Joel Brobecker <brobecker@adacore.com>
10977
10978 * copyright.py: Adapt after move of gnulib directory from gdb
10979 directory to toplevel directory.
10980
5fb651f2
JB
109812020-01-01 Joel Brobecker <brobecker@adacore.com>
10982
10983 * copyright.py (main): Exit if run from the wrong directory.
10984
5dd8bf88
JB
109852020-01-01 Joel Brobecker <brobecker@adacore.com>
10986
10987 * top.c (print_gdb_version): Change copyright year to 2020.
10988
9f71dacb 109892020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10990
9f71dacb 10991 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10992
9f71dacb 10993For older changes see ChangeLog-2019.
c906108c
SS
10994\f
10995Local Variables:
10996mode: change-log
10997left-margin: 8
10998fill-column: 74
10999version-control: never
57da7796 11000coding: utf-8
c906108c 11001End: