]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0a278aa7
PW
12020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2
3 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4
cce20f10
PA
52020-07-10 Pedro Alves <pedro@palves.net>
6
7 * gdbthread.h (inferior_ref): Define.
8 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
9 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
10 * thread.c
11 (scoped_restore_current_thread::restore):
12 Adjust to gdb::ref_ptr.
13 (scoped_restore_current_thread::~scoped_restore_current_thread):
14 Remove manual decref handling.
15 (scoped_restore_current_thread::scoped_restore_current_thread):
16 Adjust to use
17 inferior_ref::new_reference/thread_info_ref::new_reference.
18 Incref the thread before calling get_frame_id instead of after.
19 Let TARGET_CLOSE_ERROR propagate.
20
6d7aa592
PA
212020-07-10 Pedro Alves <pedro@palves.net>
22
23 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
24 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
25 NOT_AVAILABLE_ERROR.
26 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
27 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
28
b3e3a4c1
SM
292020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
30 Pedro Alves <pedro@palves.net>
31
32 PR gdb/26199
33 * infrun.c (threads_are_resumed_pending_p): Delete.
34 (do_target_wait): Remove threads_are_executing and
35 threads_are_resumed_pending_p checks from the inferior_matches
36 lambda. Update comments.
37
d6cc5d98
PA
382020-07-10 Pedro Alves <pedro@palves.net>
39
40 PR gdb/26199
41 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
42 executing threads.
43
7d3badc6
PA
442020-07-10 Pedro Alves <pedro@palves.net>
45
46 PR gdb/26199
47 * infrun.c (handle_no_resumed): Handle multiple targets.
48
42bd97a6
PA
492020-07-10 Pedro Alves <pedro@palves.net>
50
51 PR gdb/26199
52 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
53 target_is_async_p.
54
43667cc6
PA
552020-07-10 Pedro Alves <pedro@palves.net>
56
57 PR gdb/26199
58 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
59 threads, not all threads.
60
96118d11
PA
612020-07-10 Pedro Alves <pedro@palves.net>
62
63 PR gdb/26199
64 * remote.c (remote_target::open_1): Pass remote target pointer as
65 data to create_async_event_handler.
66 (remote_async_inferior_event_handler): Mark async event handler
67 before returning if the remote target still has either pending
68 events or unacknowledged notifications.
69
54904d81
JB
702020-07-10 John Baldwin <jhb@FreeBSD.org>
71
72 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
73 declaration.
74 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
75 function.
76
f37e5866
JB
772020-07-09 John Baldwin <jhb@FreeBSD.org>
78
79 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
80 inferior_ptid.
81
fc238d4a
JB
822020-07-09 John Baldwin <jhb@FreeBSD.org>
83
84 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
85 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
86 AT_FREEBSD_PS_STRINGS.
87
6e2469ff
HD
882020-07-08 Hannes Domani <ssbssa@yahoo.de>
89
90 * auto-load.c (auto_load_objfile_script_1): Convert drive part
91 of debugfile path on Windows.
92
d1076c41
JB
932020-07-08 John Baldwin <jhb@FreeBSD.org>
94
95 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
96 argument to 'data'.
97
15f3b077
TT
982020-07-08 Tom Tromey <tromey@adacore.com>
99
100 * ada-lang.c (ada_exception_message_1): Use read_memory.
101
9fc501fd
AB
1022020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
103
104 PR python/22748
105 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
106 special handling for inline frames.
107 * findvar.c (value_of_register_lazy): Skip inline frames when
108 creating lazy register values.
109 * frame.c (frame_id_computed_p): Delete definition.
110 * frame.h (frame_id_computed_p): Delete declaration.
111
64cb3757
AB
1122020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
113
114 * NEWS: Mention additions to Python API.
115 * python/py-arch.c (archpy_register_groups): New function.
116 (arch_object_methods): Add 'register_groups' method.
117 * python/py-registers.c (reggroup_iterator_object): New struct.
118 (reggroup_object): New struct.
119 (gdbpy_new_reggroup): New function.
120 (gdbpy_reggroup_to_string): New function.
121 (gdbpy_reggroup_name): New function.
122 (gdbpy_reggroup_iter): New function.
123 (gdbpy_reggroup_iter_next): New function.
124 (gdbpy_new_reggroup_iterator): New function
125 (gdbpy_initialize_registers): Register new types.
126 (reggroup_iterator_object_type): Define new Python type.
127 (gdbpy_reggroup_getset): New static global.
128 (reggroup_object_type): Define new Python type.
129 * python/python-internal.h
130
0f767f94
AB
1312020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
132
133 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
134 * python/py-arch.c (archpy_registers): New function.
135 (arch_object_methods): Add 'registers' method.
136 * python/py-registers.c: New file.
137 * python/python-internal.h
138 (gdbpy_new_register_descriptor_iterator): Declare.
139 (gdbpy_initialize_registers): Declare.
140 * python/python.c (do_start_initialization): Call
141 gdbpy_initialize_registers.
142 * NEWS: Mention additions to the Python API.
143
87dbc774
AB
1442020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
145
146 * NEWS: Mention new Python API method.
147 * python/py-unwind.c (pending_framepy_architecture): New function.
148 (pending_frame_object_methods): Add architecture method.
149
3bc98c0c
AB
1502020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
151
152 * gdbarch.c: Regenerate.
153 * gdbarch.h: Regenerate.
154 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
155 (gdbarch_data): Use internal_error for the case where
156 deprecated_set_gdbarch_data was originally needed.
157 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
158 and use passed in obstack.
159 (libunwind_frame_set_descr): Should no longer get back NULL from
160 gdbarch_data.
161 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
162 type.
163 * user-regs.c (user_regs_init): Update parameters, and use passed
164 in obstack.
165 (user_reg_add): Should no longer get back NULL from gdbarch_data.
166 (_initialize_user_regs): Register as a pre-init gdbarch data type.
167
d8cc8af6
TV
1682020-07-06 Tom de Vries <tdevries@suse.de>
169
170 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
171 End-Of-Sequence in lte_is_less_than.
172 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
173 "gdb: Don't reorder line table entries too much when sorting".
174
947f7597
TV
1752020-07-06 Tom de Vries <tdevries@suse.de>
176
177 PR tui/26205
178 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
179
1e7c1b22
TV
1802020-07-05 Tom de Vries <tdevries@suse.de>
181
182 PR build/26187
183 * inferior.h (struct infcall_suspend_state_deleter): If available, use
184 std::uncaught_exceptions instead of deprecated
185 std::uncaught_exception.
186
a36158ec
SM
1872020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
188
189 * macroexp.h (macro_stringify): Return
190 gdb::unique_xmalloc_ptr<char>.
191 * macroexp.c (macro_stringify): Likewise.
192 * macrotab.c (fixup_definition): Update.
193
14d960c8
SM
1942020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
195
196 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
197 (lex_one_token): Update.
198 * macroexp.c (struct macro_buffer) <release>: Return
199 gdb::unique_xmalloc_ptr<char>.
200 (macro_stringify): Update.
201 (macro_expand): Update.
202 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
203 * macroexp.h (macro_expand_next): Likewise.
204
211d5b1c
SM
2052020-07-02 Simon Marchi <simon.marchi@efficios.com>
206
207 * macroexp.h (macro_lookup_ftype): Remove.
208 (macro_expand, macro_expand_once, macro_expand_next): Remove
209 lookup function parameters, add scope parameter.
210 * macroexp.c (scan, substitute_args, expand, maybe_expand,
211 macro_expand, macro_expand_once, macro_expand_next): Likewise.
212 * macroscope.h (standard_macro_lookup): Change parameter type
213 to macro_scope.
214 * macroscope.c (standard_macro_lookup): Likewise.
215 * c-exp.y (lex_one_token): Update.
216 * macrocmd.c (macro_expand_command): Likewise.
217 (macro_expand_once_command): Likewise.
218
b1a35af2
SM
2192020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
220
221 * inf-loop.c (inferior_event_handler): Remove client_data param.
222 * inf-loop.h (inferior_event_handler): Likewise.
223 * infcmd.c (step_1): Adjust.
224 * infrun.c (proceed): Adjust.
225 (fetch_inferior_event): Remove client_data param.
226 (infrun_async_inferior_event_handler): Adjust.
227 * infrun.h (fetch_inferior_event): Remove `void *` param.
228 * linux-nat.c (handle_target_event): Adjust.
229 * record-btrace.c (record_btrace_handle_async_inferior_event):
230 Adjust.
231 * record-full.c (record_full_async_inferior_event_handler):
232 Adjust.
233 * remote.c (remote_async_inferior_event_handler): Adjust.
234
1cdf9e33
TT
2352020-07-01 Tom Tromey <tom@tromey.com>
236
237 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
238 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
239
32c1e210
TT
2402020-07-01 Tom Tromey <tom@tromey.com>
241
242 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
243 tui_gen_win_info.
244 (tui_win_info::make_window): Merge with
245 tui_gen_win_info::make_window.
246 (tui_win_info::make_visible): Move from tui_gen_win_info.
247 * tui/tui-win.c (tui_win_info::max_width): Move from
248 tui_gen_win_info.
249 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
250 type.
251 <window_factory>: Likewise.
252 * tui/tui-layout.c (tui_win_info::resize): Move from
253 tui_gen_win_info.
254 (make_standard_window): Change return type.
255 (get_locator_window, tui_get_window_by_name): Likewise.
256 (tui_layout_window::apply): Remove a cast.
257 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
258 (struct tui_win_info): Merge with tui_gen_win_info.
259 (struct tui_gen_win_info): Remove.
260
a30cb6da
TT
2612020-07-01 Tom Tromey <tom@tromey.com>
262
263 * tui/tui-stack.h (struct tui_locator_window): Derive from
264 tui_win_info.
265 <do_scroll_horizontal, do_scroll_vertical>: New methods.
266 <can_box>: New method.
267
1eb2161f
TT
2682020-07-01 Tom Tromey <tom@tromey.com>
269
270 * tui/tui-stack.h (struct tui_locator_window): Remove body.
271
7134f2eb
TT
2722020-07-01 Tom Tromey <tom@tromey.com>
273
274 * tui/tui-regs.c (tui_data_window::display_registers_from)
275 (tui_data_window::display_registers_from)
276 (tui_data_window::first_data_item_displayed)
277 (tui_data_window::delete_data_content_windows): Update.
278 (tui_data_window::refresh_window, tui_data_window::no_refresh):
279 Remove.
280 (tui_data_window::check_register_values): Update.
281 (tui_data_item_window::rerender): Add parameters. Update.
282 (tui_data_item_window::refresh_window): Remove.
283 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
284 virtual.
285 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
286 tui_gen_win_info.
287 <refresh_window, max_height, min_height>: Remove.
288 <rerender>: Add parameters.
289 <x, y, visible>: New members.
290 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
291 <m_item_width>: New member.
292
22b7b041
TT
2932020-07-01 Tom Tromey <tom@tromey.com>
294
295 * tui/tui-regs.c (tui_data_window::show_register_group)
296 (tui_data_window::check_register_values): Update.
297 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
298 from item_no.
299
c9753adb
TT
3002020-07-01 Tom Tromey <tom@tromey.com>
301
302 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
303 useless "if".
304
9ab26b4a
TT
3052020-07-01 Tom Tromey <tom@tromey.com>
306
307 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
308 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
309
e555083f
TT
3102020-07-01 Tom Tromey <tom@tromey.com>
311
312 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
313 * tui/tui-winsource.h (enum tui_line_or_address_kind)
314 (struct tui_line_or_address): Move from tui-data.h.
315 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
316 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
317 (tui_cmd_window, tui_source_window_base, tui_source_window)
318 (tui_disasm_window): Don't declare.
319 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
320 to tui-winsource.h.
321 (SINGLE_KEY): Move to tui-stack.c.
322
7a02bab7
TT
3232020-07-01 Tom Tromey <tom@tromey.com>
324
325 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
326 std::string.
327 * tui/tui-regs.c (class tab_expansion_file): New.
328 (tab_expansion_file::write): New method.
329 (tui_register_format): Change return type. Use
330 tab_expansion_file.
331 (tui_get_register, tui_data_window::display_registers_from)
332 (tui_data_item_window::rerender): Update.
333 * tui/tui-io.h (tui_expand_tabs): Don't declare.
334 * tui/tui-io.c (tui_expand_tabs): Remove.
335
ea68593b
TT
3362020-07-01 Tom Tromey <tom@tromey.com>
337
338 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
339
a8caed5d
FS
3402020-07-01 Fangrui Song <maskray@google.com>
341
342 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
343
9cdf9820
AKS
3442020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
345
346 * dwarf2/read.c (set_die_type): Removed conditions to restrict
347 forms for DW_AT_associated and DW_AT_allocated attributes,
348 which is already checked in function attr_to_dynamic_prop.
349
a1520ad8
TT
3502020-06-30 Tom Tromey <tromey@adacore.com>
351
352 * dwarf2/read.c (quirk_rust_enum): Correctly call
353 alloc_rust_variant for default-less enum.
354
5ac58899
TT
3552020-06-30 Tom Tromey <tromey@adacore.com>
356
357 PR build/26183:
358 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
359 gdb::to_string.
360
19b187a9
SM
3612020-06-29 Simon Marchi <simon.marchi@efficios.com>
362
363 * gdbarch.sh (displaced_step_copy_insn): Update doc.
364 * gdbarch.h: Re-generate.
365
cd4c4c07
TT
3662020-06-28 Tom Tromey <tom@tromey.com>
367
368 * command.h (cmd_types): Remove.
369 (cmd_type): Don't declare.
370 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
371 typedef.
372 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
373 * cli/cli-decode.c (cmd_type): Remove.
374
05779d57
PA
3752020-06-27 Pedro Alves <palves@redhat.com>
376
377 * fork-child.c (prefork_hook): Adjust.
378 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
379 Delete.
380 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
381 * inferior.c (inferior::set_tty, inferior::tty): New methods.
382 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
383 Remove declarations.
384 (struct inferior) <set_tty, tty>: New methods.
385 (struct inferior) <terminal>: Rename to ...
386 (struct inferior) <m_terminal>: ... this and make private.
387 * main.c (captured_main_1): Adjust.
388 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
389 (mi_cmd_inferior_tty_show): Adjust.
390 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
391 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
392
1776e3e5
NA
3932020-06-26 Nick Alcock <nick.alcock@oracle.com>
394
395 * configure.ac: Add --enable-libctf: handle --disable-static
396 properly.
397 * acinclude.m4: sinclude ../config/enable.m4.
398 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
399 (LIBCTF): Substitute in.
400 (CTF_DEPS): New, likewise.
401 (CLIBS): libctf needs symbols from libbfd: move earlier.
402 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
403 flags.
404 * ctfread.c: Surround in ENABLE_LIBCTF.
405 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
406 * configure: Regenerate.
407 * config.in: Likewise.
408
58373b80
SM
4092020-06-25 Simon Marchi <simon.marchi@efficios.com>
410
411 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
412
277474ee
SM
4132020-06-25 Simon Marchi <simon.marchi@efficios.com>
414
415 * inferior.h (struct inferior) <terminal>: Change type to
416 gdb::unique_xmalloc_ptr<char>.
417 * inferior.c (inferior::~inferior): Don't free inf->terminal.
418 * infcmd.c (set_inferior_io_terminal): Don't free terminal
419 field, adjust to unique pointer.
420 (get_inferior_io_terminal): Adjust to unique pointer.
421
6d74da72
AB
4222020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
423
424 * riscv-tdep.c (riscv_print_registers_info): Loop over all
425 registers, not just the known core set of registers.
426
2e52d038
AB
4272020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
428
429 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
430 fflags, frm, and fcsr registers.
431 (riscv_register_reggroup_p): Remove unknown CSRs from save and
432 restore groups.
433 (riscv_tdesc_unknown_reg): New function.
434 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
435 tdesc_use_registers.
436 * riscv-tdep.h (struct gdbarch_tdep): Add
437 unknown_csrs_first_regnum, unknown_csrs_count,
438 duplicate_fflags_regnum, duplicate_frm_regnum, and
439 duplicate_fcsr_regnum fields.
440
be64fd07
AB
4412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
442
443 * target-descriptions.c (tdesc_use_registers): Add new parameter a
444 callback, use the callback (when not null) to help number unknown
445 registers.
446 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
447 (tdesc_use_registers): Add extra parameter to declaration.
448
3b9fce96
AB
4492020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
450
451 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
452 in the file.
453 (class riscv_pending_register_alias): Likewise.
454 (riscv_register_feature::register_info): Change 'required_p' field
455 to 'required', and change its type. Add 'check' member function.
456 (riscv_register_feature::register_info::check): Define new member
457 function.
458 (riscv_xreg_feature): Change initialisation of 'required' field.
459 (riscv_freg_feature): Likewise.
460 (riscv_virtual_feature): Likewise.
461 (riscv_csr_feature): Likewise.
462 (riscv_check_tdesc_feature): Take extra parameter, the csr
463 tdesc_feature, rewrite the function to use the new
464 riscv_register_feature::register_info::check function.
465 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
466
865bad26
AB
4672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
468
469 * features/Makefile: Remove all references to the deleted files
470 below.
471 * features/riscv/32bit-csr.c: Deleted.
472 * features/riscv/32bit-csr.xml: Deleted.
473 * features/riscv/64bit-csr.c: Deleted.
474 * features/riscv/64bit-csr.xml: Deleted.
475 * features/riscv/rebuild-csr-xml.sh: Deleted.
476
ed69cbc8
AB
4772020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
478
479 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
480 whitespace error for declaration of names member variable.
481 (struct riscv_register_feature): Add new prefer_first_name member
482 variable, and fix whitespace error in declaration of registers.
483 (riscv_xreg_feature): Initialize prefer_first_name field.
484 (riscv_freg_feature): Likewise.
485 (riscv_virtual_feature): Likewise.
486 (riscv_csr_feature): Likewise.
487 (riscv_register_name): Expand on comments. Remove register name
488 modifications for CSR and virtual registers.
489
4445e8f5
AB
4902020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
491
492 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
493 errors.
494
767a879e
AB
4952020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
496
497 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
498 riscv-opc.h.
499 (class riscv_pending_register_alias): New class.
500 (riscv_check_tdesc_feature): Take vector of pending aliases and
501 populate it as appropriate.
502 (riscv_setup_register_aliases): Delete.
503 (riscv_gdbarch_init): Create vector of pending aliases and pass it
504 to riscv_check_tdesc_feature in all cases. Use the vector to
505 create the register aliases.
506
bb6e55f3
RO
5072020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
508
509 * sol2-tdep.c (sol2_static_transform_name): Remove.
510 (sol2_init_abi): Don't register it.
511 * gdbarch.sh (static_transform_name): Remove.
512 * gdbarch.c, gdbarch.h: Regenerate.
513
514 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
515 gdbarch_static_transform_name.
516 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
517 * stabsread.c (define_symbol) <'X'>: Remove.
518 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
519 handling.
520 <'V'>: Likewise.
521 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
522 <'S'>: Remove call to gdbarch_static_transform_name.
523
c6d36836
RO
5242020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
525
526 * procfs.c (procfs_pre_trace): New function.
527 (procfs_target::create_inferior): Pass it to fork_inferior.
528
a7e6196b
RO
5292020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
530
531 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
532 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
533 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
534 sol2-tdep.o, sparc-sol2-tdep.o.
535 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
536 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
537 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
538 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
539
d412e696
RO
5402020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
541
542 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
543 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
544 Call sol2_init_abi.
545 Remove calls to set_gdbarch_skip_solib_resolver,
546 set_gdbarch_core_pid_to_str.
547 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
548 (i386_sol2_static_transform_name): Remove.
549 (i386_sol2_init_abi): Call sol2_init_abi.
550 Remove calls to set_gdbarch_sofun_address_maybe_missing,
551 set_gdbarch_static_transform_name,
552 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
553 Use sol2_sigtramp_p.
554 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
555 (sol2_sigtramp_p): New function.
556 (sol2_static_transform_name): New function.
557 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
558 (sol2_init_abi): New function.
559 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
560 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
561 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
562 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
563 (sparc_sol2_static_transform_name): Remove.
564 (sparc32_sol2_init_abi): Call sol2_init_abi.
565 Remove calls to set_gdbarch_sofun_address_maybe_missing,
566 set_gdbarch_static_transform_name,
567 set_gdbarch_skip_solib_resolver,
568 set_gdbarch_core_pid_to_str.
569 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
570 (sparc_sol2_static_transform_name): Remove
571 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
572 call sol2_sigtramp_p.
573 (sparc64_sol2_init_abi): Call sol2_init_abi.
574 Remove calls to set_gdbarch_sofun_address_maybe_missing,
575 set_gdbarch_static_transform_name,
576 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
577
a8654e7d
PW
5782020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
579
580 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
581 * exec.c (validate_exec_file): If from_tty, set both
582 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
583 * symfile.c (symbol_file_add_with_addrs): if always_confirm
584 and from_tty, unconditionally ask a confirmation.
585
caa7fd04
AB
5862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
587
588 * target-descriptions.c (tdesc_architecture_name): Protect against
589 NULL pointer dereference.
590 (maint_print_xml_tdesc_cmd): New function.
591 (_initialize_target_descriptions): Register new 'maint print
592 xml-tdesc' command and give it the filename completer.
593 * NEWS: Mention new 'maint print xml-tdesc' command.
594
fbf42f4e
AB
5952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
596
597 * target-descriptions.c (class tdesc_compatible_info): New class.
598 (struct target_desc): Change type of compatible vector.
599 (tdesc_compatible_p): Update for change in type of
600 target_desc::compatible.
601 (tdesc_compatible_info_list): New function.
602 (tdesc_compatible_info_arch_name): New function.
603 (tdesc_add_compatible): Update for change in type of
604 target_desc::compatible.
605 (print_c_tdesc::visit_pre): Likewise.
606
20821f4e
AB
6072020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
608
609 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
610 whitespace to underscore.
611 (maint_print_c_tdesc_cmd): Use fake filename for target
612 descriptions that came from the target.
613 (_initialize_target_descriptions): Add filename command completion
614 for 'maint print c-tdesc'.
615
1fb5ee62
SM
6162020-06-23 Simon Marchi <simon.marchi@efficios.com>
617
618 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
619 lines.
620
fc3ecb3e
SM
6212020-06-23 Simon Marchi <simon.marchi@efficios.com>
622
623 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
624 lines.
625 (dwarf2_find_location_expression): Likewise.
626 (call_site_parameter_matches): Likewise.
627 (dwarf2_compile_expr_to_ax): Likewise.
628 (disassemble_dwarf_expression): Likewise.
629 (loclist_describe_location): Likewise.
630
236ef034
PA
6312020-06-23 Pedro Alves <palves@redhat.com>
632
633 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
634 progspace-and-thread.h. Include scoped-mock-context.h instead.
635 (register_to_value_test): Use scoped_mock_context.
636 * regcache.c: Include "scoped-mock-context.h".
637 (cooked_read_test): Don't error out if a target is already pushed.
638 Use scoped_mock_context. Adjust.
639 * scoped-mock-context.h: New file.
640
39e7ecca
AB
6412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
642
643 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
644 initializer.
645 (ada_language::is_string_type_p): New member function.
646 * c-lang.c (c_language_data): Delete la_is_string_type_p
647 initializer.
648 (cplus_language_data): Likewise.
649 (asm_language_data): Likewise.
650 (minimal_language_data): Likewise.
651 * d-lang.c (d_language_data): Likewise.
652 * f-lang.c (f_is_string_type_p): Delete function, implementation
653 moved to f_language::is_string_type_p.
654 (f_language_data): Delete la_is_string_type_p initializer.
655 (f_language::is_string_type_p): New member function,
656 implementation from f_is_string_type_p.
657 * go-lang.c (go_is_string_type_p): Delete function, implementation
658 moved to go_language::is_string_type_p.
659 (go_language_data): Delete la_is_string_type_p initializer.
660 (go_language::is_string_type_p): New member function,
661 implementation from go_is_string_type_p.
662 * language.c (language_defn::is_string_type_p): Define new member
663 function.
664 (default_is_string_type_p): Make static, add comment copied from
665 header file.
666 (unknown_language_data): Delete la_is_string_type_p initializer.
667 (unknown_language::is_string_type_p): New member function.
668 (auto_language_data): Delete la_is_string_type_p initializer.
669 (auto_language::is_string_type_p): New member function.
670 * language.h (language_data): Delete la_is_string_type_p field.
671 (language_defn::is_string_type_p): Declare new function.
672 (default_is_string_type_p): Delete desclaration, move comment to
673 definition.
674 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
675 moved to m2_language::is_string_type_p.
676 (m2_language_data): Delete la_is_string_type_p initializer.
677 (m2_language::is_string_type_p): New member function,
678 implementation from m2_is_string_type_p.
679 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
680 initializer.
681 * opencl-lang.c (opencl_language_data): Likewise.
682 * p-lang.c (pascal_is_string_type_p): Delete function,
683 implementation moved to pascal_language::is_string_type_p.
684 (pascal_language_data): Delete la_is_string_type_p initializer.
685 (pascal_language::is_string_type_p): New member function,
686 implementation from pascal_is_string_type_p.
687 * rust-lang.c (rust_is_string_type_p): Delete function,
688 implementation moved to rust_language::is_string_type_p.
689 (rust_language_data): Delete la_is_string_type_p initializer.
690 (rust_language::is_string_type_p): New member function,
691 implementation from rust_is_string_type_p.
692 * valprint.c (val_print_scalar_or_string_type_p): Update call to
693 is_string_type_p.
694
4ffc13fb
AB
6952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
696
697 * ada-lang.c (ada_language_data): Delete la_print_typedef
698 initializer.
699 (ada_language::print_typedef): New member function.
700 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
701 (cplus_language_data): Likewise.
702 (asm_language_data): Likewise.
703 (minimal_language_data): Likewise.
704 * d-lang.c (d_language_data): Likewise.
705 * f-lang.c (f_language_data): Likewise.
706 (f_language::print_typedef): New member function.
707 * go-lang.c (go_language_data): Delete la_print_typedef
708 initializer.
709 * language.c (language_defn::print_typedef): Define member
710 function.
711 (unknown_language_data): Delete la_print_typedef initializer.
712 (unknown_language::print_typedef): New member function.
713 (auto_language_data): Delete la_print_typedef initializer.
714 (auto_language::print_typedef): New member function.
715 * language.h (language_data): Delete la_print_typedef field.
716 (language_defn::print_typedef): Declare new member function.
717 (LA_PRINT_TYPEDEF): Update call to print_typedef.
718 (default_print_typedef): Delete declaration.
719 * m2-lang.c (m2_language_data): Delete la_print_typedef
720 initializer.
721 (m2_language::print_typedef): New member function.
722 * objc-lang.c (objc_language_data): Delete la_print_typedef
723 initializer.
724 * opencl-lang.c (opencl_language_data): Likewise.
725 * p-lang.c (pascal_language_data): Likewise.
726 (pascal_language::print_typedef): New member function.
727 * rust-lang.c (rust_print_typedef): Delete function,
728 implementation moved to rust_language::print_typedef.
729 (rust_language): Delete la_print_typedef initializer.
730 (rust_language::print_typedef): New member function,
731 implementation from rust_print_typedef.
732 * typeprint.c (default_print_typedef): Delete.
733
d711ee67
AB
7342020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
735
736 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
737 (ada_language::printstr): New member function.
738 * c-lang.c (c_language_data): Delete la_printstr initializer.
739 (cplus_language_data): Likewise.
740 (asm_language_data): Likewise.
741 (minimal_language_data): Likewise.
742 * d-lang.c (d_language_data): Likewise.
743 * f-lang.c (f_printstr): Rename to f_language::printstr.
744 (f_language_data): Delete la_printstr initializer.
745 (f_language::printstr): New member function, implementation from
746 f_printstr.
747 * go-lang.c (go_language_data): Delete la_printstr initializer.
748 * language.c (language_defn::printstr): Define new member
749 function.
750 (unk_lang_printstr): Delete.
751 (unknown_language_data): Delete la_printstr initializer.
752 (unknown_language::printstr): New member function.
753 (auto_language_data): Delete la_printstr initializer.
754 (auto_language::printstr): New member function.
755 * language.h (language_data): Delete la_printstr field.
756 (language_defn::printstr): Declare new member function.
757 (LA_PRINT_STRING): Update call to printstr.
758 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
759 (m2_language_data): Delete la_printstr initializer.
760 (m2_language::printstr): New member function, implementation from
761 m2_printstr.
762 * objc-lang.c (objc_language_data): Delete la_printstr
763 initializer.
764 * opencl-lang.c (opencl_language_data): Likewise.
765 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
766 (pascal_language_data): Delete la_printstr initializer.
767 (pascal_language::printstr): New member function, implementation
768 from pascal_printstr.
769 * p-lang.h (pascal_printstr): Delete declaration.
770 * rust-lang.c (rust_printstr): Update header comment.
771 (rust_language_data): Delete la_printstr initializer.
772 (rust_language::printstr): New member function.
773
52b50f2c
AB
7742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
775
776 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
777 (ada_language::printchar): New member function.
778 * c-lang.c (c_language_data): Delete la_printchar initializer.
779 (cplus_language_data): Likewise.
780 (asm_language_data): Likewise.
781 (minimal_language_data): Likewise.
782 * d-lang.c (d_language_data): Likewise.
783 * f-lang.c (f_printchar): Rename to f_language::printchar.
784 (f_language_data): Delete la_printchar initializer.
785 (f_language::printchar): New member function, implementation from
786 f_printchar.
787 * go-lang.c (go_language_data): Delete la_printchar initializer.
788 * language.c (unk_lang_printchar): Delete.
789 (language_defn::printchar): Define new member function.
790 (unknown_language_data): Delete la_printchar initializer.
791 (unknown_language::printchar): New member function.
792 (auto_language_data): Delete la_printchar initializer.
793 (auto_language::printchar): New member function.
794 * language.h (language_data): Delete la_printchar field.
795 (language_defn::printchar): Declare new member function.
796 (LA_PRINT_CHAR): Update call to printchar.
797 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
798 (m2_language::printchar): New member function.
799 * objc-lang.c (objc_language_data): Delete la_printchar
800 initializer.
801 * opencl-lang.c (opencl_language_data): Likewise.
802 * p-lang.c (pascal_language_data): Delete la_printchar
803 initializer.
804 (pascal_language::printchar): New member function.
805 * rust-lang.c (rust_printchar): Rename to
806 rust_language::printchar.
807 (rust_language_data): Delete la_printchar initializer.
808 (rust_language::printchar): New member function, implementation
809 from rust_printchar.
810
ec8cec5b
AB
8112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
812
813 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
814 (ada_language_data): Delete la_emitchar initializer.
815 (ada_language::emitchar): New member function, implementation from
816 emit_char.
817 * c-lang.c (c_language_data): Delete la_emitchar initializer.
818 (cplus_language_data): Likewise.
819 (asm_language_data): Likewise.
820 (minimal_language_data): Likewise.
821 * d-lang.c (d_language_data): Likewise.
822 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
823 (f_language_data): Delete la_emitchar initializer.
824 (f_language::emitchar): New member function, implementation from
825 f_emit_char.
826 * go-lang.c (go_language_data): Delete la_emitchar initializer.
827 * language.c (unk_lang_emit_char): Delete.
828 (language_defn::emitchar): New member function definition.
829 (unknown_language_data): Delete la_emitchar initializer.
830 (unknown_language::emitchar): New member function.
831 (auto_language_data): Delete la_emitchar initializer.
832 (auto_language::emitchar): New member function.
833 * language.h (language_data): Delete la_emitchar field.
834 (language_defn::emitchar): New member field declaration.
835 (LA_EMIT_CHAR): Update call to emitchar.
836 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
837 (m2_language_data): Delete la_emitchar initializer.
838 (m2_language::emitchar): New member function, implementation from
839 m2_emit_char.
840 * objc-lang.c (objc_language_data): Delete la_emitchar
841 initializer.
842 * opencl-lang.c (opencl_language_data): Likewise.
843 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
844 (pascal_language_data): Delete la_emitchar initializer.
845 (pascal_language::emitchar): New member function, implementation
846 from pascal_emit_char.
847 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
848 (rust_language_data): Delete la_emitchar initializer.
849 (rust_language::emitchar): New member function, implementation
850 from rust_emitchar.
851
1bf9c363
AB
8522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
853
854 * ada-lang.c (resolve): Rename to ada_language::post_parser.
855 (ada_language_data): Delete la_post_parser initializer.
856 (ada_language::post_parser): New member function.
857 * c-lang.c (c_language_data): Delete la_post_parser initializer.
858 (cplus_language_data): Likewise.
859 (asm_language_data): Likewise.
860 (minimal_language_data): Likewise.
861 * d-lang.c (d_language_data): Likewise.
862 * f-lang.c (f_language_data): Likewise.
863 * go-lang.c (go_language_data): Likewise.
864 * language.c (unknown_language_data): Likewise.
865 (auto_language_data): Likewise.
866 * language.h (language_data): Delete la_post_parser field.
867 (language_defn::post_parser): New member function.
868 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
869 * objc-lang.c (objc_language_data): Likewise.
870 * opencl-lang.c (opencl_language_data): Likewise.
871 * p-lang.c (pascal_language_data): Likewise.
872 * parse.c (parse_exp_in_context): Update call to post_parser.
873 (null_post_parser): Delete definition.
874 * parser-defs.h (null_post_parser): Delete declaration.
875 * rust-lang.c (rust_language_data): Delete la_post_parser
876 initializer.
877
87afa652
AB
8782020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
879
880 * ada-lang.c (parse): Rename to ada_language::parser.
881 (ada_language_data): Delete la_parser initializer.
882 (ada_language::parser): New member function, implementation from
883 parse.
884 * c-lang.c (c_language_data): Delete la_parser initializer.
885 (cplus_language_data): Likewise.
886 (asm_language_data): Likewise.
887 (minimal_language_data): Likewise.
888 * d-lang.c (d_language_data): Likewise.
889 (d_language::parser): New member function.
890 * f-lang.c (f_language_data): Delete la_parser initializer.
891 (f_language::parser): New member function.
892 * go-lang.c (go_language_data): Delete la_parser initializer.
893 (go_language::parser): New member function.
894 * language.c (unk_lang_parser): Delete.
895 (language_defn::parser): Define new member function.
896 (unknown_language_data): Delete la_parser initializer.
897 (unknown_language::parser): New member function.
898 (auto_language_data): Delete la_parser initializer.
899 (auto_language::parser): New member function.
900 * language.h (language_data): Delete la_parser field.
901 (language_defn::parser): Declare new member function.
902 * m2-lang.c (m2_language_data): Delete la_parser initializer.
903 (m2_language::parser): New member function.
904 * objc-lang.c (objc_language_data): Delete la_parser initializer.
905 * opencl-lang.c (opencl_language_data): Likewise.
906 * p-lang.c (pascal_language_data): Likewise.
907 (pascal_language::parser): New member function.
908 * parse.c (parse_exp_in_context): Update call to parser.
909 * rust-lang.c (rust_language_data): Delete la_parser initializer.
910 (rust_language::parser): New member function.
911
37825800
AB
9122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
913
914 * top.c (print_gdb_configuration): Print --with-python-libdir
915 configuration value.
916
5b860c93
PW
9172020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
918
919 * NEWS: Mention change to the alias command.
920
cf00cd6f
PW
9212020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
922
923 * cli/cli-cmds.c (lookup_cmd_for_default_args)
924 (alias_command_completer)
925 (make_alias_options_def_group): New functions.
926 (alias_opts, alias_option_defs): New struct and array.
927 (alias_usage_error): Update usage.
928 (alias_command): Handles optional DEFAULT-ARGS... arguments.
929 Use option framework.
930 (_initialize_cli_cmds): Update alias command help.
931 Update aliases command help.
932 (show_user):
933 Add NULL for new default_args lookup_cmd argument.
934 (valid_command_p): Rename to validate_aliased_command.
935 Add NULL for new default_args lookup_cmd argument. Verify that the
936 aliased_command has no default args.
937 * cli/cli-decode.c (help_cmd): Show aliases definitions.
938 (lookup_cmd_1, lookup_cmd): New argument default_args.
939 (add_alias_cmd):
940 Add NULL for new default_args lookup_cmd argument.
941 (print_help_for_command): Show default args under the layout
942 alias some_alias = some_aliased_cmd some_alias_default_arg.
943 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
944 xfree default_args in destructor.
945 * cli/cli-script.c (process_next_line, do_define_command):
946 Add NULL for new default_args lookup_cmd argument.
947 * command.h: Declare new default_args argument in lookup_cmd
948 and lookup_cmd_1.
949 * completer.c (complete_line_internal_1):
950 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
951 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
952 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
953 Likewise.
954 * infcmd.c (_initialize_infcmd): Likewise.
955 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
956 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
957 * python/py-param.c (add_setshow_generic): Likewise.
958 * remote.c (_initialize_remote): Likewise.
959 * top.c (execute_command): Prepend default_args if command has some.
960 (set_verbose):
961 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
962 * tracepoint.c (validate_actionline, encode_actions_1):
963 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
964
bd920864
TBA
9652020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
966
967 * jit.c (jit_read_descriptor): Use bool as the return type.
968 (jit_breakpoint_re_set_internal): Use bool as the return type.
969 Invert the return value logic; return true if the jit breakpoint
970 has been successfully initialized.
971 (jit_inferior_init): Update the call to
972 jit_breakpoint_re_set_internal.
973
f8098322
PA
9742020-06-22 Pedro Alves <palves@redhat.com>
975
976 PR gdb/25939
977 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
978 Use the current inferior instead. Don't return
979 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
980 wait again.
981 * sol-thread.c (sol_thread_target::wait): Don't reference
982 inferior_ptid.
983 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
984 (sol_update_thread_list_callback): Use the current inferior's pid
985 instead of inferior_ptid.
986
196535a6
RO
9872020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
988
989 * procfs.c: Cleanup many comments.
990
991 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
992 (AFTER_WATCHFLAG): Replace by value.
993
994 (MAIN_PROC_NAME_FORMAT): Inline ...
995 (create_procinfo): ... here.
996
997 (procfs_debug_inferior): Remove SYS_exec handling.
998 (syscall_is_exec): Likewise.
999 (procfs_set_exec_trap): Likewise.
1000
1001 (syscall_is_lwp_exit): Inline in callers.
1002 (syscall_is_exit): Likewise.
1003 (syscall_is_exec): Likewise.
1004 (syscall_is_lwp_create): Likewise.
1005
1006 (invalidate_cache): Remove #if 0 code.
1007
1008 (make_signal_thread_runnable): Remove.
1009 (procfs_target::resume): Remove #if 0 code.
1010
cf6f3e86
RO
10112020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1012
1013 PR gdb/25939
1014 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1015 call ...
1016 (procfs_target::create_inferior): ... here.
1017
48e9cc84
PW
10182020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1019
1020 * exec.c (validate_exec_file): Ensure the build-id is up to
1021 date by calling reopen_exec_file (that checks file timestamp
1022 to decide to re-read the file).
1023
3922b302
PA
10242020-06-18 Pedro Alves <palves@redhat.com>
1025
1026 PR gdb/25412
1027 * gdbthread.h (delete_thread, delete_thread_silent)
1028 (find_thread_ptid): Update comments.
1029 * thread.c (current_thread_): New global.
1030 (is_current_thread): Move higher, and reimplement.
1031 (inferior_thread): Reimplement.
1032 (set_thread_exited): Use bool. Add assertions.
1033 (add_thread_silent): Simplify thread-reuse handling by always
1034 calling delete_thread.
1035 (delete_thread): Remove intro comment.
1036 (find_thread_ptid): Skip exited threads.
1037 (switch_to_thread_no_regs): Write to current_thread_.
1038 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1039 INFERIOR_PTID. Clear current_thread_.
1040
6dbdab44
PA
10412020-06-18 Pedro Alves <palves@redhat.com>
1042
1043 * aix-thread.c (pd_update): Use switch_to_thread.
1044
2da4b788
PA
10452020-06-18 Pedro Alves <palves@redhat.com>
1046
1047 * ravenscar-thread.c (ravenscar_thread_target): Update.
1048 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1049 (ravenscar_thread_target::add_active_thread): ... this. Don't
1050 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1051 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1052
50838d1b
PA
10532020-06-18 Pedro Alves <palves@redhat.com>
1054
1055 * nat/windows-nat.c (current_windows_thread): Remove.
1056 * nat/windows-nat.h (current_windows_thread): Remove.
1057 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1058 Adjust.
1059 (display_selectors): Adjust to fetch the current
1060 windows_thread_info based on inferior_ptid.
1061 (fake_create_process): No longer write to current_windows_thread.
1062 (windows_nat_target::get_windows_debug_event):
1063 Don't set inferior_ptid or current_windows_thread.
1064 (windows_nat_target::wait): Adjust to not rely on
1065 current_windows_thread.
1066 (do_initial_windows_stuff): Now a method of windows_nat_target.
1067 Switch to the last_ptid thread.
1068 (windows_nat_target::attach): Adjust.
1069 (windows_nat_target::detach): Use switch_to_no_thread instead of
1070 writing to inferior_ptid directly.
1071 (windows_nat_target::create_inferior): Adjust.
1072
31ce04e9
PA
10732020-06-18 Pedro Alves <palves@redhat.com>
1074
1075 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1076
1ee1a363
PA
10772020-06-18 Pedro Alves <palves@redhat.com>
1078
1079 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1080 after creating it, instead of writing to inferior_ptid. Don't
1081 write to inferior_ptid.
1082
6d350754
PA
10832020-06-18 Pedro Alves <palves@redhat.com>
1084
1085 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1086
5d971d48
PA
10872020-06-18 Pedro Alves <palves@redhat.com>
1088
1089 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1090 it, instead of writing to inferior_ptid.
1091
86e57d1b
PA
10922020-06-18 Pedro Alves <palves@redhat.com>
1093
1094 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1095 to inferior_ptid.
1096
f2e1c129
PA
10972020-06-18 Pedro Alves <palves@redhat.com>
1098
1099 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1100 instead of writing to inferior_ptid directly.
1101
60db1b85
PA
11022020-06-18 Pedro Alves <palves@redhat.com>
1103
1104 * corelow.c (core_target::close): Use switch_to_no_thread instead
1105 of writing to inferior_ptid directly.
1106 (add_to_thread_list, core_target_open): Use switch_to_thread
1107 instead of writing to inferior_ptid directly.
1108
fe7d6a8d
PA
11092020-06-18 Pedro Alves <palves@redhat.com>
1110
1111 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1112 inferior_ptid.
1113 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1114 inferior_ptid.
1115 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1116 inferior_ptid directly.
1117 (darwin_nat_target::init_thread_list): Switch to thread, instead
1118 of writing to inferior_ptid.
1119 (darwin_nat_target::attach): Don't write to inferior_ptid.
1120 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1121
975f8708
PA
11222020-06-18 Pedro Alves <palves@redhat.com>
1123
1124 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1125 thread.
1126 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1127 Instead use switch_to_thread.
1128 (gnu_nat_target::detach): Use switch_to_no_thread
1129 instead of writing to inferior_ptid directly. Used passed-in
1130 inferior instead of looking up the inferior by pid.
1131
1a204730
PA
11322020-06-18 Pedro Alves <palves@redhat.com>
1133
1134 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1135 inferior_ptid.
1136
ebe84f23
PA
11372020-06-18 Pedro Alves <palves@redhat.com>
1138
1139 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1140 inferior_ptid.
1141 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1142 thread.
1143 (nto_procfs_target::detach): Avoid referencing
1144 inferior_ptid. Use switch_to_no_thread instead of writing to
1145 inferior_ptid directly.
1146 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1147 instead of writing to inferior_ptid directly.
1148 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1149 to thread.
1150
191f02e5
PA
11512020-06-18 Pedro Alves <palves@redhat.com>
1152
1153 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1154 after creating it, instead of writing to inferior_ptid.
1155 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1156 to inferior_ptid directly.
1157 (gdbsim_target::wait): Don't write to inferior_ptid.
1158
0ac55310
PA
11592020-06-18 Pedro Alves <palves@redhat.com>
1160
1161 * remote.c (remote_target::remote_notice_new_inferior): Use
1162 switch_to_thread instead of writing to inferior_ptid directly.
1163 (remote_target::add_current_inferior_and_thread): Use
1164 switch_to_no_thread instead of writing to inferior_ptid directly.
1165 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1166 and switch_to_thread instead of using set_current_inferior or
1167 writing to inferior_ptid directly.
1168
5233f39b
PA
11692020-06-18 Pedro Alves <palves@redhat.com>
1170
1171 * tracectf.c (ctf_target_open): Switch to added thread instead of
1172 writing to inferior_ptid directly.
1173 (ctf_target::close): Use switch_to_no_thread instead of writing to
1174 inferior_ptid directly.
1175
087e161b
PA
11762020-06-18 Pedro Alves <palves@redhat.com>
1177
1178 * tracefile-tfile.c (tfile_target_open): Don't write to
1179 inferior_ptid directly, instead switch to added thread.
1180 (tfile_target::close): Use switch_to_no_thread instead of writing
1181 to inferior_ptid directly.
1182
7fb43e53
PA
11832020-06-18 Pedro Alves <palves@redhat.com>
1184
1185 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1186 (procfs_target::detach): Use switch_to_no_thread
1187 instead of writing to inferior_ptid directly.
1188 (do_attach): Change return type to void. Switch to the added
1189 thread.
1190 (procfs_target::create_inferior): Switch to the added thread.
1191 (procfs_do_thread_registers): Don't write to inferior_ptid.
1192
18493a00
PA
11932020-06-18 Pedro Alves <palves@redhat.com>
1194
1195 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1196 of writing to inferior_ptid.
1197 (scoped_restore_exited_inferior): Delete.
1198 (handle_vfork_child_exec_or_exit): Simplify using
1199 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1200 instead of writing to inferior_ptid.
1201 (THREAD_STOPPED_BY): Delete.
1202 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1203 (thread_stopped_by_hw_breakpoint): Delete.
1204 (save_waitstatus): Use
1205 scoped_restore_current_thread+switch_to_thread, and call
1206 target_stopped_by_watchpoint instead of
1207 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1208 instead of thread_stopped_by_sw_breakpoint, and
1209 target_stopped_by_hw_breakpoint instead of
1210 thread_stopped_by_hw_breakpoint.
1211 (handle_inferior_event)
1212 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1213 inferior_ptid directly, nor
1214 set_current_inferior/set_current_program_space. Use
1215 switch_to_thread / switch_to_inferior_no_thread instead.
1216
a0776b13
PA
12172020-06-18 Pedro Alves <palves@redhat.com>
1218
1219 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1220 instead of writing to inferior_ptid.
1221
6155c136
PA
12222020-06-18 Pedro Alves <palves@redhat.com>
1223
1224 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1225 added thread.
1226 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1227 to the added thread.
1228 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1229 instead of writing to inferior_ptid.
1230
c5316fc6
PA
12312020-06-18 Pedro Alves <palves@redhat.com>
1232
1233 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1234 (register_to_value_test): Mock a program_space too. Heap-allocate
1235 the address space. Don't write to inferior_ptid. Use
1236 switch_to_thread instead.
1237
8df01799
PA
12382020-06-18 Pedro Alves <palves@redhat.com>
1239
1240 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1241 Delete.
1242 (find_signalled_thread()): New, factored out from
1243 linux_make_corefile_notes and adjusted to handle exited threads.
1244 (linux_make_corefile_notes): Adjust to use the new
1245 find_signalled_thread.
1246
41792d68
PA
12472020-06-18 Pedro Alves <palves@redhat.com>
1248
1249 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1250 of saving/restoring inferior_ptid.
1251
612f258a
TT
12522020-06-17 Tom Tromey <tom@tromey.com>
1253
1254 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1255 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1256 declare.
1257 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1258
efb763a5
SM
12592020-06-15 Simon Marchi <simon.marchi@efficios.com>
1260
1261 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1262 of partial symtabs.
1263
2951f6c0
SM
12642020-06-17 Simon Marchi <simon.marchi@efficios.com>
1265
1266 * regformats/reg-arm.dat: Remove.
1267 * regformats/reg-bfin.dat: Remove.
1268 * regformats/reg-cris.dat: Remove.
1269 * regformats/reg-crisv32.dat: Remove.
1270 * regformats/reg-m32r.dat: Remove.
1271 * regformats/reg-tilegx.dat: Remove.
1272 * regformats/reg-tilegx32.dat: Remove.
1273
7d458ea5
SM
12742020-06-17 Simon Marchi <simon.marchi@efficios.com>
1275
1276 * features/Makefile (WHICH): Remove arm files.
1277 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1278 * regformats/arm/arm-with-neon.dat: Remove.
1279 * regformats/arm/arm-with-vfpv2.dat: Remove.
1280 * regformats/arm/arm-with-vfpv3.dat: Remove.
1281
3af96c0d
SM
12822020-06-17 Simon Marchi <simon.marchi@efficios.com>
1283
1284 * features/Makefile (XMLTOC): Remove rx.xml.
1285
b25e22fd
PA
12862020-06-17 Pedro Alves <palves@redhat.com>
1287
1288 * gdbthread.h (thread_control_state) <trap_expected> Update
1289 comments.
1290
a78a19b1
AB
12912020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1292
1293 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1294 ada_language::lookup_symbol_nonlocal.
1295 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1296 (ada_language::lookup_symbol_nonlocal): New member function,
1297 implementation from ada_lookup_symbol_nonlocal.
1298 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1299 initializer.
1300 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1301 initializer.
1302 (cplus_language::lookup_symbol_nonlocal): New member function.
1303 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1304 (minimal_language_data) Likewise.
1305 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1306 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1307 initializer.
1308 (d_language::lookup_symbol_nonlocal): New member function.
1309 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1310 initializer.
1311 (f_language::lookup_symbol_nonlocal): New member function.
1312 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1313 initializer.
1314 * language.c (unknown_language_data): Likewise.
1315 (auto_language_data): Likewise.
1316 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1317 field.
1318 (language_defn::lookup_symbol_nonlocal): New member function.
1319 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1320 initializer.
1321 * objc-lang.c (objc_language_data): Likewise.
1322 * opencl-lang.c (opencl_language_data): Likewise.
1323 * p-lang.c (pascal_language_data): Likewise.
1324 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1325 rust_language::lookup_symbol_nonlocal.
1326 (rust_language_data): Delete la_lookup_symbol_nonlocal
1327 initializer.
1328 (rust_language::lookup_symbol_nonlocal): New member function,
1329 implementation from rust_lookup_symbol_nonlocal.
1330 * symtab.c (lookup_symbol_aux): Update call to
1331 lookup_symbol_nonlocal.
1332 (basic_lookup_symbol_nonlocal): Rename to...
1333 (language_defn::lookup_symbol_nonlocal): ...this, and update
1334 header comment. Remove language_defn parameter, and replace with
1335 uses of `this'.
1336 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1337
ebe2334e
AB
13382020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1339
1340 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1341 initializer.
1342 (ada_language::value_print_inner): New member function.
1343 * c-lang.c (c_language_data): Delete la_value_print_inner
1344 initializer.
1345 (cplus_language_data): Likewise.
1346 (asm_language_data): Likewise.
1347 (minimal_language_data): Likewise.
1348 * d-lang.c (d_language_data): Likewise.
1349 (d_language::value_print_inner): New member function.
1350 * f-lang.c (f_language_data): Delete la_value_print_inner
1351 initializer.
1352 (f_language::value_print_inner): New member function.
1353 * f-lang.h (f_value_print_innner): Rename to...
1354 (f_value_print_inner): ...this (note spelling of 'inner').
1355 * f-valprint.c (f_value_print_innner): Rename to...
1356 (f_value_print_inner): ...this (note spelling of 'inner').
1357 * go-lang.c (go_language_data): Delete la_value_print_inner
1358 initializer.
1359 (go_language::value_print_inner): New member function.
1360 * language.c (language_defn::value_print_inner): Define new member
1361 function.
1362 (unk_lang_value_print_inner): Delete.
1363 (unknown_language_data): Delete la_value_print_inner initializer.
1364 (unknown_language::value_print_inner): New member function.
1365 (auto_language_data): Delete la_value_print_inner initializer.
1366 (auto_language::value_print_inner): New member function.
1367 * language.h (language_data): Delete la_value_print_inner field.
1368 (language_defn::value_print_inner): Delcare new member function.
1369 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1370 initializer.
1371 (m2_language::value_print_inner): New member function.
1372 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1373 initializer.
1374 * opencl-lang.c (opencl_language_data): Likewise.
1375 * p-lang.c (pascal_language_data): Likewise.
1376 (pascal_language::value_print_inner): New member function.
1377 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1378 initializer.
1379 (rust_language::value_print_inner): New member function.
1380 * valprint.c (do_val_print): Update call to value_print_inner.
1381
a1d1fa3e
AB
13822020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1383
1384 * ada-lang.c (ada_language_data): Delete la_value_print
1385 initializer.
1386 (ada_language::value_print): New member function.
1387 * c-lang.c (c_language_data): Delete la_value_print initializer.
1388 (cplus_language_data): Likewise.
1389 (asm_language_data): Likewise.
1390 (minimal_language_data): Likewise.
1391 * d-lang.c (d_language_data): Likewise.
1392 * f-lang.c (f_language_data): Likewise.
1393 * go-lang.c (go_language_data): Likewise.
1394 * language.c (unk_lang_value_print): Delete.
1395 (language_defn::value_print): Define new member function.
1396 (unknown_language_data): Delete la_value_print initializer.
1397 (unknown_language::value_print): New member function.
1398 (auto_language_data): Delete la_value_print initializer.
1399 (auto_language::value_print): New member function.
1400 * language.h (language_data): Delete la_value_print field.
1401 (language_defn::value_print): Declare new member function.
1402 (LA_VALUE_PRINT): Update call to value_print.
1403 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1404 * objc-lang.c (objc_language_data): Likewise.
1405 * opencl-lang.c (opencl_language_data): Likewise.
1406 * p-lang.c (pascal_language_data): Likewise.
1407 (pascal_language::value_print): New member function.
1408 * rust-lang.c (rust_language_data): Delete la_value_print
1409 initializer.
1410
f16a9f57
AB
14112020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1412
1413 * ada-lang.c (ada_watch_location_expression): Rename to
1414 ada_language::watch_location_expression.
1415 (ada_language_data): Delete la_watch_location_expression
1416 initializer.
1417 (ada_language::watch_location_expression): New member function,
1418 implementation from ada_watch_location_expression.
1419 * breakpoint.c (watch_command_1): Update call to
1420 watch_location_expression.
1421 * c-lang.c (c_watch_location_expression): Rename to
1422 language_defn::watch_location_expression.
1423 (c_language_data): Delete la_watch_location_expression
1424 initializer.
1425 (cplus_language_data): Likewise.
1426 (asm_language_data): Likewise.
1427 (minimal_language_data): Likewise.
1428 * c-lang.h (c_watch_location_expression): Delete declaration.
1429 * d-lang.c (d_language_data): Delete la_watch_location_expression
1430 initializer.
1431 * f-lang.c (f_language_data): Likewise.
1432 * go-lang.c (go_language_data): Likewise.
1433 * language.c (language_defn::watch_location_expression): Member
1434 function implementation from c_watch_location_expression.
1435 (unknown_language_data): Delete la_watch_location_expression
1436 initializer.
1437 (auto_language_data): Likewise.
1438 * language.h (language_data): Delete la_watch_location_expression
1439 field.
1440 (language_defn::watch_location_expression): Declare new member
1441 function.
1442 * m2-lang.c (m2_language_data): Delete
1443 la_watch_location_expression initializer.
1444 * objc-lang.c (objc_language_data): Likewise.
1445 * opencl-lang.c (opencl_language_data): Likewise.
1446 * p-lang.c (pascal_language_data): Likewise.
1447 * rust-lang.c (rust_watch_location_expression): Rename to
1448 rust_language::watch_location_expression.
1449 (rust_language_data): Delete la_watch_location_expression
1450 initializer.
1451 (rust_language::watch_location_expression): New member function,
1452 implementation from rust_watch_location_expression.
1453
7e56227d
AB
14542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1455
1456 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1457 ada_language::collect_symbol_completion_matches.
1458 (ada_language_data): Delete la_collect_symbol_completion_matches
1459 initializer.
1460 (ada_language::collect_symbol_completion_matches): New member
1461 function, implementation from
1462 ada_collect_symbol_completion_matches.
1463 * c-lang.c (c_language_data): Delete
1464 la_collect_symbol_completion_matches initializer.
1465 (cplus_language_data): Likewise.
1466 (asm_language_data): Likewise.
1467 (minimal_language_data): Likewise.
1468 * d-lang.c (d_language_data): Likewise.
1469 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1470 f_language::collect_symbol_completion_matches.
1471 (f_language_data): Delete la_collect_symbol_completion_matches
1472 initializer.
1473 (f_language::collect_symbol_completion_matches) New member
1474 function, implementation from f_collect_symbol_completion_matches.
1475 * go-lang.c (go_language_data): Delete
1476 la_collect_symbol_completion_matches initializer.
1477 * language.c (unknown_language_data): Likewise.
1478 (auto_language_data): Likewise.
1479 * language.h (language_data): Delete
1480 la_collect_symbol_completion_matches field.
1481 (language_defn::collect_symbol_completion_matches): New member
1482 function.
1483 * m2-lang.c (m2_language_data): Delete
1484 la_collect_symbol_completion_matches initializer.
1485 * objc-lang.c (objc_language_data): Likewise.
1486 * opencl-lang.c (opencl_language_data): Likewise.
1487 * p-lang.c (pascal_language_data): Likewise.
1488 * rust-lang.c (rust_language_data): Likewise.
1489 * symtab.c (default_collect_symbol_completion_matches): Delete.
1490 (collect_symbol_completion_matches): Update call to
1491 collect_symbol_completion_matches.
1492 (collect_symbol_completion_matches_type): Likewise.
1493 * symtab.h (default_collect_symbol_completion_matches): Delete
1494 declaration.
1495
53fc67f8
AB
14962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1497
1498 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1499 (ada_language_data): Delete la_word_break_characters initializer.
1500 (ada_language::word_break_characters): New member function.
1501 * c-lang.c (c_language_data): Delete la_word_break_characters
1502 initializer.
1503 (cplus_language_data): Likewise.
1504 (asm_language_data): Likewise.
1505 (minimal_language_data): Likewise.
1506 * completer.c: Update global comment.
1507 (advance_to_expression_complete_word_point): Update call to
1508 word_break_characters.
1509 (complete_files_symbols): Likewise.
1510 (complete_line_internal_1): Likewise.
1511 (default_completer_handle_brkchars): Likewise.
1512 (skip_quoted_chars): Likewise.
1513 * d-lang.c (d_language_data): Delete la_word_break_characters
1514 initializer.
1515 * f-lang.c (f_word_break_characters): Delete.
1516 (f_language_data): Delete la_word_break_characters initializer.
1517 (f_language::word_break_characters): New member function.
1518 * go-lang.c (go_language_data): Delete la_word_break_characters
1519 initializer.
1520 * language.c (unknown_language_data): Likewise.
1521 (auto_language_data): Likewise.
1522 * language.h (default_word_break_characters): Move declaration to
1523 earlier in the file.
1524 (language_data): Delete la_word_break_characters field.
1525 (language_defn::word_break_characters): New member function.
1526 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1527 initializer.
1528 * objc-lang.c (objc_language_data): Likewise.
1529 * opencl-lang.c (opencl_language_data): Likewise.
1530 * p-lang.c (pascal_language_data): Likewise.
1531 * rust-lang.c (rust_language_data): Likewise.
1532
c9debfb9
AB
15332020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1534
1535 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1536 (ada_language_data): Delete la_get_symbol_name_matcher
1537 initializer.
1538 (language_defn::get_symbol_name_matcher_inner): New member
1539 function.
1540 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1541 initializer.
1542 (cplus_language_data): Likewise.
1543 (cplus_language::get_symbol_name_matcher_inner): New member
1544 function.
1545 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1546 (minimal_language_data): Likewise.
1547 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1548 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1549 initializer.
1550 * dictionary.c (iter_match_first_hashed): Update call to
1551 get_symbol_name_matcher.
1552 (iter_match_next_hashed): Likewise.
1553 (iter_match_next_linear): Likewise.
1554 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1555 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1556 initializer.
1557 (f_language::get_symbol_name_matcher_inner): New member function.
1558 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1559 initializer.
1560 * language.c (default_symbol_name_matcher): Update header comment,
1561 make static.
1562 (language_defn::get_symbol_name_matcher): New definition.
1563 (language_defn::get_symbol_name_matcher_inner): Likewise.
1564 (get_symbol_name_matcher): Delete.
1565 (unknown_language_data): Delete la_get_symbol_name_matcher
1566 initializer.
1567 (auto_language_data): Likewise.
1568 * language.h (language_data): Delete la_get_symbol_name_matcher
1569 field.
1570 (language_defn::get_symbol_name_matcher): New member function.
1571 (language_defn::get_symbol_name_matcher_inner): Likewise.
1572 (default_symbol_name_matcher): Delete declaration.
1573 * linespec.c (find_methods): Update call to
1574 get_symbol_name_matcher.
1575 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1576 initializer.
1577 * minsyms.c (lookup_minimal_symbol): Update call to
1578 get_symbol_name_matcher.
1579 (iterate_over_minimal_symbols): Likewise.
1580 * objc-lang.c (objc_language_data): Delete
1581 la_get_symbol_name_matcher initializer.
1582 * opencl-lang.c (opencl_language_data): Likewise.
1583 * p-lang.c (pascal_language_data): Likewise.
1584 * psymtab.c (psymbol_name_matches): Update call to
1585 get_symbol_name_matcher.
1586 * rust-lang.c (rust_language_data): Delete
1587 la_get_symbol_name_matcher initializer.
1588 * symtab.c (symbol_matches_search_name): Update call to
1589 get_symbol_name_matcher.
1590 (compare_symbol_name): Likewise.
1591
9a49ad8c
AB
15922020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1593
1594 * ada-lang.c (ada_language_data): Delete la_compute_program
1595 initializer.
1596 * c-lang.c (c_language_data): Likewise.
1597 (c_language::compute_program): New member function.
1598 (cplus_language_data): Delete la_compute_program initializer.
1599 (cplus_language::compute_program): New member function.
1600 (asm_language_data): Delete la_compute_program initializer.
1601 (minimal_language_data): Likewise.
1602 * c-lang.h (c_compute_program): Update comment.
1603 (cplus_compute_program): Likewise.
1604 * compile/compile-c-support.c (c_compute_program): Likewise.
1605 (cplus_compute_program): Likewise.
1606 * compile/compile.c (compile_to_object): Update call to
1607 la_compute_program.
1608 * d-lang.c (d_language_data): Delete la_compute_program
1609 initializer.
1610 * f-lang.c (f_language_data): Likewise.
1611 * go-lang.c (go_language_data): Likewise.
1612 * language.c (unknown_language_data): Likewise.
1613 (auto_language_data): Likewise.
1614 * language.h (language_data): Delete la_compute_program field.
1615 (language_defn::compute_program): New member function.
1616 * m2-lang.c (m2_language_data): Delete la_compute_program
1617 initializer.
1618 * objc-lang.c (objc_language_data): Likewise.
1619 * opencl-lang.c (opencl_language_data): Likewise.
1620 * p-lang.c (pascal_language_data): Likewise.
1621 * rust-lang.c (rust_language_data): Likewise.
1622
eff93b4d
AB
16232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1624
1625 * ada-lang.c (ada_language_data) Delete
1626 la_class_name_from_physname initializer.
1627 * c-lang.c (c_language_data): Likewise.
1628 (cplus_language_data): Likewise.
1629 (cplus_language::class_name_from_physname): New member function.
1630 (asm_language_data): Delete la_class_name_from_physname
1631 initializer.
1632 (minimal_language_data): Likewise.
1633 * d-lang.c (d_language_data): Likewise.
1634 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1635 method on language_defn class.
1636 (guess_full_die_structure_name): Likewise.
1637 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1638 initializer.
1639 * go-lang.c (go_language_data): Likewise.
1640 * language.c (language_class_name_from_physname): Delete.
1641 (unk_lang_class_name): Delete.
1642 (unknown_language_data): Delete la_class_name_from_physname
1643 initializer.
1644 (auto_language_data): Likewise.
1645 * language.h (language_data): Delete la_class_name_from_physname
1646 field.
1647 (language_defn::class_name_from_physname): New function.
1648 (language_class_name_from_physname): Delete declaration.
1649 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1650 initializer.
1651 * objc-lang.c (objc_language_data): Likewise.
1652 * opencl-lang.c (opencl_language_data): Likewise.
1653 * p-lang.c (pascal_language_data): Likewise.
1654 * rust-lang.c (rust_language_data): Likewise.
1655
de543742
TT
16562020-06-16 Tom Tromey <tom@tromey.com>
1657
1658 * tui/tui-data.h (STATUS_NAME): New macro.
1659 * tui/tui-layout.c (tui_remove_some_windows)
1660 (initialize_known_windows, tui_register_window)
1661 (tui_layout_split::remove_windows, initialize_layouts)
1662 (tui_new_layout_command): Don't use hard-coded window names.
1663
a350efd4
TT
16642020-06-16 Tom Tromey <tom@tromey.com>
1665
1666 PR tui/25348:
1667 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1668 tui_initialize_readline. Only run once. Call rl_initialize.
1669 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1670 tui_initialize_readline.
1671 * tui/tui-io.c (tui_setup_io): Call
1672 tui_ensure_readline_initialized.
1673 * tui/tui-interp.c (tui_interp::init): Update.
1674
39ec0490
TT
16752020-06-16 Tom Tromey <tom@tromey.com>
1676
1677 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1678 Also preserve the status window.
1679
d2d1ea20
TT
16802020-06-16 Tom Tromey <tom@tromey.com>
1681
1682 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1683 where m_window==nullptr.
1684
66920317
TT
16852020-06-15 Tom Tromey <tromey@adacore.com>
1686
1687 * windows-nat.c (windows_nat::handle_output_debug_string):
1688 Update.
1689 (windows_nat::handle_ms_vc_exception): Update.
1690 * target.h (target_read_string): Change API.
1691 * target.c (target_read_string): Change API.
1692 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1693 Update.
1694 * solib-frv.c (frv_current_sos): Update.
1695 * solib-dsbt.c (dsbt_current_sos): Update.
1696 * solib-darwin.c (darwin_current_sos): Update.
1697 * linux-thread-db.c (inferior_has_bug): Update.
1698 * expprint.c (print_subexp_standard): Update.
1699 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1700 (ada_exception_message_1): Update.
1701
a5d871dd
TT
17022020-06-15 Tom Tromey <tromey@adacore.com>
1703
1704 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1705
670e35fa
TT
17062020-06-15 Tom Tromey <tromey@adacore.com>
1707
1708 * valprint.c (read_string): Update comment.
1709 * target.c (MIN): Remove.
1710 (target_read_string): Rewrite.
1711
f5272a3b
TT
17122020-06-15 Tom Tromey <tromey@adacore.com>
1713
1714 * corefile.c (read_memory_string): Remove.
1715 * ada-valprint.c (ada_value_print_ptr): Update.
1716 * ada-lang.h (ada_tag_name): Change return type.
1717 * ada-lang.c (type_from_tag): Update.
1718 (ada_tag_name_from_tsd): Change return type. Use
1719 target_read_string.
1720 (ada_tag_name): Likewise.
1721 * gdbcore.h (read_memory_string): Don't declare.
1722
2c074f49
HD
17232020-06-14 Hannes Domani <ssbssa@yahoo.de>
1724
1725 * symtab.c (rbreak_command): Ignore Windows drive colon.
1726
6a17d503
SM
17272020-06-12 Simon Marchi <simon.marchi@efficios.com>
1728
1729 * NEWS: Mention removed GDBserver host support.
1730
453c733f
NC
17312020-06-12 Nelson Chu <nelson.chu@sifive.com>
1732
1733 * features/riscv/rebuild-csr-xml.sh: Updated.
1734
2b4e6a3f
TT
17352020-06-11 Tom Tromey <tom@tromey.com>
1736
1737 PR gdb/18318:
1738 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1739
4412332f
JG
17402020-06-09 Jonny Grant <jg@jguk.org>
17412020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1742
1743 * main.c (captured_main_1): Don't print new line after help.
1744 (print_gdb_help): add mailing list and IRC channel information
1745 to --help. Add new lines between items in the footer. Remove
1746 quotes around bug url.
1747
2f33032a
KS
17482020-06-11 Keith Seitz <keiths@redhat.com>
1749
1750 PR gdb/21356
1751 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1752 Resolve typedefs for type length calculations.
1753
7ab96794
TV
17542020-06-10 Tom de Vries <tdevries@suse.de>
1755
1756 PR ada/24713
1757 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1758 (write_psymbols): Enable .gdb_index for ada.
1759 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1760 ada.
1761
e5f3ece2
TV
17622020-06-10 Tom de Vries <tdevries@suse.de>
1763
1764 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1765 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1766 namei" instead of "const char *name" argument.
1767 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1768 dw2_symtab_iter_init.
1769
940da03e
SM
17702020-06-08 Simon Marchi <simon.marchi@efficios.com>
1771
1772 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1773 to use type::field and field::type instead.
1774
b6cdac4b
SM
17752020-06-08 Simon Marchi <simon.marchi@efficios.com>
1776
1777 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1778 to use field::type instead.
1779
5d14b6e5
SM
17802020-06-08 Simon Marchi <simon.marchi@efficios.com>
1781
1782 * gdbtypes.h (struct field) <type, set_type>: New methods.
1783 Rename `type` field to...
1784 <m_type>: ... this. Change references throughout to use type or
1785 set_type methods.
1786 (FIELD_TYPE): Use field::type. Change call sites that modify
1787 the field's type to use field::set_type instead.
1788
3d967001
SM
17892020-06-08 Simon Marchi <simon.marchi@efficios.com>
1790
1791 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1792 to use type::index_type instead.
1793
262abc0d
SM
17942020-06-08 Simon Marchi <simon.marchi@efficios.com>
1795
1796 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1797 methods.
1798 (TYPE_INDEX_TYPE): Use type::index_type.
1799 * gdbtypes.c (create_array_type_with_stride): Likewise.
1800
82836c92
TT
18012020-06-07 Tom Tromey <tom@tromey.com>
1802
1803 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1804 parameter.
1805 (generic_value_print): Update.
1806
940dace9
AB
18072020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1808
1809 Revert commit 982a38f60b0.
1810 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1811
982a38f6
AB
18122020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1813
1814 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1815 avoid use after free.
1816
82f06518
TV
18172020-06-05 Tom de Vries <tdevries@suse.de>
1818
1819 * NEWS: Fix typos.
1820
f8c41851
SM
18212020-06-04 Simon Marchi <simon.marchi@efficios.com>
1822
1823 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1824 the per_bfd object.
1825 (dwarf2_read_debug_names): Likewise.
1826 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1827 object when re-using a per_bfd object with an index.
1828
f9b5d5ea
TV
18292020-06-03 Tom de Vries <tdevries@suse.de>
1830
1831 PR symtab/26046
1832 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1833 children for C++.
1834 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1835 DW_TAG_subprogram.
1836
f6eee2d0
AB
18372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1838
1839 * ada-lang.c (ada_language_data): Delete skip_trampoline
1840 initializer.
1841 * c-lang.c (c_language_data): Likewise.
1842 (cplus_language_data): Likewise.
1843 (cplus_language::skip_trampoline): New member function.
1844 (asm_language_data): Delete skip_trampoline initializer.
1845 (minimal_language_data): Likewise.
1846 * d-lang.c (d_language_data): Likewise.
1847 * f-lang.c (f_language_data): Likewise.
1848 * go-lang.c (go_language_data): Likewise.
1849 * language.c (unk_lang_trampoline): Delete function.
1850 (skip_language_trampoline): Update.
1851 (unknown_language_data): Delete skip_trampoline initializer.
1852 (auto_language_data): Likewise.
1853 * language.h (language_data): Delete skip_trampoline field.
1854 (language_defn::skip_trampoline): New function.
1855 * m2-lang.c (m2_language_data): Delete skip_trampoline
1856 initializer.
1857 * objc-lang.c (objc_skip_trampoline): Delete function, move
1858 implementation to objc_language::skip_trampoline.
1859 (objc_language_data): Delete skip_trampoline initializer.
1860 (objc_language::skip_trampoline): New member function with
1861 implementation from objc_skip_trampoline.
1862 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1863 initializer.
1864 * p-lang.c (pascal_language_data): Likewise.
1865 * rust-lang.c (rust_language_data): Likewise.
1866
0a50df5d
AB
18672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1868
1869 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1870 (ada_language::demangle): New member function.
1871 * c-lang.c (c_language_data): Delete la_demangle initializer.
1872 (cplus_language_data): Delete la_demangle initializer.
1873 (cplus_language::demangle): New member function.
1874 (asm_language_data): Delete la_demangle initializer.
1875 (minimal_language_data): Delete la_demangle initializer.
1876 * d-lang.c (d_language_data): Delete la_demangle initializer.
1877 (d_language::demangle): New member function.
1878 * f-lang.c (f_language_data): Delete la_demangle initializer.
1879 (f_language::demangle): New member function.
1880 * go-lang.c (go_language_data): Delete la_demangle initializer.
1881 (go_language::demangle): New member function.
1882 * language.c (language_demangle): Update.
1883 (unk_lang_demangle): Delete.
1884 (unknown_language_data): Delete la_demangle initializer.
1885 (unknown_language::demangle): New member function.
1886 (auto_language_data): Delete la_demangle initializer.
1887 (auto_language::demangle): New member function.
1888 * language.h (language_data): Delete la_demangle field.
1889 (language_defn::demangle): New function.
1890 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1891 * objc-lang.c (objc_language_data): Delete la_demangle
1892 initializer.
1893 (objc_language::demangle): New member function.
1894 * opencl-lang.c (opencl_language_data): Delete la_demangle
1895 initializer.
1896 * p-lang.c (pascal_language_data): Likewise.
1897 * rust-lang.c (rust_language_data): Likewise.
1898 (rust_language::demangle): New member function.
1899
fbfb0a46
AB
19002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1901
1902 * ada-lang.c (ada_language_data): Delete la_print_type
1903 initializer.
1904 (ada_language::print_type): New member function.
1905 * c-lang.c (c_language_data): Delete la_print_type initializer.
1906 (c_language::print_type): New member function.
1907 (cplus_language_data): Delete la_print_type initializer.
1908 (cplus_language::print_type): New member function.
1909 (asm_language_data): Delete la_print_type initializer.
1910 (asm_language::print_type): New member function.
1911 (minimal_language_data): Delete la_print_type initializer.
1912 (minimal_language::print_type): New member function.
1913 * d-lang.c (d_language_data): Delete la_print_type initializer.
1914 (d_language::print_type): New member function.
1915 * f-lang.c (f_language_data): Delete la_print_type initializer.
1916 (f_language::print_type): New member function.
1917 * go-lang.c (go_language_data): Delete la_print_type initializer.
1918 (go_language::print_type): New member function.
1919 * language.c (unk_lang_print_type): Delete.
1920 (unknown_language_data): Delete la_print_type initializer.
1921 (unknown_language::print_type): New member function.
1922 (auto_language_data): Delete la_print_type initializer.
1923 (auto_language::print_type): New member function.
1924 * language.h (language_data): Delete la_print_type field.
1925 (language_defn::print_type): New function.
1926 (LA_PRINT_TYPE): Update.
1927 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1928 (m2_language::print_type): New member function.
1929 * objc-lang.c (objc_language_data): Delete la_print_type
1930 initializer.
1931 (objc_language::print_type): New member function.
1932 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1933 to opencl_language::print_type.
1934 (opencl_language_data): Delete la_print_type initializer.
1935 (opencl_language::print_type): New member function, implementation
1936 from opencl_print_type.
1937 * p-lang.c (pascal_language_data): Delete la_print_type
1938 initializer.
1939 (pascal_language::print_type): New member function.
1940 * rust-lang.c (rust_print_type): Delete, implementation moved to
1941 rust_language::print_type.
1942 (rust_language_data): Delete la_print_type initializer.
1943 (rust_language::print_type): New member function, implementation
1944 from rust_print_type.
1945
6f827019
AB
19462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1947
1948 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1949 implementation moves to...
1950 (ada_language::sniff_from_mangled_name): ...here. Update return
1951 type.
1952 (ada_language_data): Delete la_sniff_from_mangled_name
1953 initializer.
1954 * c-lang.c (c_language_data): Likewise.
1955 (cplus_language_data): Likewise.
1956 (cplus_language::sniff_from_mangled_name): New member function,
1957 implementation taken from gdb_sniff_from_mangled_name.
1958 (asm_language_data): Delete la_sniff_from_mangled_name
1959 initializer.
1960 (minimal_language_data): Likewise.
1961 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1962 implementation moves to cplus_language::sniff_from_mangled_name.
1963 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1964 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1965 moves to...
1966 (d_language::sniff_from_mangled_name): ...here.
1967 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1968 * f-lang.c (f_language_data): Likewise.
1969 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1970 moves to...
1971 (go_language::sniff_from_mangled_name): ...here.
1972 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1973 * language.c (language_sniff_from_mangled_name): Delete.
1974 (unknown_language_data): Delete la_sniff_from_mangled_name
1975 initializer.
1976 (auto_language_data): Likewise.
1977 * language.h (language_data): Delete la_sniff_from_mangled_name
1978 field.
1979 (language_defn::sniff_from_mangled_name): New function.
1980 (language_sniff_from_mangled_name): Delete declaration.
1981 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1982 field.
1983 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1984 implementation moves to...
1985 (objc_language::sniff_from_mangled_name): ...here.
1986 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1987 * opencl-lang.c (opencl_language_data): Likewise.
1988 * p-lang.c (pascal_language_data): Likewise.
1989 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1990 implementation moves to...
1991 (rust_language::sniff_from_mangled_name): ...here.
1992 (rust_language_data): Delete la_sniff_from_mangled_name
1993 initializer.
1994 * symtab.c (symbol_find_demangled_name): Call
1995 sniff_from_mangled_name member function.
1996
fb8006fd
AB
19972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1998
1999 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2000 initializer.
2001 * c-lang.c (c_language_data): Likewise.
2002 (cplus_language_data): Likewise.
2003 (cplus_language::search_name_hash): New member function.
2004 (asm_language_data): Delete la_search_name_hash initializer.
2005 (minimal_language_data): Likewise.
2006 * d-lang.c (d_language_data): Likewise.
2007 * dictionary.c (default_search_name_hash): Rename to...
2008 (language_defn::search_name_hash): ...this.
2009 * f-lang.c (f_language_data): Likewise.
2010 (f_language::search_name_hash): New member function.
2011 * go-lang.c (go_language_data): Delete la_search_name_hash
2012 initializer.
2013 * language.c (unknown_language_data): Likewise.
2014 (auto_language_data): Likewise.
2015 * language.h (struct language_data): Delete la_search_name_hash
2016 field.
2017 (language_defn::search_name_hash): Declare new member function.
2018 (default_search_name_hash): Delete declaration.
2019 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2020 initializer.
2021 * objc-lang.c (objc_language_data): Likewise.
2022 * opencl-lang.c (opencl_language_data): Likewise.
2023 * p-lang.c (pascal_language_data): Likewise.
2024 * rust-lang.c (rust_language_data): Likewise.
2025 * symtab.c (search_name_hash): Update call.
2026
8e25bafe
AB
20272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2028
2029 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2030 initializer.
2031 * c-lang.c (class compile_instance): Declare.
2032 (c_language_data): Delete la_get_compile_instance initializer.
2033 (c_language::get_compile_instance): New member function.
2034 (cplus_language_data): Delete la_get_compile_instance initializer.
2035 (cplus_language::get_compile_instance): New member function.
2036 (asm_language_data): Delete la_get_compile_instance initializer.
2037 (minimal_language_data): Likewise.
2038 * c-lang.h (c_get_compile_context): Update comment.
2039 (cplus_get_compile_context): Update comment.
2040 * compile/compile.c (compile_to_object): Update calls, don't rely
2041 on function pointer being NULL.
2042 * d-lang.c (d_language_data): Delete la_get_compile_instance
2043 initializer.
2044 * f-lang.c (f_language_data): Likewise.
2045 * go-lang.c (go_language_data): Likewise.
2046 * language.c (unknown_language_data): Likewise.
2047 (auto_language_data): Likewise.
2048 * language.h (language_data): Delete la_get_compile_instance field.
2049 (language_defn::get_compile_instance): New member function.
2050 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2051 initializer.
2052 * objc-lang.c (objc_language_data): Likewise.
2053 * opencl-lang.c (opencl_language_data): Likewise.
2054 * p-lang.c (pascal_language_data): Likewise.
2055 * rust-lang.c (rust_language_data): Likewise.
2056
4009ee92
AB
20572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2058
2059 * ada-lang.c (ada_add_all_symbols): Update comment.
2060 (ada_iterate_over_symbols): Delete, move implementation to...
2061 (ada_language::iterate_over_symbols): ...here, a new member
2062 function, rewrite to use range based for loop.
2063 (ada_language_data): Delete la_iterate_over_symbols initializer.
2064 * c-lang.c (c_language_data): Likewise.
2065 (cplus_language_data): Likewise.
2066 (asm_language_data): Likewise.
2067 (minimal_language_data): Likewise.
2068 * d-lang.c (d_language_data): Likewise.
2069 * f-lang.c (f_language_data): Likewise.
2070 * go-lang.c (go_language_data): Likewise.
2071 * language.c (unknown_language_data): Likewise.
2072 (auto_language_data): Likewise.
2073 * language.h (language_data): Delete la_iterate_over_symbols field.
2074 (language_defn::iterate_over_symbols): New member function.
2075 (LA_ITERATE_OVER_SYMBOLS): Update.
2076 * linespec.c (iterate_over_all_matching_symtabs): Update.
2077 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2078 initializer.
2079 * objc-lang.c (objc_language_data): Likewise.
2080 * opencl-lang.c (opencl_language_data): Likewise.
2081 * p-lang.c (pascal_language_data): Likewise.
2082 * rust-lang.c (rust_language_data): Likewise.
2083
54f4ca46
AB
20842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2085
2086 * ada-lang.c (ada_language_data): Delete
2087 la_lookup_transparent_type initializer.
2088 * c-lang.c (c_language_data): Likewise.
2089 (cplus_language_data): Likewise.
2090 (cplus_language::lookup_transparent_type): New member function.
2091 (asm_language_data): Delete la_lookup_transparent_type
2092 initializer.
2093 (minimal_language_data): Likewise.
2094 * d-lang.c (d_language_data): Likewise.
2095 * f-lang.c (f_language_data): Likewise.
2096 * go-lang.c (go_language_data): Likewise.
2097 * language.c (unknown_language_data): Likewise.
2098 (auto_language_data): Likewise.
2099 * language.h (struct language_data): Delete
2100 la_lookup_transparent_type field.
2101 (language_defn::lookup_transparent_type): New member function.
2102 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2103 initializer.
2104 * objc-lang.c (objc_language_data): Likewise.
2105 * opencl-lang.c (opencl_language_data): Likewise.
2106 * p-lang.c (pascal_language_data): Likewise.
2107 * rust-lang.c (rust_language_data): Likewise.
2108 * symtab.c (symbol_matches_domain): Update call.
2109
1fb314aa
AB
21102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2111
2112 * ada-lang.c (ada_language_arch_info): Delete function, move
2113 implementation to...
2114 (ada_language::language_arch_info): ...here, a new member
2115 function.
2116 (ada_language_data): Delete la_language_arch_info.
2117 * c-lang.c (c_language_data): Likewise.
2118 (c_language::language_arch_info): New member function.
2119 (cplus_language_arch_info): Delete function, move
2120 implementation to...
2121 (cplus_language::language_arch_info): ...here, a new member
2122 function.
2123 (cplus_language_data): Delete la_language_arch_info.
2124 (asm_language_data): Likewise.
2125 (asm_language::language_arch_info): New member function.
2126 (minimal_language_data): Delete la_language_arch_info.
2127 (minimal_language::language_arch_info): New member function.
2128 * d-lang.c (d_language_arch_info): Delete function, move
2129 implementation to...
2130 (d_language::language_arch_info): ...here, a new member
2131 function.
2132 (d_language_data): Delete la_language_arch_info.
2133 * f-lang.c (f_language_arch_info): Delete function, move
2134 implementation to...
2135 (f_language::language_arch_info): ...here, a new member
2136 function.
2137 (f_language_data): Delete la_language_arch_info.
2138 * go-lang.c (go_language_arch_info): Delete function, move
2139 implementation to...
2140 (go_language::language_arch_info): ...here, a new member
2141 function.
2142 (go_language_data): Delete la_language_arch_info.
2143 * language.c (unknown_language_data): Likewise.
2144 (unknown_language::language_arch_info): New member function.
2145 (auto_language_data): Delete la_language_arch_info.
2146 (auto_language::language_arch_info): New member function.
2147 (language_gdbarch_post_init): Update call to
2148 la_language_arch_info.
2149 * language.h (language_data): Delete la_language_arch_info
2150 function pointer.
2151 (language_defn::language_arch_info): New function.
2152 * m2-lang.c (m2_language_arch_info): Delete function, move
2153 implementation to...
2154 (m2_language::language_arch_info): ...here, a new member
2155 function.
2156 (m2_language_data): Delete la_language_arch_info.
2157 * objc-lang.c (objc_language_arch_info): Delete function, move
2158 implementation to...
2159 (objc_language::language_arch_info): ...here, a new member
2160 function.
2161 (objc_language_data): Delete la_language_arch_info.
2162 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2163 implementation to...
2164 (opencl_language::language_arch_info): ...here, a new member
2165 function.
2166 (opencl_language_data): Delete la_language_arch_info.
2167 * p-lang.c (pascal_language_arch_info): Delete function, move
2168 implementation to...
2169 (pascal_language::language_arch_info): ...here, a new member
2170 function.
2171 (pascal_language_data): Delete la_language_arch_info.
2172 * rust-lang.c (rust_language_arch_info): Delete function, move
2173 implementation to...
2174 (rust_language::language_arch_info): ...here, a new member
2175 function.
2176 (rust_language_data): Delete la_language_arch_info.
2177
48448202
AB
21782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2179
2180 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2181 initializer.
2182 * c-lang.c (c_language_data): Likewise.
2183 (cplus_language_data): Likewise.
2184 (cplus_language::pass_by_reference_info): New method.
2185 (asm_language_data): Delete la_pass_by_reference initializer.
2186 (minimal_language_data): Likewise.
2187 * cp-abi.c (cp_pass_by_reference): Remove use of
2188 default_pass_by_reference.
2189 * d-lang.c (d_language_data): Likewise.
2190 * f-lang.c (f_language_data): Likewise.
2191 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2192 default_pass_by_reference.
2193 * go-lang.c (go_language_data): Likewise.
2194 * language.c (language_pass_by_reference): Update.
2195 (default_pass_by_reference): Delete.
2196 (unknown_language_data): Delete la_pass_by_reference
2197 initializer.
2198 (auto_language_data): Likewise.
2199 * language.h (struct language_data): Delete la_pass_by_reference
2200 field.
2201 (language_defn::pass_by_reference_info): New member function.
2202 (default_pass_by_reference): Delete declaration.
2203 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2204 initializer.
2205 * objc-lang.c (objc_language_data): Likewise.
2206 * opencl-lang.c (opencl_language_data): Likewise.
2207 * p-lang.c (pascal_language_data): Likewise.
2208 * rust-lang.c (rust_language_data): Likewise.
2209
15e5fd35
AB
22102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2211
2212 * ada-lang.c (ada_read_var_value): Delete function, move
2213 implementation to...
2214 (ada_language::read_var_value): ...here.
2215 (ada_language_data): Delete la_read_var_value initializer.
2216 * c-lang.c (c_language_data): Likewise.
2217 (cplus_language_data): Likewise.
2218 (minimal_language_data): Likewise.
2219 * d-lang.c (d_language_data): Likewise.
2220 * f-lang.c (f_language_data): Likewise.
2221 * findvar.c (default_read_var_value): Rename to...
2222 (language_defn::read_var_value): ...this.
2223 * findvar.c (read_var_value): Update header comment, and change to
2224 call member function instead of function pointer.
2225 * go-lang.c (go_language_data): Likewise.
2226 * language.c (unknown_language_data): Delete la_read_var_value
2227 initializer.
2228 (auto_language_data): Likewise.
2229 * language.h (struct language_data): Delete la_read_var_value
2230 field.
2231 (language_defn::read_var_value): New member function.
2232 (default_read_var_value): Delete declaration.
2233 * m2-lang.c (m2_language_data): Delete la_read_var_value
2234 initializer.
2235 * objc-lang.c (objc_language_data): Likewise.
2236 * opencl-lang.c (opencl_language_data): Likewise.
2237 * p-lang.c (pascal_language_data): Likewise.
2238 * rust-lang.c (rust_language_data): Likewise.
2239 * value.h (default_read_var_value): Delete declaration.
2240
5bd40f2a
AB
22412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2242
2243 * ada-lang.c (ada_print_array_index): Delete function, move
2244 implementation to...
2245 (ada_language::print_array_index): ...here.
2246 (ada_language_data): Delete la_print_array_index initializer.
2247 * c-lang.c (c_language_data): Likewise.
2248 (cplus_language_data): Likewise.
2249 (minimal_language_data): Likewise.
2250 * d-lang.c (d_language_data): Likewise.
2251 * f-lang.c (f_language_data): Likewise.
2252 * go-lang.c (go_language_data): Likewise.
2253 * language.c (default_print_array_index): Delete function, move
2254 implementation to...
2255 (language_defn::print_array_index): ...here.
2256 (unknown_language_data): Delete la_print_array_index initializer.
2257 (auto_language_data): Likewise.
2258 * language.h (struct language_data): Delete la_print_array_index
2259 field.
2260 (language_defn::print_array_index): New member function.
2261 (LA_PRINT_ARRAY_INDEX): Update.
2262 (default_print_array_index): Delete declaration.
2263 * m2-lang.c (m2_language_data): Delete la_print_array_index
2264 initializer.
2265 * objc-lang.c (objc_language_data): Likewise.
2266 * opencl-lang.c (opencl_language_data): Likewise.
2267 * p-lang.c (pascal_language_data): Likewise.
2268 * rust-lang.c (rust_language_data): Likewise.
2269
0874fd07
AB
22702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2271
2272 * gdb/ada-lang.c (ada_language_defn): Convert to...
2273 (ada_language_data): ...this.
2274 (class ada_language): New class.
2275 (ada_language_defn): New static global.
2276 * gdb/c-lang.c (c_language_defn): Convert to...
2277 (c_language_data): ...this.
2278 (class c_language): New class.
2279 (c_language_defn): New static global.
2280 (cplus_language_defn): Convert to...
2281 (cplus_language_data): ...this.
2282 (class cplus_language): New class.
2283 (cplus_language_defn): New static global.
2284 (asm_language_defn): Convert to...
2285 (asm_language_data): ...this.
2286 (class asm_language): New class.
2287 (asm_language_defn): New static global.
2288 (minimal_language_defn): Convert to...
2289 (minimal_language_data): ...this.
2290 (class minimal_language): New class.
2291 (minimal_language_defn): New static global.
2292 * gdb/d-lang.c (d_language_defn): Convert to...
2293 (d_language_data): ...this.
2294 (class d_language): New class.
2295 (d_language_defn): New static global.
2296 * gdb/f-lang.c (f_language_defn): Convert to...
2297 (f_language_data): ...this.
2298 (class f_language): New class.
2299 (f_language_defn): New static global.
2300 * gdb/go-lang.c (go_language_defn): Convert to...
2301 (go_language_data): ...this.
2302 (class go_language): New class.
2303 (go_language_defn): New static global.
2304 * gdb/language.c (unknown_language_defn): Remove declaration.
2305 (current_language): Initialize to nullptr, real initialization is
2306 moved to _initialize_language.
2307 (languages): Delete global.
2308 (language_defn::languages): Define.
2309 (set_language_command): Use language_defn::languages.
2310 (set_language): Likewise.
2311 (range_error): Likewise.
2312 (language_enum): Likewise.
2313 (language_def): Likewise.
2314 (add_set_language_command): Use language_def::languages for the
2315 language list, and language_def to lookup language pointers.
2316 (skip_language_trampoline): Use language_defn::languages.
2317 (unknown_language_defn): Convert to...
2318 (unknown_language_data): ...this.
2319 (class unknown_language): New class.
2320 (unknown_language_defn): New static global.
2321 (auto_language_defn): Convert to...
2322 (auto_language_data): ...this.
2323 (class auto_language): New class.
2324 (auto_language_defn): New static global.
2325 (language_gdbarch_post_init): Use language_defn::languages.
2326 (_initialize_language): Initialize current_language.
2327 * gdb/language.h (struct language_defn): Rename to...
2328 (struct language_data): ...this.
2329 (struct language_defn): New.
2330 (auto_language_defn): Delete.
2331 (unknown_language_defn): Delete.
2332 (minimal_language_defn): Delete.
2333 (ada_language_defn): Delete.
2334 (asm_language_defn): Delete.
2335 (c_language_defn): Delete.
2336 (cplus_language_defn): Delete.
2337 (d_language_defn): Delete.
2338 (f_language_defn): Delete.
2339 (go_language_defn): Delete.
2340 (m2_language_defn): Delete.
2341 (objc_language_defn): Delete.
2342 (opencl_language_defn): Delete.
2343 (pascal_language_defn): Delete.
2344 (rust_language_defn): Delete.
2345 * gdb/m2-lang.c (m2_language_defn): Convert to...
2346 (m2_language_data): ...this.
2347 (class m2_language): New class.
2348 (m2_language_defn): New static global.
2349 * gdb/objc-lang.c (objc_language_defn): Convert to...
2350 (objc_language_data): ...this.
2351 (class objc_language): New class.
2352 (objc_language_defn): New static global.
2353 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2354 (opencl_language_data): ...this.
2355 (class opencl_language): New class.
2356 (opencl_language_defn): New static global.
2357 * gdb/p-lang.c (pascal_language_defn): Convert to...
2358 (pascal_language_data): ...this.
2359 (class pascal_language): New class.
2360 (pascal_language_defn): New static global.
2361 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2362 language pointer, update comment format.
2363 * gdb/rust-lang.c (rust_language_defn): Convert to...
2364 (rust_language_data): ...this.
2365 (class rust_language): New class.
2366 (rust_language_defn): New static global.
2367
1313c56e
AB
23682020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2369
2370 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2371 member variable.
2372 <m_stmt_at_address>: New member variable.
2373 (lnp_state_machine::record_line): Don't record some lines, update
2374 tracking of is_stmt at the same address.
2375 (lnp_state_machine::lnp_state_machine): Initialise new member
2376 variables.
2377
b7ed9f3d
ST
23782020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2379
2380 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2381 "-include gnu-nat-mig.h".
2382 * gnu-nat-mig.h: New file.
2383 * gnu-nat.c: Include "gnu-nat-mig.h".
2384 (exc_server, msg_reply_server, notify_server,
2385 process_reply_server): Remove declarations.
2386
14a8ad62
ST
23872020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2388
2389 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2390 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2391 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2392 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2393 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2394 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2395 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2396 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2397 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2398 to gnu_nat_target class.
2399 * gnu-nat.c: Likewise.
2400 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2401 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2402 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2403 object.
2404 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2405 instead of `gnu_target'.
2406
0af5e106
ST
24072020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2408
2409 * i386-gnu-tdep.c: Include "gdbcore.h"
2410 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2411 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2412 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2413 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2414 i386_gnu_sigcontext_addr): New functions
2415 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2416 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2417 tdep.
2418
078f2fc9
ST
24192020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2420
2421 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2422 before fork_inferior call. Avoid calling it if target_is_pushed returns
2423 true.
2424
53dff92c
ST
24252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2426
2427 * gnu-nat.h (gnu_target): New variable declaration.
2428 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2429 gnu_target.
2430 * gnu-nat.c (gnu_target): New variable.
2431 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2432 add_thread_silent, and add_thread calls.
2433 (gnu_nat_target::create_inferior): Pass gnu_target to
2434 add_thread_silent, thread_change_ptid call.
2435 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2436 call.
2437
5a8b8627
ST
24382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2439
2440 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2441 (gnu_nat_target::find_memory_regions): Remove unused
2442 `old_address' variable.
2443
366f550a
ST
24442020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2445
2446 * gnu-nat.c: Include "gdbarch.h".
2447
f14871bf
ST
24482020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2449
2450 * reply_mig_hack.awk (Error return): Cast function through
2451 void *, to bypass compiler function call check.
2452
c6887cfb
ST
24532020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2454
2455 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2456 $(srcdir)/reply_mig_hack.awk.
2457
6930bffe
ST
24582020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2459
2460 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2461
112c22ed
JG
24622020-05-30 Jonny Grant <jg@jguk.org>
2463
2464 * configure.ac (ACX_BUGURL): change bug URL to https.
2465
f68f85b5
PA
24662020-05-30 Pedro Alves <palves@redhat.com>
2467
2468 * cp-support.c (replace_typedefs_template): New.
2469 (replace_typedefs_qualified_name): Handle
2470 DEMANGLE_COMPONENT_TEMPLATE.
2471
976ca316
SM
24722020-05-29 Simon Marchi <simon.marchi@efficios.com>
2473
2474 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2475 dwarf2/index-cache.h, dwarf2/index-write.c,
2476 dwarf2/index-write.h, dwarf2/line-header.c,
2477 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2478 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2479 variables and fields from `dwarf2_per_objfile` to just
2480 `per_objfile` throughout.
2481
989ade05
SM
24822020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2483
2484 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2485 <push_dwarf_reg_entry_value>: Add comment.
2486
c47bae85
KB
24872020-05-28 Kevin Buettner <kevinb@redhat.com>
2488 Keith Seitz <keiths@redhat.com>
2489
2490 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2491 instead of PyEval_ReleaseLock.
2492 (class gdbpy_gil): Move to earlier in file.
2493 (finalize_python): Set gdb_python_initialized.
2494 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2495 when not initialized.
2496
44486dcf
SM
24972020-05-28 Simon Marchi <simon.marchi@efficios.com>
2498
2499 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2500 <push_dwarf_reg_entry_value>: Remove assert. Override
2501 per_objfile with caller_per_objfile.
2502
f030440d
TV
25032020-05-28 Tom de Vries <tdevries@suse.de>
2504
2505 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2506 PR gold/15646 workaround to symbol kind "type".
2507
f0fbb768
TT
25082020-05-27 Tom Tromey <tromey@adacore.com>
2509
2510 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2511
af0b2a3e
TT
25122020-05-27 Tom Tromey <tromey@adacore.com>
2513
2514 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2515 Use htab_find_with_hash.
2516 <add_abbrev>: Remove "abbrev_number" parameter.
2517 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2518 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2519 (hash_abbrev): Add comment.
2520 (abbrev_table::lookup_abbrev): Move to header file.
2521 (abbrev_table::read): Update.
2522
7d00ffec
TT
25232020-05-27 Tom Tromey <tromey@adacore.com>
2524
2525 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2526 method.
2527 <canonical_name>: New member.
2528 <raw_name>: Rename from "name".
2529 (partial_die_info): Initialize canonical_name.
2530 (scan_partial_symbols): Check raw_name.
2531 (partial_die_parent_scope, partial_die_full_name)
2532 (add_partial_symbol, add_partial_subprogram)
2533 (add_partial_enumeration, load_partial_dies): Use "name" method.
2534 (partial_die_info::name): New method.
2535 (partial_die_info::read, guess_partial_die_structure_name)
2536 (partial_die_info::fixup): Update.
2537
697bba18
TT
25382020-05-27 Tom Tromey <tromey@adacore.com>
2539
2540 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2541 <get_ref_die_offset>: Inline.
2542 <get_ref_die_offset_complaint>: New method.
2543 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2544 (attribute::get_ref_die_offset_complaint): Rename from
2545 get_ref_die_offset. Just issue complaint.
2546
c17ace43
HD
25472020-05-27 Hannes Domani <ssbssa@yahoo.de>
2548
2549 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2550
96445f0b
HD
25512020-05-27 Hannes Domani <ssbssa@yahoo.de>
2552
2553 * exec.c (exec_file_attach): Use errno value of first openp failure.
2554
ac637ec3
HD
25552020-05-27 Hannes Domani <ssbssa@yahoo.de>
2556
2557 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2558 Don't close thread handle.
2559
17ee85fc
TT
25602020-05-27 Tom Tromey <tom@tromey.com>
2561 Simon Marchi <simon.marchi@efficios.com>
2562
2563 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2564 shared_ptr.
2565 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2566 member.
2567 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2568 dwarf2_per_bfd_objfile_data_key>: New globals.
2569 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2570 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2571 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2572 shared.
2573 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2574 short-circuit when sharing.
2575 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2576 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2577
39b16f87
SM
25782020-05-27 Simon Marchi <simon.marchi@efficios.com>
2579
2580 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2581 to...
2582 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2583 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2584
fcf23d5b
SM
25852020-05-27 Simon Marchi <simon.marchi@efficios.com>
2586
2587 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2588 build_name_components, find_name_components_bounds>:
2589 Add per_objfile parameter.
2590 (struct mapped_index) <symbol_name_at>: Likewise.
2591 (struct mapped_debug_names): Remove constructor.
2592 <dwarf2_per_objfile>: Remove field.
2593 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2594 (mapped_index_base::find_name_components_bounds,
2595 mapped_index_base::build_name_components,
2596 dw2_expand_symtabs_matching_symbol): Likewise.
2597 (class mock_mapped_index) <symbol_name_at>: Likewise.
2598 (check_match): Likewise.
2599 (check_find_bounds_finds): Likewise.
2600 (test_mapped_index_find_name_component_bounds): Update.
2601 (CHECK_MATCH): Update.
2602 (dw2_expand_symtabs_matching): Update.
2603 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2604 per_objfile parameter.
2605 <find_vec_in_debug_names>: Likewise.
2606 <m_per_objfile>: New field.
2607 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2608 parameter.
2609 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2610 (dw2_debug_names_iterator::next): Update.
2611 (dw2_debug_names_lookup_symbol): Update.
2612 (dw2_debug_names_expand_symtabs_for_function): Update.
2613 (dw2_debug_names_map_matching_symbols): Update.
2614 (dw2_debug_names_expand_symtabs_matching): Update.
2615 (dwarf2_read_debug_names): Update.
2616
7188ed02
SM
26172020-05-27 Simon Marchi <simon.marchi@efficios.com>
2618
2619 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2620 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2621 move to dwarf2_per_objfile.
2622 <read_in_chain>: Remove.
2623 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2624 remove_all_cus, age_comp_units>: New methods.
2625 <m_dwarf2_cus>: New member.
2626 (struct dwarf2_per_cu_data) <cu>: Remove.
2627 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2628 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2629 moved to methods of dwarf2_per_objfile.
2630 (dwarf2_clear_marks): Remove.
2631 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2632 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2633 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2634 (dwarf2_per_objfile::remove_all_cus): New.
2635 (class free_cached_comp_units) <~free_cached_comp_units>:
2636 Update.
2637 (load_cu): Update.
2638 (dw2_do_instantiate_symtab): Adjust.
2639 (fill_in_sig_entry_from_dwo_entry): Adjust.
2640 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2641 (cutu_reader::cutu_reader): Likewise.
2642 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2643 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2644 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2645 and dwarf2_per_objfile::age_comp_units.
2646 (load_partial_comp_unit): Update.
2647 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2648 (process_queue): Likewise.
2649 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2650 backlink.
2651 (dwarf2_read_addr_index): Likewise.
2652 (follow_die_offset): Likewise.
2653 (dwarf2_fetch_die_loc_sect_off): Likewise.
2654 (dwarf2_fetch_constant_bytes): Likewise.
2655 (dwarf2_fetch_die_type_sect_off): Likewise.
2656 (follow_die_sig_1): Likewise.
2657 (load_full_type_unit): Likewise.
2658 (read_signatured_type): Likewise.
2659 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2660 (dwarf2_cu::~dwarf2_cu): Remove.
2661 (dwarf2_per_objfile::get_cu): New.
2662 (dwarf2_per_objfile::set_cu): New.
2663 (age_cached_comp_units): Rename to...
2664 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2665 to std::unordered_map.
2666 (free_one_cached_comp_unit): Rename to...
2667 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2668 to std::unordered_map.
2669 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2670 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2671 a dwarf2_per_objfile in data.
2672 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2673 (dwarf2_clear_marks): Remove.
2674
2e671100
SM
26752020-05-27 Simon Marchi <simon.marchi@efficios.com>
2676
2677 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2678 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2679 (init_tu_and_read_dwo_dies): Likewise.
2680 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2681 (cutu_reader::cutu_reader): Likewise.
2682 (load_partial_comp_unit): Likewise.
2683 (process_psymtab_comp_unit): Update.
2684 (build_type_psymtabs_1): Update.
2685 (process_skeletonless_type_unit): Update.
2686 (load_full_comp_unit): Update.
2687 (find_partial_die): Update.
2688 (dwarf2_read_addr_index): Update.
2689 (read_signatured_type): Update.
2690
2e6a9f79
SM
26912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2692
2693 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2694 m_header_read_in>: New fields.
2695 <get_header>: New method.
2696 * dwarf2/read.c (per_cu_header_read_in): Remove.
2697 (dwarf2_per_cu_data::get_header): New.
2698 (dwarf2_per_cu_data::addr_size): Update.
2699 (dwarf2_per_cu_data::offset_size): Update.
2700 (dwarf2_per_cu_data::ref_addr_size): Update.
2701
1b555f17
SM
27022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2703
2704 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2705 (dw2_do_instantiate_symtab): Update.
2706 (queue_and_load_all_dwo_tus): Change parameter from
2707 dwarf2_per_cu_data to dwarf2_cu.
2708 (dwarf2_fetch_die_loc_sect_off): Update.
2709 (dwarf2_fetch_constant_bytes): Update.
2710 (dwarf2_fetch_die_type_sect_off): Update.
2711
8fc0b21d
SM
27122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2713
2714 * dwarf2/read.c (process_full_comp_unit,
2715 process_full_type_unit): Remove per_cu, per_objfile paramters.
2716 Add dwarf2_cu parameter.
2717 (process_queue): Update.
2718
168c9250
SM
27192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2720
2721 * dwarf2/read.c (create_cu_from_index_list): Replace
2722 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2723 (create_cus_from_index_list): Likewise.
2724 (create_cus_from_index): Likewise.
2725 (create_signatured_type_table_from_index): Likewise.
2726 (create_cus_from_debug_names_list): Likewise.
2727 (create_cus_from_debug_names): Likewise.
2728 (dwarf2_read_gdb_index): Update.
2729 (dwarf2_read_debug_names): Update.
2730
e286671b
TT
27312020-05-27 Tom Tromey <tom@tromey.com>
2732 Simon Marchi <simon.marchi@efficios.com>
2733
2734 * dwarf2/read.h (struct dwarf2_per_objfile)
2735 <get_type_for_signatured_type, set_type_for_signatured_type>:
2736 New methods.
2737 <m_type_map>: New member.
2738 (struct signatured_type) <type>: Remove.
2739 * dwarf2/read.c
2740 (dwarf2_per_objfile::get_type_for_signatured_type,
2741 dwarf2_per_objfile::set_type_for_signatured_type): New.
2742 (get_signatured_type): Use new methods.
2743
8adb8487
TT
27442020-05-27 Tom Tromey <tom@tromey.com>
2745 Simon Marchi <simon.marchi@efficios.com>
2746
2747 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2748 (struct dwarf2_per_objfile) <type_units>: New member.
2749 <get_type_unit_group_unshareable>: New method.
2750 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2751 num_symtabs, symtabs>: Remove; move to
2752 type_unit_group_unshareable.
2753 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2754 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2755 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2756
127bbf4b
SM
27572020-05-27 Simon Marchi <simon.marchi@efficios.com>
2758
2759 * dwarf2/read.h (struct dwarf2_per_cu_data):
2760 <dwarf2_per_objfile>: Remove.
2761 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2762 dwarf2_per_objfile.
2763 (create_signatured_type_table_from_index): Likewise.
2764 (create_signatured_type_table_from_debug_names): Likewise.
2765 (create_debug_type_hash_table): Likewise.
2766 (fill_in_sig_entry_from_dwo_entry): Likewise.
2767 (create_type_unit_group): Likewise.
2768 (read_comp_units_from_section): Likewise.
2769 (create_cus_hash_table): Likewise.
2770
f6e649dd
SM
27712020-05-27 Simon Marchi <simon.marchi@efficios.com>
2772
2773 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2774 dwarf2_per_cu_data::dwarf2_per_objfile.
2775 (compute_compunit_symtab_includes): Likewise.
2776 (dwarf2_cu::start_symtab): Likewise.
2777
aa66c379
SM
27782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2779
2780 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2781 parameter.
2782 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2783 (read_namespace_alias): Update.
2784 (lookup_die_type): Update.
2785 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2786 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2787 Update.
2788 (disassemble_dwarf_expression): Update.
2789
120ce1b5
SM
27902020-05-27 Simon Marchi <simon.marchi@efficios.com>
2791
2792 * dwarf2/read.h (struct dwarf2_queue_item): Add
2793 dwarf2_per_objfile parameter, assign new parameter.
2794 <per_objfile>: New field.
2795 * dwarf2/read.c (free_one_cached_comp_unit): Add
2796 dwarf2_per_objfile parameter.
2797 (queue_comp_unit): Likewise.
2798 (dw2_do_instantiate_symtab): Update.
2799 (process_psymtab_comp_unit): Update.
2800 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2801 (process_imported_unit_die): Update.
2802 (queue_and_load_dwo_tu): Update.
2803 (follow_die_offset): Update.
2804 (follow_die_sig_1): Update.
2805
9f47c707
SM
28062020-05-27 Simon Marchi <simon.marchi@efficios.com>
2807
2808 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2809 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2810 (read_call_site_scope): Assign per_objfile.
2811 (dwarf2_per_cu_data::objfile): Remove.
2812 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2813 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2814 dwarf2_per_objfile parameter.
2815 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2816 dwarf2_per_objfile parameter.
2817 (dwarf_expr_reg_to_entry_parameter): Add output
2818 dwarf2_per_objfile parameter.
2819 (locexpr_get_frame_base): Update.
2820 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2821 <push_dwarf_reg_entry_value>: Update.
2822 <call_site_to_target_addr>: Update.
2823 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2824 parameter.
2825 (value_of_dwarf_reg_entry): Update.
2826 (rw_pieced_value): Update.
2827 (indirect_synthetic_pointer): Update.
2828 (dwarf2_evaluate_property): Update.
2829 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2830 parameter.
2831 (locexpr_read_variable): Update.
2832 (locexpr_get_symbol_read_needs): Update.
2833 (loclist_read_variable): Update.
2834
14095eb3
SM
28352020-05-27 Simon Marchi <simon.marchi@efficios.com>
2836
2837 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2838 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2839 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2840 parameter.
2841 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2842 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2843 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2844 parameter.
2845 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2846 sect_variable_value): Add dwarf2_per_objfile parameter.
2847 (class dwarf_evaluate_loc_desc) <dwarf_call,
2848 dwarf_variable_value>: Update.
2849 (fetch_const_value_from_synthetic_pointer): Add
2850 dwarf2_per_objfile parameter.
2851 (fetch_const_value_from_synthetic_pointer): Update.
2852 (coerced_pieced_ref): Update.
2853 (class symbol_needs_eval_context) <dwarf_call,
2854 dwarf_variable_value>: Update.
2855 (dwarf2_compile_expr_to_ax): Update.
2856
3c3cd3d4
SM
28572020-05-27 Simon Marchi <simon.marchi@efficios.com>
2858
2859 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2860 parameter.
2861 (dwarf2_evaluate_loc_desc_full): Update.
2862
82ca3f51
SM
28632020-05-27 Simon Marchi <simon.marchi@efficios.com>
2864
2865 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2866 parameter.
2867 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2868 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2869 dwarf2_per_objfile parameter.
2870 (decode_debug_loc_dwo_addresses): Likewise.
2871 (dwarf2_find_location_expression): Update.
2872 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2873 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2874 parameter.
2875 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2876 parameter.
2877 (locexpr_describe_location_1): Likewise.
2878 (locexpr_describe_location): Update.
2879
4b167ea1
SM
28802020-05-27 Simon Marchi <simon.marchi@efficios.com>
2881
2882 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2883 Remove.
2884 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2885 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2886 (dwarf2_compile_property_to_c): Update.
2887 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2888 use text offset from objfile.
2889 (locexpr_tracepoint_var_ref): Update.
2890 (locexpr_generate_c_location): Update.
2891 (loclist_describe_location): Update.
2892 (loclist_tracepoint_var_ref): Update.
2893 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2894 dwarf2_per_objfile parameter.
2895 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2896 use text offset from objfile.
2897 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2898
89b07335
SM
28992020-05-27 Simon Marchi <simon.marchi@efficios.com>
2900
2901 * dwarf2/expr.h (struct dwarf_expr_context)
2902 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2903 <offset>: Remove.
2904 <per_objfile>: New member.
2905 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2906 dwarf2_per_objfile parameter. Don't set offset, set
2907 per_objfile.
2908 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2909 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2910 a dwarf2_per_objfile object instead of an offset.
2911 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2912 constructor.
2913 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2914 to dwarf2_expr_executor constructor. Don't set offset.
2915 (dwarf2_fetch_cfa_info): Update.
2916 (struct dwarf2_frame_cache) <text_offset>: Remove.
2917 <per_objfile>: New field.
2918 (dwarf2_frame_cache): Update.
2919 (dwarf2_frame_prev_register): Update.
2920 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2921 <dwarf_evaluate_loc_desc>: Add constructor.
2922 (dwarf2_evaluate_loc_desc_full): Update.
2923 (dwarf2_locexpr_baton_eval): Update.
2924 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2925 Add constructor.
2926 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2927
293e7e51
SM
29282020-05-27 Simon Marchi <simon.marchi@efficios.com>
2929
2930 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2931 addr_sized_int_type>: Move to dwarf2_cu.
2932 <int_type>: Move to dwarf2_per_objfile.
2933 (struct dwarf2_per_objfile) <int_type>: Move here.
2934 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2935 addr_sized_int_type>: Move here.
2936 (read_func_scope): Update.
2937 (read_array_type): Update.
2938 (read_tag_string_type): Update.
2939 (attr_to_dynamic_prop): Update.
2940 (dwarf2_per_cu_data::int_type): Rename to...
2941 (dwarf2_per_objfile::int_type): ... this.
2942 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2943 (dwarf2_cu::addr_sized_int_type): ... this.
2944 (read_subrange_type): Update.
2945 (dwarf2_per_cu_data::addr_type): Rename to...
2946 (dwarf2_cu::addr_type): ... this.
2947 (set_die_type): Update.
2948
64874a40
SM
29492020-05-27 Simon Marchi <simon.marchi@efficios.com>
2950
2951 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2952 data through per_cu->cu.
2953
4ab09049
SM
29542020-05-27 Simon Marchi <simon.marchi@efficios.com>
2955
2956 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2957 dwarf2_per_cu_data parameter fo dwarf2_cu.
2958 (lookup_dwo_type_unit): Likewise.
2959 (read_cutu_die_from_dwo): Likewise.
2960 (lookup_dwo_unit): Likewise.
2961 (open_and_init_dwo_file): Likewise.
2962 (lookup_dwo_cutu): Likewise.
2963 (lookup_dwo_comp_unit): Likewise.
2964 (lookup_dwo_type_unit): Likewise.
2965 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2966 (cutu_reader::cutu_reader): Update.
2967
47b14e86
SM
29682020-05-27 Simon Marchi <simon.marchi@efficios.com>
2969
2970 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2971 parameter.
2972 (process_full_type_unit): Likewise.
2973 (process_queue): Update.
2974
43182c09
SM
29752020-05-27 Simon Marchi <simon.marchi@efficios.com>
2976
2977 * dwarf2/read.c (recursively_compute_inclusions): Add
2978 dwarf2_per_objfile parameter.
2979 (compute_compunit_symtab_includes): Likewise.
2980 (process_cu_includes): Update.
2981
7aa104c4
SM
29822020-05-27 Simon Marchi <simon.marchi@efficios.com>
2983
2984 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2985 parameter.
2986 (create_type_unit_group): Update.
2987 (process_psymtab_comp_unit_reader): Update.
2988 (build_type_psymtabs_reader): Update.
2989
e3beb21d
SM
29902020-05-27 Simon Marchi <simon.marchi@efficios.com>
2991
2992 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2993 object through m_this_cu->cu.
2994
d460f660
SM
29952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2996
2997 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2998 the info parameter.
2999 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3000
ab432490
SM
30012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3002
3003 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3004 per_objfile parameter.
3005 (load_full_type_unit): Add per_objfile parameter.
3006 (read_signatured_type): Likewise.
3007 (load_full_comp_unit): Likewise.
3008 (load_cu): Likewise.
3009 (dw2_do_instantiate_symtab): Likewise.
3010 (dw2_get_file_names): Likewise.
3011 (dw2_map_symtabs_matching_filename): Update.
3012 (dw_expand_symtabs_matching_file_matcher): Update.
3013 (dw2_map_symbol_filenames): Update.
3014 (process_psymtab_comp_unit): Add per_objfile parameter.
3015 (build_type_psymtabs_1): Update.
3016 (process_skeletonless_type_unit): Update.
3017 (dwarf2_build_psymtabs_hard): Update.
3018 (load_partial_comp_unit): Add per_objfile parameter.
3019 (scan_partial_symbols): Update.
3020 (load_full_comp_unit): Add per_objfile parameter.
3021 (process_imported_unit_die): Update.
3022 (create_cus_hash_table): Update.
3023 (find_partial_die): Update.
3024 (dwarf2_read_addr_index): Update.
3025 (follow_die_offset): Update.
3026 (dwarf2_fetch_die_loc_sect_off): Update.
3027 (dwarf2_fetch_constant_bytes): Update.
3028 (dwarf2_fetch_die_type_sect_off): Update.
3029 (follow_die_sig_1): Update.
3030 (load_full_type_unit): Add per_objfile parameter.
3031 (read_signatured_type): Likewise.
3032
313bad1b
SM
30332020-05-27 Simon Marchi <simon.marchi@efficios.com>
3034
3035 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3036 of objfile_name.
3037
c3699833
SM
30382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3039
3040 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3041 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3042 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3043 field.
3044 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3045 (create_cus_from_index): Update.
3046 (dwarf2_read_gdb_index): Update.
3047 (create_cus_from_debug_names): Update.
3048 (dwarf2_read_debug_names): Update.
3049 (get_abbrev_section_for_cu): Update.
3050 (create_all_comp_units): Update.
3051 (read_attribute_value): Update.
3052 (get_debug_line_section): Update.
3053 * dwarf2/index-cache.c (index_cache::store): Update.
3054 * dwarf2/index-write.c (save_gdb_index_command): Update.
3055 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3056
1859c670
SM
30572020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3058
3059 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3060 member.
3061 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3062 dwarf2_per_cu_data::per_bfd.
3063 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3064 (create_type_unit_group): Likewise.
3065 (queue_comp_unit): Remove reference to
3066 per_cu->dwarf2_per_objfile.
3067 (maybe_queue_comp_unit): Likewise.
3068 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3069 (create_cus_hash_table): Assign new field.
3070
5e22e966
SM
30712020-05-27 Simon Marchi <simon.marchi@efficios.com>
3072
3073 * dwarf2/read.c: Replace
3074 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3075 dwarf2_cu->per_objfile throughout.
3076
97a1449a
SM
30772020-05-27 Simon Marchi <simon.marchi@efficios.com>
3078
3079 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3080 parameter, don't use per_cu->dwarf2_per_objfile.
3081 (dw2_instantiate_symtab): Likewise.
3082 (dw2_find_last_source_symtab): Update.
3083 (dw2_map_expand_apply): Update.
3084 (dw2_lookup_symbol): Update.
3085 (dw2_expand_symtabs_for_function): Update.
3086 (dw2_expand_all_symtabs): Update.
3087 (dw2_expand_symtabs_with_fullname): Update.
3088 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3089 don't use per_cu->dwarf2_per_objfile.
3090 (dw2_expand_marked_cus): Update.
3091 (dw2_find_pc_sect_compunit_symtab): Update.
3092 (dw2_debug_names_lookup_symbol): Update.
3093 (dw2_debug_names_expand_symtabs_for_function): Update.
3094 (dw2_debug_names_map_matching_symbols): Update.
3095 (dwarf2_psymtab::expand_psymtab): Update.
3096
9e021579
SM
30972020-05-27 Simon Marchi <simon.marchi@efficios.com>
3098
3099 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3100 <per_objfile>: New member.
3101 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3102 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3103 call to dwarf2_cu.
3104 (cutu_reader::cutu_reader): Update.
3105 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3106
ae090bdb
SM
31072020-05-27 Simon Marchi <simon.marchi@efficios.com>
3108
3109 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3110 struct dwarf2_per_objfile.
3111 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3112 dwarf2_per_bfd.
3113 * dwarf2/read.c (set_die_type): Update.
3114 (get_die_type_at_offset): Update.
3115
af758d11
SM
31162020-05-27 Tom Tromey <tom@tromey.com>
3117 Simon Marchi <simon.marchi@efficios.com>
3118
3119 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3120 method.
3121 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3122 get_symtab, set_symtab>: New methods.
3123 <m_symtabs>: New field.
3124 (struct dwarf2_psymtab): Derive from partial_symtab.
3125 <readin_p, get_compunit_symtab>: Declare methods.
3126 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3127 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3128 New methods.
3129 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3130 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3131 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3132 (dw2_symtab_iter_next, dw2_print_stats)
3133 (dw2_expand_symtabs_with_fullname)
3134 (dw2_expand_symtabs_matching_one)
3135 (dw_expand_symtabs_matching_file_matcher)
3136 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3137 (dw2_debug_names_iterator::next)
3138 (dw2_debug_names_map_matching_symbols)
3139 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3140 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3141 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3142 New methods.
3143 (get_compunit_symtab, process_full_comp_unit)
3144 (process_full_type_unit): Update.
3145 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3146
5989a64e
SM
31472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3148
3149 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3150 then introduce a new dwarf2_per_objfile type.
3151 <read_line_string>: Move to the new dwarf2_per_objfile type.
3152 <objfile>: Likewise.
3153 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3154 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3155 dwarf2_per_objfile->per_bfd.
3156 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3157 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3158 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3159 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3160 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3161 (dwarf2_per_objfile::locate_sections): Rename to...
3162 (dwarf2_per_bfd::locate_sections): ... this.
3163 (dwarf2_per_objfile::get_cutu): Rename to...
3164 (dwarf2_per_bfd::get_cutu): ... this.
3165 (dwarf2_per_objfile::get_cu): Rename to...
3166 (dwarf2_per_bfd::get_cu): ... this.
3167 (dwarf2_per_objfile::get_tu): Rename to...
3168 (dwarf2_per_bfd::get_tu): ... this.
3169 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3170 (dwarf2_per_bfd::allocate_per_cu): ... this.
3171 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3172 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3173 (get_gdb_index_contents_ftype): Change parameter from
3174 dwarf2_per_objfile to dwarf2_per_bfd.
3175 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3176 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3177
a50264ba
TT
31782020-05-27 Tom Tromey <tom@tromey.com>
3179 Simon Marchi <simon.marchi@efficios.com>
3180
3181 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3182 (allocate_piece_closure): Set "per_objfile" member.
3183 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3184 (locexpr_describe_location, loclist_describe_location): Use new
3185 member.
3186 * dwarf2/read.c (read_call_site_scope)
3187 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3188 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3189 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3190 handle_data_member_location): Set per_objfile member.
3191 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3192 member.
3193 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3194
d3473f0c
TT
31952020-05-27 Tom Tromey <tom@tromey.com>
3196
3197 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3198 allocate_signatured_type>: Declare new methods.
3199 <m_num_psymtabs>: New member.
3200 (struct dwarf2_per_cu_data) <index>: New member.
3201 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3202 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3203 (create_cu_from_index_list): Use allocate_per_cu.
3204 (create_signatured_type_table_from_index)
3205 (create_signatured_type_table_from_debug_names)
3206 (create_debug_type_hash_table, add_type_unit)
3207 (read_comp_units_from_section): Use allocate_signatured_type.
3208
5717c425
TT
32092020-05-27 Tom Tromey <tom@tromey.com>
3210
3211 * psymtab.c (partial_map_expand_apply)
3212 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3213 (psym_lookup_global_symbol_language)
3214 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3215 (psym_print_stats, psym_expand_symtabs_for_function)
3216 (psym_map_symbol_filenames, psym_map_matching_symbols)
3217 (psym_expand_symtabs_matching)
3218 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3219 (maintenance_check_psymtabs): Update.
3220 * psympriv.h (struct partial_symtab) <readin_p,
3221 get_compunit_symtab>: Add objfile parameter.
3222 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3223 Likewise.
3224 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3225 get_compunit_symtab>: Likewise.
3226 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3227
45940949
TT
32282020-05-27 Tom Tromey <tom@tromey.com>
3229
3230 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3231 member.
3232 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3233 (create_cu_from_index_list)
3234 (create_signatured_type_table_from_index)
3235 (create_signatured_type_table_from_debug_names)
3236 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3237 (dwarf2_create_include_psymtab)
3238 (create_debug_type_hash_table, add_type_unit)
3239 (create_type_unit_group, read_comp_units_from_section)
3240 (dwarf2_compute_name, create_cus_hash_table)
3241 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3242 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3243 obstack.
3244 (dw2_get_real_path): Likewise. Change argument to
3245 dwarf2_per_objfile.
3246
f8c6d152
LM
32472020-05-27 Luis Machado <luis.machado@linaro.org>
3248
3249 PR tdep/26000
3250 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3251 for ldrd (immediate).
3252
e98d2e6d
PW
32532020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3254
3255 * command.h: Add comment giving the name of class_tui.
3256 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3257 create the fake command for the help for class_tui.
3258
53a47a3e
TT
32592020-05-26 Tom Tromey <tromey@adacore.com>
3260
3261 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3262 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3263 (val_atr): New function.
3264 (value_val_atr): Use it.
3265 * ada-valprint.c (print_optional_low_bound): Change low bound
3266 handling for enums.
3267 (val_print_packed_array_elements): Don't call discrete_position.
3268 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3269 discrete_position for enum types.
3270 * language.c (default_print_array_index): Change type.
3271 * language.h (struct language_defn) <la_print_array_index>: Add
3272 index_type parameter, change type of index_value.
3273 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3274 (default_print_array_index): Update.
3275 * valprint.c (maybe_print_array_index): Don't call
3276 value_from_longest. Update.
3277 (value_print_array_elements): Don't call discrete_position.
3278
0bc2354b
TT
32792020-05-26 Tom Tromey <tromey@adacore.com>
3280
3281 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3282 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3283
1218a4bf
CDA
32842020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3285
3286 PR gdb/13519
3287 * avr-tdep.c (avr_integer_to_address): Return data or code
3288 address accordingly to the second 'type' argument of the
3289 function.
3290
92651b1d
MW
32912020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3292
3293 * infcmd.c, inferior.h: (construct_inferior_arguments):
3294 Moved function from here to gdbsupport/common-inferior.{h,cc}
3295
0a4f5f8c
TT
32962020-05-23 Tom Tromey <tom@tromey.com>
3297
3298 Revert commit eca1f90c:
3299 * NEWS: Remove entry for completion styling.
3300 * completer.c (_rl_completion_prefix_display_length): Move
3301 declaration later.
3302 (gdb_fnprint): Revert.
3303 (gdb_display_match_list_1): Likewise.
3304 * cli/cli-style.c (completion_prefix_style)
3305 (completion_difference_style, completion_suffix_style): Remove.
3306 (_initialize_cli_style): Revert.
3307 * cli/cli-style.h (completion_prefix_style)
3308 (completion_difference_style, completion_suffix_style): Don't
3309 declare.
3310
e08bd6c5
PA
33112020-05-24 Pedro Alves <palves@redhat.com>
3312
3313 * symtab.c (completion_list_add_name): Return boolean indication
3314 of whether the symbol matched.
3315 (completion_list_add_symbol): Don't try to remove C++ aliases if
3316 the symbol didn't match in the first place.
3317 * symtab.h (completion_list_add_name): Return bool.
3318
ceacbf6e
SM
33192020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3320
3321 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3322 type::field.
3323
26f16254
JB
33242020-05-23 Joel Brobecker <brobecker@adacore.com>
3325
3326 GDB 9.2 released.
3327
eca1f90c
TT
33282020-05-23 Tom Tromey <tom@tromey.com>
3329
3330 * NEWS: Add entry for completion styling.
3331 * completer.c (_rl_completion_prefix_display_length): Move
3332 declaration earlier.
3333 (gdb_fnprint): Use completion_style.
3334 (gdb_display_match_list_1): Likewise.
3335 * cli/cli-style.c (completion_prefix_style)
3336 (completion_difference_style, completion_suffix_style): New
3337 globals.
3338 (_initialize_cli_style): Register new globals.
3339 * cli/cli-style.h (completion_prefix_style)
3340 (completion_difference_style, completion_suffix_style): Declare.
3341
51e2cfa2
PA
33422020-05-23 Pedro Alves <palves@redhat.com>
3343
3344 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3345 (parse_escape): Use ISDIGIT instead of isdigit.
3346 (puts_debug): Use gdb_isprint instead of isprint.
3347 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3348 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3349 ISSPACE instead of isspace.
3350 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3351 instead of isspace.
3352 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3353 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3354 instead of isxdigit and ISDIGIT instead of isdigit.
3355
80fc5e77
SM
33562020-05-22 Simon Marchi <simon.marchi@efficios.com>
3357
3358 * gdbtypes.h (struct type) <field>: New method.
3359 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3360 or type::field.
3361
3cabb6b0
SM
33622020-05-22 Simon Marchi <simon.marchi@efficios.com>
3363
3364 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3365 (TYPE_FIELDS): Use type::fields. Change all call sites that
3366 modify the propery to use type::set_fields instead.
3367
1f704f76
SM
33682020-05-22 Simon Marchi <simon.marchi@efficios.com>
3369
3370 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3371 type::num_fields instead.
3372
5e33d5f4
SM
33732020-05-22 Simon Marchi <simon.marchi@efficios.com>
3374
3375 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3376 methods.
3377 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3378 that modify the number of fields to use type::set_num_fields
3379 instead.
3380
9392ebb3
TT
33812020-05-22 Tom Tromey <tromey@adacore.com>
3382
3383 * compile/compile-object-load.h (munmap_list_free): Don't
3384 declare.
3385
7c13f4e8
AB
33862020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3387
3388 * annotate.c (annotate_source_line): Update return type, add call
3389 to update current symtab and line.
3390 * annotate.h (annotate_source_line): Update return type, and
3391 extend header comment.
3392 * source.c (info_line_command): Check annotation_level before
3393 calling annotate_source_line.
3394 * stack.c (print_frame_info): If calling annotate_source_line
3395 returns true, then don't print any other source line information.
3396
aa370940
SM
33972020-05-21 Simon Marchi <simon.marchi@efficios.com>
3398
3399 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3400
84d53fa9
SM
34012020-05-21 Simon Marchi <simon.marchi@efficios.com>
3402
3403 * coffread.c (patch_type): Remove NULL check before xfree.
3404 * corefile.c (set_gnutarget): Likewise.
3405 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3406 * exec.c (build_section_table): Likewise.
3407 * remote.c (remote_target::pass_signals): Likewise.
3408 * utils.c (n_spaces): Likewise.
3409 * cli/cli-script.c (document_command): Likewise.
3410 * i386-windows-tdep.c (core_process_module_section): Likewise.
3411 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3412
9d428aae
SM
34132020-05-20 Simon Marchi <simon.marchi@efficios.com>
3414
3415 * symfile.c (reread_symbols): Clear objfile's section_offsets
3416 vector and section indices, re-compute them by calling
3417 sym_offsets.
3418
250106a7
TT
34192020-05-20 Tom Tromey <tromey@adacore.com>
3420
3421 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3422 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3423
9a0bacfb
TV
34242020-05-20 Tom de Vries <tdevries@suse.de>
3425
3426 PR symtab/25833
3427 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3428
7b958a48
AM
34292020-05-20 Alan Modra <amodra@gmail.com>
3430
3431 PR 25993
3432 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3433 bfd_set_filename.
3434 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3435 passed to bfd_set_filename.
3436 * symfile-mem.c (add_vsyscall_page): Likewise for string
3437 passed to symbol_file_add_from_memory.
3438 (symbol_file_add_from_memory): Make name param a const char* and
3439 don't strdup.
3440
c7e97679
AM
34412020-05-20 Alan Modra <amodra@gmail.com>
3442
3443 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3444 rather than accessing bfd->filename directly.
3445 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3446 and use bfd_section_name.
3447 * dwarf2/frame.c (decode_frame_entry): Likewise.
3448 * exec.c (exec_set_section_address): Likewise.
3449 * solib-aix.c (solib_aix_bfd_open): Likewise.
3450 * stap-probe.c (get_stap_base_address): Likewise.
3451 * symfile.c (reread_symbols): Likewise.
3452
563c591b
TT
34532020-05-19 Tom Tromey <tromey@adacore.com>
3454
3455 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3456
f408d82c
SM
34572020-05-19 Simon Marchi <simon.marchi@efficios.com>
3458
3459 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3460
98c59b52
PA
34612020-05-19 Pedro Alves <palves@redhat.com>
3462
3463 * NEWS (set exec-file-mismatch): Adjust entry.
3464 * exec.c: Include "build-id.h".
3465 (validate_exec_file): Try to match build IDs instead of filenames.
3466 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3467 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3468 and pass down 'warn_if_slow'.
3469 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3470 gdb_bfd_open_closure to pass it down.
3471 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3472
4111f652
PA
34732020-05-19 Pedro Alves <palves@redhat.com>
3474
3475 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3476 * target.c (target_fileio_open_1): Rename to target_fileio_open
3477 and make extern. Use bool.
3478 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3479 (target_fileio_read_alloc_1): Adjust.
3480 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3481 (target_fileio_open_warn_if_slow): Delete declaration.
3482
ad80db5b
PA
34832020-05-19 Pedro Alves <palves@redhat.com>
3484
3485 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3486 Adjust all callers.
3487
1d6ce4d3
YS
34882020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3489
3490 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3491 whether disp is negative.
3492
9005fbbb
SM
34932020-05-19 Simon Marchi <simon.marchi@efficios.com>
3494
3495 * symfile.h (struct symfile_segment_data)
3496 <~symfile_segment_data>: Remove.
3497 <segment_info>: Change to std::vector.
3498 * symfile.c (default_symfile_segments): Update.
3499 * elfread.c (elf_symfile_segments): Update.
3500
68b888ff
SM
35012020-05-19 Simon Marchi <simon.marchi@efficios.com>
3502
3503 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3504 <segments>: New.
3505 <segment_bases, segment_sizes>: Remove.
3506 * symfile.c (default_symfile_segments): Update.
3507 * elfread.c (elf_symfile_segments): Update.
3508 * remote.c (remote_target::get_offsets): Update.
3509 * solib-target.c (solib_target_relocate_section_addresses):
3510 Update.
3511
62982abd
SM
35122020-05-19 Simon Marchi <simon.marchi@efficios.com>
3513
3514 * symfile.h (struct symfile_segment_data): Initialize fields.
3515 <~symfile_segment_data>: Add.
3516 (symfile_segment_data_up): New.
3517 (struct sym_fns) <sym_segments>: Return a
3518 symfile_segment_data_up.
3519 (default_symfile_segments): Return a symfile_segment_data_up.
3520 (free_symfile_segment_data): Remove.
3521 (get_symfile_segment_data): Return a symfile_segment_data_up.
3522 * symfile.c (default_symfile_segments): Likewise.
3523 (get_symfile_segment_data): Likewise.
3524 (free_symfile_segment_data): Remove.
3525 (symfile_find_segment_sections): Update.
3526 * elfread.c (elf_symfile_segments): Return a
3527 symfile_segment_data_up.
3528 * remote.c (remote_target::get_offsets): Update.
3529 * solib-target.c (solib_target_relocate_section_addresses):
3530 Update.
3531 * symfile-debug.c (debug_sym_segments): Return a
3532 symfile_segment_data_up.
3533
7f204339
RO
35342020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3535
e52a0f1b
RO
3536 PR build/25981
3537 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3538 Hardcode register numbers.
3539
7f204339
RO
3540 PR build/25981
3541 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3542 procfs_find_LDT_entry): Remove.
3543 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3544 procfs_find_LDT_entry): Remove.
3545 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3546 Remove.
3547
7f32a4d5
PA
35482020-05-17 Pedro Alves <palves@redhat.com>
3549 Andrew Burgess <andrew.burgess@embecosm.com>
3550 Keno Fischer <keno@juliacomputing.com>
3551
3552 PR gdb/25741
3553 * breakpoint.c (build_target_condition_list): Update comments.
3554 (build_target_command_list): Update comments and skip matching
3555 locations.
3556 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3557 a separate function. Simplify "set breakpoint auto-hw off"
3558 handling.
3559 (insert_breakpoints): Update comment.
3560 (tracepoint_locations_match): New parameter. For breakpoints,
3561 compare location types too, if the caller wants to.
3562 (handle_automatic_hardware_breakpoints): New functions.
3563 (bp_location_is_less_than): Also sort by location type and
3564 hardware breakpoint length.
3565 (update_global_location_list): Handle "set breakpoint auto-hw on"
3566 here.
3567 (update_breakpoint_locations): Ask breakpoint_locations_match to
3568 ignore location types.
3569
7d93a1e0
SM
35702020-05-16 Simon Marchi <simon.marchi@efficios.com>
3571
3572 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3573 type::name instead.
3574
d0e39ea2
SM
35752020-05-16 Simon Marchi <simon.marchi@efficios.com>
3576
3577 * gdbtypes.h (struct type) <name, set_name>: New methods.
3578 (TYPE_CODE): Use type::name. Change all call sites used to set
3579 the name to use type::set_name instead.
3580
2dab0c7b
TT
35812020-05-16 Tom Tromey <tom@tromey.com>
3582
3583 * top.c (quit_force): Update.
3584 * infrun.c (handle_no_resumed): Update.
3585 * top.h (all_uis): New function.
3586 (ALL_UIS): Remove.
3587
59f7bd8d
SM
35882020-05-16 Simon Marchi <simon.marchi@efficios.com>
3589
3590 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3591
9bf058f0
PA
35922020-05-16 Pedro Alves <palves@redhat.com>
3593
3594 * ia64-linux-nat.c
3595 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3596 Declare method.
3597 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3598
8f86ae1a
SM
35992020-05-15 Simon Marchi <simon.marchi@efficios.com>
3600
3601 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3602 (sparc64_adi_info): Likewise.
3603
d6bc0792
TT
36042020-05-15 Tom Tromey <tom@tromey.com>
3605
3606 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3607 block_objfile.
3608 (lookup_objfile_from_block): Remove.
3609 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3610 (lookup_global_symbol): Use block_objfile.
3611 * symtab.h (lookup_objfile_from_block): Don't declare.
3612 * printcmd.c (clear_dangling_display_expressions): Use
3613 block_objfile.
3614 * parse.c (operator_check_standard): Use block_objfile.
3615
8c14c3a3
TT
36162020-05-15 Tom Tromey <tom@tromey.com>
3617
3618 * language.c (language_alloc_type_symbol): Set
3619 SYMBOL_SECTION.
3620 * symtab.c (initialize_objfile_symbol): Remove.
3621 (allocate_symbol): Remove.
3622 (allocate_template_symbol): Remove.
3623 * dwarf2/read.c (fixup_go_packaging): Use "new".
3624 (new_symbol): Use "new".
3625 (read_variable): Don't call initialize_objfile_symbol. Use
3626 "new".
3627 (read_func_scope): Use "new".
3628 * xcoffread.c (process_xcoff_symbol): Don't call
3629 initialize_objfile_symbol.
3630 (SYMBOL_DUP): Remove.
3631 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3632 "new".
3633 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3634 (allocate_template_symbol): Don't declare.
3635 (struct symbol): Add copy constructor. Change defaults.
3636 * jit.c (finalize_symtab): Use "new".
3637 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3638 Use "new".
3639 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3640 (common_block_end): Use "new".
3641 * mdebugread.c (parse_symbol): Use "new".
3642 (new_symbol): Likewise.
3643
5b4a1a8d
PW
36442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3645
3646 * NEWS: Mention changes to help and apropos.
3647
57b4f16e
PW
36482020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3649
3650 * command.h (enum command_class): Improve comments, document
3651 that class_alias is for user-defined aliases, give the class
3652 name for each class, remove unused class_xdb.
3653 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3654 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3655 by a precise class.
3656 * infcmd.c (_initialize_infcmd): Likewise.
3657 * reverse.c (_initialize_reverse): Likewise.
3658 * stack.c (_initialize_stack): Likewise.
3659 * symfile.c (_initialize_symfile): Likewise.
3660 * tracepoint.c (_initialize_tracepoint): Likewise.
3661
7c05caf7
PW
36622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3663
3664 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3665 when their aliased command is traversed.
3666 (help_cmd): Add fput_command_names_styled call to
3667 output command name and aliases when command has an alias.
3668
3b3aaacb
PW
36692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3670
3671 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3672 * cli/cli-decode.c (help_cmd_list): Declare as static,
3673 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3674 a command together with the command.
3675 (fput_command_name_styled, fput_command_names_styled): New functions.
3676 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3677 fput_command_name_styled.
3678 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3679 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3680
7aa1b46f
PW
36812020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3682
3683 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3684 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3685 * command.h (cmd_show_list): Likewise.
3686 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3687 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3688
89bcba74
PW
36892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3690
3691 * unittests/command-def-selftests.c (traverse_command_structure):
3692 Verify all commands of a list have the same prefix command and
3693 that only the top cmdlist commands have a null prefix.
3694
3f4d92eb
PW
36952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3696
3697 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3698 as prefix, not one of its aliases.
3699 (set_cmd_prefix): Remove.
3700 (do_add_cmd): Centralize the setting of the prefix of a command, when
3701 command is defined after its full chain of prefix commands.
3702 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3703 (add_setshow_cmd_full): Likewise.
3704 (update_prefix_field_of_prefixed_commands): New function.
3705 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3706 update_prefix_field_of_prefixed_commands.
3707 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3708 addresses of remote_set_cmdlist and remote_show_cmdlist given
3709 as argument, not the address of an argument.
3710 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3711 * gdb/remote.c (_initialize_remote): Likewise.
3712
0605465f
PW
37132020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3714
3715 * cli/cli-cmds.c (alias_command): Check for an existing alias
3716 using lookup_cmd_composition, as valid_command_p is too strict
3717 and forbids aliases that are the prefix of an existing alias
3718 or command.
3719 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3720 command is properly recognised as a valid command.
3721
58e6ac70
PW
37222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3723
3724 * unittests/help-doc-selftests.c: Rename to
3725 unittests/command-def-selftests.c
3726 * unittests/command-def-selftests.c (help_doc_tests): Update some
3727 comments.
3728 (command_structure_tests, traverse_command_structure): New namespace
3729 and function.
3730 (command_structure_invariants_tests): New function.
3731 (_initialize_command_def_selftests) Renamed from
3732 _initialize_help_doc_selftests, register command_structure_invariants
3733 selftest.
3734
a7b9ceb8
PW
37352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3736
3737 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3738 an alias of 'show'.
3739
b2188a06
JB
37402020-05-15 Joel Brobecker <brobecker@adacore.com>
3741
3742 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3743 ada_is_fixed_point_type. Update all callers.
3744 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3745 all callers.
3746 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3747 Update all callers.
3748 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3749 print_fixed_point_type. Update all callers.
3750 * ada-valprint.c (ada_value_print_num): Replace call to
3751 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3752
a51951c2
KB
37532020-05-14 Kevin Buettner <kevinb@redhat.com>
3754
3755 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3756 processors.
3757 (cpu_supports_bts): Add CV_AMD case.
3758
29d6859f
LM
37592020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3760 Simon Marchi <simon.marchi@efficios.com>
3761
3762 * infrun.c (stop_all_threads): Collect multiple wait events at
3763 each pass.
3764
78134374
SM
37652020-05-14 Simon Marchi <simon.marchi@efficios.com>
3766
3767 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3768 type::code instead.
3769
67607e24
SM
37702020-05-14 Simon Marchi <simon.marchi@efficios.com>
3771
3772 * gdbtypes.h (struct type) <code, set_code>: New methods.
3773 (TYPE_CODE): Use type::code. Change all call sites used to set
3774 the code to use type::set_code instead.
3775
a05575d3
TBA
37762020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3777 Tom de Vries <tdevries@suse.de>
3778 Pedro Alves <palves@redhat.com>
3779
3780 PR threads/25478
3781 * infrun.c (stop_all_threads): Do NOT ignore
3782 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3783 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3784 received.
3785 (handle_no_resumed): Remove code handling a live inferior with no
3786 threads.
3787 * remote.c (has_single_non_exited_thread): New.
3788 (remote_target::update_thread_list): Do not delete a thread if is
3789 the last thread of the process.
3790 * thread.c (thread_select): Call delete_exited_threads instead of
3791 prune_threads.
3792
6ad82919
TBA
37932020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3794
3795 * infrun.c (stop_all_threads): Enable/disable thread events of all
3796 targets. Move a debug message denoting the end of the function
3797 into the SCOPED_EXIT block.
3798
d890404b
TBA
37992020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3800
3801 * process-stratum-target.h: Include <set>.
3802 (all_non_exited_process_targets, switch_to_target_no_thread): New
3803 function declarations.
3804 * process-stratum-target.c (all_non_exited_process_targets)
3805 (switch_to_target_no_thread): New function implementations.
3806
293b3ebc
TBA
38072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3808
3809 * infrun.c (handle_inferior_event): Extract out a piece of code
3810 into...
3811 (mark_non_executing_threads): ...this new function.
3812
7ca9b62a
TBA
38132020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3814
3815 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3816 use.
3817
fc75c28b
TBA
38182020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3819
3820 * regcache.c (regcache_read_pc_protected): New function
3821 implementation that returns 0 if the PC cannot read via
3822 'regcache_read_pc'.
3823 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3824 instead of 'regcache_read_pc'.
3825 (keep_going_pass_signal): Ditto.
3826
a89febbd
TT
38272020-05-13 Tom Tromey <tromey@adacore.com>
3828
3829 * ada-lang.c (align_value): Remove.
3830 (ada_template_to_fixed_record_type_1): Use align_up.
3831
f7e23710
TBA
38322020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3833
3834 * async-event.c: Update the copyright year.
3835 * async-event.h: Update the copyright year.
3836
02ff80c2
SM
38372020-05-12 Simon Marchi <simon.marchi@efficios.com>
3838
3839 * objfiles.h (is_addr_in_objfile,
3840 shared_objfile_contains_address_p): Return bool.
3841 * objfile.c (is_addr_in_objfile,
3842 shared_objfile_contains_address_p): Return bool.
3843
4fd6c7e8
TT
38442020-05-11 Tom Tromey <tromey@adacore.com>
3845
3846 * cli/cli-cmds.c (info_command): Restore.
3847 (_initialize_cli_cmds): Use add_prefix_command for "info".
3848 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3849
5eb68a39
TT
38502020-05-11 Tom Tromey <tromey@adacore.com>
3851
3852 * ada-lang.c (ada_value_primitive_field): Now public.
3853 * ada-lang.h (ada_value_primitive_field): Declare.
3854 * ada-valprint.c (print_field_values): Use
3855 ada_value_primitive_field for wrapper fields.
3856
7666722f
TV
38572020-05-11 Tom de Vries <tdevries@suse.de>
3858
3859 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3860 MODULE_DOMAIN.
3861
3ee6bb11
TV
38622020-05-11 Tom de Vries <tdevries@suse.de>
3863
3864 PR symtab/25941
3865 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3866 with length 0, if not gdb-produced.
3867 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3868
43434996
TV
38692020-05-09 Tom de Vries <tdevries@suse.de>
3870
3871 PR gdb/25955
3872 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3873 calculation.
3874
2f78cffc
TT
38752020-05-09 Tom Tromey <tom@tromey.com>
3876
3877 * top.c (server_command): Now bool.
3878 * top.h (server_command): Now bool.
3879
4f7bc5ed
TT
38802020-05-08 Tom Tromey <tromey@adacore.com>
3881
3882 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3883 already being processed.
3884
8be4b118
TT
38852020-05-08 Tom Tromey <tom@tromey.com>
3886
3887 * printcmd.c (struct display) <next>: Remove.
3888 <display>: New constructor.
3889 <exp_string>: Now a std::string.
3890 <enabled_p>: Now a bool.
3891 (display_number): Move definition earlier.
3892 (displays): Rename from display_chain. Now a std::vector.
3893 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3894 (display_command): Update.
3895 (do_one_display, disable_display)
3896 (enable_disable_display_command, do_enable_disable_display):
3897 Update.
3898 (free_display): Remove.
3899 (clear_displays): Rewrite.
3900 (delete_display): Update.
3901 (map_display_numbers): Use function_view. Remove "data"
3902 parameter. Update.
3903 (do_delete_display): Remove.
3904 (undisplay_command): Update.
3905 (do_one_display, do_displays, disable_display)
3906 (info_display_command): Update.
3907 (do_enable_disable_display): Remove.
3908 (enable_disable_display_command)
3909 (clear_dangling_display_expressions): Update.
3910
94c93c35
TT
39112020-05-08 Tom Tromey <tom@tromey.com>
3912
3913 * symtab.c (set_symbol_cache_size)
3914 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3915 (maintenance_print_symbol_cache_statistics): Update.
3916 * symmisc.c (print_symbol_bcache_statistics)
3917 (print_objfile_statistics, maintenance_print_objfiles)
3918 (maintenance_info_symtabs, maintenance_check_symtabs)
3919 (maintenance_expand_symtabs, maintenance_info_line_tables):
3920 Update.
3921 * symfile-debug.c (set_debug_symfile): Update.
3922 * source.c (forget_cached_source_info): Update.
3923 * python/python.c (gdbpy_progspaces): Update.
3924 * psymtab.c (maintenance_info_psymtabs): Update.
3925 * probe.c (parse_probes): Update.
3926 * linespec.c (iterate_over_all_matching_symtabs)
3927 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3928 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3929 * exec.c (exec_target::close): Update.
3930 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3931 * breakpoint.c (print_one_breakpoint_location)
3932 (create_longjmp_master_breakpoint)
3933 (create_std_terminate_master_breakpoint): Update.
3934 * progspace.c (program_spaces): Now a std::vector.
3935 (maybe_new_address_space): Update.
3936 (add_program_space): Remove.
3937 (program_space::program_space): Update.
3938 (remove_program_space): Update.
3939 (number_of_program_spaces): Remove.
3940 (print_program_space, update_address_spaces): Update.
3941 * progspace.h (program_spaces): Change type.
3942 (ALL_PSPACES): Remove.
3943 (number_of_program_spaces): Don't declare.
3944 (struct program_space) <next>: Remove.
3945
a1fd1ac9
TT
39462020-05-08 Tom Tromey <tom@tromey.com>
3947
3948 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3949 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3950 (enable_break): Update.
3951 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3952 (frv_fdpic_find_canonical_descriptor): Update.
3953 (frv_fetch_objfile_link_map): Update.
3954 * progspace.c (program_space::free_all_objfiles): Update.
3955 (program_space::solibs): New method.
3956 * progspace.h (struct program_space) <solibs>: New method.
3957 * solist.h (master_so_list): Don't declare.
3958 (ALL_SO_LIBS): Remove.
3959 * solib.h (so_list_head): Remove.
3960 (update_solib_list): Update comment.
3961 * solib.c (master_so_list): Remove.
3962 (solib_used, update_solib_list, solib_add)
3963 (info_sharedlibrary_command, clear_solib)
3964 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3965
38eae084
TT
39662020-05-08 Tom Tromey <tom@tromey.com>
3967
3968 * extension.c (extension_languages): Now a std::array.
3969 (ALL_EXTENSION_LANGUAGES): Remove.
3970 (get_ext_lang_defn, get_ext_lang_of_file)
3971 (eval_ext_lang_from_control_command): Update.
3972 (finish_ext_lang_initialization)
3973 (auto_load_ext_lang_scripts_for_objfile)
3974 (ext_lang_type_printers::ext_lang_type_printers)
3975 (apply_ext_lang_type_printers)
3976 (ext_lang_type_printers::~ext_lang_type_printers)
3977 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3978 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3979 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3980 (get_matching_xmethod_workers, ext_lang_colorize)
3981 (ext_lang_before_prompt): Update.
3982 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3983
596dc4ad
TT
39842020-05-08 Tom Tromey <tom@tromey.com>
3985
3986 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3987 overload.
3988 <swap_string, m_string>: Remove.
3989 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3990 Update.
3991 * stabsread.c (define_symbol, read_type): Update.
3992 * linespec.c (find_linespec_symbols): Update.
3993 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3994 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3995 * dbxread.c (read_dbx_symtab): Update.
3996 * cp-support.h (cp_canonicalize_string_full)
3997 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3998 Return unique_xmalloc_ptr.
3999 * cp-support.c (inspect_type): Update.
4000 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4001 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4002 Likewise.
4003 * c-typeprint.c (print_name_maybe_canonical): Update.
4004 * break-catch-throw.c (check_status_exception_catchpoint):
4005 Update.
4006
bf4cb9be
TV
40072020-05-08 Tom de Vries <tdevries@suse.de>
4008
4009 * infrun.c (follow_fork): Copy current_line and current_symtab to
4010 child thread.
4011
a1b68f28
SM
40122020-05-07 Simon Marchi <simon.marchi@efficios.com>
4013
4014 * async-event.c (struct async_signal_handler, struct
4015 async_event_handler): Reformat, remove typedef.
4016
98d48915
SM
40172020-05-07 Simon Marchi <simon.marchi@efficios.com>
4018
4019 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4020 access thistype->main_type->dyn_prop_list directly.
4021
7aa91313
SM
40222020-05-07 Simon Marchi <simon.marchi@efficios.com>
4023
4024 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4025 (remove_dyn_prop): Remove. Update all users to use
4026 type::remove_dyn_prop.
4027 * gdbtypes.c (remove_dyn_prop): Rename to...
4028 (type::remove_dyn_prop): ... this.
4029
5c54719c
SM
40302020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4031
4032 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4033 (add_dyn_prop): Remove. Update all users to use
4034 type::add_dyn_prop.
4035 * gdbtypes.c (add_dyn_prop): Rename to...
4036 (type::add_dyn_prop): ... this.
4037
24e99c6c
SM
40382020-05-07 Simon Marchi <simon.marchi@efficios.com>
4039
4040 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4041 (get_dyn_prop): Remove. Update all users to use
4042 type::dyn_prop.
4043 * gdbtypes.c (get_dyn_prop): Rename to...
4044 (type::dyn_prop): ... this.
4045
0d4bf016
SM
40462020-05-06 Simon Marchi <simon.marchi@efficios.com>
4047
4048 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4049
ac4a4f1c
SM
40502020-05-06 Simon Marchi <simon.marchi@efficios.com>
4051
4052 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4053 instruction, skip it if it's there.
4054
a3bbacc1
SM
40552020-05-05 Simon Marchi <simon.marchi@efficios.com>
4056
4057 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4058
c3236f84
SM
40592020-05-04 Simon Marchi <simon.marchi@efficios.com>
4060
4061 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4062 * gdbtypes.c (recursive_dump_type): Remove use of
4063 TYPE_INCOMPLETE.
4064
3b6acaee
TT
40652020-05-03 Tom Tromey <tom@tromey.com>
4066
4067 * breakpoint.c (catch_command, tcatch_command): Remove.
4068 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4069 add_show_prefix_cmd.
4070 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4071 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4072 Remove.
4073 (add_internal_problem_command): Use add_basic_prefix_cmd,
4074 add_show_prefix_cmd.
4075 * mips-tdep.c (set_mipsfpu_command): Remove.
4076 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4077 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4078 (_initialize_index_cache): Use add_basic_prefix_cmd.
4079 * memattr.c (dummy_cmd): Remove.
4080 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4081 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4082 (_initialize_tui_win): Use add_basic_prefix_cmd,
4083 add_show_prefix_cmd.
4084 * cli/cli-logging.c (set_logging_command): Remove.
4085 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4086 add_show_prefix_cmd.
4087 (show_logging_command): Remove.
4088 * target.c (target_command): Remove.
4089 (add_target): Use add_basic_prefix_cmd.
4090
a51119cd
HD
40912020-05-02 Hannes Domani <ssbssa@yahoo.de>
4092
4093 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4094
652fc23a 40952020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4096
652fc23a
PW
4097 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4098 info_command.
4099
117539e6
KR
41002020-04-30 Kamil Rytarowski <n54@gmx.com>
4101
4102 * nbsd-nat.c (nbsd_enable_proc_events)
4103 (nbsd_nat_target::post_startup_inferior): Add.
4104 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4105 (nbsd_nat_target::update_thread_list): Rewrite.
4106 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4107 "PTRACE_LWP_CREATE".
4108 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4109
102e38eb 41102020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4111
102e38eb
PW
4112 * stack.c (_initialize_stack): Remove duplicated creation
4113 of "frame" command and "f" alias.
4114
ee9d1e5f
HD
41152020-04-30 Hannes Domani <ssbssa@yahoo.de>
4116
4117 PR gdb/18706
4118 * gdbtypes.c (check_typedef): Calculate size of array of
4119 stubbed type.
4120
627c7fb8
HD
41212020-04-30 Hannes Domani <ssbssa@yahoo.de>
4122
4123 PR gdb/15559
4124 * i386-tdep.c (i386_push_dummy_call): Call
4125 i386_thiscall_push_dummy_call.
4126 (i386_thiscall_push_dummy_call): New function.
4127 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4128 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4129 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4130
ffc2844e
SM
41312020-04-29 Simon Marchi <simon.marchi@efficios.com>
4132
4133 * gdbarch.sh (do_read): Add shellcheck disable directive for
4134 warning SC2162.
4135
1207375d
SM
41362020-04-29 Simon Marchi <simon.marchi@efficios.com>
4137
4138 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4139 "referenced but not assigned" warning.
4140
9fdb2916
SM
41412020-04-29 Simon Marchi <simon.marchi@efficios.com>
4142
4143 * gdbarch.sh: Remove code that sets fallbackdefault.
4144
759cea5e
SM
41452020-04-29 Simon Marchi <simon.marchi@efficios.com>
4146
4147 * gdbarch.sh: Use shell operators && and || instead of
4148 -a and -o.
4149
cb02ab24
SM
41502020-04-29 Simon Marchi <simon.marchi@efficios.com>
4151
4152 * gdbarch.sh: Use $(...) instead of `...`.
4153
a6fc5ffc
SM
41542020-04-29 Simon Marchi <simon.marchi@efficios.com>
4155
4156 * gdbarch.sh: Use double quotes around variables.
4157
8d113d13
SM
41582020-04-29 Simon Marchi <simon.marchi@efficios.com>
4159
4160 * gdbarch.sh: Use %s with printf, instead of variables in the
4161 format string.
4162
ed6acedd
TT
41632020-04-29 Tom Tromey <tromey@adacore.com>
4164
4165 PR ada/25875:
4166 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4167 type fields here.
4168 (read_enumeration_type): Call
4169 update_enumeration_type_from_children later. Update comments.
4170 (process_enumeration_scope): Don't create type fields.
4171
b68b1b58
KR
41722020-04-29 Kamil Rytarowski <n54@gmx.com>
4173
4174 * nbsd-tdep.c: Include "xml-syscall.h".
4175 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4176
f94b2e03
KR
41772020-04-29 Kamil Rytarowski <n54@gmx.com>
4178
4179 * nbsd-nat.c: Include "sys/wait.h".
4180 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4181 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4182 (nbsd_nat_target::remove_exec_catchpoint)
4183 (nbsd_nat_target::set_syscall_catchpoint): Add.
4184 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4185 (nbsd_nat_target::insert_exec_catchpoint)
4186 (nbsd_nat_target::remove_exec_catchpoint)
4187 (nbsd_nat_target::set_syscall_catchpoint): Add.
4188 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4189 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4190 `nbsd_get_syscall_number'.
4191
fc49bc72
TT
41922020-04-29 Tom Tromey <tom@tromey.com>
4193
4194 * stack.c (print_block_frame_labels): Remove.
4195
d642b692
HD
41962020-04-29 Hannes Domani <ssbssa@yahoo.de>
4197
4198 PR gdb/17320
4199 * ada-valprint.c (val_print_packed_array_elements): Move array
4200 end bracket to new line.
4201 (ada_val_print_string): Remove extra spaces before first array
4202 element.
4203 * c-valprint.c (c_value_print_array): Likewise.
4204 * m2-valprint.c (m2_print_array_contents): Likewise.
4205 (m2_value_print_inner): Likewise.
4206 * p-valprint.c (pascal_value_print_inner): Likewise.
4207 * valprint.c (generic_val_print_array): Likewise.
4208 (value_print_array_elements): Move first array element and array
4209 end bracket to new line.
4210
ea90f227
TV
42112020-04-29 Tom de Vries <tdevries@suse.de>
4212
4213 PR symtab/25889
4214 * linespec.c (find_method): Fix ix calculation.
4215
4498ef4f
KR
42162020-04-28 Kamil Rytarowski <n54@gmx.com>
4217
4218 * syscalls/update-netbsd.sh: New file.
4219 * syscalls/netbsd.xml: Regenerate.
4220 * data-directory/Makefile.in: Register `netbsd.xml' in
4221 `SYSCALLS_FILES'.
4222
a55e30b5
SM
42232020-04-28 Simon Marchi <simon.marchi@efficios.com>
4224
4225 * syscalls/update-freebsd.sh: Add double quotes.
4226
2b2fbab8
TT
42272020-04-28 Tom Tromey <tom@tromey.com>
4228
4229 * NEWS: Update.
4230 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4231 (cmdpy_init): Allow class_tui.
4232
a65189c9
TV
42332020-04-28 Mark Williams <mark@myosotissp.com>
4234
4235 PR gdb/24480
4236 * dwarf2read.c: Add missing assingments to list_in_scope when
4237 start_symtab was already called.
4238
1b95cdb7
SM
42392020-04-28 Simon Marchi <simon.marchi@efficios.com>
4240
4241 PR gdb/25881
4242 * dwarf2/read.c (offset_map_type): Use
4243 gdb:hash_enum<sect_offset> as hash function.
4244
15cd93d0
TV
42452020-04-28 Tom de Vries <tdevries@suse.de>
4246
4247 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4248 with DW_AT_signature.
4249
1eb39914
SM
42502020-04-27 Simon Marchi <simon.marchi@efficios.com>
4251
4252 * configure.ac: Remove check for fs_base/gs_base in
4253 user_regs_struct.
4254 * configure: Re-generate.
4255 * config.in: Re-generate.
4256 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4257 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4258 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4259
991a3e2e
LM
42602020-04-27 Luis Machado <luis.machado@linaro.org>
4261
4262 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4263 problematic inline frame unwinding situation.
4264 * frame.c (frame_id_computed_p): New function.
4265 * frame.h (frame_id_computed_p): New prototype.
4266
361ba0e8
TT
42672020-04-26 Tom Tromey <tom@tromey.com>
4268
4269 * command.h (enum command_class) <class_pseudo>: Remove.
4270
bc3609fd
PW
42712020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4272
4273 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4274 and whitespace.
4275
b9771db7
KR
42762020-04-25 Kamil Rytarowski <n54@gmx.com>
4277
ec16513e
SM
4278 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4279 `PT_GET_PROCESS_STATE' block.
b9771db7 4280
7151c1af
TT
42812020-04-24 Tom Tromey <tom@tromey.com>
4282
4283 * symtab.h (symbol_get_demangled_name): Don't declare.
4284 * symtab.c (symbol_get_demangled_name): Remove.
4285 (general_symbol_info::natural_name)
4286 (general_symbol_info::demangled_name): Update.
4287
906bb4c5
TT
42882020-04-24 Tom Tromey <tom@tromey.com>
4289
4290 PR rust/25025:
4291 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4292
bcfe6157
TT
42932020-04-24 Tom Tromey <tom@tromey.com>
4294
4295 PR symtab/12707:
4296 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4297 exists.
4298 (new_symbol): Likewise.
4299 * compile/compile-object-load.c (get_out_value_type): Use
4300 symbol_matches_search_name.
4301
f049a313
TT
43022020-04-24 Tom Tromey <tom@tromey.com>
4303
4304 * dwarf2/read.c (add_partial_symbol): Do not call
4305 compute_and_set_names.
4306
76e288d1
TT
43072020-04-24 Tom Tromey <tom@tromey.com>
4308
4309 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4310 overload.
4311
2467f4f6
TT
43122020-04-24 Tom Tromey <tom@tromey.com>
4313
4314 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4315 (add_psymbol_to_list): New overload. Make old overload call new
4316 one.
4317 * psympriv.h (add_psymbol_to_list): New overload.
4318
e61108c9
TT
43192020-04-24 Tom Tromey <tom@tromey.com>
4320
4321 * dwarf2/read.c (partial_die_info::read) <case
4322 DW_AT_linkage_name>: Use value_as_string.
4323 (dwarf2_string_attr): Use value_as_string.
4324 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4325 method.
4326 * dwarf2/attribute.c (attribute::value_as_string): New method.
4327
8c87a452
TT
43282020-04-24 Tom Tromey <tom@tromey.com>
4329
4330 * symtab.c (general_symbol_info::natural_name)
4331 (general_symbol_info::demangled_name): Check for language_rust.
4332
787de330
TT
43332020-04-24 Tom Tromey <tom@tromey.com>
4334
4335 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4336 (dwarf2_physname): ... from here.
4337 (partial_die_info::read): Add Rust "{" hack.
4338
ff985671
TT
43392020-04-24 Tom Tromey <tom@tromey.com>
4340
4341 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4342 method.
4343 (symbol_set_demangled_name): Don't declare.
4344 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4345 symbol_set_demangled_name.
4346 (general_symbol_info::set_language)
4347 (general_symbol_info::compute_and_set_names): Update.
4348 * minsyms.c (minimal_symbol_reader::install): Update.
4349 * dwarf2/read.c (new_symbol): Update.
4350
1acda803
TT
43512020-04-24 Tom Tromey <tromey@adacore.com>
4352
4353 PR python/23662:
4354 * python/py-type.c (convert_field): Handle
4355 FIELD_LOC_KIND_DWARF_BLOCK.
4356 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4357 (typy_get_dynamic): Nw function.
4358 (type_object_getset): Add "dynamic".
4359 * NEWS: Add entry.
4360
d656f129
TT
43612020-04-24 Tom Tromey <tromey@adacore.com>
4362
4363 * ada-typeprint.c (print_choices, print_variant_part)
4364 (print_record_field_types_dynamic): New functions.
4365 (print_record_field_types): Use print_record_field_types_dynamic.
4366
7d79de9a
TT
43672020-04-24 Tom Tromey <tromey@adacore.com>
4368
4369 * dwarf2/read.c (handle_data_member_location): New overload.
4370 (dwarf2_add_field): Use it.
4371 (decode_locdesc): Add "computed" parameter. Update comment.
4372 * gdbtypes.c (is_dynamic_type_internal): Also look for
4373 FIELD_LOC_KIND_DWARF_BLOCK.
4374 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4375 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4376 virtual base classes.
4377 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4378 FIELD_LOC_KIND_DWARF_BLOCK.
4379
f8e89861
TT
43802020-04-24 Tom Tromey <tromey@adacore.com>
4381
4382 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4383 * gdbtypes.c (is_dynamic_type_internal): Check
4384 TYPE_HAS_DYNAMIC_LENGTH.
4385 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4386 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4387 New macros.
4388 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4389 constant.
4390
9c6a1327
TT
43912020-04-24 Tom Tromey <tromey@adacore.com>
4392
4393 * dwarf2/read.c (struct variant_field): Rewrite.
4394 (struct variant_part_builder): New.
4395 (struct nextfield): Remove "variant" field. Add "offset".
4396 (struct field_info): Add "current_variant_part" and
4397 "variant_parts".
4398 (alloc_discriminant_info): Remove.
4399 (alloc_rust_variant): New function.
4400 (quirk_rust_enum): Update.
4401 (dwarf2_add_field): Set "offset" member. Don't handle
4402 DW_TAG_variant_part.
4403 (offset_map_type): New typedef.
4404 (convert_variant_range, create_one_variant)
4405 (create_one_variant_part, create_variant_parts)
4406 (add_variant_property): New functions.
4407 (dwarf2_attach_fields_to_type): Call add_variant_property.
4408 (read_structure_type): Don't handle DW_TAG_variant_part.
4409 (handle_variant_part, handle_variant): New functions.
4410 (handle_struct_member_die): Use them.
4411 (process_structure_scope): Don't handle variant parts.
4412 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4413 (struct discriminant_info): Remove.
4414 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4415 (struct main_type) <flag_discriminated_union>: Remove.
4416 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4417 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4418 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4419 Update.
4420 * valops.c (value_union_variant): Remove.
4421 * value.h (value_union_variant): Don't declare.
4422
b249d2c2
TT
44232020-04-24 Tom Tromey <tromey@adacore.com>
4424
4425 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4426 (ada_value_primitive_packed_val): Update.
4427 * ada-valprint.c (ada_value_print_1): Update.
4428 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4429 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4430 just an address. Use evaluate_for_locexpr_baton.
4431 (dwarf2_evaluate_property): Update.
4432 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4433 array_view.
4434 * findvar.c (default_read_var_value): Update.
4435 * gdbtypes.c (compute_variant_fields_inner)
4436 (resolve_dynamic_type_internal): Update.
4437 (resolve_dynamic_type): Change type of valaddr parameter.
4438 * gdbtypes.h (resolve_dynamic_type): Update.
4439 * valarith.c (value_subscripted_rvalue): Update.
4440 * value.c (value_from_contents_and_address): Update.
4441
61122aa9
TT
44422020-04-24 Tom Tromey <tromey@adacore.com>
4443
4444 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4445 "push_initial_value" parameter.
4446 (dwarf2_evaluate_property): Likewise.
4447 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4448
ef83a141
TT
44492020-04-24 Tom Tromey <tromey@adacore.com>
4450
4451 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4452 (variant::matches, compute_variant_fields_recurse)
4453 (compute_variant_fields_inner, compute_variant_fields): New
4454 functions.
4455 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4456 Use resolved_type after type is made.
4457 (operator==): Add new cases.
4458 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4459 (struct discriminant_range, struct variant, struct variant_part):
4460 New.
4461 (union dynamic_prop_data) <variant_parts, original_type>: New
4462 members.
4463 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4464 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4465 constants.
4466 * value.c (unpack_bits_as_long): Now public.
4467 * value.h (unpack_bits_as_long): Declare.
4468
675127ec
TT
44692020-04-24 Tom Tromey <tromey@adacore.com>
4470
4471 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4472 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4473
9852ceef
HD
44742020-04-24 Hannes Domani <ssbssa@yahoo.de>
4475
4476 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4477
7632c6ce
KR
44782020-04-24 Kamil Rytarowski <n54@gmx.com>
4479
4480 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4481 (remove_fork_catchpoint, post_startup_inferior)
4482 (post_attach): Move...
4483 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4484 (remove_fork_catchpoint, post_startup_inferior)
4485 (post_attach): ...here.
4486 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4487 (remove_fork_catchpoint, post_startup_inferior)
4488 (post_attach): Move...
4489 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4490 (remove_fork_catchpoint, post_startup_inferior)
4491 (post_attach): ...here.
4492
7be2bb4f
TT
44932020-04-24 Tom Tromey <tromey@adacore.com>
4494
4495 * nat/windows-nat.h (struct windows_thread_info)
4496 <pc_adjusted>: New member.
4497 * windows-nat.c (windows_fetch_one_register): Check
4498 pc_adjusted.
4499 (windows_nat_target::get_windows_debug_event)
4500 (windows_nat_target::wait): Set pc_adjusted.
4501
f80cb3b4
TV
45022020-04-24 Tom de Vries <tdevries@suse.de>
4503
4504 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4505 Run gdb-add-index inside temp dir.
4506
29514b87
TT
45072020-04-23 Tom Tromey <tromey@adacore.com>
4508
4509 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4510 in loop.
4511
5939967b
LM
45122020-04-23 Luis Machado <luis.machado@linaro.org>
4513
4514 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4515 get_frame_register instead of gdbarch_unwind_pc.
4516
70bc38f5
TV
45172020-04-23 Tom de Vries <tdevries@suse.de>
4518
4519 * symtab.c (lookup_global_symbol): Prefer def over decl.
4520
de82891c
TV
45212020-04-23 Tom de Vries <tdevries@suse.de>
4522
4523 PR symtab/25807
4524 * block.c (best_symbol, better_symbol): Promote to external.
4525 * block.h (best_symbol, better_symbol): Declare.
4526 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4527 decl.
4528
ecc6c606
TT
45292020-04-23 Tom Tromey <tromey@adacore.com>
4530
4531 PR ada/25837:
4532 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4533 "const char *", not a "const std::string &".
4534 <name_and_matcher::operator==>: Update.
4535 * unittests/lookup_name_info-selftests.c: Change type of
4536 "result".
4537
740480b8
TT
45382020-04-23 Tom Tromey <tom@tromey.com>
4539
4540 * inferior.h (iterate_over_inferiors): Don't declare.
4541 * inferior.c (iterate_over_inferiors): Remove.
4542 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4543 Remove.
4544 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4545 use iterate_over_inferiors.
4546 (darwin_resume_inferior_it)
4547 (struct resume_inferior_threads_param)
4548 (darwin_resume_inferior_threads_it): Remove.
4549 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4550
ae3ab1f0
TV
45512020-04-23 Tom de Vries <tdevries@suse.de>
4552
4553 * blockframe.c (find_pc_partial_function): Use
4554 find_pc_sect_compunit_symtab rather than
4555 objfile->sf->qf->find_pc_sect_compunit_symtab.
4556
317d2668
TV
45572020-04-22 Tom de Vries <tdevries@suse.de>
4558
4559 PR symtab/25764
4560 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4561 in psymtabs.
4562
eea9e357
TV
45632020-04-22 Tom de Vries <tdevries@suse.de>
4564
4565 PR symtab/25801
4566 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4567 symtabs.
4568
3d5afab3
TV
45692020-04-22 Tom de Vries <tdevries@suse.de>
4570
4571 PR symtab/25700
4572 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4573 CU if already created.
4574
d43b7a2d
TBA
45752020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4576
4577 * infrun.c (displaced_step_fixup): Switch to the event_thread
4578 before calling displaced_step_restore, not after.
4579
d89edf9b
MM
45802020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4581
4582 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4583 its inferior is not recorded by us.
4584 (record_btrace_target_open): Replace call to
4585 all_non_exited_threads () with call to current_inferior
4586 ()->non_exited_threads ().
4587 (record_btrace_target::stop_recording): Likewise.
4588 (record_btrace_target::close): Likewise.
4589 (record_btrace_target::wait): Likewise.
4590 (record_btrace_target::record_stop_replaying): Likewise.
4591
5897fd49
MM
45922020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4593
4594 * btrace.c (btrace_enable): Throw an error on double enables and
4595 when enabling recording fails.
4596 (btrace_disable): Throw an error if the thread is not recorded.
4597
1a476b6d
MM
45982020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4599
4600 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4601 request if we do not have a thread_info.
4602
4778a5f8
TV
46032020-04-21 Tom de Vries <tdevries@suse.de>
4604
4605 PR gdb/25471
4606 * thread.c
4607 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4608 exception in get_frame_id.
4609
0fa7617d
TT
46102020-04-20 Tom Tromey <tromey@adacore.com>
4611
4612 * python/python.c (struct gdbpy_event): Mark move constructor as
4613 noexcept.
4614 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4615 constructor as noexcept.
4616 * completer.h (struct completion_result): Mark move constructor as
4617 noexcept.
4618 * completer.c (completion_result::completion_result): Use
4619 initialization style. Don't call reset_match_list.
4620
ad23bda0
MS
46212020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4622
4623 * MAINTAINERS (Write After Approval): Add myself.
4624
45e1f031
TT
46252020-04-18 Tom Tromey <tom@tromey.com>
4626
4627 * windows-tdep.c (init_w32_command_list)
4628 (w32_prefix_command_valid): Restore.
4629 (_initialize_windows_tdep): Call init_w32_command_list.
4630
08feed99
TT
46312020-04-18 Tom Tromey <tom@tromey.com>
4632
4633 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4634 * value.c (value_fn_field): Update.
4635 * valops.c (find_function_in_inferior)
4636 (value_allocate_space_in_inferior): Update.
4637 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4638 Update.
4639 * tui/tui-source.c (tui_source_window::set_contents): Update.
4640 * symtab.c (lookup_global_or_static_symbol)
4641 (find_function_start_sal_1, skip_prologue_sal)
4642 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4643 * symmisc.c (dump_msymbols, dump_symtab_1)
4644 (maintenance_print_one_line_table): Update.
4645 * symfile.c (init_entry_point_info, section_is_mapped)
4646 (list_overlays_command, simple_read_overlay_table)
4647 (simple_overlay_update_1): Update.
4648 * stap-probe.c (handle_stap_probe): Update.
4649 * stabsread.c (dbx_init_float_type, define_symbol)
4650 (read_one_struct_field, read_enum_type, read_range_type): Update.
4651 * source.c (info_line_command): Update.
4652 * python/python.c (gdbpy_source_objfile_script)
4653 (gdbpy_execute_objfile_script): Update.
4654 * python/py-type.c (save_objfile_types): Update.
4655 * python/py-objfile.c (py_free_objfile): Update.
4656 * python/py-inferior.c (python_new_objfile): Update.
4657 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4658 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4659 (maintenance_check_psymtabs): Update.
4660 * printcmd.c (info_address_command): Update.
4661 * objfiles.h (struct objfile) <arch>: New method, from
4662 get_objfile_arch.
4663 (get_objfile_arch): Don't declare.
4664 * objfiles.c (get_objfile_arch): Remove.
4665 (filter_overlapping_sections): Update.
4666 * minsyms.c (msymbol_is_function): Update.
4667 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4668 (output_nondebug_symbol): Update.
4669 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4670 (mdebug_expand_psymtab): Update.
4671 * machoread.c (macho_add_oso_symfile): Update.
4672 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4673 Update.
4674 * linux-fork.c (checkpoint_command): Update.
4675 * linespec.c (convert_linespec_to_sals): Update.
4676 * jit.c (finalize_symtab): Update.
4677 * infrun.c (insert_exception_resume_from_probe): Update.
4678 * ia64-tdep.c (ia64_find_unwind_table): Update.
4679 * hppa-tdep.c (internalize_unwinds): Update.
4680 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4681 Update.
4682 * gcore.c (call_target_sbrk): Update.
4683 * elfread.c (record_minimal_symbol, elf_symtab_read)
4684 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4685 (elf_gnu_ifunc_resolve_by_got): Update.
4686 * dwarf2/read.c (create_addrmap_from_index)
4687 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4688 (read_debug_names_from_section)
4689 (process_psymtab_comp_unit_reader, add_partial_symbol)
4690 (add_partial_subprogram, process_full_comp_unit)
4691 (read_file_scope, read_func_scope, read_lexical_block_scope)
4692 (read_call_site_scope, dwarf2_ranges_read)
4693 (dwarf2_record_block_ranges, dwarf2_add_field)
4694 (mark_common_block_symbol_computed, read_tag_pointer_type)
4695 (read_tag_string_type, dwarf2_init_float_type)
4696 (dwarf2_init_complex_target_type, read_base_type)
4697 (partial_die_info::read, partial_die_info::read)
4698 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4699 (dwarf2_fetch_die_loc_sect_off): Update.
4700 * dwarf2/loc.c (dwarf2_find_location_expression)
4701 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4702 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4703 (dwarf2_loc_desc_get_symbol_read_needs)
4704 (locexpr_describe_location_piece, locexpr_describe_location_1)
4705 (loclist_describe_location): Update.
4706 * dwarf2/index-write.c (write_debug_names): Update.
4707 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4708 * dtrace-probe.c (dtrace_process_dof): Update.
4709 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4710 (process_one_symbol): Update.
4711 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4712 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4713 (coff_read_enum_type): Update.
4714 * cli/cli-cmds.c (edit_command, list_command): Update.
4715 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4716 * breakpoint.c (create_overlay_event_breakpoint)
4717 (create_longjmp_master_breakpoint)
4718 (create_std_terminate_master_breakpoint)
4719 (create_exception_master_breakpoint, get_sal_arch): Update.
4720 * block.c (block_gdbarch): Update.
4721 * annotate.c (annotate_source_line): Update.
4722
0743fc83
TT
47232020-04-17 Tom Tromey <tromey@adacore.com>
4724
4725 * auto-load.c (show_auto_load_cmd): Remove.
4726 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4727 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4728 (maintenance_print_arc_command): Remove.
4729 * tui/tui-win.c (tui_command): Remove.
4730 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4731 * tui/tui-layout.c (tui_layout_command): Remove.
4732 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4733 * python/python.c (user_set_python, user_show_python): Remove.
4734 (_initialize_python): Use add_basic_prefix_cmd,
4735 add_show_prefix_cmd.
4736 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4737 (install_gdb_commands): Use add_basic_prefix_cmd,
4738 add_show_prefix_cmd.
4739 (info_guile_command): Remove.
4740 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4741 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4742 add_show_prefix_cmd.
4743 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4744 Remove do_set and do_show parameters.
4745 * cli/cli-style.c (set_style, show_style): Remove.
4746 (_initialize_cli_style): Use add_basic_prefix_cmd,
4747 add_show_prefix_cmd.
4748 (cli_style_option::add_setshow_commands): Remove do_set and
4749 do_show parameters.
4750 (cli_style_option::add_setshow_commands): Use
4751 add_basic_prefix_cmd, add_show_prefix_cmd.
4752 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4753 (set_style_name): Remove.
4754 * cli/cli-dump.c (dump_command, append_command): Remove.
4755 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4756 (tekhex_dump_command, binary_dump_command)
4757 (binary_append_command): Remove.
4758 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4759 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4760 (init_w32_command_list): Remove; move into ...
4761 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4762 * valprint.c (set_print, show_print, set_print_raw)
4763 (show_print_raw): Remove.
4764 (_initialize_valprint): Use add_basic_prefix_cmd,
4765 add_show_prefix_cmd.
4766 * typeprint.c (set_print_type, show_print_type): Remove.
4767 (_initialize_typeprint): Use add_basic_prefix_cmd,
4768 add_show_prefix_cmd.
4769 * record.c (set_record_command, show_record_command): Remove.
4770 (_initialize_record): Use add_basic_prefix_cmd,
4771 add_show_prefix_cmd.
4772 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4773 add_show_prefix_cmd.
4774 (info_command, show_command, set_debug, show_debug): Remove.
4775 * top.h (set_history, show_history): Don't declare.
4776 * top.c (set_history, show_history): Remove.
4777 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4778 (unset_tdesc_cmd): Remove.
4779 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4780 add_show_prefix_cmd.
4781 * symtab.c (info_module_command): Remove.
4782 (_initialize_symtab): Use add_basic_prefix_cmd.
4783 * symfile.c (overlay_command): Remove.
4784 (_initialize_symfile): Use add_basic_prefix_cmd.
4785 * sparc64-tdep.c (info_adi_command): Remove.
4786 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4787 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4788 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4789 add_show_prefix_cmd.
4790 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4791 (_initialize_serial): Use add_basic_prefix_cmd,
4792 add_show_prefix_cmd.
4793 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4794 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4795 add_show_prefix_cmd.
4796 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4797 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4798 add_show_prefix_cmd.
4799 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4800 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4801 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4802 add_show_prefix_cmd.
4803 * remote.c (remote_command, set_remote_cmd): Remove.
4804 (_initialize_remote): Use add_basic_prefix_cmd.
4805 * record-full.c (set_record_full_command)
4806 (show_record_full_command): Remove.
4807 (_initialize_record_full): Use add_basic_prefix_cmd,
4808 add_show_prefix_cmd.
4809 * record-btrace.c (cmd_set_record_btrace)
4810 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4811 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4812 (cmd_show_record_btrace_pt): Remove.
4813 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4814 add_show_prefix_cmd.
4815 * ravenscar-thread.c (set_ravenscar_command)
4816 (show_ravenscar_command): Remove.
4817 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4818 add_show_prefix_cmd.
4819 * mips-tdep.c (show_mips_command, set_mips_command)
4820 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4821 add_show_prefix_cmd.
4822 * maint.c (maintenance_command, maintenance_info_command)
4823 (maintenance_check_command, maintenance_print_command)
4824 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4825 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4826 add_show_prefix_cmd.
4827 (show_per_command_cmd): Remove.
4828 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4829 Remove.
4830 (maintenance_show_test_settings_cmd): Remove.
4831 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4832 add_show_prefix_cmd.
4833 * maint-test-options.c (maintenance_test_options_command):
4834 Remove.
4835 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4836 * macrocmd.c (macro_command): Remove
4837 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4838 * language.c (set_check, show_check): Remove.
4839 (_initialize_language): Use add_basic_prefix_cmd,
4840 add_show_prefix_cmd.
4841 * infcmd.c (unset_command): Remove.
4842 (_initialize_infcmd): Use add_basic_prefix_cmd.
4843 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4844 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4845 add_show_prefix_cmd.
4846 * go32-nat.c (go32_info_dos_command): Remove.
4847 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4848 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4849 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4850 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4851 (_initialize_frame): Use add_basic_prefix_cmd,
4852 add_show_prefix_cmd.
4853 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4854 (_initialize_dcache): Use add_basic_prefix_cmd,
4855 add_show_prefix_cmd.
4856 * cp-support.c (maint_cplus_command): Remove.
4857 (_initialize_cp_support): Use add_basic_prefix_cmd.
4858 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4859 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4860 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4861 add_basic_prefix_cmd, add_show_prefix_cmd.
4862 * breakpoint.c (save_command): Remove.
4863 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4864 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4865 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4866 add_show_prefix_cmd.
4867 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4868 (set_ada_command, show_ada_command): Remove.
4869 (_initialize_ada_language): Use add_basic_prefix_cmd,
4870 add_show_prefix_cmd.
4871 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4872
3557f442
KR
48732020-04-16 Kamil Rytarowski <n54@gmx.com>
4874
4875 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4876 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4877
16197208
SM
48782020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4879
4880 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4881 warning messages.
4882
00ac85d3
SM
48832020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4884
4885 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4886 import table is not at beginning of .idata section.
4887
381ce63f
PA
48882020-04-16 Pedro Alves <palves@redhat.com>
4889
4890 * inferior.c (delete_inferior): Use delete operator directly
4891 instead of delete_program_space.
4892 * progspace.c (add_program_space): New, factored out from
4893 program_space::program_space.
4894 (remove_program_space): New, factored out from
4895 delete_program_space.
4896 (program_space::program_space): Remove intro comment. Rewrite.
4897 (program_space::~program_space): Remove intro comment. Call
4898 remove_program_space.
4899 (delete_program_space): Delete.
4900 * progspace.h (program_space::program_space): Make explicit. Move
4901 intro comment here, adjusted.
4902 (program_space::~program_space): Move intro comment here,
4903 adjusted.
4904 (delete_program_space): Remove.
4905
a010605f
TT
49062020-04-16 Tom Tromey <tromey@adacore.com>
4907
4908 * windows-nat.c (windows_nat::handle_access_violation): New
4909 function.
4910 * nat/windows-nat.h (handle_access_violation): Declare.
4911 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4912 windows-nat.c. Call handle_access_violation.
4913
efba5c23
TV
49142020-04-16 Tom de Vries <tdevries@suse.de>
4915
4916 PR symtab/25791
4917 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4918 CUs without psymtab.
4919
97ed802d
KB
49202020-04-16 Kevin Buettner <kevinb@redhat.com>
4921
4922 * python/python.c (do_start_initialization): Don't call
4923 PyEval_InitThreads for Python 3.9 and beyond.
4924
c7d64809
KR
49252020-04-15 Kamil Rytarowski <n54@gmx.com>
4926
4927 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4928 thread functions.
4929 (obsd_nat_target::wait): Likewise.
4930
ce127a96
TT
49312020-04-15 Tom Tromey <tromey@adacore.com>
4932
4933 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4934 (DEBUG_EXCEPT): Use debug_printf.
4935
99f1bc6a
AB
49362020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4937
4938 * completer.c (class completion_tracker::completion_hash_entry)
4939 <hash_name>: New member function.
4940 (completion_tracker::discard_completions): New callback to hash a
4941 completion_hash_entry, pass this to htab_create_alloc.
4942
a0e9b532
JT
49432016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4944
4945 * windows-nat.c (windows_make_so): Warn rather than stopping with
4946 an error if realpath() fails.
4947
06ca5dd4
KR
49482020-04-14 Kamil Rytarowski <n54@gmx.com>
4949
4950 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4951 (nbsd_nat_target::info_proc): Add do_status.
4952
194d088f
TV
49532020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4954 Tom de Vries <tdevries@suse.de>
4955
4956 PR symtab/25718
4957 * psympriv.h (struct partial_symtab::read_symtab)
4958 (struct partial_symtab::expand_psymtab)
4959 (struct partial_symtab::read_dependencies): Update comments.
4960 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4961 read_symtab for includer.
4962 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4963 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4964 (struct dwarf2_include_psymtab::m_readin): Remove.
4965 (struct dwarf2_include_psymtab::includer): New member function.
4966 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4967
c1a66c06
TV
49682020-04-14 Tom de Vries <tdevries@suse.de>
4969
4970 PR symtab/25720
4971 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4972 with NULL symbol_matcher and lookup_name.
4973 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4974 and lookup_name.
4975 * dwarf2/read.c (dw2_expand_symtabs_matching)
4976 (dw2_debug_names_expand_symtabs_matching): Same.
4977 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4978 Make lookup_name a pointer. Update comment.
4979 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4980 lookup_name being a pointer.
4981 * symfile.c (expand_symtabs_matching): Same.
4982 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4983 * linespec.c (iterate_over_all_matching_symtabs): Same.
4984
400b5eca
TT
49852020-04-13 Tom Tromey <tom@tromey.com>
4986
4987 * run-on-main-thread.c: Update include.
4988 * unittests/main-thread-selftests.c: Update include.
4989 * tui/tui-win.c: Update include.
4990 * tui/tui-io.c: Update include.
4991 * tui/tui-interp.c: Update include.
4992 * tui/tui-hooks.c: Update include.
4993 * top.h: Update include.
4994 * top.c: Update include.
4995 * ser-base.c: Update include.
4996 * remote.c: Update include.
4997 * remote-notif.c: Update include.
4998 * remote-fileio.c: Update include.
4999 * record-full.c: Update include.
5000 * record-btrace.c: Update include.
5001 * python/python.c: Update include.
5002 * posix-hdep.c: Update include.
5003 * mingw-hdep.c: Update include.
5004 * mi/mi-main.c: Update include.
5005 * mi/mi-interp.c: Update include.
5006 * main.c: Update include.
5007 * linux-nat.c: Update include.
5008 * interps.c: Update include.
5009 * infrun.c: Update include.
5010 * inf-loop.c: Update include.
5011 * event-top.c: Update include.
5012 * event-loop.c: Move to ../gdbsupport/.
5013 * event-loop.h: Move to ../gdbsupport/.
5014 * async-event.h: Update include.
5015 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5016
93b54c8e
TT
50172020-04-13 Tom Tromey <tom@tromey.com>
5018
5019 * tui/tui-win.c: Include async-event.h.
5020 * remote.c: Include async-event.h.
5021 * remote-notif.c: Include async-event.h.
5022 * record-full.c: Include async-event.h.
5023 * record-btrace.c: Include async-event.h.
5024 * infrun.c: Include async-event.h.
5025 * event-top.c: Include async-event.h.
5026 * event-loop.h: Move some declarations to async-event.h.
5027 * event-loop.c: Don't include ser-event.h or top.h. Move some
5028 code to async-event.c.
5029 * async-event.h: New file.
5030 * async-event.c: New file.
5031 * Makefile.in (COMMON_SFILES): Add async-event.c.
5032 (HFILES_NO_SRCDIR): Add async-event.h.
5033
c1cd3163
TT
50342020-04-13 Tom Tromey <tom@tromey.com>
5035
5036 * utils.c (flush_streams): New function.
5037 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5038
29f2bf4f
TT
50392020-04-13 Tom Tromey <tom@tromey.com>
5040
5041 * event-loop.c (handle_file_event): Use warning, not
5042 printf_unfiltered.
5043
98029d02
TT
50442020-04-13 Tom Tromey <tom@tromey.com>
5045
5046 * event-loop.c: Include <chrono>.
5047
06cc9596
TT
50482020-04-13 Tom Tromey <tom@tromey.com>
5049
5050 * gdb_select.h: Move to ../gdbsupport/.
5051 * event-loop.c: Update include path.
5052 * top.c: Update include path.
5053 * ser-base.c: Update include path.
5054 * ui-file.c: Update include path.
5055 * ser-tcp.c: Update include path.
5056 * guile/scm-ports.c: Update include path.
5057 * posix-hdep.c: Update include path.
5058 * ser-unix.c: Update include path.
5059 * gdb_usleep.c: Update include path.
5060 * mingw-hdep.c: Update include path.
5061 * inflow.c: Update include path.
5062 * infrun.c: Update include path.
5063 * event-top.c: Update include path.
5064
8ae8e197
TT
50652020-04-13 Tom Tromey <tom@tromey.com>
5066
5067 * configure: Rebuild.
5068 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5069
58cf28e8
TT
50702020-04-13 Tom Tromey <tom@tromey.com>
5071
5072 * event-loop.h (start_event_loop): Don't declare.
5073 * event-loop.c (start_event_loop): Move...
5074 * main.c (start_event_loop): ...here. Now static.
5075
b7f999ae
SDJ
50762020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5077
5078 * MAINTAINERS: Update my email address.
5079
1085dfd4
KR
50802020-04-12 Kamil Rytarowski <n54@gmx.com>
5081
5082 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5083 IP_ALL.
5084
49d1d1f5
KR
50852020-04-12 Kamil Rytarowski <n54@gmx.com>
5086
5087 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5088 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5089
b4848d2a
KR
50902020-04-12 Kamil Rytarowski <n54@gmx.com>
5091
5092 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5093 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5094
51c133d5
KR
50952020-04-12 Kamil Rytarowski <n54@gmx.com>
5096
5097 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5098
54b8cbd0
KR
50992020-04-11 Kamil Rytarowski <n54@gmx.com>
5100
5101 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5102 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5103 (nbsd_nat_target::info_proc): New functions.
5104 * nbsd-nat.c (kinfo_get_vmmap): New function.
5105 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5106 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5107 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5108 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5109 functions.
5110 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5111 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5112 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5113 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5114 (KINFO_VME_FLAG_GROWS_DOWN): New.
5115
cf83625d
AS
51162020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5117
5118 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5119 bit shift.
5120
0c4311ab
TT
51212020-04-10 Tom Tromey <tromey@adacore.com>
5122
5123 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5124
3e65b3e9
TT
51252020-04-10 Tom Tromey <tromey@adacore.com>
5126
5127 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5128 separate debug files.
5129
13302e95
HD
51302020-04-10 Hannes Domani <ssbssa@yahoo.de>
5131
5132 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5133 Move to...
5134 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5135 ... here.
5136 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5137 Check for STATUS_WX86_BREAKPOINT.
5138 (windows_nat_target::wait): Same.
5139
bdfc1e8a
TV
51402020-04-10 Tom de Vries <tdevries@suse.de>
5141
5142 PR cli/25808
5143 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5144
f4460aec
SM
51452020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5146
5147 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5148 (Write After Approval): Remove Tom de Vries.
5149
a25198bb
BE
51502020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5151
5152 revert partially:
5153 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5154
aac66a4c
SM
5155 * buildsym.c (record_line): Fix undefined behavior and preserve
5156 lines at eof.
a25198bb 5157
206c98a6
KR
51582020-04-09 Kamil Rytarowski <n54@gmx.com>
5159
5160 * auxv.h (svr4_auxv_parse): New.
5161 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5162 and generic_auxv_parse.
5163 (svr4_auxv_parse): Add.
5164 * obsd-tdep.c: Include "auxv.h".
5165 (obsd_auxv_parse): Remove.
5166 (obsd_init_abi): Remove comment.
5167 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5168 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5169 * nbsd-tdep.c: Include "auxv.h".
5170 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5171
71fbdbaf
TT
51722020-04-08 Tom Tromey <tromey@adacore.com>
5173
5174 * nat/windows-nat.h (last_wait_event): Don't declare.
5175 (wait_for_debug_event): Update comment.
5176 * nat/windows-nat.c (last_wait_event): Now static.
5177
2c1d95e8
TT
51782020-04-08 Tom Tromey <tromey@adacore.com>
5179
5180 * windows-nat.c (wait_for_debug_event): Move to
5181 nat/windows-nat.c.
5182 * nat/windows-nat.h (wait_for_debug_event): Declare.
5183 * nat/windows-nat.c (wait_for_debug_event): Move from
5184 windows-nat.c. No longer static.
5185
d2977bc4
TT
51862020-04-08 Tom Tromey <tromey@adacore.com>
5187
5188 * windows-nat.c (get_windows_debug_event): Use
5189 fetch_pending_stop.
5190 * nat/windows-nat.h (fetch_pending_stop): Declare.
5191 * nat/windows-nat.c (fetch_pending_stop): New function.
5192
e758e19c
TT
51932020-04-08 Tom Tromey <tromey@adacore.com>
5194
5195 * windows-nat.c (windows_continue): Use matching_pending_stop and
5196 continue_last_debug_event.
5197 * nat/windows-nat.h (matching_pending_stop)
5198 (continue_last_debug_event): Declare.
5199 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5200 (matching_pending_stop, continue_last_debug_event): New
5201 functions.
5202
8d30e395
TT
52032020-04-08 Tom Tromey <tromey@adacore.com>
5204
5205 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5206 (handle_exception_result): Move to nat/windows-nat.h.
5207 (DEBUG_EXCEPTION_SIMPLE): Remove.
5208 (windows_nat::handle_ms_vc_exception): New function.
5209 (handle_exception): Move to nat/windows-nat.c.
5210 (get_windows_debug_event): Update.
5211 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5212 nat/windows-nat.c.
5213 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5214 (handle_exception_result): Move from windows-nat.c.
5215 (handle_exception): Declare.
5216 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5217 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5218 windows-nat.c.
5219
29de418d
TT
52202020-04-08 Tom Tromey <tromey@adacore.com>
5221
5222 * windows-nat.c (exception_count, event_count): Remove.
5223 (handle_exception, get_windows_debug_event)
5224 (do_initial_windows_stuff): Update.
5225
a816ba18
TT
52262020-04-08 Tom Tromey <tromey@adacore.com>
5227
5228 * windows-nat.c (windows_nat::handle_load_dll)
5229 (windows_nat::handle_unload_dll): Rename. No longer static.
5230 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5231 Declare.
5232
a00caa12
TT
52332020-04-08 Tom Tromey <tromey@adacore.com>
5234
5235 * complaints.h (stop_whining): Declare at top-level.
5236 (complaint): Don't declare stop_whining.
5237
d41b524f
TT
52382020-04-08 Tom Tromey <tromey@adacore.com>
5239
5240 * windows-nat.c (windows_nat::handle_output_debug_string):
5241 Rename. No longer static.
5242 * nat/windows-nat.h (handle_output_debug_string): Declare.
5243
3c76026d
TT
52442020-04-08 Tom Tromey <tromey@adacore.com>
5245
5246 * windows-nat.c (current_process_handle, current_process_id)
5247 (main_thread_id, last_sig, current_event, last_wait_event)
5248 (current_windows_thread, desired_stop_thread_id, pending_stops)
5249 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5250 (display_selectors, fake_create_process)
5251 (get_windows_debug_event): Update.
5252 * nat/windows-nat.h (current_process_handle, current_process_id)
5253 (main_thread_id, last_sig, current_event, last_wait_event)
5254 (current_windows_thread, desired_stop_thread_id, pending_stops)
5255 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5256 * nat/windows-nat.c (current_process_handle, current_process_id)
5257 (main_thread_id, last_sig, current_event, last_wait_event)
5258 (current_windows_thread, desired_stop_thread_id, pending_stops)
5259 (siginfo_er): New globals. Move from windows-nat.c.
5260
9d8679cc
TT
52612020-04-08 Tom Tromey <tromey@adacore.com>
5262
5263 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5264 (handle_load_dll): Update.
5265 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5266
28688adf
TT
52672020-04-08 Tom Tromey <tromey@adacore.com>
5268
5269 * windows-nat.c (enum thread_disposition_type): Move to
5270 nat/windows-nat.h.
5271 (windows_nat::thread_rec): Rename from thread_rec. No longer
5272 static.
5273 (windows_add_thread, windows_nat_target::fetch_registers)
5274 (windows_nat_target::store_registers, handle_exception)
5275 (windows_nat_target::resume, get_windows_debug_event)
5276 (windows_nat_target::get_tib_address)
5277 (windows_nat_target::thread_name)
5278 (windows_nat_target::thread_alive): Update.
5279 * nat/windows-nat.h (enum thread_disposition_type): Move from
5280 windows-nat.c.
5281 (thread_rec): Declare.
5282
4834dad0
TT
52832020-04-08 Tom Tromey <tromey@adacore.com>
5284
5285 * windows-nat.c: Add "using namespace".
5286 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5287 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5288
65bafd5b
TT
52892020-04-08 Tom Tromey <tromey@adacore.com>
5290
5291 * nat/windows-nat.h (struct windows_thread_info): Declare
5292 destructor.
5293 * nat/windows-nat.c (~windows_thread_info): New.
5294
0a4afda3
TT
52952020-04-08 Tom Tromey <tromey@adacore.com>
5296
5297 PR gdb/22992
5298 * windows-nat.c (current_event): Update comment.
5299 (last_wait_event, desired_stop_thread_id): New globals.
5300 (struct pending_stop): New.
5301 (pending_stops): New global.
5302 (windows_nat_target) <stopped_by_sw_breakpoint>
5303 <supports_stopped_by_sw_breakpoint>: New methods.
5304 (windows_fetch_one_register): Add assertions. Adjust PC.
5305 (windows_continue): Handle pending stops. Suspend other threads
5306 when stepping. Use last_wait_event
5307 (wait_for_debug_event): New function.
5308 (get_windows_debug_event): Use wait_for_debug_event. Handle
5309 pending stops. Queue spurious stops.
5310 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5311 (windows_nat_target::kill): Use wait_for_debug_event.
5312 * nat/windows-nat.h (struct windows_thread_info)
5313 <stopped_at_software_breakpoint>: New field.
5314 * nat/windows-nat.c (windows_thread_info::resume): Clear
5315 stopped_at_software_breakpoint.
5316
8e61ebec
TT
53172020-04-08 Tom Tromey <tromey@adacore.com>
5318
5319 * windows-nat.c (enum thread_disposition_type): New.
5320 (thread_rec): Replace "get_context" parameter with "disposition";
5321 change type.
5322 (windows_add_thread, windows_nat_target::fetch_registers)
5323 (windows_nat_target::store_registers, handle_exception)
5324 (windows_nat_target::resume, get_windows_debug_event)
5325 (windows_nat_target::get_tib_address)
5326 (windows_nat_target::thread_name)
5327 (windows_nat_target::thread_alive): Update.
5328
98a03287
TT
53292020-04-08 Tom Tromey <tromey@adacore.com>
5330
5331 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5332 (windows_continue): Use windows_continue::resume.
5333 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5334 resume>: Declare new methods.
5335 * nat/windows-nat.c: New file.
5336 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5337
7c7411bc
TT
53382020-04-08 Tom Tromey <tromey@adacore.com>
5339
5340 * windows-nat.c (windows_add_thread, windows_delete_thread)
5341 (windows_nat_target::fetch_registers)
5342 (windows_nat_target::store_registers, fake_create_process)
5343 (windows_nat_target::resume, windows_nat_target::resume)
5344 (get_windows_debug_event, windows_nat_target::wait)
5345 (windows_nat_target::pid_to_str)
5346 (windows_nat_target::get_tib_address)
5347 (windows_nat_target::get_ada_task_ptid)
5348 (windows_nat_target::thread_name)
5349 (windows_nat_target::thread_alive): Use lwp, not tid.
5350
2950fdf7
TT
53512020-04-08 Tom Tromey <tromey@adacore.com>
5352
5353 * windows-nat.c (handle_exception)
5354 (windows_nat_target::thread_name): Update.
5355 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5356 <name>: Now unique_xmalloc_ptr.
5357
62fe396b
TT
53582020-04-08 Tom Tromey <tromey@adacore.com>
5359
5360 * windows-nat.c (thread_rec)
5361 (windows_nat_target::fetch_registers): Update.
5362 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5363 Update comment.
5364 <debug_registers_changed, reload_context>: Now bool.
5365
e9534bd2
TT
53662020-04-08 Tom Tromey <tromey@adacore.com>
5367
5368 * windows-nat.c (windows_add_thread): Use new.
5369 (windows_init_thread_list, windows_delete_thread): Use delete.
5370 (get_windows_debug_event): Update.
5371 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5372 destructor, and initializers.
5373
ae1f8880
TT
53742020-04-08 Tom Tromey <tromey@adacore.com>
5375
5376 * windows-nat.c (struct windows_thread_info): Remove.
5377 * nat/windows-nat.h: New file.
5378
55a1e039
TT
53792020-04-08 Tom Tromey <tromey@adacore.com>
5380
5381 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5382 (thread_rec, windows_add_thread, windows_delete_thread)
5383 (windows_continue): Update.
5384
93366324
TT
53852020-04-08 Tom Tromey <tromey@adacore.com>
5386
5387 * windows-nat.c (struct windows_thread_info): Remove typedef.
5388 (thread_head): Remove.
5389 (thread_list): New global.
5390 (thread_rec, windows_add_thread, windows_init_thread_list)
5391 (windows_delete_thread, windows_continue): Update.
5392
0f2265e2
SM
53932020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5394
5395 * windows-tdep.h (windows_init_abi): Add comment.
5396 (cygwin_init_abi): New declaration.
5397 * windows-tdep.c: Split signal enumeration in two, one for
5398 Windows and one for Cygwin.
5399 (windows_gdb_signal_to_target): Only deal with signal of the
5400 Windows OS ABI.
5401 (cygwin_gdb_signal_to_target): New function.
5402 (windows_init_abi): Rename to windows_init_abi_common, don't set
5403 gdb_signal_to_target gdbarch method. Add new new function with
5404 this name.
5405 (cygwin_init_abi): New function.
5406 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5407 comment. Don't call windows_init_abi.
5408 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5409 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5410 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5411 i386_windows_init_abi_common, don't call windows_init_abi. Add
5412 a new function of this name.
5413 (i386_cygwin_init_abi): New function.
5414 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5415 OS ABI Cygwin.
5416
3810f182
SM
54172020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5418
5419 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5420 parameter.c.
5421 (dwarf2_read_gdb_index): Update.
5422
063f8e80
KR
54232020-04-07 Kamil Rytarowski <n54@gmx.com>
5424
5425 * nbsd-tdep.c: Include "objfiles.h".
5426 (nbsd_skip_solib_resolver): New.
5427 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5428
85a9510c 54292020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5430
5431 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5432 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5433 with DW_LLE_base_addressx are being emitted in DWARFv5.
5434 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5435 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5436 unsigned integer.
5437
9fc3eaae 54382020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5439
5440 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5441 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5442 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5443 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5444 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5445 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5446 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5447
5448
41144253 54492020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5450
5451 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5452 (read_loclist_index): New function definition.
5453 (lookup_loclist_base): New function definition.
5454 (read_loclist_header): New function definition.
5455 (dwarf2_cu): Add loclist_base and loclist_header field.
5456 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5457 (read_full_die_1): Read the value of DW_AT_loclists_base.
5458 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5459 (read_attribute_value): Handle DW_FORM_loclistx.
5460 (skip_one_die): Handle DW_FORM_loclistx.
5461 (loclist_header): New structure declaration.
5462 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5463
9f4e76a4
SM
54642020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5465
5466 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5467 constructor. Remove `addr` parameter from other constructor and
5468 add `per_cu` parameter.
5469 * dwarf2/read.c (create_partial_symtab): Update.
5470
25c11aca
TV
54712020-04-07 Tom de Vries <tdevries@suse.de>
5472
5473 PR symtab/25796
5474 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5475 (partial_die_info::fixup): Inherit has_const_value.
5476
5707e24b
TV
54772020-04-07 Tom de Vries <tdevries@suse.de>
5478
5479 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5480 symbols without address.
5481
05f00e22
KR
54822020-04-06 Kamil Rytarowski <n54@gmx.com>
5483
5484 * nbsd-nat.h (struct thread_info): Add forward declaration.
5485 (nbsd_nat_target::thread_alive): Add.
5486 (nbsd_nat_target::thread_name): Likewise.
5487 (nbsd_nat_target::update_thread_list): Likewise.
5488 (update_thread_list::post_attach): Likewise.
5489 (post_attach::pid_to_str): Likewise.
5490 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5491 (nbsd_thread_lister): Add.
5492 (nbsd_nat_target::thread_alive): Likewise.
5493 (nbsd_nat_target::thread_name): Likewise.
5494 (nbsd_add_threads): Likewise.
5495 (update_thread_list::post_attach): Likewise.
5496 (nbsd_nat_target::update_thread_list): Likewise.
5497 (post_attach::pid_to_str): Likewise.
5498
6ee448cc
TT
54992020-04-06 Tom Tromey <tromey@adacore.com>
5500
5501 * ada-valprint.c (print_variant_part): Extract the variant field.
5502 (print_field_values): Use the field as the outer value when
5503 recursing.
5504
dea34e8c
TT
55052020-04-06 Tom Tromey <tromey@adacore.com>
5506
5507 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5508 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5509 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5510 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5511 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5512
93689ce9
TT
55132020-04-06 Tom Tromey <tromey@adacore.com>
5514
5515 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5516 TYPE_CODE_ERROR.
5517
79743962
KR
55182020-04-06 Kamil Rytarowski <n54@gmx.com>
5519
5520 * nbsd-tdep.c: Include "gdbarch.h".
5521 Define enum with NetBSD signal numbers.
5522 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5523 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5524 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5525 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5526 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5527 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5528 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5529 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5530 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5531 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5532 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5533 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5534
9e7c9a03
HD
55352020-04-03 Hannes Domani <ssbssa@yahoo.de>
5536
5537 PR gdb/25325
5538 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5539
d9e49b61
TT
55402020-04-03 Tom Tromey <tromey@adacore.com>
5541
5542 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5543 Read constant block.
5544
e0fc5c3f
SM
55452020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5546
5547 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5548 (gdb_bfd_get_full_section_contents): New declaration.
5549 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5550 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5551 gdb_bfd_get_full_section_contents.
5552
e2ff18a0
SM
55532020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5554
5555 * exec.c (build_section_table): Replace internal_error with
5556 gdb_assert.
5557 (section_table_xfer_memory_partial): Likewise.
5558 * mdebugread.c (parse_partial_symbols): Likewise.
5559 * psymtab.c (lookup_partial_symbol): Likewise.
5560 * utils.c (wrap_here): Likewise.
5561
0830d301
TT
55622020-04-02 Tom Tromey <tromey@adacore.com>
5563
5564 * f-lang.c (build_fortran_types): Use arch_type to initialize
5565 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5566
e7da7f8f
TT
55672020-04-02 Tom Tromey <tromey@adacore.com>
5568
5569 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5570 of attributes.
5571
c90d28ac
AB
55722020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5573 Bernd Edlinger <bernd.edlinger@hotmail.de>
5574 Tom Tromey <tromey@adacore.com>
5575
5576 * buildsym.c (buildsym_compunit::record_line): Remove
5577 deduplication code.
5578
1aa98955
TV
55792020-04-02 Tom de Vries <tdevries@suse.de>
5580
5581 PR ada/24671
5582 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5583
d3214198
TV
55842020-04-02 Tom de Vries <tdevries@suse.de>
5585
5586 * dwarf2/read.c (dwarf2_gdb_index_functions,
5587 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5588 NULL.
5589 * psymtab.c (psym_lookup_global_symbol_language): New function.
5590 (psym_functions): Init psym_lookup_global_symbol_language with
5591 psym_lookup_global_symbol_language.
5592 * symfile-debug.c (debug_sym_quick_functions): Init
5593 lookup_global_symbol_language with NULL.
5594 * symfile.c (set_initial_language): Remove fixme comment.
5595 * symfile.h (struct quick_symbol_functions): Add
5596 lookup_global_symbol_language.
5597 * symtab.c (find_quick_global_symbol_language): New function.
5598 (find_main_name): Use find_quick_global_symbol_language.
5599
2836752f
SM
56002020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5601
5602 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5603
64dc2d4b
BE
56042020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5605
5606 * buildsym.c (record_line): Fix undefined behavior and preserve
5607 lines at eof.
5608
bbe3dc41
BE
56092020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5610
5611 * buildsym.c (record_line): Fix the resizing condition.
5612
6b4a335b
TT
56132020-04-01 Tom Tromey <tom@tromey.com>
5614
5615 * value.h (value_literal_complex): Add comment.
5616 * valops.c (value_literal_complex): Refer to value.h.
5617
3638a098
TT
56182020-04-01 Tom Tromey <tom@tromey.com>
5619
5620 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5621 (scalar_type): New rule, from typebase.
5622 (typebase): Use scalar_type. Recognize complex types.
5623 (field_name): Handle FLOAT_KEYWORD.
5624 (ident_tokens): Add _Complex and __complex__.
5625
c34e8714
TT
56262020-04-01 Tom Tromey <tom@tromey.com>
5627
5628 PR exp/25299:
5629 * valarith.c (promotion_type, complex_binop): New functions.
5630 (scalar_binop): Handle complex numbers. Use promotion_type.
5631 (value_pos, value_neg, value_complement): Handle complex numbers.
5632
fa649bb7
TT
56332020-04-01 Tom Tromey <tom@tromey.com>
5634
5635 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5636 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5637 (parse_number): Handle complex numbers.
5638
981c08ce
TT
56392020-04-01 Tom Tromey <tom@tromey.com>
5640
5641 * c-valprint.c (c_decorations): Change complex suffix to "i".
5642
4c99290d
TT
56432020-04-01 Tom Tromey <tom@tromey.com>
5644
5645 * valprint.c (generic_value_print_complex): Use accessors.
5646 * value.h (value_real_part, value_imaginary_part): Declare.
5647 * valops.c (value_real_part, value_imaginary_part): New
5648 functions.
5649 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5650
5b930b45
TT
56512020-04-01 Tom Tromey <tom@tromey.com>
5652
5653 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5654 (read_range_type): Update.
5655 * mdebugread.c (basic_type): Update.
5656 * go-lang.c (build_go_types): Use init_complex_type.
5657 * gdbtypes.h (struct main_type) <complex_type>: New member.
5658 (init_complex_type): Update.
5659 (arch_complex_type): Don't declare.
5660 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5661 Make name if none given. Use alloc_type_copy. Look for cached
5662 complex type.
5663 (arch_complex_type): Remove.
5664 (gdbtypes_post_init): Use init_complex_type.
5665 * f-lang.c (build_fortran_types): Use init_complex_type.
5666 * dwarf2/read.c (read_base_type): Update.
5667 * d-lang.c (build_d_types): Use init_complex_type.
5668 * ctfread.c (read_base_type): Update.
5669
53cccef1
TBA
56702020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5671
5672 * infrun.c (stop_all_threads): Update assertion, plus when
5673 stopping threads, take into account that we might be trying
5674 to stop an all-stop target.
5675 (stop_waiting): Call 'stop_all_threads' if there exists a
5676 non-stop target.
5677
a0714d30
TBA
56782020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5679
5680 * target.h (exists_non_stop_target): New function declaration.
5681 * target.c (exists_non_stop_target): New function.
5682
60e22c1e
HD
56832020-04-01 Hannes Domani <ssbssa@yahoo.de>
5684
5685 PR gdb/24789
5686 * eval.c (is_integral_or_integral_reference): New function.
5687 (evaluate_subexp_standard): Allow integer references in
5688 pointer arithmetic.
5689
e139a727
TBA
56902020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5691
5692 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5693 check for no ptid in the stop reply when the target is non-stop.
5694
e0802d59
TT
56952020-04-01 Tom Tromey <tromey@adacore.com>
5696
5697 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5698 "name" parameter to rvalue reference. Initialize m_name_holder.
5699 <lookup_name_info>: New overloads.
5700 <name>: Return gdb::string_view.
5701 <c_str>: New method.
5702 <make_ignore_params>: Update.
5703 <search_name_hash>: Update.
5704 <language_lookup_name>: Return const char *.
5705 <m_name>: Change type.
5706 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5707 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5708 (lookup_name_info::match_any): Update.
5709 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5710 Update.
5711 * minsyms.c (linkage_name_str): Update.
5712 * language.c (default_symbol_name_matcher): Update.
5713 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5714 Update.
5715 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5716 (ada_lookup_name_info::ada_lookup_name_info): Update.
5717 (literal_symbol_name_matcher): Update.
5718
8c072cb6
TT
57192020-04-01 Tom Tromey <tromey@adacore.com>
5720
5721 * psymtab.c (psymtab_search_name): Remove function.
5722 (psym_lookup_symbol): Create search name and lookup name here.
5723 (lookup_partial_symbol): Remove "name" parameter; add
5724 lookup_name.
5725 (psym_expand_symtabs_for_function): Update.
5726
6f29a534
TT
57272020-03-31 Joel Jones <joelkevinjones@gmail.com>
5728
5729 PR tui/25597:
5730 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5731
af62665e
TT
57322020-03-31 Tom Tromey <tromey@adacore.com>
5733
5734 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5735 memcpy.
5736
d1a89da5
NC
57372020-03-30 Nelson Chu <nelson.chu@sifive.com>
5738
5739 * features/riscv/32bit-csr.xml: Regenerated.
5740 * features/riscv/64bit-csr.xml: Regenerated.
5741
d8af9068
TT
57422020-03-30 Tom Tromey <tromey@adacore.com>
5743
5744 * ada-valprint.c (print_variant_part): Update.
5745 * ada-lang.h (ada_which_variant_applies): Update.
5746 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5747 outer_valaddr parameters; replace with "outer" value parameter.
5748 (to_fixed_variant_branch_type): Update.
5749
227c0bf4
PFC
57502020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5751
5752 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5753 <list>. Remove inclusion of observable.h.
5754 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5755 (struct arch_lwp_info): New struct.
5756 (class ppc_linux_dreg_interface): New class.
5757 (struct ppc_linux_process_info): New struct.
5758 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5759 <low_new_clone, low_forget_process, low_prepare_to_resume>
5760 <copy_thread_dreg_state, mark_thread_stale>
5761 <mark_debug_registers_changed, register_hw_breakpoint>
5762 <clear_hw_breakpoint, register_wp, clear_wp>
5763 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5764 <num_memory_accesses, get_trigger_type>
5765 <create_watchpoint_request, hwdebug_point_cmp>
5766 <init_arch_lwp_info, get_arch_lwp_info>
5767 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5768 methods.
5769 <struct ptid_hash>: New inner struct.
5770 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5771 members.
5772 (saved_dabr_value, hwdebug_info, max_slots_number)
5773 (struct hw_break_tuple, struct thread_points, ppc_threads)
5774 (have_ptrace_hwdebug_interface)
5775 (hwdebug_find_thread_points_by_tid)
5776 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5777 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5778 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5779 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5780 use m_dreg_interface.
5781 (hwdebug_point_cmp): Change to...
5782 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5783 reference arguments instead of pointers.
5784 (ppc_linux_nat_target::ranged_break_num_registers): Use
5785 m_dreg_interface.
5786 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5787 m_dreg_interface. Call register_hw_breakpoint.
5788 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5789 m_dreg_interface. Call clear_hw_breakpoint.
5790 (get_trigger_type): Change to...
5791 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5792 comment.
5793 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5794 use m_dreg_interface. Call register_hw_breakpoint.
5795 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5796 use m_dreg_interface. Call clear_hw_breakpoint.
5797 (can_use_watchpoint_cond_accel): Change to...
5798 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5799 method. Update comment, use m_dreg_interface and
5800 m_process_info.
5801 (calculate_dvc): Change to...
5802 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5803 m_dreg_interface.
5804 (num_memory_accesses): Change to...
5805 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5806 (check_condition): Change to...
5807 (ppc_linux_nat_target::check_condition): ...this method.
5808 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5809 comment, use m_dreg_interface.
5810 (create_watchpoint_request): Change to...
5811 (ppc_linux_nat_target::create_watchpoint_request): ...this
5812 method. Use m_dreg_interface.
5813 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5814 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5815 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5816 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5817 (ppc_linux_nat_target::low_forget_process)
5818 (ppc_linux_nat_target::low_new_fork)
5819 (ppc_linux_nat_target::low_new_clone)
5820 (ppc_linux_nat_target::low_delete_thread)
5821 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5822 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5823 only call mark_thread_stale.
5824 (ppc_linux_thread_exit): Remove.
5825 (ppc_linux_nat_target::stopped_data_address): Change to...
5826 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5827 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5828 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5829 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5830 comment. Call low_stopped_data_address.
5831 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5832 m_dreg_interface.
5833 (ppc_linux_nat_target::masked_watch_num_registers): Use
5834 m_dreg_interface.
5835 (ppc_linux_nat_target::copy_thread_dreg_state)
5836 (ppc_linux_nat_target::mark_thread_stale)
5837 (ppc_linux_nat_target::mark_debug_registers_changed)
5838 (ppc_linux_nat_target::register_hw_breakpoint)
5839 (ppc_linux_nat_target::clear_hw_breakpoint)
5840 (ppc_linux_nat_target::register_wp)
5841 (ppc_linux_nat_target::clear_wp)
5842 (ppc_linux_nat_target::init_arch_lwp_info)
5843 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5844 (_initialize_ppc_linux_nat): Remove observer callback.
5845
4db10d8f
PFC
58462020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5847
5848 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5849 (ppc_linux_nat_target::auxv_parse)
5850 (ppc_linux_nat_target::read_description)
5851 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5852 Move up.
5853
1310c1b0
PFC
58542020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5855
5856 * linux-nat.h (low_new_clone): New method.
5857 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5858
69b037c3
SM
58592020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5860
5861 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5862 (dbx_expand_psymtab): ... this.
5863 (start_psymtab): Update.
5864 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5865 (mdebug_expand_psymtab): ... this.
5866 (parse_partial_symbols): Update.
5867 (new_psymtab): Update.
5868 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5869 (xcoff_expand_psymtab): ... this.
5870 (xcoff_start_psymtab): Update.
5871
48993951
SM
58722020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5873
5874 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5875 <expand_dependencies>: ... this.
5876 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5877 (partial_symtab::expand_dependencies): ... this.
5878 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5879 Update.
5880 (dwarf2_psymtab::expand_psymtab): Update.
5881 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5882 * mdebugread.c (psymtab_to_symtab_1): Update.
5883 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5884
3ad83046
SM
58852020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5886
5887 * psympriv.h (discard_psymtab): Remove.
5888 * dbxread.c (dbx_end_psymtab): Update.
5889 * xcoffread.c (xcoff_end_psymtab): Update.
5890
4d1b9ab6
TT
58912020-03-28 Tom Tromey <tom@tromey.com>
5892
5893 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5894 comment.
5895
f1749218
TT
58962020-03-28 Tom Tromey <tom@tromey.com>
5897
5898 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5899
ebea7626
HD
59002020-03-27 Hannes Domani <ssbssa@yahoo.de>
5901
5902 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5903
a879b4d5
JB
59042020-03-26 John Baldwin <jhb@FreeBSD.org>
5905
5906 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5907
0826b30a
TT
59082020-03-26 Tom Tromey <tom@tromey.com>
5909
5910 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5911 (mark_common_block_symbol_computed, read_tag_string_type)
5912 (attr_to_dynamic_prop, read_subrange_type): Update.
5913 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5914 to be methods on struct attribute.
5915 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5916 (read_call_site_scope, partial_die_info::read)
5917 (partial_die_info::read, lookup_die_type, follow_die_ref):
5918 Update.
5919 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5920 from dwarf2_get_ref_die_offset.
5921 (attribute::constant_value): New method, from
5922 dwarf2_get_attr_constant_value.
5923 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5924 Declare method.
5925 <constant_value>: New method.
5926
2b2558bf
TT
59272020-03-26 Tom Tromey <tom@tromey.com>
5928
5929 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5930 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5931 (dwarf_type_encoding_name): Move to stringify.c.
5932 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5933 * dwarf2/stringify.c: New file.
5934 * dwarf2/stringify.h: New file.
5935
eeb64781
TT
59362020-03-26 Tom Tromey <tom@tromey.com>
5937
5938 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5939 Rewrite.
5940
a39fdb41
TT
59412020-03-26 Tom Tromey <tom@tromey.com>
5942
5943 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5944 methods.
5945 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5946 (lookup_ranges_base): Likewise.
5947 (read_cutu_die_from_dwo, read_full_die_1): Update.
5948
436c571c
TT
59492020-03-26 Tom Tromey <tom@tromey.com>
5950
5951 * dwarf2/read.c (read_import_statement, read_file_scope)
5952 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5953 (read_lexical_block_scope, read_call_site_scope)
5954 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5955 (handle_struct_member_die, process_structure_scope)
5956 (update_enumeration_type_from_children)
5957 (process_enumeration_scope, read_array_type, read_common_block)
5958 (read_namespace, read_module, read_subroutine_type): Update.
5959 (sibling_die): Remove.
5960
052c8bb8
TT
59612020-03-26 Tom Tromey <tom@tromey.com>
5962
5963 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5964 (build_type_psymtabs_reader, read_structure_type)
5965 (read_enumeration_type, read_full_die_1): Update.
5966 (dwarf2_attr_no_follow): Move to die.h.
5967 * dwarf2/die.h (struct die_info) <attr>: New method.
5968
2b24b6e4
TT
59692020-03-26 Tom Tromey <tom@tromey.com>
5970
5971 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5972 <base_address>: Now an optional.
5973 (dwarf2_find_base_address, dwarf2_rnglists_process)
5974 (dwarf2_ranges_process, fill_in_loclist_baton)
5975 (dwarf2_symbol_mark_computed): Update.
5976
c2d50fd0
TT
59772020-03-26 Tom Tromey <tom@tromey.com>
5978
5979 * dwarf2/read.c (struct die_info): Move to die.h.
5980 * dwarf2/die.h: New file.
5981
0df7ad3a
TT
59822020-03-26 Tom Tromey <tom@tromey.com>
5983
5984 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5985 * dwarf2/read.c
5986 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5987 Move to line-header.c.
5988 (read_checked_initial_length_and_offset, read_formatted_entries):
5989 Likewise.
5990 (dwarf_decode_line_header): Split into two.
5991 * dwarf2/line-header.c
5992 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5993 Move from read.c.
5994 (read_checked_initial_length_and_offset, read_formatted_entries):
5995 Likewise.
5996 (dwarf_decode_line_header): New function, split from read.c.
5997
86c0bb4c
TT
59982020-03-26 Tom Tromey <tom@tromey.com>
5999
6000 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6001 Declare method.
6002 * dwarf2/read.c (read_attribute_value): Update.
6003 (dwarf2_per_objfile::read_line_string): Rename from
6004 read_indirect_line_string.
6005 (read_formatted_entries): Update.
6006
2ef46c2f
TT
60072020-03-26 Tom Tromey <tom@tromey.com>
6008
6009 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6010 variable.
6011
4f9c1eda
TT
60122020-03-26 Tom Tromey <tom@tromey.com>
6013
6014 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6015 const.
6016 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6017 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6018 parameter const.
6019
5a0e026f
TT
60202020-03-26 Tom Tromey <tom@tromey.com>
6021
6022 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6023 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6024 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6025 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6026
8844c11b
TT
60272020-03-26 Tom Tromey <tom@tromey.com>
6028
6029 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6030 file_names_size, file_full_name, file_file_name>: Use const.
6031 <file_name_at, file_names>: Add const overload.
6032 * dwarf2/line-header.c (line_header::file_file_name)
6033 (line_header::file_full_name): Update.
6034
c90ec28a
TT
60352020-03-26 Tom Tromey <tom@tromey.com>
6036
6037 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6038 (macro_start_file, consume_improper_spaces)
6039 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6040 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6041 (dwarf_decode_macros): Move to macro.c.
6042 * dwarf2/macro.c: New file.
6043 * dwarf2/macro.h: New file.
6044 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6045
4f44ae6c
TT
60462020-03-26 Tom Tromey <tom@tromey.com>
6047
6048 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6049 method.
6050 * dwarf2/section.c: New method. From
6051 read_indirect_string_at_offset_from.
6052 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6053 (read_indirect_string_at_offset_from): Move to section.c.
6054 (read_indirect_string_at_offset): Rewrite.
6055 (read_indirect_line_string_at_offset): Remove.
6056 (read_indirect_string, read_indirect_line_string)
6057 (dwarf_decode_macro_bytes): Update.
6058
a0194fa8
TT
60592020-03-26 Tom Tromey <tom@tromey.com>
6060
6061 * dwarf2/section.h (struct dwarf2_section_info)
6062 <overload_complaint>: Declare.
6063 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6064 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6065 Rename from dwarf2_section_buffer_overflow_complaint.
6066 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6067 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6068
3d27bbdb
TT
60692020-03-26 Tom Tromey <tom@tromey.com>
6070
6071 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6072 Declare.
6073 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6074 Move from read.c.
6075 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6076 to section.c.
6077
9eac9650
TT
60782020-03-26 Tom Tromey <tom@tromey.com>
6079
6080 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6081
bf80d710
TT
60822020-03-26 Tom Tromey <tom@tromey.com>
6083
6084 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6085 "builder".
6086 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6087 parameter.
6088 (dwarf_decode_macros): Update.
6089
0314b390
TT
60902020-03-26 Tom Tromey <tom@tromey.com>
6091
6092 * dwarf2/read.c (read_attribute_value): Update.
6093 (read_indirect_string_from_dwz): Move to dwz.c; change into
6094 method.
6095 (dwarf_decode_macro_bytes): Update.
6096 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6097 * dwarf2/dwz.c: New file.
6098 * Makefile.in (COMMON_SFILES): Add dwz.c.
6099
9fda78b6
TT
61002020-03-26 Tom Tromey <tom@tromey.com>
6101
6102 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6103 * dwarf2/read.c: Add include.
6104 * dwarf2/index-write.c: Add include.
6105 * dwarf2/index-cache.c: Add include.
6106 * dwarf2/dwz.h: New file.
6107
33aa3c10
TT
61082020-03-25 Tom Tromey <tom@tromey.com>
6109
6110 * compile/compile-object-load.c (get_out_value_type): Mention
6111 correct symbol name in error message.
6112
d503b685
HD
61132020-03-25 Hannes Domani <ssbssa@yahoo.de>
6114
6115 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6116
7b1eff95
TV
61172020-03-25 Tom de Vries <tdevries@suse.de>
6118
6119 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6120 * symmisc.c (dump_symtab_1): Print user and includes fields.
6121 (maintenance_info_symtabs): Same.
6122
dd895392
AB
61232020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6124
6125 PR gdb/25534
6126 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6127 (riscv_regcache_cooked_write): New function.
6128 (riscv_push_dummy_call): Use new function.
6129 (riscv_return_value): Likewise.
6130
5ab2fbf1
SM
61312020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6132
6133 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6134 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6135 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6136 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6137 * infrun.c (follow_fork): Likewise.
6138 (follow_fork_inferior): Likewise.
6139 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6140 * linux-nat.h (class linux_nat_target): Likewise.
6141 * remote.c (class remote_target) <follow_fork>: Likewise.
6142 (remote_target::follow_fork): Likewise.
6143 * target-delegates.c: Re-generate.
6144 * target.c (default_follow_fork): Likewise.
6145 (target_follow_fork): Likewise.
6146 * target.h (struct target_ops) <follow_fork>: Likewise.
6147 (target_follow_fork): Likewise.
6148
a64fafb5
TV
61492020-03-24 Tom de Vries <tdevries@suse.de>
6150
6151 * psymtab.c (maintenance_info_psymtabs): Print user field.
6152
fe26d3a3
TT
61532020-03-20 Tom Tromey <tromey@adacore.com>
6154
6155 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6156 const.
6157 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6158 const.
6159
c884cc46
SM
61602020-03-20 Simon Marchi <simon.marchi@efficios.com>
6161
6162 * ptrace.m4: Don't check for ptrace declaration.
6163 * config.in: Re-generate.
6164 * configure: Re-generate.
6165 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6166 not defined.
6167
1ff700c2
KR
61682020-03-20 Kamil Rytarowski <n54@gmx.com>
6169
6170 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6171 `PTRACE_TYPE_RET'.
6172 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6173 * sparc-nat.c (gdb_ptrace): Likewise.
6174 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6175
f7d4f0b1
TT
61762020-03-20 Tom Tromey <tromey@adacore.com>
6177
6178 * c-exp.y (lex_one_token): Fix assert.
6179
f67210ff
TT
61802020-03-20 Tom Tromey <tromey@adacore.com>
6181
6182 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6183 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6184 strncpy call.
6185
1773be9e
TT
61862020-03-20 Tom Tromey <tromey@adacore.com>
6187
6188 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6189
70304be9
TT
61902020-03-20 Tom Tromey <tromey@adacore.com>
6191
6192 * ada-valprint.c (print_variant_part): Remove parameters; switch
6193 to value-based API.
6194 (print_field_values): Likewise.
6195 (ada_val_print_struct_union): Likewise.
6196 (ada_value_print_1): Update.
6197
9faa006d
KR
61982020-03-20 Kamil Rytarowski <n54@gmx.com>
6199
6200 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6201 nbsd_nat_target instead of inf_ptrace_target.
6202 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6203 nbsd_nat_target.
6204
4a90f062
KR
62052020-03-20 Kamil Rytarowski <n54@gmx.com>
6206
6207 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6208 it to the ptrace call.
6209 * (store_registers): Likewise.
6210
62112020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6212
6213 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6214 it to the ptrace call.
6215 * (store_registers): Likewise.
6216
2d07da27
LM
62172020-03-19 Luis Machado <luis.machado@linaro.org>
6218
6219 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6220 valid, fetch vg value from ptrace.
6221
f09db380
KR
62222020-03-19 Kamil Rytarowski <n54@gmx.com>
6223 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6224 * inf-ptrace.c: Likewise.
6225 * (gdb_ptrace): Add.
6226 * (inf_ptrace_target::resume): Update.
6227 * (inf_ptrace_target::xfer_partial): Likewise.
6228 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6229 * (inf_ptrace_peek_poke): Update.
6230
fcc7376e
KR
62312020-03-19 Kamil Rytarowski <n54@gmx.com>
6232
6233 * x86-bsd-nat.c (gdb_ptrace): New.
6234 * (x86bsd_dr_set): Add new argument `ptid'.
6235 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6236 x86bsd_dr_set_addr): Update.
6237
cada5fc9
AB
62382020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6239
6240 * remote.c (remote_target::process_stop_reply): Handle events for
6241 all threads differently.
6242
19a2740f
AB
62432020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6244
6245 * completer.c (completion_tracker::remove_completion): Define new
6246 function.
6247 * completer.h (completion_tracker::remove_completion): Declare new
6248 function.
6249 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6250 when adding a C++ function symbol.
6251
724fd9ba
AB
62522020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6253
6254 * completer.c (completion_tracker::completion_hash_entry): Define
6255 new class.
6256 (advance_to_filename_complete_word_point): Call
6257 recompute_lowest_common_denominator.
6258 (completion_tracker::completion_tracker): Call discard_completions
6259 to setup the hash table.
6260 (completion_tracker::discard_completions): Allow for being called
6261 from the constructor, pass new equal function, and element deleter
6262 when constructing the hash table. Initialise new class member
6263 variables.
6264 (completion_tracker::maybe_add_completion): Remove use of
6265 m_entries_vec, and store more information into m_entries_hash.
6266 (completion_tracker::recompute_lcd_visitor): New function, most
6267 content taken from...
6268 (completion_tracker::recompute_lowest_common_denominator):
6269 ...here, this now just visits each item in the hash calling the
6270 above visitor.
6271 (completion_tracker::build_completion_result): Remove use of
6272 m_entries_vec, call recompute_lowest_common_denominator.
6273 * completer.h (completion_tracker::have_completions): Remove use
6274 of m_entries_vec.
6275 (completion_tracker::completion_hash_entry): Declare new class.
6276 (completion_tracker::recompute_lowest_common_denominator): Change
6277 function signature.
6278 (completion_tracker::recompute_lcd_visitor): Declare new function.
6279 (completion_tracker::m_entries_vec): Delete.
6280 (completion_tracker::m_entries_hash): Initialize to NULL.
6281 (completion_tracker::m_lowest_common_denominator_valid): New
6282 member variable.
6283 (completion_tracker::m_lowest_common_denominator_max_length): New
6284 member variable.
6285
5a82b8a1
KR
62862020-03-17 Kamil Rytarowski <n54@gmx.com>
6287
6288 * regformats/regdef.h: Put reg in gdb namespace.
6289
fb516a69
KR
62902020-03-17 Kamil Rytarowski <n54@gmx.com>
6291
6292 * i386-bsd-nat.c (gdb_ptrace): New.
6293 * (i386bsd_fetch_inferior_registers,
6294 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6295 * (i386bsd_fetch_inferior_registers,
6296 i386bsd_store_inferior_registers) Use gdb_ptrace.
6297
1c0aa1fb
KR
62982020-03-17 Kamil Rytarowski <n54@gmx.com>
6299
6300 * amd64-bsd-nat.c (gdb_ptrace): New.
6301 * (amd64bsd_fetch_inferior_registers,
6302 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6303 * (amd64bsd_fetch_inferior_registers,
6304 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6305
5ccd2fb7
KR
63062020-03-17 Kamil Rytarowski <n54@gmx.com>
6307
6308 * user-regs.c (user_reg::read): Rename to...
6309 (user_reg::xread): ...this.
6310 * (append_user_reg): Rename argument `read' to `xread'.
6311 * (user_reg_add_builtin): Likewise.
6312 * (user_reg_add): Likewise.
6313 * (value_of_user_reg): Likewise.
6314
2108a63a
KR
63152020-03-17 Kamil Rytarowski <n54@gmx.com>
6316
6317 * sparc-nat.c (gdb_ptrace): New.
6318 * sparc-nat.c (sparc_fetch_inferior_registers)
6319 (sparc_store_inferior_registers) Remove obsolete comment.
6320 * sparc-nat.c (sparc_fetch_inferior_registers)
6321 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6322 * sparc-nat.c (sparc_fetch_inferior_registers)
6323 (sparc_store_inferior_registers) Use gdb_ptrace.
6324
a225c9a8
KR
63252020-03-17 Kamil Rytarowski <n54@gmx.com>
6326
6327 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6328 it to the ptrace call.
6329 * sh-nbsd-nat.c (store_registers): Likewise.
6330
98097623
KR
63312020-03-17 Kamil Rytarowski <n54@gmx.com>
6332
6333 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6334 nbsd_nat_target instead of inf_ptrace_target.
6335 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6336 nbsd_nat_target.
6337
9e38d619
KR
63382020-03-17 Kamil Rytarowski <n54@gmx.com>
6339
6340 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6341
a2ecbe9f
KR
63422020-03-17 Kamil Rytarowski <n54@gmx.com>
6343
6344 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6345 <sys/sysctl.h>.
6346 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6347
58990295
TV
63482020-03-17 Tom de Vries <tdevries@suse.de>
6349
6350 PR gdb/23710
6351 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6352 fields.
6353 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6354 fields.
6355 (process_imported_unit_die): Skip import of c++ CUs.
6356
771dd3a8
TT
63572020-03-16 Tom Tromey <tom@tromey.com>
6358
6359 * p-valprint.c (pascal_object_print_value): Initialize
6360 base_value.
6361
817a7585
AK
63622020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6363 Shahab Vahedi <shahab@synopsys.com>
6364
6365 * Makefile.in: Add arch/arc.o
6366 * configure.tgt: Likewise.
6367 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6368 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6369 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6370 * arc-tdep.h (arc_read_description): Add proto type.
6371 * arch/arc.c: New file.
6372 * arch/arc.h: Likewise.
6373 * features/Makefile: Replace old target descriptions with new.
6374 * features/arc-arcompact.c: Remove.
6375 * features/arc-arcompact.xml: Likewise.
6376 * features/arc-v2.c: Likewise
6377 * features/arc-v2.xml: Likewise
6378 * features/arc/aux-arcompact.xml: New file.
6379 * features/arc/aux-v2.xml: Likewise.
6380 * features/arc/core-arcompact.xml: Likewise.
6381 * features/arc/core-v2.xml: Likewise.
6382 * features/arc/aux-arcompact.c: Generate.
6383 * features/arc/aux-v2.c: Likewise.
6384 * features/arc/core-arcompact.c: Likewise.
6385 * features/arc/core-v2.c: Likewise.
6386 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6387
67430cd0
TT
63882020-03-16 Tom Tromey <tromey@adacore.com>
6389
6390 PR gdb/25663:
6391 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6392 putting value into bcache.
6393
30efb6c7
SM
63942020-03-16 Simon Marchi <simon.marchi@efficios.com>
6395
6396 PR gdb/21500
6397 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6398 to...
6399 (amd64_windows_init_abi_common): ... this. Don't set size of
6400 long type.
6401 (amd64_windows_init_abi): New function.
6402 (amd64_cygwin_init_abi): New function.
6403 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6404 the Cygwin OS ABI.
6405 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6406 comment.
6407
8db52437
SM
64082020-03-16 Simon Marchi <simon.marchi@efficios.com>
6409
6410 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6411 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6412 (pe_import_directory_entry): New struct type.
6413 (is_linked_with_cygwin_dll): New function.
6414 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6415 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6416 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6417
5982a56a
SM
64182020-03-16 Simon Marchi <simon.marchi@efficios.com>
6419
6420 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6421 i386_cygwin_core_osabi_sniffer.
6422
7a1998df
SM
64232020-03-16 Simon Marchi <simon.marchi@efficios.com>
6424
6425 * i386-cygwin-tdep.c: Rename to...
6426 * i386-windows-tdep.c: ... this.
6427 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6428 i386-windows-tdep.c.
6429 * configure.tgt: Likewise.
6430
053205cc
SM
64312020-03-16 Simon Marchi <simon.marchi@efficios.com>
6432
6433 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6434 * osabi.c (gdb_osabi_names): Add "Windows".
6435 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6436 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6437 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6438 i386_cygwin_osabi_sniffer.
6439 (_initialize_i386_cygwin_tdep): Register OS ABI
6440 GDB_OSABI_WINDOWS for i386.
6441 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6442 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6443 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6444 for x86-64.
6445 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6446 when the target matches '*-*-mingw*'.
6447
fe4b2ee6
SM
64482020-03-16 Simon Marchi <simon.marchi@efficios.com>
6449
6450 * defs.h (enum gdb_osabi): Move to...
6451 * osabi.h (enum gdb_osabi): ... here.
6452 * gdbarch.sh: Include osabi.h in gdbarch.h.
6453 * gdbarch.h: Re-generate.
6454
cb9b645d
SM
64552020-03-16 Simon Marchi <simon.marchi@efficios.com>
6456
6457 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6458 function.
6459 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6460
3293bbaf
TT
64612020-03-14 Tom Tromey <tom@tromey.com>
6462
6463 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6464 for C++.
6465 (c_type_print_modifier): Likewise. Add "language" parameter.
6466 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6467 (c_type_print_base_1): Update.
6468 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6469 constants.
6470 * type-stack.c (type_stack::insert): Handle tp_atomic and
6471 tp_restrict.
6472 (type_stack::follow_type_instance_flags): Likewise.
6473 (type_stack::follow_types): Likewise. Merge type-following code.
6474 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6475 (space_identifier, cv_with_space_id)
6476 (const_or_volatile_or_space_identifier_noopt)
6477 (const_or_volatile_or_space_identifier): Remove.
6478 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6479 rules.
6480 (ptr_operator, typebase): Update.
6481 (enum token_flag) <FLAG_C>: New constant.
6482 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6483 "_Atomic".
6484 (lex_one_token): Handle FLAG_C.
6485
154151a6
KR
64862020-03-14 Kamil Rytarowski <n54@gmx.com>
6487
6488 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6489 it to the ptrace call.
6490 * m68k-bsd-nat.c (store_registers): Likewise.
6491
bc107784
KR
64922020-03-14 Kamil Rytarowski <n54@gmx.com>
6493
6494 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6495 gdb_byte *.
6496 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6497 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6498 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6499
01a80117
KR
65002020-03-14 Kamil Rytarowski <n54@gmx.com>
6501
6502 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6503 nbsd_nat_target instead of inf_ptrace_target.
6504 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6505 nbsd_nat_target.
6506
f90280ca
KR
65072020-03-14 Kamil Rytarowski <n54@gmx.com>
6508
6509 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6510 register_t.
6511
6def66f1
KR
65122020-03-14 Kamil Rytarowski <n54@gmx.com>
6513
6514 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6515 it to the ptrace call.
6516 * alpha-bsd-nat.c (store_registers): Likewise.
6517
66eaca97
KR
65182020-03-14 Kamil Rytarowski <n54@gmx.com>
6519
6520 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6521 includes.
6522 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6523 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6524 fill_fpregset): Likewise.
6525
4fed520b
KR
65262020-03-14 Kamil Rytarowski <n54@gmx.com>
6527
6528 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6529 nbsd_nat_target instead of inf_ptrace_target.
6530 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6531 nbsd_nat_target.
6532
2190cf06
KR
65332020-03-14 Kamil Rytarowski <n54@gmx.com>
6534
6535 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6536 register_t.
6537
75c56d3d
KR
65382020-03-14 Kamil Rytarowski <n54@gmx.com>
6539
6540 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6541 it to the ptrace call.
6542 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6543 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6544 * arm-nbsd-nat.c (store_register): Likewise.
6545 * arm-nbsd-nat.c (store_regs): Likewise.
6546 * arm-nbsd-nat.c (store_fp_register): Likewise.
6547 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6548
6018d381
KR
65492020-03-14 Kamil Rytarowski <n54@gmx.com>
6550
6551 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6552 nbsd_nat_target instead of inf_ptrace_target.
6553 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6554 nbsd_nat_target.
6555
013f99f0
KR
65562020-03-14 Kamil Rytarowski <n54@gmx.com>
6557
6558 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6559 it to the ptrace call.
6560 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6561
12753073
KR
65622020-03-14 Kamil Rytarowski <n54@gmx.com>
6563
6227b330
KR
6564 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6565 it to the ptrace call.
6566 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6567
65682020-03-14 Kamil Rytarowski <n54@gmx.com>
6569
6570 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6571 gdb_byte *.
12753073
KR
6572 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6573
d5be5fa4
KR
65742020-03-14 Kamil Rytarowski <n54@gmx.com>
6575
6576 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6577 instead of inf_ptrace_target.
6578 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6579 nbsd_nat_target.
6580
8110f842
KR
65812020-03-14 Kamil Rytarowski <n54@gmx.com>
6582
6583 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6584 register_t.
6585
52feded7
KR
65862020-03-14 Kamil Rytarowski <n54@gmx.com>
6587
6588 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6589 register_t.
6590
25567eee
KR
65912020-03-14 Kamil Rytarowski <n54@gmx.com>
6592
6593 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6594 register_t.
6595
426a9c18
TT
65962020-03-13 Tom Tromey <tom@tromey.com>
6597
6598 * value.h (val_print): Don't declare.
6599 * valprint.h (val_print_array_elements)
6600 (val_print_scalar_formatted, generic_val_print): Don't declare.
6601 * valprint.c (generic_val_print_array): Take a struct value.
6602 (generic_val_print_ptr, generic_val_print_memberptr)
6603 (generic_val_print_bool, generic_val_print_int)
6604 (generic_val_print_char, generic_val_print_complex)
6605 (generic_val_print): Remove.
6606 (generic_value_print): Update.
6607 (do_val_print): Remove unused parameters. Don't call
6608 la_val_print.
6609 (val_print): Remove.
6610 (common_val_print): Update. Don't call value_check_printable.
6611 (val_print_scalar_formatted, val_print_array_elements): Remove.
6612 * rust-lang.c (rust_val_print): Remove.
6613 (rust_language_defn): Update.
6614 * p-valprint.c (pascal_val_print): Remove.
6615 (pascal_value_print_inner): Update.
6616 (pascal_object_print_val_fields, pascal_object_print_val):
6617 Remove.
6618 (pascal_object_print_static_field): Update.
6619 * p-lang.h (pascal_val_print): Don't declare.
6620 * p-lang.c (pascal_language_defn): Update.
6621 * opencl-lang.c (opencl_language_defn): Update.
6622 * objc-lang.c (objc_language_defn): Update.
6623 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6624 * m2-lang.h (m2_val_print): Don't declare.
6625 * m2-lang.c (m2_language_defn): Update.
6626 * language.h (struct language_defn) <la_val_print>: Remove.
6627 * language.c (unk_lang_value_print_inner): Rename. Change
6628 argument types.
6629 (unknown_language_defn, auto_language_defn): Update.
6630 * go-valprint.c (go_val_print): Remove.
6631 * go-lang.h (go_val_print): Don't declare.
6632 * go-lang.c (go_language_defn): Update.
6633 * f-valprint.c (f_val_print): Remove.
6634 * f-lang.h (f_value_print): Don't declare.
6635 * f-lang.c (f_language_defn): Update.
6636 * d-valprint.c (d_val_print): Remove.
6637 * d-lang.h (d_value_print): Don't declare.
6638 * d-lang.c (d_language_defn): Update.
6639 * cp-valprint.c (cp_print_value_fields)
6640 (cp_print_value_fields_rtti, cp_print_value): Remove.
6641 (cp_print_static_field): Update.
6642 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6643 (c_val_print_struct, c_val_print_union, c_val_print_int)
6644 (c_val_print_memberptr, c_val_print): Remove.
6645 * c-lang.h (c_val_print_array, cp_print_value_fields)
6646 (cp_print_value_fields_rtti): Don't declare.
6647 * c-lang.c (c_language_defn, cplus_language_defn)
6648 (asm_language_defn, minimal_language_defn): Update.
6649 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6650 (ada_val_print_enum): Take a struct value.
6651 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6652 (ada_val_print): Remove.
6653 (ada_value_print_1): Update.
6654 (printable_val_type): Remove.
6655 * ada-lang.h (ada_val_print): Don't declare.
6656 * ada-lang.c (ada_language_defn): Update.
6657
42331a1e
TT
66582020-03-13 Tom Tromey <tom@tromey.com>
6659
6660 * valprint.c (do_val_print): Update.
6661 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6662 a struct value.
6663 (value_to_value_object_no_release): Declare.
6664 * python/py-value.c (value_to_value_object_no_release): New
6665 function.
6666 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6667 struct value.
6668 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6669 function.
6670 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6671 a struct value.
6672 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6673 Declare.
6674 (gdbscm_apply_val_pretty_printer): Take a struct value.
6675 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6676 value.
6677 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6678 value.
6679 * extension-priv.h (struct extension_language_ops)
6680 <apply_val_pretty_printer>: Take a struct value.
6681 * cp-valprint.c (cp_print_value): Create a struct value.
6682 (cp_print_value): Update.
6683
3a916a97
TT
66842020-03-13 Tom Tromey <tom@tromey.com>
6685
6686 * ada-valprint.c (print_field_values): Call common_val_print.
6687
b59eac37
TT
66882020-03-13 Tom Tromey <tom@tromey.com>
6689
6690 * ada-valprint.c (val_print_packed_array_elements): Remove
6691 bitoffset and val parameters. Call common_val_print.
6692 (ada_val_print_string): Remove offset, address, and original_value
6693 parameters.
6694 (ada_val_print_array): Update.
6695 (ada_value_print_array): New function.
6696 (ada_value_print_1): Call it.
6697
03371129
TT
66982020-03-13 Tom Tromey <tom@tromey.com>
6699
6700 * ada-valprint.c (ada_value_print): Use common_val_print.
6701
2e088f8b
TT
67022020-03-13 Tom Tromey <tom@tromey.com>
6703
6704 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6705
39ef85a8
TT
67062020-03-13 Tom Tromey <tom@tromey.com>
6707
6708 * ada-valprint.c (ada_value_print_num): New function.
6709 (ada_value_print_1): Use it.
6710
b9fa6e07
TT
67112020-03-13 Tom Tromey <tom@tromey.com>
6712
6713 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6714
416595d6
TT
67152020-03-13 Tom Tromey <tom@tromey.com>
6716
6717 * ada-valprint.c (ada_value_print_ptr): New function.
6718 (ada_value_print_1): Use it.
6719
5b5e15ec
TT
67202020-03-13 Tom Tromey <tom@tromey.com>
6721
6722 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6723 call common_val_print.
6724 (ada_val_print_1): Update.
6725 (ada_value_print_1): New function.
6726 (ada_value_print_inner): Rewrite.
6727
fbf54e75
TT
67282020-03-13 Tom Tromey <tom@tromey.com>
6729
6730 * cp-valprint.c (cp_print_value_fields): Update.
6731 (cp_print_value): New function.
6732
64b653ca
TT
67332020-03-13 Tom Tromey <tom@tromey.com>
6734
6735 * m2-valprint.c (m2_value_print_inner): Use
6736 cp_print_value_fields.
6737 * cp-valprint.c (cp_print_value_fields): New function.
6738 * c-valprint.c (c_value_print_struct): New function.
6739 (c_value_print_inner): Use c_value_print_struct.
6740 * c-lang.h (cp_print_value_fields): Declare.
6741
6999f067
TT
67422020-03-13 Tom Tromey <tom@tromey.com>
6743
6744 * c-valprint.c (c_value_print_array): New function.
6745 (c_value_print_inner): Use it.
6746
ce80b8bd
TT
67472020-03-13 Tom Tromey <tom@tromey.com>
6748
6749 * c-valprint.c (c_value_print_memberptr): New function.
6750 (c_value_print_inner): Use it.
6751
2faac269
TT
67522020-03-13 Tom Tromey <tom@tromey.com>
6753
6754 * c-valprint.c (c_value_print_int): New function.
6755 (c_value_print_inner): Use it.
6756
da3e2c29
TT
67572020-03-13 Tom Tromey <tom@tromey.com>
6758
6759 * c-valprint.c (c_value_print_ptr): New function.
6760 (c_value_print_inner): Use it.
6761
50836231
TT
67622020-03-13 Tom Tromey <tom@tromey.com>
6763
6764 * c-valprint.c (c_value_print_inner): Rewrite.
6765
4f412b6e
TT
67662020-03-13 Tom Tromey <tom@tromey.com>
6767
6768 * valprint.c (generic_value_print_complex): New function.
6769 (generic_value_print): Use it.
6770
f5354008
TT
67712020-03-13 Tom Tromey <tom@tromey.com>
6772
6773 * valprint.c (generic_val_print_float): Don't call
6774 val_print_scalar_formatted.
6775 (generic_val_print, generic_value_print): Update.
6776
3eec3b05
TT
67772020-03-13 Tom Tromey <tom@tromey.com>
6778
6779 * valprint.c (generic_value_print_char): New function
6780 (generic_value_print): Use it.
6781
fdddfccb
TT
67822020-03-13 Tom Tromey <tom@tromey.com>
6783
6784 * valprint.c (generic_value_print_int): New function.
6785 (generic_value_print): Use it.
6786
6dde7521
TT
67872020-03-13 Tom Tromey <tom@tromey.com>
6788
6789 * valprint.c (generic_value_print_bool): New function.
6790 (generic_value_print): Use it.
6791
4112d2e6
TT
67922020-03-13 Tom Tromey <tom@tromey.com>
6793
6794 * valprint.c (generic_val_print_func): Simplify.
6795 (generic_val_print, generic_value_print): Update.
6796
65786af6
TT
67972020-03-13 Tom Tromey <tom@tromey.com>
6798
6799 * valprint.c (generic_val_print_flags): Remove.
6800 (generic_val_print, generic_value_print): Update.
6801 (val_print_type_code_flags): Add original_value parameter.
6802
40f3ce18
TT
68032020-03-13 Tom Tromey <tom@tromey.com>
6804
6805 * valprint.c (generic_val_print): Update.
6806 (generic_value_print): Update.
6807 * valprint.c (generic_val_print_enum): Don't call
6808 val_print_scalar_formatted.
6809
2a5b130b
TT
68102020-03-13 Tom Tromey <tom@tromey.com>
6811
6812 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6813 * valprint.c (generic_value_print_ptr): New function.
6814
abc66ce9
TT
68152020-03-13 Tom Tromey <tom@tromey.com>
6816
6817 * valprint.c (generic_value_print): Rewrite.
6818
07a32858
TT
68192020-03-13 Tom Tromey <tom@tromey.com>
6820
6821 * p-valprint.c (pascal_object_print_value_fields)
6822 (pascal_object_print_value): New functions.
6823
64d64d3a
TT
68242020-03-13 Tom Tromey <tom@tromey.com>
6825
6826 * p-valprint.c (pascal_value_print_inner): Rewrite.
6827
6a95a1f5
TT
68282020-03-13 Tom Tromey <tom@tromey.com>
6829
6830 * f-valprint.c (f_value_print_innner): Rewrite.
6831
59fcdac6
TT
68322020-03-13 Tom Tromey <tom@tromey.com>
6833
6834 * m2-valprint.c (m2_print_unbounded_array): New overload.
6835 (m2_print_unbounded_array): Update.
6836 (m2_print_array_contents): Take a struct value.
6837 (m2_value_print_inner): Rewrite.
6838
d133c3e1
TT
68392020-03-13 Tom Tromey <tom@tromey.com>
6840
6841 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6842 (d_value_print_inner): New function.
6843 * d-lang.h (d_value_print_inner): Declare.
6844 * d-lang.c (d_language_defn): Use d_value_print_inner.
6845
23b0f06b
TT
68462020-03-13 Tom Tromey <tom@tromey.com>
6847
6848 * go-valprint.c (go_value_print_inner): New function.
6849 * go-lang.h (go_value_print_inner): Declare.
6850 * go-lang.c (go_language_defn): Use go_value_print_inner.
6851
5f56f7cb
TT
68522020-03-13 Tom Tromey <tom@tromey.com>
6853
6854 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6855 API.
6856 (rust_val_print): Rewrite.
6857 (rust_value_print_inner): New function, from rust_val_print.
6858 (rust_language_defn): Use rust_value_print_inner.
6859
26792ee0
TT
68602020-03-13 Tom Tromey <tom@tromey.com>
6861
6862 * ada-valprint.c (ada_value_print_inner): New function.
6863 * ada-lang.h (ada_value_print_inner): Declare.
6864 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6865
24051bbe
TT
68662020-03-13 Tom Tromey <tom@tromey.com>
6867
6868 * f-valprint.c (f_value_print_innner): New function.
6869 * f-lang.h (f_value_print_innner): Declare.
6870 * f-lang.c (f_language_defn): Use f_value_print_innner.
6871
c0941be6
TT
68722020-03-13 Tom Tromey <tom@tromey.com>
6873
6874 * p-valprint.c (pascal_value_print_inner): New function.
6875 * p-lang.h (pascal_value_print_inner): Declare.
6876 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6877
62c4663d
TT
68782020-03-13 Tom Tromey <tom@tromey.com>
6879
6880 * m2-valprint.c (m2_value_print_inner): New function.
6881 * m2-lang.h (m2_value_print_inner): Declare.
6882 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6883
62182190
TT
68842020-03-13 Tom Tromey <tom@tromey.com>
6885
6886 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6887 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6888 * c-valprint.c (c_value_print_inner): New function.
6889 * c-lang.h (c_value_print_inner): Declare.
6890 * c-lang.c (c_language_defn, cplus_language_defn)
6891 (asm_language_defn, minimal_language_defn): Use
6892 c_value_print_inner.
6893
1e592a8a
TT
68942020-03-13 Tom Tromey <tom@tromey.com>
6895
6896 * p-valprint.c (pascal_object_print_value_fields): Now static.
6897 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6898
7fe471e9
TT
68992020-03-13 Tom Tromey <tom@tromey.com>
6900
6901 * c-valprint.c (c_val_print_array): Simplify.
6902
d121c6ce
TT
69032020-03-13 Tom Tromey <tom@tromey.com>
6904
6905 * valprint.c (value_print_array_elements): New function.
6906 * valprint.h (value_print_array_elements): Declare.
6907
4dba70ee
TT
69082020-03-13 Tom Tromey <tom@tromey.com>
6909
6910 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6911 * mips-tdep.c (mips_print_register): Use
6912 value_print_scalar_formatted.
6913
4f9ae810
TT
69142020-03-13 Tom Tromey <tom@tromey.com>
6915
6916 * valprint.h (value_print_scalar_formatted): Declare.
6917 * valprint.c (value_print_scalar_formatted): New function.
6918
156bfec9
TT
69192020-03-13 Tom Tromey <tom@tromey.com>
6920
6921 * valprint.h (generic_value_print): Declare.
6922 * valprint.c (generic_value_print): New function.
6923
2b4e573d
TT
69242020-03-13 Tom Tromey <tom@tromey.com>
6925
6926 * valprint.c (do_val_print): Call la_value_print_inner, if
6927 available.
6928 * rust-lang.c (rust_language_defn): Update.
6929 * p-lang.c (pascal_language_defn): Update.
6930 * opencl-lang.c (opencl_language_defn): Update.
6931 * objc-lang.c (objc_language_defn): Update.
6932 * m2-lang.c (m2_language_defn): Update.
6933 * language.h (struct language_defn) <la_value_print_inner>: New
6934 member.
6935 * language.c (unknown_language_defn, auto_language_defn): Update.
6936 * go-lang.c (go_language_defn): Update.
6937 * f-lang.c (f_language_defn): Update.
6938 * d-lang.c (d_language_defn): Update.
6939 * c-lang.c (c_language_defn, cplus_language_defn)
6940 (asm_language_defn, minimal_language_defn): Update.
6941 * ada-lang.c (ada_language_defn): Update.
6942
a1f6a07c
TT
69432020-03-13 Tom Tromey <tom@tromey.com>
6944
6945 * c-valprint.c (c_value_print): Use common_val_print.
6946
410cf315
TT
69472020-03-13 Tom Tromey <tom@tromey.com>
6948
6949 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6950
72a45c93
TT
69512020-03-13 Tom Tromey <tom@tromey.com>
6952
6953 * f-valprint.c (f77_print_array_1, f_val_print): Use
6954 common_val_print.
6955
040f66bd
TT
69562020-03-13 Tom Tromey <tom@tromey.com>
6957
6958 * riscv-tdep.c (riscv_print_one_register_info): Use
6959 common_val_print.
6960
a6e05a6c
TT
69612020-03-13 Tom Tromey <tom@tromey.com>
6962
6963 * mi/mi-main.c (output_register): Use common_val_print.
6964
3444c526
TT
69652020-03-13 Tom Tromey <tom@tromey.com>
6966
6967 * infcmd.c (default_print_one_register_info): Use
6968 common_val_print.
6969
c2a44efe
TT
69702020-03-13 Tom Tromey <tom@tromey.com>
6971
6972 * valprint.h (common_val_print_checked): Declare.
6973 * valprint.c (common_val_print_checked): New function.
6974 * stack.c (print_frame_arg): Use common_val_print_checked.
6975
b0c26e99
TT
69762020-03-13 Tom Tromey <tom@tromey.com>
6977
6978 * valprint.c (do_val_print): New function, from val_print.
6979 (val_print): Use do_val_print.
6980 (common_val_print): Use do_val_print.
6981
ce3acbe9
TT
69822020-03-13 Tom Tromey <tom@tromey.com>
6983
6984 * valprint.c (value_print): Use scoped_value_mark.
6985
96c7f873
TV
69862020-03-13 Tom de Vries <tdevries@suse.de>
6987
6988 PR symtab/25646
6989 * psymtab.c (partial_symtab::partial_symtab): Don't set
6990 globals_offset and statics_offset. Push element onto
6991 current_global_psymbols and current_static_psymbols stacks.
6992 (concat): New function.
6993 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6994 element from current_global_psymbols and current_static_psymbols
6995 stacks. Concat popped elements to global_psymbols and
6996 static_symbols.
6997 (add_psymbol_to_list): Use current_global_psymbols and
6998 current_static_psymbols stacks.
6999 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7000 current_static_psymbols fields.
7001
6ba0a321
CB
70022020-03-12 Christian Biesinger <cbiesinger@google.com>
7003
7004 * corelow.c (sniff_core_bfd): Remove.
7005 (class core_target) <m_core_vec>: Remove.
7006 (core_target::core_target): Update.
7007 (core_file_fns): Remove.
7008 (deprecated_add_core_fns): Remove.
7009 (default_core_sniffer): Remove.
7010 (sniff_core_bfd): Remove.
7011 (default_check_format): Remove.
7012 (gdb_check_format): Remove.
7013 (core_target_open): Update.
7014 (core_target::get_core_register_section): Update.
7015 (get_core_registers_cb): Update.
7016 (core_target::fetch_registers): Update.
7017 * gdbcore.h (struct core_fns): Remove.
7018 (deprecated_add_core_fns): Remove.
7019 (default_core_sniffer): Remove.
7020 (default_check_format): Remove.
7021
227031b2
TT
70222020-03-12 Tom Tromey <tom@tromey.com>
7023
7024 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7025 CORE_ADDR.
7026 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7027
53807e9f
TT
70282020-03-12 Tom Tromey <tom@tromey.com>
7029
7030 * remote.c (remote_target::download_tracepoint)
7031 (remote_target::enable_tracepoint)
7032 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7033 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7034 sprintf_vma.
7035
64f25102
TT
70362020-03-12 Tom Tromey <tom@tromey.com>
7037
7038 * symfile-mem.c: Update CORE_ADDR size assert.
7039
272cd5a3
SM
70402020-03-12 Simon Marchi <simon.marchi@efficios.com>
7041
7042 * selftest.m4: Move to gdbsupport/.
7043 * acinclude.m4: Update path to selftest.m4.
7044
74cd3f9d
SM
70452020-03-12 Simon Marchi <simon.marchi@efficios.com>
7046
7047 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7048 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7049 gdbarch-selfselftests.c and selftest-arch.c.
7050 (SUBDIR_UNITTESTS_OBS): Rename to...
7051 (SELFTESTS_OBS): ... this.
7052 (COMMON_SFILES): Remove disasm-selftests.c and
7053 gdbarch-selftests.c.
7054 * configure.ac: Don't add selftest-arch.{c,o} to
7055 CONFIG_{SRCS,OBS}.
7056 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7057 preprocessor conditions.
7058
db6878ac
SM
70592020-03-12 Simon Marchi <simon.marchi@efficios.com>
7060
7061 * configure.ac: Don't source bfd/development.sh.
7062 * selftest.m4: Modify comment.
7063 * configure: Re-generate.
7064
4d696a5c
SM
70652020-03-12 Simon Marchi <simon.marchi@efficios.com>
7066
7067 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7068 not "true" or "false".
7069 * configure: Re-generate.
7070
8dd8e1c7
CB
70712020-03-12 Christian Biesinger <cbiesinger@google.com>
7072
7073 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7074 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7075 renamed to arm_nbsd_supply_gregset.
7076 (fetch_register): Update to call arm_nbsd_supply_gregset.
7077 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7078 (arm_netbsd_nat_target::fetch_registers): Update.
7079 (fetch_elfcore_registers): Removed.
7080 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7081 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7082 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7083 not require NetBSD system headers.
7084 (arm_nbsd_regset): New struct.
7085 (arm_nbsd_iterate_over_regset_sections): New function.
7086 (arm_netbsd_init_abi_common): Updated to call
7087 set_gdbarch_iterate_over_regset_sections.
7088 * arm-nbsd-tdep.h: New file.
7089
dd69bf7a
KB
70902020-03-11 Kevin Buettner <kevinb@redhat.com>
7091
7092 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7093 recursion.
7094
a0761e34
SM
70952020-03-11 Simon Marchi <simon.marchi@efficios.com>
7096
7097 * configure: Re-generate.
7098
e7a82140
TT
70992020-03-11 Tom Tromey <tromey@adacore.com>
7100
7101 * ada-typeprint.c (print_choices): Fix comment.
7102
dcc050c8
AB
71032020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7104
7105 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7106 previous item in the list, when the list has no items.
7107
1c33af77
TV
71082020-03-11 Tom de Vries <tdevries@suse.de>
7109
7110 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7111 PROP_LOCLIST handling code.
7112
8c95582d
AB
71132020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7114
7115 * buildsym-legacy.c (record_line): Pass extra parameter to
7116 record_line.
7117 * buildsym.c (buildsym_compunit::record_line): Take an extra
7118 parameter, reduce duplication in the line table, and record the
7119 is_stmt flag in the line table.
7120 * buildsym.h (buildsym_compunit::record_line): Add extra
7121 parameter.
7122 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7123 non-statement lines.
7124 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7125 this to the symtab builder.
7126 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7127 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7128 through to dwarf_record_line_1.
7129 * infrun.c (process_event_stop_test): When stepping, don't stop at
7130 a non-statement instruction, and only refresh the step info when
7131 we land in the middle of a line's range. Also add an extra
7132 comment.
7133 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7134 field.
7135 * record-btrace.c (btrace_find_line_range): Only record lines
7136 marked as is-statement.
7137 * stack.c (frame_show_address): Show the frame address if we are
7138 in a non-statement sal.
7139 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7140 (maintenance_print_one_line_table): Print a header for the is_stmt
7141 column, and include is_stmt information in the output.
7142 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7143 preference to non-statements.
7144 (find_pcs_for_symtab_line): Prefer is-statement entries.
7145 (find_line_common): Likewise.
7146 * symtab.h (struct linetable_entry): Add is_stmt field.
7147 (struct symtab_and_line): Likewise.
7148 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7149 arranging the line table.
7150
e4003a34
TV
71512020-03-07 Tom de Vries <tdevries@suse.de>
7152
7153 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7154 DIE.
7155
e8932576
TT
71562020-03-07 Tom Tromey <tom@tromey.com>
7157
7158 * valops.c (value_literal_complex): Remove obsolete comment.
7159 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7160 comment.
7161
29734269
SM
71622020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7163
7164 * infrun.h: Forward-declare thread_info.
7165 (set_step_info): Add thread_info parameter, add doc.
7166 * infrun.c (set_step_info): Add thread_info parameter, move doc
7167 to header.
7168 * infrun.c (process_event_stop_test): Pass thread to
7169 set_step_info call.
7170 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7171 set_step_info.
7172 (prepare_one_step): Add thread_info parameter, pass it to
7173 set_step_frame and prepare_one_step (recursive) call.
7174 (step_1): Pass thread to prepare_one_step call.
7175 (step_command_fsm::should_stop): Pass thread to
7176 prepare_one_step.
7177 (until_next_fsm): Pass thread to set_step_frame call.
7178 (finish_command): Pass thread to set_step_info call.
7179
b7d64b29
HD
71802020-03-06 Hannes Domani <ssbssa@yahoo.de>
7181
7182 * windows-tdep.c (windows_solib_create_inferior_hook):
7183 Check if inferior is running.
7184
09f2921c
TV
71852020-03-06 Tom de Vries <tdevries@suse.de>
7186
7187 * NEWS: Fix "the the".
7188 * ctfread.c: Same.
7189
fd760e79
TV
71902020-03-06 Tom de Vries <tdevries@suse.de>
7191
7192 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7193
20ea4a60
AB
71942020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7195
7196 * .dir-locals.el: Add a comment referencing the other copies of
7197 this file.
7198
0afbabf0
JB
71992020-03-05 John Baldwin <jhb@FreeBSD.org>
7200
7201 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7202 psargs.
7203
842806cb
TBA
72042020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7205
7206 * .gitattributes: New file.
7207
be1e3d3e
TT
72082020-03-04 Tom Tromey <tom@tromey.com>
7209
7210 * symmisc.c (print_symbol_bcache_statistics)
7211 (print_objfile_statistics): Update.
7212 * symfile.c (allocate_symtab): Use intern.
7213 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7214 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7215 macro_cache>: Remove.
7216 <string_cache>: New member.
7217 (struct objfile) <intern>: New methods.
7218 * elfread.c (elf_symtab_read): Use intern.
7219 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7220 (dwarf2_compute_name, dwarf2_physname)
7221 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7222 names.
7223 (guess_partial_die_structure_name): Update.
7224 (partial_die_info::fixup): Intern name.
7225 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7226 name.
7227 (dwarf2_name): Intern name. Update.
7228 * buildsym.c (buildsym_compunit::get_macro_table): Use
7229 string_cache.
7230
4e7625fd
TT
72312020-03-04 Tom Tromey <tom@tromey.com>
7232
7233 * jit.c (bfd_open_from_target_memory): Make "target" const.
7234 * corefile.c (gnutarget): Now const.
7235 * gdbcore.h (gnutarget): Now const.
7236
46f9f931
HD
72372020-03-04 Hannes Domani <ssbssa@yahoo.de>
7238
7239 * NEWS: Mention support for WOW64 processes.
7240 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7241 (amd64_windows_segment_register_p): Remove static.
7242 (_initialize_amd64_windows_nat): Update.
7243 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7244 * i386-windows-nat.c (context_offset): Update.
7245 (i386_mappings): Rename and remove static.
7246 (i386_windows_segment_register_p): Remove static.
7247 (_initialize_i386_windows_nat): Update.
7248 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7249 (STATUS_WX86_SINGLE_STEP): New macro.
7250 (EnumProcessModulesEx): New macro.
7251 (Wow64SuspendThread): New macro.
7252 (Wow64GetThreadContext): New macro.
7253 (Wow64SetThreadContext): New macro.
7254 (Wow64GetThreadSelectorEntry): New macro.
7255 (windows_set_context_register_offsets): Add static.
7256 (windows_set_segment_register_p): Likewise.
7257 (windows_add_thread): Adapt for WOW64 processes.
7258 (windows_fetch_one_register): Likewise.
7259 (windows_nat_target::fetch_registers): Likewise.
7260 (windows_store_one_register): Likewise.
7261 (display_selector): Likewise.
7262 (display_selectors): Likewise.
7263 (handle_exception): Likewise.
7264 (windows_continue): Likewise.
7265 (windows_nat_target::resume): Likewise.
7266 (windows_add_all_dlls): Likewise.
7267 (do_initial_windows_stuff): Likewise.
7268 (windows_nat_target::attach): Likewise.
7269 (windows_get_exec_module_filename): Likewise.
7270 (windows_nat_target::create_inferior): Likewise.
7271 (windows_xfer_siginfo): Likewise.
7272 (_initialize_loadable): Initialize Wow64SuspendThread,
7273 Wow64GetThreadContext, Wow64SetThreadContext,
7274 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7275 * windows-nat.h (windows_set_context_register_offsets):
7276 Remove declaration.
7277 (windows_set_segment_register_p): Likewise.
7278 (i386_windows_segment_register_p): Add declaration.
7279 (amd64_windows_segment_register_p): Likewise.
7280
440cf44e
LM
72812020-03-04 Luis Machado <luis.machado@linaro.org>
7282
7283 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7284 in "info registers" for AArch64/ARM.
7285
7286 The change caused "info registers" to not print GPR's.
7287
7288 gdb/ChangeLog:
7289
7290 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7291
7292 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7293 when reg->group is empty and reggroup is not.
7294
1009d92f
TT
72952020-03-03 Tom Tromey <tromey@adacore.com>
7296
7297 * dwarf2/frame.c (struct dwarf2_frame_cache)
7298 <checked_tailcall_bottom, entry_cfa_sp_offset,
7299 entry_cfa_sp_offset_p>: Remove members.
7300 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7301 (dwarf2_frame_prev_register): Don't call
7302 dwarf2_tailcall_sniffer_first.
7303 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7304 * frame-unwind.c (add_unwinder): New fuction.
7305 (frame_unwind_init): Use it. Add tailcall unwinder.
7306
5e5d66b6
AB
73072020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7308 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7309
7310 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7311 value should be printed as true.
7312
584cf46d
HD
73132020-03-03 Hannes Domani <ssbssa@yahoo.de>
7314
7315 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7316 (windows_init_abi): Set and use windows_so_ops.
7317
7b973adc
SDJ
73182020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7319
7320 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7321 when verifying if dealing with a convenience variable.
7322
bb7b70ab
LM
73232020-03-03 Luis Machado <luis.machado@linaro.org>
7324
7325 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7326
9822cb57
SM
73272020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7328
7329 * infrun.c (gdbarch_supports_displaced_stepping): New.
7330 (use_displaced_stepping): Break up conditions in smaller pieces.
7331 Use gdbarch_supports_displaced_stepping.
7332 (displaced_step_prepare_throw): Use
7333 gdbarch_supports_displaced_stepping.
7334
63e163f2
AB
73352020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7336
7337 * NEWS: Mention new behaviour of the history filename.
7338 * top.c (write_history_p): Add comment.
7339 (show_write_history_p): Add header comment, give a different
7340 message when history writing is on, but the history filename is
7341 empty.
7342 (history_filename): Add comment.
7343 (history_filename_empty): New function.
7344 (show_history_filename): Add header comment, give a different
7345 message when the filename is empty.
7346 (init_history): Compare history_filename against nullptr, and only
7347 read history if the filename is not empty.
7348 (set_history_filename): Add header comment, and only make
7349 non-empty filenames absolute.
7350 (init_main): Make the filename argument to 'set history filename'
7351 optional.
7352
81b86b97
CB
73532020-03-02 Christian Biesinger <cbiesinger@google.com>
7354
7355 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7356 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7357 (fetch_fp_register): Update.
7358 (fetch_fp_regs): Update.
7359 (store_fp_register): Update.
7360 (store_fp_regs): Update.
7361 (arm_netbsd_nat_target::read_description): New function.
7362 (fetch_elfcore_registers): Update.
7363
24ed6739
AB
73642020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7365
7366 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7367 general_thread if the stop reply is missing a thread-id.
7368 (remote_target::process_stop_reply): Use the first non-exited
7369 thread if the target didn't pass a thread-id.
7370 * infrun.c (do_target_wait): Move call to
7371 switch_to_inferior_no_thread to ....
7372 (do_target_wait_1): ... here.
7373
a84bb2a0
JT
73742020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7375
7376 * debuginfod-support.c: Include defs.h first.
7377
658dadf0
TV
73782020-02-28 Tom de Vries <tdevries@suse.de>
7379
7380 * symfile.c (set_initial_language): Use default language for lookup.
7381
4ebe4877
SM
73822020-02-28 Simon Marchi <simon.marchi@efficios.com>
7383
7384 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7385 reader variable, pass `this` to read_cutu_die_from_dwo.
7386
e5da1139
AM
73872020-02-27 Aaron Merey <amerey@redhat.com>
7388
7389 * source.c (open_source_file): Check for nullptr when computing
7390 srcpath.
7391
317f7127
TT
73922020-02-27 Tom Tromey <tromey@adacore.com>
7393
7394 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7395 member.
7396 (dwarf2_add_field): Don't update nfields.
7397 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7398
3104d9ee
AB
73992020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7400
7401 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7402 abs.
7403
b83470bf
TT
74042020-02-26 Tom Tromey <tom@tromey.com>
7405
7406 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7407 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7408 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7409 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7410 per_cu_data.
7411
edfe0a0c
TT
74122020-02-26 Tom Tromey <tom@tromey.com>
7413
7414 * dwarf2/index-write.c (psym_index_map): Change type.
7415 (add_address_entry_worker, write_one_signatured_type)
7416 (recursively_count_psymbols, recursively_write_psymbols)
7417 (class debug_names, psyms_seen_size, write_gdbindex)
7418 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7419
0d79cdc4
AM
74202020-02-26 Aaron Merey <amerey@redhat.com>
7421
7422 * Makefile.in: Handle optional debuginfod support.
7423 * NEWS: Update.
7424 * README: Add --with-debuginfod summary.
7425 * config.in: Regenerate.
7426 * configure: Regenerate.
7427 * configure.ac: Handle optional debuginfod support.
7428 * debuginfod-support.c: debuginfod helper functions.
7429 * debuginfod-support.h: Ditto.
7430 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7431 summary.
7432 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7433 when a dwz file cannot be found.
7434 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7435 debuginfo file cannot be found.
7436 * source.c (open_source_file): Query debuginfod servers when a
7437 source file cannot be found.
7438 * top.c (print_gdb_configuration): Include
7439 --{with,without}-debuginfod in the output.
7440
b65ce565
JG
74412020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7442
7443 * thread.c (thr_try_catch_cmd): Print thread name.
7444
d4c9a4f8
SM
74452020-02-26 Simon Marchi <simon.marchi@efficios.com>
7446
7447 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7448 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7449 dwarf2_fetch_die_type_sect_off): Move to...
7450 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7451 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7452 dwarf2_fetch_die_type_sect_off): ... here.
7453 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7454 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7455 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7456
0dce4280
TV
74572020-02-26 Tom de Vries <tdevries@suse.de>
7458
7459 PR gdb/25603
7460 * symfile.c (set_initial_language): Exit-early if
7461 language_mode == language_mode_manual.
7462
450a1bfc
SM
74632020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7464
7465 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7466 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7467 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7468
9e80cfa1
AB
74692020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7470
7471 * gdbtypes.c (create_array_type_with_stride): Handle negative
7472 array strides.
7473 * valarith.c (value_subscripted_rvalue): Likewise.
7474
09624f1f
LM
74752020-02-25 Luis Machado <luis.machado@linaro.org>
7476
7477 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7478
8cb5117c
SM
74792020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7480
7481 * loc.h (dwarf2_get_die_type): Move to...
7482 * read.h (dwarf2_get_die_type): ... here.
7483 * read.c (dwarf2_get_die_type): Move doc to header.
7484
c325c44e
JB
74852020-02-25 Joel Brobecker <brobecker@adacore.com>
7486
7487 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7488 'gnulib/Makefile.in' to the list.
7489
4ac93832
TT
74902020-02-24 Tom Tromey <tom@tromey.com>
7491
7492 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7493 Remove.
7494 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7495 XOBNEWVEC.
7496
197400e8
TT
74972020-02-24 Tom Tromey <tom@tromey.com>
7498
7499 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7500 New method.
7501 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7502 (dw2_do_instantiate_symtab, dw2_get_file_names)
7503 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7504
76935768
TT
75052020-02-24 Tom Tromey <tom@tromey.com>
7506
7507 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7508 make_scoped_restore.
7509 (dwarf2_psymtab::read_symtab): Don't clear
7510 reading_partial_symbols.
7511
a88ef40d
TV
75122020-02-24 Tom de Vries <tdevries@suse.de>
7513
7514 PR gdb/25592
7515 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7516
c9af6521
TV
75172020-02-24 Tom de Vries <tdevries@suse.de>
7518
7519 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7520 commands layout next/prev/regs.
7521
5707a07a
TT
75222020-02-22 Tom Tromey <tom@tromey.com>
7523
7524 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7525 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7526
3b0fb49e
TT
75272020-02-22 Tom Tromey <tom@tromey.com>
7528
7529 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7530
283be8bf
TT
75312020-02-22 Tom Tromey <tom@tromey.com>
7532
7533 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7534 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7535 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7536 * tui/tui.c (_initialize_tui): Add usage text.
7537
ca793b96
TT
75382020-02-22 Tom Tromey <tom@tromey.com>
7539
7540 * tui/tui-win.c (tui_set_focus_command)
7541 (tui_set_win_height_command): Use error_no_arg.
7542 (_initialize_tui_win): Update help text.
7543 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7544
432b5c40
TT
75452020-02-22 Tom Tromey <tom@tromey.com>
7546
7547 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7548 * tui/tui-disasm.h (struct tui_disasm_window)
7549 <display_start_addr>: Declare.
7550 * tui/tui-source.h (struct tui_source_window)
7551 <display_start_addr>: Declare.
7552 * tui/tui-winsource.h (struct tui_source_window_base)
7553 <show_source_line, display_start_addr>: New methods.
7554 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7555 Rename and move to protected section.
7556 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7557 (tui_source_window_base::do_erase_source_content): Update.
7558 (tui_source_window_base::show_source_line): Now a method.
7559 (tui_source_window_base::show_source_content)
7560 (tui_source_window_base::tui_source_window_base)
7561 (tui_source_window_base::rerender)
7562 (tui_source_window_base::refill)
7563 (tui_source_window_base::do_scroll_horizontal)
7564 (tui_source_window_base::set_is_exec_point_at)
7565 (tui_source_window_base::update_breakpoint_info)
7566 (tui_source_window_base::update_exec_info): Update.
7567 * tui/tui-source.c (tui_source_window::set_contents)
7568 (tui_source_window::showing_source_p)
7569 (tui_source_window::do_scroll_vertical)
7570 (tui_source_window::location_matches_p)
7571 (tui_source_window::line_is_displayed): Update.
7572 (tui_source_window::display_start_addr): New method.
7573 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7574 (tui_disasm_window::do_scroll_vertical)
7575 (tui_disasm_window::location_matches_p): Update.
7576 (tui_disasm_window::display_start_addr): New method.
7577
01b1af32
TT
75782020-02-22 Tom Tromey <tom@tromey.com>
7579
7580 * NEWS: Add entry for gdb.register_window_type.
7581 * tui/tui-layout.h (window_factory): New typedef.
7582 (tui_register_window): Declare.
7583 * tui/tui-layout.c (saved_tui_windows): New global.
7584 (tui_apply_current_layout): Use it.
7585 (tui_register_window): New function.
7586 * python/python.c (do_start_initialization): Call
7587 gdbpy_initialize_tui.
7588 (python_GdbMethods): Add "register_window_type" function.
7589 * python/python-internal.h (gdbpy_register_tui_window)
7590 (gdbpy_initialize_tui): Declare.
7591 * python/py-tui.c: New file.
7592 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7593
fc96d20b
TT
75942020-02-22 Tom Tromey <tom@tromey.com>
7595
7596 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7597
935c78c0
TT
75982020-02-22 Tom Tromey <tom@tromey.com>
7599
7600 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7601 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7602 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7603 (tui_set_win_focus_to): Move from tui-win.c.
7604
0240c8f1
TT
76052020-02-22 Tom Tromey <tom@tromey.com>
7606
7607 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7608 functions.
7609 (known_window_types): New global.
7610 (tui_get_window_by_name): Reimplement.
7611 (initialize_known_windows): New function.
7612 (validate_window_name): Rewrite.
7613 (_initialize_tui_layout): Call initialize_known_windows.
7614
fdb01f0c
TT
76152020-02-22 Tom Tromey <tom@tromey.com>
7616
7617 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7618 Remove constants.
7619 * tui/tui-winsource.h (struct tui_source_window_base)
7620 <tui_source_window_base>: Remove parameter.
7621 * tui/tui-winsource.c
7622 (tui_source_window_base::tui_source_window_base): Remove
7623 parameter.
7624 (tui_source_window_base::refill): Update.
7625 * tui/tui-stack.h (struct tui_locator_window)
7626 <tui_locator_window>: Update.
7627 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7628 Default the constructor.
7629 * tui/tui-regs.h (struct tui_data_item_window)
7630 <tui_data_item_window>: Default the constructor.
7631 (struct tui_data_window) <tui_data_window>: Likewise.
7632 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7633 Default the constructor.
7634 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7635 Default the constructor.
7636 <type>: Remove.
7637 (struct tui_win_info) <tui_win_info>: Default the constructor.
7638 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7639 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7640 Default the constructor.
7641
865a5aec
TT
76422020-02-22 Tom Tromey <tom@tromey.com>
7643
7644 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7645 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7646 * tui/tui-win.c (tui_resize_all): Don't call
7647 tui_delete_invisible_windows.
7648 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7649 done.
7650 (tui_set_layout): Update.
7651 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7652 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7653 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7654
e098d18c
TT
76552020-02-22 Tom Tromey <tom@tromey.com>
7656
7657 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7658 correctly.
7659
eb9c8874
TT
76602020-02-22 Tom Tromey <tom@tromey.com>
7661
7662 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7663
7eed1a8e
TT
76642020-02-22 Tom Tromey <tom@tromey.com>
7665
7666 * tui/tui-winsource.h (struct tui_source_window_iterator)
7667 <inner_iterator>: New etytypedef.
7668 <tui_source_window_iterator>: Take "end" parameter.
7669 <tui_source_window_iterator>: Take iterator.
7670 <operator*, advance>: Update.
7671 <m_iter>: Change type.
7672 <m_end>: New field.
7673 (struct tui_source_windows) <begin, end>: Update.
7674 * tui/tui-layout.c (tui_windows): New global.
7675 (tui_apply_current_layout): Clear tui_windows.
7676 (tui_layout_window::apply): Update tui_windows.
7677 * tui/tui-data.h (tui_windows): Declare.
7678 (all_tui_windows): Now inline function.
7679 (class tui_window_iterator, struct all_tui_windows): Remove.
7680
7c043ba6
TT
76812020-02-22 Tom Tromey <tom@tromey.com>
7682
7683 PR tui/17850:
7684 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7685 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7686 "height" argument.
7687 (class tui_layout_window) <get_sizes>: Likewise.
7688 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7689 argument.
7690 <get_sizes>: Add "height" argument.
7691 <m_vertical>: New field.
7692 * tui/tui-layout.c (tui_layout_split::clone): Update.
7693 (tui_layout_split::get_sizes): Add "height" argument.
7694 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7695 (tui_new_layout_command): Parse "-horizontal".
7696 (_initialize_tui_layout): Update help string.
7697 (tui_layout_split::specification): Add "-horizontal" when needed.
7698 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7699 argument.
7700 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7701 New methods.
7702
6bc56648
TT
77032020-02-22 Tom Tromey <tom@tromey.com>
7704
7705 * tui/tui-layout.h (enum tui_adjust_result): New.
7706 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7707 (class tui_layout_window) <adjust_size>: Return
7708 tui_adjust_result. Rewrite.
7709 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7710 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7711
c22fef7e
TT
77122020-02-22 Tom Tromey <tom@tromey.com>
7713
7714 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7715 parameter and return types.
7716 (class tui_layout_base) <specification>: Add "depth".
7717 (class tui_layout_window) <specification>: Add "depth".
7718 (class tui_layout_split) <specification>: Add "depth".
7719 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7720 and return types.
7721 (tui_new_layout_command): Parse sub-layouts.
7722 (_initialize_tui_layout): Update help string.
7723 (tui_layout_window::specification): Add "depth".
7724 (add_layout_command): Update.
7725
ee325b61
TT
77262020-02-22 Tom Tromey <tom@tromey.com>
7727
7728 * NEWS: Add "tui new-layout" item.
7729 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7730 Add new-layout command to help text.
7731 (validate_window_name): New function.
7732 (tui_new_layout_command): New function.
7733 (_initialize_tui_layout): Register "new-layout".
7734 (tui_layout_window::specification): New method.
7735 (tui_layout_window::specification): New method.
7736 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7737 method.
7738 (class tui_layout_window) <specification>: New method.
7739 (class tui_layout_split) <specification>: New method.
7740
416eb92d
TT
77412020-02-22 Tom Tromey <tom@tromey.com>
7742
7743 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7744 * tui/tui-win.c (window_name_completer): Update comment.
7745 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7746 Declare method.
7747 (class tui_layout_window) <replace_window>: Likewise.
7748 (class tui_layout_split) <replace_window>: Likewise.
7749 (tui_set_layout): Don't declare.
7750 (tui_set_initial_layout): Declare function.
7751 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7752 (asm_regs_layout): New globals.
7753 (tui_current_layout, show_layout): Remove.
7754 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7755 (find_layout, tui_apply_layout): New function.
7756 (layout_completer): Remove.
7757 (tui_next_layout): Reimplement.
7758 (tui_next_layout_command): New function.
7759 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7760 (tui_regs_layout): Reimplement.
7761 (tui_regs_layout_command): New function.
7762 (extract_display_start_addr): Rewrite.
7763 (next_layout, prev_layout): Remove.
7764 (tui_layout_window::replace_window): New method.
7765 (tui_layout_split::replace_window): New method.
7766 (destroy_layout): New function.
7767 (layout_list): New global.
7768 (add_layout_command): New function.
7769 (initialize_layouts): Update.
7770 (tui_layout_command): New function.
7771 (_initialize_tui_layout): Install "layout" commands.
7772 * tui/tui-data.h (enum tui_layout_type): Remove.
7773 (tui_current_layout): Don't declare.
7774
0dbc2fc7
TT
77752020-02-22 Tom Tromey <tom@tromey.com>
7776
7777 * tui/tui-regs.c (tui_reg_layout): Remove.
7778 (tui_reg_command): Use tui_regs_layout.
7779 * tui/tui-layout.h (tui_reg_command): Declare.
7780 * tui/tui-layout.c (tui_reg_command): New function.
7781
5afe342e
TT
77822020-02-22 Tom Tromey <tom@tromey.com>
7783
7784 * tui/tui.c (tui_rl_delete_other_windows): Call
7785 tui_remove_some_windows.
7786 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7787 Declare method.
7788 (class tui_layout_window) <remove_windows>: New method.
7789 (class tui_layout_split) <remove_windows>: Declare.
7790 (tui_remove_some_windows): Declare.
7791 * tui/tui-layout.c (tui_remove_some_windows): New function.
7792 (tui_layout_split::remove_windows): New method.
7793
427326a8
TT
77942020-02-22 Tom Tromey <tom@tromey.com>
7795
7796 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7797 * tui/tui-layout.h (tui_next_layout): Declare.
7798 * tui/tui-layout.c (tui_next_layout): New function.
7799
3fe12b6d
TT
78002020-02-22 Tom Tromey <tom@tromey.com>
7801
7802 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7803 correct coordinates.
7804
59b8b5d2
TT
78052020-02-22 Tom Tromey <tom@tromey.com>
7806
7807 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7808 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7809 DATA_WIN case.
7810
2a3d458b
TT
78112020-02-22 Tom Tromey <tom@tromey.com>
7812
7813 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7814 TUI_DISASM_WIN, not tui_win_list.
7815
3f0cbb04
TT
78162020-02-22 Tom Tromey <tom@tromey.com>
7817
7818 * valprint.c (generic_val_print_enum_1)
7819 (val_print_type_code_flags): Style member names.
7820 * rust-lang.c (val_print_struct, rust_print_enum)
7821 (rust_print_struct_def, rust_internal_print_type): Style member
7822 names.
7823 * p-valprint.c (pascal_object_print_value_fields): Style member
7824 names. Only call fprintf_symbol_filtered for static members.
7825 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7826 * f-valprint.c (f_val_print): Style member names.
7827 * f-typeprint.c (f_type_print_base): Style member names.
7828 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7829 call fprintf_symbol_filtered for static members.
7830 (cp_print_class_member): Style member names.
7831 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7832 member names.
7833 * ada-valprint.c (ada_print_scalar): Style enum names.
7834 (ada_val_print_enum): Likewise.
7835 * ada-typeprint.c (print_enum_type): Style enum names.
7836
d4d947ae
TT
78372020-02-21 Tom Tromey <tom@tromey.com>
7838
7839 * psympriv.h (struct partial_symtab): Update comment.
7840
e94e944b
TT
78412020-02-21 Tom Tromey <tromey@adacore.com>
7842
7843 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7844 type is CORE_ADDR.
7845
1eb73179
TV
78462020-02-21 Tom de Vries <tdevries@suse.de>
7847
7848 PR gdb/25534
7849 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7850 if dependencies[i]->user != NULL.
7851
4f180d53
AT
78522020-02-21 Ali Tamur <tamur@google.com>
7853
7854 * dwarf2/read.c (dwarf2_name): Add null check.
7855
22b6cd70
TT
78562020-02-20 Tom Tromey <tom@tromey.com>
7857
7858 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7859 ">=", in binary search.
7860 (dwarf2_find_containing_comp_unit): New overload.
7861 (run_test): New self-test.
7862 (_initialize_dwarf2_read): Register new test.
7863
bd0cf5a6
NC
78642020-02-20 Nelson Chu <nelson.chu@sifive.com>
7865
7866 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7867 * riscv-tdep.h: Likewise.
7868 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7869 rv32-only CSR.
7870 * features/riscv/64bit-csr.xml: Regenerated.
7871
3f702acd
SDJ
78722020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7873 Tom Tromey <tom@tromey.com>
7874
7875 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7876 of 'fputc_unfiltered'.
7877 (putchar_unfiltered): Call 'fputc_unfiltered'.
7878 (fputc_unfiltered): Call 'fputs_unfiltered'.
7879
d13c7322
AB
78802020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7881
7882 * config.in: Regenerate.
7883 * configure: Regenerate.
7884 * configure.ac: Add --with-python-libdir option.
7885 * main.c: Use WITH_PYTHON_LIBDIR.
7886
869d8950
TT
78872020-02-19 Tom Tromey <tom@tromey.com>
7888
7889 * symtab.c (general_symbol_info::compute_and_set_names): Use
7890 obstack_strndup. Simplify call to symbol_set_demangled_name.
7891
298e9637
SM
78922020-02-19 Simon Marchi <simon.marchi@efficios.com>
7893
7894 * dwarf2/read.c (allocate_signatured_type_table,
7895 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7896 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7897 Remove objfile parameter, update all callers.
7898
08410482
DE
78992020-02-19 Doug Evans <dje@google.com>
7900
7901 PR rust/25535
7902 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7903 rust_enum_variant calculation.
7904
dfdeeca1
TT
79052020-02-19 Tom Tromey <tromey@adacore.com>
7906
7907 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7908
2ef5453b
TT
79092020-02-19 Tom Tromey <tromey@adacore.com>
7910
7911 * ada-lang.c (cache_symbol): Use obstack_strdup.
7912
9f1528a1
AB
79132020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7914
7915 * configure: Regenerate.
7916
d3c22fa8
TT
79172020-02-19 Tom Tromey <tromey@adacore.com>
7918
7919 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7920 NULL check.
7921
bf84f706
MR
79222020-02-19 Maciej W. Rozycki <macro@wdc.com>
7923
7924 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7925
d1c9b20f
AB
79262020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7927
7928 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7929 if GDBSERVER is not defined.
7930 (riscv_tdesc_cache): Likewise, also store const target_desc.
7931 (STATIC_IN_GDB): Define.
7932 (riscv_create_target_description): Update declaration with
7933 STATIC_IN_GDB.
7934 (riscv_lookup_target_description): New function, only define if
7935 GDBSERVER is not defined.
7936 * arch/riscv.h (riscv_create_target_description): Declare only
7937 when GDBSERVER is defined.
7938 (riscv_lookup_target_description): New declaration when GDBSERVER
7939 is not defined.
7940 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7941 (riscv_linux_read_features): ...this, and return
7942 riscv_gdbarch_features instead of target_desc.
7943 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7944 (riscv_linux_read_description): Rename to...
7945 (riscv_linux_read_features): ...this.
7946 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7947 Update to use riscv_gdbarch_features and
7948 riscv_lookup_target_description.
7949 * riscv-tdep.c (riscv_find_default_target_description): Use
7950 riscv_lookup_target_description instead of
7951 riscv_create_target_description.
7952
373d7ac0
SM
79532020-02-18 Simon Marchi <simon.marchi@efficios.com>
7954
7955 * valprint.c (generic_val_print_enum_1): When printing a flag
7956 enum with value 0 and there is no enumerator with value 0, print
7957 just "0" instead of "(unknown: 0x0)".
7958
b29a2df0
SM
79592020-02-18 Simon Marchi <simon.marchi@efficios.com>
7960
7961 * valprint.c (generic_val_print_enum_1): Print unknown part of
7962 flag enum in hex.
7963
6740f0cc
SM
79642020-02-18 Simon Marchi <simon.marchi@efficios.com>
7965
7966 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7967 flag enums to contain duplicate enumerators.
7968 * valprint.c (generic_val_print_enum_1): Update comment.
7969
edd45eb0
SM
79702020-02-18 Simon Marchi <simon.marchi@efficios.com>
7971
7972 * dwarf2/read.c: Include "count-one-bits.h".
7973 (update_enumeration_type_from_children): If an enumerator has
7974 multiple bits set, don't treat the enumeration as a "flag enum".
7975 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7976 of flag enums have 0 or 1 bit set.
7977
6d0cf446
BE
79782020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7979
7980 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7981 conversion.
7982 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7983 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7984 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7985 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7986 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7987
7001c1b7
SM
79882020-02-18 Simon Marchi <simon.marchi@efficios.com>
7989
7990 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7991
fdb61c6c
SM
79922020-02-14 Simon Marchi <simon.marchi@efficios.com>
7993
7994 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7995 displaced_step_closure_up.
7996 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7997 (struct displaced_step_closure_up):
7998 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7999 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8000 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8001 Likewise.
8002 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8003 * gdbarch.c, gdbarch.h: Re-generate.
8004 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8005 displaced_step_closure_up.
8006 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8007 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8008 * infrun.h (displaced_step_closure_up): New type alias.
8009 (struct displaced_step_inferior_state) <step_closure>: Change
8010 type to displaced_step_closure_up.
8011 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8012 displaced_step_closure_up.
8013 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8014
a4a38eb4
TT
80152020-02-14 Tom Tromey <tom@tromey.com>
8016
8017 * minidebug.c (gnu_debug_key): New global.
8018 (find_separate_debug_file_in_section): Use it.
8019
e8217e61
SM
80202020-02-14 Simon Marchi <simon.marchi@efficios.com>
8021
8022 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8023 std::unique_ptr.
8024 * gdbarch.c: Re-generate.
8025 * gdbarch.h: Re-generate.
8026 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8027 change.
8028 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8029 type to std::unique_ptr.
8030 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8031 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8032 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8033 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8034 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8035 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8036 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8037 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8038 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8039
d8d83535
SM
80402020-02-14 Simon Marchi <simon.marchi@efficios.com>
8041
8042 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8043 std::unique_ptr.
8044 (displaced_step_clear): Rename to...
8045 (displaced_step_reset): ... this. Just call displaced->reset ().
8046 (displaced_step_clear_cleanup): Rename to...
8047 (displaced_step_reset_cleanup): ... this.
8048 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8049 (displaced_step_fixup): Likewise.
8050 (resume_1): Likewise.
8051 (handle_inferior_event): Restore child's memory before calling
8052 displaced_step_fixup on the parent.
8053 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8054 to std::unique_ptr.
8055 <step_closure>: Change type to std::unique_ptr.
8056
5f661e03
SM
80572020-02-14 Simon Marchi <simon.marchi@efficios.com>
8058
8059 * arm-tdep.c: Include count-one-bits.h.
8060 (cleanup_block_store_pc): Use count_one_bits.
8061 (cleanup_block_load_pc): Use count_one_bits.
8062 (arm_copy_block_xfer): Use count_one_bits.
8063 (thumb2_copy_block_xfer): Use count_one_bits.
8064 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8065 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8066 (thumb_get_next_pcs_raw): Use count_one_bits.
8067 (arm_get_next_pcs_raw): Use count_one_bits_l.
8068 * arch/arm.c (bitcount): Remove.
8069 * arch/arm.h (bitcount): Remove.
8070
8084e579
TT
80712020-02-14 Tom Tromey <tromey@adacore.com>
8072
8073 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8074 Update.
8075 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8076 * dwarf2/loc.c (call_site_find_chain_1): Return
8077 unique_xmalloc_ptr.
8078 (call_site_find_chain): Likewise.
8079
258bf0ee
RB
80802020-02-14 Richard Biener <rguenther@suse.de>
8081
8082 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8083 on expression with division operators.
8084
f98a8458
AKS
80852020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8086
8087 * MAINTAINERS (Write After Approval): Adding myself.
8088
d1437c0e
TT
80892020-02-12 Tom Tromey <tom@tromey.com>
8090
8091 * event-loop.c (event_data, gdb_event, event_handler_func):
8092 Remove.
8093
3d4560f7
TT
80942020-02-12 Tom Tromey <tom@tromey.com>
8095
8096 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8097 (dwarf2_frame_objfile_data): Add comment.
8098 (find_comp_unit, set_comp_unit): New functions.
8099 (dwarf2_frame_find_fde): Use find_comp_unit.
8100 (dwarf2_build_frame_info): Use set_comp_unit.
8101
21982304
TT
81022020-02-12 Tom Tromey <tom@tromey.com>
8103
8104 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8105 (comp_unit): Don't initialize objfile.
8106 (execute_cfa_program): Add text_offset parameter.
8107 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8108 (dwarf2_frame_cache): Update.
8109 (dwarf2_build_frame_info): Don't set "objfile" member.
8110
4debb237
TT
81112020-02-12 Tom Tromey <tom@tromey.com>
8112
8113 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8114 (decode_frame_entry): Likewise.
8115 (dwarf2_build_frame_info): Update.
8116
0d404d44
TT
81172020-02-12 Tom Tromey <tom@tromey.com>
8118
8119 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8120 (decode_frame_entry_1): Use the comp_unit obstack.
8121
a7a3ae5c
TT
81222020-02-12 Tom Tromey <tom@tromey.com>
8123
8124 * dwarf2/frame.c (struct comp_unit): Add initializers and
8125 constructor.
8126 (dwarf2_frame_objfile_data): Store a comp_unit.
8127 (dwarf2_frame_find_fde): Update.
8128 (dwarf2_build_frame_info): Use "new".
8129
a9d65418
TT
81302020-02-12 Tom Tromey <tom@tromey.com>
8131
8132 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8133 (dwarf2_fde_table): Typedef for std::vector.
8134 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8135 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8136 (decode_frame_entry): Update.
8137 (dwarf2_build_frame_info): Use "new".
8138
7559c217
CB
81392020-02-12 Christian Biesinger <cbiesinger@google.com>
8140
8141 * arm-tdep.c (arm_gdbarch_init): Update.
8142 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8143 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8144 have_neon, is_m>: Change to bool.
8145
aeefc73c
CB
81462020-02-12 Christian Biesinger <cbiesinger@google.com>
8147
8148 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8149
d27b8e5f
TT
81502020-02-12 Tom Tromey <tom@tromey.com>
8151
8152 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8153
cd5900f3
HD
81542020-02-12 Hannes Domani <ssbssa@yahoo.de>
8155
8156 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8157 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8158
f056b22b
TT
81592020-02-11 Tom Tromey <tom@tromey.com>
8160
8161 * psymtab.h: Update comment.
8162
f92ff6b5
TT
81632020-02-11 Tom Tromey <tom@tromey.com>
8164
8165 * gdb_obstack.h (struct auto_obstack): Use
8166 DISABLE_COPY_AND_ASSIGN.
8167
3fd6912b
TT
81682020-02-11 Tom Tromey <tom@tromey.com>
8169
8170 * dwarf2/frame.h (struct objfile): Don't forward declare.
8171
69ed9b74
CB
81722020-02-11 Christian Biesinger <cbiesinger@google.com>
8173
8174 * cris-tdep.c (cris_supply_gregset): Change signature to match
8175 what struct regset expects.
8176 (cris_regset): New struct.
8177 (fetch_core_registers): Remove.
8178 (cris_iterate_over_regset_sections): New function.
8179 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8180 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8181
bda874f6
CB
81822020-02-11 Christian Biesinger <cbiesinger@google.com>
8183
8184 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8185 registers.
8186
754e1564
CB
81872020-02-11 Christian Biesinger <cbiesinger@google.com>
8188
8189 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8190
8ddd8e0e
SM
81912020-02-11 Simon Marchi <simon.marchi@efficios.com>
8192
8193 * configure: Re-generate.
8194
898e7f60
SM
81952020-02-11 Simon Marchi <simon.marchi@efficios.com>
8196
8197 * configure: Re-generate.
8198
58df732b
SM
81992020-02-11 Simon Marchi <simon.marchi@efficios.com>
8200
8201 * acinclude: Update warning.m4 path.
8202 * warning.m4: Move to gdbsupport.
8203
da5bd37e
TT
82042020-02-11 Tom Tromey <tromey@adacore.com>
8205
8206 * remote.c (remote_console_output): Update.
8207 * printcmd.c (printf_command): Update.
8208 * event-loop.c (gdb_wait_for_event): Update.
8209 * linux-nat.c (sigchld_handler): Update.
8210 * remote-sim.c (gdb_os_write_stdout): Update.
8211 (gdb_os_flush_stdout): Update.
8212 (gdb_os_flush_stderr): Update.
8213 (gdb_os_write_stderr): Update.
8214 * exceptions.c (print_exception): Update.
8215 * remote-fileio.c (remote_fileio_func_read): Update.
8216 (remote_fileio_func_write): Update.
8217 * tui/tui.c (tui_enable): Update.
8218 * tui/tui-interp.c (tui_interp::init): Update.
8219 * utils.c (init_page_info): Update.
8220 (putchar_unfiltered, fputc_unfiltered): Update.
8221 (gdb_flush): Update.
8222 (emit_style_escape): Update.
8223 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8224 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8225 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8226 (stderr_file::write): Update.
8227 (stderr_file::puts): Update.
8228 * ui-file.h (ui_file_isatty, ui_file_write)
8229 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8230 (ui_file_puts): Don't declare.
8231
85f0dd3c
TV
82322020-02-10 Tom de Vries <tdevries@suse.de>
8233
8234 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8235 sentinel to char *.
8236
2e927613
TV
82372020-02-09 Tom de Vries <tdevries@suse.de>
8238
8239 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8240 filename if it matches "<artificial>".
8241
6bafc845
HD
82422020-02-09 Hannes Domani <ssbssa@yahoo.de>
8243
8244 * windows-tdep.c (struct enum_value_name): New struct.
8245 (create_enum): New function.
8246 (windows_get_siginfo_type): Create and use enum types.
8247
7928d571
HD
82482020-02-09 Hannes Domani <ssbssa@yahoo.de>
8249
8250 * NEWS: Mention $_siginfo support for Windows.
8251 * windows-nat.c (handle_exception): Set siginfo_er.
8252 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8253 (windows_xfer_siginfo): New function.
8254 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8255 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8256 (init_windows_gdbarch_data): New function.
8257 (get_windows_gdbarch_data): New function.
8258 (windows_get_siginfo_type): New function.
8259 (windows_init_abi): Register windows_get_siginfo_type.
8260 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8261
6751ebae
TT
82622020-02-08 Tom Tromey <tom@tromey.com>
8263
8264 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8265 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8266 <keep>: Declare method.
8267 <m_keep>: Remove member.
8268 <~cutu_reader>: Remove.
8269 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8270 (cutu_reader::cutu_reader): Update.
8271 (cutu_reader::keep): Rename from ~cutu_reader.
8272 (process_psymtab_comp_unit, build_type_psymtabs_1)
8273 (process_skeletonless_type_unit, load_partial_comp_unit)
8274 (load_full_comp_unit, dwarf2_read_addr_index)
8275 (read_signatured_type): Update.
8276
135f5437
TT
82772020-02-08 Tom Tromey <tom@tromey.com>
8278
8279 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8280 "want_partial_unit" parameter.
8281 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8282 Inline check for DW_TAG_partial_unit.
8283 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8284
9f66ff1c
TT
82852020-02-08 Tom Tromey <tom@tromey.com>
8286
8287 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8288 read.c.
8289 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8290 read.c.
8291
c8a7a66f
TT
82922020-02-08 Tom Tromey <tom@tromey.com>
8293
8294 * dwarf2/read.c (read_address): Move to comp-unit.c.
8295 (dwarf2_rnglists_process, dwarf2_ranges_process)
8296 (read_attribute_value, dwarf_decode_lines_1)
8297 (var_decode_location, decode_locdesc): Update.
8298 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8299 read.c. Remove "cu" parameter.
8300 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8301 method.
8302
8266302d
TT
83032020-02-08 Tom Tromey <tom@tromey.com>
8304
8305 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8306 (read_indirect_line_string): Update.
8307 * dwarf2/comp-unit.c (read_offset): Remove.
8308 (read_comp_unit_head): Update.
8309 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8310 method.
8311 (read_offset): Don't declare.
8312
4057dfde
TT
83132020-02-08 Tom Tromey <tom@tromey.com>
8314
8315 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8316 * dwarf2/read.c (struct comp_unit_head): Move to
8317 dwarf2/comp-unit.h.
8318 (enum class rcuh_kind): Move to comp-unit.h.
8319 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8320 (read_comp_unit_head, error_check_comp_unit_head)
8321 (read_and_check_comp_unit_head): Move to comp-unit.c.
8322 (read_offset, dwarf_unit_type_name): Likewise.
8323 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8324 (cutu_reader::cutu_reader, read_call_site_scope)
8325 (find_partial_die, follow_die_offset): Update.
8326 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8327
24aa364d
TT
83282020-02-08 Tom Tromey <tom@tromey.com>
8329
8330 * dwarf2/read.c (read_offset_1): Move to leb.c.
8331 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8332 (dwarf_decode_macro_bytes): Update.
8333 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8334 * dwarf2/leb.h (read_offset): Declare.
8335
2c7d5afc
TT
83362020-02-08 Tom Tromey <tom@tromey.com>
8337
8338 * dwarf2/read.c (dwarf2_section_size): Remove.
8339 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8340 Update.
8341 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8342
4075cb26
TT
83432020-02-08 Tom Tromey <tom@tromey.com>
8344
8345 * dwarf2/read.c (read_initial_length): Move to leb.c.
8346 * dwarf2/leb.h (read_initial_length): Declare.
8347 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8348 handle_nonstd parameter.
8349 * dwarf2/frame.c (read_initial_length): Remove.
8350 (decode_frame_entry_1): Update.
8351
09ba997f
TT
83522020-02-08 Tom Tromey <tom@tromey.com>
8353
8354 * dwarf2/loc.c (dwarf2_find_location_expression)
8355 (dwarf_evaluate_loc_desc::get_tls_address)
8356 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8357 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8358 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8359 (dwarf2_compile_property_to_c)
8360 (dwarf2_loc_desc_get_symbol_read_needs)
8361 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8362 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8363 (loclist_describe_location, loclist_tracepoint_var_ref)
8364 (loclist_generate_c_location): Update.
8365 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8366 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8367 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8368 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8369 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8370 (dwarf2_per_cu_data::addr_size)
8371 (dwarf2_per_cu_data::ref_addr_size)
8372 (dwarf2_per_cu_data::text_offset)
8373 (dwarf2_per_cu_data::addr_type): Now methods.
8374 (per_cu_header_read_in): Make per_cu "const".
8375 (dwarf2_version): Remove.
8376 (dwarf2_per_cu_data::int_type): Now a method.
8377 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8378 (set_die_type, read_array_type, read_subrange_index_type)
8379 (read_tag_string_type, read_subrange_type): Update.
8380 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8381 offset_size, ref_addr_size, text_offset, addr_type, version,
8382 objfile, int_type, addr_sized_int_type>: Declare methods.
8383
96c738c0
TT
83842020-02-08 Tom Tromey <tom@tromey.com>
8385
8386 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8387 Move earlier.
8388
8fdd972c
TT
83892020-02-08 Tom Tromey <tom@tromey.com>
8390
8391 * dwarf2/read.h (dwarf_line_debug): Declare.
8392 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8393 * dwarf2/read.c: Move line_header code to new files.
8394 (dwarf_line_debug): No longer static.
8395 * dwarf2/line-header.c: New file.
8396 * dwarf2/line-header.h: New file.
8397
03075812
TT
83982020-02-08 Tom Tromey <tom@tromey.com>
8399
8400 * dwarf2/read.c (struct line_header) <file_full_name,
8401 file_file_name>: Return unique_xmalloc_ptr.
8402 (line_header::file_file_name): Update.
8403 (line_header::file_full_name): Update.
8404 (dw2_get_file_names_reader): Update.
8405 (macro_start_file): Update.
8406
bb822404
TT
84072020-02-08 Tom Tromey <tom@tromey.com>
8408
8409 * dwarf2/read.c (struct line_header) <file_full_name,
8410 file_file_name>: Declare methods.
8411 (dw2_get_file_names_reader): Update.
8412 (file_file_name): Now a method.
8413 (file_full_name): Likewise.
8414 (macro_start_file): Update.
8415
009b64fc
TT
84162020-02-08 Tom Tromey <tom@tromey.com>
8417
8418 * dwarf2/read.c (dwarf_always_disassemble)
8419 (show_dwarf_always_disassemble): Move to loc.c.
8420 (_initialize_dwarf2_read): Move "always-disassemble" registration
8421 to loc.c.
8422 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8423 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8424 static.
8425 (show_dwarf_always_disassemble): Move from read.c.
8426 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8427
5895093f
TT
84282020-02-08 Tom Tromey <tom@tromey.com>
8429
8430 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8431 (create_quick_file_names_table): Return htab_up.
8432 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8433 Update.
8434 * dwarf2/read.h (struct dwarf2_per_objfile)
8435 <quick_file_names_table>: Now htab_up.
8436
b3b32279
TT
84372020-02-08 Tom Tromey <tom@tromey.com>
8438
8439 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8440
1d33d811
TT
84412020-02-08 Tom Tromey <tom@tromey.com>
8442
8443 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8444 Rewrite.
8445 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8446 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8447 (abbrev_table::abbrev_table): No longer inline.
8448 (ABBREV_HASH_SIZE): Remove.
8449 (abbrev_table::m_abbrevs): Now an htab_up.
8450
86de1d91
TT
84512020-02-08 Tom Tromey <tom@tromey.com>
8452
8453 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8454 (cutu_reader): Update.
8455 (build_type_psymtabs_1): Update.
8456 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8457 (abbrev_table::alloc_abbrev): Update.
8458 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8459 (abbrev_table::read): New static method, renamed from
8460 abbrev_table_read_table.
8461 (abbrev_table::alloc_abbrev)
8462 (abbrev_table::add_abbrev): Now private.
8463 (abbrev_table::abbrev_table): Now private.
8464 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8465
0335378b
TT
84662020-02-08 Tom Tromey <tom@tromey.com>
8467
8468 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8469 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8470 htab_up.
8471
48b490f2
TT
84722020-02-08 Tom Tromey <tom@tromey.com>
8473
8474 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8475 htab_up.
8476 (lookup_dwo_unit_in_dwp): Update.
8477 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8478 on obstack.
8479
bc68fb19
TT
84802020-02-08 Tom Tromey <tom@tromey.com>
8481
8482 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8483 obstack.
8484
d15acc42
TT
84852020-02-08 Tom Tromey <tom@tromey.com>
8486
8487 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8488 line_header_hash.
8489 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8490 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8491 Change type to htab_up.
8492
eaa5fa8b
TT
84932020-02-08 Tom Tromey <tom@tromey.com>
8494
8495 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8496 htab_up. Don't allocate on obstack.
8497 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8498 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8499 Change type to htab_up.
8500
b0b6a987
TT
85012020-02-08 Tom Tromey <tom@tromey.com>
8502
8503 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8504 Change type to htab_up.
8505 * dwarf2/read.c (create_signatured_type_table_from_index)
8506 (create_signatured_type_table_from_debug_names)
8507 (create_all_type_units, add_type_unit)
8508 (lookup_dwo_signatured_type, lookup_signatured_type)
8509 (process_skeletonless_type_unit): Update.
8510 (create_debug_type_hash_table, create_debug_types_hash_table):
8511 Change type of types_htab.
8512 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8513 htab_up. Don't allocate on obstack.
8514 (create_cus_hash_table): Change type of cus_htab parameter.
8515 (struct dwo_file) <cus, tus>: Now htab_up.
8516 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8517 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8518 (queue_and_load_all_dwo_tus): Update.
8519 * dwarf2/index-write.c (write_gdbindex): Update.
8520 (write_debug_names): Update.
8521
39856def
TT
85222020-02-08 Tom Tromey <tom@tromey.com>
8523
8524 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8525 dwarf2/read.c. Remove "next" member. Add constructor ntad
8526 destructor.
8527 (struct dwarf2_per_objfile) <queue>: New member.
8528 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8529 dwarf2/read.h.
8530 (dwarf2_queue, dwarf2_queue_tail): Remove.
8531 (class dwarf2_queue_guard): Add parameter to constructor. Use
8532 DISABLE_COPY_AND_ASSIGN.
8533 <m_per_objfile>: New member.
8534 <~dwarf2_queue_guard>: Rewrite.
8535 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8536 Update.
8537 (~dwarf2_queue_item): New.
8538
3e225074
TT
85392020-02-08 Tom Tromey <tom@tromey.com>
8540
8541 * dwarf2/read.c (struct die_info) <has_children>: New member.
8542 (dw2_get_file_names_reader): Remove has_children.
8543 (dw2_get_file_names): Update.
8544 (read_cutu_die_from_dwo): Remove has_children.
8545 (cutu_reader::init_tu_and_read_dwo_dies)
8546 (cutu_reader::cutu_reader): Update.
8547 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8548 Remove has_children.
8549 (build_type_psymtabs_1, process_skeletonless_type_unit)
8550 (load_partial_comp_unit, load_full_comp_unit): Update.
8551 (create_dwo_cu_reader): Remove has_children.
8552 (create_cus_hash_table, read_die_and_children): Update.
8553 (read_full_die_1,read_full_die): Remove has_children.
8554 (read_signatured_type): Update.
8555 (class cutu_reader) <has_children>: Remove.
8556
82ca8957
TT
85572020-02-08 Tom Tromey <tom@tromey.com>
8558
8559 * dwarf2/expr.c: Rename from dwarf2expr.c.
8560 * dwarf2/expr.h: Rename from dwarf2expr.h.
8561 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8562 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8563 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8564 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8565 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8566 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8567 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8568 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8569 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8570 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8571 * dwarf2/loc.c: Rename from dwarf2loc.c.
8572 * dwarf2/loc.h: Rename from dwarf2loc.h.
8573 * dwarf2/read.c: Rename from dwarf2read.c.
8574 * dwarf2/read.h: Rename from dwarf2read.h.
8575 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8576 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8577 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8578 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8579 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8580 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8581 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8582 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8583 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8584 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8585 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8586 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8587 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8588 Update.
8589 * Makefile.in (COMMON_SFILES): Update.
8590 (HFILES_NO_SRCDIR): Update.
8591
9e35d499
TT
85922020-02-08 Tom Tromey <tom@tromey.com>
8593
8594 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8595 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8596
1eba2311
TT
85972020-02-08 Tom Tromey <tom@tromey.com>
8598
8599 * dwarf2read.h (struct die_info): Don't declare.
8600
e41c2da2
TT
86012020-02-08 Tom Tromey <tom@tromey.com>
8602
8603 * dwarf2read.h (die_info_ptr): Remove typedef.
8604
4fc6c0d5
TT
86052020-02-08 Tom Tromey <tom@tromey.com>
8606
8607 * dwarf2read.c (read_call_site_scope)
8608 (handle_data_member_location, dwarf2_add_member_fn)
8609 (mark_common_block_symbol_computed, read_common_block)
8610 (attr_to_dynamic_prop, partial_die_info::read)
8611 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8612 (dwarf2_symbol_mark_computed, set_die_type): Update.
8613 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8614 method.
8615 (attr_form_is_block): Don't declare.
8616 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8617
cd6c91b4
TT
86182020-02-08 Tom Tromey <tom@tromey.com>
8619
8620 * dwarf2read.c (dwarf2_find_base_address, )
8621 (read_call_site_scope, rust_containing_type)
8622 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8623 (handle_data_member_location, dwarf2_add_member_fn)
8624 (get_alignment, read_structure_type, process_structure_scope)
8625 (mark_common_block_symbol_computed, read_common_block)
8626 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8627 (partial_die_info::read, read_attribute_value, new_symbol)
8628 (lookup_die_type, dwarf2_get_ref_die_offset)
8629 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8630 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8631 (dwarf2_symbol_mark_computed): Update.
8632 * dwarf2/attribute.h (struct attribute) <value_as_address,
8633 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8634 methods.
8635 (value_as_address, attr_form_is_section_offset)
8636 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8637 * dwarf2/attribute.c (attribute::value_as_address)
8638 (attribute::form_is_section_offset, attribute::form_is_constant)
8639 (attribute::form_is_ref): Now methods.
8640
162dce55
TT
86412020-02-08 Tom Tromey <tom@tromey.com>
8642
8643 * dwarf2read.c (struct attribute, DW_STRING)
8644 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8645 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8646 (attr_form_is_block, attr_form_is_section_offset)
8647 (attr_form_is_constant, attr_form_is_ref): Move.
8648 * dwarf2/attribute.h: New file.
8649 * dwarf2/attribute.c: New file, from dwarf2read.c.
8650 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8651
3054dd54
TT
86522020-02-08 Tom Tromey <tom@tromey.com>
8653
8654 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8655 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8656 Move.
8657 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8658 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8659 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8660 abbrev.c.
8661 * dwarf2/abbrev.h: New file.
8662 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8663 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8664
96b79293
TT
86652020-02-08 Tom Tromey <tom@tromey.com>
8666
8667 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8668 (dwarf2_section_size, dwarf2_get_section_info)
8669 (create_signatured_type_table_from_debug_names)
8670 (create_addrmap_from_aranges, read_debug_names_from_section)
8671 (get_gdb_index_contents_from_section, read_comp_unit_head)
8672 (error_check_comp_unit_head, read_abbrev_offset)
8673 (create_debug_type_hash_table, init_cu_die_reader)
8674 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8675 (read_comp_units_from_section, create_cus_hash_table)
8676 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8677 (create_dwp_v2_section, dwarf2_rnglists_process)
8678 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8679 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8680 (read_indirect_string_from_dwz, read_addr_index_1)
8681 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8682 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8683 (fill_in_loclist_baton): Update.
8684 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8685 get_containing_section, get_bfd_owner, get_bfd_section,
8686 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8687 (dwarf2_read_section, get_section_name, get_section_file_name)
8688 (get_containing_section, get_section_bfd_owner)
8689 (get_section_bfd_section, get_section_name, get_section_file_name)
8690 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8691 declare.
8692 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8693 (dwarf2_section_info::get_bfd_owner)
8694 (dwarf2_section_info::get_bfd_section)
8695 (dwarf2_section_info::get_name)
8696 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8697 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8698 (dwarf2_section_info::read): Now methods.
8699 * dwarf-index-write.c (class debug_names): Update.
8700
2c86cff9
TT
87012020-02-08 Tom Tromey <tom@tromey.com>
8702
8703 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8704 Move to dwarf2/section.h.
8705 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8706 (get_section_bfd_section, get_section_name)
8707 (get_section_file_name, get_section_id, get_section_flags)
8708 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8709 dwarf2/section.c.
8710 * dwarf2/section.h: New file.
8711 * dwarf2/section.c: New file, from dwarf2read.c.
8712 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8713
f4382c45
TT
87142020-02-08 Tom Tromey <tom@tromey.com>
8715
8716 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8717 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8718 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8719 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8720 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8721 * dwarf2/leb.h: New file, from dwarf2read.c.
8722 * dwarf2/leb.c: New file, from dwarf2read.c.
8723 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8724 Remove.
8725 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8726 (COMMON_SFILES): Add dwarf2/leb.c.
8727
01840b7a
JB
87282020-02-08 Joel Brobecker <brobecker@adacore.com>
8729
8730 GDB 9.1 released.
8731
dfcb27e4
IB
87322020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8733
8734 PR gdb/25190:
aac66a4c
SM
8735 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8736 * gdb/remote.c (remote_console_output): Update.
8737 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8738 (ui_file_puts): ...this.
8739 * gdb/ui-file.h (ui_file_puts): Add declaration.
8740 * gdb/utils.c (emit_style_escape): Update.
8741 (flush_wrap_buffer): Update.
8742 (fputs_maybe_filtered): Update.
8743 (fputs_unfiltered): Add function.
dfcb27e4 8744
faa17681
IB
87452020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8746
aac66a4c
SM
8747 * gdb/event-loop.c (gdb_wait_for_event): Update.
8748 * gdb/printcmd.c (printf_command): Update.
8749 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8750 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8751 (gdb_os_flush_stderr): Update.
8752 * gdb/remote.c (remote_console_output): Update.
8753 * gdb/ui-file.c (gdb_flush): Rename to...
8754 (ui_file_flush): ...this.
8755 (stderr_file::write): Update.
8756 (stderr_file::puts): Update.
8757 * gdb/ui-file.h (gdb_flush): Rename to...
8758 (ui_file_flush): ...this.
8759 * gdb/utils.c (gdb_flush): Add function.
8760 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8761
5abbbe1d
TT
87622020-02-07 Tom Tromey <tromey@adacore.com>
8763
8764 PR breakpoints/24915:
8765 * source.c (find_and_open_source): Do not check basenames_may_differ.
8766
919adfe8
TT
87672020-02-07 Tom Tromey <tom@tromey.com>
8768
8769 * README: Update gdbserver documentation.
8770 * gdbserver: Move to top level.
8771 * configure.tgt (build_gdbserver): Remove.
8772 * configure.ac: Remove --enable-gdbserver.
8773 * configure: Rebuild.
8774 * Makefile.in (distclean): Don't mention gdbserver.
8775
1d5d29e7
SV
87762020-02-06 Shahab Vahedi <shahab@synopsys.com>
8777
8778 * source-cache.c (source_cache::ensure): Surround
8779 get_plain_source_lines with a try/catch.
8780 (source_cache::get_line_charpos): Get rid of try/catch
8781 and only check for the return value of "ensure".
8782 * tui/tui-source.c (tui_source_window::set_contents):
8783 Simplify "nlines" calculation.
8784
6eb1129c
SV
87852020-02-06 Shahab Vahedi <shahab@synopsys.com>
8786
8787 * MAINTAINERS (Write After Approval): Add myself.
8788
c6a42d11
CB
87892020-02-05 Christian Biesinger <cbiesinger@google.com>
8790
8791 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8792 function call.
8793
c8ecdda6
CB
87942020-02-05 Christian Biesinger <cbiesinger@google.com>
8795
8796 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8797
f6480e70
MR
87982020-02-05 Maciej W. Rozycki <macro@wdc.com>
8799
8800 * nat/riscv-linux-tdesc.h: New file.
8801 * nat/riscv-linux-tdesc.c: New file, taking code from...
8802 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8803 ... here.
8804 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8805 NATDEPFILES.
8806
dcc9fbc6
AB
88072020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8808
8809 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8810 we don't set the fake simulator ptid to the null_ptid.
8811
719546c4
SM
88122020-02-03 Simon Marchi <simon.marchi@efficios.com>
8813
8814 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8815 * gdbthread.h (class thread_info) <resumed>: Likewise.
8816 * infrun.c (resume_1): Likewise.
8817 (proceed): Likewise.
8818 (infrun_thread_stop_requested): Likewise.
8819 (stop_all_threads): Likewise.
8820 (handle_inferior_event): Likewise.
8821 (restart_threads): Likewise.
8822 (finish_step_over): Likewise.
8823 (keep_going_stepped_thread): Likewise.
8824 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8825 (linux_handle_extended_wait): Likewise.
8826 * record-btrace.c (get_thread_current_frame_id): Likewise.
8827 * record-full.c (record_full_wait_1): Likewise.
8828 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8829 * target.c (target_resume): Likewise.
8830 * thread.c (set_running_thread): Likewise.
8831
e409c542
AKS
88322020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8833
8834 * f-valprint.c (f77_print_array_1): Changed datatype of index
8835 variable to LONGEST from int to enable it to contain bound
8836 values correctly.
8837
ee98c0da
MR
88382020-02-03 Maciej W. Rozycki <macro@wdc.com>
8839
8840 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8841 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8842 offsets according to FLEN determined.
8843 (riscv_linux_nat_target::read_description): Determine FLEN
8844 dynamically.
8845 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8846 according to FLEN determined.
8847 (riscv_linux_nat_target::store_registers): Likewise.
8848
aa66aac4
SV
88492020-02-01 Shahab Vahedi <shahab@synopsys.com>
8850
8851 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8852 when reg->group is empty and reggroup is not.
8853
fd9faca8
TT
88542020-01-31 Tom Tromey <tromey@adacore.com>
8855
8856 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8857 Call beneath target's mourn_inferior after unpushing.
8858
42330a68
AB
88592020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8860
8861 PR tui/9765
8862 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8863 have enough lines to fill the screen, still return the lowest
8864 address we found.
8865
7a27a45b
AB
88662020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8867
8868 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8869 '-', '<', and '>' commands.
8870
c47f70e2
PA
88712020-01-29 Pedro Alves <palves@redhat.com>
8872 Sergio Durigan Junior <sergiodj@redhat.com>
8873
8874 * infcmd.c (construct_inferior_arguments): Assert that
8875 'argc' is greater than 0.
8876
5133a315
LM
88772020-01-29 Luis Machado <luis.machado@linaro.org>
8878
8879 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8880 (BRK_INSN_MASK): Define to 0xd4200000.
8881 (aarch64_program_breakpoint_here_p): New function.
8882 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8883 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8884 breakpoint.c.
8885 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8886 breakpoint.h
8887 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8888 call gdbarch_program_breakpoint_here_p.
8889 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8890 default_program_breakpoint_here_p, changed return type to bool and
8891 simplified.
8892 * breakpoint.h (program_breakpoint_here): Moved prototype to
8893 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8894 return type to bool.
8895 * gdbarch.c: Regenerate.
8896 * gdbarch.h: Regenerate.
8897 * gdbarch.sh (program_breakpoint_here_p): New method.
8898 * infrun.c (handle_signal_stop): Call
8899 gdbarch_program_breakpoint_here_p.
8900
168f8c6b
TT
89012020-01-26 Tom Tromey <tom@tromey.com>
8902
8903 * ctfread.c (struct ctf_fp_info): Reindent.
8904 (_initialize_ctfread): Remove.
8905
128a391f
TT
89062020-01-26 Tom Tromey <tom@tromey.com>
8907
8908 * psymtab.c (partial_map_expand_apply)
8909 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8910 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8911 (psym_print_stats, psym_expand_symtabs_for_function)
8912 (psym_map_symbol_filenames, psym_map_matching_symbols)
8913 (psym_expand_symtabs_matching)
8914 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8915 (maintenance_check_psymtabs): Use new methods.
8916 * psympriv.h (struct partial_symtab) <readin_p,
8917 get_compunit_symtab>: New methods.
8918 <readin, compunit_symtab>: Remove members.
8919 (struct standard_psymtab): New.
8920 (struct legacy_psymtab): Derive from standard_psymtab.
8921 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8922 standard_psymtab.
8923 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8924
0494dbec
TT
89252020-01-26 Tom Tromey <tom@tromey.com>
8926
8927 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8928 read_dependencies. Add assert.
8929 * psymtab.c (partial_symtab::read_dependencies): New method.
8930 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8931 method.
8932 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8933 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8934 read_dependencies.
8935 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8936 Add assert.
8937
8566b89b
TT
89382020-01-26 Tom Tromey <tom@tromey.com>
8939
8940 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8941 Call expand_psymtab.
8942 (xcoff_read_symtab): Call expand_psymtab.
8943 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8944 legacy_expand_psymtab.
8945 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8946 method.
8947 (struct legacy_psymtab) <expand_psymtab>: Implement.
8948 <legacy_expand_psymtab>: New member.
8949 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8950 (parse_partial_symbols): Set legacy_expand_psymtab.
8951 (psymtab_to_symtab_1): Change argument order. Call
8952 expand_psymtab.
8953 (new_psymtab): Set legacy_expand_psymtab.
8954 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8955 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8956 expand_psymtab.
8957 (dwarf2_psymtab::expand_psymtab): Rename from
8958 psymtab_to_symtab_1. Call expand_psymtab.
8959 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8960 (dbx_end_psymtab): Likewise.
8961 (dbx_psymtab_to_symtab_1): Change argument order. Call
8962 expand_psymtab.
8963 (dbx_read_symtab): Call expand_psymtab.
8964 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8965 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8966 (ctf_psymtab::read_symtab): Call expand_psymtab.
8967
077cbab2
TT
89682020-01-26 Tom Tromey <tom@tromey.com>
8969
8970 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8971 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8972 messages.
8973 * mdebugread.c (mdebug_read_symtab): Remove prints.
8974 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8975 assert.
8976 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8977
891813be
TT
89782020-01-26 Tom Tromey <tom@tromey.com>
8979
8980 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8981 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8982 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8983 legacy_symtab.
8984 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8985 * psymtab.c (psymtab_to_symtab): Call method.
8986 (dump_psymtab): Update.
8987 * psympriv.h (struct partial_symtab): Add virtual destructor.
8988 <read_symtab>: New method.
8989 (struct legacy_symtab): New.
8990 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8991 (struct pst_map) <pst>: Now a legacy_psymtab.
8992 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8993 (new_psymtab): Use legacy_psymtab.
8994 * dwarf2read.h (struct dwarf2_psymtab): New.
8995 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8996 * dwarf2read.c (dwarf2_create_include_psymtab)
8997 (dwarf2_build_include_psymtabs, create_type_unit_group)
8998 (create_partial_symtab, process_psymtab_comp_unit_reader)
8999 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9000 (set_partial_user): Use dwarf2_psymtab.
9001 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9002 (psymtab_to_symtab_1, process_full_comp_unit)
9003 (process_full_type_unit, dwarf2_ranges_read)
9004 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9005 (dwarf_decode_lines): Use dwarf2_psymtab.
9006 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9007 (add_address_entry_worker, write_one_signatured_type)
9008 (recursively_count_psymbols, recursively_write_psymbols)
9009 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9010 (write_debug_names): Likewise.
9011 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9012 <pst>: Now a legacy_psymtab.
9013 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9014 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9015 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9016 * ctfread.c (struct ctf_psymtab): New.
9017 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9018 ctf_psymtab.
9019 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9020 (create_partial_symtab): Return a ctf_psymtab.
9021 (scan_partial_symbols): Update.
9022
c3693a1d
TT
90232020-01-26 Tom Tromey <tom@tromey.com>
9024
9025 * xcoffread.c (xcoff_start_psymtab): Use new.
9026 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9027 renamed from start_psymtab_common.
9028 * psympriv.h (struct partial_symtab): Add new constructor.
9029 (start_psymtab_common): Don't declare.
9030 * mdebugread.c (parse_partial_symbols): Use new.
9031 * dwarf2read.c (create_partial_symtab): Use new.
9032 * dbxread.c (start_psymtab): Use new.
9033 * ctfread.c (create_partial_symtab): Use new.
9034
32caafd0
TT
90352020-01-26 Tom Tromey <tom@tromey.com>
9036
9037 * xcoffread.c (xcoff_end_psymtab): Use new.
9038 * psymtab.c (start_psymtab_common): Use new.
9039 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9040 Update.
9041 * psympriv.h (struct partial_symtab): Add parameters to
9042 constructor. Don't inline.
9043 (allocate_psymtab): Don't declare.
9044 * mdebugread.c (new_psymtab): Use new.
9045 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9046 * dbxread.c (dbx_end_psymtab): Use new.
9047
abaa2f23
TT
90482020-01-26 Tom Tromey <tom@tromey.com>
9049
9050 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9051 allocate_psymtab. Update documentation.
9052 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9053 allocate_psymtab. Do not use new.
9054 (allocate_psymtab): Use new. Update.
9055
6d94535f
TT
90562020-01-26 Tom Tromey <tom@tromey.com>
9057
9058 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9059 * psymtab.c (psym_print_stats): Update.
9060 * psympriv.h (struct partial_symtab) <readin,
9061 psymtabs_addrmap_supported, anonymous>: Now bool.
9062 * mdebugread.c (psymtab_to_symtab_1): Update.
9063 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9064 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9065 (process_full_comp_unit, process_full_type_unit): Update.
9066 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9067 * ctfread.c (psymtab_to_symtab): Update.
9068
6f17252b
TT
90692020-01-26 Tom Tromey <tom@tromey.com>
9070
9071 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9072 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9073 * psymtab.c (psymtab_storage): Delete psymtabs.
9074 (psymtab_storage::allocate_psymtab): Use new.
9075 (psymtab_storage::discard_psymtab): Use delete.
9076 * psympriv.h (struct partial_symtab): Add constructor and
9077 initializers.
9078
f6f1cebc
TT
90792020-01-26 Tom Tromey <tom@tromey.com>
9080
9081 * machoread.c: Do not include psympriv.h.
9082
e47e48f6
PW
90832020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9084
9085 * NEWS: Mention the new option and the set/show commands.
9086
a2fedca9
PW
90872020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9088
9089 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9090 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9091 (validate_exec_file): New variables, enums, functions.
9092 (exec_file_locate_attach, print_section_info): Style the filenames.
9093 (_initialize_exec): Install show_exec_file_mismatch_command and
9094 set_exec_file_mismatch_command.
9095 * gdbcore.h (validate_exec_file): Declare.
9096 * infcmd.c (attach_command): Call validate_exec_file.
9097 * remote.c ( remote_target::remote_add_inferior): Likewise.
9098
7ffa82e1
AB
90992020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9100
9101 * frame.c (find_frame_sal): Move call to get_next_frame into more
9102 inner scope.
9103 * inline-frame.c (inilne_state) <inline_state>: Update argument
9104 types.
9105 (inilne_state) <skipped_symbol>: Rename to...
9106 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9107 (skip_inline_frames): Build vector of skipped symbols and use this
9108 to reate the inline_state.
9109 (inline_skipped_symbol): Add a comment and some assertions, fetch
9110 skipped symbol from the list.
9111
3d92a3e3
AB
91122020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9113
9114 * buildsym.c (lte_is_less_than): Delete.
9115 (buildsym_compunit::end_symtab_with_blockvector): Create local
9116 lambda function to sort line table entries, and use
9117 std::stable_sort instead of std::sort.
9118 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9119 markers when looking for a previous line.
9120
94a72be7
AB
91212020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9122
9123 * dwarf2read.c (lnp_state_machine::record_line): Include
9124 end_sequence parameter in debug print out. Record the line if we
9125 are at an end_sequence marker even if it's not the start of a
9126 statement.
9127 * symmisc.c (maintenance_print_one_line_table): Print end of
9128 sequence markers with 'END' not '0'.
9129
53af73bf
PA
91302020-01-24 Pedro Alves <palves@redhat.com>
9131
9132 PR gdb/25410
9133 * thread.c (scoped_restore_current_thread::restore): Use
9134 switch_to_inferior_no_thread.
9135 * exec.c: Include "progspace-and-thread.h".
9136 (add_target_sections, remove_target_sections):
9137 scoped_restore_current_pspace_and_thread instead of
9138 scoped_restore_current_thread.
9139 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9140 and aspace to the inferior before calling clone_program_space.
9141 Remove stale comment.
9142
3050c6f4
CB
91432020-01-24 Christian Biesinger <cbiesinger@google.com>
9144
9145 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9146 (arm_netbsd_nat_target::fetch_registers): ...this.
9147 (arm_nbsd_nat_target::store_registers): Rename to...
9148 (arm_netbsd_nat_target::store_registers): ...this.
9149
73685c7e
CB
91502020-01-24 Christian Biesinger <cbiesinger@google.com>
9151
9152 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9153 register_t.
9154
89203d40
CB
91552020-01-24 Christian Biesinger <cbiesinger@google.com>
9156
9157 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9158 Update comment.
9159 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9160 Likewise.
9161 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9162 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9163 the correct replacement (iterate_over_regset_sections).
9164 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9165 Update comment.
9166
1ba1ac88
AB
91672020-01-24 Graham Markall <graham.markall@embecosm.com>
9168
9169 PR gdb/23718
9170 * gdb/python/python.c (execute_gdb_command): Call
9171 async_enable_stdin in catch block.
9172
f3364a6d
AB
91732020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9174
9175 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9176 SWITCH_THRU_ALL_UIS.
9177
733d0a67
AB
91782020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9179
9180 PR tui/9765
9181 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9182 comment, add extra parameter, and update to store previous symbol
9183 when appropriate.
9184 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9185 add extra parameter.
9186 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9187 remove unneeded parameter, add try/catch around gdb_print_insn,
9188 rewrite to add items to asm_lines vector.
9189 (tui_find_backward_disassembly_start_address): New function.
9190 (tui_find_disassembly_address): Updated throughout.
9191 (tui_disasm_window::set_contents): Update for changes to
9192 tui_disassemble.
9193 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9194 number of lines to scroll.
9195
b3b3bada
SM
91962020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9197
9198 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9199 (SECT_OFF_DATA): Likewise.
9200 (SECT_OFF_RODATA): Likewise.
9201 (SECT_OFF_TEXT): Likewise.
9202 (SECT_OFF_BSS): Likewise.
9203 (struct objfile) <text_section_offset, data_section_offset>: New
9204 methods.
9205 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9206 objfile::text_section_offset.
9207 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9208 * coffread.c (coff_symtab_read): Likewise.
9209 (enter_linenos): Likewise.
9210 (process_coff_symbol): Likewise.
9211 * ctfread.c (get_objfile_text_range): Likewise.
9212 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9213 Use objfile::data_section_offset.
9214 * dwarf2-frame.c (execute_cfa_program): Use
9215 objfile::text_section_offset.
9216 (dwarf2_frame_find_fde): Likewise.
9217 * dwarf2read.c (create_addrmap_from_index): Likewise.
9218 (create_addrmap_from_aranges): Likewise.
9219 (dw2_find_pc_sect_compunit_symtab): Likewise.
9220 (process_psymtab_comp_unit_reader): Likewise.
9221 (add_partial_symbol): Likewise.
9222 (add_partial_subprogram): Likewise.
9223 (process_full_comp_unit): Likewise.
9224 (read_file_scope): Likewise.
9225 (read_func_scope): Likewise.
9226 (read_lexical_block_scope): Likewise.
9227 (read_call_site_scope): Likewise.
9228 (dwarf2_rnglists_process): Likewise.
9229 (dwarf2_ranges_process): Likewise.
9230 (dwarf2_ranges_read): Likewise.
9231 (dwarf_decode_lines_1): Likewise.
9232 (new_symbol): Likewise.
9233 (dwarf2_fetch_die_loc_sect_off): Likewise.
9234 (dwarf2_per_cu_text_offset): Likewise.
9235 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9236 * hppa-tdep.c (read_unwind_info): Likewise.
9237 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9238 * psympriv.h (struct partial_symtab): Likewise.
9239 * psymtab.c (find_pc_sect_psymtab): Likewise.
9240 * solib-svr4.c (enable_break): Likewise.
9241 * stap-probe.c (relocate_address): Use
9242 objfile::data_section_offset.
9243 * xcoffread.c (enter_line_range): Use
9244 objfile::text_section_offset.
9245 (read_xcoff_symtab): Likewise.
9246
ab53f382
SM
92472020-01-23 Simon Marchi <simon.marchi@efficios.com>
9248
9249 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9250 declaration to narrower scopes.
9251
e7eee665
SM
92522020-01-23 Simon Marchi <simon.marchi@efficios.com>
9253
9254 * darwin-nat.h (struct darwin_exception_msg, enum
9255 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9256 Move up.
9257 (class darwin_nat_target) <wait_1, check_new_threads,
9258 decode_exception_message, decode_message, stop_inferior,
9259 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9260 * darwin-nat.c (darwin_check_new_threads): Rename to...
9261 (darwin_nat_target::check_new_threads): ... this.
9262 (darwin_suspend_inferior_it): Remove.
9263 (darwin_decode_exception_message): Rename to...
9264 (darwin_nat_target::decode_exception_message): ... this.
9265 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9266 (darwin_decode_message): Rename to...
9267 (darwin_nat_target::decode_message): ... this.
9268 (cancel_breakpoint): Rename to...
9269 (darwin_nat_target::cancel_breakpoint): ... this.
9270 (darwin_wait): Rename to...
9271 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9272 instead of iterate_over_inferiors.
9273 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9274 (darwin_stop_inferior): Rename to...
9275 (darwin_nat_target::stop_inferior): ... this.
9276 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9277 (darwin_init_thread_list): Rename to...
9278 (darwin_nat_target::init_thread_list): ... this.
9279 (darwin_ptrace_him): Rename to...
9280 (darwin_nat_target::ptrace_him): ... this.
9281 (darwin_nat_target::create_inferior): Pass lambda function to
9282 fork_inferior.
9283 (darwin_nat_target::detach): Call stop_inferior instead of
9284 darwin_stop_inferior.
9285 * fork-inferior.h (fork_inferior): Change init_trace_fun
9286 parameter to gdb::function_view.
9287 * fork-inferior.c (fork_inferior): Likewise.
9288
c162ed3e
HD
92892020-01-23 Hannes Domani <ssbssa@yahoo.de>
9290
9291 * i386-cygwin-tdep.c (core_process_module_section): Update.
9292 * windows-nat.c (struct lm_info_windows): Add text_offset.
9293 (windows_xfer_shared_libraries): Update.
9294 * windows-tdep.c (windows_xfer_shared_library):
9295 Add text_offset_cached argument.
9296 * windows-tdep.h (windows_xfer_shared_library): Update.
9297
a1237872
SM
92982020-01-21 Simon Marchi <simon.marchi@efficios.com>
9299
9300 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9301
b3ee6dd9
SM
93022020-01-21 Simon Marchi <simon.marchi@efficios.com>
9303
9304 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9305 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9306 replace with range-based for.
9307 (gdbsim_interrupt_inferior): Remove.
9308 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9309 with a range-based for. Inline code from
9310 gdbsim_interrupt_inferior.
9311
f9fac3c8
SM
93122020-01-21 Simon Marchi <simon.marchi@efficios.com>
9313
9314 * infrun.c (proceed): Fix indentation.
9315
f6474de9
TT
93162020-01-21 Tom Tromey <tromey@adacore.com>
9317
9318 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9319 * python/python.c (python_extension_ops): Update.
9320 (gdbpy_colorize): New function.
9321 * python/lib/gdb/__init__.py (colorize): New function.
9322 * extension.h (ext_lang_colorize): Declare.
9323 * extension.c (ext_lang_colorize): New function.
9324 * extension-priv.h (struct extension_language_ops) <colorize>: New
9325 member.
9326 * cli/cli-style.c (_initialize_cli_style): Update help text.
9327
f0c702d4
LM
93282020-01-21 Luis Machado <luis.machado@linaro.org>
9329
9330 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9331 <cond>: Change type to bool.
9332 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9333 (aarch64_displaced_step_cb): Likewise.
9334 (aarch64_displaced_step_tb): Likewise.
9335
1ab139e5
LM
93362020-01-21 Luis Machado <luis.machado@linaro.org>
9337
9338 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9339 output.
9340
0c271889
LM
93412020-01-21 Luis Machado <luis.machado@linaro.org>
9342
9343 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9344 <pc_adjust>: Adjust the documentation.
9345 (aarch64_displaced_step_fixup): Check if PC really moved before
9346 adjusting it.
9347
4d89c1c7
TT
93482020-01-19 Tom Tromey <tom@tromey.com>
9349
9350 * disasm.c (~gdb_disassembler): New destructor.
9351 (gdb_buffered_insn_length): Call disassemble_free_target.
9352 * disasm.h (class gdb_disassembler): Declare destructor. Use
9353 DISABLE_COPY_AND_ASSIGN.
9354
c0ab21c2
TT
93552020-01-19 Tom Tromey <tom@tromey.com>
9356
9357 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9358 (die_reader_func_ftype): Remove.
9359 (cutu_reader): New class.
9360 (dw2_get_file_names_reader): Remove "data" parameter.
9361 (dw2_get_file_names): Use cutu_reader.
9362 (create_debug_type_hash_table): Update.
9363 (read_cutu_die_from_dwo): Update comment.
9364 (lookup_dwo_unit): Add dwo_name parameter.
9365 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9366 die_reader_func_ftype and data parameters.
9367 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9368 Remove die_reader_func_ftype and data parameters.
9369 (~cutu_reader): New; from init_cutu_and_read_dies.
9370 (cutu_reader::cutu_reader): Rename from
9371 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9372 and data parameters.
9373 (init_cutu_and_read_dies_simple): Remove.
9374 (struct process_psymtab_comp_unit_data): Remove.
9375 (process_psymtab_comp_unit_reader): Remove data parameter; add
9376 want_partial_unit and pretend_language parameters.
9377 (process_psymtab_comp_unit): Use cutu_reader.
9378 (build_type_psymtabs_reader): Remove data parameter.
9379 (build_type_psymtabs_1): Use cutu_reader.
9380 (process_skeletonless_type_unit): Likewise.
9381 (load_partial_comp_unit_reader): Remove.
9382 (load_partial_comp_unit): Use cutu_reader.
9383 (load_full_comp_unit_reader): Remove.
9384 (load_full_comp_unit): Use cutu_reader.
9385 (struct create_dwo_cu_data): Remove.
9386 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9387 dwo_unit parameters.
9388 (create_cus_hash_table): Use cutu_reader.
9389 (struct dwarf2_read_addr_index_data): Remove.
9390 (dwarf2_read_addr_index_reader): Remove.
9391 (dwarf2_read_addr_index): Use cutu_reader.
9392 (read_signatured_type_reader): Remove.
9393 (read_signatured_type): Use cutu_reader.
9394
45bbae5c
TT
93952020-01-19 Tom Tromey <tom@tromey.com>
9396
9397 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9398 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9399 (tui_wrefresh): Declare.
9400 * tui/tui-wingeneral.c (suppress_output): New global.
9401 (tui_suppress_output, ~tui_suppress_output): New constructor and
9402 destructor.
9403 (tui_wrefresh): New function.
9404 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9405 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9406 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9407 method.
9408 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9409 tui_wrefresh.
9410 (tui_data_window::no_refresh): New method.
9411 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9412 (tui_reg_command): Use tui_suppress_output
9413 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9414 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9415 method.
9416 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9417
4f13c1c0
TT
94182020-01-19 Tom Tromey <tom@tromey.com>
9419
9420 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9421 Handle case where symtab is null.
9422
fa47e446
SM
94232020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9424
9425 * linux-fork.c (one_fork_p): Simplify.
9426
26f42329
SM
94272020-01-17 Simon Marchi <simon.marchi@efficios.com>
9428
9429 * top.c (struct qt_args): Remove.
9430 (kill_or_detach): Change return type to void, replace `void *`
9431 parameter with a proper one.
9432 (print_inferior_quit_action): Likewise.
9433 (quit_confirm): Use range-based for loop to iterate over inferiors.
9434 (quit_force): Likewise.
9435
a9ac81b1
SM
94362020-01-17 Simon Marchi <simon.marchi@efficios.com>
9437
9438 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9439 `void *` parameter with proper parameters.
9440 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9441 (print_one_inferior): Change return type to void, replace `void *`
9442 parameter with proper parameters.
9443 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9444 inferiors.
9445 (get_other_inferior): Remove.
9446 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9447 inferiors.
9448
788eca49
SM
94492020-01-17 Simon Marchi <simon.marchi@efficios.com>
9450
9451 * mi/mi-interp.c (report_initial_inferior): Remove.
9452 (mi_interp::init): Use range-based for to iterate over inferiors.
9453
d9bc85b6
SM
94542020-01-17 Simon Marchi <simon.marchi@efficios.com>
9455
9456 * python/py-inferior.c (build_inferior_list): Remove.
9457 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9458
40c94099
CB
94592020-01-16 Christian Biesinger <cbiesinger@google.com>
9460
9461 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9462 (btrace_stitch_trace): Likewise.
9463 * charset.c (intermediate_encoding): Likewise (vaild).
9464 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9465 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9466 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9467
e0cdfe3c
HD
94682020-01-16 Hannes Domani <ssbssa@yahoo.de>
9469
9470 * windows-tdep.c (windows_get_tlb_type):
9471 Add rtl_user_process_parameters type.
9472
790f1718 94732020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9474 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9475
9476 PR build/24805
9477 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9478 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9479 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9480 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9481 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9482 (ps_plog): Redeclare exported functions with default visibility.
9483
3112ed97
NA
94842020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9485
9486 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9487 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9488
8dc3273e
SM
94892020-01-15 Simon Marchi <simon.marchi@efficios.com>
9490
9491 * infcmd.c (post_create_inferior): Use get_thread_regcache
9492 instead of get_current_regcache.
9493
ff47f4f0
TT
94942020-01-14 Tom Tromey <tom@tromey.com>
9495
9496 PR symtab/12535:
9497 * python/python.c (gdbpy_decode_line): Treat empty string the same
9498 as no argument.
9499
975f45b7
TT
95002020-01-14 Tom Tromey <tom@tromey.com>
9501
9502 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9503
25e57356
TT
95042020-01-14 Tom Tromey <tom@tromey.com>
9505
9506 * nat/linux-btrace.c: Don't include <config.h>.
9507 * nat/linux-ptrace.c: Don't include <config.h>.
9508 * nat/x86-linux-dregs.c: Don't include <config.h>.
9509
05ea2a05
TT
95102020-01-14 Tom Tromey <tom@tromey.com>
9511
9512 * configure: Rebuild.
9513 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9514
01027315
TT
95152020-01-14 Tom Tromey <tom@tromey.com>
9516
9517 * nat/x86-linux-dregs.c: Include configh.h.
9518 * nat/linux-ptrace.c: Include configh.h.
9519 * nat/linux-btrace.c: Include configh.h.
9520 * defs.h: Include config.h, bfd.h.
9521 * configure.ac: Don't source common.host.
9522 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9523 * configure: Rebuild.
9524 * acinclude.m4: Update path.
9525 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9526 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9527 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9528 (CLIBS): Add LIBSUPPORT.
9529 (CDEPS): Likewise.
9530 (COMMON_SFILES): Remove gdbsupport files.
9531 (HFILES_NO_SRCDIR): Likewise.
9532 (stamp-version): Update path to create-version.sh.
9533 (ALLDEPFILES): Remove gdbsupport files.
9534
b2ceabe8
TT
95352020-01-14 Tom Tromey <tom@tromey.com>
9536
9537 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9538 USE_WIN32API when needed.
9539 * configure.ac (USE_WIN32API): Don't define.
9540 (WIN32LIBS): Use WIN32APILIBS.
9541 * configure: Rebuild.
9542
25c51f71
TT
95432020-01-14 Tom Tromey <tom@tromey.com>
9544
9545 * configure: Rebuild.
9546 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9547
717c684d
BE
95482020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9549
9550 * skip.c (skip_function_command): Make skip w/o arguments use the
9551 name of the inlined function if pc is inside any inlined function.
9552
7da6a5b9
LM
95532020-01-14 Luis Machado <luis.machado@linaro.org>
9554
9555 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9556 * infrun.c (resume_1): Likewise.
9557 (handle_inferior_event): Remove stale comment.
9558 * linux-nat.c (linux_nat_target::resume): Update comments.
9559 (save_stop_reason): Likewise.
9560 (linux_nat_filter_event): Likewise.
9561 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9562
44e4c775
AB
95632020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9564
9565 * elfread.c (record_minimal_symbol): Set section index to 0 for
9566 non-allocatable sections.
9567
18a8505e
AT
9568
95692020-01-13 Ali Tamur <tamur@google.com>
9570
9571 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9572 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9573 to gdb::optional. Update comments.
9574 (dwo_file): Update comments.
9575 (read_attribute): Update API to take an additional out parameter,
9576 need_reprocess. This is used to mark attributes that need other
9577 attributes (e.g. str_offsets_base) for correct computation which may not
9578 have been read yet.
9579 (read_attribute_reprocess): New function declaration.
9580 (read_addr_index): Likewise.
9581 (read_dwo_str_index): Likewise.
9582 (read_stub_str_index): Likewise.
9583 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9584 (lookup_addr_base): New function definition.
9585 (lookup_ranges_base): Likewise.
9586 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9587 lookup_ranges_base.
9588 (init_cutu_and_read_dies): Update comments.
9589 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9590 unit. This is used to inherit parent's str_offsets_base and addr_base.
9591 Update comments.
9592 (init_cutu_and_read_dies_simple): Reflect API changes.
9593 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9594 (create_cus_hash_table): Change API to take parent compile unit.
9595 Reflect API changes.
9596 (open_and_init_dwo_file): Reflect API changes.
9597 (dwarf2_get_pc_bounds): Update comments.
9598 (dwarf2_record_block_ranges): Likewise.
9599 (read_full_die_1): Change implementation to reprocess attributes that
9600 need str_offsets_base and addr_base.
9601 (partial_die_info::read): Likewise.
9602 (read_attribute_reprocess): New function definition.
9603 (read_attribute_value): Change API to take an additional out parameter,
9604 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9605 when a non-dwo compile unit has index based attributes.
9606 (read_attribute): Reflect API changes.
9607 (read_addr_index_1): Reflect API changes. Update comments.
9608 (dwarf2_read_addr_index_data): Reflect API changes.
9609 (dwarf2_read_addr_index): Likewise.
9610 (read_str_index): Change API and implementation. This becomes a helper
9611 to be used by the new string index related methods. Update error
9612 message and comments.
9613 (read_dwo_str_index): New function definition.
9614 (read_stub_str_index): Likewise.
9615 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9616 * symfile.h (dwarf2_debug_sections): Likewise.
9617 * xcoffread.c (dwarf2_debug_sections): Likewise.
9618
0cac9354
SM
96192020-01-13 Simon Marchi <simon.marchi@efficios.com>
9620
9621 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9622 core_reg_sect type to gdb_byte *.
9623 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9624 * cris-tdep.c (fetch_core_registers): Likewise.
9625 * corelow.c (core_target::get_core_register_section): Change
9626 type of `contents` to gdb::byte_vector.
9627
9a6d629c
AB
96282020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9629
9630 * tui/tui-wingeneral.c (box_win): Position the title in the center
9631 of the border.
9632
d8b2f9e3
SM
96332020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9634
9635 * corelow.c (core_target::get_core_register_section): Use
9636 std::vector instead of alloca.
9637
bb564c58
SM
96382020-01-13 Simon Marchi <simon.marchi@efficios.com>
9639
9640 * warning.m4: Add -Wmissing-declarations to build_warnings.
9641 * configure: Re-generate.
9642
6b366111
SM
96432020-01-13 Simon Marchi <simon.marchi@efficios.com>
9644
9645 * python/python.c (init__gdb_module): Add declaration.
9646
6c265988
SM
96472020-01-13 Simon Marchi <simon.marchi@efficios.com>
9648
9649 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9650 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9651 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9652 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9653 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9654 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9655 * ada-exp.y (_initialize_ada_exp): Add declaration.
9656 * ada-lang.c (_initialize_ada_language): Add declaration.
9657 * ada-tasks.c (_initialize_tasks): Add declaration.
9658 * agent.c (_initialize_agent): Add declaration.
9659 * aix-thread.c (_initialize_aix_thread): Add declaration.
9660 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9661 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9662 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9663 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9664 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9665 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9666 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9667 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9668 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9669 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9670 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9671 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9672 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9673 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9674 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9675 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9676 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9677 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9678 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9679 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9680 * annotate.c (_initialize_annotate): Add declaration.
9681 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9682 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9683 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9684 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9685 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9686 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9687 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9688 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9689 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9690 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9691 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9692 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9693 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9694 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9695 * auto-load.c (_initialize_auto_load): Add declaration.
9696 * auxv.c (_initialize_auxv): Add declaration.
9697 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9698 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9699 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9700 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9701 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9702 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9703 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9704 * breakpoint.c (_initialize_breakpoint): Add declaration.
9705 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9706 * btrace.c (_initialize_btrace): Add declaration.
9707 * charset.c (_initialize_charset): Add declaration.
9708 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9709 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9710 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9711 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9712 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9713 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9714 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9715 * coffread.c (_initialize_coffread): Add declaration.
9716 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9717 * compile/compile.c (_initialize_compile): Add declaration.
9718 * complaints.c (_initialize_complaints): Add declaration.
9719 * completer.c (_initialize_completer): Add declaration.
9720 * copying.c (_initialize_copying): Add declaration.
9721 * corefile.c (_initialize_core): Add declaration.
9722 * corelow.c (_initialize_corelow): Add declaration.
9723 * cp-abi.c (_initialize_cp_abi): Add declaration.
9724 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9725 * cp-support.c (_initialize_cp_support): Add declaration.
9726 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9727 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9728 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9729 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9730 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9731 * ctfread.c (_initialize_ctfread): Add declaration.
9732 * d-lang.c (_initialize_d_language): Add declaration.
9733 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9734 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9735 * dbxread.c (_initialize_dbxread): Add declaration.
9736 * dcache.c (_initialize_dcache): Add declaration.
9737 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9738 * disasm.c (_initialize_disasm): Add declaration.
9739 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9740 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9741 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9742 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9743 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9744 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9745 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9746 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9747 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9748 * elfread.c (_initialize_elfread): Add declaration.
9749 * exec.c (_initialize_exec): Add declaration.
9750 * extension.c (_initialize_extension): Add declaration.
9751 * f-lang.c (_initialize_f_language): Add declaration.
9752 * f-valprint.c (_initialize_f_valprint): Add declaration.
9753 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9754 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9755 * filesystem.c (_initialize_filesystem): Add declaration.
9756 * findcmd.c (_initialize_mem_search): Add declaration.
9757 * findvar.c (_initialize_findvar): Add declaration.
9758 * fork-child.c (_initialize_fork_child): Add declaration.
9759 * frame-base.c (_initialize_frame_base): Add declaration.
9760 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9761 * frame.c (_initialize_frame): Add declaration.
9762 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9763 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9764 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9765 * gcore.c (_initialize_gcore): Add declaration.
9766 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9767 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9768 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9769 * gdbarch.c (_initialize_gdbarch): Add declaration.
9770 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9771 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9772 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9773 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9774 * go-lang.c (_initialize_go_language): Add declaration.
9775 * go32-nat.c (_initialize_go32_nat): Add declaration.
9776 * guile/guile.c (_initialize_guile): Add declaration.
9777 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9778 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9779 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9780 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9781 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9782 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9783 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9784 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9785 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9786 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9787 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9788 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9789 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9790 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9791 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9792 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9793 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9794 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9795 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9796 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9797 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9798 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9799 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9800 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9801 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9802 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9803 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9804 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9805 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9806 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9807 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9808 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9809 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9810 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9811 * infcall.c (_initialize_infcall): Add declaration.
9812 * infcmd.c (_initialize_infcmd): Add declaration.
9813 * inflow.c (_initialize_inflow): Add declaration.
9814 * infrun.c (_initialize_infrun): Add declaration.
9815 * interps.c (_initialize_interpreter): Add declaration.
9816 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9817 * jit.c (_initialize_jit): Add declaration.
9818 * language.c (_initialize_language): Add declaration.
9819 * linux-fork.c (_initialize_linux_fork): Add declaration.
9820 * linux-nat.c (_initialize_linux_nat): Add declaration.
9821 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9822 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9823 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9824 * m2-lang.c (_initialize_m2_language): Add declaration.
9825 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9826 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9827 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9828 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9829 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9830 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9831 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9832 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9833 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9834 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9835 * machoread.c (_initialize_machoread): Add declaration.
9836 * macrocmd.c (_initialize_macrocmd): Add declaration.
9837 * macroscope.c (_initialize_macroscope): Add declaration.
9838 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9839 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9840 * maint.c (_initialize_maint_cmds): Add declaration.
9841 * mdebugread.c (_initialize_mdebugread): Add declaration.
9842 * memattr.c (_initialize_mem): Add declaration.
9843 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9844 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9845 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9846 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9847 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9848 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9849 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9850 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9851 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9852 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9853 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9854 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9855 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9856 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9857 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9858 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9859 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9860 * mipsread.c (_initialize_mipsread): Add declaration.
9861 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9862 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9863 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9864 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9865 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9866 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9867 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9868 * nto-procfs.c (_initialize_procfs): Add declaration.
9869 * objc-lang.c (_initialize_objc_language): Add declaration.
9870 * observable.c (_initialize_observer): Add declaration.
9871 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9872 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9873 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9874 * osabi.c (_initialize_gdb_osabi): Add declaration.
9875 * osdata.c (_initialize_osdata): Add declaration.
9876 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9877 * parse.c (_initialize_parse): Add declaration.
9878 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9879 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9880 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9881 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9882 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9883 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9884 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9885 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9886 * printcmd.c (_initialize_printcmd): Add declaration.
9887 * probe.c (_initialize_probe): Add declaration.
9888 * proc-api.c (_initialize_proc_api): Add declaration.
9889 * proc-events.c (_initialize_proc_events): Add declaration.
9890 * proc-service.c (_initialize_proc_service): Add declaration.
9891 * procfs.c (_initialize_procfs): Add declaration.
9892 * producer.c (_initialize_producer): Add declaration.
9893 * psymtab.c (_initialize_psymtab): Add declaration.
9894 * python/python.c (_initialize_python): Add declaration.
9895 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9896 * record-btrace.c (_initialize_record_btrace): Add declaration.
9897 * record-full.c (_initialize_record_full): Add declaration.
9898 * record.c (_initialize_record): Add declaration.
9899 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9900 * regcache.c (_initialize_regcache): Add declaration.
9901 * reggroups.c (_initialize_reggroup): Add declaration.
9902 * remote-notif.c (_initialize_notif): Add declaration.
9903 * remote-sim.c (_initialize_remote_sim): Add declaration.
9904 * remote.c (_initialize_remote): Add declaration.
9905 * reverse.c (_initialize_reverse): Add declaration.
9906 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9907 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9908 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9909 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9910 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9911 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9912 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9913 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9914 Add declaration.
9915 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9916 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9917 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9918 * rust-exp.y (_initialize_rust_exp): Add declaration.
9919 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9920 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9921 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9922 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9923 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9924 * score-tdep.c (_initialize_score_tdep): Add declaration.
9925 * ser-go32.c (_initialize_ser_dos): Add declaration.
9926 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9927 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9928 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9929 * ser-uds.c (_initialize_ser_socket): Add declaration.
9930 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9931 * serial.c (_initialize_serial): Add declaration.
9932 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9933 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9934 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9935 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9936 * skip.c (_initialize_step_skip): Add declaration.
9937 * sol-thread.c (_initialize_sol_thread): Add declaration.
9938 * solib-aix.c (_initialize_solib_aix): Add declaration.
9939 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9940 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9941 * solib-frv.c (_initialize_frv_solib): Add declaration.
9942 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9943 * solib-target.c (_initialize_solib_target): Add declaration.
9944 * solib.c (_initialize_solib): Add declaration.
9945 * source-cache.c (_initialize_source_cache): Add declaration.
9946 * source.c (_initialize_source): Add declaration.
9947 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9948 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9949 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9950 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9951 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9952 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9953 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9954 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9955 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9956 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9957 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9958 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9959 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9960 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9961 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9962 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9963 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9964 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9965 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9966 * stabsread.c (_initialize_stabsread): Add declaration.
9967 * stack.c (_initialize_stack): Add declaration.
9968 * stap-probe.c (_initialize_stap_probe): Add declaration.
9969 * std-regs.c (_initialize_frame_reg): Add declaration.
9970 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9971 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9972 * symfile.c (_initialize_symfile): Add declaration.
9973 * symmisc.c (_initialize_symmisc): Add declaration.
9974 * symtab.c (_initialize_symtab): Add declaration.
9975 * target.c (_initialize_target): Add declaration.
9976 * target-connection.c (_initialize_target_connection): Add
9977 declaration.
9978 * target-dcache.c (_initialize_target_dcache): Add declaration.
9979 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9980 * thread.c (_initialize_thread): Add declaration.
9981 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9982 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9983 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9984 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9985 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9986 * tracectf.c (_initialize_ctf): Add declaration.
9987 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9988 * tracefile.c (_initialize_tracefile): Add declaration.
9989 * tracepoint.c (_initialize_tracepoint): Add declaration.
9990 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9991 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9992 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9993 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9994 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9995 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9996 * tui/tui.c (_initialize_tui): Add declaration.
9997 * typeprint.c (_initialize_typeprint): Add declaration.
9998 * ui-style.c (_initialize_ui_style): Add declaration.
9999 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10000 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10001 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10002 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10003 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10004 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10005 * unittests/filtered_iterator-selftests.c
10006 (_initialize_filtered_iterator_selftests): Add declaration.
10007 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10008 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10009 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10010 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10011 * unittests/main-thread-selftests.c
10012 (_initialize_main_thread_selftests): Add declaration.
10013 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10014 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10015 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10016 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10017 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10018 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10019 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10020 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10021 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10022 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10023 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10024 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10025 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10026 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10027 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10028 declaration.
10029 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10030 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10031 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10032 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10033 * user-regs.c (_initialize_user_regs): Add declaration.
10034 * utils.c (_initialize_utils): Add declaration.
10035 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10036 * valops.c (_initialize_valops): Add declaration.
10037 * valprint.c (_initialize_valprint): Add declaration.
10038 * value.c (_initialize_values): Add declaration.
10039 * varobj.c (_initialize_varobj): Add declaration.
10040 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10041 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10042 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10043 * windows-nat.c (_initialize_windows_nat): Add declaration.
10044 (_initialize_check_for_gdb_ini): Add declaration.
10045 (_initialize_loadable): Add declaration.
10046 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10047 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10048 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10049 * xcoffread.c (_initialize_xcoffread): Add declaration.
10050 * xml-support.c (_initialize_xml_support): Add declaration.
10051 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10052 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10053 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10054 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10055
e2de1eec
SM
100562020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10057
10058 * regformats/regdat.sh: Generate declaration for init function.
10059
e0037b4c
SM
100602020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10061
10062 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10063 up.
10064 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10065 close_one_inferior>: New methods.
10066 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10067 pass down target to find_inferior_pid.
10068 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10069 Pass down target to find_inferior_ptid.
10070 (gdbsim_target::create_inferior): Pass down target to
10071 add_thread_silent.
10072 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10073 target down to find_inferior_ptid and switch_to_thread.
10074 (gdbsim_target::close): Update to call close_one_inferior.
10075 (struct resume_data): Remove.
10076 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10077 directly, rather than through a void pointer.
10078 (gdbsim_target::resume): Update to call resume_one_inferior.
10079
58920b5b
SM
100802020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10081
10082 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10083
4ec89149
PA
100842020-01-12 Pedro Alves <palves@redhat.com>
10085
10086 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10087 directly for the current inferior instead of
10088 discard_all_inferiors.
10089 (discard_all_inferiors): Delete.
10090
7c392d1d
TT
100912020-01-11 Tom Tromey <tom@tromey.com>
10092
10093 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10094 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10095 deprecated_safe_get_selected_frame.
10096
d9ebdab7
TBA
100972020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10098
10099 * inferior.c (print_inferior): Switch inferior before printing it.
10100
f3c469b9
PA
101012020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10102 Pedro Alves <palves@redhat.com>
10103
10104 * progspace-and-thread.c (switch_to_program_space_and_thread):
10105 Assert there's an inferior for PSPACE. Use
10106 switch_to_inferior_no_thread to switch the inferior too.
10107 * progspace.c (program_space::~program_space): Call
10108 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10109 (program_space::free_all_objfiles): Don't call clear_symtab_users
10110 here.
10111 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10112
65c574f6
PA
101132020-01-10 Pedro Alves <palves@redhat.com>
10114
10115 * NEWS: Mention multi-target debugging, "info connections", and
10116 "add-inferior -no-connection".
10117
2f4fcf00
PA
101182020-01-10 Pedro Alves <palves@redhat.com>
10119
10120 * infrun.c: Include "target-connection.h".
10121 (check_multi_target_resumption): New.
10122 (proceed): Call it.
10123 * target-connection.c (make_target_connection_string): Make
10124 extern.
10125 * target-connection.h (make_target_connection_string): Declare.
10126
121b3efd
PA
101272020-01-10 Pedro Alves <palves@redhat.com>
10128
10129 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10130 * inferior.c (uiout_field_connection): New function.
10131 (print_inferior): Add new "connection-id" column.
10132 (add_inferior_command): Show connection number/string of added
10133 inferior.
10134 * process-stratum-target.h
10135 (process_stratum_target::connection_string): New virtual method.
10136 (process_stratum_target::connection_number): New field.
10137 * remote.c (remote_target::connection_string): New override.
10138 * target-connection.c: New file.
10139 * target-connection.h: New file.
10140 * target.c (decref_target): Remove process_stratum targets from
10141 the connection list.
10142 (target_stack::push): Add process_stratum targets to the
10143 connection list.
10144
4f837581
PA
101452020-01-10 Pedro Alves <palves@redhat.com>
10146
10147 Revert:
10148 2016-04-12 Pedro Alves <palves@redhat.com>
10149 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10150 Remove references to name.
10151 * serial.h (struct serial) <name>: Delete.
10152
f4ec508e
PA
101532020-01-10 Pedro Alves <palves@redhat.com>
10154
10155 * gdbarch-selftests.c (register_to_value_test): Remove "target
10156 already pushed" check.
10157
5b6d1e4f
PA
101582020-01-10 Pedro Alves <palves@redhat.com>
10159 John Baldwin <jhb@FreeBSD.org>
10160
10161 * aarch64-linux-nat.c
10162 (aarch64_linux_nat_target::thread_architecture): Adjust.
10163 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10164 (task_command_1): Likewise.
10165 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10166 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10167 (aix_thread_target::store_registers)
10168 (aix_thread_target::thread_alive): Adjust.
10169 * amd64-fbsd-tdep.c: Include "inferior.h".
10170 (amd64fbsd_get_thread_local_address): Pass down target.
10171 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10172 thread's gdbarch instead of target_gdbarch.
10173 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10174 get_last_target_status.
10175 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10176 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10177 inferiors.
10178 (update_inserted_breakpoint_locations): Skip if inferiors with no
10179 execution.
10180 (update_global_location_list): When handling moribund locations,
10181 find representative inferior for location's pspace, and use thread
10182 count of its process_stratum target.
10183 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10184 * bsd-uthread.c (bsd_uthread_target::wait): Use
10185 as_process_stratum_target and adjust thread_change_ptid and
10186 add_thread calls.
10187 (bsd_uthread_target::update_thread_list): Use
10188 as_process_stratum_target and adjust find_thread_ptid,
10189 thread_change_ptid and add_thread calls.
10190 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10191 find_thread_ptid call.
10192 * corelow.c (add_to_thread_list): Adjust add_thread call.
10193 (core_target_open): Adjust add_thread_silent and thread_count
10194 calls.
10195 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10196 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10197 * event-top.c (async_disconnect): Pop targets from all inferiors.
10198 * exec.c (add_target_sections): Push exec target on all inferiors
10199 sharing the program space.
10200 (remove_target_sections): Remove the exec target from all
10201 inferiors sharing the program space.
10202 (exec_on_vfork): New.
10203 * exec.h (exec_on_vfork): Declare.
10204 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10205 Pass it down.
10206 (fbsd_nat_target::update_thread_list): Adjust.
10207 (fbsd_nat_target::resume): Adjust.
10208 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10209 down.
10210 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10211 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10212 get_thread_arch_regcache call.
10213 * fork-child.c (gdb_startup_inferior): Pass target down to
10214 startup_inferior and set_executing.
10215 * gdbthread.h (struct process_stratum_target): Forward declare.
10216 (add_thread, add_thread_silent, add_thread_with_info)
10217 (in_thread_list): Add process_stratum_target parameter.
10218 (find_thread_ptid(inferior*, ptid_t)): New overload.
10219 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10220 parameter.
10221 (all_threads()): Delete overload.
10222 (all_threads, all_non_exited_threads): Add process_stratum_target
10223 parameter.
10224 (all_threads_safe): Use brace initialization.
10225 (thread_count): Add process_stratum_target parameter.
10226 (set_resumed, set_running, set_stop_requested, set_executing)
10227 (threads_are_executing, finish_thread_state): Add
10228 process_stratum_target parameter.
10229 (switch_to_thread): Use is_current_thread.
10230 * i386-fbsd-tdep.c: Include "inferior.h".
10231 (i386fbsd_get_thread_local_address): Pass down target.
10232 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10233 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10234 have_inferiors check.
10235 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10236 (inf_ptrace_target::attach): Adjust.
10237 * infcall.c (run_inferior_call): Adjust.
10238 * infcmd.c (run_command_1): Pass target to
10239 scoped_finish_thread_state.
10240 (proceed_thread_callback): Skip inferiors with no execution.
10241 (continue_command): Rename 'all_threads' local to avoid hiding
10242 'all_threads' function. Adjust get_last_target_status call.
10243 (prepare_one_step): Adjust set_running call.
10244 (signal_command): Use user_visible_resume_target. Compare thread
10245 pointers instead of inferior_ptid.
10246 (info_program_command): Adjust to pass down target.
10247 (attach_command): Mark target's 'thread_executing' flag.
10248 (stop_current_target_threads_ns): New, factored out from ...
10249 (interrupt_target_1): ... this. Switch inferior before making
10250 target calls.
10251 * inferior-iter.h
10252 (struct all_inferiors_iterator, struct all_inferiors_range)
10253 (struct all_inferiors_safe_range)
10254 (struct all_non_exited_inferiors_range): Filter on
10255 process_stratum_target too. Remove explicit.
10256 * inferior.c (inferior::inferior): Push dummy target on target
10257 stack.
10258 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10259 Add process_stratum_target parameter, and pass it down.
10260 (have_live_inferiors): Adjust.
10261 (switch_to_inferior_and_push_target): New.
10262 (add_inferior_command, clone_inferior_command): Handle
10263 "-no-connection" parameter. Use
10264 switch_to_inferior_and_push_target.
10265 (_initialize_inferior): Mention "-no-connection" option in
10266 the help of "add-inferior" and "clone-inferior" commands.
10267 * inferior.h: Include "process-stratum-target.h".
10268 (interrupt_target_1): Use bool.
10269 (struct inferior) <push_target, unpush_target, target_is_pushed,
10270 find_target_beneath, top_target, process_target, target_at,
10271 m_stack>: New.
10272 (discard_all_inferiors): Delete.
10273 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10274 (all_inferiors, all_non_exited_inferiors): Add
10275 process_stratum_target parameter.
10276 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10277 (target_last_proc_target): New global.
10278 (follow_fork_inferior): Push target on new inferior. Pass target
10279 to add_thread_silent. Call exec_on_vfork. Handle target's
10280 reference count.
10281 (follow_fork): Adjust get_last_target_status call. Also consider
10282 target.
10283 (follow_exec): Push target on new inferior.
10284 (struct execution_control_state) <target>: New field.
10285 (user_visible_resume_target): New.
10286 (do_target_resume): Call target_async.
10287 (resume_1): Set target's threads_executing flag. Consider resume
10288 target.
10289 (commit_resume_all_targets): New.
10290 (proceed): Also consider resume target. Skip threads of inferiors
10291 with no execution. Commit resumtion in all targets.
10292 (start_remote): Pass current inferior to wait_for_inferior.
10293 (infrun_thread_stop_requested): Consider target as well. Pass
10294 thread_info pointer to clear_inline_frame_state instead of ptid.
10295 (infrun_thread_thread_exit): Consider target as well.
10296 (random_pending_event_thread): New inferior parameter. Use it.
10297 (do_target_wait): Rename to ...
10298 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10299 down.
10300 (threads_are_resumed_pending_p, do_target_wait): New.
10301 (prepare_for_detach): Adjust calls.
10302 (wait_for_inferior): New inferior parameter. Handle it. Use
10303 do_target_wait_1 instead of do_target_wait.
10304 (fetch_inferior_event): Adjust. Switch to representative
10305 inferior. Pass target down.
10306 (set_last_target_status): Add process_stratum_target parameter.
10307 Save target in global.
10308 (get_last_target_status): Add process_stratum_target parameter and
10309 handle it.
10310 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10311 (context_switch): Check inferior_ptid == null_ptid before calling
10312 inferior_thread().
10313 (get_inferior_stop_soon): Pass down target.
10314 (wait_one): Rename to ...
10315 (poll_one_curr_target): ... this.
10316 (struct wait_one_event): New.
10317 (wait_one): New.
10318 (stop_all_threads): Adjust.
10319 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10320 event's target.
10321 (switch_back_to_stepped_thread): Also consider target.
10322 (print_stop_event): Update.
10323 (normal_stop): Update. Also consider the resume target.
10324 * infrun.h (wait_for_inferior): Remove declaration.
10325 (user_visible_resume_target): New declaration.
10326 (get_last_target_status, set_last_target_status): New
10327 process_stratum_target parameter.
10328 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10329 process_stratum_target parameter, and use it.
10330 (clear_inline_frame_state (thread_info*)): New.
10331 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10332 process_stratum_target parameter.
10333 (clear_inline_frame_state (thread_info*)): Declare.
10334 * linux-fork.c (delete_checkpoint_command): Pass target down to
10335 find_thread_ptid.
10336 (checkpoint_command): Adjust.
10337 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10338 instead of just tweaking inferior_ptid.
10339 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10340 (exit_lwp): Pass target down to find_thread_ptid.
10341 (attach_proc_task_lwp_callback): Pass target down to
10342 add_thread/set_running/set_executing.
10343 (linux_nat_target::attach): Pass target down to
10344 thread_change_ptid.
10345 (get_detach_signal): Pass target down to find_thread_ptid.
10346 Consider last target status's target.
10347 (linux_resume_one_lwp_throw, resume_lwp)
10348 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10349 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10350 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10351 (linux_nat_target::async_wait_fd): New.
10352 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10353 target down.
10354 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10355 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10356 * linux-thread-db.c (struct thread_db_info::process_target): New
10357 field.
10358 (add_thread_db_info): Save target.
10359 (get_thread_db_info): New process_stratum_target parameter. Also
10360 match target.
10361 (delete_thread_db_info): New process_stratum_target parameter.
10362 Also match target.
10363 (thread_from_lwp): Adjust to pass down target.
10364 (thread_db_notice_clone): Pass down target.
10365 (check_thread_db_callback): Pass down target.
10366 (try_thread_db_load_1): Always push the thread_db target.
10367 (try_thread_db_load, record_thread): Pass target down.
10368 (thread_db_target::detach): Pass target down. Always unpush the
10369 thread_db target.
10370 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10371 target down. Always unpush the thread_db target.
10372 (find_new_threads_callback, thread_db_find_new_threads_2)
10373 (thread_db_target::update_thread_list): Pass target down.
10374 (thread_db_target::pid_to_str): Pass current inferior down.
10375 (thread_db_target::get_thread_local_address): Pass target down.
10376 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10377 target down.
10378 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10379 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10380 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10381 (procfs_init_inferior): Rename to ...
10382 (procfs_target::procfs_init_inferior): ... this and adjust.
10383 (procfs_target::create_inferior, procfs_notice_thread)
10384 (procfs_do_thread_registers): Adjust.
10385 * ppc-fbsd-tdep.c: Include "inferior.h".
10386 (ppcfbsd_get_thread_local_address): Pass down target.
10387 * proc-service.c (ps_xfer_memory): Switch current inferior and
10388 program space as well.
10389 (get_ps_regcache): Pass target down.
10390 * process-stratum-target.c
10391 (process_stratum_target::thread_address_space)
10392 (process_stratum_target::thread_architecture): Pass target down.
10393 * process-stratum-target.h
10394 (process_stratum_target::threads_executing): New field.
10395 (as_process_stratum_target): New.
10396 * ravenscar-thread.c
10397 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10398 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10399 down.
10400 * record-btrace.c (record_btrace_target::info_record): Adjust.
10401 (record_btrace_target::record_method)
10402 (record_btrace_target::record_is_replaying)
10403 (record_btrace_target::fetch_registers)
10404 (get_thread_current_frame_id, record_btrace_target::resume)
10405 (record_btrace_target::wait, record_btrace_target::stop): Pass
10406 target down.
10407 * record-full.c (record_full_wait_1): Switch to event thread.
10408 Pass target down.
10409 * regcache.c (regcache::regcache)
10410 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10411 process_stratum_target parameter and handle it.
10412 (current_thread_target): New global.
10413 (get_thread_regcache): Add process_stratum_target parameter and
10414 handle it. Switch inferior before calling target method.
10415 (get_thread_regcache): Pass target down.
10416 (get_thread_regcache_for_ptid): Pass target down.
10417 (registers_changed_ptid): Add process_stratum_target parameter and
10418 handle it.
10419 (registers_changed_thread, registers_changed): Pass target down.
10420 (test_get_thread_arch_aspace_regcache): New.
10421 (current_regcache_test): Define a couple local test_target_ops
10422 instances and use them for testing.
10423 (readwrite_regcache): Pass process_stratum_target parameter.
10424 (cooked_read_test, cooked_write_test): Pass mock_target down.
10425 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10426 (get_thread_arch_aspace_regcache): Add process_stratum_target
10427 parameter.
10428 (regcache::target): New method.
10429 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10430 (regcache::registers_changed_ptid): Add process_stratum_target
10431 parameter.
10432 (regcache::m_target): New field.
10433 (registers_changed_ptid): Add process_stratum_target parameter.
10434 * remote.c (remote_state::supports_vCont_probed): New field.
10435 (remote_target::async_wait_fd): New method.
10436 (remote_unpush_and_throw): Add remote_target parameter.
10437 (get_current_remote_target): Adjust.
10438 (remote_target::remote_add_inferior): Push target.
10439 (remote_target::remote_add_thread)
10440 (remote_target::remote_notice_new_inferior)
10441 (get_remote_thread_info): Pass target down.
10442 (remote_target::update_thread_list): Skip threads of inferiors
10443 bound to other targets. (remote_target::close): Don't discard
10444 inferiors. (remote_target::add_current_inferior_and_thread)
10445 (remote_target::process_initial_stop_replies)
10446 (remote_target::start_remote)
10447 (remote_target::remote_serial_quit_handler): Pass down target.
10448 (remote_target::remote_unpush_target): New remote_target
10449 parameter. Unpush the target from all inferiors.
10450 (remote_target::remote_unpush_and_throw): New remote_target
10451 parameter. Pass it down.
10452 (remote_target::open_1): Check whether the current inferior has
10453 execution instead of checking whether any inferior is live. Pass
10454 target down.
10455 (remote_target::remote_detach_1): Pass down target. Use
10456 remote_unpush_target.
10457 (extended_remote_target::attach): Pass down target.
10458 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10459 (remote_target::append_resumption): Pass down target.
10460 (remote_target::append_pending_thread_resumptions)
10461 (remote_target::remote_resume_with_hc, remote_target::resume)
10462 (remote_target::commit_resume): Pass down target.
10463 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10464 (remote_target::interrupt_query)
10465 (remote_target::remove_new_fork_children)
10466 (remote_target::check_pending_events_prevent_wildcard_vcont)
10467 (remote_target::remote_parse_stop_reply)
10468 (remote_target::process_stop_reply): Pass down target.
10469 (first_remote_resumed_thread): New remote_target parameter. Pass
10470 it down.
10471 (remote_target::wait_as): Pass down target.
10472 (unpush_and_perror): New remote_target parameter. Pass it down.
10473 (remote_target::readchar, remote_target::remote_serial_write)
10474 (remote_target::getpkt_or_notif_sane_1)
10475 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10476 down target.
10477 (remote_target::mourn_inferior): Pass down target. Use
10478 remote_unpush_target.
10479 (remote_target::core_of_thread)
10480 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10481 (remote_target::pid_to_exec_file)
10482 (remote_target::thread_handle_to_thread_info): Pass down target.
10483 (remote_target::async_wait_fd): New.
10484 * riscv-fbsd-tdep.c: Include "inferior.h".
10485 (riscv_fbsd_get_thread_local_address): Pass down target.
10486 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10487 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10488 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10489 Adjust.
10490 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10491 * solib-svr4.c (enable_break): Pass down target.
10492 * spu-multiarch.c (parse_spufs_run): Pass down target.
10493 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10494 * target-delegates.c: Regenerate.
10495 * target.c (g_target_stack): Delete.
10496 (current_top_target): Return the current inferior's top target.
10497 (target_has_execution_1): Refer to the passed-in inferior's top
10498 target.
10499 (target_supports_terminal_ours): Check whether the initial
10500 inferior was already created.
10501 (decref_target): New.
10502 (target_stack::push): Incref/decref the target.
10503 (push_target, push_target, unpush_target): Adjust.
10504 (target_stack::unpush): Defref target.
10505 (target_is_pushed): Return bool. Adjust to refer to the current
10506 inferior's target stack.
10507 (dispose_inferior): Delete, and inline parts ...
10508 (target_preopen): ... here. Only dispose of the current inferior.
10509 (target_detach): Hold strong target reference while detaching.
10510 Pass target down.
10511 (target_thread_name): Add assertion.
10512 (target_resume): Pass down target.
10513 (target_ops::beneath, find_target_at): Adjust to refer to the
10514 current inferior's target stack.
10515 (get_dummy_target): New.
10516 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10517 has a thread running.
10518 (initialize_targets): Rename to ...
10519 (_initialize_target): ... this.
10520 * target.h: Include "gdbsupport/refcounted-object.h".
10521 (struct target_ops): Inherit refcounted_object.
10522 (target_ops::shortname, target_ops::longname): Make const.
10523 (target_ops::async_wait_fd): New method.
10524 (decref_target): Declare.
10525 (struct target_ops_ref_policy): New.
10526 (target_ops_ref): New typedef.
10527 (get_dummy_target): Declare function.
10528 (target_is_pushed): Return bool.
10529 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10530 (all_matching_threads_iterator::all_matching_threads_iterator):
10531 Handle filter target.
10532 * thread-iter.h (struct all_matching_threads_iterator, struct
10533 all_matching_threads_range, class all_non_exited_threads_range):
10534 Filter by target too. Remove explicit.
10535 * thread.c (threads_executing): Delete.
10536 (inferior_thread): Pass down current inferior.
10537 (clear_thread_inferior_resources): Pass down thread pointer
10538 instead of ptid_t.
10539 (add_thread_silent, add_thread_with_info, add_thread): Add
10540 process_stratum_target parameter. Use it for thread and inferior
10541 searches.
10542 (is_current_thread): New.
10543 (thread_info::deletable): Use it.
10544 (find_thread_ptid, thread_count, in_thread_list)
10545 (thread_change_ptid, set_resumed, set_running): New
10546 process_stratum_target parameter. Pass it down.
10547 (set_executing): New process_stratum_target parameter. Pass it
10548 down. Adjust reference to 'threads_executing'.
10549 (threads_are_executing): New process_stratum_target parameter.
10550 Adjust reference to 'threads_executing'.
10551 (set_stop_requested, finish_thread_state): New
10552 process_stratum_target parameter. Pass it down.
10553 (switch_to_thread): Also match inferior.
10554 (switch_to_thread): New process_stratum_target parameter. Pass it
10555 down.
10556 (update_threads_executing): Reimplement.
10557 * top.c (quit_force): Pop targets from all inferior.
10558 (gdb_init): Don't call initialize_targets.
10559 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10560 Declare.
10561 (windows_add_thread, windows_delete_thread): Adjust.
10562 (get_windows_debug_event): Rename to ...
10563 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10564 * tracefile-tfile.c (tfile_target_open): Pass down target.
10565 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10566 Forward declare.
10567 (switch_to_thread): Add process_stratum_target parameter.
10568 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10569 parameter. Use it.
10570 (mi_on_resume): Pass target down.
10571 * nat/fork-inferior.c (startup_inferior): Add
10572 process_stratum_target parameter. Pass it down.
10573 * nat/fork-inferior.h (startup_inferior): Add
10574 process_stratum_target parameter.
10575 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10576
75c6c844
PA
105772020-01-10 Pedro Alves <palves@redhat.com>
10578
10579 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10580 directly. Instead find the first thread in the thread list and
10581 use switch_to_thread.
10582
78f2c40a
PA
105832020-01-10 Pedro Alves <palves@redhat.com>
10584
10585 * remote.c (remote_target::remote_add_inferior): Don't bind a
10586 process to the current inferior if the current inferior is already
10587 bound to a process.
10588
e7af6c70
TBA
105892020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10590 Pedro Alves <palves@redhat.com>
10591
10592 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10593 If no process is specified, return null_ptid instead of
10594 inferior_ptid.
10595 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10596 TARGET_WAITKIND_SIGNALLED with no pid.
10597
31ba933e
PA
105982020-01-10 Pedro Alves <palves@redhat.com>
10599
10600 * remote.c (first_remote_resumed_thread): New.
10601 (remote_target::wait_as): Use it as default event_ptid instead of
10602 inferior_ptid.
10603
735fc2ca
PA
106042020-01-10 Pedro Alves <palves@redhat.com>
10605
10606 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10607
c17e02e1
PA
106082020-01-10 Pedro Alves <palves@redhat.com>
10609
10610 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10611 not -1.
10612
ab1ddbcf
PA
106132020-01-10 Pedro Alves <palves@redhat.com>
10614
10615 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10616 ptid to get_last_target_status.
10617 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10618 ptid to get_last_target_status.
10619 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10620 get_last_target_status.
10621 (info_program_command): Don't pass a target_waitstatus to
10622 get_last_target_status.
10623 * infrun.c (init_wait_for_inferior): Use
10624 nullify_last_target_wait_ptid.
10625 (get_last_target_status): Handle nullptr arguments.
10626 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10627 (print_stop_event): Don't pass a ptid to get_last_target_status.
10628 (normal_stop): Don't pass a ptid to get_last_target_status.
10629 * infrun.h (get_last_target_status, set_last_target_status): Move
10630 comments here and update.
10631 (nullify_last_target_wait_ptid): Declare.
10632 * linux-fork.c (fork_load_infrun_state): Remove local extern
10633 declaration of nullify_last_target_wait_ptid.
10634 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10635 to get_last_target_status.
10636
f3f8ece4
PA
106372020-01-10 Pedro Alves <palves@redhat.com>
10638
10639 * gdbthread.h (scoped_restore_current_thread)
10640 <dont_restore, restore, m_dont_restore>: Declare.
10641 * thread.c (thread_alive): Add assertion. Return bool.
10642 (switch_to_thread_if_alive): New.
10643 (prune_threads): Switch inferior/thread.
10644 (print_thread_info_1): Switch thread before calling target methods.
10645 (scoped_restore_current_thread::restore): New, factored out from
10646 ...
10647 (scoped_restore_current_thread::~scoped_restore_current_thread):
10648 ... this.
10649 (scoped_restore_current_thread::scoped_restore_current_thread):
10650 Add assertion.
10651 (thread_apply_all_command, thread_select): Use
10652 switch_to_thread_if_alive.
10653 * infrun.c (proceed, restart_threads, handle_signal_stop)
10654 (switch_back_to_stepped_thread): Switch current thread before
10655 calling target methods.
10656
db2d40f7
PA
106572020-01-10 Pedro Alves <palves@redhat.com>
10658
10659 * inferior.c (switch_to_inferior_no_thread): New function,
10660 factored out from ...
10661 (inferior_command): ... here.
10662 * inferior.h (switch_to_inferior_no_thread): Declare.
10663 * mi/mi-main.c (run_one_inferior): Use
10664 switch_to_inferior_no_thread.
10665
bd420a2d
PA
106662020-01-10 Pedro Alves <palves@redhat.com>
10667
10668 * infcmd.c (kill_command): Remove dead code.
10669
ddf5db90
PA
106702020-01-10 Pedro Alves <palves@redhat.com>
10671
10672 * remote.c (remote_target::mourn_inferior): No longer check
10673 whether the target is running.
10674
5018ce90
PA
106752020-01-10 Pedro Alves <palves@redhat.com>
10676
10677 * corelow.c (core_target::has_execution): Change parameter type to
10678 inferior pointer.
10679 * inferior.c (number_of_live_inferiors): Use
10680 inferior::has_execution instead of target_has_execution_1.
10681 * inferior.h (inferior::has_execution): New.
10682 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10683 inferior::has_execution instead of target_has_execution_1.
10684 * process-stratum-target.c
10685 (process_stratum_target::has_execution): Change parameter type to
10686 inferior pointer. Check the inferior's PID instead of
10687 inferior_ptid.
10688 * process-stratum-target.h
10689 (process_stratum_target::has_execution): Change parameter type to
10690 inferior pointer.
10691 * record-full.c (record_full_core_target::has_execution): Change
10692 parameter type to inferior pointer.
10693 * target.c (target_has_execution_1): Change parameter type to
10694 inferior pointer.
10695 (target_has_execution_current): Adjust.
10696 * target.h (target_ops::has_execution): Change parameter type to
10697 inferior pointer.
10698 (target_has_execution_1): Change parameter type to inferior
10699 pointer. Change return type to bool.
10700 * tracefile.h (tracefile_target::has_execution): Change parameter
10701 type to inferior pointer.
10702
74375d18
PA
107032020-01-10 Pedro Alves <palves@redhat.com>
10704
10705 * exceptions.c (print_flush): Remove current_top_target() check.
10706
acdf84a6
PA
107072020-01-10 Pedro Alves <palves@redhat.com>
10708
10709 * remote.c (show_remote_exec_file): Show the current inferior's
10710 exec-file instead of the command variable's value.
10711
ec506636
PA
107122020-01-10 Pedro Alves <palves@redhat.com>
10713
10714 * record-full.c (record_full_resume_ptid): New global.
10715 (record_full_target::resume): Set it.
10716 (record_full_wait_1): Use record_full_resume_ptid instead of
10717 inferior_ptid.
10718
873657b9
PA
107192020-01-10 Pedro Alves <palves@redhat.com>
10720
10721 * gdbthread.h (scoped_restore_current_thread)
10722 <dont_restore, restore, m_dont_restore>: Declare.
10723 * thread.c (thread_alive): Add assertion. Return bool.
10724 (switch_to_thread_if_alive): New.
10725 (prune_threads): Switch inferior/thread.
10726 (print_thread_info_1): Switch thread before calling target methods.
10727 (scoped_restore_current_thread::restore): New, factored out from
10728 ...
10729 (scoped_restore_current_thread::~scoped_restore_current_thread):
10730 ... this.
10731 (scoped_restore_current_thread::scoped_restore_current_thread):
10732 Add assertion.
10733 (thread_apply_all_command, thread_select): Use
10734 switch_to_thread_if_alive.
10735
7f0ae84c
GB
107362020-01-10 George Barrett <bob@bob131.so>
10737
10738 * stap-probe.c (stap_modify_semaphore): Don't check for null
10739 semaphores.
10740 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10741 for null semaphores.
10742
f5a7c406
AB
107432020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10744
10745 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10746 all source windows, and maintain horizontal scroll status while
10747 doing so.
10748
9ae6bf64
TT
107492020-01-09 Tom Tromey <tom@tromey.com>
10750
10751 PR tui/18932:
10752 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10753 update_source_window, not print_source_lines.
10754
b2efe70c
AB
107552020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10756
10757 * tui/tui.c (tui_enable): Register tui hooks after calling
10758 tui_display_main.
10759
5f23a082
CB
107602020-01-09 Christian Biesinger <cbiesinger@google.com>
10761
10762 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10763
3061113b
SM
107642020-01-08 Simon Marchi <simon.marchi@efficios.com>
10765
10766 * thread.c (print_thread_info_1): Fix indentation.
10767
57d75002
CB
107682020-01-09 Christian Biesinger <cbiesinger@google.com>
10769
10770 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10771 unique_xmalloc_ptr outside the if to always free the demangled name.
10772
6a053cb1
TT
107732020-01-08 Tom Tromey <tromey@adacore.com>
10774
10775 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10776 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10777 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10778 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10779 Remove.
10780 (section_offsets): New typedef.
10781 * symtab.c (fixup_section, get_msymbol_address): Update.
10782 * symmisc.c (dump_msymbols): Update.
10783 * symfile.h (relative_addr_info_to_section_offsets)
10784 (symfile_map_offsets_to_segments): Update.
10785 * symfile.c (build_section_addr_info_from_objfile)
10786 (init_objfile_sect_indices): Update.
10787 (struct place_section_arg): Change type of "offsets".
10788 (place_section): Update.
10789 (relative_addr_info_to_section_offsets): Change type of
10790 "section_offsets". Remove "num_sections" parameter.
10791 (default_symfile_offsets, syms_from_objfile_1)
10792 (set_objfile_default_section_offset): Update.
10793 (reread_symbols): No need to preserve section offsets by hand.
10794 (symfile_map_offsets_to_segments): Change type of "offsets".
10795 * stap-probe.c (relocate_address): Update.
10796 * stabsread.h (process_one_symbol): Update.
10797 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10798 (solib_target_relocate_section_addresses): Update.
10799 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10800 Update.
10801 * solib-frv.c (frv_relocate_main_executable): Update.
10802 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10803 * solib-aix.c (solib_aix_get_section_offsets): Change return
10804 type.
10805 (solib_aix_solib_create_inferior_hook): Update.
10806 * remote.c (remote_target::get_offsets): Update.
10807 * psymtab.c (find_pc_sect_psymtab): Update.
10808 * psympriv.h (struct partial_symbol) <address, text_low,
10809 text_high>: Update.
10810 * objfiles.h (obj_section_offset): Update.
10811 (struct objfile) <section_offsets>: Change type.
10812 <num_sections>: Remove.
10813 (objfile_relocate): Update.
10814 * objfiles.c (entry_point_address_query): Update
10815 (relocate_one_symbol): Change type of "section_offsets".
10816 (objfile_relocate1, objfile_relocate1): Change type of
10817 "new_offsets".
10818 (objfile_rebase1): Update.
10819 * mipsread.c (mipscoff_symfile_read): Update.
10820 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10821 parameter.
10822 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10823 (parse_external, psymtab_to_symtab_1): Update.
10824 * machoread.c (macho_symfile_offsets): Update.
10825 * ia64-tdep.c (ia64_find_unwind_table): Update.
10826 * hppa-tdep.c (read_unwind_info): Update.
10827 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10828 * dwarf2read.c (create_addrmap_from_index)
10829 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10830 (process_psymtab_comp_unit_reader, add_partial_symbol)
10831 (add_partial_subprogram, process_full_comp_unit)
10832 (read_file_scope, read_func_scope, read_lexical_block_scope)
10833 (read_call_site_scope, dwarf2_rnglists_process)
10834 (dwarf2_ranges_process, dwarf2_ranges_read)
10835 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10836 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10837 Update.
10838 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10839 Update.
10840 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10841 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10842 (process_one_symbol): Change type of "section_offsets".
10843 * ctfread.c (get_objfile_text_range): Update.
10844 * coffread.c (coff_symtab_read, enter_linenos)
10845 (process_coff_symbol): Update.
10846 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10847 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10848
456e800a
TT
108492020-01-08 Tom Tromey <tromey@adacore.com>
10850
10851 * dwarf2read.c (parse_macro_definition): Use std::string.
10852 (parse_macro_definition): Likewise.
10853
6dfa2fc2
TT
108542020-01-08 Tom Tromey <tromey@adacore.com>
10855
10856 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10857 (ATTR_ALLOC_CHUNK): Remove.
10858
421d1616
TT
108592020-01-08 Tom Tromey <tromey@adacore.com>
10860
10861 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10862
43816ebc
TT
108632020-01-08 Tom Tromey <tromey@adacore.com>
10864
10865 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10866 (dwarf2_compute_name, open_dwo_file): Likewise.
10867 (process_enumeration_scope): Use std::vector.
10868 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10869 (partial_die_info::fixup, dwarf2_start_subfile)
10870 (guess_full_die_structure_name, dwarf2_name): Likewise.
10871 (determine_prefix): Update.
10872 (guess_full_die_structure_name): Make return type const.
10873 (partial_die_full_name): Return unique_xmalloc_ptr.
10874 (DW_FIELD_ALLOC_CHUNK): Remove.
10875
4212d509
TT
108762020-01-07 Tom Tromey <tromey@adacore.com>
10877
10878 PR build/24937:
10879 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10880
06a6207a
JT
108812020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10882
10883 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10884
153d79c4
AB
108852020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10886
10887 * stack.c (print_frame_info): Move disassemble_next_line code
10888 inside source_print block.
10889
66182876
EZ
108902020-01-06 Eli Zaretskii <eliz@gnu.org>
10891
10892 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10893 gdb/signals.h, as we are now using native signal symbols.
10894
cbfa8581
SV
108952020-01-06 Shahab Vahedi <shahab@synopsys.com>
10896
10897 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10898 overflow by an early check of content vs threshold.
aac66a4c 10899 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10900 Likewise.
10901
3f602821
EZ
109022020-01-06 Eli Zaretskii <eliz@gnu.org>
10903
10904 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10905
a08c904d
JT
109062020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10907
10908 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10909 export table if no section contains it's RVA.
10910
89a65580
EZ
109112020-01-06 Eli Zaretskii <eliz@gnu.org>
10912
10913 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10914
8b7fcda2
HD
109152020-01-06 Hannes Domani <ssbssa@yahoo.de>
10916
10917 * source.c (print_source_lines_base): Set last_line_listed.
10918
a61b4f69
SV
109192020-01-06 Shahab Vahedi <shahab@synopsys.com>
10920
10921 * tui/tui-disasm.c: Remove trailing spaces.
10922
559e7e50
EZ
109232020-01-06 Eli Zaretskii <eliz@gnu.org>
10924 Pedro Alves <palves@redhat.com>
10925
10926 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10927 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10928 (windows_gdb_signal_to_target): New function, uses the above
10929 enumeration to convert GDB internal signal codes to equivalent
10930 Windows codes.
10931 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10932 * windows-nat.c: Include "gdb_wait.h".
10933 (get_windows_debug_event): Extract the fatal exception from the
10934 exit status and convert to the equivalent Posix signal number.
10935 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10936 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10937 * gdbsupport/gdb_wait.c: New file, implements
10938 windows_status_to_termsig.
10939 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10940 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10941
f2302a34
AB
109422020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10943
10944 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10945 show_layout.
10946
6a5206eb
LM
109472020-01-05 Luis Machado <luis.machado@linaro.org>
10948
10949 * aarch64-linux-nat.c
10950 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10951 and bfd_mach_aarch64.
10952
6ec1d75e
PW
109532020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10954
10955 * ui-file.c (stdio_file::can_emit_style_escape)
10956 (tee_file::can_emit_style_escape): Ensure style is used also on
10957 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10958 to gdb_stdout.
10959 * main.c (set_gdb_data_directory): Use file style to output the
10960 warning that the given pathname is not a directory.
10961 * top.c (show_history_filename, gdb_safe_append_history)
10962 (show_gdb_datadir): Use file style.
10963
44f81a76
HD
109642020-01-03 Hannes Domani <ssbssa@yahoo.de>
10965
10966 * solib-target.c (struct lm_info_target):
10967 Change offsets to be a unique_xmalloc_ptr.
10968 (solib_target_relocate_section_addresses): Update.
10969
25057eb0
HD
109702020-01-03 Hannes Domani <ssbssa@yahoo.de>
10971
10972 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10973
6e2118f5
BE
109742020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10975
10976 * MAINTAINERS (Write After Approval): Add myself.
10977
8133c7dc
LM
109782020-01-02 Luis Machado <luis.machado@linaro.org>
10979
10980 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10981 Cell BE architecture.
10982 * target.h (struct target_ops) <thread_architecture>: Likewise.
10983
48189bec
HD
109842020-01-01 Hannes Domani <ssbssa@yahoo.de>
10985
10986 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10987
ead1063b
HD
109882020-01-01 Hannes Domani <ssbssa@yahoo.de>
10989
10990 * MAINTAINERS (Write After Approval): Add myself.
10991
e5d78223
JB
109922020-01-01 Joel Brobecker <brobecker@adacore.com>
10993
10994 * gdbarch.sh: Update copyright year range of generated files.
10995
b811d2c2
JB
109962020-01-01 Joel Brobecker <brobecker@adacore.com>
10997
10998 Update copyright year range in all GDB files.
10999
5f4def5c
JB
110002020-01-01 Joel Brobecker <brobecker@adacore.com>
11001
11002 * copyright.py: Convert to Python 3.
11003
51fd4002
JB
110042020-01-01 Joel Brobecker <brobecker@adacore.com>
11005
11006 * copyright.py: Adapt after move of gnulib directory from gdb
11007 directory to toplevel directory.
11008
5fb651f2
JB
110092020-01-01 Joel Brobecker <brobecker@adacore.com>
11010
11011 * copyright.py (main): Exit if run from the wrong directory.
11012
5dd8bf88
JB
110132020-01-01 Joel Brobecker <brobecker@adacore.com>
11014
11015 * top.c (print_gdb_version): Change copyright year to 2020.
11016
9f71dacb 110172020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11018
9f71dacb 11019 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11020
9f71dacb 11021For older changes see ChangeLog-2019.
c906108c
SS
11022\f
11023Local Variables:
11024mode: change-log
11025left-margin: 8
11026fill-column: 74
11027version-control: never
57da7796 11028coding: utf-8
c906108c 11029End: