]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
x86: Support GNU_PROPERTY_X86_FEATURE_2_TMM
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
cce20f10
PA
12020-07-10 Pedro Alves <pedro@palves.net>
2
3 * gdbthread.h (inferior_ref): Define.
4 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6 * thread.c
7 (scoped_restore_current_thread::restore):
8 Adjust to gdb::ref_ptr.
9 (scoped_restore_current_thread::~scoped_restore_current_thread):
10 Remove manual decref handling.
11 (scoped_restore_current_thread::scoped_restore_current_thread):
12 Adjust to use
13 inferior_ref::new_reference/thread_info_ref::new_reference.
14 Incref the thread before calling get_frame_id instead of after.
15 Let TARGET_CLOSE_ERROR propagate.
16
6d7aa592
PA
172020-07-10 Pedro Alves <pedro@palves.net>
18
19 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
20 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
21 NOT_AVAILABLE_ERROR.
22 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
23 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
24
b3e3a4c1
SM
252020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
26 Pedro Alves <pedro@palves.net>
27
28 PR gdb/26199
29 * infrun.c (threads_are_resumed_pending_p): Delete.
30 (do_target_wait): Remove threads_are_executing and
31 threads_are_resumed_pending_p checks from the inferior_matches
32 lambda. Update comments.
33
d6cc5d98
PA
342020-07-10 Pedro Alves <pedro@palves.net>
35
36 PR gdb/26199
37 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
38 executing threads.
39
7d3badc6
PA
402020-07-10 Pedro Alves <pedro@palves.net>
41
42 PR gdb/26199
43 * infrun.c (handle_no_resumed): Handle multiple targets.
44
42bd97a6
PA
452020-07-10 Pedro Alves <pedro@palves.net>
46
47 PR gdb/26199
48 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
49 target_is_async_p.
50
43667cc6
PA
512020-07-10 Pedro Alves <pedro@palves.net>
52
53 PR gdb/26199
54 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
55 threads, not all threads.
56
96118d11
PA
572020-07-10 Pedro Alves <pedro@palves.net>
58
59 PR gdb/26199
60 * remote.c (remote_target::open_1): Pass remote target pointer as
61 data to create_async_event_handler.
62 (remote_async_inferior_event_handler): Mark async event handler
63 before returning if the remote target still has either pending
64 events or unacknowledged notifications.
65
54904d81
JB
662020-07-10 John Baldwin <jhb@FreeBSD.org>
67
68 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
69 declaration.
70 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
71 function.
72
f37e5866
JB
732020-07-09 John Baldwin <jhb@FreeBSD.org>
74
75 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
76 inferior_ptid.
77
fc238d4a
JB
782020-07-09 John Baldwin <jhb@FreeBSD.org>
79
80 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
81 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
82 AT_FREEBSD_PS_STRINGS.
83
6e2469ff
HD
842020-07-08 Hannes Domani <ssbssa@yahoo.de>
85
86 * auto-load.c (auto_load_objfile_script_1): Convert drive part
87 of debugfile path on Windows.
88
d1076c41
JB
892020-07-08 John Baldwin <jhb@FreeBSD.org>
90
91 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
92 argument to 'data'.
93
15f3b077
TT
942020-07-08 Tom Tromey <tromey@adacore.com>
95
96 * ada-lang.c (ada_exception_message_1): Use read_memory.
97
9fc501fd
AB
982020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
99
100 PR python/22748
101 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
102 special handling for inline frames.
103 * findvar.c (value_of_register_lazy): Skip inline frames when
104 creating lazy register values.
105 * frame.c (frame_id_computed_p): Delete definition.
106 * frame.h (frame_id_computed_p): Delete declaration.
107
64cb3757
AB
1082020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
109
110 * NEWS: Mention additions to Python API.
111 * python/py-arch.c (archpy_register_groups): New function.
112 (arch_object_methods): Add 'register_groups' method.
113 * python/py-registers.c (reggroup_iterator_object): New struct.
114 (reggroup_object): New struct.
115 (gdbpy_new_reggroup): New function.
116 (gdbpy_reggroup_to_string): New function.
117 (gdbpy_reggroup_name): New function.
118 (gdbpy_reggroup_iter): New function.
119 (gdbpy_reggroup_iter_next): New function.
120 (gdbpy_new_reggroup_iterator): New function
121 (gdbpy_initialize_registers): Register new types.
122 (reggroup_iterator_object_type): Define new Python type.
123 (gdbpy_reggroup_getset): New static global.
124 (reggroup_object_type): Define new Python type.
125 * python/python-internal.h
126
0f767f94
AB
1272020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
128
129 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
130 * python/py-arch.c (archpy_registers): New function.
131 (arch_object_methods): Add 'registers' method.
132 * python/py-registers.c: New file.
133 * python/python-internal.h
134 (gdbpy_new_register_descriptor_iterator): Declare.
135 (gdbpy_initialize_registers): Declare.
136 * python/python.c (do_start_initialization): Call
137 gdbpy_initialize_registers.
138 * NEWS: Mention additions to the Python API.
139
87dbc774
AB
1402020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
141
142 * NEWS: Mention new Python API method.
143 * python/py-unwind.c (pending_framepy_architecture): New function.
144 (pending_frame_object_methods): Add architecture method.
145
3bc98c0c
AB
1462020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
147
148 * gdbarch.c: Regenerate.
149 * gdbarch.h: Regenerate.
150 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
151 (gdbarch_data): Use internal_error for the case where
152 deprecated_set_gdbarch_data was originally needed.
153 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
154 and use passed in obstack.
155 (libunwind_frame_set_descr): Should no longer get back NULL from
156 gdbarch_data.
157 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
158 type.
159 * user-regs.c (user_regs_init): Update parameters, and use passed
160 in obstack.
161 (user_reg_add): Should no longer get back NULL from gdbarch_data.
162 (_initialize_user_regs): Register as a pre-init gdbarch data type.
163
d8cc8af6
TV
1642020-07-06 Tom de Vries <tdevries@suse.de>
165
166 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
167 End-Of-Sequence in lte_is_less_than.
168 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
169 "gdb: Don't reorder line table entries too much when sorting".
170
947f7597
TV
1712020-07-06 Tom de Vries <tdevries@suse.de>
172
173 PR tui/26205
174 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
175
1e7c1b22
TV
1762020-07-05 Tom de Vries <tdevries@suse.de>
177
178 PR build/26187
179 * inferior.h (struct infcall_suspend_state_deleter): If available, use
180 std::uncaught_exceptions instead of deprecated
181 std::uncaught_exception.
182
a36158ec
SM
1832020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
184
185 * macroexp.h (macro_stringify): Return
186 gdb::unique_xmalloc_ptr<char>.
187 * macroexp.c (macro_stringify): Likewise.
188 * macrotab.c (fixup_definition): Update.
189
14d960c8
SM
1902020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
191
192 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
193 (lex_one_token): Update.
194 * macroexp.c (struct macro_buffer) <release>: Return
195 gdb::unique_xmalloc_ptr<char>.
196 (macro_stringify): Update.
197 (macro_expand): Update.
198 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
199 * macroexp.h (macro_expand_next): Likewise.
200
211d5b1c
SM
2012020-07-02 Simon Marchi <simon.marchi@efficios.com>
202
203 * macroexp.h (macro_lookup_ftype): Remove.
204 (macro_expand, macro_expand_once, macro_expand_next): Remove
205 lookup function parameters, add scope parameter.
206 * macroexp.c (scan, substitute_args, expand, maybe_expand,
207 macro_expand, macro_expand_once, macro_expand_next): Likewise.
208 * macroscope.h (standard_macro_lookup): Change parameter type
209 to macro_scope.
210 * macroscope.c (standard_macro_lookup): Likewise.
211 * c-exp.y (lex_one_token): Update.
212 * macrocmd.c (macro_expand_command): Likewise.
213 (macro_expand_once_command): Likewise.
214
b1a35af2
SM
2152020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
216
217 * inf-loop.c (inferior_event_handler): Remove client_data param.
218 * inf-loop.h (inferior_event_handler): Likewise.
219 * infcmd.c (step_1): Adjust.
220 * infrun.c (proceed): Adjust.
221 (fetch_inferior_event): Remove client_data param.
222 (infrun_async_inferior_event_handler): Adjust.
223 * infrun.h (fetch_inferior_event): Remove `void *` param.
224 * linux-nat.c (handle_target_event): Adjust.
225 * record-btrace.c (record_btrace_handle_async_inferior_event):
226 Adjust.
227 * record-full.c (record_full_async_inferior_event_handler):
228 Adjust.
229 * remote.c (remote_async_inferior_event_handler): Adjust.
230
1cdf9e33
TT
2312020-07-01 Tom Tromey <tom@tromey.com>
232
233 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
234 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
235
32c1e210
TT
2362020-07-01 Tom Tromey <tom@tromey.com>
237
238 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
239 tui_gen_win_info.
240 (tui_win_info::make_window): Merge with
241 tui_gen_win_info::make_window.
242 (tui_win_info::make_visible): Move from tui_gen_win_info.
243 * tui/tui-win.c (tui_win_info::max_width): Move from
244 tui_gen_win_info.
245 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
246 type.
247 <window_factory>: Likewise.
248 * tui/tui-layout.c (tui_win_info::resize): Move from
249 tui_gen_win_info.
250 (make_standard_window): Change return type.
251 (get_locator_window, tui_get_window_by_name): Likewise.
252 (tui_layout_window::apply): Remove a cast.
253 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
254 (struct tui_win_info): Merge with tui_gen_win_info.
255 (struct tui_gen_win_info): Remove.
256
a30cb6da
TT
2572020-07-01 Tom Tromey <tom@tromey.com>
258
259 * tui/tui-stack.h (struct tui_locator_window): Derive from
260 tui_win_info.
261 <do_scroll_horizontal, do_scroll_vertical>: New methods.
262 <can_box>: New method.
263
1eb2161f
TT
2642020-07-01 Tom Tromey <tom@tromey.com>
265
266 * tui/tui-stack.h (struct tui_locator_window): Remove body.
267
7134f2eb
TT
2682020-07-01 Tom Tromey <tom@tromey.com>
269
270 * tui/tui-regs.c (tui_data_window::display_registers_from)
271 (tui_data_window::display_registers_from)
272 (tui_data_window::first_data_item_displayed)
273 (tui_data_window::delete_data_content_windows): Update.
274 (tui_data_window::refresh_window, tui_data_window::no_refresh):
275 Remove.
276 (tui_data_window::check_register_values): Update.
277 (tui_data_item_window::rerender): Add parameters. Update.
278 (tui_data_item_window::refresh_window): Remove.
279 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
280 virtual.
281 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
282 tui_gen_win_info.
283 <refresh_window, max_height, min_height>: Remove.
284 <rerender>: Add parameters.
285 <x, y, visible>: New members.
286 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
287 <m_item_width>: New member.
288
22b7b041
TT
2892020-07-01 Tom Tromey <tom@tromey.com>
290
291 * tui/tui-regs.c (tui_data_window::show_register_group)
292 (tui_data_window::check_register_values): Update.
293 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
294 from item_no.
295
c9753adb
TT
2962020-07-01 Tom Tromey <tom@tromey.com>
297
298 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
299 useless "if".
300
9ab26b4a
TT
3012020-07-01 Tom Tromey <tom@tromey.com>
302
303 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
304 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
305
e555083f
TT
3062020-07-01 Tom Tromey <tom@tromey.com>
307
308 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
309 * tui/tui-winsource.h (enum tui_line_or_address_kind)
310 (struct tui_line_or_address): Move from tui-data.h.
311 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
312 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
313 (tui_cmd_window, tui_source_window_base, tui_source_window)
314 (tui_disasm_window): Don't declare.
315 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
316 to tui-winsource.h.
317 (SINGLE_KEY): Move to tui-stack.c.
318
7a02bab7
TT
3192020-07-01 Tom Tromey <tom@tromey.com>
320
321 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
322 std::string.
323 * tui/tui-regs.c (class tab_expansion_file): New.
324 (tab_expansion_file::write): New method.
325 (tui_register_format): Change return type. Use
326 tab_expansion_file.
327 (tui_get_register, tui_data_window::display_registers_from)
328 (tui_data_item_window::rerender): Update.
329 * tui/tui-io.h (tui_expand_tabs): Don't declare.
330 * tui/tui-io.c (tui_expand_tabs): Remove.
331
ea68593b
TT
3322020-07-01 Tom Tromey <tom@tromey.com>
333
334 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
335
a8caed5d
FS
3362020-07-01 Fangrui Song <maskray@google.com>
337
338 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
339
9cdf9820
AKS
3402020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
341
342 * dwarf2/read.c (set_die_type): Removed conditions to restrict
343 forms for DW_AT_associated and DW_AT_allocated attributes,
344 which is already checked in function attr_to_dynamic_prop.
345
a1520ad8
TT
3462020-06-30 Tom Tromey <tromey@adacore.com>
347
348 * dwarf2/read.c (quirk_rust_enum): Correctly call
349 alloc_rust_variant for default-less enum.
350
5ac58899
TT
3512020-06-30 Tom Tromey <tromey@adacore.com>
352
353 PR build/26183:
354 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
355 gdb::to_string.
356
19b187a9
SM
3572020-06-29 Simon Marchi <simon.marchi@efficios.com>
358
359 * gdbarch.sh (displaced_step_copy_insn): Update doc.
360 * gdbarch.h: Re-generate.
361
cd4c4c07
TT
3622020-06-28 Tom Tromey <tom@tromey.com>
363
364 * command.h (cmd_types): Remove.
365 (cmd_type): Don't declare.
366 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
367 typedef.
368 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
369 * cli/cli-decode.c (cmd_type): Remove.
370
05779d57
PA
3712020-06-27 Pedro Alves <palves@redhat.com>
372
373 * fork-child.c (prefork_hook): Adjust.
374 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
375 Delete.
376 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
377 * inferior.c (inferior::set_tty, inferior::tty): New methods.
378 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
379 Remove declarations.
380 (struct inferior) <set_tty, tty>: New methods.
381 (struct inferior) <terminal>: Rename to ...
382 (struct inferior) <m_terminal>: ... this and make private.
383 * main.c (captured_main_1): Adjust.
384 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
385 (mi_cmd_inferior_tty_show): Adjust.
386 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
387 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
388
1776e3e5
NA
3892020-06-26 Nick Alcock <nick.alcock@oracle.com>
390
391 * configure.ac: Add --enable-libctf: handle --disable-static
392 properly.
393 * acinclude.m4: sinclude ../config/enable.m4.
394 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
395 (LIBCTF): Substitute in.
396 (CTF_DEPS): New, likewise.
397 (CLIBS): libctf needs symbols from libbfd: move earlier.
398 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
399 flags.
400 * ctfread.c: Surround in ENABLE_LIBCTF.
401 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
402 * configure: Regenerate.
403 * config.in: Likewise.
404
58373b80
SM
4052020-06-25 Simon Marchi <simon.marchi@efficios.com>
406
407 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
408
277474ee
SM
4092020-06-25 Simon Marchi <simon.marchi@efficios.com>
410
411 * inferior.h (struct inferior) <terminal>: Change type to
412 gdb::unique_xmalloc_ptr<char>.
413 * inferior.c (inferior::~inferior): Don't free inf->terminal.
414 * infcmd.c (set_inferior_io_terminal): Don't free terminal
415 field, adjust to unique pointer.
416 (get_inferior_io_terminal): Adjust to unique pointer.
417
6d74da72
AB
4182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
419
420 * riscv-tdep.c (riscv_print_registers_info): Loop over all
421 registers, not just the known core set of registers.
422
2e52d038
AB
4232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
424
425 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
426 fflags, frm, and fcsr registers.
427 (riscv_register_reggroup_p): Remove unknown CSRs from save and
428 restore groups.
429 (riscv_tdesc_unknown_reg): New function.
430 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
431 tdesc_use_registers.
432 * riscv-tdep.h (struct gdbarch_tdep): Add
433 unknown_csrs_first_regnum, unknown_csrs_count,
434 duplicate_fflags_regnum, duplicate_frm_regnum, and
435 duplicate_fcsr_regnum fields.
436
be64fd07
AB
4372020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
438
439 * target-descriptions.c (tdesc_use_registers): Add new parameter a
440 callback, use the callback (when not null) to help number unknown
441 registers.
442 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
443 (tdesc_use_registers): Add extra parameter to declaration.
444
3b9fce96
AB
4452020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
446
447 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
448 in the file.
449 (class riscv_pending_register_alias): Likewise.
450 (riscv_register_feature::register_info): Change 'required_p' field
451 to 'required', and change its type. Add 'check' member function.
452 (riscv_register_feature::register_info::check): Define new member
453 function.
454 (riscv_xreg_feature): Change initialisation of 'required' field.
455 (riscv_freg_feature): Likewise.
456 (riscv_virtual_feature): Likewise.
457 (riscv_csr_feature): Likewise.
458 (riscv_check_tdesc_feature): Take extra parameter, the csr
459 tdesc_feature, rewrite the function to use the new
460 riscv_register_feature::register_info::check function.
461 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
462
865bad26
AB
4632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
464
465 * features/Makefile: Remove all references to the deleted files
466 below.
467 * features/riscv/32bit-csr.c: Deleted.
468 * features/riscv/32bit-csr.xml: Deleted.
469 * features/riscv/64bit-csr.c: Deleted.
470 * features/riscv/64bit-csr.xml: Deleted.
471 * features/riscv/rebuild-csr-xml.sh: Deleted.
472
ed69cbc8
AB
4732020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
474
475 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
476 whitespace error for declaration of names member variable.
477 (struct riscv_register_feature): Add new prefer_first_name member
478 variable, and fix whitespace error in declaration of registers.
479 (riscv_xreg_feature): Initialize prefer_first_name field.
480 (riscv_freg_feature): Likewise.
481 (riscv_virtual_feature): Likewise.
482 (riscv_csr_feature): Likewise.
483 (riscv_register_name): Expand on comments. Remove register name
484 modifications for CSR and virtual registers.
485
4445e8f5
AB
4862020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
487
488 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
489 errors.
490
767a879e
AB
4912020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
492
493 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
494 riscv-opc.h.
495 (class riscv_pending_register_alias): New class.
496 (riscv_check_tdesc_feature): Take vector of pending aliases and
497 populate it as appropriate.
498 (riscv_setup_register_aliases): Delete.
499 (riscv_gdbarch_init): Create vector of pending aliases and pass it
500 to riscv_check_tdesc_feature in all cases. Use the vector to
501 create the register aliases.
502
bb6e55f3
RO
5032020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
504
505 * sol2-tdep.c (sol2_static_transform_name): Remove.
506 (sol2_init_abi): Don't register it.
507 * gdbarch.sh (static_transform_name): Remove.
508 * gdbarch.c, gdbarch.h: Regenerate.
509
510 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
511 gdbarch_static_transform_name.
512 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
513 * stabsread.c (define_symbol) <'X'>: Remove.
514 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
515 handling.
516 <'V'>: Likewise.
517 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
518 <'S'>: Remove call to gdbarch_static_transform_name.
519
c6d36836
RO
5202020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
521
522 * procfs.c (procfs_pre_trace): New function.
523 (procfs_target::create_inferior): Pass it to fork_inferior.
524
a7e6196b
RO
5252020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
526
527 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
528 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
529 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
530 sol2-tdep.o, sparc-sol2-tdep.o.
531 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
532 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
533 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
534 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
535
d412e696
RO
5362020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
537
538 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
539 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
540 Call sol2_init_abi.
541 Remove calls to set_gdbarch_skip_solib_resolver,
542 set_gdbarch_core_pid_to_str.
543 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
544 (i386_sol2_static_transform_name): Remove.
545 (i386_sol2_init_abi): Call sol2_init_abi.
546 Remove calls to set_gdbarch_sofun_address_maybe_missing,
547 set_gdbarch_static_transform_name,
548 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
549 Use sol2_sigtramp_p.
550 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
551 (sol2_sigtramp_p): New function.
552 (sol2_static_transform_name): New function.
553 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
554 (sol2_init_abi): New function.
555 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
556 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
557 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
558 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
559 (sparc_sol2_static_transform_name): Remove.
560 (sparc32_sol2_init_abi): Call sol2_init_abi.
561 Remove calls to set_gdbarch_sofun_address_maybe_missing,
562 set_gdbarch_static_transform_name,
563 set_gdbarch_skip_solib_resolver,
564 set_gdbarch_core_pid_to_str.
565 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
566 (sparc_sol2_static_transform_name): Remove
567 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
568 call sol2_sigtramp_p.
569 (sparc64_sol2_init_abi): Call sol2_init_abi.
570 Remove calls to set_gdbarch_sofun_address_maybe_missing,
571 set_gdbarch_static_transform_name,
572 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
573
a8654e7d
PW
5742020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
575
576 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
577 * exec.c (validate_exec_file): If from_tty, set both
578 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
579 * symfile.c (symbol_file_add_with_addrs): if always_confirm
580 and from_tty, unconditionally ask a confirmation.
581
caa7fd04
AB
5822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
583
584 * target-descriptions.c (tdesc_architecture_name): Protect against
585 NULL pointer dereference.
586 (maint_print_xml_tdesc_cmd): New function.
587 (_initialize_target_descriptions): Register new 'maint print
588 xml-tdesc' command and give it the filename completer.
589 * NEWS: Mention new 'maint print xml-tdesc' command.
590
fbf42f4e
AB
5912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
592
593 * target-descriptions.c (class tdesc_compatible_info): New class.
594 (struct target_desc): Change type of compatible vector.
595 (tdesc_compatible_p): Update for change in type of
596 target_desc::compatible.
597 (tdesc_compatible_info_list): New function.
598 (tdesc_compatible_info_arch_name): New function.
599 (tdesc_add_compatible): Update for change in type of
600 target_desc::compatible.
601 (print_c_tdesc::visit_pre): Likewise.
602
20821f4e
AB
6032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
604
605 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
606 whitespace to underscore.
607 (maint_print_c_tdesc_cmd): Use fake filename for target
608 descriptions that came from the target.
609 (_initialize_target_descriptions): Add filename command completion
610 for 'maint print c-tdesc'.
611
1fb5ee62
SM
6122020-06-23 Simon Marchi <simon.marchi@efficios.com>
613
614 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
615 lines.
616
fc3ecb3e
SM
6172020-06-23 Simon Marchi <simon.marchi@efficios.com>
618
619 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
620 lines.
621 (dwarf2_find_location_expression): Likewise.
622 (call_site_parameter_matches): Likewise.
623 (dwarf2_compile_expr_to_ax): Likewise.
624 (disassemble_dwarf_expression): Likewise.
625 (loclist_describe_location): Likewise.
626
236ef034
PA
6272020-06-23 Pedro Alves <palves@redhat.com>
628
629 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
630 progspace-and-thread.h. Include scoped-mock-context.h instead.
631 (register_to_value_test): Use scoped_mock_context.
632 * regcache.c: Include "scoped-mock-context.h".
633 (cooked_read_test): Don't error out if a target is already pushed.
634 Use scoped_mock_context. Adjust.
635 * scoped-mock-context.h: New file.
636
39e7ecca
AB
6372020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
638
639 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
640 initializer.
641 (ada_language::is_string_type_p): New member function.
642 * c-lang.c (c_language_data): Delete la_is_string_type_p
643 initializer.
644 (cplus_language_data): Likewise.
645 (asm_language_data): Likewise.
646 (minimal_language_data): Likewise.
647 * d-lang.c (d_language_data): Likewise.
648 * f-lang.c (f_is_string_type_p): Delete function, implementation
649 moved to f_language::is_string_type_p.
650 (f_language_data): Delete la_is_string_type_p initializer.
651 (f_language::is_string_type_p): New member function,
652 implementation from f_is_string_type_p.
653 * go-lang.c (go_is_string_type_p): Delete function, implementation
654 moved to go_language::is_string_type_p.
655 (go_language_data): Delete la_is_string_type_p initializer.
656 (go_language::is_string_type_p): New member function,
657 implementation from go_is_string_type_p.
658 * language.c (language_defn::is_string_type_p): Define new member
659 function.
660 (default_is_string_type_p): Make static, add comment copied from
661 header file.
662 (unknown_language_data): Delete la_is_string_type_p initializer.
663 (unknown_language::is_string_type_p): New member function.
664 (auto_language_data): Delete la_is_string_type_p initializer.
665 (auto_language::is_string_type_p): New member function.
666 * language.h (language_data): Delete la_is_string_type_p field.
667 (language_defn::is_string_type_p): Declare new function.
668 (default_is_string_type_p): Delete desclaration, move comment to
669 definition.
670 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
671 moved to m2_language::is_string_type_p.
672 (m2_language_data): Delete la_is_string_type_p initializer.
673 (m2_language::is_string_type_p): New member function,
674 implementation from m2_is_string_type_p.
675 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
676 initializer.
677 * opencl-lang.c (opencl_language_data): Likewise.
678 * p-lang.c (pascal_is_string_type_p): Delete function,
679 implementation moved to pascal_language::is_string_type_p.
680 (pascal_language_data): Delete la_is_string_type_p initializer.
681 (pascal_language::is_string_type_p): New member function,
682 implementation from pascal_is_string_type_p.
683 * rust-lang.c (rust_is_string_type_p): Delete function,
684 implementation moved to rust_language::is_string_type_p.
685 (rust_language_data): Delete la_is_string_type_p initializer.
686 (rust_language::is_string_type_p): New member function,
687 implementation from rust_is_string_type_p.
688 * valprint.c (val_print_scalar_or_string_type_p): Update call to
689 is_string_type_p.
690
4ffc13fb
AB
6912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
692
693 * ada-lang.c (ada_language_data): Delete la_print_typedef
694 initializer.
695 (ada_language::print_typedef): New member function.
696 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
697 (cplus_language_data): Likewise.
698 (asm_language_data): Likewise.
699 (minimal_language_data): Likewise.
700 * d-lang.c (d_language_data): Likewise.
701 * f-lang.c (f_language_data): Likewise.
702 (f_language::print_typedef): New member function.
703 * go-lang.c (go_language_data): Delete la_print_typedef
704 initializer.
705 * language.c (language_defn::print_typedef): Define member
706 function.
707 (unknown_language_data): Delete la_print_typedef initializer.
708 (unknown_language::print_typedef): New member function.
709 (auto_language_data): Delete la_print_typedef initializer.
710 (auto_language::print_typedef): New member function.
711 * language.h (language_data): Delete la_print_typedef field.
712 (language_defn::print_typedef): Declare new member function.
713 (LA_PRINT_TYPEDEF): Update call to print_typedef.
714 (default_print_typedef): Delete declaration.
715 * m2-lang.c (m2_language_data): Delete la_print_typedef
716 initializer.
717 (m2_language::print_typedef): New member function.
718 * objc-lang.c (objc_language_data): Delete la_print_typedef
719 initializer.
720 * opencl-lang.c (opencl_language_data): Likewise.
721 * p-lang.c (pascal_language_data): Likewise.
722 (pascal_language::print_typedef): New member function.
723 * rust-lang.c (rust_print_typedef): Delete function,
724 implementation moved to rust_language::print_typedef.
725 (rust_language): Delete la_print_typedef initializer.
726 (rust_language::print_typedef): New member function,
727 implementation from rust_print_typedef.
728 * typeprint.c (default_print_typedef): Delete.
729
d711ee67
AB
7302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
731
732 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
733 (ada_language::printstr): New member function.
734 * c-lang.c (c_language_data): Delete la_printstr initializer.
735 (cplus_language_data): Likewise.
736 (asm_language_data): Likewise.
737 (minimal_language_data): Likewise.
738 * d-lang.c (d_language_data): Likewise.
739 * f-lang.c (f_printstr): Rename to f_language::printstr.
740 (f_language_data): Delete la_printstr initializer.
741 (f_language::printstr): New member function, implementation from
742 f_printstr.
743 * go-lang.c (go_language_data): Delete la_printstr initializer.
744 * language.c (language_defn::printstr): Define new member
745 function.
746 (unk_lang_printstr): Delete.
747 (unknown_language_data): Delete la_printstr initializer.
748 (unknown_language::printstr): New member function.
749 (auto_language_data): Delete la_printstr initializer.
750 (auto_language::printstr): New member function.
751 * language.h (language_data): Delete la_printstr field.
752 (language_defn::printstr): Declare new member function.
753 (LA_PRINT_STRING): Update call to printstr.
754 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
755 (m2_language_data): Delete la_printstr initializer.
756 (m2_language::printstr): New member function, implementation from
757 m2_printstr.
758 * objc-lang.c (objc_language_data): Delete la_printstr
759 initializer.
760 * opencl-lang.c (opencl_language_data): Likewise.
761 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
762 (pascal_language_data): Delete la_printstr initializer.
763 (pascal_language::printstr): New member function, implementation
764 from pascal_printstr.
765 * p-lang.h (pascal_printstr): Delete declaration.
766 * rust-lang.c (rust_printstr): Update header comment.
767 (rust_language_data): Delete la_printstr initializer.
768 (rust_language::printstr): New member function.
769
52b50f2c
AB
7702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
771
772 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
773 (ada_language::printchar): New member function.
774 * c-lang.c (c_language_data): Delete la_printchar initializer.
775 (cplus_language_data): Likewise.
776 (asm_language_data): Likewise.
777 (minimal_language_data): Likewise.
778 * d-lang.c (d_language_data): Likewise.
779 * f-lang.c (f_printchar): Rename to f_language::printchar.
780 (f_language_data): Delete la_printchar initializer.
781 (f_language::printchar): New member function, implementation from
782 f_printchar.
783 * go-lang.c (go_language_data): Delete la_printchar initializer.
784 * language.c (unk_lang_printchar): Delete.
785 (language_defn::printchar): Define new member function.
786 (unknown_language_data): Delete la_printchar initializer.
787 (unknown_language::printchar): New member function.
788 (auto_language_data): Delete la_printchar initializer.
789 (auto_language::printchar): New member function.
790 * language.h (language_data): Delete la_printchar field.
791 (language_defn::printchar): Declare new member function.
792 (LA_PRINT_CHAR): Update call to printchar.
793 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
794 (m2_language::printchar): New member function.
795 * objc-lang.c (objc_language_data): Delete la_printchar
796 initializer.
797 * opencl-lang.c (opencl_language_data): Likewise.
798 * p-lang.c (pascal_language_data): Delete la_printchar
799 initializer.
800 (pascal_language::printchar): New member function.
801 * rust-lang.c (rust_printchar): Rename to
802 rust_language::printchar.
803 (rust_language_data): Delete la_printchar initializer.
804 (rust_language::printchar): New member function, implementation
805 from rust_printchar.
806
ec8cec5b
AB
8072020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
808
809 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
810 (ada_language_data): Delete la_emitchar initializer.
811 (ada_language::emitchar): New member function, implementation from
812 emit_char.
813 * c-lang.c (c_language_data): Delete la_emitchar initializer.
814 (cplus_language_data): Likewise.
815 (asm_language_data): Likewise.
816 (minimal_language_data): Likewise.
817 * d-lang.c (d_language_data): Likewise.
818 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
819 (f_language_data): Delete la_emitchar initializer.
820 (f_language::emitchar): New member function, implementation from
821 f_emit_char.
822 * go-lang.c (go_language_data): Delete la_emitchar initializer.
823 * language.c (unk_lang_emit_char): Delete.
824 (language_defn::emitchar): New member function definition.
825 (unknown_language_data): Delete la_emitchar initializer.
826 (unknown_language::emitchar): New member function.
827 (auto_language_data): Delete la_emitchar initializer.
828 (auto_language::emitchar): New member function.
829 * language.h (language_data): Delete la_emitchar field.
830 (language_defn::emitchar): New member field declaration.
831 (LA_EMIT_CHAR): Update call to emitchar.
832 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
833 (m2_language_data): Delete la_emitchar initializer.
834 (m2_language::emitchar): New member function, implementation from
835 m2_emit_char.
836 * objc-lang.c (objc_language_data): Delete la_emitchar
837 initializer.
838 * opencl-lang.c (opencl_language_data): Likewise.
839 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
840 (pascal_language_data): Delete la_emitchar initializer.
841 (pascal_language::emitchar): New member function, implementation
842 from pascal_emit_char.
843 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
844 (rust_language_data): Delete la_emitchar initializer.
845 (rust_language::emitchar): New member function, implementation
846 from rust_emitchar.
847
1bf9c363
AB
8482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
849
850 * ada-lang.c (resolve): Rename to ada_language::post_parser.
851 (ada_language_data): Delete la_post_parser initializer.
852 (ada_language::post_parser): New member function.
853 * c-lang.c (c_language_data): Delete la_post_parser initializer.
854 (cplus_language_data): Likewise.
855 (asm_language_data): Likewise.
856 (minimal_language_data): Likewise.
857 * d-lang.c (d_language_data): Likewise.
858 * f-lang.c (f_language_data): Likewise.
859 * go-lang.c (go_language_data): Likewise.
860 * language.c (unknown_language_data): Likewise.
861 (auto_language_data): Likewise.
862 * language.h (language_data): Delete la_post_parser field.
863 (language_defn::post_parser): New member function.
864 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
865 * objc-lang.c (objc_language_data): Likewise.
866 * opencl-lang.c (opencl_language_data): Likewise.
867 * p-lang.c (pascal_language_data): Likewise.
868 * parse.c (parse_exp_in_context): Update call to post_parser.
869 (null_post_parser): Delete definition.
870 * parser-defs.h (null_post_parser): Delete declaration.
871 * rust-lang.c (rust_language_data): Delete la_post_parser
872 initializer.
873
87afa652
AB
8742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
875
876 * ada-lang.c (parse): Rename to ada_language::parser.
877 (ada_language_data): Delete la_parser initializer.
878 (ada_language::parser): New member function, implementation from
879 parse.
880 * c-lang.c (c_language_data): Delete la_parser initializer.
881 (cplus_language_data): Likewise.
882 (asm_language_data): Likewise.
883 (minimal_language_data): Likewise.
884 * d-lang.c (d_language_data): Likewise.
885 (d_language::parser): New member function.
886 * f-lang.c (f_language_data): Delete la_parser initializer.
887 (f_language::parser): New member function.
888 * go-lang.c (go_language_data): Delete la_parser initializer.
889 (go_language::parser): New member function.
890 * language.c (unk_lang_parser): Delete.
891 (language_defn::parser): Define new member function.
892 (unknown_language_data): Delete la_parser initializer.
893 (unknown_language::parser): New member function.
894 (auto_language_data): Delete la_parser initializer.
895 (auto_language::parser): New member function.
896 * language.h (language_data): Delete la_parser field.
897 (language_defn::parser): Declare new member function.
898 * m2-lang.c (m2_language_data): Delete la_parser initializer.
899 (m2_language::parser): New member function.
900 * objc-lang.c (objc_language_data): Delete la_parser initializer.
901 * opencl-lang.c (opencl_language_data): Likewise.
902 * p-lang.c (pascal_language_data): Likewise.
903 (pascal_language::parser): New member function.
904 * parse.c (parse_exp_in_context): Update call to parser.
905 * rust-lang.c (rust_language_data): Delete la_parser initializer.
906 (rust_language::parser): New member function.
907
37825800
AB
9082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
909
910 * top.c (print_gdb_configuration): Print --with-python-libdir
911 configuration value.
912
5b860c93
PW
9132020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
914
915 * NEWS: Mention change to the alias command.
916
cf00cd6f
PW
9172020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
918
919 * cli/cli-cmds.c (lookup_cmd_for_default_args)
920 (alias_command_completer)
921 (make_alias_options_def_group): New functions.
922 (alias_opts, alias_option_defs): New struct and array.
923 (alias_usage_error): Update usage.
924 (alias_command): Handles optional DEFAULT-ARGS... arguments.
925 Use option framework.
926 (_initialize_cli_cmds): Update alias command help.
927 Update aliases command help.
928 (show_user):
929 Add NULL for new default_args lookup_cmd argument.
930 (valid_command_p): Rename to validate_aliased_command.
931 Add NULL for new default_args lookup_cmd argument. Verify that the
932 aliased_command has no default args.
933 * cli/cli-decode.c (help_cmd): Show aliases definitions.
934 (lookup_cmd_1, lookup_cmd): New argument default_args.
935 (add_alias_cmd):
936 Add NULL for new default_args lookup_cmd argument.
937 (print_help_for_command): Show default args under the layout
938 alias some_alias = some_aliased_cmd some_alias_default_arg.
939 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
940 xfree default_args in destructor.
941 * cli/cli-script.c (process_next_line, do_define_command):
942 Add NULL for new default_args lookup_cmd argument.
943 * command.h: Declare new default_args argument in lookup_cmd
944 and lookup_cmd_1.
945 * completer.c (complete_line_internal_1):
946 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
947 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
948 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
949 Likewise.
950 * infcmd.c (_initialize_infcmd): Likewise.
951 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
952 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
953 * python/py-param.c (add_setshow_generic): Likewise.
954 * remote.c (_initialize_remote): Likewise.
955 * top.c (execute_command): Prepend default_args if command has some.
956 (set_verbose):
957 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
958 * tracepoint.c (validate_actionline, encode_actions_1):
959 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
960
bd920864
TBA
9612020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
962
963 * jit.c (jit_read_descriptor): Use bool as the return type.
964 (jit_breakpoint_re_set_internal): Use bool as the return type.
965 Invert the return value logic; return true if the jit breakpoint
966 has been successfully initialized.
967 (jit_inferior_init): Update the call to
968 jit_breakpoint_re_set_internal.
969
f8098322
PA
9702020-06-22 Pedro Alves <palves@redhat.com>
971
972 PR gdb/25939
973 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
974 Use the current inferior instead. Don't return
975 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
976 wait again.
977 * sol-thread.c (sol_thread_target::wait): Don't reference
978 inferior_ptid.
979 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
980 (sol_update_thread_list_callback): Use the current inferior's pid
981 instead of inferior_ptid.
982
196535a6
RO
9832020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
984
985 * procfs.c: Cleanup many comments.
986
987 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
988 (AFTER_WATCHFLAG): Replace by value.
989
990 (MAIN_PROC_NAME_FORMAT): Inline ...
991 (create_procinfo): ... here.
992
993 (procfs_debug_inferior): Remove SYS_exec handling.
994 (syscall_is_exec): Likewise.
995 (procfs_set_exec_trap): Likewise.
996
997 (syscall_is_lwp_exit): Inline in callers.
998 (syscall_is_exit): Likewise.
999 (syscall_is_exec): Likewise.
1000 (syscall_is_lwp_create): Likewise.
1001
1002 (invalidate_cache): Remove #if 0 code.
1003
1004 (make_signal_thread_runnable): Remove.
1005 (procfs_target::resume): Remove #if 0 code.
1006
cf6f3e86
RO
10072020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1008
1009 PR gdb/25939
1010 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1011 call ...
1012 (procfs_target::create_inferior): ... here.
1013
48e9cc84
PW
10142020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1015
1016 * exec.c (validate_exec_file): Ensure the build-id is up to
1017 date by calling reopen_exec_file (that checks file timestamp
1018 to decide to re-read the file).
1019
3922b302
PA
10202020-06-18 Pedro Alves <palves@redhat.com>
1021
1022 PR gdb/25412
1023 * gdbthread.h (delete_thread, delete_thread_silent)
1024 (find_thread_ptid): Update comments.
1025 * thread.c (current_thread_): New global.
1026 (is_current_thread): Move higher, and reimplement.
1027 (inferior_thread): Reimplement.
1028 (set_thread_exited): Use bool. Add assertions.
1029 (add_thread_silent): Simplify thread-reuse handling by always
1030 calling delete_thread.
1031 (delete_thread): Remove intro comment.
1032 (find_thread_ptid): Skip exited threads.
1033 (switch_to_thread_no_regs): Write to current_thread_.
1034 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1035 INFERIOR_PTID. Clear current_thread_.
1036
6dbdab44
PA
10372020-06-18 Pedro Alves <palves@redhat.com>
1038
1039 * aix-thread.c (pd_update): Use switch_to_thread.
1040
2da4b788
PA
10412020-06-18 Pedro Alves <palves@redhat.com>
1042
1043 * ravenscar-thread.c (ravenscar_thread_target): Update.
1044 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1045 (ravenscar_thread_target::add_active_thread): ... this. Don't
1046 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1047 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1048
50838d1b
PA
10492020-06-18 Pedro Alves <palves@redhat.com>
1050
1051 * nat/windows-nat.c (current_windows_thread): Remove.
1052 * nat/windows-nat.h (current_windows_thread): Remove.
1053 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1054 Adjust.
1055 (display_selectors): Adjust to fetch the current
1056 windows_thread_info based on inferior_ptid.
1057 (fake_create_process): No longer write to current_windows_thread.
1058 (windows_nat_target::get_windows_debug_event):
1059 Don't set inferior_ptid or current_windows_thread.
1060 (windows_nat_target::wait): Adjust to not rely on
1061 current_windows_thread.
1062 (do_initial_windows_stuff): Now a method of windows_nat_target.
1063 Switch to the last_ptid thread.
1064 (windows_nat_target::attach): Adjust.
1065 (windows_nat_target::detach): Use switch_to_no_thread instead of
1066 writing to inferior_ptid directly.
1067 (windows_nat_target::create_inferior): Adjust.
1068
31ce04e9
PA
10692020-06-18 Pedro Alves <palves@redhat.com>
1070
1071 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1072
1ee1a363
PA
10732020-06-18 Pedro Alves <palves@redhat.com>
1074
1075 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1076 after creating it, instead of writing to inferior_ptid. Don't
1077 write to inferior_ptid.
1078
6d350754
PA
10792020-06-18 Pedro Alves <palves@redhat.com>
1080
1081 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1082
5d971d48
PA
10832020-06-18 Pedro Alves <palves@redhat.com>
1084
1085 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1086 it, instead of writing to inferior_ptid.
1087
86e57d1b
PA
10882020-06-18 Pedro Alves <palves@redhat.com>
1089
1090 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1091 to inferior_ptid.
1092
f2e1c129
PA
10932020-06-18 Pedro Alves <palves@redhat.com>
1094
1095 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1096 instead of writing to inferior_ptid directly.
1097
60db1b85
PA
10982020-06-18 Pedro Alves <palves@redhat.com>
1099
1100 * corelow.c (core_target::close): Use switch_to_no_thread instead
1101 of writing to inferior_ptid directly.
1102 (add_to_thread_list, core_target_open): Use switch_to_thread
1103 instead of writing to inferior_ptid directly.
1104
fe7d6a8d
PA
11052020-06-18 Pedro Alves <palves@redhat.com>
1106
1107 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1108 inferior_ptid.
1109 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1110 inferior_ptid.
1111 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1112 inferior_ptid directly.
1113 (darwin_nat_target::init_thread_list): Switch to thread, instead
1114 of writing to inferior_ptid.
1115 (darwin_nat_target::attach): Don't write to inferior_ptid.
1116 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1117
975f8708
PA
11182020-06-18 Pedro Alves <palves@redhat.com>
1119
1120 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1121 thread.
1122 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1123 Instead use switch_to_thread.
1124 (gnu_nat_target::detach): Use switch_to_no_thread
1125 instead of writing to inferior_ptid directly. Used passed-in
1126 inferior instead of looking up the inferior by pid.
1127
1a204730
PA
11282020-06-18 Pedro Alves <palves@redhat.com>
1129
1130 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1131 inferior_ptid.
1132
ebe84f23
PA
11332020-06-18 Pedro Alves <palves@redhat.com>
1134
1135 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1136 inferior_ptid.
1137 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1138 thread.
1139 (nto_procfs_target::detach): Avoid referencing
1140 inferior_ptid. Use switch_to_no_thread instead of writing to
1141 inferior_ptid directly.
1142 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1143 instead of writing to inferior_ptid directly.
1144 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1145 to thread.
1146
191f02e5
PA
11472020-06-18 Pedro Alves <palves@redhat.com>
1148
1149 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1150 after creating it, instead of writing to inferior_ptid.
1151 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1152 to inferior_ptid directly.
1153 (gdbsim_target::wait): Don't write to inferior_ptid.
1154
0ac55310
PA
11552020-06-18 Pedro Alves <palves@redhat.com>
1156
1157 * remote.c (remote_target::remote_notice_new_inferior): Use
1158 switch_to_thread instead of writing to inferior_ptid directly.
1159 (remote_target::add_current_inferior_and_thread): Use
1160 switch_to_no_thread instead of writing to inferior_ptid directly.
1161 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1162 and switch_to_thread instead of using set_current_inferior or
1163 writing to inferior_ptid directly.
1164
5233f39b
PA
11652020-06-18 Pedro Alves <palves@redhat.com>
1166
1167 * tracectf.c (ctf_target_open): Switch to added thread instead of
1168 writing to inferior_ptid directly.
1169 (ctf_target::close): Use switch_to_no_thread instead of writing to
1170 inferior_ptid directly.
1171
087e161b
PA
11722020-06-18 Pedro Alves <palves@redhat.com>
1173
1174 * tracefile-tfile.c (tfile_target_open): Don't write to
1175 inferior_ptid directly, instead switch to added thread.
1176 (tfile_target::close): Use switch_to_no_thread instead of writing
1177 to inferior_ptid directly.
1178
7fb43e53
PA
11792020-06-18 Pedro Alves <palves@redhat.com>
1180
1181 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1182 (procfs_target::detach): Use switch_to_no_thread
1183 instead of writing to inferior_ptid directly.
1184 (do_attach): Change return type to void. Switch to the added
1185 thread.
1186 (procfs_target::create_inferior): Switch to the added thread.
1187 (procfs_do_thread_registers): Don't write to inferior_ptid.
1188
18493a00
PA
11892020-06-18 Pedro Alves <palves@redhat.com>
1190
1191 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1192 of writing to inferior_ptid.
1193 (scoped_restore_exited_inferior): Delete.
1194 (handle_vfork_child_exec_or_exit): Simplify using
1195 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1196 instead of writing to inferior_ptid.
1197 (THREAD_STOPPED_BY): Delete.
1198 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1199 (thread_stopped_by_hw_breakpoint): Delete.
1200 (save_waitstatus): Use
1201 scoped_restore_current_thread+switch_to_thread, and call
1202 target_stopped_by_watchpoint instead of
1203 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1204 instead of thread_stopped_by_sw_breakpoint, and
1205 target_stopped_by_hw_breakpoint instead of
1206 thread_stopped_by_hw_breakpoint.
1207 (handle_inferior_event)
1208 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1209 inferior_ptid directly, nor
1210 set_current_inferior/set_current_program_space. Use
1211 switch_to_thread / switch_to_inferior_no_thread instead.
1212
a0776b13
PA
12132020-06-18 Pedro Alves <palves@redhat.com>
1214
1215 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1216 instead of writing to inferior_ptid.
1217
6155c136
PA
12182020-06-18 Pedro Alves <palves@redhat.com>
1219
1220 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1221 added thread.
1222 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1223 to the added thread.
1224 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1225 instead of writing to inferior_ptid.
1226
c5316fc6
PA
12272020-06-18 Pedro Alves <palves@redhat.com>
1228
1229 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1230 (register_to_value_test): Mock a program_space too. Heap-allocate
1231 the address space. Don't write to inferior_ptid. Use
1232 switch_to_thread instead.
1233
8df01799
PA
12342020-06-18 Pedro Alves <palves@redhat.com>
1235
1236 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1237 Delete.
1238 (find_signalled_thread()): New, factored out from
1239 linux_make_corefile_notes and adjusted to handle exited threads.
1240 (linux_make_corefile_notes): Adjust to use the new
1241 find_signalled_thread.
1242
41792d68
PA
12432020-06-18 Pedro Alves <palves@redhat.com>
1244
1245 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1246 of saving/restoring inferior_ptid.
1247
612f258a
TT
12482020-06-17 Tom Tromey <tom@tromey.com>
1249
1250 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1251 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1252 declare.
1253 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1254
efb763a5
SM
12552020-06-15 Simon Marchi <simon.marchi@efficios.com>
1256
1257 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1258 of partial symtabs.
1259
2951f6c0
SM
12602020-06-17 Simon Marchi <simon.marchi@efficios.com>
1261
1262 * regformats/reg-arm.dat: Remove.
1263 * regformats/reg-bfin.dat: Remove.
1264 * regformats/reg-cris.dat: Remove.
1265 * regformats/reg-crisv32.dat: Remove.
1266 * regformats/reg-m32r.dat: Remove.
1267 * regformats/reg-tilegx.dat: Remove.
1268 * regformats/reg-tilegx32.dat: Remove.
1269
7d458ea5
SM
12702020-06-17 Simon Marchi <simon.marchi@efficios.com>
1271
1272 * features/Makefile (WHICH): Remove arm files.
1273 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1274 * regformats/arm/arm-with-neon.dat: Remove.
1275 * regformats/arm/arm-with-vfpv2.dat: Remove.
1276 * regformats/arm/arm-with-vfpv3.dat: Remove.
1277
3af96c0d
SM
12782020-06-17 Simon Marchi <simon.marchi@efficios.com>
1279
1280 * features/Makefile (XMLTOC): Remove rx.xml.
1281
b25e22fd
PA
12822020-06-17 Pedro Alves <palves@redhat.com>
1283
1284 * gdbthread.h (thread_control_state) <trap_expected> Update
1285 comments.
1286
a78a19b1
AB
12872020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1288
1289 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1290 ada_language::lookup_symbol_nonlocal.
1291 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1292 (ada_language::lookup_symbol_nonlocal): New member function,
1293 implementation from ada_lookup_symbol_nonlocal.
1294 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1295 initializer.
1296 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1297 initializer.
1298 (cplus_language::lookup_symbol_nonlocal): New member function.
1299 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1300 (minimal_language_data) Likewise.
1301 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1302 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1303 initializer.
1304 (d_language::lookup_symbol_nonlocal): New member function.
1305 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1306 initializer.
1307 (f_language::lookup_symbol_nonlocal): New member function.
1308 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1309 initializer.
1310 * language.c (unknown_language_data): Likewise.
1311 (auto_language_data): Likewise.
1312 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1313 field.
1314 (language_defn::lookup_symbol_nonlocal): New member function.
1315 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1316 initializer.
1317 * objc-lang.c (objc_language_data): Likewise.
1318 * opencl-lang.c (opencl_language_data): Likewise.
1319 * p-lang.c (pascal_language_data): Likewise.
1320 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1321 rust_language::lookup_symbol_nonlocal.
1322 (rust_language_data): Delete la_lookup_symbol_nonlocal
1323 initializer.
1324 (rust_language::lookup_symbol_nonlocal): New member function,
1325 implementation from rust_lookup_symbol_nonlocal.
1326 * symtab.c (lookup_symbol_aux): Update call to
1327 lookup_symbol_nonlocal.
1328 (basic_lookup_symbol_nonlocal): Rename to...
1329 (language_defn::lookup_symbol_nonlocal): ...this, and update
1330 header comment. Remove language_defn parameter, and replace with
1331 uses of `this'.
1332 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1333
ebe2334e
AB
13342020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1335
1336 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1337 initializer.
1338 (ada_language::value_print_inner): New member function.
1339 * c-lang.c (c_language_data): Delete la_value_print_inner
1340 initializer.
1341 (cplus_language_data): Likewise.
1342 (asm_language_data): Likewise.
1343 (minimal_language_data): Likewise.
1344 * d-lang.c (d_language_data): Likewise.
1345 (d_language::value_print_inner): New member function.
1346 * f-lang.c (f_language_data): Delete la_value_print_inner
1347 initializer.
1348 (f_language::value_print_inner): New member function.
1349 * f-lang.h (f_value_print_innner): Rename to...
1350 (f_value_print_inner): ...this (note spelling of 'inner').
1351 * f-valprint.c (f_value_print_innner): Rename to...
1352 (f_value_print_inner): ...this (note spelling of 'inner').
1353 * go-lang.c (go_language_data): Delete la_value_print_inner
1354 initializer.
1355 (go_language::value_print_inner): New member function.
1356 * language.c (language_defn::value_print_inner): Define new member
1357 function.
1358 (unk_lang_value_print_inner): Delete.
1359 (unknown_language_data): Delete la_value_print_inner initializer.
1360 (unknown_language::value_print_inner): New member function.
1361 (auto_language_data): Delete la_value_print_inner initializer.
1362 (auto_language::value_print_inner): New member function.
1363 * language.h (language_data): Delete la_value_print_inner field.
1364 (language_defn::value_print_inner): Delcare new member function.
1365 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1366 initializer.
1367 (m2_language::value_print_inner): New member function.
1368 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1369 initializer.
1370 * opencl-lang.c (opencl_language_data): Likewise.
1371 * p-lang.c (pascal_language_data): Likewise.
1372 (pascal_language::value_print_inner): New member function.
1373 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1374 initializer.
1375 (rust_language::value_print_inner): New member function.
1376 * valprint.c (do_val_print): Update call to value_print_inner.
1377
a1d1fa3e
AB
13782020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1379
1380 * ada-lang.c (ada_language_data): Delete la_value_print
1381 initializer.
1382 (ada_language::value_print): New member function.
1383 * c-lang.c (c_language_data): Delete la_value_print initializer.
1384 (cplus_language_data): Likewise.
1385 (asm_language_data): Likewise.
1386 (minimal_language_data): Likewise.
1387 * d-lang.c (d_language_data): Likewise.
1388 * f-lang.c (f_language_data): Likewise.
1389 * go-lang.c (go_language_data): Likewise.
1390 * language.c (unk_lang_value_print): Delete.
1391 (language_defn::value_print): Define new member function.
1392 (unknown_language_data): Delete la_value_print initializer.
1393 (unknown_language::value_print): New member function.
1394 (auto_language_data): Delete la_value_print initializer.
1395 (auto_language::value_print): New member function.
1396 * language.h (language_data): Delete la_value_print field.
1397 (language_defn::value_print): Declare new member function.
1398 (LA_VALUE_PRINT): Update call to value_print.
1399 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1400 * objc-lang.c (objc_language_data): Likewise.
1401 * opencl-lang.c (opencl_language_data): Likewise.
1402 * p-lang.c (pascal_language_data): Likewise.
1403 (pascal_language::value_print): New member function.
1404 * rust-lang.c (rust_language_data): Delete la_value_print
1405 initializer.
1406
f16a9f57
AB
14072020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1408
1409 * ada-lang.c (ada_watch_location_expression): Rename to
1410 ada_language::watch_location_expression.
1411 (ada_language_data): Delete la_watch_location_expression
1412 initializer.
1413 (ada_language::watch_location_expression): New member function,
1414 implementation from ada_watch_location_expression.
1415 * breakpoint.c (watch_command_1): Update call to
1416 watch_location_expression.
1417 * c-lang.c (c_watch_location_expression): Rename to
1418 language_defn::watch_location_expression.
1419 (c_language_data): Delete la_watch_location_expression
1420 initializer.
1421 (cplus_language_data): Likewise.
1422 (asm_language_data): Likewise.
1423 (minimal_language_data): Likewise.
1424 * c-lang.h (c_watch_location_expression): Delete declaration.
1425 * d-lang.c (d_language_data): Delete la_watch_location_expression
1426 initializer.
1427 * f-lang.c (f_language_data): Likewise.
1428 * go-lang.c (go_language_data): Likewise.
1429 * language.c (language_defn::watch_location_expression): Member
1430 function implementation from c_watch_location_expression.
1431 (unknown_language_data): Delete la_watch_location_expression
1432 initializer.
1433 (auto_language_data): Likewise.
1434 * language.h (language_data): Delete la_watch_location_expression
1435 field.
1436 (language_defn::watch_location_expression): Declare new member
1437 function.
1438 * m2-lang.c (m2_language_data): Delete
1439 la_watch_location_expression initializer.
1440 * objc-lang.c (objc_language_data): Likewise.
1441 * opencl-lang.c (opencl_language_data): Likewise.
1442 * p-lang.c (pascal_language_data): Likewise.
1443 * rust-lang.c (rust_watch_location_expression): Rename to
1444 rust_language::watch_location_expression.
1445 (rust_language_data): Delete la_watch_location_expression
1446 initializer.
1447 (rust_language::watch_location_expression): New member function,
1448 implementation from rust_watch_location_expression.
1449
7e56227d
AB
14502020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1451
1452 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1453 ada_language::collect_symbol_completion_matches.
1454 (ada_language_data): Delete la_collect_symbol_completion_matches
1455 initializer.
1456 (ada_language::collect_symbol_completion_matches): New member
1457 function, implementation from
1458 ada_collect_symbol_completion_matches.
1459 * c-lang.c (c_language_data): Delete
1460 la_collect_symbol_completion_matches initializer.
1461 (cplus_language_data): Likewise.
1462 (asm_language_data): Likewise.
1463 (minimal_language_data): Likewise.
1464 * d-lang.c (d_language_data): Likewise.
1465 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1466 f_language::collect_symbol_completion_matches.
1467 (f_language_data): Delete la_collect_symbol_completion_matches
1468 initializer.
1469 (f_language::collect_symbol_completion_matches) New member
1470 function, implementation from f_collect_symbol_completion_matches.
1471 * go-lang.c (go_language_data): Delete
1472 la_collect_symbol_completion_matches initializer.
1473 * language.c (unknown_language_data): Likewise.
1474 (auto_language_data): Likewise.
1475 * language.h (language_data): Delete
1476 la_collect_symbol_completion_matches field.
1477 (language_defn::collect_symbol_completion_matches): New member
1478 function.
1479 * m2-lang.c (m2_language_data): Delete
1480 la_collect_symbol_completion_matches initializer.
1481 * objc-lang.c (objc_language_data): Likewise.
1482 * opencl-lang.c (opencl_language_data): Likewise.
1483 * p-lang.c (pascal_language_data): Likewise.
1484 * rust-lang.c (rust_language_data): Likewise.
1485 * symtab.c (default_collect_symbol_completion_matches): Delete.
1486 (collect_symbol_completion_matches): Update call to
1487 collect_symbol_completion_matches.
1488 (collect_symbol_completion_matches_type): Likewise.
1489 * symtab.h (default_collect_symbol_completion_matches): Delete
1490 declaration.
1491
53fc67f8
AB
14922020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1493
1494 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1495 (ada_language_data): Delete la_word_break_characters initializer.
1496 (ada_language::word_break_characters): New member function.
1497 * c-lang.c (c_language_data): Delete la_word_break_characters
1498 initializer.
1499 (cplus_language_data): Likewise.
1500 (asm_language_data): Likewise.
1501 (minimal_language_data): Likewise.
1502 * completer.c: Update global comment.
1503 (advance_to_expression_complete_word_point): Update call to
1504 word_break_characters.
1505 (complete_files_symbols): Likewise.
1506 (complete_line_internal_1): Likewise.
1507 (default_completer_handle_brkchars): Likewise.
1508 (skip_quoted_chars): Likewise.
1509 * d-lang.c (d_language_data): Delete la_word_break_characters
1510 initializer.
1511 * f-lang.c (f_word_break_characters): Delete.
1512 (f_language_data): Delete la_word_break_characters initializer.
1513 (f_language::word_break_characters): New member function.
1514 * go-lang.c (go_language_data): Delete la_word_break_characters
1515 initializer.
1516 * language.c (unknown_language_data): Likewise.
1517 (auto_language_data): Likewise.
1518 * language.h (default_word_break_characters): Move declaration to
1519 earlier in the file.
1520 (language_data): Delete la_word_break_characters field.
1521 (language_defn::word_break_characters): New member function.
1522 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1523 initializer.
1524 * objc-lang.c (objc_language_data): Likewise.
1525 * opencl-lang.c (opencl_language_data): Likewise.
1526 * p-lang.c (pascal_language_data): Likewise.
1527 * rust-lang.c (rust_language_data): Likewise.
1528
c9debfb9
AB
15292020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1530
1531 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1532 (ada_language_data): Delete la_get_symbol_name_matcher
1533 initializer.
1534 (language_defn::get_symbol_name_matcher_inner): New member
1535 function.
1536 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1537 initializer.
1538 (cplus_language_data): Likewise.
1539 (cplus_language::get_symbol_name_matcher_inner): New member
1540 function.
1541 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1542 (minimal_language_data): Likewise.
1543 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1544 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1545 initializer.
1546 * dictionary.c (iter_match_first_hashed): Update call to
1547 get_symbol_name_matcher.
1548 (iter_match_next_hashed): Likewise.
1549 (iter_match_next_linear): Likewise.
1550 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1551 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1552 initializer.
1553 (f_language::get_symbol_name_matcher_inner): New member function.
1554 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1555 initializer.
1556 * language.c (default_symbol_name_matcher): Update header comment,
1557 make static.
1558 (language_defn::get_symbol_name_matcher): New definition.
1559 (language_defn::get_symbol_name_matcher_inner): Likewise.
1560 (get_symbol_name_matcher): Delete.
1561 (unknown_language_data): Delete la_get_symbol_name_matcher
1562 initializer.
1563 (auto_language_data): Likewise.
1564 * language.h (language_data): Delete la_get_symbol_name_matcher
1565 field.
1566 (language_defn::get_symbol_name_matcher): New member function.
1567 (language_defn::get_symbol_name_matcher_inner): Likewise.
1568 (default_symbol_name_matcher): Delete declaration.
1569 * linespec.c (find_methods): Update call to
1570 get_symbol_name_matcher.
1571 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1572 initializer.
1573 * minsyms.c (lookup_minimal_symbol): Update call to
1574 get_symbol_name_matcher.
1575 (iterate_over_minimal_symbols): Likewise.
1576 * objc-lang.c (objc_language_data): Delete
1577 la_get_symbol_name_matcher initializer.
1578 * opencl-lang.c (opencl_language_data): Likewise.
1579 * p-lang.c (pascal_language_data): Likewise.
1580 * psymtab.c (psymbol_name_matches): Update call to
1581 get_symbol_name_matcher.
1582 * rust-lang.c (rust_language_data): Delete
1583 la_get_symbol_name_matcher initializer.
1584 * symtab.c (symbol_matches_search_name): Update call to
1585 get_symbol_name_matcher.
1586 (compare_symbol_name): Likewise.
1587
9a49ad8c
AB
15882020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1589
1590 * ada-lang.c (ada_language_data): Delete la_compute_program
1591 initializer.
1592 * c-lang.c (c_language_data): Likewise.
1593 (c_language::compute_program): New member function.
1594 (cplus_language_data): Delete la_compute_program initializer.
1595 (cplus_language::compute_program): New member function.
1596 (asm_language_data): Delete la_compute_program initializer.
1597 (minimal_language_data): Likewise.
1598 * c-lang.h (c_compute_program): Update comment.
1599 (cplus_compute_program): Likewise.
1600 * compile/compile-c-support.c (c_compute_program): Likewise.
1601 (cplus_compute_program): Likewise.
1602 * compile/compile.c (compile_to_object): Update call to
1603 la_compute_program.
1604 * d-lang.c (d_language_data): Delete la_compute_program
1605 initializer.
1606 * f-lang.c (f_language_data): Likewise.
1607 * go-lang.c (go_language_data): Likewise.
1608 * language.c (unknown_language_data): Likewise.
1609 (auto_language_data): Likewise.
1610 * language.h (language_data): Delete la_compute_program field.
1611 (language_defn::compute_program): New member function.
1612 * m2-lang.c (m2_language_data): Delete la_compute_program
1613 initializer.
1614 * objc-lang.c (objc_language_data): Likewise.
1615 * opencl-lang.c (opencl_language_data): Likewise.
1616 * p-lang.c (pascal_language_data): Likewise.
1617 * rust-lang.c (rust_language_data): Likewise.
1618
eff93b4d
AB
16192020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1620
1621 * ada-lang.c (ada_language_data) Delete
1622 la_class_name_from_physname initializer.
1623 * c-lang.c (c_language_data): Likewise.
1624 (cplus_language_data): Likewise.
1625 (cplus_language::class_name_from_physname): New member function.
1626 (asm_language_data): Delete la_class_name_from_physname
1627 initializer.
1628 (minimal_language_data): Likewise.
1629 * d-lang.c (d_language_data): Likewise.
1630 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1631 method on language_defn class.
1632 (guess_full_die_structure_name): Likewise.
1633 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1634 initializer.
1635 * go-lang.c (go_language_data): Likewise.
1636 * language.c (language_class_name_from_physname): Delete.
1637 (unk_lang_class_name): Delete.
1638 (unknown_language_data): Delete la_class_name_from_physname
1639 initializer.
1640 (auto_language_data): Likewise.
1641 * language.h (language_data): Delete la_class_name_from_physname
1642 field.
1643 (language_defn::class_name_from_physname): New function.
1644 (language_class_name_from_physname): Delete declaration.
1645 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1646 initializer.
1647 * objc-lang.c (objc_language_data): Likewise.
1648 * opencl-lang.c (opencl_language_data): Likewise.
1649 * p-lang.c (pascal_language_data): Likewise.
1650 * rust-lang.c (rust_language_data): Likewise.
1651
de543742
TT
16522020-06-16 Tom Tromey <tom@tromey.com>
1653
1654 * tui/tui-data.h (STATUS_NAME): New macro.
1655 * tui/tui-layout.c (tui_remove_some_windows)
1656 (initialize_known_windows, tui_register_window)
1657 (tui_layout_split::remove_windows, initialize_layouts)
1658 (tui_new_layout_command): Don't use hard-coded window names.
1659
a350efd4
TT
16602020-06-16 Tom Tromey <tom@tromey.com>
1661
1662 PR tui/25348:
1663 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1664 tui_initialize_readline. Only run once. Call rl_initialize.
1665 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1666 tui_initialize_readline.
1667 * tui/tui-io.c (tui_setup_io): Call
1668 tui_ensure_readline_initialized.
1669 * tui/tui-interp.c (tui_interp::init): Update.
1670
39ec0490
TT
16712020-06-16 Tom Tromey <tom@tromey.com>
1672
1673 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1674 Also preserve the status window.
1675
d2d1ea20
TT
16762020-06-16 Tom Tromey <tom@tromey.com>
1677
1678 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1679 where m_window==nullptr.
1680
66920317
TT
16812020-06-15 Tom Tromey <tromey@adacore.com>
1682
1683 * windows-nat.c (windows_nat::handle_output_debug_string):
1684 Update.
1685 (windows_nat::handle_ms_vc_exception): Update.
1686 * target.h (target_read_string): Change API.
1687 * target.c (target_read_string): Change API.
1688 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1689 Update.
1690 * solib-frv.c (frv_current_sos): Update.
1691 * solib-dsbt.c (dsbt_current_sos): Update.
1692 * solib-darwin.c (darwin_current_sos): Update.
1693 * linux-thread-db.c (inferior_has_bug): Update.
1694 * expprint.c (print_subexp_standard): Update.
1695 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1696 (ada_exception_message_1): Update.
1697
a5d871dd
TT
16982020-06-15 Tom Tromey <tromey@adacore.com>
1699
1700 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1701
670e35fa
TT
17022020-06-15 Tom Tromey <tromey@adacore.com>
1703
1704 * valprint.c (read_string): Update comment.
1705 * target.c (MIN): Remove.
1706 (target_read_string): Rewrite.
1707
f5272a3b
TT
17082020-06-15 Tom Tromey <tromey@adacore.com>
1709
1710 * corefile.c (read_memory_string): Remove.
1711 * ada-valprint.c (ada_value_print_ptr): Update.
1712 * ada-lang.h (ada_tag_name): Change return type.
1713 * ada-lang.c (type_from_tag): Update.
1714 (ada_tag_name_from_tsd): Change return type. Use
1715 target_read_string.
1716 (ada_tag_name): Likewise.
1717 * gdbcore.h (read_memory_string): Don't declare.
1718
2c074f49
HD
17192020-06-14 Hannes Domani <ssbssa@yahoo.de>
1720
1721 * symtab.c (rbreak_command): Ignore Windows drive colon.
1722
6a17d503
SM
17232020-06-12 Simon Marchi <simon.marchi@efficios.com>
1724
1725 * NEWS: Mention removed GDBserver host support.
1726
453c733f
NC
17272020-06-12 Nelson Chu <nelson.chu@sifive.com>
1728
1729 * features/riscv/rebuild-csr-xml.sh: Updated.
1730
2b4e6a3f
TT
17312020-06-11 Tom Tromey <tom@tromey.com>
1732
1733 PR gdb/18318:
1734 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1735
4412332f
JG
17362020-06-09 Jonny Grant <jg@jguk.org>
17372020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1738
1739 * main.c (captured_main_1): Don't print new line after help.
1740 (print_gdb_help): add mailing list and IRC channel information
1741 to --help. Add new lines between items in the footer. Remove
1742 quotes around bug url.
1743
2f33032a
KS
17442020-06-11 Keith Seitz <keiths@redhat.com>
1745
1746 PR gdb/21356
1747 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1748 Resolve typedefs for type length calculations.
1749
7ab96794
TV
17502020-06-10 Tom de Vries <tdevries@suse.de>
1751
1752 PR ada/24713
1753 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1754 (write_psymbols): Enable .gdb_index for ada.
1755 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1756 ada.
1757
e5f3ece2
TV
17582020-06-10 Tom de Vries <tdevries@suse.de>
1759
1760 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1761 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1762 namei" instead of "const char *name" argument.
1763 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1764 dw2_symtab_iter_init.
1765
940da03e
SM
17662020-06-08 Simon Marchi <simon.marchi@efficios.com>
1767
1768 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1769 to use type::field and field::type instead.
1770
b6cdac4b
SM
17712020-06-08 Simon Marchi <simon.marchi@efficios.com>
1772
1773 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1774 to use field::type instead.
1775
5d14b6e5
SM
17762020-06-08 Simon Marchi <simon.marchi@efficios.com>
1777
1778 * gdbtypes.h (struct field) <type, set_type>: New methods.
1779 Rename `type` field to...
1780 <m_type>: ... this. Change references throughout to use type or
1781 set_type methods.
1782 (FIELD_TYPE): Use field::type. Change call sites that modify
1783 the field's type to use field::set_type instead.
1784
3d967001
SM
17852020-06-08 Simon Marchi <simon.marchi@efficios.com>
1786
1787 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1788 to use type::index_type instead.
1789
262abc0d
SM
17902020-06-08 Simon Marchi <simon.marchi@efficios.com>
1791
1792 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1793 methods.
1794 (TYPE_INDEX_TYPE): Use type::index_type.
1795 * gdbtypes.c (create_array_type_with_stride): Likewise.
1796
82836c92
TT
17972020-06-07 Tom Tromey <tom@tromey.com>
1798
1799 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1800 parameter.
1801 (generic_value_print): Update.
1802
940dace9
AB
18032020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1804
1805 Revert commit 982a38f60b0.
1806 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1807
982a38f6
AB
18082020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1809
1810 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1811 avoid use after free.
1812
82f06518
TV
18132020-06-05 Tom de Vries <tdevries@suse.de>
1814
1815 * NEWS: Fix typos.
1816
f8c41851
SM
18172020-06-04 Simon Marchi <simon.marchi@efficios.com>
1818
1819 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1820 the per_bfd object.
1821 (dwarf2_read_debug_names): Likewise.
1822 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1823 object when re-using a per_bfd object with an index.
1824
f9b5d5ea
TV
18252020-06-03 Tom de Vries <tdevries@suse.de>
1826
1827 PR symtab/26046
1828 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1829 children for C++.
1830 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1831 DW_TAG_subprogram.
1832
f6eee2d0
AB
18332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1834
1835 * ada-lang.c (ada_language_data): Delete skip_trampoline
1836 initializer.
1837 * c-lang.c (c_language_data): Likewise.
1838 (cplus_language_data): Likewise.
1839 (cplus_language::skip_trampoline): New member function.
1840 (asm_language_data): Delete skip_trampoline initializer.
1841 (minimal_language_data): Likewise.
1842 * d-lang.c (d_language_data): Likewise.
1843 * f-lang.c (f_language_data): Likewise.
1844 * go-lang.c (go_language_data): Likewise.
1845 * language.c (unk_lang_trampoline): Delete function.
1846 (skip_language_trampoline): Update.
1847 (unknown_language_data): Delete skip_trampoline initializer.
1848 (auto_language_data): Likewise.
1849 * language.h (language_data): Delete skip_trampoline field.
1850 (language_defn::skip_trampoline): New function.
1851 * m2-lang.c (m2_language_data): Delete skip_trampoline
1852 initializer.
1853 * objc-lang.c (objc_skip_trampoline): Delete function, move
1854 implementation to objc_language::skip_trampoline.
1855 (objc_language_data): Delete skip_trampoline initializer.
1856 (objc_language::skip_trampoline): New member function with
1857 implementation from objc_skip_trampoline.
1858 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1859 initializer.
1860 * p-lang.c (pascal_language_data): Likewise.
1861 * rust-lang.c (rust_language_data): Likewise.
1862
0a50df5d
AB
18632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1864
1865 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1866 (ada_language::demangle): New member function.
1867 * c-lang.c (c_language_data): Delete la_demangle initializer.
1868 (cplus_language_data): Delete la_demangle initializer.
1869 (cplus_language::demangle): New member function.
1870 (asm_language_data): Delete la_demangle initializer.
1871 (minimal_language_data): Delete la_demangle initializer.
1872 * d-lang.c (d_language_data): Delete la_demangle initializer.
1873 (d_language::demangle): New member function.
1874 * f-lang.c (f_language_data): Delete la_demangle initializer.
1875 (f_language::demangle): New member function.
1876 * go-lang.c (go_language_data): Delete la_demangle initializer.
1877 (go_language::demangle): New member function.
1878 * language.c (language_demangle): Update.
1879 (unk_lang_demangle): Delete.
1880 (unknown_language_data): Delete la_demangle initializer.
1881 (unknown_language::demangle): New member function.
1882 (auto_language_data): Delete la_demangle initializer.
1883 (auto_language::demangle): New member function.
1884 * language.h (language_data): Delete la_demangle field.
1885 (language_defn::demangle): New function.
1886 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1887 * objc-lang.c (objc_language_data): Delete la_demangle
1888 initializer.
1889 (objc_language::demangle): New member function.
1890 * opencl-lang.c (opencl_language_data): Delete la_demangle
1891 initializer.
1892 * p-lang.c (pascal_language_data): Likewise.
1893 * rust-lang.c (rust_language_data): Likewise.
1894 (rust_language::demangle): New member function.
1895
fbfb0a46
AB
18962020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1897
1898 * ada-lang.c (ada_language_data): Delete la_print_type
1899 initializer.
1900 (ada_language::print_type): New member function.
1901 * c-lang.c (c_language_data): Delete la_print_type initializer.
1902 (c_language::print_type): New member function.
1903 (cplus_language_data): Delete la_print_type initializer.
1904 (cplus_language::print_type): New member function.
1905 (asm_language_data): Delete la_print_type initializer.
1906 (asm_language::print_type): New member function.
1907 (minimal_language_data): Delete la_print_type initializer.
1908 (minimal_language::print_type): New member function.
1909 * d-lang.c (d_language_data): Delete la_print_type initializer.
1910 (d_language::print_type): New member function.
1911 * f-lang.c (f_language_data): Delete la_print_type initializer.
1912 (f_language::print_type): New member function.
1913 * go-lang.c (go_language_data): Delete la_print_type initializer.
1914 (go_language::print_type): New member function.
1915 * language.c (unk_lang_print_type): Delete.
1916 (unknown_language_data): Delete la_print_type initializer.
1917 (unknown_language::print_type): New member function.
1918 (auto_language_data): Delete la_print_type initializer.
1919 (auto_language::print_type): New member function.
1920 * language.h (language_data): Delete la_print_type field.
1921 (language_defn::print_type): New function.
1922 (LA_PRINT_TYPE): Update.
1923 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1924 (m2_language::print_type): New member function.
1925 * objc-lang.c (objc_language_data): Delete la_print_type
1926 initializer.
1927 (objc_language::print_type): New member function.
1928 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1929 to opencl_language::print_type.
1930 (opencl_language_data): Delete la_print_type initializer.
1931 (opencl_language::print_type): New member function, implementation
1932 from opencl_print_type.
1933 * p-lang.c (pascal_language_data): Delete la_print_type
1934 initializer.
1935 (pascal_language::print_type): New member function.
1936 * rust-lang.c (rust_print_type): Delete, implementation moved to
1937 rust_language::print_type.
1938 (rust_language_data): Delete la_print_type initializer.
1939 (rust_language::print_type): New member function, implementation
1940 from rust_print_type.
1941
6f827019
AB
19422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1943
1944 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1945 implementation moves to...
1946 (ada_language::sniff_from_mangled_name): ...here. Update return
1947 type.
1948 (ada_language_data): Delete la_sniff_from_mangled_name
1949 initializer.
1950 * c-lang.c (c_language_data): Likewise.
1951 (cplus_language_data): Likewise.
1952 (cplus_language::sniff_from_mangled_name): New member function,
1953 implementation taken from gdb_sniff_from_mangled_name.
1954 (asm_language_data): Delete la_sniff_from_mangled_name
1955 initializer.
1956 (minimal_language_data): Likewise.
1957 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1958 implementation moves to cplus_language::sniff_from_mangled_name.
1959 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1960 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1961 moves to...
1962 (d_language::sniff_from_mangled_name): ...here.
1963 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1964 * f-lang.c (f_language_data): Likewise.
1965 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1966 moves to...
1967 (go_language::sniff_from_mangled_name): ...here.
1968 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1969 * language.c (language_sniff_from_mangled_name): Delete.
1970 (unknown_language_data): Delete la_sniff_from_mangled_name
1971 initializer.
1972 (auto_language_data): Likewise.
1973 * language.h (language_data): Delete la_sniff_from_mangled_name
1974 field.
1975 (language_defn::sniff_from_mangled_name): New function.
1976 (language_sniff_from_mangled_name): Delete declaration.
1977 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1978 field.
1979 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1980 implementation moves to...
1981 (objc_language::sniff_from_mangled_name): ...here.
1982 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1983 * opencl-lang.c (opencl_language_data): Likewise.
1984 * p-lang.c (pascal_language_data): Likewise.
1985 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1986 implementation moves to...
1987 (rust_language::sniff_from_mangled_name): ...here.
1988 (rust_language_data): Delete la_sniff_from_mangled_name
1989 initializer.
1990 * symtab.c (symbol_find_demangled_name): Call
1991 sniff_from_mangled_name member function.
1992
fb8006fd
AB
19932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1994
1995 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1996 initializer.
1997 * c-lang.c (c_language_data): Likewise.
1998 (cplus_language_data): Likewise.
1999 (cplus_language::search_name_hash): New member function.
2000 (asm_language_data): Delete la_search_name_hash initializer.
2001 (minimal_language_data): Likewise.
2002 * d-lang.c (d_language_data): Likewise.
2003 * dictionary.c (default_search_name_hash): Rename to...
2004 (language_defn::search_name_hash): ...this.
2005 * f-lang.c (f_language_data): Likewise.
2006 (f_language::search_name_hash): New member function.
2007 * go-lang.c (go_language_data): Delete la_search_name_hash
2008 initializer.
2009 * language.c (unknown_language_data): Likewise.
2010 (auto_language_data): Likewise.
2011 * language.h (struct language_data): Delete la_search_name_hash
2012 field.
2013 (language_defn::search_name_hash): Declare new member function.
2014 (default_search_name_hash): Delete declaration.
2015 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2016 initializer.
2017 * objc-lang.c (objc_language_data): Likewise.
2018 * opencl-lang.c (opencl_language_data): Likewise.
2019 * p-lang.c (pascal_language_data): Likewise.
2020 * rust-lang.c (rust_language_data): Likewise.
2021 * symtab.c (search_name_hash): Update call.
2022
8e25bafe
AB
20232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2024
2025 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2026 initializer.
2027 * c-lang.c (class compile_instance): Declare.
2028 (c_language_data): Delete la_get_compile_instance initializer.
2029 (c_language::get_compile_instance): New member function.
2030 (cplus_language_data): Delete la_get_compile_instance initializer.
2031 (cplus_language::get_compile_instance): New member function.
2032 (asm_language_data): Delete la_get_compile_instance initializer.
2033 (minimal_language_data): Likewise.
2034 * c-lang.h (c_get_compile_context): Update comment.
2035 (cplus_get_compile_context): Update comment.
2036 * compile/compile.c (compile_to_object): Update calls, don't rely
2037 on function pointer being NULL.
2038 * d-lang.c (d_language_data): Delete la_get_compile_instance
2039 initializer.
2040 * f-lang.c (f_language_data): Likewise.
2041 * go-lang.c (go_language_data): Likewise.
2042 * language.c (unknown_language_data): Likewise.
2043 (auto_language_data): Likewise.
2044 * language.h (language_data): Delete la_get_compile_instance field.
2045 (language_defn::get_compile_instance): New member function.
2046 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2047 initializer.
2048 * objc-lang.c (objc_language_data): Likewise.
2049 * opencl-lang.c (opencl_language_data): Likewise.
2050 * p-lang.c (pascal_language_data): Likewise.
2051 * rust-lang.c (rust_language_data): Likewise.
2052
4009ee92
AB
20532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2054
2055 * ada-lang.c (ada_add_all_symbols): Update comment.
2056 (ada_iterate_over_symbols): Delete, move implementation to...
2057 (ada_language::iterate_over_symbols): ...here, a new member
2058 function, rewrite to use range based for loop.
2059 (ada_language_data): Delete la_iterate_over_symbols initializer.
2060 * c-lang.c (c_language_data): Likewise.
2061 (cplus_language_data): Likewise.
2062 (asm_language_data): Likewise.
2063 (minimal_language_data): Likewise.
2064 * d-lang.c (d_language_data): Likewise.
2065 * f-lang.c (f_language_data): Likewise.
2066 * go-lang.c (go_language_data): Likewise.
2067 * language.c (unknown_language_data): Likewise.
2068 (auto_language_data): Likewise.
2069 * language.h (language_data): Delete la_iterate_over_symbols field.
2070 (language_defn::iterate_over_symbols): New member function.
2071 (LA_ITERATE_OVER_SYMBOLS): Update.
2072 * linespec.c (iterate_over_all_matching_symtabs): Update.
2073 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2074 initializer.
2075 * objc-lang.c (objc_language_data): Likewise.
2076 * opencl-lang.c (opencl_language_data): Likewise.
2077 * p-lang.c (pascal_language_data): Likewise.
2078 * rust-lang.c (rust_language_data): Likewise.
2079
54f4ca46
AB
20802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2081
2082 * ada-lang.c (ada_language_data): Delete
2083 la_lookup_transparent_type initializer.
2084 * c-lang.c (c_language_data): Likewise.
2085 (cplus_language_data): Likewise.
2086 (cplus_language::lookup_transparent_type): New member function.
2087 (asm_language_data): Delete la_lookup_transparent_type
2088 initializer.
2089 (minimal_language_data): Likewise.
2090 * d-lang.c (d_language_data): Likewise.
2091 * f-lang.c (f_language_data): Likewise.
2092 * go-lang.c (go_language_data): Likewise.
2093 * language.c (unknown_language_data): Likewise.
2094 (auto_language_data): Likewise.
2095 * language.h (struct language_data): Delete
2096 la_lookup_transparent_type field.
2097 (language_defn::lookup_transparent_type): New member function.
2098 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2099 initializer.
2100 * objc-lang.c (objc_language_data): Likewise.
2101 * opencl-lang.c (opencl_language_data): Likewise.
2102 * p-lang.c (pascal_language_data): Likewise.
2103 * rust-lang.c (rust_language_data): Likewise.
2104 * symtab.c (symbol_matches_domain): Update call.
2105
1fb314aa
AB
21062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2107
2108 * ada-lang.c (ada_language_arch_info): Delete function, move
2109 implementation to...
2110 (ada_language::language_arch_info): ...here, a new member
2111 function.
2112 (ada_language_data): Delete la_language_arch_info.
2113 * c-lang.c (c_language_data): Likewise.
2114 (c_language::language_arch_info): New member function.
2115 (cplus_language_arch_info): Delete function, move
2116 implementation to...
2117 (cplus_language::language_arch_info): ...here, a new member
2118 function.
2119 (cplus_language_data): Delete la_language_arch_info.
2120 (asm_language_data): Likewise.
2121 (asm_language::language_arch_info): New member function.
2122 (minimal_language_data): Delete la_language_arch_info.
2123 (minimal_language::language_arch_info): New member function.
2124 * d-lang.c (d_language_arch_info): Delete function, move
2125 implementation to...
2126 (d_language::language_arch_info): ...here, a new member
2127 function.
2128 (d_language_data): Delete la_language_arch_info.
2129 * f-lang.c (f_language_arch_info): Delete function, move
2130 implementation to...
2131 (f_language::language_arch_info): ...here, a new member
2132 function.
2133 (f_language_data): Delete la_language_arch_info.
2134 * go-lang.c (go_language_arch_info): Delete function, move
2135 implementation to...
2136 (go_language::language_arch_info): ...here, a new member
2137 function.
2138 (go_language_data): Delete la_language_arch_info.
2139 * language.c (unknown_language_data): Likewise.
2140 (unknown_language::language_arch_info): New member function.
2141 (auto_language_data): Delete la_language_arch_info.
2142 (auto_language::language_arch_info): New member function.
2143 (language_gdbarch_post_init): Update call to
2144 la_language_arch_info.
2145 * language.h (language_data): Delete la_language_arch_info
2146 function pointer.
2147 (language_defn::language_arch_info): New function.
2148 * m2-lang.c (m2_language_arch_info): Delete function, move
2149 implementation to...
2150 (m2_language::language_arch_info): ...here, a new member
2151 function.
2152 (m2_language_data): Delete la_language_arch_info.
2153 * objc-lang.c (objc_language_arch_info): Delete function, move
2154 implementation to...
2155 (objc_language::language_arch_info): ...here, a new member
2156 function.
2157 (objc_language_data): Delete la_language_arch_info.
2158 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2159 implementation to...
2160 (opencl_language::language_arch_info): ...here, a new member
2161 function.
2162 (opencl_language_data): Delete la_language_arch_info.
2163 * p-lang.c (pascal_language_arch_info): Delete function, move
2164 implementation to...
2165 (pascal_language::language_arch_info): ...here, a new member
2166 function.
2167 (pascal_language_data): Delete la_language_arch_info.
2168 * rust-lang.c (rust_language_arch_info): Delete function, move
2169 implementation to...
2170 (rust_language::language_arch_info): ...here, a new member
2171 function.
2172 (rust_language_data): Delete la_language_arch_info.
2173
48448202
AB
21742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2175
2176 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2177 initializer.
2178 * c-lang.c (c_language_data): Likewise.
2179 (cplus_language_data): Likewise.
2180 (cplus_language::pass_by_reference_info): New method.
2181 (asm_language_data): Delete la_pass_by_reference initializer.
2182 (minimal_language_data): Likewise.
2183 * cp-abi.c (cp_pass_by_reference): Remove use of
2184 default_pass_by_reference.
2185 * d-lang.c (d_language_data): Likewise.
2186 * f-lang.c (f_language_data): Likewise.
2187 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2188 default_pass_by_reference.
2189 * go-lang.c (go_language_data): Likewise.
2190 * language.c (language_pass_by_reference): Update.
2191 (default_pass_by_reference): Delete.
2192 (unknown_language_data): Delete la_pass_by_reference
2193 initializer.
2194 (auto_language_data): Likewise.
2195 * language.h (struct language_data): Delete la_pass_by_reference
2196 field.
2197 (language_defn::pass_by_reference_info): New member function.
2198 (default_pass_by_reference): Delete declaration.
2199 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2200 initializer.
2201 * objc-lang.c (objc_language_data): Likewise.
2202 * opencl-lang.c (opencl_language_data): Likewise.
2203 * p-lang.c (pascal_language_data): Likewise.
2204 * rust-lang.c (rust_language_data): Likewise.
2205
15e5fd35
AB
22062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2207
2208 * ada-lang.c (ada_read_var_value): Delete function, move
2209 implementation to...
2210 (ada_language::read_var_value): ...here.
2211 (ada_language_data): Delete la_read_var_value initializer.
2212 * c-lang.c (c_language_data): Likewise.
2213 (cplus_language_data): Likewise.
2214 (minimal_language_data): Likewise.
2215 * d-lang.c (d_language_data): Likewise.
2216 * f-lang.c (f_language_data): Likewise.
2217 * findvar.c (default_read_var_value): Rename to...
2218 (language_defn::read_var_value): ...this.
2219 * findvar.c (read_var_value): Update header comment, and change to
2220 call member function instead of function pointer.
2221 * go-lang.c (go_language_data): Likewise.
2222 * language.c (unknown_language_data): Delete la_read_var_value
2223 initializer.
2224 (auto_language_data): Likewise.
2225 * language.h (struct language_data): Delete la_read_var_value
2226 field.
2227 (language_defn::read_var_value): New member function.
2228 (default_read_var_value): Delete declaration.
2229 * m2-lang.c (m2_language_data): Delete la_read_var_value
2230 initializer.
2231 * objc-lang.c (objc_language_data): Likewise.
2232 * opencl-lang.c (opencl_language_data): Likewise.
2233 * p-lang.c (pascal_language_data): Likewise.
2234 * rust-lang.c (rust_language_data): Likewise.
2235 * value.h (default_read_var_value): Delete declaration.
2236
5bd40f2a
AB
22372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2238
2239 * ada-lang.c (ada_print_array_index): Delete function, move
2240 implementation to...
2241 (ada_language::print_array_index): ...here.
2242 (ada_language_data): Delete la_print_array_index initializer.
2243 * c-lang.c (c_language_data): Likewise.
2244 (cplus_language_data): Likewise.
2245 (minimal_language_data): Likewise.
2246 * d-lang.c (d_language_data): Likewise.
2247 * f-lang.c (f_language_data): Likewise.
2248 * go-lang.c (go_language_data): Likewise.
2249 * language.c (default_print_array_index): Delete function, move
2250 implementation to...
2251 (language_defn::print_array_index): ...here.
2252 (unknown_language_data): Delete la_print_array_index initializer.
2253 (auto_language_data): Likewise.
2254 * language.h (struct language_data): Delete la_print_array_index
2255 field.
2256 (language_defn::print_array_index): New member function.
2257 (LA_PRINT_ARRAY_INDEX): Update.
2258 (default_print_array_index): Delete declaration.
2259 * m2-lang.c (m2_language_data): Delete la_print_array_index
2260 initializer.
2261 * objc-lang.c (objc_language_data): Likewise.
2262 * opencl-lang.c (opencl_language_data): Likewise.
2263 * p-lang.c (pascal_language_data): Likewise.
2264 * rust-lang.c (rust_language_data): Likewise.
2265
0874fd07
AB
22662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2267
2268 * gdb/ada-lang.c (ada_language_defn): Convert to...
2269 (ada_language_data): ...this.
2270 (class ada_language): New class.
2271 (ada_language_defn): New static global.
2272 * gdb/c-lang.c (c_language_defn): Convert to...
2273 (c_language_data): ...this.
2274 (class c_language): New class.
2275 (c_language_defn): New static global.
2276 (cplus_language_defn): Convert to...
2277 (cplus_language_data): ...this.
2278 (class cplus_language): New class.
2279 (cplus_language_defn): New static global.
2280 (asm_language_defn): Convert to...
2281 (asm_language_data): ...this.
2282 (class asm_language): New class.
2283 (asm_language_defn): New static global.
2284 (minimal_language_defn): Convert to...
2285 (minimal_language_data): ...this.
2286 (class minimal_language): New class.
2287 (minimal_language_defn): New static global.
2288 * gdb/d-lang.c (d_language_defn): Convert to...
2289 (d_language_data): ...this.
2290 (class d_language): New class.
2291 (d_language_defn): New static global.
2292 * gdb/f-lang.c (f_language_defn): Convert to...
2293 (f_language_data): ...this.
2294 (class f_language): New class.
2295 (f_language_defn): New static global.
2296 * gdb/go-lang.c (go_language_defn): Convert to...
2297 (go_language_data): ...this.
2298 (class go_language): New class.
2299 (go_language_defn): New static global.
2300 * gdb/language.c (unknown_language_defn): Remove declaration.
2301 (current_language): Initialize to nullptr, real initialization is
2302 moved to _initialize_language.
2303 (languages): Delete global.
2304 (language_defn::languages): Define.
2305 (set_language_command): Use language_defn::languages.
2306 (set_language): Likewise.
2307 (range_error): Likewise.
2308 (language_enum): Likewise.
2309 (language_def): Likewise.
2310 (add_set_language_command): Use language_def::languages for the
2311 language list, and language_def to lookup language pointers.
2312 (skip_language_trampoline): Use language_defn::languages.
2313 (unknown_language_defn): Convert to...
2314 (unknown_language_data): ...this.
2315 (class unknown_language): New class.
2316 (unknown_language_defn): New static global.
2317 (auto_language_defn): Convert to...
2318 (auto_language_data): ...this.
2319 (class auto_language): New class.
2320 (auto_language_defn): New static global.
2321 (language_gdbarch_post_init): Use language_defn::languages.
2322 (_initialize_language): Initialize current_language.
2323 * gdb/language.h (struct language_defn): Rename to...
2324 (struct language_data): ...this.
2325 (struct language_defn): New.
2326 (auto_language_defn): Delete.
2327 (unknown_language_defn): Delete.
2328 (minimal_language_defn): Delete.
2329 (ada_language_defn): Delete.
2330 (asm_language_defn): Delete.
2331 (c_language_defn): Delete.
2332 (cplus_language_defn): Delete.
2333 (d_language_defn): Delete.
2334 (f_language_defn): Delete.
2335 (go_language_defn): Delete.
2336 (m2_language_defn): Delete.
2337 (objc_language_defn): Delete.
2338 (opencl_language_defn): Delete.
2339 (pascal_language_defn): Delete.
2340 (rust_language_defn): Delete.
2341 * gdb/m2-lang.c (m2_language_defn): Convert to...
2342 (m2_language_data): ...this.
2343 (class m2_language): New class.
2344 (m2_language_defn): New static global.
2345 * gdb/objc-lang.c (objc_language_defn): Convert to...
2346 (objc_language_data): ...this.
2347 (class objc_language): New class.
2348 (objc_language_defn): New static global.
2349 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2350 (opencl_language_data): ...this.
2351 (class opencl_language): New class.
2352 (opencl_language_defn): New static global.
2353 * gdb/p-lang.c (pascal_language_defn): Convert to...
2354 (pascal_language_data): ...this.
2355 (class pascal_language): New class.
2356 (pascal_language_defn): New static global.
2357 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2358 language pointer, update comment format.
2359 * gdb/rust-lang.c (rust_language_defn): Convert to...
2360 (rust_language_data): ...this.
2361 (class rust_language): New class.
2362 (rust_language_defn): New static global.
2363
1313c56e
AB
23642020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2365
2366 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2367 member variable.
2368 <m_stmt_at_address>: New member variable.
2369 (lnp_state_machine::record_line): Don't record some lines, update
2370 tracking of is_stmt at the same address.
2371 (lnp_state_machine::lnp_state_machine): Initialise new member
2372 variables.
2373
b7ed9f3d
ST
23742020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2375
2376 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2377 "-include gnu-nat-mig.h".
2378 * gnu-nat-mig.h: New file.
2379 * gnu-nat.c: Include "gnu-nat-mig.h".
2380 (exc_server, msg_reply_server, notify_server,
2381 process_reply_server): Remove declarations.
2382
14a8ad62
ST
23832020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2384
2385 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2386 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2387 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2388 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2389 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2390 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2391 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2392 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2393 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2394 to gnu_nat_target class.
2395 * gnu-nat.c: Likewise.
2396 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2397 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2398 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2399 object.
2400 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2401 instead of `gnu_target'.
2402
0af5e106
ST
24032020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2404
2405 * i386-gnu-tdep.c: Include "gdbcore.h"
2406 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2407 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2408 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2409 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2410 i386_gnu_sigcontext_addr): New functions
2411 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2412 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2413 tdep.
2414
078f2fc9
ST
24152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2416
2417 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2418 before fork_inferior call. Avoid calling it if target_is_pushed returns
2419 true.
2420
53dff92c
ST
24212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2422
2423 * gnu-nat.h (gnu_target): New variable declaration.
2424 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2425 gnu_target.
2426 * gnu-nat.c (gnu_target): New variable.
2427 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2428 add_thread_silent, and add_thread calls.
2429 (gnu_nat_target::create_inferior): Pass gnu_target to
2430 add_thread_silent, thread_change_ptid call.
2431 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2432 call.
2433
5a8b8627
ST
24342020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2435
2436 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2437 (gnu_nat_target::find_memory_regions): Remove unused
2438 `old_address' variable.
2439
366f550a
ST
24402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2441
2442 * gnu-nat.c: Include "gdbarch.h".
2443
f14871bf
ST
24442020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2445
2446 * reply_mig_hack.awk (Error return): Cast function through
2447 void *, to bypass compiler function call check.
2448
c6887cfb
ST
24492020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2450
2451 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2452 $(srcdir)/reply_mig_hack.awk.
2453
6930bffe
ST
24542020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2455
2456 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2457
112c22ed
JG
24582020-05-30 Jonny Grant <jg@jguk.org>
2459
2460 * configure.ac (ACX_BUGURL): change bug URL to https.
2461
f68f85b5
PA
24622020-05-30 Pedro Alves <palves@redhat.com>
2463
2464 * cp-support.c (replace_typedefs_template): New.
2465 (replace_typedefs_qualified_name): Handle
2466 DEMANGLE_COMPONENT_TEMPLATE.
2467
976ca316
SM
24682020-05-29 Simon Marchi <simon.marchi@efficios.com>
2469
2470 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2471 dwarf2/index-cache.h, dwarf2/index-write.c,
2472 dwarf2/index-write.h, dwarf2/line-header.c,
2473 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2474 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2475 variables and fields from `dwarf2_per_objfile` to just
2476 `per_objfile` throughout.
2477
989ade05
SM
24782020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2479
2480 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2481 <push_dwarf_reg_entry_value>: Add comment.
2482
c47bae85
KB
24832020-05-28 Kevin Buettner <kevinb@redhat.com>
2484 Keith Seitz <keiths@redhat.com>
2485
2486 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2487 instead of PyEval_ReleaseLock.
2488 (class gdbpy_gil): Move to earlier in file.
2489 (finalize_python): Set gdb_python_initialized.
2490 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2491 when not initialized.
2492
44486dcf
SM
24932020-05-28 Simon Marchi <simon.marchi@efficios.com>
2494
2495 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2496 <push_dwarf_reg_entry_value>: Remove assert. Override
2497 per_objfile with caller_per_objfile.
2498
f030440d
TV
24992020-05-28 Tom de Vries <tdevries@suse.de>
2500
2501 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2502 PR gold/15646 workaround to symbol kind "type".
2503
f0fbb768
TT
25042020-05-27 Tom Tromey <tromey@adacore.com>
2505
2506 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2507
af0b2a3e
TT
25082020-05-27 Tom Tromey <tromey@adacore.com>
2509
2510 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2511 Use htab_find_with_hash.
2512 <add_abbrev>: Remove "abbrev_number" parameter.
2513 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2514 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2515 (hash_abbrev): Add comment.
2516 (abbrev_table::lookup_abbrev): Move to header file.
2517 (abbrev_table::read): Update.
2518
7d00ffec
TT
25192020-05-27 Tom Tromey <tromey@adacore.com>
2520
2521 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2522 method.
2523 <canonical_name>: New member.
2524 <raw_name>: Rename from "name".
2525 (partial_die_info): Initialize canonical_name.
2526 (scan_partial_symbols): Check raw_name.
2527 (partial_die_parent_scope, partial_die_full_name)
2528 (add_partial_symbol, add_partial_subprogram)
2529 (add_partial_enumeration, load_partial_dies): Use "name" method.
2530 (partial_die_info::name): New method.
2531 (partial_die_info::read, guess_partial_die_structure_name)
2532 (partial_die_info::fixup): Update.
2533
697bba18
TT
25342020-05-27 Tom Tromey <tromey@adacore.com>
2535
2536 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2537 <get_ref_die_offset>: Inline.
2538 <get_ref_die_offset_complaint>: New method.
2539 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2540 (attribute::get_ref_die_offset_complaint): Rename from
2541 get_ref_die_offset. Just issue complaint.
2542
c17ace43
HD
25432020-05-27 Hannes Domani <ssbssa@yahoo.de>
2544
2545 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2546
96445f0b
HD
25472020-05-27 Hannes Domani <ssbssa@yahoo.de>
2548
2549 * exec.c (exec_file_attach): Use errno value of first openp failure.
2550
ac637ec3
HD
25512020-05-27 Hannes Domani <ssbssa@yahoo.de>
2552
2553 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2554 Don't close thread handle.
2555
17ee85fc
TT
25562020-05-27 Tom Tromey <tom@tromey.com>
2557 Simon Marchi <simon.marchi@efficios.com>
2558
2559 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2560 shared_ptr.
2561 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2562 member.
2563 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2564 dwarf2_per_bfd_objfile_data_key>: New globals.
2565 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2566 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2567 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2568 shared.
2569 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2570 short-circuit when sharing.
2571 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2572 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2573
39b16f87
SM
25742020-05-27 Simon Marchi <simon.marchi@efficios.com>
2575
2576 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2577 to...
2578 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2579 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2580
fcf23d5b
SM
25812020-05-27 Simon Marchi <simon.marchi@efficios.com>
2582
2583 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2584 build_name_components, find_name_components_bounds>:
2585 Add per_objfile parameter.
2586 (struct mapped_index) <symbol_name_at>: Likewise.
2587 (struct mapped_debug_names): Remove constructor.
2588 <dwarf2_per_objfile>: Remove field.
2589 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2590 (mapped_index_base::find_name_components_bounds,
2591 mapped_index_base::build_name_components,
2592 dw2_expand_symtabs_matching_symbol): Likewise.
2593 (class mock_mapped_index) <symbol_name_at>: Likewise.
2594 (check_match): Likewise.
2595 (check_find_bounds_finds): Likewise.
2596 (test_mapped_index_find_name_component_bounds): Update.
2597 (CHECK_MATCH): Update.
2598 (dw2_expand_symtabs_matching): Update.
2599 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2600 per_objfile parameter.
2601 <find_vec_in_debug_names>: Likewise.
2602 <m_per_objfile>: New field.
2603 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2604 parameter.
2605 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2606 (dw2_debug_names_iterator::next): Update.
2607 (dw2_debug_names_lookup_symbol): Update.
2608 (dw2_debug_names_expand_symtabs_for_function): Update.
2609 (dw2_debug_names_map_matching_symbols): Update.
2610 (dw2_debug_names_expand_symtabs_matching): Update.
2611 (dwarf2_read_debug_names): Update.
2612
7188ed02
SM
26132020-05-27 Simon Marchi <simon.marchi@efficios.com>
2614
2615 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2616 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2617 move to dwarf2_per_objfile.
2618 <read_in_chain>: Remove.
2619 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2620 remove_all_cus, age_comp_units>: New methods.
2621 <m_dwarf2_cus>: New member.
2622 (struct dwarf2_per_cu_data) <cu>: Remove.
2623 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2624 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2625 moved to methods of dwarf2_per_objfile.
2626 (dwarf2_clear_marks): Remove.
2627 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2628 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2629 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2630 (dwarf2_per_objfile::remove_all_cus): New.
2631 (class free_cached_comp_units) <~free_cached_comp_units>:
2632 Update.
2633 (load_cu): Update.
2634 (dw2_do_instantiate_symtab): Adjust.
2635 (fill_in_sig_entry_from_dwo_entry): Adjust.
2636 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2637 (cutu_reader::cutu_reader): Likewise.
2638 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2639 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2640 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2641 and dwarf2_per_objfile::age_comp_units.
2642 (load_partial_comp_unit): Update.
2643 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2644 (process_queue): Likewise.
2645 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2646 backlink.
2647 (dwarf2_read_addr_index): Likewise.
2648 (follow_die_offset): Likewise.
2649 (dwarf2_fetch_die_loc_sect_off): Likewise.
2650 (dwarf2_fetch_constant_bytes): Likewise.
2651 (dwarf2_fetch_die_type_sect_off): Likewise.
2652 (follow_die_sig_1): Likewise.
2653 (load_full_type_unit): Likewise.
2654 (read_signatured_type): Likewise.
2655 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2656 (dwarf2_cu::~dwarf2_cu): Remove.
2657 (dwarf2_per_objfile::get_cu): New.
2658 (dwarf2_per_objfile::set_cu): New.
2659 (age_cached_comp_units): Rename to...
2660 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2661 to std::unordered_map.
2662 (free_one_cached_comp_unit): Rename to...
2663 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2664 to std::unordered_map.
2665 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2666 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2667 a dwarf2_per_objfile in data.
2668 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2669 (dwarf2_clear_marks): Remove.
2670
2e671100
SM
26712020-05-27 Simon Marchi <simon.marchi@efficios.com>
2672
2673 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2674 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2675 (init_tu_and_read_dwo_dies): Likewise.
2676 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2677 (cutu_reader::cutu_reader): Likewise.
2678 (load_partial_comp_unit): Likewise.
2679 (process_psymtab_comp_unit): Update.
2680 (build_type_psymtabs_1): Update.
2681 (process_skeletonless_type_unit): Update.
2682 (load_full_comp_unit): Update.
2683 (find_partial_die): Update.
2684 (dwarf2_read_addr_index): Update.
2685 (read_signatured_type): Update.
2686
2e6a9f79
SM
26872020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2688
2689 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2690 m_header_read_in>: New fields.
2691 <get_header>: New method.
2692 * dwarf2/read.c (per_cu_header_read_in): Remove.
2693 (dwarf2_per_cu_data::get_header): New.
2694 (dwarf2_per_cu_data::addr_size): Update.
2695 (dwarf2_per_cu_data::offset_size): Update.
2696 (dwarf2_per_cu_data::ref_addr_size): Update.
2697
1b555f17
SM
26982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2699
2700 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2701 (dw2_do_instantiate_symtab): Update.
2702 (queue_and_load_all_dwo_tus): Change parameter from
2703 dwarf2_per_cu_data to dwarf2_cu.
2704 (dwarf2_fetch_die_loc_sect_off): Update.
2705 (dwarf2_fetch_constant_bytes): Update.
2706 (dwarf2_fetch_die_type_sect_off): Update.
2707
8fc0b21d
SM
27082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2709
2710 * dwarf2/read.c (process_full_comp_unit,
2711 process_full_type_unit): Remove per_cu, per_objfile paramters.
2712 Add dwarf2_cu parameter.
2713 (process_queue): Update.
2714
168c9250
SM
27152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2716
2717 * dwarf2/read.c (create_cu_from_index_list): Replace
2718 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2719 (create_cus_from_index_list): Likewise.
2720 (create_cus_from_index): Likewise.
2721 (create_signatured_type_table_from_index): Likewise.
2722 (create_cus_from_debug_names_list): Likewise.
2723 (create_cus_from_debug_names): Likewise.
2724 (dwarf2_read_gdb_index): Update.
2725 (dwarf2_read_debug_names): Update.
2726
e286671b
TT
27272020-05-27 Tom Tromey <tom@tromey.com>
2728 Simon Marchi <simon.marchi@efficios.com>
2729
2730 * dwarf2/read.h (struct dwarf2_per_objfile)
2731 <get_type_for_signatured_type, set_type_for_signatured_type>:
2732 New methods.
2733 <m_type_map>: New member.
2734 (struct signatured_type) <type>: Remove.
2735 * dwarf2/read.c
2736 (dwarf2_per_objfile::get_type_for_signatured_type,
2737 dwarf2_per_objfile::set_type_for_signatured_type): New.
2738 (get_signatured_type): Use new methods.
2739
8adb8487
TT
27402020-05-27 Tom Tromey <tom@tromey.com>
2741 Simon Marchi <simon.marchi@efficios.com>
2742
2743 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2744 (struct dwarf2_per_objfile) <type_units>: New member.
2745 <get_type_unit_group_unshareable>: New method.
2746 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2747 num_symtabs, symtabs>: Remove; move to
2748 type_unit_group_unshareable.
2749 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2750 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2751 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2752
127bbf4b
SM
27532020-05-27 Simon Marchi <simon.marchi@efficios.com>
2754
2755 * dwarf2/read.h (struct dwarf2_per_cu_data):
2756 <dwarf2_per_objfile>: Remove.
2757 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2758 dwarf2_per_objfile.
2759 (create_signatured_type_table_from_index): Likewise.
2760 (create_signatured_type_table_from_debug_names): Likewise.
2761 (create_debug_type_hash_table): Likewise.
2762 (fill_in_sig_entry_from_dwo_entry): Likewise.
2763 (create_type_unit_group): Likewise.
2764 (read_comp_units_from_section): Likewise.
2765 (create_cus_hash_table): Likewise.
2766
f6e649dd
SM
27672020-05-27 Simon Marchi <simon.marchi@efficios.com>
2768
2769 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2770 dwarf2_per_cu_data::dwarf2_per_objfile.
2771 (compute_compunit_symtab_includes): Likewise.
2772 (dwarf2_cu::start_symtab): Likewise.
2773
aa66c379
SM
27742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2775
2776 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2777 parameter.
2778 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2779 (read_namespace_alias): Update.
2780 (lookup_die_type): Update.
2781 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2782 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2783 Update.
2784 (disassemble_dwarf_expression): Update.
2785
120ce1b5
SM
27862020-05-27 Simon Marchi <simon.marchi@efficios.com>
2787
2788 * dwarf2/read.h (struct dwarf2_queue_item): Add
2789 dwarf2_per_objfile parameter, assign new parameter.
2790 <per_objfile>: New field.
2791 * dwarf2/read.c (free_one_cached_comp_unit): Add
2792 dwarf2_per_objfile parameter.
2793 (queue_comp_unit): Likewise.
2794 (dw2_do_instantiate_symtab): Update.
2795 (process_psymtab_comp_unit): Update.
2796 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2797 (process_imported_unit_die): Update.
2798 (queue_and_load_dwo_tu): Update.
2799 (follow_die_offset): Update.
2800 (follow_die_sig_1): Update.
2801
9f47c707
SM
28022020-05-27 Simon Marchi <simon.marchi@efficios.com>
2803
2804 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2805 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2806 (read_call_site_scope): Assign per_objfile.
2807 (dwarf2_per_cu_data::objfile): Remove.
2808 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2809 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2810 dwarf2_per_objfile parameter.
2811 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2812 dwarf2_per_objfile parameter.
2813 (dwarf_expr_reg_to_entry_parameter): Add output
2814 dwarf2_per_objfile parameter.
2815 (locexpr_get_frame_base): Update.
2816 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2817 <push_dwarf_reg_entry_value>: Update.
2818 <call_site_to_target_addr>: Update.
2819 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2820 parameter.
2821 (value_of_dwarf_reg_entry): Update.
2822 (rw_pieced_value): Update.
2823 (indirect_synthetic_pointer): Update.
2824 (dwarf2_evaluate_property): Update.
2825 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2826 parameter.
2827 (locexpr_read_variable): Update.
2828 (locexpr_get_symbol_read_needs): Update.
2829 (loclist_read_variable): Update.
2830
14095eb3
SM
28312020-05-27 Simon Marchi <simon.marchi@efficios.com>
2832
2833 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2834 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2835 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2836 parameter.
2837 * dwarf2/read.c (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/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2842 sect_variable_value): Add dwarf2_per_objfile parameter.
2843 (class dwarf_evaluate_loc_desc) <dwarf_call,
2844 dwarf_variable_value>: Update.
2845 (fetch_const_value_from_synthetic_pointer): Add
2846 dwarf2_per_objfile parameter.
2847 (fetch_const_value_from_synthetic_pointer): Update.
2848 (coerced_pieced_ref): Update.
2849 (class symbol_needs_eval_context) <dwarf_call,
2850 dwarf_variable_value>: Update.
2851 (dwarf2_compile_expr_to_ax): Update.
2852
3c3cd3d4
SM
28532020-05-27 Simon Marchi <simon.marchi@efficios.com>
2854
2855 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2856 parameter.
2857 (dwarf2_evaluate_loc_desc_full): Update.
2858
82ca3f51
SM
28592020-05-27 Simon Marchi <simon.marchi@efficios.com>
2860
2861 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2862 parameter.
2863 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2864 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2865 dwarf2_per_objfile parameter.
2866 (decode_debug_loc_dwo_addresses): Likewise.
2867 (dwarf2_find_location_expression): Update.
2868 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2869 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2870 parameter.
2871 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2872 parameter.
2873 (locexpr_describe_location_1): Likewise.
2874 (locexpr_describe_location): Update.
2875
4b167ea1
SM
28762020-05-27 Simon Marchi <simon.marchi@efficios.com>
2877
2878 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2879 Remove.
2880 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2881 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2882 (dwarf2_compile_property_to_c): Update.
2883 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2884 use text offset from objfile.
2885 (locexpr_tracepoint_var_ref): Update.
2886 (locexpr_generate_c_location): Update.
2887 (loclist_describe_location): Update.
2888 (loclist_tracepoint_var_ref): Update.
2889 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2890 dwarf2_per_objfile parameter.
2891 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2892 use text offset from objfile.
2893 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2894
89b07335
SM
28952020-05-27 Simon Marchi <simon.marchi@efficios.com>
2896
2897 * dwarf2/expr.h (struct dwarf_expr_context)
2898 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2899 <offset>: Remove.
2900 <per_objfile>: New member.
2901 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2902 dwarf2_per_objfile parameter. Don't set offset, set
2903 per_objfile.
2904 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2905 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2906 a dwarf2_per_objfile object instead of an offset.
2907 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2908 constructor.
2909 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2910 to dwarf2_expr_executor constructor. Don't set offset.
2911 (dwarf2_fetch_cfa_info): Update.
2912 (struct dwarf2_frame_cache) <text_offset>: Remove.
2913 <per_objfile>: New field.
2914 (dwarf2_frame_cache): Update.
2915 (dwarf2_frame_prev_register): Update.
2916 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2917 <dwarf_evaluate_loc_desc>: Add constructor.
2918 (dwarf2_evaluate_loc_desc_full): Update.
2919 (dwarf2_locexpr_baton_eval): Update.
2920 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2921 Add constructor.
2922 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2923
293e7e51
SM
29242020-05-27 Simon Marchi <simon.marchi@efficios.com>
2925
2926 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2927 addr_sized_int_type>: Move to dwarf2_cu.
2928 <int_type>: Move to dwarf2_per_objfile.
2929 (struct dwarf2_per_objfile) <int_type>: Move here.
2930 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2931 addr_sized_int_type>: Move here.
2932 (read_func_scope): Update.
2933 (read_array_type): Update.
2934 (read_tag_string_type): Update.
2935 (attr_to_dynamic_prop): Update.
2936 (dwarf2_per_cu_data::int_type): Rename to...
2937 (dwarf2_per_objfile::int_type): ... this.
2938 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2939 (dwarf2_cu::addr_sized_int_type): ... this.
2940 (read_subrange_type): Update.
2941 (dwarf2_per_cu_data::addr_type): Rename to...
2942 (dwarf2_cu::addr_type): ... this.
2943 (set_die_type): Update.
2944
64874a40
SM
29452020-05-27 Simon Marchi <simon.marchi@efficios.com>
2946
2947 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2948 data through per_cu->cu.
2949
4ab09049
SM
29502020-05-27 Simon Marchi <simon.marchi@efficios.com>
2951
2952 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2953 dwarf2_per_cu_data parameter fo dwarf2_cu.
2954 (lookup_dwo_type_unit): Likewise.
2955 (read_cutu_die_from_dwo): Likewise.
2956 (lookup_dwo_unit): Likewise.
2957 (open_and_init_dwo_file): Likewise.
2958 (lookup_dwo_cutu): Likewise.
2959 (lookup_dwo_comp_unit): Likewise.
2960 (lookup_dwo_type_unit): Likewise.
2961 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2962 (cutu_reader::cutu_reader): Update.
2963
47b14e86
SM
29642020-05-27 Simon Marchi <simon.marchi@efficios.com>
2965
2966 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2967 parameter.
2968 (process_full_type_unit): Likewise.
2969 (process_queue): Update.
2970
43182c09
SM
29712020-05-27 Simon Marchi <simon.marchi@efficios.com>
2972
2973 * dwarf2/read.c (recursively_compute_inclusions): Add
2974 dwarf2_per_objfile parameter.
2975 (compute_compunit_symtab_includes): Likewise.
2976 (process_cu_includes): Update.
2977
7aa104c4
SM
29782020-05-27 Simon Marchi <simon.marchi@efficios.com>
2979
2980 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2981 parameter.
2982 (create_type_unit_group): Update.
2983 (process_psymtab_comp_unit_reader): Update.
2984 (build_type_psymtabs_reader): Update.
2985
e3beb21d
SM
29862020-05-27 Simon Marchi <simon.marchi@efficios.com>
2987
2988 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2989 object through m_this_cu->cu.
2990
d460f660
SM
29912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2992
2993 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2994 the info parameter.
2995 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2996
ab432490
SM
29972020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2998
2999 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3000 per_objfile parameter.
3001 (load_full_type_unit): Add per_objfile parameter.
3002 (read_signatured_type): Likewise.
3003 (load_full_comp_unit): Likewise.
3004 (load_cu): Likewise.
3005 (dw2_do_instantiate_symtab): Likewise.
3006 (dw2_get_file_names): Likewise.
3007 (dw2_map_symtabs_matching_filename): Update.
3008 (dw_expand_symtabs_matching_file_matcher): Update.
3009 (dw2_map_symbol_filenames): Update.
3010 (process_psymtab_comp_unit): Add per_objfile parameter.
3011 (build_type_psymtabs_1): Update.
3012 (process_skeletonless_type_unit): Update.
3013 (dwarf2_build_psymtabs_hard): Update.
3014 (load_partial_comp_unit): Add per_objfile parameter.
3015 (scan_partial_symbols): Update.
3016 (load_full_comp_unit): Add per_objfile parameter.
3017 (process_imported_unit_die): Update.
3018 (create_cus_hash_table): Update.
3019 (find_partial_die): Update.
3020 (dwarf2_read_addr_index): Update.
3021 (follow_die_offset): Update.
3022 (dwarf2_fetch_die_loc_sect_off): Update.
3023 (dwarf2_fetch_constant_bytes): Update.
3024 (dwarf2_fetch_die_type_sect_off): Update.
3025 (follow_die_sig_1): Update.
3026 (load_full_type_unit): Add per_objfile parameter.
3027 (read_signatured_type): Likewise.
3028
313bad1b
SM
30292020-05-27 Simon Marchi <simon.marchi@efficios.com>
3030
3031 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3032 of objfile_name.
3033
c3699833
SM
30342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3035
3036 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3037 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3038 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3039 field.
3040 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3041 (create_cus_from_index): Update.
3042 (dwarf2_read_gdb_index): Update.
3043 (create_cus_from_debug_names): Update.
3044 (dwarf2_read_debug_names): Update.
3045 (get_abbrev_section_for_cu): Update.
3046 (create_all_comp_units): Update.
3047 (read_attribute_value): Update.
3048 (get_debug_line_section): Update.
3049 * dwarf2/index-cache.c (index_cache::store): Update.
3050 * dwarf2/index-write.c (save_gdb_index_command): Update.
3051 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3052
1859c670
SM
30532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3054
3055 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3056 member.
3057 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3058 dwarf2_per_cu_data::per_bfd.
3059 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3060 (create_type_unit_group): Likewise.
3061 (queue_comp_unit): Remove reference to
3062 per_cu->dwarf2_per_objfile.
3063 (maybe_queue_comp_unit): Likewise.
3064 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3065 (create_cus_hash_table): Assign new field.
3066
5e22e966
SM
30672020-05-27 Simon Marchi <simon.marchi@efficios.com>
3068
3069 * dwarf2/read.c: Replace
3070 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3071 dwarf2_cu->per_objfile throughout.
3072
97a1449a
SM
30732020-05-27 Simon Marchi <simon.marchi@efficios.com>
3074
3075 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3076 parameter, don't use per_cu->dwarf2_per_objfile.
3077 (dw2_instantiate_symtab): Likewise.
3078 (dw2_find_last_source_symtab): Update.
3079 (dw2_map_expand_apply): Update.
3080 (dw2_lookup_symbol): Update.
3081 (dw2_expand_symtabs_for_function): Update.
3082 (dw2_expand_all_symtabs): Update.
3083 (dw2_expand_symtabs_with_fullname): Update.
3084 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3085 don't use per_cu->dwarf2_per_objfile.
3086 (dw2_expand_marked_cus): Update.
3087 (dw2_find_pc_sect_compunit_symtab): Update.
3088 (dw2_debug_names_lookup_symbol): Update.
3089 (dw2_debug_names_expand_symtabs_for_function): Update.
3090 (dw2_debug_names_map_matching_symbols): Update.
3091 (dwarf2_psymtab::expand_psymtab): Update.
3092
9e021579
SM
30932020-05-27 Simon Marchi <simon.marchi@efficios.com>
3094
3095 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3096 <per_objfile>: New member.
3097 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3098 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3099 call to dwarf2_cu.
3100 (cutu_reader::cutu_reader): Update.
3101 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3102
ae090bdb
SM
31032020-05-27 Simon Marchi <simon.marchi@efficios.com>
3104
3105 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3106 struct dwarf2_per_objfile.
3107 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3108 dwarf2_per_bfd.
3109 * dwarf2/read.c (set_die_type): Update.
3110 (get_die_type_at_offset): Update.
3111
af758d11
SM
31122020-05-27 Tom Tromey <tom@tromey.com>
3113 Simon Marchi <simon.marchi@efficios.com>
3114
3115 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3116 method.
3117 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3118 get_symtab, set_symtab>: New methods.
3119 <m_symtabs>: New field.
3120 (struct dwarf2_psymtab): Derive from partial_symtab.
3121 <readin_p, get_compunit_symtab>: Declare methods.
3122 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3123 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3124 New methods.
3125 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3126 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3127 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3128 (dw2_symtab_iter_next, dw2_print_stats)
3129 (dw2_expand_symtabs_with_fullname)
3130 (dw2_expand_symtabs_matching_one)
3131 (dw_expand_symtabs_matching_file_matcher)
3132 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3133 (dw2_debug_names_iterator::next)
3134 (dw2_debug_names_map_matching_symbols)
3135 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3136 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3137 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3138 New methods.
3139 (get_compunit_symtab, process_full_comp_unit)
3140 (process_full_type_unit): Update.
3141 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3142
5989a64e
SM
31432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3144
3145 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3146 then introduce a new dwarf2_per_objfile type.
3147 <read_line_string>: Move to the new dwarf2_per_objfile type.
3148 <objfile>: Likewise.
3149 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3150 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3151 dwarf2_per_objfile->per_bfd.
3152 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3153 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3154 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3155 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3156 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3157 (dwarf2_per_objfile::locate_sections): Rename to...
3158 (dwarf2_per_bfd::locate_sections): ... this.
3159 (dwarf2_per_objfile::get_cutu): Rename to...
3160 (dwarf2_per_bfd::get_cutu): ... this.
3161 (dwarf2_per_objfile::get_cu): Rename to...
3162 (dwarf2_per_bfd::get_cu): ... this.
3163 (dwarf2_per_objfile::get_tu): Rename to...
3164 (dwarf2_per_bfd::get_tu): ... this.
3165 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3166 (dwarf2_per_bfd::allocate_per_cu): ... this.
3167 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3168 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3169 (get_gdb_index_contents_ftype): Change parameter from
3170 dwarf2_per_objfile to dwarf2_per_bfd.
3171 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3172 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3173
a50264ba
TT
31742020-05-27 Tom Tromey <tom@tromey.com>
3175 Simon Marchi <simon.marchi@efficios.com>
3176
3177 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3178 (allocate_piece_closure): Set "per_objfile" member.
3179 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3180 (locexpr_describe_location, loclist_describe_location): Use new
3181 member.
3182 * dwarf2/read.c (read_call_site_scope)
3183 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3184 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3185 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3186 handle_data_member_location): Set per_objfile member.
3187 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3188 member.
3189 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3190
d3473f0c
TT
31912020-05-27 Tom Tromey <tom@tromey.com>
3192
3193 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3194 allocate_signatured_type>: Declare new methods.
3195 <m_num_psymtabs>: New member.
3196 (struct dwarf2_per_cu_data) <index>: New member.
3197 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3198 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3199 (create_cu_from_index_list): Use allocate_per_cu.
3200 (create_signatured_type_table_from_index)
3201 (create_signatured_type_table_from_debug_names)
3202 (create_debug_type_hash_table, add_type_unit)
3203 (read_comp_units_from_section): Use allocate_signatured_type.
3204
5717c425
TT
32052020-05-27 Tom Tromey <tom@tromey.com>
3206
3207 * psymtab.c (partial_map_expand_apply)
3208 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3209 (psym_lookup_global_symbol_language)
3210 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3211 (psym_print_stats, psym_expand_symtabs_for_function)
3212 (psym_map_symbol_filenames, psym_map_matching_symbols)
3213 (psym_expand_symtabs_matching)
3214 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3215 (maintenance_check_psymtabs): Update.
3216 * psympriv.h (struct partial_symtab) <readin_p,
3217 get_compunit_symtab>: Add objfile parameter.
3218 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3219 Likewise.
3220 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3221 get_compunit_symtab>: Likewise.
3222 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3223
45940949
TT
32242020-05-27 Tom Tromey <tom@tromey.com>
3225
3226 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3227 member.
3228 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3229 (create_cu_from_index_list)
3230 (create_signatured_type_table_from_index)
3231 (create_signatured_type_table_from_debug_names)
3232 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3233 (dwarf2_create_include_psymtab)
3234 (create_debug_type_hash_table, add_type_unit)
3235 (create_type_unit_group, read_comp_units_from_section)
3236 (dwarf2_compute_name, create_cus_hash_table)
3237 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3238 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3239 obstack.
3240 (dw2_get_real_path): Likewise. Change argument to
3241 dwarf2_per_objfile.
3242
f8c6d152
LM
32432020-05-27 Luis Machado <luis.machado@linaro.org>
3244
3245 PR tdep/26000
3246 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3247 for ldrd (immediate).
3248
e98d2e6d
PW
32492020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3250
3251 * command.h: Add comment giving the name of class_tui.
3252 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3253 create the fake command for the help for class_tui.
3254
53a47a3e
TT
32552020-05-26 Tom Tromey <tromey@adacore.com>
3256
3257 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3258 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3259 (val_atr): New function.
3260 (value_val_atr): Use it.
3261 * ada-valprint.c (print_optional_low_bound): Change low bound
3262 handling for enums.
3263 (val_print_packed_array_elements): Don't call discrete_position.
3264 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3265 discrete_position for enum types.
3266 * language.c (default_print_array_index): Change type.
3267 * language.h (struct language_defn) <la_print_array_index>: Add
3268 index_type parameter, change type of index_value.
3269 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3270 (default_print_array_index): Update.
3271 * valprint.c (maybe_print_array_index): Don't call
3272 value_from_longest. Update.
3273 (value_print_array_elements): Don't call discrete_position.
3274
0bc2354b
TT
32752020-05-26 Tom Tromey <tromey@adacore.com>
3276
3277 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3278 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3279
1218a4bf
CDA
32802020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3281
3282 PR gdb/13519
3283 * avr-tdep.c (avr_integer_to_address): Return data or code
3284 address accordingly to the second 'type' argument of the
3285 function.
3286
92651b1d
MW
32872020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3288
3289 * infcmd.c, inferior.h: (construct_inferior_arguments):
3290 Moved function from here to gdbsupport/common-inferior.{h,cc}
3291
0a4f5f8c
TT
32922020-05-23 Tom Tromey <tom@tromey.com>
3293
3294 Revert commit eca1f90c:
3295 * NEWS: Remove entry for completion styling.
3296 * completer.c (_rl_completion_prefix_display_length): Move
3297 declaration later.
3298 (gdb_fnprint): Revert.
3299 (gdb_display_match_list_1): Likewise.
3300 * cli/cli-style.c (completion_prefix_style)
3301 (completion_difference_style, completion_suffix_style): Remove.
3302 (_initialize_cli_style): Revert.
3303 * cli/cli-style.h (completion_prefix_style)
3304 (completion_difference_style, completion_suffix_style): Don't
3305 declare.
3306
e08bd6c5
PA
33072020-05-24 Pedro Alves <palves@redhat.com>
3308
3309 * symtab.c (completion_list_add_name): Return boolean indication
3310 of whether the symbol matched.
3311 (completion_list_add_symbol): Don't try to remove C++ aliases if
3312 the symbol didn't match in the first place.
3313 * symtab.h (completion_list_add_name): Return bool.
3314
ceacbf6e
SM
33152020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3316
3317 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3318 type::field.
3319
26f16254
JB
33202020-05-23 Joel Brobecker <brobecker@adacore.com>
3321
3322 GDB 9.2 released.
3323
eca1f90c
TT
33242020-05-23 Tom Tromey <tom@tromey.com>
3325
3326 * NEWS: Add entry for completion styling.
3327 * completer.c (_rl_completion_prefix_display_length): Move
3328 declaration earlier.
3329 (gdb_fnprint): Use completion_style.
3330 (gdb_display_match_list_1): Likewise.
3331 * cli/cli-style.c (completion_prefix_style)
3332 (completion_difference_style, completion_suffix_style): New
3333 globals.
3334 (_initialize_cli_style): Register new globals.
3335 * cli/cli-style.h (completion_prefix_style)
3336 (completion_difference_style, completion_suffix_style): Declare.
3337
51e2cfa2
PA
33382020-05-23 Pedro Alves <palves@redhat.com>
3339
3340 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3341 (parse_escape): Use ISDIGIT instead of isdigit.
3342 (puts_debug): Use gdb_isprint instead of isprint.
3343 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3344 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3345 ISSPACE instead of isspace.
3346 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3347 instead of isspace.
3348 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3349 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3350 instead of isxdigit and ISDIGIT instead of isdigit.
3351
80fc5e77
SM
33522020-05-22 Simon Marchi <simon.marchi@efficios.com>
3353
3354 * gdbtypes.h (struct type) <field>: New method.
3355 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3356 or type::field.
3357
3cabb6b0
SM
33582020-05-22 Simon Marchi <simon.marchi@efficios.com>
3359
3360 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3361 (TYPE_FIELDS): Use type::fields. Change all call sites that
3362 modify the propery to use type::set_fields instead.
3363
1f704f76
SM
33642020-05-22 Simon Marchi <simon.marchi@efficios.com>
3365
3366 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3367 type::num_fields instead.
3368
5e33d5f4
SM
33692020-05-22 Simon Marchi <simon.marchi@efficios.com>
3370
3371 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3372 methods.
3373 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3374 that modify the number of fields to use type::set_num_fields
3375 instead.
3376
9392ebb3
TT
33772020-05-22 Tom Tromey <tromey@adacore.com>
3378
3379 * compile/compile-object-load.h (munmap_list_free): Don't
3380 declare.
3381
7c13f4e8
AB
33822020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3383
3384 * annotate.c (annotate_source_line): Update return type, add call
3385 to update current symtab and line.
3386 * annotate.h (annotate_source_line): Update return type, and
3387 extend header comment.
3388 * source.c (info_line_command): Check annotation_level before
3389 calling annotate_source_line.
3390 * stack.c (print_frame_info): If calling annotate_source_line
3391 returns true, then don't print any other source line information.
3392
aa370940
SM
33932020-05-21 Simon Marchi <simon.marchi@efficios.com>
3394
3395 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3396
84d53fa9
SM
33972020-05-21 Simon Marchi <simon.marchi@efficios.com>
3398
3399 * coffread.c (patch_type): Remove NULL check before xfree.
3400 * corefile.c (set_gnutarget): Likewise.
3401 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3402 * exec.c (build_section_table): Likewise.
3403 * remote.c (remote_target::pass_signals): Likewise.
3404 * utils.c (n_spaces): Likewise.
3405 * cli/cli-script.c (document_command): Likewise.
3406 * i386-windows-tdep.c (core_process_module_section): Likewise.
3407 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3408
9d428aae
SM
34092020-05-20 Simon Marchi <simon.marchi@efficios.com>
3410
3411 * symfile.c (reread_symbols): Clear objfile's section_offsets
3412 vector and section indices, re-compute them by calling
3413 sym_offsets.
3414
250106a7
TT
34152020-05-20 Tom Tromey <tromey@adacore.com>
3416
3417 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3418 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3419
9a0bacfb
TV
34202020-05-20 Tom de Vries <tdevries@suse.de>
3421
3422 PR symtab/25833
3423 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3424
7b958a48
AM
34252020-05-20 Alan Modra <amodra@gmail.com>
3426
3427 PR 25993
3428 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3429 bfd_set_filename.
3430 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3431 passed to bfd_set_filename.
3432 * symfile-mem.c (add_vsyscall_page): Likewise for string
3433 passed to symbol_file_add_from_memory.
3434 (symbol_file_add_from_memory): Make name param a const char* and
3435 don't strdup.
3436
c7e97679
AM
34372020-05-20 Alan Modra <amodra@gmail.com>
3438
3439 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3440 rather than accessing bfd->filename directly.
3441 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3442 and use bfd_section_name.
3443 * dwarf2/frame.c (decode_frame_entry): Likewise.
3444 * exec.c (exec_set_section_address): Likewise.
3445 * solib-aix.c (solib_aix_bfd_open): Likewise.
3446 * stap-probe.c (get_stap_base_address): Likewise.
3447 * symfile.c (reread_symbols): Likewise.
3448
563c591b
TT
34492020-05-19 Tom Tromey <tromey@adacore.com>
3450
3451 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3452
f408d82c
SM
34532020-05-19 Simon Marchi <simon.marchi@efficios.com>
3454
3455 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3456
98c59b52
PA
34572020-05-19 Pedro Alves <palves@redhat.com>
3458
3459 * NEWS (set exec-file-mismatch): Adjust entry.
3460 * exec.c: Include "build-id.h".
3461 (validate_exec_file): Try to match build IDs instead of filenames.
3462 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3463 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3464 and pass down 'warn_if_slow'.
3465 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3466 gdb_bfd_open_closure to pass it down.
3467 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3468
4111f652
PA
34692020-05-19 Pedro Alves <palves@redhat.com>
3470
3471 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3472 * target.c (target_fileio_open_1): Rename to target_fileio_open
3473 and make extern. Use bool.
3474 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3475 (target_fileio_read_alloc_1): Adjust.
3476 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3477 (target_fileio_open_warn_if_slow): Delete declaration.
3478
ad80db5b
PA
34792020-05-19 Pedro Alves <palves@redhat.com>
3480
3481 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3482 Adjust all callers.
3483
1d6ce4d3
YS
34842020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3485
3486 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3487 whether disp is negative.
3488
9005fbbb
SM
34892020-05-19 Simon Marchi <simon.marchi@efficios.com>
3490
3491 * symfile.h (struct symfile_segment_data)
3492 <~symfile_segment_data>: Remove.
3493 <segment_info>: Change to std::vector.
3494 * symfile.c (default_symfile_segments): Update.
3495 * elfread.c (elf_symfile_segments): Update.
3496
68b888ff
SM
34972020-05-19 Simon Marchi <simon.marchi@efficios.com>
3498
3499 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3500 <segments>: New.
3501 <segment_bases, segment_sizes>: Remove.
3502 * symfile.c (default_symfile_segments): Update.
3503 * elfread.c (elf_symfile_segments): Update.
3504 * remote.c (remote_target::get_offsets): Update.
3505 * solib-target.c (solib_target_relocate_section_addresses):
3506 Update.
3507
62982abd
SM
35082020-05-19 Simon Marchi <simon.marchi@efficios.com>
3509
3510 * symfile.h (struct symfile_segment_data): Initialize fields.
3511 <~symfile_segment_data>: Add.
3512 (symfile_segment_data_up): New.
3513 (struct sym_fns) <sym_segments>: Return a
3514 symfile_segment_data_up.
3515 (default_symfile_segments): Return a symfile_segment_data_up.
3516 (free_symfile_segment_data): Remove.
3517 (get_symfile_segment_data): Return a symfile_segment_data_up.
3518 * symfile.c (default_symfile_segments): Likewise.
3519 (get_symfile_segment_data): Likewise.
3520 (free_symfile_segment_data): Remove.
3521 (symfile_find_segment_sections): Update.
3522 * elfread.c (elf_symfile_segments): Return a
3523 symfile_segment_data_up.
3524 * remote.c (remote_target::get_offsets): Update.
3525 * solib-target.c (solib_target_relocate_section_addresses):
3526 Update.
3527 * symfile-debug.c (debug_sym_segments): Return a
3528 symfile_segment_data_up.
3529
7f204339
RO
35302020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3531
e52a0f1b
RO
3532 PR build/25981
3533 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3534 Hardcode register numbers.
3535
7f204339
RO
3536 PR build/25981
3537 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3538 procfs_find_LDT_entry): Remove.
3539 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3540 procfs_find_LDT_entry): Remove.
3541 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3542 Remove.
3543
7f32a4d5
PA
35442020-05-17 Pedro Alves <palves@redhat.com>
3545 Andrew Burgess <andrew.burgess@embecosm.com>
3546 Keno Fischer <keno@juliacomputing.com>
3547
3548 PR gdb/25741
3549 * breakpoint.c (build_target_condition_list): Update comments.
3550 (build_target_command_list): Update comments and skip matching
3551 locations.
3552 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3553 a separate function. Simplify "set breakpoint auto-hw off"
3554 handling.
3555 (insert_breakpoints): Update comment.
3556 (tracepoint_locations_match): New parameter. For breakpoints,
3557 compare location types too, if the caller wants to.
3558 (handle_automatic_hardware_breakpoints): New functions.
3559 (bp_location_is_less_than): Also sort by location type and
3560 hardware breakpoint length.
3561 (update_global_location_list): Handle "set breakpoint auto-hw on"
3562 here.
3563 (update_breakpoint_locations): Ask breakpoint_locations_match to
3564 ignore location types.
3565
7d93a1e0
SM
35662020-05-16 Simon Marchi <simon.marchi@efficios.com>
3567
3568 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3569 type::name instead.
3570
d0e39ea2
SM
35712020-05-16 Simon Marchi <simon.marchi@efficios.com>
3572
3573 * gdbtypes.h (struct type) <name, set_name>: New methods.
3574 (TYPE_CODE): Use type::name. Change all call sites used to set
3575 the name to use type::set_name instead.
3576
2dab0c7b
TT
35772020-05-16 Tom Tromey <tom@tromey.com>
3578
3579 * top.c (quit_force): Update.
3580 * infrun.c (handle_no_resumed): Update.
3581 * top.h (all_uis): New function.
3582 (ALL_UIS): Remove.
3583
59f7bd8d
SM
35842020-05-16 Simon Marchi <simon.marchi@efficios.com>
3585
3586 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3587
9bf058f0
PA
35882020-05-16 Pedro Alves <palves@redhat.com>
3589
3590 * ia64-linux-nat.c
3591 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3592 Declare method.
3593 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3594
8f86ae1a
SM
35952020-05-15 Simon Marchi <simon.marchi@efficios.com>
3596
3597 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3598 (sparc64_adi_info): Likewise.
3599
d6bc0792
TT
36002020-05-15 Tom Tromey <tom@tromey.com>
3601
3602 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3603 block_objfile.
3604 (lookup_objfile_from_block): Remove.
3605 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3606 (lookup_global_symbol): Use block_objfile.
3607 * symtab.h (lookup_objfile_from_block): Don't declare.
3608 * printcmd.c (clear_dangling_display_expressions): Use
3609 block_objfile.
3610 * parse.c (operator_check_standard): Use block_objfile.
3611
8c14c3a3
TT
36122020-05-15 Tom Tromey <tom@tromey.com>
3613
3614 * language.c (language_alloc_type_symbol): Set
3615 SYMBOL_SECTION.
3616 * symtab.c (initialize_objfile_symbol): Remove.
3617 (allocate_symbol): Remove.
3618 (allocate_template_symbol): Remove.
3619 * dwarf2/read.c (fixup_go_packaging): Use "new".
3620 (new_symbol): Use "new".
3621 (read_variable): Don't call initialize_objfile_symbol. Use
3622 "new".
3623 (read_func_scope): Use "new".
3624 * xcoffread.c (process_xcoff_symbol): Don't call
3625 initialize_objfile_symbol.
3626 (SYMBOL_DUP): Remove.
3627 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3628 "new".
3629 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3630 (allocate_template_symbol): Don't declare.
3631 (struct symbol): Add copy constructor. Change defaults.
3632 * jit.c (finalize_symtab): Use "new".
3633 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3634 Use "new".
3635 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3636 (common_block_end): Use "new".
3637 * mdebugread.c (parse_symbol): Use "new".
3638 (new_symbol): Likewise.
3639
5b4a1a8d
PW
36402020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3641
3642 * NEWS: Mention changes to help and apropos.
3643
57b4f16e
PW
36442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3645
3646 * command.h (enum command_class): Improve comments, document
3647 that class_alias is for user-defined aliases, give the class
3648 name for each class, remove unused class_xdb.
3649 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3650 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3651 by a precise class.
3652 * infcmd.c (_initialize_infcmd): Likewise.
3653 * reverse.c (_initialize_reverse): Likewise.
3654 * stack.c (_initialize_stack): Likewise.
3655 * symfile.c (_initialize_symfile): Likewise.
3656 * tracepoint.c (_initialize_tracepoint): Likewise.
3657
7c05caf7
PW
36582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3659
3660 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3661 when their aliased command is traversed.
3662 (help_cmd): Add fput_command_names_styled call to
3663 output command name and aliases when command has an alias.
3664
3b3aaacb
PW
36652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3666
3667 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3668 * cli/cli-decode.c (help_cmd_list): Declare as static,
3669 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3670 a command together with the command.
3671 (fput_command_name_styled, fput_command_names_styled): New functions.
3672 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3673 fput_command_name_styled.
3674 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3675 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3676
7aa1b46f
PW
36772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3678
3679 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3680 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3681 * command.h (cmd_show_list): Likewise.
3682 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3683 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3684
89bcba74
PW
36852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3686
3687 * unittests/command-def-selftests.c (traverse_command_structure):
3688 Verify all commands of a list have the same prefix command and
3689 that only the top cmdlist commands have a null prefix.
3690
3f4d92eb
PW
36912020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3692
3693 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3694 as prefix, not one of its aliases.
3695 (set_cmd_prefix): Remove.
3696 (do_add_cmd): Centralize the setting of the prefix of a command, when
3697 command is defined after its full chain of prefix commands.
3698 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3699 (add_setshow_cmd_full): Likewise.
3700 (update_prefix_field_of_prefixed_commands): New function.
3701 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3702 update_prefix_field_of_prefixed_commands.
3703 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3704 addresses of remote_set_cmdlist and remote_show_cmdlist given
3705 as argument, not the address of an argument.
3706 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3707 * gdb/remote.c (_initialize_remote): Likewise.
3708
0605465f
PW
37092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3710
3711 * cli/cli-cmds.c (alias_command): Check for an existing alias
3712 using lookup_cmd_composition, as valid_command_p is too strict
3713 and forbids aliases that are the prefix of an existing alias
3714 or command.
3715 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3716 command is properly recognised as a valid command.
3717
58e6ac70
PW
37182020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3719
3720 * unittests/help-doc-selftests.c: Rename to
3721 unittests/command-def-selftests.c
3722 * unittests/command-def-selftests.c (help_doc_tests): Update some
3723 comments.
3724 (command_structure_tests, traverse_command_structure): New namespace
3725 and function.
3726 (command_structure_invariants_tests): New function.
3727 (_initialize_command_def_selftests) Renamed from
3728 _initialize_help_doc_selftests, register command_structure_invariants
3729 selftest.
3730
a7b9ceb8
PW
37312020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3732
3733 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3734 an alias of 'show'.
3735
b2188a06
JB
37362020-05-15 Joel Brobecker <brobecker@adacore.com>
3737
3738 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3739 ada_is_fixed_point_type. Update all callers.
3740 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3741 all callers.
3742 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3743 Update all callers.
3744 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3745 print_fixed_point_type. Update all callers.
3746 * ada-valprint.c (ada_value_print_num): Replace call to
3747 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3748
a51951c2
KB
37492020-05-14 Kevin Buettner <kevinb@redhat.com>
3750
3751 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3752 processors.
3753 (cpu_supports_bts): Add CV_AMD case.
3754
29d6859f
LM
37552020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3756 Simon Marchi <simon.marchi@efficios.com>
3757
3758 * infrun.c (stop_all_threads): Collect multiple wait events at
3759 each pass.
3760
78134374
SM
37612020-05-14 Simon Marchi <simon.marchi@efficios.com>
3762
3763 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3764 type::code instead.
3765
67607e24
SM
37662020-05-14 Simon Marchi <simon.marchi@efficios.com>
3767
3768 * gdbtypes.h (struct type) <code, set_code>: New methods.
3769 (TYPE_CODE): Use type::code. Change all call sites used to set
3770 the code to use type::set_code instead.
3771
a05575d3
TBA
37722020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3773 Tom de Vries <tdevries@suse.de>
3774 Pedro Alves <palves@redhat.com>
3775
3776 PR threads/25478
3777 * infrun.c (stop_all_threads): Do NOT ignore
3778 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3779 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3780 received.
3781 (handle_no_resumed): Remove code handling a live inferior with no
3782 threads.
3783 * remote.c (has_single_non_exited_thread): New.
3784 (remote_target::update_thread_list): Do not delete a thread if is
3785 the last thread of the process.
3786 * thread.c (thread_select): Call delete_exited_threads instead of
3787 prune_threads.
3788
6ad82919
TBA
37892020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3790
3791 * infrun.c (stop_all_threads): Enable/disable thread events of all
3792 targets. Move a debug message denoting the end of the function
3793 into the SCOPED_EXIT block.
3794
d890404b
TBA
37952020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3796
3797 * process-stratum-target.h: Include <set>.
3798 (all_non_exited_process_targets, switch_to_target_no_thread): New
3799 function declarations.
3800 * process-stratum-target.c (all_non_exited_process_targets)
3801 (switch_to_target_no_thread): New function implementations.
3802
293b3ebc
TBA
38032020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3804
3805 * infrun.c (handle_inferior_event): Extract out a piece of code
3806 into...
3807 (mark_non_executing_threads): ...this new function.
3808
7ca9b62a
TBA
38092020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3810
3811 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3812 use.
3813
fc75c28b
TBA
38142020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3815
3816 * regcache.c (regcache_read_pc_protected): New function
3817 implementation that returns 0 if the PC cannot read via
3818 'regcache_read_pc'.
3819 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3820 instead of 'regcache_read_pc'.
3821 (keep_going_pass_signal): Ditto.
3822
a89febbd
TT
38232020-05-13 Tom Tromey <tromey@adacore.com>
3824
3825 * ada-lang.c (align_value): Remove.
3826 (ada_template_to_fixed_record_type_1): Use align_up.
3827
f7e23710
TBA
38282020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3829
3830 * async-event.c: Update the copyright year.
3831 * async-event.h: Update the copyright year.
3832
02ff80c2
SM
38332020-05-12 Simon Marchi <simon.marchi@efficios.com>
3834
3835 * objfiles.h (is_addr_in_objfile,
3836 shared_objfile_contains_address_p): Return bool.
3837 * objfile.c (is_addr_in_objfile,
3838 shared_objfile_contains_address_p): Return bool.
3839
4fd6c7e8
TT
38402020-05-11 Tom Tromey <tromey@adacore.com>
3841
3842 * cli/cli-cmds.c (info_command): Restore.
3843 (_initialize_cli_cmds): Use add_prefix_command for "info".
3844 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3845
5eb68a39
TT
38462020-05-11 Tom Tromey <tromey@adacore.com>
3847
3848 * ada-lang.c (ada_value_primitive_field): Now public.
3849 * ada-lang.h (ada_value_primitive_field): Declare.
3850 * ada-valprint.c (print_field_values): Use
3851 ada_value_primitive_field for wrapper fields.
3852
7666722f
TV
38532020-05-11 Tom de Vries <tdevries@suse.de>
3854
3855 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3856 MODULE_DOMAIN.
3857
3ee6bb11
TV
38582020-05-11 Tom de Vries <tdevries@suse.de>
3859
3860 PR symtab/25941
3861 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3862 with length 0, if not gdb-produced.
3863 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3864
43434996
TV
38652020-05-09 Tom de Vries <tdevries@suse.de>
3866
3867 PR gdb/25955
3868 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3869 calculation.
3870
2f78cffc
TT
38712020-05-09 Tom Tromey <tom@tromey.com>
3872
3873 * top.c (server_command): Now bool.
3874 * top.h (server_command): Now bool.
3875
4f7bc5ed
TT
38762020-05-08 Tom Tromey <tromey@adacore.com>
3877
3878 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3879 already being processed.
3880
8be4b118
TT
38812020-05-08 Tom Tromey <tom@tromey.com>
3882
3883 * printcmd.c (struct display) <next>: Remove.
3884 <display>: New constructor.
3885 <exp_string>: Now a std::string.
3886 <enabled_p>: Now a bool.
3887 (display_number): Move definition earlier.
3888 (displays): Rename from display_chain. Now a std::vector.
3889 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3890 (display_command): Update.
3891 (do_one_display, disable_display)
3892 (enable_disable_display_command, do_enable_disable_display):
3893 Update.
3894 (free_display): Remove.
3895 (clear_displays): Rewrite.
3896 (delete_display): Update.
3897 (map_display_numbers): Use function_view. Remove "data"
3898 parameter. Update.
3899 (do_delete_display): Remove.
3900 (undisplay_command): Update.
3901 (do_one_display, do_displays, disable_display)
3902 (info_display_command): Update.
3903 (do_enable_disable_display): Remove.
3904 (enable_disable_display_command)
3905 (clear_dangling_display_expressions): Update.
3906
94c93c35
TT
39072020-05-08 Tom Tromey <tom@tromey.com>
3908
3909 * symtab.c (set_symbol_cache_size)
3910 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3911 (maintenance_print_symbol_cache_statistics): Update.
3912 * symmisc.c (print_symbol_bcache_statistics)
3913 (print_objfile_statistics, maintenance_print_objfiles)
3914 (maintenance_info_symtabs, maintenance_check_symtabs)
3915 (maintenance_expand_symtabs, maintenance_info_line_tables):
3916 Update.
3917 * symfile-debug.c (set_debug_symfile): Update.
3918 * source.c (forget_cached_source_info): Update.
3919 * python/python.c (gdbpy_progspaces): Update.
3920 * psymtab.c (maintenance_info_psymtabs): Update.
3921 * probe.c (parse_probes): Update.
3922 * linespec.c (iterate_over_all_matching_symtabs)
3923 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3924 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3925 * exec.c (exec_target::close): Update.
3926 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3927 * breakpoint.c (print_one_breakpoint_location)
3928 (create_longjmp_master_breakpoint)
3929 (create_std_terminate_master_breakpoint): Update.
3930 * progspace.c (program_spaces): Now a std::vector.
3931 (maybe_new_address_space): Update.
3932 (add_program_space): Remove.
3933 (program_space::program_space): Update.
3934 (remove_program_space): Update.
3935 (number_of_program_spaces): Remove.
3936 (print_program_space, update_address_spaces): Update.
3937 * progspace.h (program_spaces): Change type.
3938 (ALL_PSPACES): Remove.
3939 (number_of_program_spaces): Don't declare.
3940 (struct program_space) <next>: Remove.
3941
a1fd1ac9
TT
39422020-05-08 Tom Tromey <tom@tromey.com>
3943
3944 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3945 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3946 (enable_break): Update.
3947 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3948 (frv_fdpic_find_canonical_descriptor): Update.
3949 (frv_fetch_objfile_link_map): Update.
3950 * progspace.c (program_space::free_all_objfiles): Update.
3951 (program_space::solibs): New method.
3952 * progspace.h (struct program_space) <solibs>: New method.
3953 * solist.h (master_so_list): Don't declare.
3954 (ALL_SO_LIBS): Remove.
3955 * solib.h (so_list_head): Remove.
3956 (update_solib_list): Update comment.
3957 * solib.c (master_so_list): Remove.
3958 (solib_used, update_solib_list, solib_add)
3959 (info_sharedlibrary_command, clear_solib)
3960 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3961
38eae084
TT
39622020-05-08 Tom Tromey <tom@tromey.com>
3963
3964 * extension.c (extension_languages): Now a std::array.
3965 (ALL_EXTENSION_LANGUAGES): Remove.
3966 (get_ext_lang_defn, get_ext_lang_of_file)
3967 (eval_ext_lang_from_control_command): Update.
3968 (finish_ext_lang_initialization)
3969 (auto_load_ext_lang_scripts_for_objfile)
3970 (ext_lang_type_printers::ext_lang_type_printers)
3971 (apply_ext_lang_type_printers)
3972 (ext_lang_type_printers::~ext_lang_type_printers)
3973 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3974 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3975 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3976 (get_matching_xmethod_workers, ext_lang_colorize)
3977 (ext_lang_before_prompt): Update.
3978 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3979
596dc4ad
TT
39802020-05-08 Tom Tromey <tom@tromey.com>
3981
3982 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3983 overload.
3984 <swap_string, m_string>: Remove.
3985 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3986 Update.
3987 * stabsread.c (define_symbol, read_type): Update.
3988 * linespec.c (find_linespec_symbols): Update.
3989 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3990 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3991 * dbxread.c (read_dbx_symtab): Update.
3992 * cp-support.h (cp_canonicalize_string_full)
3993 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3994 Return unique_xmalloc_ptr.
3995 * cp-support.c (inspect_type): Update.
3996 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3997 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3998 Likewise.
3999 * c-typeprint.c (print_name_maybe_canonical): Update.
4000 * break-catch-throw.c (check_status_exception_catchpoint):
4001 Update.
4002
bf4cb9be
TV
40032020-05-08 Tom de Vries <tdevries@suse.de>
4004
4005 * infrun.c (follow_fork): Copy current_line and current_symtab to
4006 child thread.
4007
a1b68f28
SM
40082020-05-07 Simon Marchi <simon.marchi@efficios.com>
4009
4010 * async-event.c (struct async_signal_handler, struct
4011 async_event_handler): Reformat, remove typedef.
4012
98d48915
SM
40132020-05-07 Simon Marchi <simon.marchi@efficios.com>
4014
4015 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4016 access thistype->main_type->dyn_prop_list directly.
4017
7aa91313
SM
40182020-05-07 Simon Marchi <simon.marchi@efficios.com>
4019
4020 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4021 (remove_dyn_prop): Remove. Update all users to use
4022 type::remove_dyn_prop.
4023 * gdbtypes.c (remove_dyn_prop): Rename to...
4024 (type::remove_dyn_prop): ... this.
4025
5c54719c
SM
40262020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4027
4028 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4029 (add_dyn_prop): Remove. Update all users to use
4030 type::add_dyn_prop.
4031 * gdbtypes.c (add_dyn_prop): Rename to...
4032 (type::add_dyn_prop): ... this.
4033
24e99c6c
SM
40342020-05-07 Simon Marchi <simon.marchi@efficios.com>
4035
4036 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4037 (get_dyn_prop): Remove. Update all users to use
4038 type::dyn_prop.
4039 * gdbtypes.c (get_dyn_prop): Rename to...
4040 (type::dyn_prop): ... this.
4041
0d4bf016
SM
40422020-05-06 Simon Marchi <simon.marchi@efficios.com>
4043
4044 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4045
ac4a4f1c
SM
40462020-05-06 Simon Marchi <simon.marchi@efficios.com>
4047
4048 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4049 instruction, skip it if it's there.
4050
a3bbacc1
SM
40512020-05-05 Simon Marchi <simon.marchi@efficios.com>
4052
4053 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4054
c3236f84
SM
40552020-05-04 Simon Marchi <simon.marchi@efficios.com>
4056
4057 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4058 * gdbtypes.c (recursive_dump_type): Remove use of
4059 TYPE_INCOMPLETE.
4060
3b6acaee
TT
40612020-05-03 Tom Tromey <tom@tromey.com>
4062
4063 * breakpoint.c (catch_command, tcatch_command): Remove.
4064 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4065 add_show_prefix_cmd.
4066 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4067 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4068 Remove.
4069 (add_internal_problem_command): Use add_basic_prefix_cmd,
4070 add_show_prefix_cmd.
4071 * mips-tdep.c (set_mipsfpu_command): Remove.
4072 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4073 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4074 (_initialize_index_cache): Use add_basic_prefix_cmd.
4075 * memattr.c (dummy_cmd): Remove.
4076 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4077 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4078 (_initialize_tui_win): Use add_basic_prefix_cmd,
4079 add_show_prefix_cmd.
4080 * cli/cli-logging.c (set_logging_command): Remove.
4081 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4082 add_show_prefix_cmd.
4083 (show_logging_command): Remove.
4084 * target.c (target_command): Remove.
4085 (add_target): Use add_basic_prefix_cmd.
4086
a51119cd
HD
40872020-05-02 Hannes Domani <ssbssa@yahoo.de>
4088
4089 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4090
652fc23a 40912020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4092
652fc23a
PW
4093 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4094 info_command.
4095
117539e6
KR
40962020-04-30 Kamil Rytarowski <n54@gmx.com>
4097
4098 * nbsd-nat.c (nbsd_enable_proc_events)
4099 (nbsd_nat_target::post_startup_inferior): Add.
4100 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4101 (nbsd_nat_target::update_thread_list): Rewrite.
4102 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4103 "PTRACE_LWP_CREATE".
4104 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4105
102e38eb 41062020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4107
102e38eb
PW
4108 * stack.c (_initialize_stack): Remove duplicated creation
4109 of "frame" command and "f" alias.
4110
ee9d1e5f
HD
41112020-04-30 Hannes Domani <ssbssa@yahoo.de>
4112
4113 PR gdb/18706
4114 * gdbtypes.c (check_typedef): Calculate size of array of
4115 stubbed type.
4116
627c7fb8
HD
41172020-04-30 Hannes Domani <ssbssa@yahoo.de>
4118
4119 PR gdb/15559
4120 * i386-tdep.c (i386_push_dummy_call): Call
4121 i386_thiscall_push_dummy_call.
4122 (i386_thiscall_push_dummy_call): New function.
4123 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4124 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4125 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4126
ffc2844e
SM
41272020-04-29 Simon Marchi <simon.marchi@efficios.com>
4128
4129 * gdbarch.sh (do_read): Add shellcheck disable directive for
4130 warning SC2162.
4131
1207375d
SM
41322020-04-29 Simon Marchi <simon.marchi@efficios.com>
4133
4134 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4135 "referenced but not assigned" warning.
4136
9fdb2916
SM
41372020-04-29 Simon Marchi <simon.marchi@efficios.com>
4138
4139 * gdbarch.sh: Remove code that sets fallbackdefault.
4140
759cea5e
SM
41412020-04-29 Simon Marchi <simon.marchi@efficios.com>
4142
4143 * gdbarch.sh: Use shell operators && and || instead of
4144 -a and -o.
4145
cb02ab24
SM
41462020-04-29 Simon Marchi <simon.marchi@efficios.com>
4147
4148 * gdbarch.sh: Use $(...) instead of `...`.
4149
a6fc5ffc
SM
41502020-04-29 Simon Marchi <simon.marchi@efficios.com>
4151
4152 * gdbarch.sh: Use double quotes around variables.
4153
8d113d13
SM
41542020-04-29 Simon Marchi <simon.marchi@efficios.com>
4155
4156 * gdbarch.sh: Use %s with printf, instead of variables in the
4157 format string.
4158
ed6acedd
TT
41592020-04-29 Tom Tromey <tromey@adacore.com>
4160
4161 PR ada/25875:
4162 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4163 type fields here.
4164 (read_enumeration_type): Call
4165 update_enumeration_type_from_children later. Update comments.
4166 (process_enumeration_scope): Don't create type fields.
4167
b68b1b58
KR
41682020-04-29 Kamil Rytarowski <n54@gmx.com>
4169
4170 * nbsd-tdep.c: Include "xml-syscall.h".
4171 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4172
f94b2e03
KR
41732020-04-29 Kamil Rytarowski <n54@gmx.com>
4174
4175 * nbsd-nat.c: Include "sys/wait.h".
4176 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4177 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4178 (nbsd_nat_target::remove_exec_catchpoint)
4179 (nbsd_nat_target::set_syscall_catchpoint): Add.
4180 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4181 (nbsd_nat_target::insert_exec_catchpoint)
4182 (nbsd_nat_target::remove_exec_catchpoint)
4183 (nbsd_nat_target::set_syscall_catchpoint): Add.
4184 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4185 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4186 `nbsd_get_syscall_number'.
4187
fc49bc72
TT
41882020-04-29 Tom Tromey <tom@tromey.com>
4189
4190 * stack.c (print_block_frame_labels): Remove.
4191
d642b692
HD
41922020-04-29 Hannes Domani <ssbssa@yahoo.de>
4193
4194 PR gdb/17320
4195 * ada-valprint.c (val_print_packed_array_elements): Move array
4196 end bracket to new line.
4197 (ada_val_print_string): Remove extra spaces before first array
4198 element.
4199 * c-valprint.c (c_value_print_array): Likewise.
4200 * m2-valprint.c (m2_print_array_contents): Likewise.
4201 (m2_value_print_inner): Likewise.
4202 * p-valprint.c (pascal_value_print_inner): Likewise.
4203 * valprint.c (generic_val_print_array): Likewise.
4204 (value_print_array_elements): Move first array element and array
4205 end bracket to new line.
4206
ea90f227
TV
42072020-04-29 Tom de Vries <tdevries@suse.de>
4208
4209 PR symtab/25889
4210 * linespec.c (find_method): Fix ix calculation.
4211
4498ef4f
KR
42122020-04-28 Kamil Rytarowski <n54@gmx.com>
4213
4214 * syscalls/update-netbsd.sh: New file.
4215 * syscalls/netbsd.xml: Regenerate.
4216 * data-directory/Makefile.in: Register `netbsd.xml' in
4217 `SYSCALLS_FILES'.
4218
a55e30b5
SM
42192020-04-28 Simon Marchi <simon.marchi@efficios.com>
4220
4221 * syscalls/update-freebsd.sh: Add double quotes.
4222
2b2fbab8
TT
42232020-04-28 Tom Tromey <tom@tromey.com>
4224
4225 * NEWS: Update.
4226 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4227 (cmdpy_init): Allow class_tui.
4228
a65189c9
TV
42292020-04-28 Mark Williams <mark@myosotissp.com>
4230
4231 PR gdb/24480
4232 * dwarf2read.c: Add missing assingments to list_in_scope when
4233 start_symtab was already called.
4234
1b95cdb7
SM
42352020-04-28 Simon Marchi <simon.marchi@efficios.com>
4236
4237 PR gdb/25881
4238 * dwarf2/read.c (offset_map_type): Use
4239 gdb:hash_enum<sect_offset> as hash function.
4240
15cd93d0
TV
42412020-04-28 Tom de Vries <tdevries@suse.de>
4242
4243 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4244 with DW_AT_signature.
4245
1eb39914
SM
42462020-04-27 Simon Marchi <simon.marchi@efficios.com>
4247
4248 * configure.ac: Remove check for fs_base/gs_base in
4249 user_regs_struct.
4250 * configure: Re-generate.
4251 * config.in: Re-generate.
4252 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4253 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4254 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4255
991a3e2e
LM
42562020-04-27 Luis Machado <luis.machado@linaro.org>
4257
4258 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4259 problematic inline frame unwinding situation.
4260 * frame.c (frame_id_computed_p): New function.
4261 * frame.h (frame_id_computed_p): New prototype.
4262
361ba0e8
TT
42632020-04-26 Tom Tromey <tom@tromey.com>
4264
4265 * command.h (enum command_class) <class_pseudo>: Remove.
4266
bc3609fd
PW
42672020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4268
4269 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4270 and whitespace.
4271
b9771db7
KR
42722020-04-25 Kamil Rytarowski <n54@gmx.com>
4273
ec16513e
SM
4274 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4275 `PT_GET_PROCESS_STATE' block.
b9771db7 4276
7151c1af
TT
42772020-04-24 Tom Tromey <tom@tromey.com>
4278
4279 * symtab.h (symbol_get_demangled_name): Don't declare.
4280 * symtab.c (symbol_get_demangled_name): Remove.
4281 (general_symbol_info::natural_name)
4282 (general_symbol_info::demangled_name): Update.
4283
906bb4c5
TT
42842020-04-24 Tom Tromey <tom@tromey.com>
4285
4286 PR rust/25025:
4287 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4288
bcfe6157
TT
42892020-04-24 Tom Tromey <tom@tromey.com>
4290
4291 PR symtab/12707:
4292 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4293 exists.
4294 (new_symbol): Likewise.
4295 * compile/compile-object-load.c (get_out_value_type): Use
4296 symbol_matches_search_name.
4297
f049a313
TT
42982020-04-24 Tom Tromey <tom@tromey.com>
4299
4300 * dwarf2/read.c (add_partial_symbol): Do not call
4301 compute_and_set_names.
4302
76e288d1
TT
43032020-04-24 Tom Tromey <tom@tromey.com>
4304
4305 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4306 overload.
4307
2467f4f6
TT
43082020-04-24 Tom Tromey <tom@tromey.com>
4309
4310 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4311 (add_psymbol_to_list): New overload. Make old overload call new
4312 one.
4313 * psympriv.h (add_psymbol_to_list): New overload.
4314
e61108c9
TT
43152020-04-24 Tom Tromey <tom@tromey.com>
4316
4317 * dwarf2/read.c (partial_die_info::read) <case
4318 DW_AT_linkage_name>: Use value_as_string.
4319 (dwarf2_string_attr): Use value_as_string.
4320 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4321 method.
4322 * dwarf2/attribute.c (attribute::value_as_string): New method.
4323
8c87a452
TT
43242020-04-24 Tom Tromey <tom@tromey.com>
4325
4326 * symtab.c (general_symbol_info::natural_name)
4327 (general_symbol_info::demangled_name): Check for language_rust.
4328
787de330
TT
43292020-04-24 Tom Tromey <tom@tromey.com>
4330
4331 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4332 (dwarf2_physname): ... from here.
4333 (partial_die_info::read): Add Rust "{" hack.
4334
ff985671
TT
43352020-04-24 Tom Tromey <tom@tromey.com>
4336
4337 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4338 method.
4339 (symbol_set_demangled_name): Don't declare.
4340 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4341 symbol_set_demangled_name.
4342 (general_symbol_info::set_language)
4343 (general_symbol_info::compute_and_set_names): Update.
4344 * minsyms.c (minimal_symbol_reader::install): Update.
4345 * dwarf2/read.c (new_symbol): Update.
4346
1acda803
TT
43472020-04-24 Tom Tromey <tromey@adacore.com>
4348
4349 PR python/23662:
4350 * python/py-type.c (convert_field): Handle
4351 FIELD_LOC_KIND_DWARF_BLOCK.
4352 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4353 (typy_get_dynamic): Nw function.
4354 (type_object_getset): Add "dynamic".
4355 * NEWS: Add entry.
4356
d656f129
TT
43572020-04-24 Tom Tromey <tromey@adacore.com>
4358
4359 * ada-typeprint.c (print_choices, print_variant_part)
4360 (print_record_field_types_dynamic): New functions.
4361 (print_record_field_types): Use print_record_field_types_dynamic.
4362
7d79de9a
TT
43632020-04-24 Tom Tromey <tromey@adacore.com>
4364
4365 * dwarf2/read.c (handle_data_member_location): New overload.
4366 (dwarf2_add_field): Use it.
4367 (decode_locdesc): Add "computed" parameter. Update comment.
4368 * gdbtypes.c (is_dynamic_type_internal): Also look for
4369 FIELD_LOC_KIND_DWARF_BLOCK.
4370 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4371 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4372 virtual base classes.
4373 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4374 FIELD_LOC_KIND_DWARF_BLOCK.
4375
f8e89861
TT
43762020-04-24 Tom Tromey <tromey@adacore.com>
4377
4378 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4379 * gdbtypes.c (is_dynamic_type_internal): Check
4380 TYPE_HAS_DYNAMIC_LENGTH.
4381 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4382 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4383 New macros.
4384 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4385 constant.
4386
9c6a1327
TT
43872020-04-24 Tom Tromey <tromey@adacore.com>
4388
4389 * dwarf2/read.c (struct variant_field): Rewrite.
4390 (struct variant_part_builder): New.
4391 (struct nextfield): Remove "variant" field. Add "offset".
4392 (struct field_info): Add "current_variant_part" and
4393 "variant_parts".
4394 (alloc_discriminant_info): Remove.
4395 (alloc_rust_variant): New function.
4396 (quirk_rust_enum): Update.
4397 (dwarf2_add_field): Set "offset" member. Don't handle
4398 DW_TAG_variant_part.
4399 (offset_map_type): New typedef.
4400 (convert_variant_range, create_one_variant)
4401 (create_one_variant_part, create_variant_parts)
4402 (add_variant_property): New functions.
4403 (dwarf2_attach_fields_to_type): Call add_variant_property.
4404 (read_structure_type): Don't handle DW_TAG_variant_part.
4405 (handle_variant_part, handle_variant): New functions.
4406 (handle_struct_member_die): Use them.
4407 (process_structure_scope): Don't handle variant parts.
4408 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4409 (struct discriminant_info): Remove.
4410 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4411 (struct main_type) <flag_discriminated_union>: Remove.
4412 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4413 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4414 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4415 Update.
4416 * valops.c (value_union_variant): Remove.
4417 * value.h (value_union_variant): Don't declare.
4418
b249d2c2
TT
44192020-04-24 Tom Tromey <tromey@adacore.com>
4420
4421 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4422 (ada_value_primitive_packed_val): Update.
4423 * ada-valprint.c (ada_value_print_1): Update.
4424 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4425 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4426 just an address. Use evaluate_for_locexpr_baton.
4427 (dwarf2_evaluate_property): Update.
4428 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4429 array_view.
4430 * findvar.c (default_read_var_value): Update.
4431 * gdbtypes.c (compute_variant_fields_inner)
4432 (resolve_dynamic_type_internal): Update.
4433 (resolve_dynamic_type): Change type of valaddr parameter.
4434 * gdbtypes.h (resolve_dynamic_type): Update.
4435 * valarith.c (value_subscripted_rvalue): Update.
4436 * value.c (value_from_contents_and_address): Update.
4437
61122aa9
TT
44382020-04-24 Tom Tromey <tromey@adacore.com>
4439
4440 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4441 "push_initial_value" parameter.
4442 (dwarf2_evaluate_property): Likewise.
4443 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4444
ef83a141
TT
44452020-04-24 Tom Tromey <tromey@adacore.com>
4446
4447 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4448 (variant::matches, compute_variant_fields_recurse)
4449 (compute_variant_fields_inner, compute_variant_fields): New
4450 functions.
4451 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4452 Use resolved_type after type is made.
4453 (operator==): Add new cases.
4454 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4455 (struct discriminant_range, struct variant, struct variant_part):
4456 New.
4457 (union dynamic_prop_data) <variant_parts, original_type>: New
4458 members.
4459 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4460 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4461 constants.
4462 * value.c (unpack_bits_as_long): Now public.
4463 * value.h (unpack_bits_as_long): Declare.
4464
675127ec
TT
44652020-04-24 Tom Tromey <tromey@adacore.com>
4466
4467 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4468 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4469
9852ceef
HD
44702020-04-24 Hannes Domani <ssbssa@yahoo.de>
4471
4472 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4473
7632c6ce
KR
44742020-04-24 Kamil Rytarowski <n54@gmx.com>
4475
4476 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4477 (remove_fork_catchpoint, post_startup_inferior)
4478 (post_attach): Move...
4479 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4480 (remove_fork_catchpoint, post_startup_inferior)
4481 (post_attach): ...here.
4482 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4483 (remove_fork_catchpoint, post_startup_inferior)
4484 (post_attach): Move...
4485 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4486 (remove_fork_catchpoint, post_startup_inferior)
4487 (post_attach): ...here.
4488
7be2bb4f
TT
44892020-04-24 Tom Tromey <tromey@adacore.com>
4490
4491 * nat/windows-nat.h (struct windows_thread_info)
4492 <pc_adjusted>: New member.
4493 * windows-nat.c (windows_fetch_one_register): Check
4494 pc_adjusted.
4495 (windows_nat_target::get_windows_debug_event)
4496 (windows_nat_target::wait): Set pc_adjusted.
4497
f80cb3b4
TV
44982020-04-24 Tom de Vries <tdevries@suse.de>
4499
4500 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4501 Run gdb-add-index inside temp dir.
4502
29514b87
TT
45032020-04-23 Tom Tromey <tromey@adacore.com>
4504
4505 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4506 in loop.
4507
5939967b
LM
45082020-04-23 Luis Machado <luis.machado@linaro.org>
4509
4510 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4511 get_frame_register instead of gdbarch_unwind_pc.
4512
70bc38f5
TV
45132020-04-23 Tom de Vries <tdevries@suse.de>
4514
4515 * symtab.c (lookup_global_symbol): Prefer def over decl.
4516
de82891c
TV
45172020-04-23 Tom de Vries <tdevries@suse.de>
4518
4519 PR symtab/25807
4520 * block.c (best_symbol, better_symbol): Promote to external.
4521 * block.h (best_symbol, better_symbol): Declare.
4522 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4523 decl.
4524
ecc6c606
TT
45252020-04-23 Tom Tromey <tromey@adacore.com>
4526
4527 PR ada/25837:
4528 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4529 "const char *", not a "const std::string &".
4530 <name_and_matcher::operator==>: Update.
4531 * unittests/lookup_name_info-selftests.c: Change type of
4532 "result".
4533
740480b8
TT
45342020-04-23 Tom Tromey <tom@tromey.com>
4535
4536 * inferior.h (iterate_over_inferiors): Don't declare.
4537 * inferior.c (iterate_over_inferiors): Remove.
4538 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4539 Remove.
4540 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4541 use iterate_over_inferiors.
4542 (darwin_resume_inferior_it)
4543 (struct resume_inferior_threads_param)
4544 (darwin_resume_inferior_threads_it): Remove.
4545 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4546
ae3ab1f0
TV
45472020-04-23 Tom de Vries <tdevries@suse.de>
4548
4549 * blockframe.c (find_pc_partial_function): Use
4550 find_pc_sect_compunit_symtab rather than
4551 objfile->sf->qf->find_pc_sect_compunit_symtab.
4552
317d2668
TV
45532020-04-22 Tom de Vries <tdevries@suse.de>
4554
4555 PR symtab/25764
4556 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4557 in psymtabs.
4558
eea9e357
TV
45592020-04-22 Tom de Vries <tdevries@suse.de>
4560
4561 PR symtab/25801
4562 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4563 symtabs.
4564
3d5afab3
TV
45652020-04-22 Tom de Vries <tdevries@suse.de>
4566
4567 PR symtab/25700
4568 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4569 CU if already created.
4570
d43b7a2d
TBA
45712020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4572
4573 * infrun.c (displaced_step_fixup): Switch to the event_thread
4574 before calling displaced_step_restore, not after.
4575
d89edf9b
MM
45762020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4577
4578 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4579 its inferior is not recorded by us.
4580 (record_btrace_target_open): Replace call to
4581 all_non_exited_threads () with call to current_inferior
4582 ()->non_exited_threads ().
4583 (record_btrace_target::stop_recording): Likewise.
4584 (record_btrace_target::close): Likewise.
4585 (record_btrace_target::wait): Likewise.
4586 (record_btrace_target::record_stop_replaying): Likewise.
4587
5897fd49
MM
45882020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4589
4590 * btrace.c (btrace_enable): Throw an error on double enables and
4591 when enabling recording fails.
4592 (btrace_disable): Throw an error if the thread is not recorded.
4593
1a476b6d
MM
45942020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4595
4596 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4597 request if we do not have a thread_info.
4598
4778a5f8
TV
45992020-04-21 Tom de Vries <tdevries@suse.de>
4600
4601 PR gdb/25471
4602 * thread.c
4603 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4604 exception in get_frame_id.
4605
0fa7617d
TT
46062020-04-20 Tom Tromey <tromey@adacore.com>
4607
4608 * python/python.c (struct gdbpy_event): Mark move constructor as
4609 noexcept.
4610 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4611 constructor as noexcept.
4612 * completer.h (struct completion_result): Mark move constructor as
4613 noexcept.
4614 * completer.c (completion_result::completion_result): Use
4615 initialization style. Don't call reset_match_list.
4616
ad23bda0
MS
46172020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4618
4619 * MAINTAINERS (Write After Approval): Add myself.
4620
45e1f031
TT
46212020-04-18 Tom Tromey <tom@tromey.com>
4622
4623 * windows-tdep.c (init_w32_command_list)
4624 (w32_prefix_command_valid): Restore.
4625 (_initialize_windows_tdep): Call init_w32_command_list.
4626
08feed99
TT
46272020-04-18 Tom Tromey <tom@tromey.com>
4628
4629 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4630 * value.c (value_fn_field): Update.
4631 * valops.c (find_function_in_inferior)
4632 (value_allocate_space_in_inferior): Update.
4633 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4634 Update.
4635 * tui/tui-source.c (tui_source_window::set_contents): Update.
4636 * symtab.c (lookup_global_or_static_symbol)
4637 (find_function_start_sal_1, skip_prologue_sal)
4638 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4639 * symmisc.c (dump_msymbols, dump_symtab_1)
4640 (maintenance_print_one_line_table): Update.
4641 * symfile.c (init_entry_point_info, section_is_mapped)
4642 (list_overlays_command, simple_read_overlay_table)
4643 (simple_overlay_update_1): Update.
4644 * stap-probe.c (handle_stap_probe): Update.
4645 * stabsread.c (dbx_init_float_type, define_symbol)
4646 (read_one_struct_field, read_enum_type, read_range_type): Update.
4647 * source.c (info_line_command): Update.
4648 * python/python.c (gdbpy_source_objfile_script)
4649 (gdbpy_execute_objfile_script): Update.
4650 * python/py-type.c (save_objfile_types): Update.
4651 * python/py-objfile.c (py_free_objfile): Update.
4652 * python/py-inferior.c (python_new_objfile): Update.
4653 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4654 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4655 (maintenance_check_psymtabs): Update.
4656 * printcmd.c (info_address_command): Update.
4657 * objfiles.h (struct objfile) <arch>: New method, from
4658 get_objfile_arch.
4659 (get_objfile_arch): Don't declare.
4660 * objfiles.c (get_objfile_arch): Remove.
4661 (filter_overlapping_sections): Update.
4662 * minsyms.c (msymbol_is_function): Update.
4663 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4664 (output_nondebug_symbol): Update.
4665 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4666 (mdebug_expand_psymtab): Update.
4667 * machoread.c (macho_add_oso_symfile): Update.
4668 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4669 Update.
4670 * linux-fork.c (checkpoint_command): Update.
4671 * linespec.c (convert_linespec_to_sals): Update.
4672 * jit.c (finalize_symtab): Update.
4673 * infrun.c (insert_exception_resume_from_probe): Update.
4674 * ia64-tdep.c (ia64_find_unwind_table): Update.
4675 * hppa-tdep.c (internalize_unwinds): Update.
4676 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4677 Update.
4678 * gcore.c (call_target_sbrk): Update.
4679 * elfread.c (record_minimal_symbol, elf_symtab_read)
4680 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4681 (elf_gnu_ifunc_resolve_by_got): Update.
4682 * dwarf2/read.c (create_addrmap_from_index)
4683 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4684 (read_debug_names_from_section)
4685 (process_psymtab_comp_unit_reader, add_partial_symbol)
4686 (add_partial_subprogram, process_full_comp_unit)
4687 (read_file_scope, read_func_scope, read_lexical_block_scope)
4688 (read_call_site_scope, dwarf2_ranges_read)
4689 (dwarf2_record_block_ranges, dwarf2_add_field)
4690 (mark_common_block_symbol_computed, read_tag_pointer_type)
4691 (read_tag_string_type, dwarf2_init_float_type)
4692 (dwarf2_init_complex_target_type, read_base_type)
4693 (partial_die_info::read, partial_die_info::read)
4694 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4695 (dwarf2_fetch_die_loc_sect_off): Update.
4696 * dwarf2/loc.c (dwarf2_find_location_expression)
4697 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4698 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4699 (dwarf2_loc_desc_get_symbol_read_needs)
4700 (locexpr_describe_location_piece, locexpr_describe_location_1)
4701 (loclist_describe_location): Update.
4702 * dwarf2/index-write.c (write_debug_names): Update.
4703 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4704 * dtrace-probe.c (dtrace_process_dof): Update.
4705 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4706 (process_one_symbol): Update.
4707 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4708 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4709 (coff_read_enum_type): Update.
4710 * cli/cli-cmds.c (edit_command, list_command): Update.
4711 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4712 * breakpoint.c (create_overlay_event_breakpoint)
4713 (create_longjmp_master_breakpoint)
4714 (create_std_terminate_master_breakpoint)
4715 (create_exception_master_breakpoint, get_sal_arch): Update.
4716 * block.c (block_gdbarch): Update.
4717 * annotate.c (annotate_source_line): Update.
4718
0743fc83
TT
47192020-04-17 Tom Tromey <tromey@adacore.com>
4720
4721 * auto-load.c (show_auto_load_cmd): Remove.
4722 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4723 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4724 (maintenance_print_arc_command): Remove.
4725 * tui/tui-win.c (tui_command): Remove.
4726 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4727 * tui/tui-layout.c (tui_layout_command): Remove.
4728 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4729 * python/python.c (user_set_python, user_show_python): Remove.
4730 (_initialize_python): Use add_basic_prefix_cmd,
4731 add_show_prefix_cmd.
4732 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4733 (install_gdb_commands): Use add_basic_prefix_cmd,
4734 add_show_prefix_cmd.
4735 (info_guile_command): Remove.
4736 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4737 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4738 add_show_prefix_cmd.
4739 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4740 Remove do_set and do_show parameters.
4741 * cli/cli-style.c (set_style, show_style): Remove.
4742 (_initialize_cli_style): Use add_basic_prefix_cmd,
4743 add_show_prefix_cmd.
4744 (cli_style_option::add_setshow_commands): Remove do_set and
4745 do_show parameters.
4746 (cli_style_option::add_setshow_commands): Use
4747 add_basic_prefix_cmd, add_show_prefix_cmd.
4748 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4749 (set_style_name): Remove.
4750 * cli/cli-dump.c (dump_command, append_command): Remove.
4751 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4752 (tekhex_dump_command, binary_dump_command)
4753 (binary_append_command): Remove.
4754 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4755 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4756 (init_w32_command_list): Remove; move into ...
4757 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4758 * valprint.c (set_print, show_print, set_print_raw)
4759 (show_print_raw): Remove.
4760 (_initialize_valprint): Use add_basic_prefix_cmd,
4761 add_show_prefix_cmd.
4762 * typeprint.c (set_print_type, show_print_type): Remove.
4763 (_initialize_typeprint): Use add_basic_prefix_cmd,
4764 add_show_prefix_cmd.
4765 * record.c (set_record_command, show_record_command): Remove.
4766 (_initialize_record): Use add_basic_prefix_cmd,
4767 add_show_prefix_cmd.
4768 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4769 add_show_prefix_cmd.
4770 (info_command, show_command, set_debug, show_debug): Remove.
4771 * top.h (set_history, show_history): Don't declare.
4772 * top.c (set_history, show_history): Remove.
4773 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4774 (unset_tdesc_cmd): Remove.
4775 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4776 add_show_prefix_cmd.
4777 * symtab.c (info_module_command): Remove.
4778 (_initialize_symtab): Use add_basic_prefix_cmd.
4779 * symfile.c (overlay_command): Remove.
4780 (_initialize_symfile): Use add_basic_prefix_cmd.
4781 * sparc64-tdep.c (info_adi_command): Remove.
4782 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4783 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4784 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4785 add_show_prefix_cmd.
4786 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4787 (_initialize_serial): Use add_basic_prefix_cmd,
4788 add_show_prefix_cmd.
4789 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4790 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4791 add_show_prefix_cmd.
4792 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4793 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4794 add_show_prefix_cmd.
4795 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4796 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4797 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4798 add_show_prefix_cmd.
4799 * remote.c (remote_command, set_remote_cmd): Remove.
4800 (_initialize_remote): Use add_basic_prefix_cmd.
4801 * record-full.c (set_record_full_command)
4802 (show_record_full_command): Remove.
4803 (_initialize_record_full): Use add_basic_prefix_cmd,
4804 add_show_prefix_cmd.
4805 * record-btrace.c (cmd_set_record_btrace)
4806 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4807 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4808 (cmd_show_record_btrace_pt): Remove.
4809 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4810 add_show_prefix_cmd.
4811 * ravenscar-thread.c (set_ravenscar_command)
4812 (show_ravenscar_command): Remove.
4813 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4814 add_show_prefix_cmd.
4815 * mips-tdep.c (show_mips_command, set_mips_command)
4816 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4817 add_show_prefix_cmd.
4818 * maint.c (maintenance_command, maintenance_info_command)
4819 (maintenance_check_command, maintenance_print_command)
4820 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4821 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4822 add_show_prefix_cmd.
4823 (show_per_command_cmd): Remove.
4824 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4825 Remove.
4826 (maintenance_show_test_settings_cmd): Remove.
4827 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4828 add_show_prefix_cmd.
4829 * maint-test-options.c (maintenance_test_options_command):
4830 Remove.
4831 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4832 * macrocmd.c (macro_command): Remove
4833 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4834 * language.c (set_check, show_check): Remove.
4835 (_initialize_language): Use add_basic_prefix_cmd,
4836 add_show_prefix_cmd.
4837 * infcmd.c (unset_command): Remove.
4838 (_initialize_infcmd): Use add_basic_prefix_cmd.
4839 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4840 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4841 add_show_prefix_cmd.
4842 * go32-nat.c (go32_info_dos_command): Remove.
4843 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4844 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4845 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4846 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4847 (_initialize_frame): Use add_basic_prefix_cmd,
4848 add_show_prefix_cmd.
4849 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4850 (_initialize_dcache): Use add_basic_prefix_cmd,
4851 add_show_prefix_cmd.
4852 * cp-support.c (maint_cplus_command): Remove.
4853 (_initialize_cp_support): Use add_basic_prefix_cmd.
4854 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4855 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4856 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4857 add_basic_prefix_cmd, add_show_prefix_cmd.
4858 * breakpoint.c (save_command): Remove.
4859 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4860 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4861 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4862 add_show_prefix_cmd.
4863 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4864 (set_ada_command, show_ada_command): Remove.
4865 (_initialize_ada_language): Use add_basic_prefix_cmd,
4866 add_show_prefix_cmd.
4867 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4868
3557f442
KR
48692020-04-16 Kamil Rytarowski <n54@gmx.com>
4870
4871 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4872 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4873
16197208
SM
48742020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4875
4876 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4877 warning messages.
4878
00ac85d3
SM
48792020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4880
4881 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4882 import table is not at beginning of .idata section.
4883
381ce63f
PA
48842020-04-16 Pedro Alves <palves@redhat.com>
4885
4886 * inferior.c (delete_inferior): Use delete operator directly
4887 instead of delete_program_space.
4888 * progspace.c (add_program_space): New, factored out from
4889 program_space::program_space.
4890 (remove_program_space): New, factored out from
4891 delete_program_space.
4892 (program_space::program_space): Remove intro comment. Rewrite.
4893 (program_space::~program_space): Remove intro comment. Call
4894 remove_program_space.
4895 (delete_program_space): Delete.
4896 * progspace.h (program_space::program_space): Make explicit. Move
4897 intro comment here, adjusted.
4898 (program_space::~program_space): Move intro comment here,
4899 adjusted.
4900 (delete_program_space): Remove.
4901
a010605f
TT
49022020-04-16 Tom Tromey <tromey@adacore.com>
4903
4904 * windows-nat.c (windows_nat::handle_access_violation): New
4905 function.
4906 * nat/windows-nat.h (handle_access_violation): Declare.
4907 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4908 windows-nat.c. Call handle_access_violation.
4909
efba5c23
TV
49102020-04-16 Tom de Vries <tdevries@suse.de>
4911
4912 PR symtab/25791
4913 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4914 CUs without psymtab.
4915
97ed802d
KB
49162020-04-16 Kevin Buettner <kevinb@redhat.com>
4917
4918 * python/python.c (do_start_initialization): Don't call
4919 PyEval_InitThreads for Python 3.9 and beyond.
4920
c7d64809
KR
49212020-04-15 Kamil Rytarowski <n54@gmx.com>
4922
4923 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4924 thread functions.
4925 (obsd_nat_target::wait): Likewise.
4926
ce127a96
TT
49272020-04-15 Tom Tromey <tromey@adacore.com>
4928
4929 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4930 (DEBUG_EXCEPT): Use debug_printf.
4931
99f1bc6a
AB
49322020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4933
4934 * completer.c (class completion_tracker::completion_hash_entry)
4935 <hash_name>: New member function.
4936 (completion_tracker::discard_completions): New callback to hash a
4937 completion_hash_entry, pass this to htab_create_alloc.
4938
a0e9b532
JT
49392016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4940
4941 * windows-nat.c (windows_make_so): Warn rather than stopping with
4942 an error if realpath() fails.
4943
06ca5dd4
KR
49442020-04-14 Kamil Rytarowski <n54@gmx.com>
4945
4946 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4947 (nbsd_nat_target::info_proc): Add do_status.
4948
194d088f
TV
49492020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4950 Tom de Vries <tdevries@suse.de>
4951
4952 PR symtab/25718
4953 * psympriv.h (struct partial_symtab::read_symtab)
4954 (struct partial_symtab::expand_psymtab)
4955 (struct partial_symtab::read_dependencies): Update comments.
4956 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4957 read_symtab for includer.
4958 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4959 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4960 (struct dwarf2_include_psymtab::m_readin): Remove.
4961 (struct dwarf2_include_psymtab::includer): New member function.
4962 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4963
c1a66c06
TV
49642020-04-14 Tom de Vries <tdevries@suse.de>
4965
4966 PR symtab/25720
4967 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4968 with NULL symbol_matcher and lookup_name.
4969 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4970 and lookup_name.
4971 * dwarf2/read.c (dw2_expand_symtabs_matching)
4972 (dw2_debug_names_expand_symtabs_matching): Same.
4973 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4974 Make lookup_name a pointer. Update comment.
4975 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4976 lookup_name being a pointer.
4977 * symfile.c (expand_symtabs_matching): Same.
4978 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4979 * linespec.c (iterate_over_all_matching_symtabs): Same.
4980
400b5eca
TT
49812020-04-13 Tom Tromey <tom@tromey.com>
4982
4983 * run-on-main-thread.c: Update include.
4984 * unittests/main-thread-selftests.c: Update include.
4985 * tui/tui-win.c: Update include.
4986 * tui/tui-io.c: Update include.
4987 * tui/tui-interp.c: Update include.
4988 * tui/tui-hooks.c: Update include.
4989 * top.h: Update include.
4990 * top.c: Update include.
4991 * ser-base.c: Update include.
4992 * remote.c: Update include.
4993 * remote-notif.c: Update include.
4994 * remote-fileio.c: Update include.
4995 * record-full.c: Update include.
4996 * record-btrace.c: Update include.
4997 * python/python.c: Update include.
4998 * posix-hdep.c: Update include.
4999 * mingw-hdep.c: Update include.
5000 * mi/mi-main.c: Update include.
5001 * mi/mi-interp.c: Update include.
5002 * main.c: Update include.
5003 * linux-nat.c: Update include.
5004 * interps.c: Update include.
5005 * infrun.c: Update include.
5006 * inf-loop.c: Update include.
5007 * event-top.c: Update include.
5008 * event-loop.c: Move to ../gdbsupport/.
5009 * event-loop.h: Move to ../gdbsupport/.
5010 * async-event.h: Update include.
5011 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5012
93b54c8e
TT
50132020-04-13 Tom Tromey <tom@tromey.com>
5014
5015 * tui/tui-win.c: Include async-event.h.
5016 * remote.c: Include async-event.h.
5017 * remote-notif.c: Include async-event.h.
5018 * record-full.c: Include async-event.h.
5019 * record-btrace.c: Include async-event.h.
5020 * infrun.c: Include async-event.h.
5021 * event-top.c: Include async-event.h.
5022 * event-loop.h: Move some declarations to async-event.h.
5023 * event-loop.c: Don't include ser-event.h or top.h. Move some
5024 code to async-event.c.
5025 * async-event.h: New file.
5026 * async-event.c: New file.
5027 * Makefile.in (COMMON_SFILES): Add async-event.c.
5028 (HFILES_NO_SRCDIR): Add async-event.h.
5029
c1cd3163
TT
50302020-04-13 Tom Tromey <tom@tromey.com>
5031
5032 * utils.c (flush_streams): New function.
5033 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5034
29f2bf4f
TT
50352020-04-13 Tom Tromey <tom@tromey.com>
5036
5037 * event-loop.c (handle_file_event): Use warning, not
5038 printf_unfiltered.
5039
98029d02
TT
50402020-04-13 Tom Tromey <tom@tromey.com>
5041
5042 * event-loop.c: Include <chrono>.
5043
06cc9596
TT
50442020-04-13 Tom Tromey <tom@tromey.com>
5045
5046 * gdb_select.h: Move to ../gdbsupport/.
5047 * event-loop.c: Update include path.
5048 * top.c: Update include path.
5049 * ser-base.c: Update include path.
5050 * ui-file.c: Update include path.
5051 * ser-tcp.c: Update include path.
5052 * guile/scm-ports.c: Update include path.
5053 * posix-hdep.c: Update include path.
5054 * ser-unix.c: Update include path.
5055 * gdb_usleep.c: Update include path.
5056 * mingw-hdep.c: Update include path.
5057 * inflow.c: Update include path.
5058 * infrun.c: Update include path.
5059 * event-top.c: Update include path.
5060
8ae8e197
TT
50612020-04-13 Tom Tromey <tom@tromey.com>
5062
5063 * configure: Rebuild.
5064 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5065
58cf28e8
TT
50662020-04-13 Tom Tromey <tom@tromey.com>
5067
5068 * event-loop.h (start_event_loop): Don't declare.
5069 * event-loop.c (start_event_loop): Move...
5070 * main.c (start_event_loop): ...here. Now static.
5071
b7f999ae
SDJ
50722020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5073
5074 * MAINTAINERS: Update my email address.
5075
1085dfd4
KR
50762020-04-12 Kamil Rytarowski <n54@gmx.com>
5077
5078 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5079 IP_ALL.
5080
49d1d1f5
KR
50812020-04-12 Kamil Rytarowski <n54@gmx.com>
5082
5083 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5084 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5085
b4848d2a
KR
50862020-04-12 Kamil Rytarowski <n54@gmx.com>
5087
5088 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5089 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5090
51c133d5
KR
50912020-04-12 Kamil Rytarowski <n54@gmx.com>
5092
5093 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5094
54b8cbd0
KR
50952020-04-11 Kamil Rytarowski <n54@gmx.com>
5096
5097 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5098 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5099 (nbsd_nat_target::info_proc): New functions.
5100 * nbsd-nat.c (kinfo_get_vmmap): New function.
5101 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5102 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5103 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5104 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5105 functions.
5106 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5107 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5108 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5109 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5110 (KINFO_VME_FLAG_GROWS_DOWN): New.
5111
cf83625d
AS
51122020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5113
5114 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5115 bit shift.
5116
0c4311ab
TT
51172020-04-10 Tom Tromey <tromey@adacore.com>
5118
5119 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5120
3e65b3e9
TT
51212020-04-10 Tom Tromey <tromey@adacore.com>
5122
5123 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5124 separate debug files.
5125
13302e95
HD
51262020-04-10 Hannes Domani <ssbssa@yahoo.de>
5127
5128 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5129 Move to...
5130 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5131 ... here.
5132 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5133 Check for STATUS_WX86_BREAKPOINT.
5134 (windows_nat_target::wait): Same.
5135
bdfc1e8a
TV
51362020-04-10 Tom de Vries <tdevries@suse.de>
5137
5138 PR cli/25808
5139 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5140
f4460aec
SM
51412020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5142
5143 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5144 (Write After Approval): Remove Tom de Vries.
5145
a25198bb
BE
51462020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5147
5148 revert partially:
5149 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5150
aac66a4c
SM
5151 * buildsym.c (record_line): Fix undefined behavior and preserve
5152 lines at eof.
a25198bb 5153
206c98a6
KR
51542020-04-09 Kamil Rytarowski <n54@gmx.com>
5155
5156 * auxv.h (svr4_auxv_parse): New.
5157 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5158 and generic_auxv_parse.
5159 (svr4_auxv_parse): Add.
5160 * obsd-tdep.c: Include "auxv.h".
5161 (obsd_auxv_parse): Remove.
5162 (obsd_init_abi): Remove comment.
5163 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5164 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5165 * nbsd-tdep.c: Include "auxv.h".
5166 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5167
71fbdbaf
TT
51682020-04-08 Tom Tromey <tromey@adacore.com>
5169
5170 * nat/windows-nat.h (last_wait_event): Don't declare.
5171 (wait_for_debug_event): Update comment.
5172 * nat/windows-nat.c (last_wait_event): Now static.
5173
2c1d95e8
TT
51742020-04-08 Tom Tromey <tromey@adacore.com>
5175
5176 * windows-nat.c (wait_for_debug_event): Move to
5177 nat/windows-nat.c.
5178 * nat/windows-nat.h (wait_for_debug_event): Declare.
5179 * nat/windows-nat.c (wait_for_debug_event): Move from
5180 windows-nat.c. No longer static.
5181
d2977bc4
TT
51822020-04-08 Tom Tromey <tromey@adacore.com>
5183
5184 * windows-nat.c (get_windows_debug_event): Use
5185 fetch_pending_stop.
5186 * nat/windows-nat.h (fetch_pending_stop): Declare.
5187 * nat/windows-nat.c (fetch_pending_stop): New function.
5188
e758e19c
TT
51892020-04-08 Tom Tromey <tromey@adacore.com>
5190
5191 * windows-nat.c (windows_continue): Use matching_pending_stop and
5192 continue_last_debug_event.
5193 * nat/windows-nat.h (matching_pending_stop)
5194 (continue_last_debug_event): Declare.
5195 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5196 (matching_pending_stop, continue_last_debug_event): New
5197 functions.
5198
8d30e395
TT
51992020-04-08 Tom Tromey <tromey@adacore.com>
5200
5201 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5202 (handle_exception_result): Move to nat/windows-nat.h.
5203 (DEBUG_EXCEPTION_SIMPLE): Remove.
5204 (windows_nat::handle_ms_vc_exception): New function.
5205 (handle_exception): Move to nat/windows-nat.c.
5206 (get_windows_debug_event): Update.
5207 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5208 nat/windows-nat.c.
5209 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5210 (handle_exception_result): Move from windows-nat.c.
5211 (handle_exception): Declare.
5212 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5213 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5214 windows-nat.c.
5215
29de418d
TT
52162020-04-08 Tom Tromey <tromey@adacore.com>
5217
5218 * windows-nat.c (exception_count, event_count): Remove.
5219 (handle_exception, get_windows_debug_event)
5220 (do_initial_windows_stuff): Update.
5221
a816ba18
TT
52222020-04-08 Tom Tromey <tromey@adacore.com>
5223
5224 * windows-nat.c (windows_nat::handle_load_dll)
5225 (windows_nat::handle_unload_dll): Rename. No longer static.
5226 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5227 Declare.
5228
a00caa12
TT
52292020-04-08 Tom Tromey <tromey@adacore.com>
5230
5231 * complaints.h (stop_whining): Declare at top-level.
5232 (complaint): Don't declare stop_whining.
5233
d41b524f
TT
52342020-04-08 Tom Tromey <tromey@adacore.com>
5235
5236 * windows-nat.c (windows_nat::handle_output_debug_string):
5237 Rename. No longer static.
5238 * nat/windows-nat.h (handle_output_debug_string): Declare.
5239
3c76026d
TT
52402020-04-08 Tom Tromey <tromey@adacore.com>
5241
5242 * windows-nat.c (current_process_handle, current_process_id)
5243 (main_thread_id, last_sig, current_event, last_wait_event)
5244 (current_windows_thread, desired_stop_thread_id, pending_stops)
5245 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5246 (display_selectors, fake_create_process)
5247 (get_windows_debug_event): Update.
5248 * nat/windows-nat.h (current_process_handle, current_process_id)
5249 (main_thread_id, last_sig, current_event, last_wait_event)
5250 (current_windows_thread, desired_stop_thread_id, pending_stops)
5251 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5252 * nat/windows-nat.c (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 (siginfo_er): New globals. Move from windows-nat.c.
5256
9d8679cc
TT
52572020-04-08 Tom Tromey <tromey@adacore.com>
5258
5259 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5260 (handle_load_dll): Update.
5261 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5262
28688adf
TT
52632020-04-08 Tom Tromey <tromey@adacore.com>
5264
5265 * windows-nat.c (enum thread_disposition_type): Move to
5266 nat/windows-nat.h.
5267 (windows_nat::thread_rec): Rename from thread_rec. No longer
5268 static.
5269 (windows_add_thread, windows_nat_target::fetch_registers)
5270 (windows_nat_target::store_registers, handle_exception)
5271 (windows_nat_target::resume, get_windows_debug_event)
5272 (windows_nat_target::get_tib_address)
5273 (windows_nat_target::thread_name)
5274 (windows_nat_target::thread_alive): Update.
5275 * nat/windows-nat.h (enum thread_disposition_type): Move from
5276 windows-nat.c.
5277 (thread_rec): Declare.
5278
4834dad0
TT
52792020-04-08 Tom Tromey <tromey@adacore.com>
5280
5281 * windows-nat.c: Add "using namespace".
5282 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5283 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5284
65bafd5b
TT
52852020-04-08 Tom Tromey <tromey@adacore.com>
5286
5287 * nat/windows-nat.h (struct windows_thread_info): Declare
5288 destructor.
5289 * nat/windows-nat.c (~windows_thread_info): New.
5290
0a4afda3
TT
52912020-04-08 Tom Tromey <tromey@adacore.com>
5292
5293 PR gdb/22992
5294 * windows-nat.c (current_event): Update comment.
5295 (last_wait_event, desired_stop_thread_id): New globals.
5296 (struct pending_stop): New.
5297 (pending_stops): New global.
5298 (windows_nat_target) <stopped_by_sw_breakpoint>
5299 <supports_stopped_by_sw_breakpoint>: New methods.
5300 (windows_fetch_one_register): Add assertions. Adjust PC.
5301 (windows_continue): Handle pending stops. Suspend other threads
5302 when stepping. Use last_wait_event
5303 (wait_for_debug_event): New function.
5304 (get_windows_debug_event): Use wait_for_debug_event. Handle
5305 pending stops. Queue spurious stops.
5306 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5307 (windows_nat_target::kill): Use wait_for_debug_event.
5308 * nat/windows-nat.h (struct windows_thread_info)
5309 <stopped_at_software_breakpoint>: New field.
5310 * nat/windows-nat.c (windows_thread_info::resume): Clear
5311 stopped_at_software_breakpoint.
5312
8e61ebec
TT
53132020-04-08 Tom Tromey <tromey@adacore.com>
5314
5315 * windows-nat.c (enum thread_disposition_type): New.
5316 (thread_rec): Replace "get_context" parameter with "disposition";
5317 change type.
5318 (windows_add_thread, windows_nat_target::fetch_registers)
5319 (windows_nat_target::store_registers, handle_exception)
5320 (windows_nat_target::resume, get_windows_debug_event)
5321 (windows_nat_target::get_tib_address)
5322 (windows_nat_target::thread_name)
5323 (windows_nat_target::thread_alive): Update.
5324
98a03287
TT
53252020-04-08 Tom Tromey <tromey@adacore.com>
5326
5327 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5328 (windows_continue): Use windows_continue::resume.
5329 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5330 resume>: Declare new methods.
5331 * nat/windows-nat.c: New file.
5332 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5333
7c7411bc
TT
53342020-04-08 Tom Tromey <tromey@adacore.com>
5335
5336 * windows-nat.c (windows_add_thread, windows_delete_thread)
5337 (windows_nat_target::fetch_registers)
5338 (windows_nat_target::store_registers, fake_create_process)
5339 (windows_nat_target::resume, windows_nat_target::resume)
5340 (get_windows_debug_event, windows_nat_target::wait)
5341 (windows_nat_target::pid_to_str)
5342 (windows_nat_target::get_tib_address)
5343 (windows_nat_target::get_ada_task_ptid)
5344 (windows_nat_target::thread_name)
5345 (windows_nat_target::thread_alive): Use lwp, not tid.
5346
2950fdf7
TT
53472020-04-08 Tom Tromey <tromey@adacore.com>
5348
5349 * windows-nat.c (handle_exception)
5350 (windows_nat_target::thread_name): Update.
5351 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5352 <name>: Now unique_xmalloc_ptr.
5353
62fe396b
TT
53542020-04-08 Tom Tromey <tromey@adacore.com>
5355
5356 * windows-nat.c (thread_rec)
5357 (windows_nat_target::fetch_registers): Update.
5358 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5359 Update comment.
5360 <debug_registers_changed, reload_context>: Now bool.
5361
e9534bd2
TT
53622020-04-08 Tom Tromey <tromey@adacore.com>
5363
5364 * windows-nat.c (windows_add_thread): Use new.
5365 (windows_init_thread_list, windows_delete_thread): Use delete.
5366 (get_windows_debug_event): Update.
5367 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5368 destructor, and initializers.
5369
ae1f8880
TT
53702020-04-08 Tom Tromey <tromey@adacore.com>
5371
5372 * windows-nat.c (struct windows_thread_info): Remove.
5373 * nat/windows-nat.h: New file.
5374
55a1e039
TT
53752020-04-08 Tom Tromey <tromey@adacore.com>
5376
5377 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5378 (thread_rec, windows_add_thread, windows_delete_thread)
5379 (windows_continue): Update.
5380
93366324
TT
53812020-04-08 Tom Tromey <tromey@adacore.com>
5382
5383 * windows-nat.c (struct windows_thread_info): Remove typedef.
5384 (thread_head): Remove.
5385 (thread_list): New global.
5386 (thread_rec, windows_add_thread, windows_init_thread_list)
5387 (windows_delete_thread, windows_continue): Update.
5388
0f2265e2
SM
53892020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5390
5391 * windows-tdep.h (windows_init_abi): Add comment.
5392 (cygwin_init_abi): New declaration.
5393 * windows-tdep.c: Split signal enumeration in two, one for
5394 Windows and one for Cygwin.
5395 (windows_gdb_signal_to_target): Only deal with signal of the
5396 Windows OS ABI.
5397 (cygwin_gdb_signal_to_target): New function.
5398 (windows_init_abi): Rename to windows_init_abi_common, don't set
5399 gdb_signal_to_target gdbarch method. Add new new function with
5400 this name.
5401 (cygwin_init_abi): New function.
5402 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5403 comment. Don't call windows_init_abi.
5404 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5405 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5406 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5407 i386_windows_init_abi_common, don't call windows_init_abi. Add
5408 a new function of this name.
5409 (i386_cygwin_init_abi): New function.
5410 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5411 OS ABI Cygwin.
5412
3810f182
SM
54132020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5414
5415 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5416 parameter.c.
5417 (dwarf2_read_gdb_index): Update.
5418
063f8e80
KR
54192020-04-07 Kamil Rytarowski <n54@gmx.com>
5420
5421 * nbsd-tdep.c: Include "objfiles.h".
5422 (nbsd_skip_solib_resolver): New.
5423 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5424
85a9510c 54252020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5426
5427 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5428 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5429 with DW_LLE_base_addressx are being emitted in DWARFv5.
5430 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5431 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5432 unsigned integer.
5433
9fc3eaae 54342020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5435
5436 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5437 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5438 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5439 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5440 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5441 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5442 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5443
5444
41144253 54452020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5446
5447 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5448 (read_loclist_index): New function definition.
5449 (lookup_loclist_base): New function definition.
5450 (read_loclist_header): New function definition.
5451 (dwarf2_cu): Add loclist_base and loclist_header field.
5452 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5453 (read_full_die_1): Read the value of DW_AT_loclists_base.
5454 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5455 (read_attribute_value): Handle DW_FORM_loclistx.
5456 (skip_one_die): Handle DW_FORM_loclistx.
5457 (loclist_header): New structure declaration.
5458 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5459
9f4e76a4
SM
54602020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5461
5462 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5463 constructor. Remove `addr` parameter from other constructor and
5464 add `per_cu` parameter.
5465 * dwarf2/read.c (create_partial_symtab): Update.
5466
25c11aca
TV
54672020-04-07 Tom de Vries <tdevries@suse.de>
5468
5469 PR symtab/25796
5470 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5471 (partial_die_info::fixup): Inherit has_const_value.
5472
5707e24b
TV
54732020-04-07 Tom de Vries <tdevries@suse.de>
5474
5475 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5476 symbols without address.
5477
05f00e22
KR
54782020-04-06 Kamil Rytarowski <n54@gmx.com>
5479
5480 * nbsd-nat.h (struct thread_info): Add forward declaration.
5481 (nbsd_nat_target::thread_alive): Add.
5482 (nbsd_nat_target::thread_name): Likewise.
5483 (nbsd_nat_target::update_thread_list): Likewise.
5484 (update_thread_list::post_attach): Likewise.
5485 (post_attach::pid_to_str): Likewise.
5486 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5487 (nbsd_thread_lister): Add.
5488 (nbsd_nat_target::thread_alive): Likewise.
5489 (nbsd_nat_target::thread_name): Likewise.
5490 (nbsd_add_threads): Likewise.
5491 (update_thread_list::post_attach): Likewise.
5492 (nbsd_nat_target::update_thread_list): Likewise.
5493 (post_attach::pid_to_str): Likewise.
5494
6ee448cc
TT
54952020-04-06 Tom Tromey <tromey@adacore.com>
5496
5497 * ada-valprint.c (print_variant_part): Extract the variant field.
5498 (print_field_values): Use the field as the outer value when
5499 recursing.
5500
dea34e8c
TT
55012020-04-06 Tom Tromey <tromey@adacore.com>
5502
5503 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5504 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5505 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5506 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5507 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5508
93689ce9
TT
55092020-04-06 Tom Tromey <tromey@adacore.com>
5510
5511 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5512 TYPE_CODE_ERROR.
5513
79743962
KR
55142020-04-06 Kamil Rytarowski <n54@gmx.com>
5515
5516 * nbsd-tdep.c: Include "gdbarch.h".
5517 Define enum with NetBSD signal numbers.
5518 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5519 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5520 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5521 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5522 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5523 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5524 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5525 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5526 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5527 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5528 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5529 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5530
9e7c9a03
HD
55312020-04-03 Hannes Domani <ssbssa@yahoo.de>
5532
5533 PR gdb/25325
5534 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5535
d9e49b61
TT
55362020-04-03 Tom Tromey <tromey@adacore.com>
5537
5538 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5539 Read constant block.
5540
e0fc5c3f
SM
55412020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5542
5543 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5544 (gdb_bfd_get_full_section_contents): New declaration.
5545 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5546 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5547 gdb_bfd_get_full_section_contents.
5548
e2ff18a0
SM
55492020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5550
5551 * exec.c (build_section_table): Replace internal_error with
5552 gdb_assert.
5553 (section_table_xfer_memory_partial): Likewise.
5554 * mdebugread.c (parse_partial_symbols): Likewise.
5555 * psymtab.c (lookup_partial_symbol): Likewise.
5556 * utils.c (wrap_here): Likewise.
5557
0830d301
TT
55582020-04-02 Tom Tromey <tromey@adacore.com>
5559
5560 * f-lang.c (build_fortran_types): Use arch_type to initialize
5561 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5562
e7da7f8f
TT
55632020-04-02 Tom Tromey <tromey@adacore.com>
5564
5565 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5566 of attributes.
5567
c90d28ac
AB
55682020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5569 Bernd Edlinger <bernd.edlinger@hotmail.de>
5570 Tom Tromey <tromey@adacore.com>
5571
5572 * buildsym.c (buildsym_compunit::record_line): Remove
5573 deduplication code.
5574
1aa98955
TV
55752020-04-02 Tom de Vries <tdevries@suse.de>
5576
5577 PR ada/24671
5578 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5579
d3214198
TV
55802020-04-02 Tom de Vries <tdevries@suse.de>
5581
5582 * dwarf2/read.c (dwarf2_gdb_index_functions,
5583 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5584 NULL.
5585 * psymtab.c (psym_lookup_global_symbol_language): New function.
5586 (psym_functions): Init psym_lookup_global_symbol_language with
5587 psym_lookup_global_symbol_language.
5588 * symfile-debug.c (debug_sym_quick_functions): Init
5589 lookup_global_symbol_language with NULL.
5590 * symfile.c (set_initial_language): Remove fixme comment.
5591 * symfile.h (struct quick_symbol_functions): Add
5592 lookup_global_symbol_language.
5593 * symtab.c (find_quick_global_symbol_language): New function.
5594 (find_main_name): Use find_quick_global_symbol_language.
5595
2836752f
SM
55962020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5597
5598 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5599
64dc2d4b
BE
56002020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5601
5602 * buildsym.c (record_line): Fix undefined behavior and preserve
5603 lines at eof.
5604
bbe3dc41
BE
56052020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5606
5607 * buildsym.c (record_line): Fix the resizing condition.
5608
6b4a335b
TT
56092020-04-01 Tom Tromey <tom@tromey.com>
5610
5611 * value.h (value_literal_complex): Add comment.
5612 * valops.c (value_literal_complex): Refer to value.h.
5613
3638a098
TT
56142020-04-01 Tom Tromey <tom@tromey.com>
5615
5616 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5617 (scalar_type): New rule, from typebase.
5618 (typebase): Use scalar_type. Recognize complex types.
5619 (field_name): Handle FLOAT_KEYWORD.
5620 (ident_tokens): Add _Complex and __complex__.
5621
c34e8714
TT
56222020-04-01 Tom Tromey <tom@tromey.com>
5623
5624 PR exp/25299:
5625 * valarith.c (promotion_type, complex_binop): New functions.
5626 (scalar_binop): Handle complex numbers. Use promotion_type.
5627 (value_pos, value_neg, value_complement): Handle complex numbers.
5628
fa649bb7
TT
56292020-04-01 Tom Tromey <tom@tromey.com>
5630
5631 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5632 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5633 (parse_number): Handle complex numbers.
5634
981c08ce
TT
56352020-04-01 Tom Tromey <tom@tromey.com>
5636
5637 * c-valprint.c (c_decorations): Change complex suffix to "i".
5638
4c99290d
TT
56392020-04-01 Tom Tromey <tom@tromey.com>
5640
5641 * valprint.c (generic_value_print_complex): Use accessors.
5642 * value.h (value_real_part, value_imaginary_part): Declare.
5643 * valops.c (value_real_part, value_imaginary_part): New
5644 functions.
5645 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5646
5b930b45
TT
56472020-04-01 Tom Tromey <tom@tromey.com>
5648
5649 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5650 (read_range_type): Update.
5651 * mdebugread.c (basic_type): Update.
5652 * go-lang.c (build_go_types): Use init_complex_type.
5653 * gdbtypes.h (struct main_type) <complex_type>: New member.
5654 (init_complex_type): Update.
5655 (arch_complex_type): Don't declare.
5656 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5657 Make name if none given. Use alloc_type_copy. Look for cached
5658 complex type.
5659 (arch_complex_type): Remove.
5660 (gdbtypes_post_init): Use init_complex_type.
5661 * f-lang.c (build_fortran_types): Use init_complex_type.
5662 * dwarf2/read.c (read_base_type): Update.
5663 * d-lang.c (build_d_types): Use init_complex_type.
5664 * ctfread.c (read_base_type): Update.
5665
53cccef1
TBA
56662020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5667
5668 * infrun.c (stop_all_threads): Update assertion, plus when
5669 stopping threads, take into account that we might be trying
5670 to stop an all-stop target.
5671 (stop_waiting): Call 'stop_all_threads' if there exists a
5672 non-stop target.
5673
a0714d30
TBA
56742020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5675
5676 * target.h (exists_non_stop_target): New function declaration.
5677 * target.c (exists_non_stop_target): New function.
5678
60e22c1e
HD
56792020-04-01 Hannes Domani <ssbssa@yahoo.de>
5680
5681 PR gdb/24789
5682 * eval.c (is_integral_or_integral_reference): New function.
5683 (evaluate_subexp_standard): Allow integer references in
5684 pointer arithmetic.
5685
e139a727
TBA
56862020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5687
5688 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5689 check for no ptid in the stop reply when the target is non-stop.
5690
e0802d59
TT
56912020-04-01 Tom Tromey <tromey@adacore.com>
5692
5693 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5694 "name" parameter to rvalue reference. Initialize m_name_holder.
5695 <lookup_name_info>: New overloads.
5696 <name>: Return gdb::string_view.
5697 <c_str>: New method.
5698 <make_ignore_params>: Update.
5699 <search_name_hash>: Update.
5700 <language_lookup_name>: Return const char *.
5701 <m_name>: Change type.
5702 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5703 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5704 (lookup_name_info::match_any): Update.
5705 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5706 Update.
5707 * minsyms.c (linkage_name_str): Update.
5708 * language.c (default_symbol_name_matcher): Update.
5709 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5710 Update.
5711 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5712 (ada_lookup_name_info::ada_lookup_name_info): Update.
5713 (literal_symbol_name_matcher): Update.
5714
8c072cb6
TT
57152020-04-01 Tom Tromey <tromey@adacore.com>
5716
5717 * psymtab.c (psymtab_search_name): Remove function.
5718 (psym_lookup_symbol): Create search name and lookup name here.
5719 (lookup_partial_symbol): Remove "name" parameter; add
5720 lookup_name.
5721 (psym_expand_symtabs_for_function): Update.
5722
6f29a534
TT
57232020-03-31 Joel Jones <joelkevinjones@gmail.com>
5724
5725 PR tui/25597:
5726 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5727
af62665e
TT
57282020-03-31 Tom Tromey <tromey@adacore.com>
5729
5730 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5731 memcpy.
5732
d1a89da5
NC
57332020-03-30 Nelson Chu <nelson.chu@sifive.com>
5734
5735 * features/riscv/32bit-csr.xml: Regenerated.
5736 * features/riscv/64bit-csr.xml: Regenerated.
5737
d8af9068
TT
57382020-03-30 Tom Tromey <tromey@adacore.com>
5739
5740 * ada-valprint.c (print_variant_part): Update.
5741 * ada-lang.h (ada_which_variant_applies): Update.
5742 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5743 outer_valaddr parameters; replace with "outer" value parameter.
5744 (to_fixed_variant_branch_type): Update.
5745
227c0bf4
PFC
57462020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5747
5748 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5749 <list>. Remove inclusion of observable.h.
5750 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5751 (struct arch_lwp_info): New struct.
5752 (class ppc_linux_dreg_interface): New class.
5753 (struct ppc_linux_process_info): New struct.
5754 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5755 <low_new_clone, low_forget_process, low_prepare_to_resume>
5756 <copy_thread_dreg_state, mark_thread_stale>
5757 <mark_debug_registers_changed, register_hw_breakpoint>
5758 <clear_hw_breakpoint, register_wp, clear_wp>
5759 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5760 <num_memory_accesses, get_trigger_type>
5761 <create_watchpoint_request, hwdebug_point_cmp>
5762 <init_arch_lwp_info, get_arch_lwp_info>
5763 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5764 methods.
5765 <struct ptid_hash>: New inner struct.
5766 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5767 members.
5768 (saved_dabr_value, hwdebug_info, max_slots_number)
5769 (struct hw_break_tuple, struct thread_points, ppc_threads)
5770 (have_ptrace_hwdebug_interface)
5771 (hwdebug_find_thread_points_by_tid)
5772 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5773 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5774 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5775 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5776 use m_dreg_interface.
5777 (hwdebug_point_cmp): Change to...
5778 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5779 reference arguments instead of pointers.
5780 (ppc_linux_nat_target::ranged_break_num_registers): Use
5781 m_dreg_interface.
5782 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5783 m_dreg_interface. Call register_hw_breakpoint.
5784 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5785 m_dreg_interface. Call clear_hw_breakpoint.
5786 (get_trigger_type): Change to...
5787 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5788 comment.
5789 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5790 use m_dreg_interface. Call register_hw_breakpoint.
5791 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5792 use m_dreg_interface. Call clear_hw_breakpoint.
5793 (can_use_watchpoint_cond_accel): Change to...
5794 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5795 method. Update comment, use m_dreg_interface and
5796 m_process_info.
5797 (calculate_dvc): Change to...
5798 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5799 m_dreg_interface.
5800 (num_memory_accesses): Change to...
5801 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5802 (check_condition): Change to...
5803 (ppc_linux_nat_target::check_condition): ...this method.
5804 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5805 comment, use m_dreg_interface.
5806 (create_watchpoint_request): Change to...
5807 (ppc_linux_nat_target::create_watchpoint_request): ...this
5808 method. Use m_dreg_interface.
5809 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5810 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5811 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5812 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5813 (ppc_linux_nat_target::low_forget_process)
5814 (ppc_linux_nat_target::low_new_fork)
5815 (ppc_linux_nat_target::low_new_clone)
5816 (ppc_linux_nat_target::low_delete_thread)
5817 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5818 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5819 only call mark_thread_stale.
5820 (ppc_linux_thread_exit): Remove.
5821 (ppc_linux_nat_target::stopped_data_address): Change to...
5822 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5823 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5824 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5825 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5826 comment. Call low_stopped_data_address.
5827 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5828 m_dreg_interface.
5829 (ppc_linux_nat_target::masked_watch_num_registers): Use
5830 m_dreg_interface.
5831 (ppc_linux_nat_target::copy_thread_dreg_state)
5832 (ppc_linux_nat_target::mark_thread_stale)
5833 (ppc_linux_nat_target::mark_debug_registers_changed)
5834 (ppc_linux_nat_target::register_hw_breakpoint)
5835 (ppc_linux_nat_target::clear_hw_breakpoint)
5836 (ppc_linux_nat_target::register_wp)
5837 (ppc_linux_nat_target::clear_wp)
5838 (ppc_linux_nat_target::init_arch_lwp_info)
5839 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5840 (_initialize_ppc_linux_nat): Remove observer callback.
5841
4db10d8f
PFC
58422020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5843
5844 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5845 (ppc_linux_nat_target::auxv_parse)
5846 (ppc_linux_nat_target::read_description)
5847 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5848 Move up.
5849
1310c1b0
PFC
58502020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5851
5852 * linux-nat.h (low_new_clone): New method.
5853 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5854
69b037c3
SM
58552020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5856
5857 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5858 (dbx_expand_psymtab): ... this.
5859 (start_psymtab): Update.
5860 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5861 (mdebug_expand_psymtab): ... this.
5862 (parse_partial_symbols): Update.
5863 (new_psymtab): Update.
5864 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5865 (xcoff_expand_psymtab): ... this.
5866 (xcoff_start_psymtab): Update.
5867
48993951
SM
58682020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5869
5870 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5871 <expand_dependencies>: ... this.
5872 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5873 (partial_symtab::expand_dependencies): ... this.
5874 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5875 Update.
5876 (dwarf2_psymtab::expand_psymtab): Update.
5877 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5878 * mdebugread.c (psymtab_to_symtab_1): Update.
5879 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5880
3ad83046
SM
58812020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5882
5883 * psympriv.h (discard_psymtab): Remove.
5884 * dbxread.c (dbx_end_psymtab): Update.
5885 * xcoffread.c (xcoff_end_psymtab): Update.
5886
4d1b9ab6
TT
58872020-03-28 Tom Tromey <tom@tromey.com>
5888
5889 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5890 comment.
5891
f1749218
TT
58922020-03-28 Tom Tromey <tom@tromey.com>
5893
5894 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5895
ebea7626
HD
58962020-03-27 Hannes Domani <ssbssa@yahoo.de>
5897
5898 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5899
a879b4d5
JB
59002020-03-26 John Baldwin <jhb@FreeBSD.org>
5901
5902 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5903
0826b30a
TT
59042020-03-26 Tom Tromey <tom@tromey.com>
5905
5906 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5907 (mark_common_block_symbol_computed, read_tag_string_type)
5908 (attr_to_dynamic_prop, read_subrange_type): Update.
5909 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5910 to be methods on struct attribute.
5911 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5912 (read_call_site_scope, partial_die_info::read)
5913 (partial_die_info::read, lookup_die_type, follow_die_ref):
5914 Update.
5915 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5916 from dwarf2_get_ref_die_offset.
5917 (attribute::constant_value): New method, from
5918 dwarf2_get_attr_constant_value.
5919 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5920 Declare method.
5921 <constant_value>: New method.
5922
2b2558bf
TT
59232020-03-26 Tom Tromey <tom@tromey.com>
5924
5925 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5926 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5927 (dwarf_type_encoding_name): Move to stringify.c.
5928 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5929 * dwarf2/stringify.c: New file.
5930 * dwarf2/stringify.h: New file.
5931
eeb64781
TT
59322020-03-26 Tom Tromey <tom@tromey.com>
5933
5934 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5935 Rewrite.
5936
a39fdb41
TT
59372020-03-26 Tom Tromey <tom@tromey.com>
5938
5939 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5940 methods.
5941 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5942 (lookup_ranges_base): Likewise.
5943 (read_cutu_die_from_dwo, read_full_die_1): Update.
5944
436c571c
TT
59452020-03-26 Tom Tromey <tom@tromey.com>
5946
5947 * dwarf2/read.c (read_import_statement, read_file_scope)
5948 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5949 (read_lexical_block_scope, read_call_site_scope)
5950 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5951 (handle_struct_member_die, process_structure_scope)
5952 (update_enumeration_type_from_children)
5953 (process_enumeration_scope, read_array_type, read_common_block)
5954 (read_namespace, read_module, read_subroutine_type): Update.
5955 (sibling_die): Remove.
5956
052c8bb8
TT
59572020-03-26 Tom Tromey <tom@tromey.com>
5958
5959 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5960 (build_type_psymtabs_reader, read_structure_type)
5961 (read_enumeration_type, read_full_die_1): Update.
5962 (dwarf2_attr_no_follow): Move to die.h.
5963 * dwarf2/die.h (struct die_info) <attr>: New method.
5964
2b24b6e4
TT
59652020-03-26 Tom Tromey <tom@tromey.com>
5966
5967 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5968 <base_address>: Now an optional.
5969 (dwarf2_find_base_address, dwarf2_rnglists_process)
5970 (dwarf2_ranges_process, fill_in_loclist_baton)
5971 (dwarf2_symbol_mark_computed): Update.
5972
c2d50fd0
TT
59732020-03-26 Tom Tromey <tom@tromey.com>
5974
5975 * dwarf2/read.c (struct die_info): Move to die.h.
5976 * dwarf2/die.h: New file.
5977
0df7ad3a
TT
59782020-03-26 Tom Tromey <tom@tromey.com>
5979
5980 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5981 * dwarf2/read.c
5982 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5983 Move to line-header.c.
5984 (read_checked_initial_length_and_offset, read_formatted_entries):
5985 Likewise.
5986 (dwarf_decode_line_header): Split into two.
5987 * dwarf2/line-header.c
5988 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5989 Move from read.c.
5990 (read_checked_initial_length_and_offset, read_formatted_entries):
5991 Likewise.
5992 (dwarf_decode_line_header): New function, split from read.c.
5993
86c0bb4c
TT
59942020-03-26 Tom Tromey <tom@tromey.com>
5995
5996 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5997 Declare method.
5998 * dwarf2/read.c (read_attribute_value): Update.
5999 (dwarf2_per_objfile::read_line_string): Rename from
6000 read_indirect_line_string.
6001 (read_formatted_entries): Update.
6002
2ef46c2f
TT
60032020-03-26 Tom Tromey <tom@tromey.com>
6004
6005 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6006 variable.
6007
4f9c1eda
TT
60082020-03-26 Tom Tromey <tom@tromey.com>
6009
6010 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6011 const.
6012 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6013 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6014 parameter const.
6015
5a0e026f
TT
60162020-03-26 Tom Tromey <tom@tromey.com>
6017
6018 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6019 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6020 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6021 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6022
8844c11b
TT
60232020-03-26 Tom Tromey <tom@tromey.com>
6024
6025 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6026 file_names_size, file_full_name, file_file_name>: Use const.
6027 <file_name_at, file_names>: Add const overload.
6028 * dwarf2/line-header.c (line_header::file_file_name)
6029 (line_header::file_full_name): Update.
6030
c90ec28a
TT
60312020-03-26 Tom Tromey <tom@tromey.com>
6032
6033 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6034 (macro_start_file, consume_improper_spaces)
6035 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6036 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6037 (dwarf_decode_macros): Move to macro.c.
6038 * dwarf2/macro.c: New file.
6039 * dwarf2/macro.h: New file.
6040 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6041
4f44ae6c
TT
60422020-03-26 Tom Tromey <tom@tromey.com>
6043
6044 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6045 method.
6046 * dwarf2/section.c: New method. From
6047 read_indirect_string_at_offset_from.
6048 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6049 (read_indirect_string_at_offset_from): Move to section.c.
6050 (read_indirect_string_at_offset): Rewrite.
6051 (read_indirect_line_string_at_offset): Remove.
6052 (read_indirect_string, read_indirect_line_string)
6053 (dwarf_decode_macro_bytes): Update.
6054
a0194fa8
TT
60552020-03-26 Tom Tromey <tom@tromey.com>
6056
6057 * dwarf2/section.h (struct dwarf2_section_info)
6058 <overload_complaint>: Declare.
6059 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6060 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6061 Rename from dwarf2_section_buffer_overflow_complaint.
6062 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6063 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6064
3d27bbdb
TT
60652020-03-26 Tom Tromey <tom@tromey.com>
6066
6067 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6068 Declare.
6069 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6070 Move from read.c.
6071 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6072 to section.c.
6073
9eac9650
TT
60742020-03-26 Tom Tromey <tom@tromey.com>
6075
6076 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6077
bf80d710
TT
60782020-03-26 Tom Tromey <tom@tromey.com>
6079
6080 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6081 "builder".
6082 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6083 parameter.
6084 (dwarf_decode_macros): Update.
6085
0314b390
TT
60862020-03-26 Tom Tromey <tom@tromey.com>
6087
6088 * dwarf2/read.c (read_attribute_value): Update.
6089 (read_indirect_string_from_dwz): Move to dwz.c; change into
6090 method.
6091 (dwarf_decode_macro_bytes): Update.
6092 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6093 * dwarf2/dwz.c: New file.
6094 * Makefile.in (COMMON_SFILES): Add dwz.c.
6095
9fda78b6
TT
60962020-03-26 Tom Tromey <tom@tromey.com>
6097
6098 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6099 * dwarf2/read.c: Add include.
6100 * dwarf2/index-write.c: Add include.
6101 * dwarf2/index-cache.c: Add include.
6102 * dwarf2/dwz.h: New file.
6103
33aa3c10
TT
61042020-03-25 Tom Tromey <tom@tromey.com>
6105
6106 * compile/compile-object-load.c (get_out_value_type): Mention
6107 correct symbol name in error message.
6108
d503b685
HD
61092020-03-25 Hannes Domani <ssbssa@yahoo.de>
6110
6111 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6112
7b1eff95
TV
61132020-03-25 Tom de Vries <tdevries@suse.de>
6114
6115 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6116 * symmisc.c (dump_symtab_1): Print user and includes fields.
6117 (maintenance_info_symtabs): Same.
6118
dd895392
AB
61192020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6120
6121 PR gdb/25534
6122 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6123 (riscv_regcache_cooked_write): New function.
6124 (riscv_push_dummy_call): Use new function.
6125 (riscv_return_value): Likewise.
6126
5ab2fbf1
SM
61272020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6128
6129 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6130 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6131 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6132 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6133 * infrun.c (follow_fork): Likewise.
6134 (follow_fork_inferior): Likewise.
6135 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6136 * linux-nat.h (class linux_nat_target): Likewise.
6137 * remote.c (class remote_target) <follow_fork>: Likewise.
6138 (remote_target::follow_fork): Likewise.
6139 * target-delegates.c: Re-generate.
6140 * target.c (default_follow_fork): Likewise.
6141 (target_follow_fork): Likewise.
6142 * target.h (struct target_ops) <follow_fork>: Likewise.
6143 (target_follow_fork): Likewise.
6144
a64fafb5
TV
61452020-03-24 Tom de Vries <tdevries@suse.de>
6146
6147 * psymtab.c (maintenance_info_psymtabs): Print user field.
6148
fe26d3a3
TT
61492020-03-20 Tom Tromey <tromey@adacore.com>
6150
6151 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6152 const.
6153 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6154 const.
6155
c884cc46
SM
61562020-03-20 Simon Marchi <simon.marchi@efficios.com>
6157
6158 * ptrace.m4: Don't check for ptrace declaration.
6159 * config.in: Re-generate.
6160 * configure: Re-generate.
6161 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6162 not defined.
6163
1ff700c2
KR
61642020-03-20 Kamil Rytarowski <n54@gmx.com>
6165
6166 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6167 `PTRACE_TYPE_RET'.
6168 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6169 * sparc-nat.c (gdb_ptrace): Likewise.
6170 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6171
f7d4f0b1
TT
61722020-03-20 Tom Tromey <tromey@adacore.com>
6173
6174 * c-exp.y (lex_one_token): Fix assert.
6175
f67210ff
TT
61762020-03-20 Tom Tromey <tromey@adacore.com>
6177
6178 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6179 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6180 strncpy call.
6181
1773be9e
TT
61822020-03-20 Tom Tromey <tromey@adacore.com>
6183
6184 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6185
70304be9
TT
61862020-03-20 Tom Tromey <tromey@adacore.com>
6187
6188 * ada-valprint.c (print_variant_part): Remove parameters; switch
6189 to value-based API.
6190 (print_field_values): Likewise.
6191 (ada_val_print_struct_union): Likewise.
6192 (ada_value_print_1): Update.
6193
9faa006d
KR
61942020-03-20 Kamil Rytarowski <n54@gmx.com>
6195
6196 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6197 nbsd_nat_target instead of inf_ptrace_target.
6198 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6199 nbsd_nat_target.
6200
4a90f062
KR
62012020-03-20 Kamil Rytarowski <n54@gmx.com>
6202
6203 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6204 it to the ptrace call.
6205 * (store_registers): Likewise.
6206
62072020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6208
6209 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6210 it to the ptrace call.
6211 * (store_registers): Likewise.
6212
2d07da27
LM
62132020-03-19 Luis Machado <luis.machado@linaro.org>
6214
6215 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6216 valid, fetch vg value from ptrace.
6217
f09db380
KR
62182020-03-19 Kamil Rytarowski <n54@gmx.com>
6219 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6220 * inf-ptrace.c: Likewise.
6221 * (gdb_ptrace): Add.
6222 * (inf_ptrace_target::resume): Update.
6223 * (inf_ptrace_target::xfer_partial): Likewise.
6224 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6225 * (inf_ptrace_peek_poke): Update.
6226
fcc7376e
KR
62272020-03-19 Kamil Rytarowski <n54@gmx.com>
6228
6229 * x86-bsd-nat.c (gdb_ptrace): New.
6230 * (x86bsd_dr_set): Add new argument `ptid'.
6231 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6232 x86bsd_dr_set_addr): Update.
6233
cada5fc9
AB
62342020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6235
6236 * remote.c (remote_target::process_stop_reply): Handle events for
6237 all threads differently.
6238
19a2740f
AB
62392020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6240
6241 * completer.c (completion_tracker::remove_completion): Define new
6242 function.
6243 * completer.h (completion_tracker::remove_completion): Declare new
6244 function.
6245 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6246 when adding a C++ function symbol.
6247
724fd9ba
AB
62482020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6249
6250 * completer.c (completion_tracker::completion_hash_entry): Define
6251 new class.
6252 (advance_to_filename_complete_word_point): Call
6253 recompute_lowest_common_denominator.
6254 (completion_tracker::completion_tracker): Call discard_completions
6255 to setup the hash table.
6256 (completion_tracker::discard_completions): Allow for being called
6257 from the constructor, pass new equal function, and element deleter
6258 when constructing the hash table. Initialise new class member
6259 variables.
6260 (completion_tracker::maybe_add_completion): Remove use of
6261 m_entries_vec, and store more information into m_entries_hash.
6262 (completion_tracker::recompute_lcd_visitor): New function, most
6263 content taken from...
6264 (completion_tracker::recompute_lowest_common_denominator):
6265 ...here, this now just visits each item in the hash calling the
6266 above visitor.
6267 (completion_tracker::build_completion_result): Remove use of
6268 m_entries_vec, call recompute_lowest_common_denominator.
6269 * completer.h (completion_tracker::have_completions): Remove use
6270 of m_entries_vec.
6271 (completion_tracker::completion_hash_entry): Declare new class.
6272 (completion_tracker::recompute_lowest_common_denominator): Change
6273 function signature.
6274 (completion_tracker::recompute_lcd_visitor): Declare new function.
6275 (completion_tracker::m_entries_vec): Delete.
6276 (completion_tracker::m_entries_hash): Initialize to NULL.
6277 (completion_tracker::m_lowest_common_denominator_valid): New
6278 member variable.
6279 (completion_tracker::m_lowest_common_denominator_max_length): New
6280 member variable.
6281
5a82b8a1
KR
62822020-03-17 Kamil Rytarowski <n54@gmx.com>
6283
6284 * regformats/regdef.h: Put reg in gdb namespace.
6285
fb516a69
KR
62862020-03-17 Kamil Rytarowski <n54@gmx.com>
6287
6288 * i386-bsd-nat.c (gdb_ptrace): New.
6289 * (i386bsd_fetch_inferior_registers,
6290 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6291 * (i386bsd_fetch_inferior_registers,
6292 i386bsd_store_inferior_registers) Use gdb_ptrace.
6293
1c0aa1fb
KR
62942020-03-17 Kamil Rytarowski <n54@gmx.com>
6295
6296 * amd64-bsd-nat.c (gdb_ptrace): New.
6297 * (amd64bsd_fetch_inferior_registers,
6298 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6299 * (amd64bsd_fetch_inferior_registers,
6300 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6301
5ccd2fb7
KR
63022020-03-17 Kamil Rytarowski <n54@gmx.com>
6303
6304 * user-regs.c (user_reg::read): Rename to...
6305 (user_reg::xread): ...this.
6306 * (append_user_reg): Rename argument `read' to `xread'.
6307 * (user_reg_add_builtin): Likewise.
6308 * (user_reg_add): Likewise.
6309 * (value_of_user_reg): Likewise.
6310
2108a63a
KR
63112020-03-17 Kamil Rytarowski <n54@gmx.com>
6312
6313 * sparc-nat.c (gdb_ptrace): New.
6314 * sparc-nat.c (sparc_fetch_inferior_registers)
6315 (sparc_store_inferior_registers) Remove obsolete comment.
6316 * sparc-nat.c (sparc_fetch_inferior_registers)
6317 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6318 * sparc-nat.c (sparc_fetch_inferior_registers)
6319 (sparc_store_inferior_registers) Use gdb_ptrace.
6320
a225c9a8
KR
63212020-03-17 Kamil Rytarowski <n54@gmx.com>
6322
6323 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6324 it to the ptrace call.
6325 * sh-nbsd-nat.c (store_registers): Likewise.
6326
98097623
KR
63272020-03-17 Kamil Rytarowski <n54@gmx.com>
6328
6329 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6330 nbsd_nat_target instead of inf_ptrace_target.
6331 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6332 nbsd_nat_target.
6333
9e38d619
KR
63342020-03-17 Kamil Rytarowski <n54@gmx.com>
6335
6336 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6337
a2ecbe9f
KR
63382020-03-17 Kamil Rytarowski <n54@gmx.com>
6339
6340 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6341 <sys/sysctl.h>.
6342 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6343
58990295
TV
63442020-03-17 Tom de Vries <tdevries@suse.de>
6345
6346 PR gdb/23710
6347 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6348 fields.
6349 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6350 fields.
6351 (process_imported_unit_die): Skip import of c++ CUs.
6352
771dd3a8
TT
63532020-03-16 Tom Tromey <tom@tromey.com>
6354
6355 * p-valprint.c (pascal_object_print_value): Initialize
6356 base_value.
6357
817a7585
AK
63582020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6359 Shahab Vahedi <shahab@synopsys.com>
6360
6361 * Makefile.in: Add arch/arc.o
6362 * configure.tgt: Likewise.
6363 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6364 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6365 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6366 * arc-tdep.h (arc_read_description): Add proto type.
6367 * arch/arc.c: New file.
6368 * arch/arc.h: Likewise.
6369 * features/Makefile: Replace old target descriptions with new.
6370 * features/arc-arcompact.c: Remove.
6371 * features/arc-arcompact.xml: Likewise.
6372 * features/arc-v2.c: Likewise
6373 * features/arc-v2.xml: Likewise
6374 * features/arc/aux-arcompact.xml: New file.
6375 * features/arc/aux-v2.xml: Likewise.
6376 * features/arc/core-arcompact.xml: Likewise.
6377 * features/arc/core-v2.xml: Likewise.
6378 * features/arc/aux-arcompact.c: Generate.
6379 * features/arc/aux-v2.c: Likewise.
6380 * features/arc/core-arcompact.c: Likewise.
6381 * features/arc/core-v2.c: Likewise.
6382 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6383
67430cd0
TT
63842020-03-16 Tom Tromey <tromey@adacore.com>
6385
6386 PR gdb/25663:
6387 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6388 putting value into bcache.
6389
30efb6c7
SM
63902020-03-16 Simon Marchi <simon.marchi@efficios.com>
6391
6392 PR gdb/21500
6393 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6394 to...
6395 (amd64_windows_init_abi_common): ... this. Don't set size of
6396 long type.
6397 (amd64_windows_init_abi): New function.
6398 (amd64_cygwin_init_abi): New function.
6399 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6400 the Cygwin OS ABI.
6401 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6402 comment.
6403
8db52437
SM
64042020-03-16 Simon Marchi <simon.marchi@efficios.com>
6405
6406 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6407 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6408 (pe_import_directory_entry): New struct type.
6409 (is_linked_with_cygwin_dll): New function.
6410 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6411 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6412 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6413
5982a56a
SM
64142020-03-16 Simon Marchi <simon.marchi@efficios.com>
6415
6416 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6417 i386_cygwin_core_osabi_sniffer.
6418
7a1998df
SM
64192020-03-16 Simon Marchi <simon.marchi@efficios.com>
6420
6421 * i386-cygwin-tdep.c: Rename to...
6422 * i386-windows-tdep.c: ... this.
6423 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6424 i386-windows-tdep.c.
6425 * configure.tgt: Likewise.
6426
053205cc
SM
64272020-03-16 Simon Marchi <simon.marchi@efficios.com>
6428
6429 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6430 * osabi.c (gdb_osabi_names): Add "Windows".
6431 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6432 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6433 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6434 i386_cygwin_osabi_sniffer.
6435 (_initialize_i386_cygwin_tdep): Register OS ABI
6436 GDB_OSABI_WINDOWS for i386.
6437 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6438 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6439 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6440 for x86-64.
6441 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6442 when the target matches '*-*-mingw*'.
6443
fe4b2ee6
SM
64442020-03-16 Simon Marchi <simon.marchi@efficios.com>
6445
6446 * defs.h (enum gdb_osabi): Move to...
6447 * osabi.h (enum gdb_osabi): ... here.
6448 * gdbarch.sh: Include osabi.h in gdbarch.h.
6449 * gdbarch.h: Re-generate.
6450
cb9b645d
SM
64512020-03-16 Simon Marchi <simon.marchi@efficios.com>
6452
6453 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6454 function.
6455 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6456
3293bbaf
TT
64572020-03-14 Tom Tromey <tom@tromey.com>
6458
6459 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6460 for C++.
6461 (c_type_print_modifier): Likewise. Add "language" parameter.
6462 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6463 (c_type_print_base_1): Update.
6464 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6465 constants.
6466 * type-stack.c (type_stack::insert): Handle tp_atomic and
6467 tp_restrict.
6468 (type_stack::follow_type_instance_flags): Likewise.
6469 (type_stack::follow_types): Likewise. Merge type-following code.
6470 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6471 (space_identifier, cv_with_space_id)
6472 (const_or_volatile_or_space_identifier_noopt)
6473 (const_or_volatile_or_space_identifier): Remove.
6474 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6475 rules.
6476 (ptr_operator, typebase): Update.
6477 (enum token_flag) <FLAG_C>: New constant.
6478 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6479 "_Atomic".
6480 (lex_one_token): Handle FLAG_C.
6481
154151a6
KR
64822020-03-14 Kamil Rytarowski <n54@gmx.com>
6483
6484 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6485 it to the ptrace call.
6486 * m68k-bsd-nat.c (store_registers): Likewise.
6487
bc107784
KR
64882020-03-14 Kamil Rytarowski <n54@gmx.com>
6489
6490 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6491 gdb_byte *.
6492 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6493 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6494 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6495
01a80117
KR
64962020-03-14 Kamil Rytarowski <n54@gmx.com>
6497
6498 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6499 nbsd_nat_target instead of inf_ptrace_target.
6500 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6501 nbsd_nat_target.
6502
f90280ca
KR
65032020-03-14 Kamil Rytarowski <n54@gmx.com>
6504
6505 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6506 register_t.
6507
6def66f1
KR
65082020-03-14 Kamil Rytarowski <n54@gmx.com>
6509
6510 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6511 it to the ptrace call.
6512 * alpha-bsd-nat.c (store_registers): Likewise.
6513
66eaca97
KR
65142020-03-14 Kamil Rytarowski <n54@gmx.com>
6515
6516 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6517 includes.
6518 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6519 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6520 fill_fpregset): Likewise.
6521
4fed520b
KR
65222020-03-14 Kamil Rytarowski <n54@gmx.com>
6523
6524 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6525 nbsd_nat_target instead of inf_ptrace_target.
6526 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6527 nbsd_nat_target.
6528
2190cf06
KR
65292020-03-14 Kamil Rytarowski <n54@gmx.com>
6530
6531 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6532 register_t.
6533
75c56d3d
KR
65342020-03-14 Kamil Rytarowski <n54@gmx.com>
6535
6536 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6537 it to the ptrace call.
6538 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6539 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6540 * arm-nbsd-nat.c (store_register): Likewise.
6541 * arm-nbsd-nat.c (store_regs): Likewise.
6542 * arm-nbsd-nat.c (store_fp_register): Likewise.
6543 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6544
6018d381
KR
65452020-03-14 Kamil Rytarowski <n54@gmx.com>
6546
6547 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6548 nbsd_nat_target instead of inf_ptrace_target.
6549 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6550 nbsd_nat_target.
6551
013f99f0
KR
65522020-03-14 Kamil Rytarowski <n54@gmx.com>
6553
6554 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6555 it to the ptrace call.
6556 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6557
12753073
KR
65582020-03-14 Kamil Rytarowski <n54@gmx.com>
6559
6227b330
KR
6560 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6561 it to the ptrace call.
6562 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6563
65642020-03-14 Kamil Rytarowski <n54@gmx.com>
6565
6566 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6567 gdb_byte *.
12753073
KR
6568 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6569
d5be5fa4
KR
65702020-03-14 Kamil Rytarowski <n54@gmx.com>
6571
6572 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6573 instead of inf_ptrace_target.
6574 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6575 nbsd_nat_target.
6576
8110f842
KR
65772020-03-14 Kamil Rytarowski <n54@gmx.com>
6578
6579 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6580 register_t.
6581
52feded7
KR
65822020-03-14 Kamil Rytarowski <n54@gmx.com>
6583
6584 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6585 register_t.
6586
25567eee
KR
65872020-03-14 Kamil Rytarowski <n54@gmx.com>
6588
6589 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6590 register_t.
6591
426a9c18
TT
65922020-03-13 Tom Tromey <tom@tromey.com>
6593
6594 * value.h (val_print): Don't declare.
6595 * valprint.h (val_print_array_elements)
6596 (val_print_scalar_formatted, generic_val_print): Don't declare.
6597 * valprint.c (generic_val_print_array): Take a struct value.
6598 (generic_val_print_ptr, generic_val_print_memberptr)
6599 (generic_val_print_bool, generic_val_print_int)
6600 (generic_val_print_char, generic_val_print_complex)
6601 (generic_val_print): Remove.
6602 (generic_value_print): Update.
6603 (do_val_print): Remove unused parameters. Don't call
6604 la_val_print.
6605 (val_print): Remove.
6606 (common_val_print): Update. Don't call value_check_printable.
6607 (val_print_scalar_formatted, val_print_array_elements): Remove.
6608 * rust-lang.c (rust_val_print): Remove.
6609 (rust_language_defn): Update.
6610 * p-valprint.c (pascal_val_print): Remove.
6611 (pascal_value_print_inner): Update.
6612 (pascal_object_print_val_fields, pascal_object_print_val):
6613 Remove.
6614 (pascal_object_print_static_field): Update.
6615 * p-lang.h (pascal_val_print): Don't declare.
6616 * p-lang.c (pascal_language_defn): Update.
6617 * opencl-lang.c (opencl_language_defn): Update.
6618 * objc-lang.c (objc_language_defn): Update.
6619 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6620 * m2-lang.h (m2_val_print): Don't declare.
6621 * m2-lang.c (m2_language_defn): Update.
6622 * language.h (struct language_defn) <la_val_print>: Remove.
6623 * language.c (unk_lang_value_print_inner): Rename. Change
6624 argument types.
6625 (unknown_language_defn, auto_language_defn): Update.
6626 * go-valprint.c (go_val_print): Remove.
6627 * go-lang.h (go_val_print): Don't declare.
6628 * go-lang.c (go_language_defn): Update.
6629 * f-valprint.c (f_val_print): Remove.
6630 * f-lang.h (f_value_print): Don't declare.
6631 * f-lang.c (f_language_defn): Update.
6632 * d-valprint.c (d_val_print): Remove.
6633 * d-lang.h (d_value_print): Don't declare.
6634 * d-lang.c (d_language_defn): Update.
6635 * cp-valprint.c (cp_print_value_fields)
6636 (cp_print_value_fields_rtti, cp_print_value): Remove.
6637 (cp_print_static_field): Update.
6638 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6639 (c_val_print_struct, c_val_print_union, c_val_print_int)
6640 (c_val_print_memberptr, c_val_print): Remove.
6641 * c-lang.h (c_val_print_array, cp_print_value_fields)
6642 (cp_print_value_fields_rtti): Don't declare.
6643 * c-lang.c (c_language_defn, cplus_language_defn)
6644 (asm_language_defn, minimal_language_defn): Update.
6645 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6646 (ada_val_print_enum): Take a struct value.
6647 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6648 (ada_val_print): Remove.
6649 (ada_value_print_1): Update.
6650 (printable_val_type): Remove.
6651 * ada-lang.h (ada_val_print): Don't declare.
6652 * ada-lang.c (ada_language_defn): Update.
6653
42331a1e
TT
66542020-03-13 Tom Tromey <tom@tromey.com>
6655
6656 * valprint.c (do_val_print): Update.
6657 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6658 a struct value.
6659 (value_to_value_object_no_release): Declare.
6660 * python/py-value.c (value_to_value_object_no_release): New
6661 function.
6662 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6663 struct value.
6664 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6665 function.
6666 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6667 a struct value.
6668 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6669 Declare.
6670 (gdbscm_apply_val_pretty_printer): Take a struct value.
6671 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6672 value.
6673 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6674 value.
6675 * extension-priv.h (struct extension_language_ops)
6676 <apply_val_pretty_printer>: Take a struct value.
6677 * cp-valprint.c (cp_print_value): Create a struct value.
6678 (cp_print_value): Update.
6679
3a916a97
TT
66802020-03-13 Tom Tromey <tom@tromey.com>
6681
6682 * ada-valprint.c (print_field_values): Call common_val_print.
6683
b59eac37
TT
66842020-03-13 Tom Tromey <tom@tromey.com>
6685
6686 * ada-valprint.c (val_print_packed_array_elements): Remove
6687 bitoffset and val parameters. Call common_val_print.
6688 (ada_val_print_string): Remove offset, address, and original_value
6689 parameters.
6690 (ada_val_print_array): Update.
6691 (ada_value_print_array): New function.
6692 (ada_value_print_1): Call it.
6693
03371129
TT
66942020-03-13 Tom Tromey <tom@tromey.com>
6695
6696 * ada-valprint.c (ada_value_print): Use common_val_print.
6697
2e088f8b
TT
66982020-03-13 Tom Tromey <tom@tromey.com>
6699
6700 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6701
39ef85a8
TT
67022020-03-13 Tom Tromey <tom@tromey.com>
6703
6704 * ada-valprint.c (ada_value_print_num): New function.
6705 (ada_value_print_1): Use it.
6706
b9fa6e07
TT
67072020-03-13 Tom Tromey <tom@tromey.com>
6708
6709 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6710
416595d6
TT
67112020-03-13 Tom Tromey <tom@tromey.com>
6712
6713 * ada-valprint.c (ada_value_print_ptr): New function.
6714 (ada_value_print_1): Use it.
6715
5b5e15ec
TT
67162020-03-13 Tom Tromey <tom@tromey.com>
6717
6718 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6719 call common_val_print.
6720 (ada_val_print_1): Update.
6721 (ada_value_print_1): New function.
6722 (ada_value_print_inner): Rewrite.
6723
fbf54e75
TT
67242020-03-13 Tom Tromey <tom@tromey.com>
6725
6726 * cp-valprint.c (cp_print_value_fields): Update.
6727 (cp_print_value): New function.
6728
64b653ca
TT
67292020-03-13 Tom Tromey <tom@tromey.com>
6730
6731 * m2-valprint.c (m2_value_print_inner): Use
6732 cp_print_value_fields.
6733 * cp-valprint.c (cp_print_value_fields): New function.
6734 * c-valprint.c (c_value_print_struct): New function.
6735 (c_value_print_inner): Use c_value_print_struct.
6736 * c-lang.h (cp_print_value_fields): Declare.
6737
6999f067
TT
67382020-03-13 Tom Tromey <tom@tromey.com>
6739
6740 * c-valprint.c (c_value_print_array): New function.
6741 (c_value_print_inner): Use it.
6742
ce80b8bd
TT
67432020-03-13 Tom Tromey <tom@tromey.com>
6744
6745 * c-valprint.c (c_value_print_memberptr): New function.
6746 (c_value_print_inner): Use it.
6747
2faac269
TT
67482020-03-13 Tom Tromey <tom@tromey.com>
6749
6750 * c-valprint.c (c_value_print_int): New function.
6751 (c_value_print_inner): Use it.
6752
da3e2c29
TT
67532020-03-13 Tom Tromey <tom@tromey.com>
6754
6755 * c-valprint.c (c_value_print_ptr): New function.
6756 (c_value_print_inner): Use it.
6757
50836231
TT
67582020-03-13 Tom Tromey <tom@tromey.com>
6759
6760 * c-valprint.c (c_value_print_inner): Rewrite.
6761
4f412b6e
TT
67622020-03-13 Tom Tromey <tom@tromey.com>
6763
6764 * valprint.c (generic_value_print_complex): New function.
6765 (generic_value_print): Use it.
6766
f5354008
TT
67672020-03-13 Tom Tromey <tom@tromey.com>
6768
6769 * valprint.c (generic_val_print_float): Don't call
6770 val_print_scalar_formatted.
6771 (generic_val_print, generic_value_print): Update.
6772
3eec3b05
TT
67732020-03-13 Tom Tromey <tom@tromey.com>
6774
6775 * valprint.c (generic_value_print_char): New function
6776 (generic_value_print): Use it.
6777
fdddfccb
TT
67782020-03-13 Tom Tromey <tom@tromey.com>
6779
6780 * valprint.c (generic_value_print_int): New function.
6781 (generic_value_print): Use it.
6782
6dde7521
TT
67832020-03-13 Tom Tromey <tom@tromey.com>
6784
6785 * valprint.c (generic_value_print_bool): New function.
6786 (generic_value_print): Use it.
6787
4112d2e6
TT
67882020-03-13 Tom Tromey <tom@tromey.com>
6789
6790 * valprint.c (generic_val_print_func): Simplify.
6791 (generic_val_print, generic_value_print): Update.
6792
65786af6
TT
67932020-03-13 Tom Tromey <tom@tromey.com>
6794
6795 * valprint.c (generic_val_print_flags): Remove.
6796 (generic_val_print, generic_value_print): Update.
6797 (val_print_type_code_flags): Add original_value parameter.
6798
40f3ce18
TT
67992020-03-13 Tom Tromey <tom@tromey.com>
6800
6801 * valprint.c (generic_val_print): Update.
6802 (generic_value_print): Update.
6803 * valprint.c (generic_val_print_enum): Don't call
6804 val_print_scalar_formatted.
6805
2a5b130b
TT
68062020-03-13 Tom Tromey <tom@tromey.com>
6807
6808 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6809 * valprint.c (generic_value_print_ptr): New function.
6810
abc66ce9
TT
68112020-03-13 Tom Tromey <tom@tromey.com>
6812
6813 * valprint.c (generic_value_print): Rewrite.
6814
07a32858
TT
68152020-03-13 Tom Tromey <tom@tromey.com>
6816
6817 * p-valprint.c (pascal_object_print_value_fields)
6818 (pascal_object_print_value): New functions.
6819
64d64d3a
TT
68202020-03-13 Tom Tromey <tom@tromey.com>
6821
6822 * p-valprint.c (pascal_value_print_inner): Rewrite.
6823
6a95a1f5
TT
68242020-03-13 Tom Tromey <tom@tromey.com>
6825
6826 * f-valprint.c (f_value_print_innner): Rewrite.
6827
59fcdac6
TT
68282020-03-13 Tom Tromey <tom@tromey.com>
6829
6830 * m2-valprint.c (m2_print_unbounded_array): New overload.
6831 (m2_print_unbounded_array): Update.
6832 (m2_print_array_contents): Take a struct value.
6833 (m2_value_print_inner): Rewrite.
6834
d133c3e1
TT
68352020-03-13 Tom Tromey <tom@tromey.com>
6836
6837 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6838 (d_value_print_inner): New function.
6839 * d-lang.h (d_value_print_inner): Declare.
6840 * d-lang.c (d_language_defn): Use d_value_print_inner.
6841
23b0f06b
TT
68422020-03-13 Tom Tromey <tom@tromey.com>
6843
6844 * go-valprint.c (go_value_print_inner): New function.
6845 * go-lang.h (go_value_print_inner): Declare.
6846 * go-lang.c (go_language_defn): Use go_value_print_inner.
6847
5f56f7cb
TT
68482020-03-13 Tom Tromey <tom@tromey.com>
6849
6850 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6851 API.
6852 (rust_val_print): Rewrite.
6853 (rust_value_print_inner): New function, from rust_val_print.
6854 (rust_language_defn): Use rust_value_print_inner.
6855
26792ee0
TT
68562020-03-13 Tom Tromey <tom@tromey.com>
6857
6858 * ada-valprint.c (ada_value_print_inner): New function.
6859 * ada-lang.h (ada_value_print_inner): Declare.
6860 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6861
24051bbe
TT
68622020-03-13 Tom Tromey <tom@tromey.com>
6863
6864 * f-valprint.c (f_value_print_innner): New function.
6865 * f-lang.h (f_value_print_innner): Declare.
6866 * f-lang.c (f_language_defn): Use f_value_print_innner.
6867
c0941be6
TT
68682020-03-13 Tom Tromey <tom@tromey.com>
6869
6870 * p-valprint.c (pascal_value_print_inner): New function.
6871 * p-lang.h (pascal_value_print_inner): Declare.
6872 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6873
62c4663d
TT
68742020-03-13 Tom Tromey <tom@tromey.com>
6875
6876 * m2-valprint.c (m2_value_print_inner): New function.
6877 * m2-lang.h (m2_value_print_inner): Declare.
6878 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6879
62182190
TT
68802020-03-13 Tom Tromey <tom@tromey.com>
6881
6882 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6883 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6884 * c-valprint.c (c_value_print_inner): New function.
6885 * c-lang.h (c_value_print_inner): Declare.
6886 * c-lang.c (c_language_defn, cplus_language_defn)
6887 (asm_language_defn, minimal_language_defn): Use
6888 c_value_print_inner.
6889
1e592a8a
TT
68902020-03-13 Tom Tromey <tom@tromey.com>
6891
6892 * p-valprint.c (pascal_object_print_value_fields): Now static.
6893 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6894
7fe471e9
TT
68952020-03-13 Tom Tromey <tom@tromey.com>
6896
6897 * c-valprint.c (c_val_print_array): Simplify.
6898
d121c6ce
TT
68992020-03-13 Tom Tromey <tom@tromey.com>
6900
6901 * valprint.c (value_print_array_elements): New function.
6902 * valprint.h (value_print_array_elements): Declare.
6903
4dba70ee
TT
69042020-03-13 Tom Tromey <tom@tromey.com>
6905
6906 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6907 * mips-tdep.c (mips_print_register): Use
6908 value_print_scalar_formatted.
6909
4f9ae810
TT
69102020-03-13 Tom Tromey <tom@tromey.com>
6911
6912 * valprint.h (value_print_scalar_formatted): Declare.
6913 * valprint.c (value_print_scalar_formatted): New function.
6914
156bfec9
TT
69152020-03-13 Tom Tromey <tom@tromey.com>
6916
6917 * valprint.h (generic_value_print): Declare.
6918 * valprint.c (generic_value_print): New function.
6919
2b4e573d
TT
69202020-03-13 Tom Tromey <tom@tromey.com>
6921
6922 * valprint.c (do_val_print): Call la_value_print_inner, if
6923 available.
6924 * rust-lang.c (rust_language_defn): Update.
6925 * p-lang.c (pascal_language_defn): Update.
6926 * opencl-lang.c (opencl_language_defn): Update.
6927 * objc-lang.c (objc_language_defn): Update.
6928 * m2-lang.c (m2_language_defn): Update.
6929 * language.h (struct language_defn) <la_value_print_inner>: New
6930 member.
6931 * language.c (unknown_language_defn, auto_language_defn): Update.
6932 * go-lang.c (go_language_defn): Update.
6933 * f-lang.c (f_language_defn): Update.
6934 * d-lang.c (d_language_defn): Update.
6935 * c-lang.c (c_language_defn, cplus_language_defn)
6936 (asm_language_defn, minimal_language_defn): Update.
6937 * ada-lang.c (ada_language_defn): Update.
6938
a1f6a07c
TT
69392020-03-13 Tom Tromey <tom@tromey.com>
6940
6941 * c-valprint.c (c_value_print): Use common_val_print.
6942
410cf315
TT
69432020-03-13 Tom Tromey <tom@tromey.com>
6944
6945 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6946
72a45c93
TT
69472020-03-13 Tom Tromey <tom@tromey.com>
6948
6949 * f-valprint.c (f77_print_array_1, f_val_print): Use
6950 common_val_print.
6951
040f66bd
TT
69522020-03-13 Tom Tromey <tom@tromey.com>
6953
6954 * riscv-tdep.c (riscv_print_one_register_info): Use
6955 common_val_print.
6956
a6e05a6c
TT
69572020-03-13 Tom Tromey <tom@tromey.com>
6958
6959 * mi/mi-main.c (output_register): Use common_val_print.
6960
3444c526
TT
69612020-03-13 Tom Tromey <tom@tromey.com>
6962
6963 * infcmd.c (default_print_one_register_info): Use
6964 common_val_print.
6965
c2a44efe
TT
69662020-03-13 Tom Tromey <tom@tromey.com>
6967
6968 * valprint.h (common_val_print_checked): Declare.
6969 * valprint.c (common_val_print_checked): New function.
6970 * stack.c (print_frame_arg): Use common_val_print_checked.
6971
b0c26e99
TT
69722020-03-13 Tom Tromey <tom@tromey.com>
6973
6974 * valprint.c (do_val_print): New function, from val_print.
6975 (val_print): Use do_val_print.
6976 (common_val_print): Use do_val_print.
6977
ce3acbe9
TT
69782020-03-13 Tom Tromey <tom@tromey.com>
6979
6980 * valprint.c (value_print): Use scoped_value_mark.
6981
96c7f873
TV
69822020-03-13 Tom de Vries <tdevries@suse.de>
6983
6984 PR symtab/25646
6985 * psymtab.c (partial_symtab::partial_symtab): Don't set
6986 globals_offset and statics_offset. Push element onto
6987 current_global_psymbols and current_static_psymbols stacks.
6988 (concat): New function.
6989 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6990 element from current_global_psymbols and current_static_psymbols
6991 stacks. Concat popped elements to global_psymbols and
6992 static_symbols.
6993 (add_psymbol_to_list): Use current_global_psymbols and
6994 current_static_psymbols stacks.
6995 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6996 current_static_psymbols fields.
6997
6ba0a321
CB
69982020-03-12 Christian Biesinger <cbiesinger@google.com>
6999
7000 * corelow.c (sniff_core_bfd): Remove.
7001 (class core_target) <m_core_vec>: Remove.
7002 (core_target::core_target): Update.
7003 (core_file_fns): Remove.
7004 (deprecated_add_core_fns): Remove.
7005 (default_core_sniffer): Remove.
7006 (sniff_core_bfd): Remove.
7007 (default_check_format): Remove.
7008 (gdb_check_format): Remove.
7009 (core_target_open): Update.
7010 (core_target::get_core_register_section): Update.
7011 (get_core_registers_cb): Update.
7012 (core_target::fetch_registers): Update.
7013 * gdbcore.h (struct core_fns): Remove.
7014 (deprecated_add_core_fns): Remove.
7015 (default_core_sniffer): Remove.
7016 (default_check_format): Remove.
7017
227031b2
TT
70182020-03-12 Tom Tromey <tom@tromey.com>
7019
7020 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7021 CORE_ADDR.
7022 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7023
53807e9f
TT
70242020-03-12 Tom Tromey <tom@tromey.com>
7025
7026 * remote.c (remote_target::download_tracepoint)
7027 (remote_target::enable_tracepoint)
7028 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7029 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7030 sprintf_vma.
7031
64f25102
TT
70322020-03-12 Tom Tromey <tom@tromey.com>
7033
7034 * symfile-mem.c: Update CORE_ADDR size assert.
7035
272cd5a3
SM
70362020-03-12 Simon Marchi <simon.marchi@efficios.com>
7037
7038 * selftest.m4: Move to gdbsupport/.
7039 * acinclude.m4: Update path to selftest.m4.
7040
74cd3f9d
SM
70412020-03-12 Simon Marchi <simon.marchi@efficios.com>
7042
7043 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7044 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7045 gdbarch-selfselftests.c and selftest-arch.c.
7046 (SUBDIR_UNITTESTS_OBS): Rename to...
7047 (SELFTESTS_OBS): ... this.
7048 (COMMON_SFILES): Remove disasm-selftests.c and
7049 gdbarch-selftests.c.
7050 * configure.ac: Don't add selftest-arch.{c,o} to
7051 CONFIG_{SRCS,OBS}.
7052 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7053 preprocessor conditions.
7054
db6878ac
SM
70552020-03-12 Simon Marchi <simon.marchi@efficios.com>
7056
7057 * configure.ac: Don't source bfd/development.sh.
7058 * selftest.m4: Modify comment.
7059 * configure: Re-generate.
7060
4d696a5c
SM
70612020-03-12 Simon Marchi <simon.marchi@efficios.com>
7062
7063 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7064 not "true" or "false".
7065 * configure: Re-generate.
7066
8dd8e1c7
CB
70672020-03-12 Christian Biesinger <cbiesinger@google.com>
7068
7069 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7070 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7071 renamed to arm_nbsd_supply_gregset.
7072 (fetch_register): Update to call arm_nbsd_supply_gregset.
7073 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7074 (arm_netbsd_nat_target::fetch_registers): Update.
7075 (fetch_elfcore_registers): Removed.
7076 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7077 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7078 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7079 not require NetBSD system headers.
7080 (arm_nbsd_regset): New struct.
7081 (arm_nbsd_iterate_over_regset_sections): New function.
7082 (arm_netbsd_init_abi_common): Updated to call
7083 set_gdbarch_iterate_over_regset_sections.
7084 * arm-nbsd-tdep.h: New file.
7085
dd69bf7a
KB
70862020-03-11 Kevin Buettner <kevinb@redhat.com>
7087
7088 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7089 recursion.
7090
a0761e34
SM
70912020-03-11 Simon Marchi <simon.marchi@efficios.com>
7092
7093 * configure: Re-generate.
7094
e7a82140
TT
70952020-03-11 Tom Tromey <tromey@adacore.com>
7096
7097 * ada-typeprint.c (print_choices): Fix comment.
7098
dcc050c8
AB
70992020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7100
7101 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7102 previous item in the list, when the list has no items.
7103
1c33af77
TV
71042020-03-11 Tom de Vries <tdevries@suse.de>
7105
7106 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7107 PROP_LOCLIST handling code.
7108
8c95582d
AB
71092020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7110
7111 * buildsym-legacy.c (record_line): Pass extra parameter to
7112 record_line.
7113 * buildsym.c (buildsym_compunit::record_line): Take an extra
7114 parameter, reduce duplication in the line table, and record the
7115 is_stmt flag in the line table.
7116 * buildsym.h (buildsym_compunit::record_line): Add extra
7117 parameter.
7118 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7119 non-statement lines.
7120 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7121 this to the symtab builder.
7122 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7123 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7124 through to dwarf_record_line_1.
7125 * infrun.c (process_event_stop_test): When stepping, don't stop at
7126 a non-statement instruction, and only refresh the step info when
7127 we land in the middle of a line's range. Also add an extra
7128 comment.
7129 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7130 field.
7131 * record-btrace.c (btrace_find_line_range): Only record lines
7132 marked as is-statement.
7133 * stack.c (frame_show_address): Show the frame address if we are
7134 in a non-statement sal.
7135 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7136 (maintenance_print_one_line_table): Print a header for the is_stmt
7137 column, and include is_stmt information in the output.
7138 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7139 preference to non-statements.
7140 (find_pcs_for_symtab_line): Prefer is-statement entries.
7141 (find_line_common): Likewise.
7142 * symtab.h (struct linetable_entry): Add is_stmt field.
7143 (struct symtab_and_line): Likewise.
7144 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7145 arranging the line table.
7146
e4003a34
TV
71472020-03-07 Tom de Vries <tdevries@suse.de>
7148
7149 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7150 DIE.
7151
e8932576
TT
71522020-03-07 Tom Tromey <tom@tromey.com>
7153
7154 * valops.c (value_literal_complex): Remove obsolete comment.
7155 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7156 comment.
7157
29734269
SM
71582020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7159
7160 * infrun.h: Forward-declare thread_info.
7161 (set_step_info): Add thread_info parameter, add doc.
7162 * infrun.c (set_step_info): Add thread_info parameter, move doc
7163 to header.
7164 * infrun.c (process_event_stop_test): Pass thread to
7165 set_step_info call.
7166 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7167 set_step_info.
7168 (prepare_one_step): Add thread_info parameter, pass it to
7169 set_step_frame and prepare_one_step (recursive) call.
7170 (step_1): Pass thread to prepare_one_step call.
7171 (step_command_fsm::should_stop): Pass thread to
7172 prepare_one_step.
7173 (until_next_fsm): Pass thread to set_step_frame call.
7174 (finish_command): Pass thread to set_step_info call.
7175
b7d64b29
HD
71762020-03-06 Hannes Domani <ssbssa@yahoo.de>
7177
7178 * windows-tdep.c (windows_solib_create_inferior_hook):
7179 Check if inferior is running.
7180
09f2921c
TV
71812020-03-06 Tom de Vries <tdevries@suse.de>
7182
7183 * NEWS: Fix "the the".
7184 * ctfread.c: Same.
7185
fd760e79
TV
71862020-03-06 Tom de Vries <tdevries@suse.de>
7187
7188 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7189
20ea4a60
AB
71902020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7191
7192 * .dir-locals.el: Add a comment referencing the other copies of
7193 this file.
7194
0afbabf0
JB
71952020-03-05 John Baldwin <jhb@FreeBSD.org>
7196
7197 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7198 psargs.
7199
842806cb
TBA
72002020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7201
7202 * .gitattributes: New file.
7203
be1e3d3e
TT
72042020-03-04 Tom Tromey <tom@tromey.com>
7205
7206 * symmisc.c (print_symbol_bcache_statistics)
7207 (print_objfile_statistics): Update.
7208 * symfile.c (allocate_symtab): Use intern.
7209 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7210 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7211 macro_cache>: Remove.
7212 <string_cache>: New member.
7213 (struct objfile) <intern>: New methods.
7214 * elfread.c (elf_symtab_read): Use intern.
7215 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7216 (dwarf2_compute_name, dwarf2_physname)
7217 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7218 names.
7219 (guess_partial_die_structure_name): Update.
7220 (partial_die_info::fixup): Intern name.
7221 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7222 name.
7223 (dwarf2_name): Intern name. Update.
7224 * buildsym.c (buildsym_compunit::get_macro_table): Use
7225 string_cache.
7226
4e7625fd
TT
72272020-03-04 Tom Tromey <tom@tromey.com>
7228
7229 * jit.c (bfd_open_from_target_memory): Make "target" const.
7230 * corefile.c (gnutarget): Now const.
7231 * gdbcore.h (gnutarget): Now const.
7232
46f9f931
HD
72332020-03-04 Hannes Domani <ssbssa@yahoo.de>
7234
7235 * NEWS: Mention support for WOW64 processes.
7236 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7237 (amd64_windows_segment_register_p): Remove static.
7238 (_initialize_amd64_windows_nat): Update.
7239 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7240 * i386-windows-nat.c (context_offset): Update.
7241 (i386_mappings): Rename and remove static.
7242 (i386_windows_segment_register_p): Remove static.
7243 (_initialize_i386_windows_nat): Update.
7244 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7245 (STATUS_WX86_SINGLE_STEP): New macro.
7246 (EnumProcessModulesEx): New macro.
7247 (Wow64SuspendThread): New macro.
7248 (Wow64GetThreadContext): New macro.
7249 (Wow64SetThreadContext): New macro.
7250 (Wow64GetThreadSelectorEntry): New macro.
7251 (windows_set_context_register_offsets): Add static.
7252 (windows_set_segment_register_p): Likewise.
7253 (windows_add_thread): Adapt for WOW64 processes.
7254 (windows_fetch_one_register): Likewise.
7255 (windows_nat_target::fetch_registers): Likewise.
7256 (windows_store_one_register): Likewise.
7257 (display_selector): Likewise.
7258 (display_selectors): Likewise.
7259 (handle_exception): Likewise.
7260 (windows_continue): Likewise.
7261 (windows_nat_target::resume): Likewise.
7262 (windows_add_all_dlls): Likewise.
7263 (do_initial_windows_stuff): Likewise.
7264 (windows_nat_target::attach): Likewise.
7265 (windows_get_exec_module_filename): Likewise.
7266 (windows_nat_target::create_inferior): Likewise.
7267 (windows_xfer_siginfo): Likewise.
7268 (_initialize_loadable): Initialize Wow64SuspendThread,
7269 Wow64GetThreadContext, Wow64SetThreadContext,
7270 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7271 * windows-nat.h (windows_set_context_register_offsets):
7272 Remove declaration.
7273 (windows_set_segment_register_p): Likewise.
7274 (i386_windows_segment_register_p): Add declaration.
7275 (amd64_windows_segment_register_p): Likewise.
7276
440cf44e
LM
72772020-03-04 Luis Machado <luis.machado@linaro.org>
7278
7279 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7280 in "info registers" for AArch64/ARM.
7281
7282 The change caused "info registers" to not print GPR's.
7283
7284 gdb/ChangeLog:
7285
7286 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7287
7288 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7289 when reg->group is empty and reggroup is not.
7290
1009d92f
TT
72912020-03-03 Tom Tromey <tromey@adacore.com>
7292
7293 * dwarf2/frame.c (struct dwarf2_frame_cache)
7294 <checked_tailcall_bottom, entry_cfa_sp_offset,
7295 entry_cfa_sp_offset_p>: Remove members.
7296 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7297 (dwarf2_frame_prev_register): Don't call
7298 dwarf2_tailcall_sniffer_first.
7299 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7300 * frame-unwind.c (add_unwinder): New fuction.
7301 (frame_unwind_init): Use it. Add tailcall unwinder.
7302
5e5d66b6
AB
73032020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7304 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7305
7306 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7307 value should be printed as true.
7308
584cf46d
HD
73092020-03-03 Hannes Domani <ssbssa@yahoo.de>
7310
7311 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7312 (windows_init_abi): Set and use windows_so_ops.
7313
7b973adc
SDJ
73142020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7315
7316 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7317 when verifying if dealing with a convenience variable.
7318
bb7b70ab
LM
73192020-03-03 Luis Machado <luis.machado@linaro.org>
7320
7321 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7322
9822cb57
SM
73232020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7324
7325 * infrun.c (gdbarch_supports_displaced_stepping): New.
7326 (use_displaced_stepping): Break up conditions in smaller pieces.
7327 Use gdbarch_supports_displaced_stepping.
7328 (displaced_step_prepare_throw): Use
7329 gdbarch_supports_displaced_stepping.
7330
63e163f2
AB
73312020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7332
7333 * NEWS: Mention new behaviour of the history filename.
7334 * top.c (write_history_p): Add comment.
7335 (show_write_history_p): Add header comment, give a different
7336 message when history writing is on, but the history filename is
7337 empty.
7338 (history_filename): Add comment.
7339 (history_filename_empty): New function.
7340 (show_history_filename): Add header comment, give a different
7341 message when the filename is empty.
7342 (init_history): Compare history_filename against nullptr, and only
7343 read history if the filename is not empty.
7344 (set_history_filename): Add header comment, and only make
7345 non-empty filenames absolute.
7346 (init_main): Make the filename argument to 'set history filename'
7347 optional.
7348
81b86b97
CB
73492020-03-02 Christian Biesinger <cbiesinger@google.com>
7350
7351 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7352 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7353 (fetch_fp_register): Update.
7354 (fetch_fp_regs): Update.
7355 (store_fp_register): Update.
7356 (store_fp_regs): Update.
7357 (arm_netbsd_nat_target::read_description): New function.
7358 (fetch_elfcore_registers): Update.
7359
24ed6739
AB
73602020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7361
7362 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7363 general_thread if the stop reply is missing a thread-id.
7364 (remote_target::process_stop_reply): Use the first non-exited
7365 thread if the target didn't pass a thread-id.
7366 * infrun.c (do_target_wait): Move call to
7367 switch_to_inferior_no_thread to ....
7368 (do_target_wait_1): ... here.
7369
a84bb2a0
JT
73702020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7371
7372 * debuginfod-support.c: Include defs.h first.
7373
658dadf0
TV
73742020-02-28 Tom de Vries <tdevries@suse.de>
7375
7376 * symfile.c (set_initial_language): Use default language for lookup.
7377
4ebe4877
SM
73782020-02-28 Simon Marchi <simon.marchi@efficios.com>
7379
7380 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7381 reader variable, pass `this` to read_cutu_die_from_dwo.
7382
e5da1139
AM
73832020-02-27 Aaron Merey <amerey@redhat.com>
7384
7385 * source.c (open_source_file): Check for nullptr when computing
7386 srcpath.
7387
317f7127
TT
73882020-02-27 Tom Tromey <tromey@adacore.com>
7389
7390 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7391 member.
7392 (dwarf2_add_field): Don't update nfields.
7393 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7394
3104d9ee
AB
73952020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7396
7397 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7398 abs.
7399
b83470bf
TT
74002020-02-26 Tom Tromey <tom@tromey.com>
7401
7402 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7403 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7404 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7405 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7406 per_cu_data.
7407
edfe0a0c
TT
74082020-02-26 Tom Tromey <tom@tromey.com>
7409
7410 * dwarf2/index-write.c (psym_index_map): Change type.
7411 (add_address_entry_worker, write_one_signatured_type)
7412 (recursively_count_psymbols, recursively_write_psymbols)
7413 (class debug_names, psyms_seen_size, write_gdbindex)
7414 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7415
0d79cdc4
AM
74162020-02-26 Aaron Merey <amerey@redhat.com>
7417
7418 * Makefile.in: Handle optional debuginfod support.
7419 * NEWS: Update.
7420 * README: Add --with-debuginfod summary.
7421 * config.in: Regenerate.
7422 * configure: Regenerate.
7423 * configure.ac: Handle optional debuginfod support.
7424 * debuginfod-support.c: debuginfod helper functions.
7425 * debuginfod-support.h: Ditto.
7426 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7427 summary.
7428 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7429 when a dwz file cannot be found.
7430 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7431 debuginfo file cannot be found.
7432 * source.c (open_source_file): Query debuginfod servers when a
7433 source file cannot be found.
7434 * top.c (print_gdb_configuration): Include
7435 --{with,without}-debuginfod in the output.
7436
b65ce565
JG
74372020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7438
7439 * thread.c (thr_try_catch_cmd): Print thread name.
7440
d4c9a4f8
SM
74412020-02-26 Simon Marchi <simon.marchi@efficios.com>
7442
7443 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7444 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7445 dwarf2_fetch_die_type_sect_off): Move to...
7446 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7447 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7448 dwarf2_fetch_die_type_sect_off): ... here.
7449 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7450 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7451 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7452
0dce4280
TV
74532020-02-26 Tom de Vries <tdevries@suse.de>
7454
7455 PR gdb/25603
7456 * symfile.c (set_initial_language): Exit-early if
7457 language_mode == language_mode_manual.
7458
450a1bfc
SM
74592020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7460
7461 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7462 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7463 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7464
9e80cfa1
AB
74652020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7466
7467 * gdbtypes.c (create_array_type_with_stride): Handle negative
7468 array strides.
7469 * valarith.c (value_subscripted_rvalue): Likewise.
7470
09624f1f
LM
74712020-02-25 Luis Machado <luis.machado@linaro.org>
7472
7473 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7474
8cb5117c
SM
74752020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7476
7477 * loc.h (dwarf2_get_die_type): Move to...
7478 * read.h (dwarf2_get_die_type): ... here.
7479 * read.c (dwarf2_get_die_type): Move doc to header.
7480
c325c44e
JB
74812020-02-25 Joel Brobecker <brobecker@adacore.com>
7482
7483 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7484 'gnulib/Makefile.in' to the list.
7485
4ac93832
TT
74862020-02-24 Tom Tromey <tom@tromey.com>
7487
7488 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7489 Remove.
7490 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7491 XOBNEWVEC.
7492
197400e8
TT
74932020-02-24 Tom Tromey <tom@tromey.com>
7494
7495 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7496 New method.
7497 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7498 (dw2_do_instantiate_symtab, dw2_get_file_names)
7499 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7500
76935768
TT
75012020-02-24 Tom Tromey <tom@tromey.com>
7502
7503 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7504 make_scoped_restore.
7505 (dwarf2_psymtab::read_symtab): Don't clear
7506 reading_partial_symbols.
7507
a88ef40d
TV
75082020-02-24 Tom de Vries <tdevries@suse.de>
7509
7510 PR gdb/25592
7511 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7512
c9af6521
TV
75132020-02-24 Tom de Vries <tdevries@suse.de>
7514
7515 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7516 commands layout next/prev/regs.
7517
5707a07a
TT
75182020-02-22 Tom Tromey <tom@tromey.com>
7519
7520 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7521 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7522
3b0fb49e
TT
75232020-02-22 Tom Tromey <tom@tromey.com>
7524
7525 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7526
283be8bf
TT
75272020-02-22 Tom Tromey <tom@tromey.com>
7528
7529 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7530 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7531 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7532 * tui/tui.c (_initialize_tui): Add usage text.
7533
ca793b96
TT
75342020-02-22 Tom Tromey <tom@tromey.com>
7535
7536 * tui/tui-win.c (tui_set_focus_command)
7537 (tui_set_win_height_command): Use error_no_arg.
7538 (_initialize_tui_win): Update help text.
7539 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7540
432b5c40
TT
75412020-02-22 Tom Tromey <tom@tromey.com>
7542
7543 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7544 * tui/tui-disasm.h (struct tui_disasm_window)
7545 <display_start_addr>: Declare.
7546 * tui/tui-source.h (struct tui_source_window)
7547 <display_start_addr>: Declare.
7548 * tui/tui-winsource.h (struct tui_source_window_base)
7549 <show_source_line, display_start_addr>: New methods.
7550 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7551 Rename and move to protected section.
7552 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7553 (tui_source_window_base::do_erase_source_content): Update.
7554 (tui_source_window_base::show_source_line): Now a method.
7555 (tui_source_window_base::show_source_content)
7556 (tui_source_window_base::tui_source_window_base)
7557 (tui_source_window_base::rerender)
7558 (tui_source_window_base::refill)
7559 (tui_source_window_base::do_scroll_horizontal)
7560 (tui_source_window_base::set_is_exec_point_at)
7561 (tui_source_window_base::update_breakpoint_info)
7562 (tui_source_window_base::update_exec_info): Update.
7563 * tui/tui-source.c (tui_source_window::set_contents)
7564 (tui_source_window::showing_source_p)
7565 (tui_source_window::do_scroll_vertical)
7566 (tui_source_window::location_matches_p)
7567 (tui_source_window::line_is_displayed): Update.
7568 (tui_source_window::display_start_addr): New method.
7569 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7570 (tui_disasm_window::do_scroll_vertical)
7571 (tui_disasm_window::location_matches_p): Update.
7572 (tui_disasm_window::display_start_addr): New method.
7573
01b1af32
TT
75742020-02-22 Tom Tromey <tom@tromey.com>
7575
7576 * NEWS: Add entry for gdb.register_window_type.
7577 * tui/tui-layout.h (window_factory): New typedef.
7578 (tui_register_window): Declare.
7579 * tui/tui-layout.c (saved_tui_windows): New global.
7580 (tui_apply_current_layout): Use it.
7581 (tui_register_window): New function.
7582 * python/python.c (do_start_initialization): Call
7583 gdbpy_initialize_tui.
7584 (python_GdbMethods): Add "register_window_type" function.
7585 * python/python-internal.h (gdbpy_register_tui_window)
7586 (gdbpy_initialize_tui): Declare.
7587 * python/py-tui.c: New file.
7588 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7589
fc96d20b
TT
75902020-02-22 Tom Tromey <tom@tromey.com>
7591
7592 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7593
935c78c0
TT
75942020-02-22 Tom Tromey <tom@tromey.com>
7595
7596 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7597 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7598 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7599 (tui_set_win_focus_to): Move from tui-win.c.
7600
0240c8f1
TT
76012020-02-22 Tom Tromey <tom@tromey.com>
7602
7603 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7604 functions.
7605 (known_window_types): New global.
7606 (tui_get_window_by_name): Reimplement.
7607 (initialize_known_windows): New function.
7608 (validate_window_name): Rewrite.
7609 (_initialize_tui_layout): Call initialize_known_windows.
7610
fdb01f0c
TT
76112020-02-22 Tom Tromey <tom@tromey.com>
7612
7613 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7614 Remove constants.
7615 * tui/tui-winsource.h (struct tui_source_window_base)
7616 <tui_source_window_base>: Remove parameter.
7617 * tui/tui-winsource.c
7618 (tui_source_window_base::tui_source_window_base): Remove
7619 parameter.
7620 (tui_source_window_base::refill): Update.
7621 * tui/tui-stack.h (struct tui_locator_window)
7622 <tui_locator_window>: Update.
7623 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7624 Default the constructor.
7625 * tui/tui-regs.h (struct tui_data_item_window)
7626 <tui_data_item_window>: Default the constructor.
7627 (struct tui_data_window) <tui_data_window>: Likewise.
7628 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7629 Default the constructor.
7630 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7631 Default the constructor.
7632 <type>: Remove.
7633 (struct tui_win_info) <tui_win_info>: Default the constructor.
7634 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7635 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7636 Default the constructor.
7637
865a5aec
TT
76382020-02-22 Tom Tromey <tom@tromey.com>
7639
7640 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7641 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7642 * tui/tui-win.c (tui_resize_all): Don't call
7643 tui_delete_invisible_windows.
7644 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7645 done.
7646 (tui_set_layout): Update.
7647 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7648 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7649 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7650
e098d18c
TT
76512020-02-22 Tom Tromey <tom@tromey.com>
7652
7653 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7654 correctly.
7655
eb9c8874
TT
76562020-02-22 Tom Tromey <tom@tromey.com>
7657
7658 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7659
7eed1a8e
TT
76602020-02-22 Tom Tromey <tom@tromey.com>
7661
7662 * tui/tui-winsource.h (struct tui_source_window_iterator)
7663 <inner_iterator>: New etytypedef.
7664 <tui_source_window_iterator>: Take "end" parameter.
7665 <tui_source_window_iterator>: Take iterator.
7666 <operator*, advance>: Update.
7667 <m_iter>: Change type.
7668 <m_end>: New field.
7669 (struct tui_source_windows) <begin, end>: Update.
7670 * tui/tui-layout.c (tui_windows): New global.
7671 (tui_apply_current_layout): Clear tui_windows.
7672 (tui_layout_window::apply): Update tui_windows.
7673 * tui/tui-data.h (tui_windows): Declare.
7674 (all_tui_windows): Now inline function.
7675 (class tui_window_iterator, struct all_tui_windows): Remove.
7676
7c043ba6
TT
76772020-02-22 Tom Tromey <tom@tromey.com>
7678
7679 PR tui/17850:
7680 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7681 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7682 "height" argument.
7683 (class tui_layout_window) <get_sizes>: Likewise.
7684 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7685 argument.
7686 <get_sizes>: Add "height" argument.
7687 <m_vertical>: New field.
7688 * tui/tui-layout.c (tui_layout_split::clone): Update.
7689 (tui_layout_split::get_sizes): Add "height" argument.
7690 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7691 (tui_new_layout_command): Parse "-horizontal".
7692 (_initialize_tui_layout): Update help string.
7693 (tui_layout_split::specification): Add "-horizontal" when needed.
7694 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7695 argument.
7696 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7697 New methods.
7698
6bc56648
TT
76992020-02-22 Tom Tromey <tom@tromey.com>
7700
7701 * tui/tui-layout.h (enum tui_adjust_result): New.
7702 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7703 (class tui_layout_window) <adjust_size>: Return
7704 tui_adjust_result. Rewrite.
7705 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7706 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7707
c22fef7e
TT
77082020-02-22 Tom Tromey <tom@tromey.com>
7709
7710 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7711 parameter and return types.
7712 (class tui_layout_base) <specification>: Add "depth".
7713 (class tui_layout_window) <specification>: Add "depth".
7714 (class tui_layout_split) <specification>: Add "depth".
7715 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7716 and return types.
7717 (tui_new_layout_command): Parse sub-layouts.
7718 (_initialize_tui_layout): Update help string.
7719 (tui_layout_window::specification): Add "depth".
7720 (add_layout_command): Update.
7721
ee325b61
TT
77222020-02-22 Tom Tromey <tom@tromey.com>
7723
7724 * NEWS: Add "tui new-layout" item.
7725 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7726 Add new-layout command to help text.
7727 (validate_window_name): New function.
7728 (tui_new_layout_command): New function.
7729 (_initialize_tui_layout): Register "new-layout".
7730 (tui_layout_window::specification): New method.
7731 (tui_layout_window::specification): New method.
7732 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7733 method.
7734 (class tui_layout_window) <specification>: New method.
7735 (class tui_layout_split) <specification>: New method.
7736
416eb92d
TT
77372020-02-22 Tom Tromey <tom@tromey.com>
7738
7739 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7740 * tui/tui-win.c (window_name_completer): Update comment.
7741 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7742 Declare method.
7743 (class tui_layout_window) <replace_window>: Likewise.
7744 (class tui_layout_split) <replace_window>: Likewise.
7745 (tui_set_layout): Don't declare.
7746 (tui_set_initial_layout): Declare function.
7747 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7748 (asm_regs_layout): New globals.
7749 (tui_current_layout, show_layout): Remove.
7750 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7751 (find_layout, tui_apply_layout): New function.
7752 (layout_completer): Remove.
7753 (tui_next_layout): Reimplement.
7754 (tui_next_layout_command): New function.
7755 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7756 (tui_regs_layout): Reimplement.
7757 (tui_regs_layout_command): New function.
7758 (extract_display_start_addr): Rewrite.
7759 (next_layout, prev_layout): Remove.
7760 (tui_layout_window::replace_window): New method.
7761 (tui_layout_split::replace_window): New method.
7762 (destroy_layout): New function.
7763 (layout_list): New global.
7764 (add_layout_command): New function.
7765 (initialize_layouts): Update.
7766 (tui_layout_command): New function.
7767 (_initialize_tui_layout): Install "layout" commands.
7768 * tui/tui-data.h (enum tui_layout_type): Remove.
7769 (tui_current_layout): Don't declare.
7770
0dbc2fc7
TT
77712020-02-22 Tom Tromey <tom@tromey.com>
7772
7773 * tui/tui-regs.c (tui_reg_layout): Remove.
7774 (tui_reg_command): Use tui_regs_layout.
7775 * tui/tui-layout.h (tui_reg_command): Declare.
7776 * tui/tui-layout.c (tui_reg_command): New function.
7777
5afe342e
TT
77782020-02-22 Tom Tromey <tom@tromey.com>
7779
7780 * tui/tui.c (tui_rl_delete_other_windows): Call
7781 tui_remove_some_windows.
7782 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7783 Declare method.
7784 (class tui_layout_window) <remove_windows>: New method.
7785 (class tui_layout_split) <remove_windows>: Declare.
7786 (tui_remove_some_windows): Declare.
7787 * tui/tui-layout.c (tui_remove_some_windows): New function.
7788 (tui_layout_split::remove_windows): New method.
7789
427326a8
TT
77902020-02-22 Tom Tromey <tom@tromey.com>
7791
7792 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7793 * tui/tui-layout.h (tui_next_layout): Declare.
7794 * tui/tui-layout.c (tui_next_layout): New function.
7795
3fe12b6d
TT
77962020-02-22 Tom Tromey <tom@tromey.com>
7797
7798 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7799 correct coordinates.
7800
59b8b5d2
TT
78012020-02-22 Tom Tromey <tom@tromey.com>
7802
7803 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7804 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7805 DATA_WIN case.
7806
2a3d458b
TT
78072020-02-22 Tom Tromey <tom@tromey.com>
7808
7809 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7810 TUI_DISASM_WIN, not tui_win_list.
7811
3f0cbb04
TT
78122020-02-22 Tom Tromey <tom@tromey.com>
7813
7814 * valprint.c (generic_val_print_enum_1)
7815 (val_print_type_code_flags): Style member names.
7816 * rust-lang.c (val_print_struct, rust_print_enum)
7817 (rust_print_struct_def, rust_internal_print_type): Style member
7818 names.
7819 * p-valprint.c (pascal_object_print_value_fields): Style member
7820 names. Only call fprintf_symbol_filtered for static members.
7821 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7822 * f-valprint.c (f_val_print): Style member names.
7823 * f-typeprint.c (f_type_print_base): Style member names.
7824 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7825 call fprintf_symbol_filtered for static members.
7826 (cp_print_class_member): Style member names.
7827 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7828 member names.
7829 * ada-valprint.c (ada_print_scalar): Style enum names.
7830 (ada_val_print_enum): Likewise.
7831 * ada-typeprint.c (print_enum_type): Style enum names.
7832
d4d947ae
TT
78332020-02-21 Tom Tromey <tom@tromey.com>
7834
7835 * psympriv.h (struct partial_symtab): Update comment.
7836
e94e944b
TT
78372020-02-21 Tom Tromey <tromey@adacore.com>
7838
7839 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7840 type is CORE_ADDR.
7841
1eb73179
TV
78422020-02-21 Tom de Vries <tdevries@suse.de>
7843
7844 PR gdb/25534
7845 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7846 if dependencies[i]->user != NULL.
7847
4f180d53
AT
78482020-02-21 Ali Tamur <tamur@google.com>
7849
7850 * dwarf2/read.c (dwarf2_name): Add null check.
7851
22b6cd70
TT
78522020-02-20 Tom Tromey <tom@tromey.com>
7853
7854 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7855 ">=", in binary search.
7856 (dwarf2_find_containing_comp_unit): New overload.
7857 (run_test): New self-test.
7858 (_initialize_dwarf2_read): Register new test.
7859
bd0cf5a6
NC
78602020-02-20 Nelson Chu <nelson.chu@sifive.com>
7861
7862 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7863 * riscv-tdep.h: Likewise.
7864 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7865 rv32-only CSR.
7866 * features/riscv/64bit-csr.xml: Regenerated.
7867
3f702acd
SDJ
78682020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7869 Tom Tromey <tom@tromey.com>
7870
7871 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7872 of 'fputc_unfiltered'.
7873 (putchar_unfiltered): Call 'fputc_unfiltered'.
7874 (fputc_unfiltered): Call 'fputs_unfiltered'.
7875
d13c7322
AB
78762020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7877
7878 * config.in: Regenerate.
7879 * configure: Regenerate.
7880 * configure.ac: Add --with-python-libdir option.
7881 * main.c: Use WITH_PYTHON_LIBDIR.
7882
869d8950
TT
78832020-02-19 Tom Tromey <tom@tromey.com>
7884
7885 * symtab.c (general_symbol_info::compute_and_set_names): Use
7886 obstack_strndup. Simplify call to symbol_set_demangled_name.
7887
298e9637
SM
78882020-02-19 Simon Marchi <simon.marchi@efficios.com>
7889
7890 * dwarf2/read.c (allocate_signatured_type_table,
7891 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7892 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7893 Remove objfile parameter, update all callers.
7894
08410482
DE
78952020-02-19 Doug Evans <dje@google.com>
7896
7897 PR rust/25535
7898 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7899 rust_enum_variant calculation.
7900
dfdeeca1
TT
79012020-02-19 Tom Tromey <tromey@adacore.com>
7902
7903 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7904
2ef5453b
TT
79052020-02-19 Tom Tromey <tromey@adacore.com>
7906
7907 * ada-lang.c (cache_symbol): Use obstack_strdup.
7908
9f1528a1
AB
79092020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7910
7911 * configure: Regenerate.
7912
d3c22fa8
TT
79132020-02-19 Tom Tromey <tromey@adacore.com>
7914
7915 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7916 NULL check.
7917
bf84f706
MR
79182020-02-19 Maciej W. Rozycki <macro@wdc.com>
7919
7920 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7921
d1c9b20f
AB
79222020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7923
7924 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7925 if GDBSERVER is not defined.
7926 (riscv_tdesc_cache): Likewise, also store const target_desc.
7927 (STATIC_IN_GDB): Define.
7928 (riscv_create_target_description): Update declaration with
7929 STATIC_IN_GDB.
7930 (riscv_lookup_target_description): New function, only define if
7931 GDBSERVER is not defined.
7932 * arch/riscv.h (riscv_create_target_description): Declare only
7933 when GDBSERVER is defined.
7934 (riscv_lookup_target_description): New declaration when GDBSERVER
7935 is not defined.
7936 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7937 (riscv_linux_read_features): ...this, and return
7938 riscv_gdbarch_features instead of target_desc.
7939 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7940 (riscv_linux_read_description): Rename to...
7941 (riscv_linux_read_features): ...this.
7942 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7943 Update to use riscv_gdbarch_features and
7944 riscv_lookup_target_description.
7945 * riscv-tdep.c (riscv_find_default_target_description): Use
7946 riscv_lookup_target_description instead of
7947 riscv_create_target_description.
7948
373d7ac0
SM
79492020-02-18 Simon Marchi <simon.marchi@efficios.com>
7950
7951 * valprint.c (generic_val_print_enum_1): When printing a flag
7952 enum with value 0 and there is no enumerator with value 0, print
7953 just "0" instead of "(unknown: 0x0)".
7954
b29a2df0
SM
79552020-02-18 Simon Marchi <simon.marchi@efficios.com>
7956
7957 * valprint.c (generic_val_print_enum_1): Print unknown part of
7958 flag enum in hex.
7959
6740f0cc
SM
79602020-02-18 Simon Marchi <simon.marchi@efficios.com>
7961
7962 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7963 flag enums to contain duplicate enumerators.
7964 * valprint.c (generic_val_print_enum_1): Update comment.
7965
edd45eb0
SM
79662020-02-18 Simon Marchi <simon.marchi@efficios.com>
7967
7968 * dwarf2/read.c: Include "count-one-bits.h".
7969 (update_enumeration_type_from_children): If an enumerator has
7970 multiple bits set, don't treat the enumeration as a "flag enum".
7971 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7972 of flag enums have 0 or 1 bit set.
7973
6d0cf446
BE
79742020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7975
7976 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7977 conversion.
7978 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7979 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7980 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7981 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7982 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7983
7001c1b7
SM
79842020-02-18 Simon Marchi <simon.marchi@efficios.com>
7985
7986 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7987
fdb61c6c
SM
79882020-02-14 Simon Marchi <simon.marchi@efficios.com>
7989
7990 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7991 displaced_step_closure_up.
7992 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7993 (struct displaced_step_closure_up):
7994 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7995 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7996 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7997 Likewise.
7998 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7999 * gdbarch.c, gdbarch.h: Re-generate.
8000 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8001 displaced_step_closure_up.
8002 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8003 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8004 * infrun.h (displaced_step_closure_up): New type alias.
8005 (struct displaced_step_inferior_state) <step_closure>: Change
8006 type to displaced_step_closure_up.
8007 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8008 displaced_step_closure_up.
8009 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8010
a4a38eb4
TT
80112020-02-14 Tom Tromey <tom@tromey.com>
8012
8013 * minidebug.c (gnu_debug_key): New global.
8014 (find_separate_debug_file_in_section): Use it.
8015
e8217e61
SM
80162020-02-14 Simon Marchi <simon.marchi@efficios.com>
8017
8018 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8019 std::unique_ptr.
8020 * gdbarch.c: Re-generate.
8021 * gdbarch.h: Re-generate.
8022 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8023 change.
8024 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8025 type to std::unique_ptr.
8026 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8027 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8028 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8029 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8030 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8031 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8032 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8033 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8034 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8035
d8d83535
SM
80362020-02-14 Simon Marchi <simon.marchi@efficios.com>
8037
8038 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8039 std::unique_ptr.
8040 (displaced_step_clear): Rename to...
8041 (displaced_step_reset): ... this. Just call displaced->reset ().
8042 (displaced_step_clear_cleanup): Rename to...
8043 (displaced_step_reset_cleanup): ... this.
8044 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8045 (displaced_step_fixup): Likewise.
8046 (resume_1): Likewise.
8047 (handle_inferior_event): Restore child's memory before calling
8048 displaced_step_fixup on the parent.
8049 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8050 to std::unique_ptr.
8051 <step_closure>: Change type to std::unique_ptr.
8052
5f661e03
SM
80532020-02-14 Simon Marchi <simon.marchi@efficios.com>
8054
8055 * arm-tdep.c: Include count-one-bits.h.
8056 (cleanup_block_store_pc): Use count_one_bits.
8057 (cleanup_block_load_pc): Use count_one_bits.
8058 (arm_copy_block_xfer): Use count_one_bits.
8059 (thumb2_copy_block_xfer): Use count_one_bits.
8060 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8061 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8062 (thumb_get_next_pcs_raw): Use count_one_bits.
8063 (arm_get_next_pcs_raw): Use count_one_bits_l.
8064 * arch/arm.c (bitcount): Remove.
8065 * arch/arm.h (bitcount): Remove.
8066
8084e579
TT
80672020-02-14 Tom Tromey <tromey@adacore.com>
8068
8069 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8070 Update.
8071 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8072 * dwarf2/loc.c (call_site_find_chain_1): Return
8073 unique_xmalloc_ptr.
8074 (call_site_find_chain): Likewise.
8075
258bf0ee
RB
80762020-02-14 Richard Biener <rguenther@suse.de>
8077
8078 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8079 on expression with division operators.
8080
f98a8458
AKS
80812020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8082
8083 * MAINTAINERS (Write After Approval): Adding myself.
8084
d1437c0e
TT
80852020-02-12 Tom Tromey <tom@tromey.com>
8086
8087 * event-loop.c (event_data, gdb_event, event_handler_func):
8088 Remove.
8089
3d4560f7
TT
80902020-02-12 Tom Tromey <tom@tromey.com>
8091
8092 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8093 (dwarf2_frame_objfile_data): Add comment.
8094 (find_comp_unit, set_comp_unit): New functions.
8095 (dwarf2_frame_find_fde): Use find_comp_unit.
8096 (dwarf2_build_frame_info): Use set_comp_unit.
8097
21982304
TT
80982020-02-12 Tom Tromey <tom@tromey.com>
8099
8100 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8101 (comp_unit): Don't initialize objfile.
8102 (execute_cfa_program): Add text_offset parameter.
8103 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8104 (dwarf2_frame_cache): Update.
8105 (dwarf2_build_frame_info): Don't set "objfile" member.
8106
4debb237
TT
81072020-02-12 Tom Tromey <tom@tromey.com>
8108
8109 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8110 (decode_frame_entry): Likewise.
8111 (dwarf2_build_frame_info): Update.
8112
0d404d44
TT
81132020-02-12 Tom Tromey <tom@tromey.com>
8114
8115 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8116 (decode_frame_entry_1): Use the comp_unit obstack.
8117
a7a3ae5c
TT
81182020-02-12 Tom Tromey <tom@tromey.com>
8119
8120 * dwarf2/frame.c (struct comp_unit): Add initializers and
8121 constructor.
8122 (dwarf2_frame_objfile_data): Store a comp_unit.
8123 (dwarf2_frame_find_fde): Update.
8124 (dwarf2_build_frame_info): Use "new".
8125
a9d65418
TT
81262020-02-12 Tom Tromey <tom@tromey.com>
8127
8128 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8129 (dwarf2_fde_table): Typedef for std::vector.
8130 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8131 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8132 (decode_frame_entry): Update.
8133 (dwarf2_build_frame_info): Use "new".
8134
7559c217
CB
81352020-02-12 Christian Biesinger <cbiesinger@google.com>
8136
8137 * arm-tdep.c (arm_gdbarch_init): Update.
8138 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8139 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8140 have_neon, is_m>: Change to bool.
8141
aeefc73c
CB
81422020-02-12 Christian Biesinger <cbiesinger@google.com>
8143
8144 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8145
d27b8e5f
TT
81462020-02-12 Tom Tromey <tom@tromey.com>
8147
8148 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8149
cd5900f3
HD
81502020-02-12 Hannes Domani <ssbssa@yahoo.de>
8151
8152 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8153 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8154
f056b22b
TT
81552020-02-11 Tom Tromey <tom@tromey.com>
8156
8157 * psymtab.h: Update comment.
8158
f92ff6b5
TT
81592020-02-11 Tom Tromey <tom@tromey.com>
8160
8161 * gdb_obstack.h (struct auto_obstack): Use
8162 DISABLE_COPY_AND_ASSIGN.
8163
3fd6912b
TT
81642020-02-11 Tom Tromey <tom@tromey.com>
8165
8166 * dwarf2/frame.h (struct objfile): Don't forward declare.
8167
69ed9b74
CB
81682020-02-11 Christian Biesinger <cbiesinger@google.com>
8169
8170 * cris-tdep.c (cris_supply_gregset): Change signature to match
8171 what struct regset expects.
8172 (cris_regset): New struct.
8173 (fetch_core_registers): Remove.
8174 (cris_iterate_over_regset_sections): New function.
8175 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8176 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8177
bda874f6
CB
81782020-02-11 Christian Biesinger <cbiesinger@google.com>
8179
8180 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8181 registers.
8182
754e1564
CB
81832020-02-11 Christian Biesinger <cbiesinger@google.com>
8184
8185 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8186
8ddd8e0e
SM
81872020-02-11 Simon Marchi <simon.marchi@efficios.com>
8188
8189 * configure: Re-generate.
8190
898e7f60
SM
81912020-02-11 Simon Marchi <simon.marchi@efficios.com>
8192
8193 * configure: Re-generate.
8194
58df732b
SM
81952020-02-11 Simon Marchi <simon.marchi@efficios.com>
8196
8197 * acinclude: Update warning.m4 path.
8198 * warning.m4: Move to gdbsupport.
8199
da5bd37e
TT
82002020-02-11 Tom Tromey <tromey@adacore.com>
8201
8202 * remote.c (remote_console_output): Update.
8203 * printcmd.c (printf_command): Update.
8204 * event-loop.c (gdb_wait_for_event): Update.
8205 * linux-nat.c (sigchld_handler): Update.
8206 * remote-sim.c (gdb_os_write_stdout): Update.
8207 (gdb_os_flush_stdout): Update.
8208 (gdb_os_flush_stderr): Update.
8209 (gdb_os_write_stderr): Update.
8210 * exceptions.c (print_exception): Update.
8211 * remote-fileio.c (remote_fileio_func_read): Update.
8212 (remote_fileio_func_write): Update.
8213 * tui/tui.c (tui_enable): Update.
8214 * tui/tui-interp.c (tui_interp::init): Update.
8215 * utils.c (init_page_info): Update.
8216 (putchar_unfiltered, fputc_unfiltered): Update.
8217 (gdb_flush): Update.
8218 (emit_style_escape): Update.
8219 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8220 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8221 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8222 (stderr_file::write): Update.
8223 (stderr_file::puts): Update.
8224 * ui-file.h (ui_file_isatty, ui_file_write)
8225 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8226 (ui_file_puts): Don't declare.
8227
85f0dd3c
TV
82282020-02-10 Tom de Vries <tdevries@suse.de>
8229
8230 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8231 sentinel to char *.
8232
2e927613
TV
82332020-02-09 Tom de Vries <tdevries@suse.de>
8234
8235 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8236 filename if it matches "<artificial>".
8237
6bafc845
HD
82382020-02-09 Hannes Domani <ssbssa@yahoo.de>
8239
8240 * windows-tdep.c (struct enum_value_name): New struct.
8241 (create_enum): New function.
8242 (windows_get_siginfo_type): Create and use enum types.
8243
7928d571
HD
82442020-02-09 Hannes Domani <ssbssa@yahoo.de>
8245
8246 * NEWS: Mention $_siginfo support for Windows.
8247 * windows-nat.c (handle_exception): Set siginfo_er.
8248 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8249 (windows_xfer_siginfo): New function.
8250 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8251 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8252 (init_windows_gdbarch_data): New function.
8253 (get_windows_gdbarch_data): New function.
8254 (windows_get_siginfo_type): New function.
8255 (windows_init_abi): Register windows_get_siginfo_type.
8256 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8257
6751ebae
TT
82582020-02-08 Tom Tromey <tom@tromey.com>
8259
8260 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8261 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8262 <keep>: Declare method.
8263 <m_keep>: Remove member.
8264 <~cutu_reader>: Remove.
8265 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8266 (cutu_reader::cutu_reader): Update.
8267 (cutu_reader::keep): Rename from ~cutu_reader.
8268 (process_psymtab_comp_unit, build_type_psymtabs_1)
8269 (process_skeletonless_type_unit, load_partial_comp_unit)
8270 (load_full_comp_unit, dwarf2_read_addr_index)
8271 (read_signatured_type): Update.
8272
135f5437
TT
82732020-02-08 Tom Tromey <tom@tromey.com>
8274
8275 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8276 "want_partial_unit" parameter.
8277 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8278 Inline check for DW_TAG_partial_unit.
8279 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8280
9f66ff1c
TT
82812020-02-08 Tom Tromey <tom@tromey.com>
8282
8283 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8284 read.c.
8285 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8286 read.c.
8287
c8a7a66f
TT
82882020-02-08 Tom Tromey <tom@tromey.com>
8289
8290 * dwarf2/read.c (read_address): Move to comp-unit.c.
8291 (dwarf2_rnglists_process, dwarf2_ranges_process)
8292 (read_attribute_value, dwarf_decode_lines_1)
8293 (var_decode_location, decode_locdesc): Update.
8294 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8295 read.c. Remove "cu" parameter.
8296 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8297 method.
8298
8266302d
TT
82992020-02-08 Tom Tromey <tom@tromey.com>
8300
8301 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8302 (read_indirect_line_string): Update.
8303 * dwarf2/comp-unit.c (read_offset): Remove.
8304 (read_comp_unit_head): Update.
8305 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8306 method.
8307 (read_offset): Don't declare.
8308
4057dfde
TT
83092020-02-08 Tom Tromey <tom@tromey.com>
8310
8311 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8312 * dwarf2/read.c (struct comp_unit_head): Move to
8313 dwarf2/comp-unit.h.
8314 (enum class rcuh_kind): Move to comp-unit.h.
8315 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8316 (read_comp_unit_head, error_check_comp_unit_head)
8317 (read_and_check_comp_unit_head): Move to comp-unit.c.
8318 (read_offset, dwarf_unit_type_name): Likewise.
8319 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8320 (cutu_reader::cutu_reader, read_call_site_scope)
8321 (find_partial_die, follow_die_offset): Update.
8322 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8323
24aa364d
TT
83242020-02-08 Tom Tromey <tom@tromey.com>
8325
8326 * dwarf2/read.c (read_offset_1): Move to leb.c.
8327 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8328 (dwarf_decode_macro_bytes): Update.
8329 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8330 * dwarf2/leb.h (read_offset): Declare.
8331
2c7d5afc
TT
83322020-02-08 Tom Tromey <tom@tromey.com>
8333
8334 * dwarf2/read.c (dwarf2_section_size): Remove.
8335 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8336 Update.
8337 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8338
4075cb26
TT
83392020-02-08 Tom Tromey <tom@tromey.com>
8340
8341 * dwarf2/read.c (read_initial_length): Move to leb.c.
8342 * dwarf2/leb.h (read_initial_length): Declare.
8343 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8344 handle_nonstd parameter.
8345 * dwarf2/frame.c (read_initial_length): Remove.
8346 (decode_frame_entry_1): Update.
8347
09ba997f
TT
83482020-02-08 Tom Tromey <tom@tromey.com>
8349
8350 * dwarf2/loc.c (dwarf2_find_location_expression)
8351 (dwarf_evaluate_loc_desc::get_tls_address)
8352 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8353 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8354 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8355 (dwarf2_compile_property_to_c)
8356 (dwarf2_loc_desc_get_symbol_read_needs)
8357 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8358 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8359 (loclist_describe_location, loclist_tracepoint_var_ref)
8360 (loclist_generate_c_location): Update.
8361 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8362 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8363 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8364 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8365 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8366 (dwarf2_per_cu_data::addr_size)
8367 (dwarf2_per_cu_data::ref_addr_size)
8368 (dwarf2_per_cu_data::text_offset)
8369 (dwarf2_per_cu_data::addr_type): Now methods.
8370 (per_cu_header_read_in): Make per_cu "const".
8371 (dwarf2_version): Remove.
8372 (dwarf2_per_cu_data::int_type): Now a method.
8373 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8374 (set_die_type, read_array_type, read_subrange_index_type)
8375 (read_tag_string_type, read_subrange_type): Update.
8376 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8377 offset_size, ref_addr_size, text_offset, addr_type, version,
8378 objfile, int_type, addr_sized_int_type>: Declare methods.
8379
96c738c0
TT
83802020-02-08 Tom Tromey <tom@tromey.com>
8381
8382 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8383 Move earlier.
8384
8fdd972c
TT
83852020-02-08 Tom Tromey <tom@tromey.com>
8386
8387 * dwarf2/read.h (dwarf_line_debug): Declare.
8388 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8389 * dwarf2/read.c: Move line_header code to new files.
8390 (dwarf_line_debug): No longer static.
8391 * dwarf2/line-header.c: New file.
8392 * dwarf2/line-header.h: New file.
8393
03075812
TT
83942020-02-08 Tom Tromey <tom@tromey.com>
8395
8396 * dwarf2/read.c (struct line_header) <file_full_name,
8397 file_file_name>: Return unique_xmalloc_ptr.
8398 (line_header::file_file_name): Update.
8399 (line_header::file_full_name): Update.
8400 (dw2_get_file_names_reader): Update.
8401 (macro_start_file): Update.
8402
bb822404
TT
84032020-02-08 Tom Tromey <tom@tromey.com>
8404
8405 * dwarf2/read.c (struct line_header) <file_full_name,
8406 file_file_name>: Declare methods.
8407 (dw2_get_file_names_reader): Update.
8408 (file_file_name): Now a method.
8409 (file_full_name): Likewise.
8410 (macro_start_file): Update.
8411
009b64fc
TT
84122020-02-08 Tom Tromey <tom@tromey.com>
8413
8414 * dwarf2/read.c (dwarf_always_disassemble)
8415 (show_dwarf_always_disassemble): Move to loc.c.
8416 (_initialize_dwarf2_read): Move "always-disassemble" registration
8417 to loc.c.
8418 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8419 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8420 static.
8421 (show_dwarf_always_disassemble): Move from read.c.
8422 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8423
5895093f
TT
84242020-02-08 Tom Tromey <tom@tromey.com>
8425
8426 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8427 (create_quick_file_names_table): Return htab_up.
8428 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8429 Update.
8430 * dwarf2/read.h (struct dwarf2_per_objfile)
8431 <quick_file_names_table>: Now htab_up.
8432
b3b32279
TT
84332020-02-08 Tom Tromey <tom@tromey.com>
8434
8435 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8436
1d33d811
TT
84372020-02-08 Tom Tromey <tom@tromey.com>
8438
8439 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8440 Rewrite.
8441 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8442 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8443 (abbrev_table::abbrev_table): No longer inline.
8444 (ABBREV_HASH_SIZE): Remove.
8445 (abbrev_table::m_abbrevs): Now an htab_up.
8446
86de1d91
TT
84472020-02-08 Tom Tromey <tom@tromey.com>
8448
8449 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8450 (cutu_reader): Update.
8451 (build_type_psymtabs_1): Update.
8452 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8453 (abbrev_table::alloc_abbrev): Update.
8454 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8455 (abbrev_table::read): New static method, renamed from
8456 abbrev_table_read_table.
8457 (abbrev_table::alloc_abbrev)
8458 (abbrev_table::add_abbrev): Now private.
8459 (abbrev_table::abbrev_table): Now private.
8460 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8461
0335378b
TT
84622020-02-08 Tom Tromey <tom@tromey.com>
8463
8464 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8465 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8466 htab_up.
8467
48b490f2
TT
84682020-02-08 Tom Tromey <tom@tromey.com>
8469
8470 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8471 htab_up.
8472 (lookup_dwo_unit_in_dwp): Update.
8473 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8474 on obstack.
8475
bc68fb19
TT
84762020-02-08 Tom Tromey <tom@tromey.com>
8477
8478 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8479 obstack.
8480
d15acc42
TT
84812020-02-08 Tom Tromey <tom@tromey.com>
8482
8483 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8484 line_header_hash.
8485 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8486 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8487 Change type to htab_up.
8488
eaa5fa8b
TT
84892020-02-08 Tom Tromey <tom@tromey.com>
8490
8491 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8492 htab_up. Don't allocate on obstack.
8493 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8494 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8495 Change type to htab_up.
8496
b0b6a987
TT
84972020-02-08 Tom Tromey <tom@tromey.com>
8498
8499 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8500 Change type to htab_up.
8501 * dwarf2/read.c (create_signatured_type_table_from_index)
8502 (create_signatured_type_table_from_debug_names)
8503 (create_all_type_units, add_type_unit)
8504 (lookup_dwo_signatured_type, lookup_signatured_type)
8505 (process_skeletonless_type_unit): Update.
8506 (create_debug_type_hash_table, create_debug_types_hash_table):
8507 Change type of types_htab.
8508 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8509 htab_up. Don't allocate on obstack.
8510 (create_cus_hash_table): Change type of cus_htab parameter.
8511 (struct dwo_file) <cus, tus>: Now htab_up.
8512 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8513 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8514 (queue_and_load_all_dwo_tus): Update.
8515 * dwarf2/index-write.c (write_gdbindex): Update.
8516 (write_debug_names): Update.
8517
39856def
TT
85182020-02-08 Tom Tromey <tom@tromey.com>
8519
8520 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8521 dwarf2/read.c. Remove "next" member. Add constructor ntad
8522 destructor.
8523 (struct dwarf2_per_objfile) <queue>: New member.
8524 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8525 dwarf2/read.h.
8526 (dwarf2_queue, dwarf2_queue_tail): Remove.
8527 (class dwarf2_queue_guard): Add parameter to constructor. Use
8528 DISABLE_COPY_AND_ASSIGN.
8529 <m_per_objfile>: New member.
8530 <~dwarf2_queue_guard>: Rewrite.
8531 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8532 Update.
8533 (~dwarf2_queue_item): New.
8534
3e225074
TT
85352020-02-08 Tom Tromey <tom@tromey.com>
8536
8537 * dwarf2/read.c (struct die_info) <has_children>: New member.
8538 (dw2_get_file_names_reader): Remove has_children.
8539 (dw2_get_file_names): Update.
8540 (read_cutu_die_from_dwo): Remove has_children.
8541 (cutu_reader::init_tu_and_read_dwo_dies)
8542 (cutu_reader::cutu_reader): Update.
8543 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8544 Remove has_children.
8545 (build_type_psymtabs_1, process_skeletonless_type_unit)
8546 (load_partial_comp_unit, load_full_comp_unit): Update.
8547 (create_dwo_cu_reader): Remove has_children.
8548 (create_cus_hash_table, read_die_and_children): Update.
8549 (read_full_die_1,read_full_die): Remove has_children.
8550 (read_signatured_type): Update.
8551 (class cutu_reader) <has_children>: Remove.
8552
82ca8957
TT
85532020-02-08 Tom Tromey <tom@tromey.com>
8554
8555 * dwarf2/expr.c: Rename from dwarf2expr.c.
8556 * dwarf2/expr.h: Rename from dwarf2expr.h.
8557 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8558 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8559 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8560 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8561 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8562 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8563 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8564 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8565 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8566 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8567 * dwarf2/loc.c: Rename from dwarf2loc.c.
8568 * dwarf2/loc.h: Rename from dwarf2loc.h.
8569 * dwarf2/read.c: Rename from dwarf2read.c.
8570 * dwarf2/read.h: Rename from dwarf2read.h.
8571 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8572 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8573 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8574 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8575 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8576 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8577 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8578 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8579 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8580 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8581 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8582 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8583 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8584 Update.
8585 * Makefile.in (COMMON_SFILES): Update.
8586 (HFILES_NO_SRCDIR): Update.
8587
9e35d499
TT
85882020-02-08 Tom Tromey <tom@tromey.com>
8589
8590 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8591 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8592
1eba2311
TT
85932020-02-08 Tom Tromey <tom@tromey.com>
8594
8595 * dwarf2read.h (struct die_info): Don't declare.
8596
e41c2da2
TT
85972020-02-08 Tom Tromey <tom@tromey.com>
8598
8599 * dwarf2read.h (die_info_ptr): Remove typedef.
8600
4fc6c0d5
TT
86012020-02-08 Tom Tromey <tom@tromey.com>
8602
8603 * dwarf2read.c (read_call_site_scope)
8604 (handle_data_member_location, dwarf2_add_member_fn)
8605 (mark_common_block_symbol_computed, read_common_block)
8606 (attr_to_dynamic_prop, partial_die_info::read)
8607 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8608 (dwarf2_symbol_mark_computed, set_die_type): Update.
8609 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8610 method.
8611 (attr_form_is_block): Don't declare.
8612 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8613
cd6c91b4
TT
86142020-02-08 Tom Tromey <tom@tromey.com>
8615
8616 * dwarf2read.c (dwarf2_find_base_address, )
8617 (read_call_site_scope, rust_containing_type)
8618 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8619 (handle_data_member_location, dwarf2_add_member_fn)
8620 (get_alignment, read_structure_type, process_structure_scope)
8621 (mark_common_block_symbol_computed, read_common_block)
8622 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8623 (partial_die_info::read, read_attribute_value, new_symbol)
8624 (lookup_die_type, dwarf2_get_ref_die_offset)
8625 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8626 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8627 (dwarf2_symbol_mark_computed): Update.
8628 * dwarf2/attribute.h (struct attribute) <value_as_address,
8629 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8630 methods.
8631 (value_as_address, attr_form_is_section_offset)
8632 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8633 * dwarf2/attribute.c (attribute::value_as_address)
8634 (attribute::form_is_section_offset, attribute::form_is_constant)
8635 (attribute::form_is_ref): Now methods.
8636
162dce55
TT
86372020-02-08 Tom Tromey <tom@tromey.com>
8638
8639 * dwarf2read.c (struct attribute, DW_STRING)
8640 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8641 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8642 (attr_form_is_block, attr_form_is_section_offset)
8643 (attr_form_is_constant, attr_form_is_ref): Move.
8644 * dwarf2/attribute.h: New file.
8645 * dwarf2/attribute.c: New file, from dwarf2read.c.
8646 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8647
3054dd54
TT
86482020-02-08 Tom Tromey <tom@tromey.com>
8649
8650 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8651 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8652 Move.
8653 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8654 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8655 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8656 abbrev.c.
8657 * dwarf2/abbrev.h: New file.
8658 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8659 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8660
96b79293
TT
86612020-02-08 Tom Tromey <tom@tromey.com>
8662
8663 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8664 (dwarf2_section_size, dwarf2_get_section_info)
8665 (create_signatured_type_table_from_debug_names)
8666 (create_addrmap_from_aranges, read_debug_names_from_section)
8667 (get_gdb_index_contents_from_section, read_comp_unit_head)
8668 (error_check_comp_unit_head, read_abbrev_offset)
8669 (create_debug_type_hash_table, init_cu_die_reader)
8670 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8671 (read_comp_units_from_section, create_cus_hash_table)
8672 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8673 (create_dwp_v2_section, dwarf2_rnglists_process)
8674 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8675 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8676 (read_indirect_string_from_dwz, read_addr_index_1)
8677 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8678 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8679 (fill_in_loclist_baton): Update.
8680 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8681 get_containing_section, get_bfd_owner, get_bfd_section,
8682 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8683 (dwarf2_read_section, get_section_name, get_section_file_name)
8684 (get_containing_section, get_section_bfd_owner)
8685 (get_section_bfd_section, get_section_name, get_section_file_name)
8686 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8687 declare.
8688 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8689 (dwarf2_section_info::get_bfd_owner)
8690 (dwarf2_section_info::get_bfd_section)
8691 (dwarf2_section_info::get_name)
8692 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8693 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8694 (dwarf2_section_info::read): Now methods.
8695 * dwarf-index-write.c (class debug_names): Update.
8696
2c86cff9
TT
86972020-02-08 Tom Tromey <tom@tromey.com>
8698
8699 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8700 Move to dwarf2/section.h.
8701 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8702 (get_section_bfd_section, get_section_name)
8703 (get_section_file_name, get_section_id, get_section_flags)
8704 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8705 dwarf2/section.c.
8706 * dwarf2/section.h: New file.
8707 * dwarf2/section.c: New file, from dwarf2read.c.
8708 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8709
f4382c45
TT
87102020-02-08 Tom Tromey <tom@tromey.com>
8711
8712 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8713 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8714 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8715 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8716 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8717 * dwarf2/leb.h: New file, from dwarf2read.c.
8718 * dwarf2/leb.c: New file, from dwarf2read.c.
8719 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8720 Remove.
8721 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8722 (COMMON_SFILES): Add dwarf2/leb.c.
8723
01840b7a
JB
87242020-02-08 Joel Brobecker <brobecker@adacore.com>
8725
8726 GDB 9.1 released.
8727
dfcb27e4
IB
87282020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8729
8730 PR gdb/25190:
aac66a4c
SM
8731 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8732 * gdb/remote.c (remote_console_output): Update.
8733 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8734 (ui_file_puts): ...this.
8735 * gdb/ui-file.h (ui_file_puts): Add declaration.
8736 * gdb/utils.c (emit_style_escape): Update.
8737 (flush_wrap_buffer): Update.
8738 (fputs_maybe_filtered): Update.
8739 (fputs_unfiltered): Add function.
dfcb27e4 8740
faa17681
IB
87412020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8742
aac66a4c
SM
8743 * gdb/event-loop.c (gdb_wait_for_event): Update.
8744 * gdb/printcmd.c (printf_command): Update.
8745 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8746 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8747 (gdb_os_flush_stderr): Update.
8748 * gdb/remote.c (remote_console_output): Update.
8749 * gdb/ui-file.c (gdb_flush): Rename to...
8750 (ui_file_flush): ...this.
8751 (stderr_file::write): Update.
8752 (stderr_file::puts): Update.
8753 * gdb/ui-file.h (gdb_flush): Rename to...
8754 (ui_file_flush): ...this.
8755 * gdb/utils.c (gdb_flush): Add function.
8756 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8757
5abbbe1d
TT
87582020-02-07 Tom Tromey <tromey@adacore.com>
8759
8760 PR breakpoints/24915:
8761 * source.c (find_and_open_source): Do not check basenames_may_differ.
8762
919adfe8
TT
87632020-02-07 Tom Tromey <tom@tromey.com>
8764
8765 * README: Update gdbserver documentation.
8766 * gdbserver: Move to top level.
8767 * configure.tgt (build_gdbserver): Remove.
8768 * configure.ac: Remove --enable-gdbserver.
8769 * configure: Rebuild.
8770 * Makefile.in (distclean): Don't mention gdbserver.
8771
1d5d29e7
SV
87722020-02-06 Shahab Vahedi <shahab@synopsys.com>
8773
8774 * source-cache.c (source_cache::ensure): Surround
8775 get_plain_source_lines with a try/catch.
8776 (source_cache::get_line_charpos): Get rid of try/catch
8777 and only check for the return value of "ensure".
8778 * tui/tui-source.c (tui_source_window::set_contents):
8779 Simplify "nlines" calculation.
8780
6eb1129c
SV
87812020-02-06 Shahab Vahedi <shahab@synopsys.com>
8782
8783 * MAINTAINERS (Write After Approval): Add myself.
8784
c6a42d11
CB
87852020-02-05 Christian Biesinger <cbiesinger@google.com>
8786
8787 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8788 function call.
8789
c8ecdda6
CB
87902020-02-05 Christian Biesinger <cbiesinger@google.com>
8791
8792 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8793
f6480e70
MR
87942020-02-05 Maciej W. Rozycki <macro@wdc.com>
8795
8796 * nat/riscv-linux-tdesc.h: New file.
8797 * nat/riscv-linux-tdesc.c: New file, taking code from...
8798 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8799 ... here.
8800 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8801 NATDEPFILES.
8802
dcc9fbc6
AB
88032020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8804
8805 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8806 we don't set the fake simulator ptid to the null_ptid.
8807
719546c4
SM
88082020-02-03 Simon Marchi <simon.marchi@efficios.com>
8809
8810 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8811 * gdbthread.h (class thread_info) <resumed>: Likewise.
8812 * infrun.c (resume_1): Likewise.
8813 (proceed): Likewise.
8814 (infrun_thread_stop_requested): Likewise.
8815 (stop_all_threads): Likewise.
8816 (handle_inferior_event): Likewise.
8817 (restart_threads): Likewise.
8818 (finish_step_over): Likewise.
8819 (keep_going_stepped_thread): Likewise.
8820 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8821 (linux_handle_extended_wait): Likewise.
8822 * record-btrace.c (get_thread_current_frame_id): Likewise.
8823 * record-full.c (record_full_wait_1): Likewise.
8824 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8825 * target.c (target_resume): Likewise.
8826 * thread.c (set_running_thread): Likewise.
8827
e409c542
AKS
88282020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8829
8830 * f-valprint.c (f77_print_array_1): Changed datatype of index
8831 variable to LONGEST from int to enable it to contain bound
8832 values correctly.
8833
ee98c0da
MR
88342020-02-03 Maciej W. Rozycki <macro@wdc.com>
8835
8836 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8837 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8838 offsets according to FLEN determined.
8839 (riscv_linux_nat_target::read_description): Determine FLEN
8840 dynamically.
8841 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8842 according to FLEN determined.
8843 (riscv_linux_nat_target::store_registers): Likewise.
8844
aa66aac4
SV
88452020-02-01 Shahab Vahedi <shahab@synopsys.com>
8846
8847 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8848 when reg->group is empty and reggroup is not.
8849
fd9faca8
TT
88502020-01-31 Tom Tromey <tromey@adacore.com>
8851
8852 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8853 Call beneath target's mourn_inferior after unpushing.
8854
42330a68
AB
88552020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8856
8857 PR tui/9765
8858 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8859 have enough lines to fill the screen, still return the lowest
8860 address we found.
8861
7a27a45b
AB
88622020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8863
8864 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8865 '-', '<', and '>' commands.
8866
c47f70e2
PA
88672020-01-29 Pedro Alves <palves@redhat.com>
8868 Sergio Durigan Junior <sergiodj@redhat.com>
8869
8870 * infcmd.c (construct_inferior_arguments): Assert that
8871 'argc' is greater than 0.
8872
5133a315
LM
88732020-01-29 Luis Machado <luis.machado@linaro.org>
8874
8875 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8876 (BRK_INSN_MASK): Define to 0xd4200000.
8877 (aarch64_program_breakpoint_here_p): New function.
8878 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8879 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8880 breakpoint.c.
8881 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8882 breakpoint.h
8883 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8884 call gdbarch_program_breakpoint_here_p.
8885 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8886 default_program_breakpoint_here_p, changed return type to bool and
8887 simplified.
8888 * breakpoint.h (program_breakpoint_here): Moved prototype to
8889 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8890 return type to bool.
8891 * gdbarch.c: Regenerate.
8892 * gdbarch.h: Regenerate.
8893 * gdbarch.sh (program_breakpoint_here_p): New method.
8894 * infrun.c (handle_signal_stop): Call
8895 gdbarch_program_breakpoint_here_p.
8896
168f8c6b
TT
88972020-01-26 Tom Tromey <tom@tromey.com>
8898
8899 * ctfread.c (struct ctf_fp_info): Reindent.
8900 (_initialize_ctfread): Remove.
8901
128a391f
TT
89022020-01-26 Tom Tromey <tom@tromey.com>
8903
8904 * psymtab.c (partial_map_expand_apply)
8905 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8906 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8907 (psym_print_stats, psym_expand_symtabs_for_function)
8908 (psym_map_symbol_filenames, psym_map_matching_symbols)
8909 (psym_expand_symtabs_matching)
8910 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8911 (maintenance_check_psymtabs): Use new methods.
8912 * psympriv.h (struct partial_symtab) <readin_p,
8913 get_compunit_symtab>: New methods.
8914 <readin, compunit_symtab>: Remove members.
8915 (struct standard_psymtab): New.
8916 (struct legacy_psymtab): Derive from standard_psymtab.
8917 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8918 standard_psymtab.
8919 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8920
0494dbec
TT
89212020-01-26 Tom Tromey <tom@tromey.com>
8922
8923 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8924 read_dependencies. Add assert.
8925 * psymtab.c (partial_symtab::read_dependencies): New method.
8926 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8927 method.
8928 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8929 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8930 read_dependencies.
8931 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8932 Add assert.
8933
8566b89b
TT
89342020-01-26 Tom Tromey <tom@tromey.com>
8935
8936 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8937 Call expand_psymtab.
8938 (xcoff_read_symtab): Call expand_psymtab.
8939 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8940 legacy_expand_psymtab.
8941 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8942 method.
8943 (struct legacy_psymtab) <expand_psymtab>: Implement.
8944 <legacy_expand_psymtab>: New member.
8945 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8946 (parse_partial_symbols): Set legacy_expand_psymtab.
8947 (psymtab_to_symtab_1): Change argument order. Call
8948 expand_psymtab.
8949 (new_psymtab): Set legacy_expand_psymtab.
8950 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8951 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8952 expand_psymtab.
8953 (dwarf2_psymtab::expand_psymtab): Rename from
8954 psymtab_to_symtab_1. Call expand_psymtab.
8955 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8956 (dbx_end_psymtab): Likewise.
8957 (dbx_psymtab_to_symtab_1): Change argument order. Call
8958 expand_psymtab.
8959 (dbx_read_symtab): Call expand_psymtab.
8960 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8961 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8962 (ctf_psymtab::read_symtab): Call expand_psymtab.
8963
077cbab2
TT
89642020-01-26 Tom Tromey <tom@tromey.com>
8965
8966 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8967 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8968 messages.
8969 * mdebugread.c (mdebug_read_symtab): Remove prints.
8970 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8971 assert.
8972 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8973
891813be
TT
89742020-01-26 Tom Tromey <tom@tromey.com>
8975
8976 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8977 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8978 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8979 legacy_symtab.
8980 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8981 * psymtab.c (psymtab_to_symtab): Call method.
8982 (dump_psymtab): Update.
8983 * psympriv.h (struct partial_symtab): Add virtual destructor.
8984 <read_symtab>: New method.
8985 (struct legacy_symtab): New.
8986 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8987 (struct pst_map) <pst>: Now a legacy_psymtab.
8988 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8989 (new_psymtab): Use legacy_psymtab.
8990 * dwarf2read.h (struct dwarf2_psymtab): New.
8991 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8992 * dwarf2read.c (dwarf2_create_include_psymtab)
8993 (dwarf2_build_include_psymtabs, create_type_unit_group)
8994 (create_partial_symtab, process_psymtab_comp_unit_reader)
8995 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8996 (set_partial_user): Use dwarf2_psymtab.
8997 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8998 (psymtab_to_symtab_1, process_full_comp_unit)
8999 (process_full_type_unit, dwarf2_ranges_read)
9000 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9001 (dwarf_decode_lines): Use dwarf2_psymtab.
9002 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9003 (add_address_entry_worker, write_one_signatured_type)
9004 (recursively_count_psymbols, recursively_write_psymbols)
9005 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9006 (write_debug_names): Likewise.
9007 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9008 <pst>: Now a legacy_psymtab.
9009 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9010 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9011 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9012 * ctfread.c (struct ctf_psymtab): New.
9013 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9014 ctf_psymtab.
9015 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9016 (create_partial_symtab): Return a ctf_psymtab.
9017 (scan_partial_symbols): Update.
9018
c3693a1d
TT
90192020-01-26 Tom Tromey <tom@tromey.com>
9020
9021 * xcoffread.c (xcoff_start_psymtab): Use new.
9022 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9023 renamed from start_psymtab_common.
9024 * psympriv.h (struct partial_symtab): Add new constructor.
9025 (start_psymtab_common): Don't declare.
9026 * mdebugread.c (parse_partial_symbols): Use new.
9027 * dwarf2read.c (create_partial_symtab): Use new.
9028 * dbxread.c (start_psymtab): Use new.
9029 * ctfread.c (create_partial_symtab): Use new.
9030
32caafd0
TT
90312020-01-26 Tom Tromey <tom@tromey.com>
9032
9033 * xcoffread.c (xcoff_end_psymtab): Use new.
9034 * psymtab.c (start_psymtab_common): Use new.
9035 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9036 Update.
9037 * psympriv.h (struct partial_symtab): Add parameters to
9038 constructor. Don't inline.
9039 (allocate_psymtab): Don't declare.
9040 * mdebugread.c (new_psymtab): Use new.
9041 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9042 * dbxread.c (dbx_end_psymtab): Use new.
9043
abaa2f23
TT
90442020-01-26 Tom Tromey <tom@tromey.com>
9045
9046 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9047 allocate_psymtab. Update documentation.
9048 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9049 allocate_psymtab. Do not use new.
9050 (allocate_psymtab): Use new. Update.
9051
6d94535f
TT
90522020-01-26 Tom Tromey <tom@tromey.com>
9053
9054 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9055 * psymtab.c (psym_print_stats): Update.
9056 * psympriv.h (struct partial_symtab) <readin,
9057 psymtabs_addrmap_supported, anonymous>: Now bool.
9058 * mdebugread.c (psymtab_to_symtab_1): Update.
9059 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9060 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9061 (process_full_comp_unit, process_full_type_unit): Update.
9062 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9063 * ctfread.c (psymtab_to_symtab): Update.
9064
6f17252b
TT
90652020-01-26 Tom Tromey <tom@tromey.com>
9066
9067 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9068 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9069 * psymtab.c (psymtab_storage): Delete psymtabs.
9070 (psymtab_storage::allocate_psymtab): Use new.
9071 (psymtab_storage::discard_psymtab): Use delete.
9072 * psympriv.h (struct partial_symtab): Add constructor and
9073 initializers.
9074
f6f1cebc
TT
90752020-01-26 Tom Tromey <tom@tromey.com>
9076
9077 * machoread.c: Do not include psympriv.h.
9078
e47e48f6
PW
90792020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9080
9081 * NEWS: Mention the new option and the set/show commands.
9082
a2fedca9
PW
90832020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9084
9085 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9086 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9087 (validate_exec_file): New variables, enums, functions.
9088 (exec_file_locate_attach, print_section_info): Style the filenames.
9089 (_initialize_exec): Install show_exec_file_mismatch_command and
9090 set_exec_file_mismatch_command.
9091 * gdbcore.h (validate_exec_file): Declare.
9092 * infcmd.c (attach_command): Call validate_exec_file.
9093 * remote.c ( remote_target::remote_add_inferior): Likewise.
9094
7ffa82e1
AB
90952020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9096
9097 * frame.c (find_frame_sal): Move call to get_next_frame into more
9098 inner scope.
9099 * inline-frame.c (inilne_state) <inline_state>: Update argument
9100 types.
9101 (inilne_state) <skipped_symbol>: Rename to...
9102 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9103 (skip_inline_frames): Build vector of skipped symbols and use this
9104 to reate the inline_state.
9105 (inline_skipped_symbol): Add a comment and some assertions, fetch
9106 skipped symbol from the list.
9107
3d92a3e3
AB
91082020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9109
9110 * buildsym.c (lte_is_less_than): Delete.
9111 (buildsym_compunit::end_symtab_with_blockvector): Create local
9112 lambda function to sort line table entries, and use
9113 std::stable_sort instead of std::sort.
9114 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9115 markers when looking for a previous line.
9116
94a72be7
AB
91172020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9118
9119 * dwarf2read.c (lnp_state_machine::record_line): Include
9120 end_sequence parameter in debug print out. Record the line if we
9121 are at an end_sequence marker even if it's not the start of a
9122 statement.
9123 * symmisc.c (maintenance_print_one_line_table): Print end of
9124 sequence markers with 'END' not '0'.
9125
53af73bf
PA
91262020-01-24 Pedro Alves <palves@redhat.com>
9127
9128 PR gdb/25410
9129 * thread.c (scoped_restore_current_thread::restore): Use
9130 switch_to_inferior_no_thread.
9131 * exec.c: Include "progspace-and-thread.h".
9132 (add_target_sections, remove_target_sections):
9133 scoped_restore_current_pspace_and_thread instead of
9134 scoped_restore_current_thread.
9135 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9136 and aspace to the inferior before calling clone_program_space.
9137 Remove stale comment.
9138
3050c6f4
CB
91392020-01-24 Christian Biesinger <cbiesinger@google.com>
9140
9141 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9142 (arm_netbsd_nat_target::fetch_registers): ...this.
9143 (arm_nbsd_nat_target::store_registers): Rename to...
9144 (arm_netbsd_nat_target::store_registers): ...this.
9145
73685c7e
CB
91462020-01-24 Christian Biesinger <cbiesinger@google.com>
9147
9148 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9149 register_t.
9150
89203d40
CB
91512020-01-24 Christian Biesinger <cbiesinger@google.com>
9152
9153 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9154 Update comment.
9155 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9156 Likewise.
9157 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9158 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9159 the correct replacement (iterate_over_regset_sections).
9160 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9161 Update comment.
9162
1ba1ac88
AB
91632020-01-24 Graham Markall <graham.markall@embecosm.com>
9164
9165 PR gdb/23718
9166 * gdb/python/python.c (execute_gdb_command): Call
9167 async_enable_stdin in catch block.
9168
f3364a6d
AB
91692020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9170
9171 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9172 SWITCH_THRU_ALL_UIS.
9173
733d0a67
AB
91742020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9175
9176 PR tui/9765
9177 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9178 comment, add extra parameter, and update to store previous symbol
9179 when appropriate.
9180 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9181 add extra parameter.
9182 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9183 remove unneeded parameter, add try/catch around gdb_print_insn,
9184 rewrite to add items to asm_lines vector.
9185 (tui_find_backward_disassembly_start_address): New function.
9186 (tui_find_disassembly_address): Updated throughout.
9187 (tui_disasm_window::set_contents): Update for changes to
9188 tui_disassemble.
9189 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9190 number of lines to scroll.
9191
b3b3bada
SM
91922020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9193
9194 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9195 (SECT_OFF_DATA): Likewise.
9196 (SECT_OFF_RODATA): Likewise.
9197 (SECT_OFF_TEXT): Likewise.
9198 (SECT_OFF_BSS): Likewise.
9199 (struct objfile) <text_section_offset, data_section_offset>: New
9200 methods.
9201 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9202 objfile::text_section_offset.
9203 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9204 * coffread.c (coff_symtab_read): Likewise.
9205 (enter_linenos): Likewise.
9206 (process_coff_symbol): Likewise.
9207 * ctfread.c (get_objfile_text_range): Likewise.
9208 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9209 Use objfile::data_section_offset.
9210 * dwarf2-frame.c (execute_cfa_program): Use
9211 objfile::text_section_offset.
9212 (dwarf2_frame_find_fde): Likewise.
9213 * dwarf2read.c (create_addrmap_from_index): Likewise.
9214 (create_addrmap_from_aranges): Likewise.
9215 (dw2_find_pc_sect_compunit_symtab): Likewise.
9216 (process_psymtab_comp_unit_reader): Likewise.
9217 (add_partial_symbol): Likewise.
9218 (add_partial_subprogram): Likewise.
9219 (process_full_comp_unit): Likewise.
9220 (read_file_scope): Likewise.
9221 (read_func_scope): Likewise.
9222 (read_lexical_block_scope): Likewise.
9223 (read_call_site_scope): Likewise.
9224 (dwarf2_rnglists_process): Likewise.
9225 (dwarf2_ranges_process): Likewise.
9226 (dwarf2_ranges_read): Likewise.
9227 (dwarf_decode_lines_1): Likewise.
9228 (new_symbol): Likewise.
9229 (dwarf2_fetch_die_loc_sect_off): Likewise.
9230 (dwarf2_per_cu_text_offset): Likewise.
9231 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9232 * hppa-tdep.c (read_unwind_info): Likewise.
9233 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9234 * psympriv.h (struct partial_symtab): Likewise.
9235 * psymtab.c (find_pc_sect_psymtab): Likewise.
9236 * solib-svr4.c (enable_break): Likewise.
9237 * stap-probe.c (relocate_address): Use
9238 objfile::data_section_offset.
9239 * xcoffread.c (enter_line_range): Use
9240 objfile::text_section_offset.
9241 (read_xcoff_symtab): Likewise.
9242
ab53f382
SM
92432020-01-23 Simon Marchi <simon.marchi@efficios.com>
9244
9245 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9246 declaration to narrower scopes.
9247
e7eee665
SM
92482020-01-23 Simon Marchi <simon.marchi@efficios.com>
9249
9250 * darwin-nat.h (struct darwin_exception_msg, enum
9251 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9252 Move up.
9253 (class darwin_nat_target) <wait_1, check_new_threads,
9254 decode_exception_message, decode_message, stop_inferior,
9255 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9256 * darwin-nat.c (darwin_check_new_threads): Rename to...
9257 (darwin_nat_target::check_new_threads): ... this.
9258 (darwin_suspend_inferior_it): Remove.
9259 (darwin_decode_exception_message): Rename to...
9260 (darwin_nat_target::decode_exception_message): ... this.
9261 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9262 (darwin_decode_message): Rename to...
9263 (darwin_nat_target::decode_message): ... this.
9264 (cancel_breakpoint): Rename to...
9265 (darwin_nat_target::cancel_breakpoint): ... this.
9266 (darwin_wait): Rename to...
9267 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9268 instead of iterate_over_inferiors.
9269 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9270 (darwin_stop_inferior): Rename to...
9271 (darwin_nat_target::stop_inferior): ... this.
9272 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9273 (darwin_init_thread_list): Rename to...
9274 (darwin_nat_target::init_thread_list): ... this.
9275 (darwin_ptrace_him): Rename to...
9276 (darwin_nat_target::ptrace_him): ... this.
9277 (darwin_nat_target::create_inferior): Pass lambda function to
9278 fork_inferior.
9279 (darwin_nat_target::detach): Call stop_inferior instead of
9280 darwin_stop_inferior.
9281 * fork-inferior.h (fork_inferior): Change init_trace_fun
9282 parameter to gdb::function_view.
9283 * fork-inferior.c (fork_inferior): Likewise.
9284
c162ed3e
HD
92852020-01-23 Hannes Domani <ssbssa@yahoo.de>
9286
9287 * i386-cygwin-tdep.c (core_process_module_section): Update.
9288 * windows-nat.c (struct lm_info_windows): Add text_offset.
9289 (windows_xfer_shared_libraries): Update.
9290 * windows-tdep.c (windows_xfer_shared_library):
9291 Add text_offset_cached argument.
9292 * windows-tdep.h (windows_xfer_shared_library): Update.
9293
a1237872
SM
92942020-01-21 Simon Marchi <simon.marchi@efficios.com>
9295
9296 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9297
b3ee6dd9
SM
92982020-01-21 Simon Marchi <simon.marchi@efficios.com>
9299
9300 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9301 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9302 replace with range-based for.
9303 (gdbsim_interrupt_inferior): Remove.
9304 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9305 with a range-based for. Inline code from
9306 gdbsim_interrupt_inferior.
9307
f9fac3c8
SM
93082020-01-21 Simon Marchi <simon.marchi@efficios.com>
9309
9310 * infrun.c (proceed): Fix indentation.
9311
f6474de9
TT
93122020-01-21 Tom Tromey <tromey@adacore.com>
9313
9314 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9315 * python/python.c (python_extension_ops): Update.
9316 (gdbpy_colorize): New function.
9317 * python/lib/gdb/__init__.py (colorize): New function.
9318 * extension.h (ext_lang_colorize): Declare.
9319 * extension.c (ext_lang_colorize): New function.
9320 * extension-priv.h (struct extension_language_ops) <colorize>: New
9321 member.
9322 * cli/cli-style.c (_initialize_cli_style): Update help text.
9323
f0c702d4
LM
93242020-01-21 Luis Machado <luis.machado@linaro.org>
9325
9326 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9327 <cond>: Change type to bool.
9328 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9329 (aarch64_displaced_step_cb): Likewise.
9330 (aarch64_displaced_step_tb): Likewise.
9331
1ab139e5
LM
93322020-01-21 Luis Machado <luis.machado@linaro.org>
9333
9334 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9335 output.
9336
0c271889
LM
93372020-01-21 Luis Machado <luis.machado@linaro.org>
9338
9339 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9340 <pc_adjust>: Adjust the documentation.
9341 (aarch64_displaced_step_fixup): Check if PC really moved before
9342 adjusting it.
9343
4d89c1c7
TT
93442020-01-19 Tom Tromey <tom@tromey.com>
9345
9346 * disasm.c (~gdb_disassembler): New destructor.
9347 (gdb_buffered_insn_length): Call disassemble_free_target.
9348 * disasm.h (class gdb_disassembler): Declare destructor. Use
9349 DISABLE_COPY_AND_ASSIGN.
9350
c0ab21c2
TT
93512020-01-19 Tom Tromey <tom@tromey.com>
9352
9353 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9354 (die_reader_func_ftype): Remove.
9355 (cutu_reader): New class.
9356 (dw2_get_file_names_reader): Remove "data" parameter.
9357 (dw2_get_file_names): Use cutu_reader.
9358 (create_debug_type_hash_table): Update.
9359 (read_cutu_die_from_dwo): Update comment.
9360 (lookup_dwo_unit): Add dwo_name parameter.
9361 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9362 die_reader_func_ftype and data parameters.
9363 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9364 Remove die_reader_func_ftype and data parameters.
9365 (~cutu_reader): New; from init_cutu_and_read_dies.
9366 (cutu_reader::cutu_reader): Rename from
9367 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9368 and data parameters.
9369 (init_cutu_and_read_dies_simple): Remove.
9370 (struct process_psymtab_comp_unit_data): Remove.
9371 (process_psymtab_comp_unit_reader): Remove data parameter; add
9372 want_partial_unit and pretend_language parameters.
9373 (process_psymtab_comp_unit): Use cutu_reader.
9374 (build_type_psymtabs_reader): Remove data parameter.
9375 (build_type_psymtabs_1): Use cutu_reader.
9376 (process_skeletonless_type_unit): Likewise.
9377 (load_partial_comp_unit_reader): Remove.
9378 (load_partial_comp_unit): Use cutu_reader.
9379 (load_full_comp_unit_reader): Remove.
9380 (load_full_comp_unit): Use cutu_reader.
9381 (struct create_dwo_cu_data): Remove.
9382 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9383 dwo_unit parameters.
9384 (create_cus_hash_table): Use cutu_reader.
9385 (struct dwarf2_read_addr_index_data): Remove.
9386 (dwarf2_read_addr_index_reader): Remove.
9387 (dwarf2_read_addr_index): Use cutu_reader.
9388 (read_signatured_type_reader): Remove.
9389 (read_signatured_type): Use cutu_reader.
9390
45bbae5c
TT
93912020-01-19 Tom Tromey <tom@tromey.com>
9392
9393 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9394 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9395 (tui_wrefresh): Declare.
9396 * tui/tui-wingeneral.c (suppress_output): New global.
9397 (tui_suppress_output, ~tui_suppress_output): New constructor and
9398 destructor.
9399 (tui_wrefresh): New function.
9400 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9401 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9402 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9403 method.
9404 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9405 tui_wrefresh.
9406 (tui_data_window::no_refresh): New method.
9407 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9408 (tui_reg_command): Use tui_suppress_output
9409 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9410 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9411 method.
9412 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9413
4f13c1c0
TT
94142020-01-19 Tom Tromey <tom@tromey.com>
9415
9416 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9417 Handle case where symtab is null.
9418
fa47e446
SM
94192020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9420
9421 * linux-fork.c (one_fork_p): Simplify.
9422
26f42329
SM
94232020-01-17 Simon Marchi <simon.marchi@efficios.com>
9424
9425 * top.c (struct qt_args): Remove.
9426 (kill_or_detach): Change return type to void, replace `void *`
9427 parameter with a proper one.
9428 (print_inferior_quit_action): Likewise.
9429 (quit_confirm): Use range-based for loop to iterate over inferiors.
9430 (quit_force): Likewise.
9431
a9ac81b1
SM
94322020-01-17 Simon Marchi <simon.marchi@efficios.com>
9433
9434 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9435 `void *` parameter with proper parameters.
9436 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9437 (print_one_inferior): Change return type to void, replace `void *`
9438 parameter with proper parameters.
9439 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9440 inferiors.
9441 (get_other_inferior): Remove.
9442 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9443 inferiors.
9444
788eca49
SM
94452020-01-17 Simon Marchi <simon.marchi@efficios.com>
9446
9447 * mi/mi-interp.c (report_initial_inferior): Remove.
9448 (mi_interp::init): Use range-based for to iterate over inferiors.
9449
d9bc85b6
SM
94502020-01-17 Simon Marchi <simon.marchi@efficios.com>
9451
9452 * python/py-inferior.c (build_inferior_list): Remove.
9453 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9454
40c94099
CB
94552020-01-16 Christian Biesinger <cbiesinger@google.com>
9456
9457 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9458 (btrace_stitch_trace): Likewise.
9459 * charset.c (intermediate_encoding): Likewise (vaild).
9460 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9461 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9462 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9463
e0cdfe3c
HD
94642020-01-16 Hannes Domani <ssbssa@yahoo.de>
9465
9466 * windows-tdep.c (windows_get_tlb_type):
9467 Add rtl_user_process_parameters type.
9468
790f1718 94692020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9470 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9471
9472 PR build/24805
9473 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9474 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9475 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9476 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9477 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9478 (ps_plog): Redeclare exported functions with default visibility.
9479
3112ed97
NA
94802020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9481
9482 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9483 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9484
8dc3273e
SM
94852020-01-15 Simon Marchi <simon.marchi@efficios.com>
9486
9487 * infcmd.c (post_create_inferior): Use get_thread_regcache
9488 instead of get_current_regcache.
9489
ff47f4f0
TT
94902020-01-14 Tom Tromey <tom@tromey.com>
9491
9492 PR symtab/12535:
9493 * python/python.c (gdbpy_decode_line): Treat empty string the same
9494 as no argument.
9495
975f45b7
TT
94962020-01-14 Tom Tromey <tom@tromey.com>
9497
9498 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9499
25e57356
TT
95002020-01-14 Tom Tromey <tom@tromey.com>
9501
9502 * nat/linux-btrace.c: Don't include <config.h>.
9503 * nat/linux-ptrace.c: Don't include <config.h>.
9504 * nat/x86-linux-dregs.c: Don't include <config.h>.
9505
05ea2a05
TT
95062020-01-14 Tom Tromey <tom@tromey.com>
9507
9508 * configure: Rebuild.
9509 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9510
01027315
TT
95112020-01-14 Tom Tromey <tom@tromey.com>
9512
9513 * nat/x86-linux-dregs.c: Include configh.h.
9514 * nat/linux-ptrace.c: Include configh.h.
9515 * nat/linux-btrace.c: Include configh.h.
9516 * defs.h: Include config.h, bfd.h.
9517 * configure.ac: Don't source common.host.
9518 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9519 * configure: Rebuild.
9520 * acinclude.m4: Update path.
9521 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9522 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9523 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9524 (CLIBS): Add LIBSUPPORT.
9525 (CDEPS): Likewise.
9526 (COMMON_SFILES): Remove gdbsupport files.
9527 (HFILES_NO_SRCDIR): Likewise.
9528 (stamp-version): Update path to create-version.sh.
9529 (ALLDEPFILES): Remove gdbsupport files.
9530
b2ceabe8
TT
95312020-01-14 Tom Tromey <tom@tromey.com>
9532
9533 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9534 USE_WIN32API when needed.
9535 * configure.ac (USE_WIN32API): Don't define.
9536 (WIN32LIBS): Use WIN32APILIBS.
9537 * configure: Rebuild.
9538
25c51f71
TT
95392020-01-14 Tom Tromey <tom@tromey.com>
9540
9541 * configure: Rebuild.
9542 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9543
717c684d
BE
95442020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9545
9546 * skip.c (skip_function_command): Make skip w/o arguments use the
9547 name of the inlined function if pc is inside any inlined function.
9548
7da6a5b9
LM
95492020-01-14 Luis Machado <luis.machado@linaro.org>
9550
9551 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9552 * infrun.c (resume_1): Likewise.
9553 (handle_inferior_event): Remove stale comment.
9554 * linux-nat.c (linux_nat_target::resume): Update comments.
9555 (save_stop_reason): Likewise.
9556 (linux_nat_filter_event): Likewise.
9557 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9558
44e4c775
AB
95592020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9560
9561 * elfread.c (record_minimal_symbol): Set section index to 0 for
9562 non-allocatable sections.
9563
18a8505e
AT
9564
95652020-01-13 Ali Tamur <tamur@google.com>
9566
9567 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9568 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9569 to gdb::optional. Update comments.
9570 (dwo_file): Update comments.
9571 (read_attribute): Update API to take an additional out parameter,
9572 need_reprocess. This is used to mark attributes that need other
9573 attributes (e.g. str_offsets_base) for correct computation which may not
9574 have been read yet.
9575 (read_attribute_reprocess): New function declaration.
9576 (read_addr_index): Likewise.
9577 (read_dwo_str_index): Likewise.
9578 (read_stub_str_index): Likewise.
9579 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9580 (lookup_addr_base): New function definition.
9581 (lookup_ranges_base): Likewise.
9582 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9583 lookup_ranges_base.
9584 (init_cutu_and_read_dies): Update comments.
9585 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9586 unit. This is used to inherit parent's str_offsets_base and addr_base.
9587 Update comments.
9588 (init_cutu_and_read_dies_simple): Reflect API changes.
9589 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9590 (create_cus_hash_table): Change API to take parent compile unit.
9591 Reflect API changes.
9592 (open_and_init_dwo_file): Reflect API changes.
9593 (dwarf2_get_pc_bounds): Update comments.
9594 (dwarf2_record_block_ranges): Likewise.
9595 (read_full_die_1): Change implementation to reprocess attributes that
9596 need str_offsets_base and addr_base.
9597 (partial_die_info::read): Likewise.
9598 (read_attribute_reprocess): New function definition.
9599 (read_attribute_value): Change API to take an additional out parameter,
9600 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9601 when a non-dwo compile unit has index based attributes.
9602 (read_attribute): Reflect API changes.
9603 (read_addr_index_1): Reflect API changes. Update comments.
9604 (dwarf2_read_addr_index_data): Reflect API changes.
9605 (dwarf2_read_addr_index): Likewise.
9606 (read_str_index): Change API and implementation. This becomes a helper
9607 to be used by the new string index related methods. Update error
9608 message and comments.
9609 (read_dwo_str_index): New function definition.
9610 (read_stub_str_index): Likewise.
9611 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9612 * symfile.h (dwarf2_debug_sections): Likewise.
9613 * xcoffread.c (dwarf2_debug_sections): Likewise.
9614
0cac9354
SM
96152020-01-13 Simon Marchi <simon.marchi@efficios.com>
9616
9617 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9618 core_reg_sect type to gdb_byte *.
9619 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9620 * cris-tdep.c (fetch_core_registers): Likewise.
9621 * corelow.c (core_target::get_core_register_section): Change
9622 type of `contents` to gdb::byte_vector.
9623
9a6d629c
AB
96242020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9625
9626 * tui/tui-wingeneral.c (box_win): Position the title in the center
9627 of the border.
9628
d8b2f9e3
SM
96292020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9630
9631 * corelow.c (core_target::get_core_register_section): Use
9632 std::vector instead of alloca.
9633
bb564c58
SM
96342020-01-13 Simon Marchi <simon.marchi@efficios.com>
9635
9636 * warning.m4: Add -Wmissing-declarations to build_warnings.
9637 * configure: Re-generate.
9638
6b366111
SM
96392020-01-13 Simon Marchi <simon.marchi@efficios.com>
9640
9641 * python/python.c (init__gdb_module): Add declaration.
9642
6c265988
SM
96432020-01-13 Simon Marchi <simon.marchi@efficios.com>
9644
9645 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9646 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9647 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9648 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9649 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9650 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9651 * ada-exp.y (_initialize_ada_exp): Add declaration.
9652 * ada-lang.c (_initialize_ada_language): Add declaration.
9653 * ada-tasks.c (_initialize_tasks): Add declaration.
9654 * agent.c (_initialize_agent): Add declaration.
9655 * aix-thread.c (_initialize_aix_thread): Add declaration.
9656 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9657 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9658 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9659 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9660 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9661 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9662 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9663 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9664 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9665 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9666 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9667 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9668 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9669 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9670 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9671 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9672 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9673 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9674 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9675 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9676 * annotate.c (_initialize_annotate): Add declaration.
9677 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9678 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9679 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9680 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9681 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9682 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9683 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9684 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9685 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9686 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9687 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9688 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9689 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9690 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9691 * auto-load.c (_initialize_auto_load): Add declaration.
9692 * auxv.c (_initialize_auxv): Add declaration.
9693 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9694 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9695 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9696 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9697 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9698 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9699 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9700 * breakpoint.c (_initialize_breakpoint): Add declaration.
9701 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9702 * btrace.c (_initialize_btrace): Add declaration.
9703 * charset.c (_initialize_charset): Add declaration.
9704 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9705 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9706 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9707 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9708 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9709 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9710 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9711 * coffread.c (_initialize_coffread): Add declaration.
9712 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9713 * compile/compile.c (_initialize_compile): Add declaration.
9714 * complaints.c (_initialize_complaints): Add declaration.
9715 * completer.c (_initialize_completer): Add declaration.
9716 * copying.c (_initialize_copying): Add declaration.
9717 * corefile.c (_initialize_core): Add declaration.
9718 * corelow.c (_initialize_corelow): Add declaration.
9719 * cp-abi.c (_initialize_cp_abi): Add declaration.
9720 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9721 * cp-support.c (_initialize_cp_support): Add declaration.
9722 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9723 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9724 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9725 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9726 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9727 * ctfread.c (_initialize_ctfread): Add declaration.
9728 * d-lang.c (_initialize_d_language): Add declaration.
9729 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9730 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9731 * dbxread.c (_initialize_dbxread): Add declaration.
9732 * dcache.c (_initialize_dcache): Add declaration.
9733 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9734 * disasm.c (_initialize_disasm): Add declaration.
9735 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9736 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9737 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9738 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9739 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9740 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9741 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9742 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9743 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9744 * elfread.c (_initialize_elfread): Add declaration.
9745 * exec.c (_initialize_exec): Add declaration.
9746 * extension.c (_initialize_extension): Add declaration.
9747 * f-lang.c (_initialize_f_language): Add declaration.
9748 * f-valprint.c (_initialize_f_valprint): Add declaration.
9749 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9750 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9751 * filesystem.c (_initialize_filesystem): Add declaration.
9752 * findcmd.c (_initialize_mem_search): Add declaration.
9753 * findvar.c (_initialize_findvar): Add declaration.
9754 * fork-child.c (_initialize_fork_child): Add declaration.
9755 * frame-base.c (_initialize_frame_base): Add declaration.
9756 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9757 * frame.c (_initialize_frame): Add declaration.
9758 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9759 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9760 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9761 * gcore.c (_initialize_gcore): Add declaration.
9762 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9763 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9764 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9765 * gdbarch.c (_initialize_gdbarch): Add declaration.
9766 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9767 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9768 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9769 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9770 * go-lang.c (_initialize_go_language): Add declaration.
9771 * go32-nat.c (_initialize_go32_nat): Add declaration.
9772 * guile/guile.c (_initialize_guile): Add declaration.
9773 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9774 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9775 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9776 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9777 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9778 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9779 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9780 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9781 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9782 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9783 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9784 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9785 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9786 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9787 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9788 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9789 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9790 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9791 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9792 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9793 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9794 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9795 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9796 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9797 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9798 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9799 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9800 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9801 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9802 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9803 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9804 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9805 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9806 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9807 * infcall.c (_initialize_infcall): Add declaration.
9808 * infcmd.c (_initialize_infcmd): Add declaration.
9809 * inflow.c (_initialize_inflow): Add declaration.
9810 * infrun.c (_initialize_infrun): Add declaration.
9811 * interps.c (_initialize_interpreter): Add declaration.
9812 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9813 * jit.c (_initialize_jit): Add declaration.
9814 * language.c (_initialize_language): Add declaration.
9815 * linux-fork.c (_initialize_linux_fork): Add declaration.
9816 * linux-nat.c (_initialize_linux_nat): Add declaration.
9817 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9818 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9819 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9820 * m2-lang.c (_initialize_m2_language): Add declaration.
9821 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9822 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9823 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9824 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9825 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9826 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9827 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9828 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9829 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9830 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9831 * machoread.c (_initialize_machoread): Add declaration.
9832 * macrocmd.c (_initialize_macrocmd): Add declaration.
9833 * macroscope.c (_initialize_macroscope): Add declaration.
9834 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9835 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9836 * maint.c (_initialize_maint_cmds): Add declaration.
9837 * mdebugread.c (_initialize_mdebugread): Add declaration.
9838 * memattr.c (_initialize_mem): Add declaration.
9839 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9840 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9841 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9842 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9843 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9844 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9845 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9846 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9847 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9848 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9849 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9850 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9851 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9852 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9853 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9854 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9855 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9856 * mipsread.c (_initialize_mipsread): Add declaration.
9857 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9858 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9859 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9860 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9861 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9862 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9863 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9864 * nto-procfs.c (_initialize_procfs): Add declaration.
9865 * objc-lang.c (_initialize_objc_language): Add declaration.
9866 * observable.c (_initialize_observer): Add declaration.
9867 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9868 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9869 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9870 * osabi.c (_initialize_gdb_osabi): Add declaration.
9871 * osdata.c (_initialize_osdata): Add declaration.
9872 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9873 * parse.c (_initialize_parse): Add declaration.
9874 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9875 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9876 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9877 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9878 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9879 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9880 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9881 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9882 * printcmd.c (_initialize_printcmd): Add declaration.
9883 * probe.c (_initialize_probe): Add declaration.
9884 * proc-api.c (_initialize_proc_api): Add declaration.
9885 * proc-events.c (_initialize_proc_events): Add declaration.
9886 * proc-service.c (_initialize_proc_service): Add declaration.
9887 * procfs.c (_initialize_procfs): Add declaration.
9888 * producer.c (_initialize_producer): Add declaration.
9889 * psymtab.c (_initialize_psymtab): Add declaration.
9890 * python/python.c (_initialize_python): Add declaration.
9891 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9892 * record-btrace.c (_initialize_record_btrace): Add declaration.
9893 * record-full.c (_initialize_record_full): Add declaration.
9894 * record.c (_initialize_record): Add declaration.
9895 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9896 * regcache.c (_initialize_regcache): Add declaration.
9897 * reggroups.c (_initialize_reggroup): Add declaration.
9898 * remote-notif.c (_initialize_notif): Add declaration.
9899 * remote-sim.c (_initialize_remote_sim): Add declaration.
9900 * remote.c (_initialize_remote): Add declaration.
9901 * reverse.c (_initialize_reverse): Add declaration.
9902 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9903 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9904 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9905 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9906 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9907 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9908 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9909 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9910 Add declaration.
9911 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9912 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9913 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9914 * rust-exp.y (_initialize_rust_exp): Add declaration.
9915 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9916 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9917 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9918 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9919 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9920 * score-tdep.c (_initialize_score_tdep): Add declaration.
9921 * ser-go32.c (_initialize_ser_dos): Add declaration.
9922 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9923 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9924 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9925 * ser-uds.c (_initialize_ser_socket): Add declaration.
9926 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9927 * serial.c (_initialize_serial): Add declaration.
9928 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9929 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9930 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9931 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9932 * skip.c (_initialize_step_skip): Add declaration.
9933 * sol-thread.c (_initialize_sol_thread): Add declaration.
9934 * solib-aix.c (_initialize_solib_aix): Add declaration.
9935 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9936 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9937 * solib-frv.c (_initialize_frv_solib): Add declaration.
9938 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9939 * solib-target.c (_initialize_solib_target): Add declaration.
9940 * solib.c (_initialize_solib): Add declaration.
9941 * source-cache.c (_initialize_source_cache): Add declaration.
9942 * source.c (_initialize_source): Add declaration.
9943 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9944 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9945 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9946 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9947 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9948 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9949 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9950 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9951 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9952 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9953 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9954 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9955 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9956 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9957 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9958 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9959 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9960 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9961 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9962 * stabsread.c (_initialize_stabsread): Add declaration.
9963 * stack.c (_initialize_stack): Add declaration.
9964 * stap-probe.c (_initialize_stap_probe): Add declaration.
9965 * std-regs.c (_initialize_frame_reg): Add declaration.
9966 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9967 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9968 * symfile.c (_initialize_symfile): Add declaration.
9969 * symmisc.c (_initialize_symmisc): Add declaration.
9970 * symtab.c (_initialize_symtab): Add declaration.
9971 * target.c (_initialize_target): Add declaration.
9972 * target-connection.c (_initialize_target_connection): Add
9973 declaration.
9974 * target-dcache.c (_initialize_target_dcache): Add declaration.
9975 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9976 * thread.c (_initialize_thread): Add declaration.
9977 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9978 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9979 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9980 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9981 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9982 * tracectf.c (_initialize_ctf): Add declaration.
9983 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9984 * tracefile.c (_initialize_tracefile): Add declaration.
9985 * tracepoint.c (_initialize_tracepoint): Add declaration.
9986 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9987 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9988 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9989 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9990 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9991 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9992 * tui/tui.c (_initialize_tui): Add declaration.
9993 * typeprint.c (_initialize_typeprint): Add declaration.
9994 * ui-style.c (_initialize_ui_style): Add declaration.
9995 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9996 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9997 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9998 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9999 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10000 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10001 * unittests/filtered_iterator-selftests.c
10002 (_initialize_filtered_iterator_selftests): Add declaration.
10003 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10004 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10005 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10006 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10007 * unittests/main-thread-selftests.c
10008 (_initialize_main_thread_selftests): Add declaration.
10009 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10010 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10011 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10012 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10013 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10014 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10015 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10016 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10017 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10018 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10019 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10020 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10021 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10022 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10023 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10024 declaration.
10025 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10026 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10027 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10028 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10029 * user-regs.c (_initialize_user_regs): Add declaration.
10030 * utils.c (_initialize_utils): Add declaration.
10031 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10032 * valops.c (_initialize_valops): Add declaration.
10033 * valprint.c (_initialize_valprint): Add declaration.
10034 * value.c (_initialize_values): Add declaration.
10035 * varobj.c (_initialize_varobj): Add declaration.
10036 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10037 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10038 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10039 * windows-nat.c (_initialize_windows_nat): Add declaration.
10040 (_initialize_check_for_gdb_ini): Add declaration.
10041 (_initialize_loadable): Add declaration.
10042 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10043 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10044 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10045 * xcoffread.c (_initialize_xcoffread): Add declaration.
10046 * xml-support.c (_initialize_xml_support): Add declaration.
10047 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10048 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10049 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10050 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10051
e2de1eec
SM
100522020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10053
10054 * regformats/regdat.sh: Generate declaration for init function.
10055
e0037b4c
SM
100562020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10057
10058 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10059 up.
10060 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10061 close_one_inferior>: New methods.
10062 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10063 pass down target to find_inferior_pid.
10064 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10065 Pass down target to find_inferior_ptid.
10066 (gdbsim_target::create_inferior): Pass down target to
10067 add_thread_silent.
10068 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10069 target down to find_inferior_ptid and switch_to_thread.
10070 (gdbsim_target::close): Update to call close_one_inferior.
10071 (struct resume_data): Remove.
10072 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10073 directly, rather than through a void pointer.
10074 (gdbsim_target::resume): Update to call resume_one_inferior.
10075
58920b5b
SM
100762020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10077
10078 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10079
4ec89149
PA
100802020-01-12 Pedro Alves <palves@redhat.com>
10081
10082 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10083 directly for the current inferior instead of
10084 discard_all_inferiors.
10085 (discard_all_inferiors): Delete.
10086
7c392d1d
TT
100872020-01-11 Tom Tromey <tom@tromey.com>
10088
10089 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10090 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10091 deprecated_safe_get_selected_frame.
10092
d9ebdab7
TBA
100932020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10094
10095 * inferior.c (print_inferior): Switch inferior before printing it.
10096
f3c469b9
PA
100972020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10098 Pedro Alves <palves@redhat.com>
10099
10100 * progspace-and-thread.c (switch_to_program_space_and_thread):
10101 Assert there's an inferior for PSPACE. Use
10102 switch_to_inferior_no_thread to switch the inferior too.
10103 * progspace.c (program_space::~program_space): Call
10104 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10105 (program_space::free_all_objfiles): Don't call clear_symtab_users
10106 here.
10107 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10108
65c574f6
PA
101092020-01-10 Pedro Alves <palves@redhat.com>
10110
10111 * NEWS: Mention multi-target debugging, "info connections", and
10112 "add-inferior -no-connection".
10113
2f4fcf00
PA
101142020-01-10 Pedro Alves <palves@redhat.com>
10115
10116 * infrun.c: Include "target-connection.h".
10117 (check_multi_target_resumption): New.
10118 (proceed): Call it.
10119 * target-connection.c (make_target_connection_string): Make
10120 extern.
10121 * target-connection.h (make_target_connection_string): Declare.
10122
121b3efd
PA
101232020-01-10 Pedro Alves <palves@redhat.com>
10124
10125 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10126 * inferior.c (uiout_field_connection): New function.
10127 (print_inferior): Add new "connection-id" column.
10128 (add_inferior_command): Show connection number/string of added
10129 inferior.
10130 * process-stratum-target.h
10131 (process_stratum_target::connection_string): New virtual method.
10132 (process_stratum_target::connection_number): New field.
10133 * remote.c (remote_target::connection_string): New override.
10134 * target-connection.c: New file.
10135 * target-connection.h: New file.
10136 * target.c (decref_target): Remove process_stratum targets from
10137 the connection list.
10138 (target_stack::push): Add process_stratum targets to the
10139 connection list.
10140
4f837581
PA
101412020-01-10 Pedro Alves <palves@redhat.com>
10142
10143 Revert:
10144 2016-04-12 Pedro Alves <palves@redhat.com>
10145 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10146 Remove references to name.
10147 * serial.h (struct serial) <name>: Delete.
10148
f4ec508e
PA
101492020-01-10 Pedro Alves <palves@redhat.com>
10150
10151 * gdbarch-selftests.c (register_to_value_test): Remove "target
10152 already pushed" check.
10153
5b6d1e4f
PA
101542020-01-10 Pedro Alves <palves@redhat.com>
10155 John Baldwin <jhb@FreeBSD.org>
10156
10157 * aarch64-linux-nat.c
10158 (aarch64_linux_nat_target::thread_architecture): Adjust.
10159 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10160 (task_command_1): Likewise.
10161 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10162 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10163 (aix_thread_target::store_registers)
10164 (aix_thread_target::thread_alive): Adjust.
10165 * amd64-fbsd-tdep.c: Include "inferior.h".
10166 (amd64fbsd_get_thread_local_address): Pass down target.
10167 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10168 thread's gdbarch instead of target_gdbarch.
10169 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10170 get_last_target_status.
10171 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10172 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10173 inferiors.
10174 (update_inserted_breakpoint_locations): Skip if inferiors with no
10175 execution.
10176 (update_global_location_list): When handling moribund locations,
10177 find representative inferior for location's pspace, and use thread
10178 count of its process_stratum target.
10179 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10180 * bsd-uthread.c (bsd_uthread_target::wait): Use
10181 as_process_stratum_target and adjust thread_change_ptid and
10182 add_thread calls.
10183 (bsd_uthread_target::update_thread_list): Use
10184 as_process_stratum_target and adjust find_thread_ptid,
10185 thread_change_ptid and add_thread calls.
10186 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10187 find_thread_ptid call.
10188 * corelow.c (add_to_thread_list): Adjust add_thread call.
10189 (core_target_open): Adjust add_thread_silent and thread_count
10190 calls.
10191 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10192 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10193 * event-top.c (async_disconnect): Pop targets from all inferiors.
10194 * exec.c (add_target_sections): Push exec target on all inferiors
10195 sharing the program space.
10196 (remove_target_sections): Remove the exec target from all
10197 inferiors sharing the program space.
10198 (exec_on_vfork): New.
10199 * exec.h (exec_on_vfork): Declare.
10200 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10201 Pass it down.
10202 (fbsd_nat_target::update_thread_list): Adjust.
10203 (fbsd_nat_target::resume): Adjust.
10204 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10205 down.
10206 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10207 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10208 get_thread_arch_regcache call.
10209 * fork-child.c (gdb_startup_inferior): Pass target down to
10210 startup_inferior and set_executing.
10211 * gdbthread.h (struct process_stratum_target): Forward declare.
10212 (add_thread, add_thread_silent, add_thread_with_info)
10213 (in_thread_list): Add process_stratum_target parameter.
10214 (find_thread_ptid(inferior*, ptid_t)): New overload.
10215 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10216 parameter.
10217 (all_threads()): Delete overload.
10218 (all_threads, all_non_exited_threads): Add process_stratum_target
10219 parameter.
10220 (all_threads_safe): Use brace initialization.
10221 (thread_count): Add process_stratum_target parameter.
10222 (set_resumed, set_running, set_stop_requested, set_executing)
10223 (threads_are_executing, finish_thread_state): Add
10224 process_stratum_target parameter.
10225 (switch_to_thread): Use is_current_thread.
10226 * i386-fbsd-tdep.c: Include "inferior.h".
10227 (i386fbsd_get_thread_local_address): Pass down target.
10228 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10229 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10230 have_inferiors check.
10231 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10232 (inf_ptrace_target::attach): Adjust.
10233 * infcall.c (run_inferior_call): Adjust.
10234 * infcmd.c (run_command_1): Pass target to
10235 scoped_finish_thread_state.
10236 (proceed_thread_callback): Skip inferiors with no execution.
10237 (continue_command): Rename 'all_threads' local to avoid hiding
10238 'all_threads' function. Adjust get_last_target_status call.
10239 (prepare_one_step): Adjust set_running call.
10240 (signal_command): Use user_visible_resume_target. Compare thread
10241 pointers instead of inferior_ptid.
10242 (info_program_command): Adjust to pass down target.
10243 (attach_command): Mark target's 'thread_executing' flag.
10244 (stop_current_target_threads_ns): New, factored out from ...
10245 (interrupt_target_1): ... this. Switch inferior before making
10246 target calls.
10247 * inferior-iter.h
10248 (struct all_inferiors_iterator, struct all_inferiors_range)
10249 (struct all_inferiors_safe_range)
10250 (struct all_non_exited_inferiors_range): Filter on
10251 process_stratum_target too. Remove explicit.
10252 * inferior.c (inferior::inferior): Push dummy target on target
10253 stack.
10254 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10255 Add process_stratum_target parameter, and pass it down.
10256 (have_live_inferiors): Adjust.
10257 (switch_to_inferior_and_push_target): New.
10258 (add_inferior_command, clone_inferior_command): Handle
10259 "-no-connection" parameter. Use
10260 switch_to_inferior_and_push_target.
10261 (_initialize_inferior): Mention "-no-connection" option in
10262 the help of "add-inferior" and "clone-inferior" commands.
10263 * inferior.h: Include "process-stratum-target.h".
10264 (interrupt_target_1): Use bool.
10265 (struct inferior) <push_target, unpush_target, target_is_pushed,
10266 find_target_beneath, top_target, process_target, target_at,
10267 m_stack>: New.
10268 (discard_all_inferiors): Delete.
10269 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10270 (all_inferiors, all_non_exited_inferiors): Add
10271 process_stratum_target parameter.
10272 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10273 (target_last_proc_target): New global.
10274 (follow_fork_inferior): Push target on new inferior. Pass target
10275 to add_thread_silent. Call exec_on_vfork. Handle target's
10276 reference count.
10277 (follow_fork): Adjust get_last_target_status call. Also consider
10278 target.
10279 (follow_exec): Push target on new inferior.
10280 (struct execution_control_state) <target>: New field.
10281 (user_visible_resume_target): New.
10282 (do_target_resume): Call target_async.
10283 (resume_1): Set target's threads_executing flag. Consider resume
10284 target.
10285 (commit_resume_all_targets): New.
10286 (proceed): Also consider resume target. Skip threads of inferiors
10287 with no execution. Commit resumtion in all targets.
10288 (start_remote): Pass current inferior to wait_for_inferior.
10289 (infrun_thread_stop_requested): Consider target as well. Pass
10290 thread_info pointer to clear_inline_frame_state instead of ptid.
10291 (infrun_thread_thread_exit): Consider target as well.
10292 (random_pending_event_thread): New inferior parameter. Use it.
10293 (do_target_wait): Rename to ...
10294 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10295 down.
10296 (threads_are_resumed_pending_p, do_target_wait): New.
10297 (prepare_for_detach): Adjust calls.
10298 (wait_for_inferior): New inferior parameter. Handle it. Use
10299 do_target_wait_1 instead of do_target_wait.
10300 (fetch_inferior_event): Adjust. Switch to representative
10301 inferior. Pass target down.
10302 (set_last_target_status): Add process_stratum_target parameter.
10303 Save target in global.
10304 (get_last_target_status): Add process_stratum_target parameter and
10305 handle it.
10306 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10307 (context_switch): Check inferior_ptid == null_ptid before calling
10308 inferior_thread().
10309 (get_inferior_stop_soon): Pass down target.
10310 (wait_one): Rename to ...
10311 (poll_one_curr_target): ... this.
10312 (struct wait_one_event): New.
10313 (wait_one): New.
10314 (stop_all_threads): Adjust.
10315 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10316 event's target.
10317 (switch_back_to_stepped_thread): Also consider target.
10318 (print_stop_event): Update.
10319 (normal_stop): Update. Also consider the resume target.
10320 * infrun.h (wait_for_inferior): Remove declaration.
10321 (user_visible_resume_target): New declaration.
10322 (get_last_target_status, set_last_target_status): New
10323 process_stratum_target parameter.
10324 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10325 process_stratum_target parameter, and use it.
10326 (clear_inline_frame_state (thread_info*)): New.
10327 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10328 process_stratum_target parameter.
10329 (clear_inline_frame_state (thread_info*)): Declare.
10330 * linux-fork.c (delete_checkpoint_command): Pass target down to
10331 find_thread_ptid.
10332 (checkpoint_command): Adjust.
10333 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10334 instead of just tweaking inferior_ptid.
10335 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10336 (exit_lwp): Pass target down to find_thread_ptid.
10337 (attach_proc_task_lwp_callback): Pass target down to
10338 add_thread/set_running/set_executing.
10339 (linux_nat_target::attach): Pass target down to
10340 thread_change_ptid.
10341 (get_detach_signal): Pass target down to find_thread_ptid.
10342 Consider last target status's target.
10343 (linux_resume_one_lwp_throw, resume_lwp)
10344 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10345 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10346 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10347 (linux_nat_target::async_wait_fd): New.
10348 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10349 target down.
10350 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10351 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10352 * linux-thread-db.c (struct thread_db_info::process_target): New
10353 field.
10354 (add_thread_db_info): Save target.
10355 (get_thread_db_info): New process_stratum_target parameter. Also
10356 match target.
10357 (delete_thread_db_info): New process_stratum_target parameter.
10358 Also match target.
10359 (thread_from_lwp): Adjust to pass down target.
10360 (thread_db_notice_clone): Pass down target.
10361 (check_thread_db_callback): Pass down target.
10362 (try_thread_db_load_1): Always push the thread_db target.
10363 (try_thread_db_load, record_thread): Pass target down.
10364 (thread_db_target::detach): Pass target down. Always unpush the
10365 thread_db target.
10366 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10367 target down. Always unpush the thread_db target.
10368 (find_new_threads_callback, thread_db_find_new_threads_2)
10369 (thread_db_target::update_thread_list): Pass target down.
10370 (thread_db_target::pid_to_str): Pass current inferior down.
10371 (thread_db_target::get_thread_local_address): Pass target down.
10372 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10373 target down.
10374 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10375 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10376 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10377 (procfs_init_inferior): Rename to ...
10378 (procfs_target::procfs_init_inferior): ... this and adjust.
10379 (procfs_target::create_inferior, procfs_notice_thread)
10380 (procfs_do_thread_registers): Adjust.
10381 * ppc-fbsd-tdep.c: Include "inferior.h".
10382 (ppcfbsd_get_thread_local_address): Pass down target.
10383 * proc-service.c (ps_xfer_memory): Switch current inferior and
10384 program space as well.
10385 (get_ps_regcache): Pass target down.
10386 * process-stratum-target.c
10387 (process_stratum_target::thread_address_space)
10388 (process_stratum_target::thread_architecture): Pass target down.
10389 * process-stratum-target.h
10390 (process_stratum_target::threads_executing): New field.
10391 (as_process_stratum_target): New.
10392 * ravenscar-thread.c
10393 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10394 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10395 down.
10396 * record-btrace.c (record_btrace_target::info_record): Adjust.
10397 (record_btrace_target::record_method)
10398 (record_btrace_target::record_is_replaying)
10399 (record_btrace_target::fetch_registers)
10400 (get_thread_current_frame_id, record_btrace_target::resume)
10401 (record_btrace_target::wait, record_btrace_target::stop): Pass
10402 target down.
10403 * record-full.c (record_full_wait_1): Switch to event thread.
10404 Pass target down.
10405 * regcache.c (regcache::regcache)
10406 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10407 process_stratum_target parameter and handle it.
10408 (current_thread_target): New global.
10409 (get_thread_regcache): Add process_stratum_target parameter and
10410 handle it. Switch inferior before calling target method.
10411 (get_thread_regcache): Pass target down.
10412 (get_thread_regcache_for_ptid): Pass target down.
10413 (registers_changed_ptid): Add process_stratum_target parameter and
10414 handle it.
10415 (registers_changed_thread, registers_changed): Pass target down.
10416 (test_get_thread_arch_aspace_regcache): New.
10417 (current_regcache_test): Define a couple local test_target_ops
10418 instances and use them for testing.
10419 (readwrite_regcache): Pass process_stratum_target parameter.
10420 (cooked_read_test, cooked_write_test): Pass mock_target down.
10421 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10422 (get_thread_arch_aspace_regcache): Add process_stratum_target
10423 parameter.
10424 (regcache::target): New method.
10425 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10426 (regcache::registers_changed_ptid): Add process_stratum_target
10427 parameter.
10428 (regcache::m_target): New field.
10429 (registers_changed_ptid): Add process_stratum_target parameter.
10430 * remote.c (remote_state::supports_vCont_probed): New field.
10431 (remote_target::async_wait_fd): New method.
10432 (remote_unpush_and_throw): Add remote_target parameter.
10433 (get_current_remote_target): Adjust.
10434 (remote_target::remote_add_inferior): Push target.
10435 (remote_target::remote_add_thread)
10436 (remote_target::remote_notice_new_inferior)
10437 (get_remote_thread_info): Pass target down.
10438 (remote_target::update_thread_list): Skip threads of inferiors
10439 bound to other targets. (remote_target::close): Don't discard
10440 inferiors. (remote_target::add_current_inferior_and_thread)
10441 (remote_target::process_initial_stop_replies)
10442 (remote_target::start_remote)
10443 (remote_target::remote_serial_quit_handler): Pass down target.
10444 (remote_target::remote_unpush_target): New remote_target
10445 parameter. Unpush the target from all inferiors.
10446 (remote_target::remote_unpush_and_throw): New remote_target
10447 parameter. Pass it down.
10448 (remote_target::open_1): Check whether the current inferior has
10449 execution instead of checking whether any inferior is live. Pass
10450 target down.
10451 (remote_target::remote_detach_1): Pass down target. Use
10452 remote_unpush_target.
10453 (extended_remote_target::attach): Pass down target.
10454 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10455 (remote_target::append_resumption): Pass down target.
10456 (remote_target::append_pending_thread_resumptions)
10457 (remote_target::remote_resume_with_hc, remote_target::resume)
10458 (remote_target::commit_resume): Pass down target.
10459 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10460 (remote_target::interrupt_query)
10461 (remote_target::remove_new_fork_children)
10462 (remote_target::check_pending_events_prevent_wildcard_vcont)
10463 (remote_target::remote_parse_stop_reply)
10464 (remote_target::process_stop_reply): Pass down target.
10465 (first_remote_resumed_thread): New remote_target parameter. Pass
10466 it down.
10467 (remote_target::wait_as): Pass down target.
10468 (unpush_and_perror): New remote_target parameter. Pass it down.
10469 (remote_target::readchar, remote_target::remote_serial_write)
10470 (remote_target::getpkt_or_notif_sane_1)
10471 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10472 down target.
10473 (remote_target::mourn_inferior): Pass down target. Use
10474 remote_unpush_target.
10475 (remote_target::core_of_thread)
10476 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10477 (remote_target::pid_to_exec_file)
10478 (remote_target::thread_handle_to_thread_info): Pass down target.
10479 (remote_target::async_wait_fd): New.
10480 * riscv-fbsd-tdep.c: Include "inferior.h".
10481 (riscv_fbsd_get_thread_local_address): Pass down target.
10482 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10483 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10484 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10485 Adjust.
10486 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10487 * solib-svr4.c (enable_break): Pass down target.
10488 * spu-multiarch.c (parse_spufs_run): Pass down target.
10489 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10490 * target-delegates.c: Regenerate.
10491 * target.c (g_target_stack): Delete.
10492 (current_top_target): Return the current inferior's top target.
10493 (target_has_execution_1): Refer to the passed-in inferior's top
10494 target.
10495 (target_supports_terminal_ours): Check whether the initial
10496 inferior was already created.
10497 (decref_target): New.
10498 (target_stack::push): Incref/decref the target.
10499 (push_target, push_target, unpush_target): Adjust.
10500 (target_stack::unpush): Defref target.
10501 (target_is_pushed): Return bool. Adjust to refer to the current
10502 inferior's target stack.
10503 (dispose_inferior): Delete, and inline parts ...
10504 (target_preopen): ... here. Only dispose of the current inferior.
10505 (target_detach): Hold strong target reference while detaching.
10506 Pass target down.
10507 (target_thread_name): Add assertion.
10508 (target_resume): Pass down target.
10509 (target_ops::beneath, find_target_at): Adjust to refer to the
10510 current inferior's target stack.
10511 (get_dummy_target): New.
10512 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10513 has a thread running.
10514 (initialize_targets): Rename to ...
10515 (_initialize_target): ... this.
10516 * target.h: Include "gdbsupport/refcounted-object.h".
10517 (struct target_ops): Inherit refcounted_object.
10518 (target_ops::shortname, target_ops::longname): Make const.
10519 (target_ops::async_wait_fd): New method.
10520 (decref_target): Declare.
10521 (struct target_ops_ref_policy): New.
10522 (target_ops_ref): New typedef.
10523 (get_dummy_target): Declare function.
10524 (target_is_pushed): Return bool.
10525 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10526 (all_matching_threads_iterator::all_matching_threads_iterator):
10527 Handle filter target.
10528 * thread-iter.h (struct all_matching_threads_iterator, struct
10529 all_matching_threads_range, class all_non_exited_threads_range):
10530 Filter by target too. Remove explicit.
10531 * thread.c (threads_executing): Delete.
10532 (inferior_thread): Pass down current inferior.
10533 (clear_thread_inferior_resources): Pass down thread pointer
10534 instead of ptid_t.
10535 (add_thread_silent, add_thread_with_info, add_thread): Add
10536 process_stratum_target parameter. Use it for thread and inferior
10537 searches.
10538 (is_current_thread): New.
10539 (thread_info::deletable): Use it.
10540 (find_thread_ptid, thread_count, in_thread_list)
10541 (thread_change_ptid, set_resumed, set_running): New
10542 process_stratum_target parameter. Pass it down.
10543 (set_executing): New process_stratum_target parameter. Pass it
10544 down. Adjust reference to 'threads_executing'.
10545 (threads_are_executing): New process_stratum_target parameter.
10546 Adjust reference to 'threads_executing'.
10547 (set_stop_requested, finish_thread_state): New
10548 process_stratum_target parameter. Pass it down.
10549 (switch_to_thread): Also match inferior.
10550 (switch_to_thread): New process_stratum_target parameter. Pass it
10551 down.
10552 (update_threads_executing): Reimplement.
10553 * top.c (quit_force): Pop targets from all inferior.
10554 (gdb_init): Don't call initialize_targets.
10555 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10556 Declare.
10557 (windows_add_thread, windows_delete_thread): Adjust.
10558 (get_windows_debug_event): Rename to ...
10559 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10560 * tracefile-tfile.c (tfile_target_open): Pass down target.
10561 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10562 Forward declare.
10563 (switch_to_thread): Add process_stratum_target parameter.
10564 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10565 parameter. Use it.
10566 (mi_on_resume): Pass target down.
10567 * nat/fork-inferior.c (startup_inferior): Add
10568 process_stratum_target parameter. Pass it down.
10569 * nat/fork-inferior.h (startup_inferior): Add
10570 process_stratum_target parameter.
10571 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10572
75c6c844
PA
105732020-01-10 Pedro Alves <palves@redhat.com>
10574
10575 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10576 directly. Instead find the first thread in the thread list and
10577 use switch_to_thread.
10578
78f2c40a
PA
105792020-01-10 Pedro Alves <palves@redhat.com>
10580
10581 * remote.c (remote_target::remote_add_inferior): Don't bind a
10582 process to the current inferior if the current inferior is already
10583 bound to a process.
10584
e7af6c70
TBA
105852020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10586 Pedro Alves <palves@redhat.com>
10587
10588 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10589 If no process is specified, return null_ptid instead of
10590 inferior_ptid.
10591 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10592 TARGET_WAITKIND_SIGNALLED with no pid.
10593
31ba933e
PA
105942020-01-10 Pedro Alves <palves@redhat.com>
10595
10596 * remote.c (first_remote_resumed_thread): New.
10597 (remote_target::wait_as): Use it as default event_ptid instead of
10598 inferior_ptid.
10599
735fc2ca
PA
106002020-01-10 Pedro Alves <palves@redhat.com>
10601
10602 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10603
c17e02e1
PA
106042020-01-10 Pedro Alves <palves@redhat.com>
10605
10606 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10607 not -1.
10608
ab1ddbcf
PA
106092020-01-10 Pedro Alves <palves@redhat.com>
10610
10611 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10612 ptid to get_last_target_status.
10613 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10614 ptid to get_last_target_status.
10615 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10616 get_last_target_status.
10617 (info_program_command): Don't pass a target_waitstatus to
10618 get_last_target_status.
10619 * infrun.c (init_wait_for_inferior): Use
10620 nullify_last_target_wait_ptid.
10621 (get_last_target_status): Handle nullptr arguments.
10622 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10623 (print_stop_event): Don't pass a ptid to get_last_target_status.
10624 (normal_stop): Don't pass a ptid to get_last_target_status.
10625 * infrun.h (get_last_target_status, set_last_target_status): Move
10626 comments here and update.
10627 (nullify_last_target_wait_ptid): Declare.
10628 * linux-fork.c (fork_load_infrun_state): Remove local extern
10629 declaration of nullify_last_target_wait_ptid.
10630 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10631 to get_last_target_status.
10632
f3f8ece4
PA
106332020-01-10 Pedro Alves <palves@redhat.com>
10634
10635 * gdbthread.h (scoped_restore_current_thread)
10636 <dont_restore, restore, m_dont_restore>: Declare.
10637 * thread.c (thread_alive): Add assertion. Return bool.
10638 (switch_to_thread_if_alive): New.
10639 (prune_threads): Switch inferior/thread.
10640 (print_thread_info_1): Switch thread before calling target methods.
10641 (scoped_restore_current_thread::restore): New, factored out from
10642 ...
10643 (scoped_restore_current_thread::~scoped_restore_current_thread):
10644 ... this.
10645 (scoped_restore_current_thread::scoped_restore_current_thread):
10646 Add assertion.
10647 (thread_apply_all_command, thread_select): Use
10648 switch_to_thread_if_alive.
10649 * infrun.c (proceed, restart_threads, handle_signal_stop)
10650 (switch_back_to_stepped_thread): Switch current thread before
10651 calling target methods.
10652
db2d40f7
PA
106532020-01-10 Pedro Alves <palves@redhat.com>
10654
10655 * inferior.c (switch_to_inferior_no_thread): New function,
10656 factored out from ...
10657 (inferior_command): ... here.
10658 * inferior.h (switch_to_inferior_no_thread): Declare.
10659 * mi/mi-main.c (run_one_inferior): Use
10660 switch_to_inferior_no_thread.
10661
bd420a2d
PA
106622020-01-10 Pedro Alves <palves@redhat.com>
10663
10664 * infcmd.c (kill_command): Remove dead code.
10665
ddf5db90
PA
106662020-01-10 Pedro Alves <palves@redhat.com>
10667
10668 * remote.c (remote_target::mourn_inferior): No longer check
10669 whether the target is running.
10670
5018ce90
PA
106712020-01-10 Pedro Alves <palves@redhat.com>
10672
10673 * corelow.c (core_target::has_execution): Change parameter type to
10674 inferior pointer.
10675 * inferior.c (number_of_live_inferiors): Use
10676 inferior::has_execution instead of target_has_execution_1.
10677 * inferior.h (inferior::has_execution): New.
10678 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10679 inferior::has_execution instead of target_has_execution_1.
10680 * process-stratum-target.c
10681 (process_stratum_target::has_execution): Change parameter type to
10682 inferior pointer. Check the inferior's PID instead of
10683 inferior_ptid.
10684 * process-stratum-target.h
10685 (process_stratum_target::has_execution): Change parameter type to
10686 inferior pointer.
10687 * record-full.c (record_full_core_target::has_execution): Change
10688 parameter type to inferior pointer.
10689 * target.c (target_has_execution_1): Change parameter type to
10690 inferior pointer.
10691 (target_has_execution_current): Adjust.
10692 * target.h (target_ops::has_execution): Change parameter type to
10693 inferior pointer.
10694 (target_has_execution_1): Change parameter type to inferior
10695 pointer. Change return type to bool.
10696 * tracefile.h (tracefile_target::has_execution): Change parameter
10697 type to inferior pointer.
10698
74375d18
PA
106992020-01-10 Pedro Alves <palves@redhat.com>
10700
10701 * exceptions.c (print_flush): Remove current_top_target() check.
10702
acdf84a6
PA
107032020-01-10 Pedro Alves <palves@redhat.com>
10704
10705 * remote.c (show_remote_exec_file): Show the current inferior's
10706 exec-file instead of the command variable's value.
10707
ec506636
PA
107082020-01-10 Pedro Alves <palves@redhat.com>
10709
10710 * record-full.c (record_full_resume_ptid): New global.
10711 (record_full_target::resume): Set it.
10712 (record_full_wait_1): Use record_full_resume_ptid instead of
10713 inferior_ptid.
10714
873657b9
PA
107152020-01-10 Pedro Alves <palves@redhat.com>
10716
10717 * gdbthread.h (scoped_restore_current_thread)
10718 <dont_restore, restore, m_dont_restore>: Declare.
10719 * thread.c (thread_alive): Add assertion. Return bool.
10720 (switch_to_thread_if_alive): New.
10721 (prune_threads): Switch inferior/thread.
10722 (print_thread_info_1): Switch thread before calling target methods.
10723 (scoped_restore_current_thread::restore): New, factored out from
10724 ...
10725 (scoped_restore_current_thread::~scoped_restore_current_thread):
10726 ... this.
10727 (scoped_restore_current_thread::scoped_restore_current_thread):
10728 Add assertion.
10729 (thread_apply_all_command, thread_select): Use
10730 switch_to_thread_if_alive.
10731
7f0ae84c
GB
107322020-01-10 George Barrett <bob@bob131.so>
10733
10734 * stap-probe.c (stap_modify_semaphore): Don't check for null
10735 semaphores.
10736 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10737 for null semaphores.
10738
f5a7c406
AB
107392020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10740
10741 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10742 all source windows, and maintain horizontal scroll status while
10743 doing so.
10744
9ae6bf64
TT
107452020-01-09 Tom Tromey <tom@tromey.com>
10746
10747 PR tui/18932:
10748 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10749 update_source_window, not print_source_lines.
10750
b2efe70c
AB
107512020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10752
10753 * tui/tui.c (tui_enable): Register tui hooks after calling
10754 tui_display_main.
10755
5f23a082
CB
107562020-01-09 Christian Biesinger <cbiesinger@google.com>
10757
10758 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10759
3061113b
SM
107602020-01-08 Simon Marchi <simon.marchi@efficios.com>
10761
10762 * thread.c (print_thread_info_1): Fix indentation.
10763
57d75002
CB
107642020-01-09 Christian Biesinger <cbiesinger@google.com>
10765
10766 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10767 unique_xmalloc_ptr outside the if to always free the demangled name.
10768
6a053cb1
TT
107692020-01-08 Tom Tromey <tromey@adacore.com>
10770
10771 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10772 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10773 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10774 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10775 Remove.
10776 (section_offsets): New typedef.
10777 * symtab.c (fixup_section, get_msymbol_address): Update.
10778 * symmisc.c (dump_msymbols): Update.
10779 * symfile.h (relative_addr_info_to_section_offsets)
10780 (symfile_map_offsets_to_segments): Update.
10781 * symfile.c (build_section_addr_info_from_objfile)
10782 (init_objfile_sect_indices): Update.
10783 (struct place_section_arg): Change type of "offsets".
10784 (place_section): Update.
10785 (relative_addr_info_to_section_offsets): Change type of
10786 "section_offsets". Remove "num_sections" parameter.
10787 (default_symfile_offsets, syms_from_objfile_1)
10788 (set_objfile_default_section_offset): Update.
10789 (reread_symbols): No need to preserve section offsets by hand.
10790 (symfile_map_offsets_to_segments): Change type of "offsets".
10791 * stap-probe.c (relocate_address): Update.
10792 * stabsread.h (process_one_symbol): Update.
10793 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10794 (solib_target_relocate_section_addresses): Update.
10795 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10796 Update.
10797 * solib-frv.c (frv_relocate_main_executable): Update.
10798 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10799 * solib-aix.c (solib_aix_get_section_offsets): Change return
10800 type.
10801 (solib_aix_solib_create_inferior_hook): Update.
10802 * remote.c (remote_target::get_offsets): Update.
10803 * psymtab.c (find_pc_sect_psymtab): Update.
10804 * psympriv.h (struct partial_symbol) <address, text_low,
10805 text_high>: Update.
10806 * objfiles.h (obj_section_offset): Update.
10807 (struct objfile) <section_offsets>: Change type.
10808 <num_sections>: Remove.
10809 (objfile_relocate): Update.
10810 * objfiles.c (entry_point_address_query): Update
10811 (relocate_one_symbol): Change type of "section_offsets".
10812 (objfile_relocate1, objfile_relocate1): Change type of
10813 "new_offsets".
10814 (objfile_rebase1): Update.
10815 * mipsread.c (mipscoff_symfile_read): Update.
10816 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10817 parameter.
10818 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10819 (parse_external, psymtab_to_symtab_1): Update.
10820 * machoread.c (macho_symfile_offsets): Update.
10821 * ia64-tdep.c (ia64_find_unwind_table): Update.
10822 * hppa-tdep.c (read_unwind_info): Update.
10823 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10824 * dwarf2read.c (create_addrmap_from_index)
10825 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10826 (process_psymtab_comp_unit_reader, add_partial_symbol)
10827 (add_partial_subprogram, process_full_comp_unit)
10828 (read_file_scope, read_func_scope, read_lexical_block_scope)
10829 (read_call_site_scope, dwarf2_rnglists_process)
10830 (dwarf2_ranges_process, dwarf2_ranges_read)
10831 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10832 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10833 Update.
10834 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10835 Update.
10836 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10837 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10838 (process_one_symbol): Change type of "section_offsets".
10839 * ctfread.c (get_objfile_text_range): Update.
10840 * coffread.c (coff_symtab_read, enter_linenos)
10841 (process_coff_symbol): Update.
10842 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10843 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10844
456e800a
TT
108452020-01-08 Tom Tromey <tromey@adacore.com>
10846
10847 * dwarf2read.c (parse_macro_definition): Use std::string.
10848 (parse_macro_definition): Likewise.
10849
6dfa2fc2
TT
108502020-01-08 Tom Tromey <tromey@adacore.com>
10851
10852 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10853 (ATTR_ALLOC_CHUNK): Remove.
10854
421d1616
TT
108552020-01-08 Tom Tromey <tromey@adacore.com>
10856
10857 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10858
43816ebc
TT
108592020-01-08 Tom Tromey <tromey@adacore.com>
10860
10861 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10862 (dwarf2_compute_name, open_dwo_file): Likewise.
10863 (process_enumeration_scope): Use std::vector.
10864 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10865 (partial_die_info::fixup, dwarf2_start_subfile)
10866 (guess_full_die_structure_name, dwarf2_name): Likewise.
10867 (determine_prefix): Update.
10868 (guess_full_die_structure_name): Make return type const.
10869 (partial_die_full_name): Return unique_xmalloc_ptr.
10870 (DW_FIELD_ALLOC_CHUNK): Remove.
10871
4212d509
TT
108722020-01-07 Tom Tromey <tromey@adacore.com>
10873
10874 PR build/24937:
10875 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10876
06a6207a
JT
108772020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10878
10879 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10880
153d79c4
AB
108812020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10882
10883 * stack.c (print_frame_info): Move disassemble_next_line code
10884 inside source_print block.
10885
66182876
EZ
108862020-01-06 Eli Zaretskii <eliz@gnu.org>
10887
10888 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10889 gdb/signals.h, as we are now using native signal symbols.
10890
cbfa8581
SV
108912020-01-06 Shahab Vahedi <shahab@synopsys.com>
10892
10893 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10894 overflow by an early check of content vs threshold.
aac66a4c 10895 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10896 Likewise.
10897
3f602821
EZ
108982020-01-06 Eli Zaretskii <eliz@gnu.org>
10899
10900 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10901
a08c904d
JT
109022020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10903
10904 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10905 export table if no section contains it's RVA.
10906
89a65580
EZ
109072020-01-06 Eli Zaretskii <eliz@gnu.org>
10908
10909 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10910
8b7fcda2
HD
109112020-01-06 Hannes Domani <ssbssa@yahoo.de>
10912
10913 * source.c (print_source_lines_base): Set last_line_listed.
10914
a61b4f69
SV
109152020-01-06 Shahab Vahedi <shahab@synopsys.com>
10916
10917 * tui/tui-disasm.c: Remove trailing spaces.
10918
559e7e50
EZ
109192020-01-06 Eli Zaretskii <eliz@gnu.org>
10920 Pedro Alves <palves@redhat.com>
10921
10922 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10923 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10924 (windows_gdb_signal_to_target): New function, uses the above
10925 enumeration to convert GDB internal signal codes to equivalent
10926 Windows codes.
10927 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10928 * windows-nat.c: Include "gdb_wait.h".
10929 (get_windows_debug_event): Extract the fatal exception from the
10930 exit status and convert to the equivalent Posix signal number.
10931 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10932 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10933 * gdbsupport/gdb_wait.c: New file, implements
10934 windows_status_to_termsig.
10935 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10936 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10937
f2302a34
AB
109382020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10939
10940 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10941 show_layout.
10942
6a5206eb
LM
109432020-01-05 Luis Machado <luis.machado@linaro.org>
10944
10945 * aarch64-linux-nat.c
10946 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10947 and bfd_mach_aarch64.
10948
6ec1d75e
PW
109492020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10950
10951 * ui-file.c (stdio_file::can_emit_style_escape)
10952 (tee_file::can_emit_style_escape): Ensure style is used also on
10953 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10954 to gdb_stdout.
10955 * main.c (set_gdb_data_directory): Use file style to output the
10956 warning that the given pathname is not a directory.
10957 * top.c (show_history_filename, gdb_safe_append_history)
10958 (show_gdb_datadir): Use file style.
10959
44f81a76
HD
109602020-01-03 Hannes Domani <ssbssa@yahoo.de>
10961
10962 * solib-target.c (struct lm_info_target):
10963 Change offsets to be a unique_xmalloc_ptr.
10964 (solib_target_relocate_section_addresses): Update.
10965
25057eb0
HD
109662020-01-03 Hannes Domani <ssbssa@yahoo.de>
10967
10968 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10969
6e2118f5
BE
109702020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10971
10972 * MAINTAINERS (Write After Approval): Add myself.
10973
8133c7dc
LM
109742020-01-02 Luis Machado <luis.machado@linaro.org>
10975
10976 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10977 Cell BE architecture.
10978 * target.h (struct target_ops) <thread_architecture>: Likewise.
10979
48189bec
HD
109802020-01-01 Hannes Domani <ssbssa@yahoo.de>
10981
10982 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10983
ead1063b
HD
109842020-01-01 Hannes Domani <ssbssa@yahoo.de>
10985
10986 * MAINTAINERS (Write After Approval): Add myself.
10987
e5d78223
JB
109882020-01-01 Joel Brobecker <brobecker@adacore.com>
10989
10990 * gdbarch.sh: Update copyright year range of generated files.
10991
b811d2c2
JB
109922020-01-01 Joel Brobecker <brobecker@adacore.com>
10993
10994 Update copyright year range in all GDB files.
10995
5f4def5c
JB
109962020-01-01 Joel Brobecker <brobecker@adacore.com>
10997
10998 * copyright.py: Convert to Python 3.
10999
51fd4002
JB
110002020-01-01 Joel Brobecker <brobecker@adacore.com>
11001
11002 * copyright.py: Adapt after move of gnulib directory from gdb
11003 directory to toplevel directory.
11004
5fb651f2
JB
110052020-01-01 Joel Brobecker <brobecker@adacore.com>
11006
11007 * copyright.py (main): Exit if run from the wrong directory.
11008
5dd8bf88
JB
110092020-01-01 Joel Brobecker <brobecker@adacore.com>
11010
11011 * top.c (print_gdb_version): Change copyright year to 2020.
11012
9f71dacb 110132020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11014
9f71dacb 11015 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11016
9f71dacb 11017For older changes see ChangeLog-2019.
c906108c
SS
11018\f
11019Local Variables:
11020mode: change-log
11021left-margin: 8
11022fill-column: 74
11023version-control: never
57da7796 11024coding: utf-8
c906108c 11025End: