]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Enable multi-process mode in the FreeBSD native target.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
54904d81
JB
12020-07-10 John Baldwin <jhb@FreeBSD.org>
2
3 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4 declaration.
5 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6 function.
7
f37e5866
JB
82020-07-09 John Baldwin <jhb@FreeBSD.org>
9
10 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
11 inferior_ptid.
12
fc238d4a
JB
132020-07-09 John Baldwin <jhb@FreeBSD.org>
14
15 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
16 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
17 AT_FREEBSD_PS_STRINGS.
18
6e2469ff
HD
192020-07-08 Hannes Domani <ssbssa@yahoo.de>
20
21 * auto-load.c (auto_load_objfile_script_1): Convert drive part
22 of debugfile path on Windows.
23
d1076c41
JB
242020-07-08 John Baldwin <jhb@FreeBSD.org>
25
26 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
27 argument to 'data'.
28
15f3b077
TT
292020-07-08 Tom Tromey <tromey@adacore.com>
30
31 * ada-lang.c (ada_exception_message_1): Use read_memory.
32
9fc501fd
AB
332020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
34
35 PR python/22748
36 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
37 special handling for inline frames.
38 * findvar.c (value_of_register_lazy): Skip inline frames when
39 creating lazy register values.
40 * frame.c (frame_id_computed_p): Delete definition.
41 * frame.h (frame_id_computed_p): Delete declaration.
42
64cb3757
AB
432020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
44
45 * NEWS: Mention additions to Python API.
46 * python/py-arch.c (archpy_register_groups): New function.
47 (arch_object_methods): Add 'register_groups' method.
48 * python/py-registers.c (reggroup_iterator_object): New struct.
49 (reggroup_object): New struct.
50 (gdbpy_new_reggroup): New function.
51 (gdbpy_reggroup_to_string): New function.
52 (gdbpy_reggroup_name): New function.
53 (gdbpy_reggroup_iter): New function.
54 (gdbpy_reggroup_iter_next): New function.
55 (gdbpy_new_reggroup_iterator): New function
56 (gdbpy_initialize_registers): Register new types.
57 (reggroup_iterator_object_type): Define new Python type.
58 (gdbpy_reggroup_getset): New static global.
59 (reggroup_object_type): Define new Python type.
60 * python/python-internal.h
61
0f767f94
AB
622020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
63
64 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
65 * python/py-arch.c (archpy_registers): New function.
66 (arch_object_methods): Add 'registers' method.
67 * python/py-registers.c: New file.
68 * python/python-internal.h
69 (gdbpy_new_register_descriptor_iterator): Declare.
70 (gdbpy_initialize_registers): Declare.
71 * python/python.c (do_start_initialization): Call
72 gdbpy_initialize_registers.
73 * NEWS: Mention additions to the Python API.
74
87dbc774
AB
752020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
76
77 * NEWS: Mention new Python API method.
78 * python/py-unwind.c (pending_framepy_architecture): New function.
79 (pending_frame_object_methods): Add architecture method.
80
3bc98c0c
AB
812020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
82
83 * gdbarch.c: Regenerate.
84 * gdbarch.h: Regenerate.
85 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
86 (gdbarch_data): Use internal_error for the case where
87 deprecated_set_gdbarch_data was originally needed.
88 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
89 and use passed in obstack.
90 (libunwind_frame_set_descr): Should no longer get back NULL from
91 gdbarch_data.
92 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
93 type.
94 * user-regs.c (user_regs_init): Update parameters, and use passed
95 in obstack.
96 (user_reg_add): Should no longer get back NULL from gdbarch_data.
97 (_initialize_user_regs): Register as a pre-init gdbarch data type.
98
d8cc8af6
TV
992020-07-06 Tom de Vries <tdevries@suse.de>
100
101 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
102 End-Of-Sequence in lte_is_less_than.
103 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
104 "gdb: Don't reorder line table entries too much when sorting".
105
947f7597
TV
1062020-07-06 Tom de Vries <tdevries@suse.de>
107
108 PR tui/26205
109 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
110
1e7c1b22
TV
1112020-07-05 Tom de Vries <tdevries@suse.de>
112
113 PR build/26187
114 * inferior.h (struct infcall_suspend_state_deleter): If available, use
115 std::uncaught_exceptions instead of deprecated
116 std::uncaught_exception.
117
a36158ec
SM
1182020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
119
120 * macroexp.h (macro_stringify): Return
121 gdb::unique_xmalloc_ptr<char>.
122 * macroexp.c (macro_stringify): Likewise.
123 * macrotab.c (fixup_definition): Update.
124
14d960c8
SM
1252020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
126
127 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
128 (lex_one_token): Update.
129 * macroexp.c (struct macro_buffer) <release>: Return
130 gdb::unique_xmalloc_ptr<char>.
131 (macro_stringify): Update.
132 (macro_expand): Update.
133 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
134 * macroexp.h (macro_expand_next): Likewise.
135
211d5b1c
SM
1362020-07-02 Simon Marchi <simon.marchi@efficios.com>
137
138 * macroexp.h (macro_lookup_ftype): Remove.
139 (macro_expand, macro_expand_once, macro_expand_next): Remove
140 lookup function parameters, add scope parameter.
141 * macroexp.c (scan, substitute_args, expand, maybe_expand,
142 macro_expand, macro_expand_once, macro_expand_next): Likewise.
143 * macroscope.h (standard_macro_lookup): Change parameter type
144 to macro_scope.
145 * macroscope.c (standard_macro_lookup): Likewise.
146 * c-exp.y (lex_one_token): Update.
147 * macrocmd.c (macro_expand_command): Likewise.
148 (macro_expand_once_command): Likewise.
149
b1a35af2
SM
1502020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
151
152 * inf-loop.c (inferior_event_handler): Remove client_data param.
153 * inf-loop.h (inferior_event_handler): Likewise.
154 * infcmd.c (step_1): Adjust.
155 * infrun.c (proceed): Adjust.
156 (fetch_inferior_event): Remove client_data param.
157 (infrun_async_inferior_event_handler): Adjust.
158 * infrun.h (fetch_inferior_event): Remove `void *` param.
159 * linux-nat.c (handle_target_event): Adjust.
160 * record-btrace.c (record_btrace_handle_async_inferior_event):
161 Adjust.
162 * record-full.c (record_full_async_inferior_event_handler):
163 Adjust.
164 * remote.c (remote_async_inferior_event_handler): Adjust.
165
1cdf9e33
TT
1662020-07-01 Tom Tromey <tom@tromey.com>
167
168 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
169 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
170
32c1e210
TT
1712020-07-01 Tom Tromey <tom@tromey.com>
172
173 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
174 tui_gen_win_info.
175 (tui_win_info::make_window): Merge with
176 tui_gen_win_info::make_window.
177 (tui_win_info::make_visible): Move from tui_gen_win_info.
178 * tui/tui-win.c (tui_win_info::max_width): Move from
179 tui_gen_win_info.
180 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
181 type.
182 <window_factory>: Likewise.
183 * tui/tui-layout.c (tui_win_info::resize): Move from
184 tui_gen_win_info.
185 (make_standard_window): Change return type.
186 (get_locator_window, tui_get_window_by_name): Likewise.
187 (tui_layout_window::apply): Remove a cast.
188 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
189 (struct tui_win_info): Merge with tui_gen_win_info.
190 (struct tui_gen_win_info): Remove.
191
a30cb6da
TT
1922020-07-01 Tom Tromey <tom@tromey.com>
193
194 * tui/tui-stack.h (struct tui_locator_window): Derive from
195 tui_win_info.
196 <do_scroll_horizontal, do_scroll_vertical>: New methods.
197 <can_box>: New method.
198
1eb2161f
TT
1992020-07-01 Tom Tromey <tom@tromey.com>
200
201 * tui/tui-stack.h (struct tui_locator_window): Remove body.
202
7134f2eb
TT
2032020-07-01 Tom Tromey <tom@tromey.com>
204
205 * tui/tui-regs.c (tui_data_window::display_registers_from)
206 (tui_data_window::display_registers_from)
207 (tui_data_window::first_data_item_displayed)
208 (tui_data_window::delete_data_content_windows): Update.
209 (tui_data_window::refresh_window, tui_data_window::no_refresh):
210 Remove.
211 (tui_data_window::check_register_values): Update.
212 (tui_data_item_window::rerender): Add parameters. Update.
213 (tui_data_item_window::refresh_window): Remove.
214 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
215 virtual.
216 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
217 tui_gen_win_info.
218 <refresh_window, max_height, min_height>: Remove.
219 <rerender>: Add parameters.
220 <x, y, visible>: New members.
221 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
222 <m_item_width>: New member.
223
22b7b041
TT
2242020-07-01 Tom Tromey <tom@tromey.com>
225
226 * tui/tui-regs.c (tui_data_window::show_register_group)
227 (tui_data_window::check_register_values): Update.
228 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
229 from item_no.
230
c9753adb
TT
2312020-07-01 Tom Tromey <tom@tromey.com>
232
233 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
234 useless "if".
235
9ab26b4a
TT
2362020-07-01 Tom Tromey <tom@tromey.com>
237
238 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
239 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
240
e555083f
TT
2412020-07-01 Tom Tromey <tom@tromey.com>
242
243 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
244 * tui/tui-winsource.h (enum tui_line_or_address_kind)
245 (struct tui_line_or_address): Move from tui-data.h.
246 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
247 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
248 (tui_cmd_window, tui_source_window_base, tui_source_window)
249 (tui_disasm_window): Don't declare.
250 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
251 to tui-winsource.h.
252 (SINGLE_KEY): Move to tui-stack.c.
253
7a02bab7
TT
2542020-07-01 Tom Tromey <tom@tromey.com>
255
256 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
257 std::string.
258 * tui/tui-regs.c (class tab_expansion_file): New.
259 (tab_expansion_file::write): New method.
260 (tui_register_format): Change return type. Use
261 tab_expansion_file.
262 (tui_get_register, tui_data_window::display_registers_from)
263 (tui_data_item_window::rerender): Update.
264 * tui/tui-io.h (tui_expand_tabs): Don't declare.
265 * tui/tui-io.c (tui_expand_tabs): Remove.
266
ea68593b
TT
2672020-07-01 Tom Tromey <tom@tromey.com>
268
269 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
270
a8caed5d
FS
2712020-07-01 Fangrui Song <maskray@google.com>
272
273 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
274
9cdf9820
AKS
2752020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
276
277 * dwarf2/read.c (set_die_type): Removed conditions to restrict
278 forms for DW_AT_associated and DW_AT_allocated attributes,
279 which is already checked in function attr_to_dynamic_prop.
280
a1520ad8
TT
2812020-06-30 Tom Tromey <tromey@adacore.com>
282
283 * dwarf2/read.c (quirk_rust_enum): Correctly call
284 alloc_rust_variant for default-less enum.
285
5ac58899
TT
2862020-06-30 Tom Tromey <tromey@adacore.com>
287
288 PR build/26183:
289 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
290 gdb::to_string.
291
19b187a9
SM
2922020-06-29 Simon Marchi <simon.marchi@efficios.com>
293
294 * gdbarch.sh (displaced_step_copy_insn): Update doc.
295 * gdbarch.h: Re-generate.
296
cd4c4c07
TT
2972020-06-28 Tom Tromey <tom@tromey.com>
298
299 * command.h (cmd_types): Remove.
300 (cmd_type): Don't declare.
301 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
302 typedef.
303 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
304 * cli/cli-decode.c (cmd_type): Remove.
305
05779d57
PA
3062020-06-27 Pedro Alves <palves@redhat.com>
307
308 * fork-child.c (prefork_hook): Adjust.
309 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
310 Delete.
311 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
312 * inferior.c (inferior::set_tty, inferior::tty): New methods.
313 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
314 Remove declarations.
315 (struct inferior) <set_tty, tty>: New methods.
316 (struct inferior) <terminal>: Rename to ...
317 (struct inferior) <m_terminal>: ... this and make private.
318 * main.c (captured_main_1): Adjust.
319 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
320 (mi_cmd_inferior_tty_show): Adjust.
321 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
322 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
323
1776e3e5
NA
3242020-06-26 Nick Alcock <nick.alcock@oracle.com>
325
326 * configure.ac: Add --enable-libctf: handle --disable-static
327 properly.
328 * acinclude.m4: sinclude ../config/enable.m4.
329 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
330 (LIBCTF): Substitute in.
331 (CTF_DEPS): New, likewise.
332 (CLIBS): libctf needs symbols from libbfd: move earlier.
333 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
334 flags.
335 * ctfread.c: Surround in ENABLE_LIBCTF.
336 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
337 * configure: Regenerate.
338 * config.in: Likewise.
339
58373b80
SM
3402020-06-25 Simon Marchi <simon.marchi@efficios.com>
341
342 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
343
277474ee
SM
3442020-06-25 Simon Marchi <simon.marchi@efficios.com>
345
346 * inferior.h (struct inferior) <terminal>: Change type to
347 gdb::unique_xmalloc_ptr<char>.
348 * inferior.c (inferior::~inferior): Don't free inf->terminal.
349 * infcmd.c (set_inferior_io_terminal): Don't free terminal
350 field, adjust to unique pointer.
351 (get_inferior_io_terminal): Adjust to unique pointer.
352
6d74da72
AB
3532020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
354
355 * riscv-tdep.c (riscv_print_registers_info): Loop over all
356 registers, not just the known core set of registers.
357
2e52d038
AB
3582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
359
360 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
361 fflags, frm, and fcsr registers.
362 (riscv_register_reggroup_p): Remove unknown CSRs from save and
363 restore groups.
364 (riscv_tdesc_unknown_reg): New function.
365 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
366 tdesc_use_registers.
367 * riscv-tdep.h (struct gdbarch_tdep): Add
368 unknown_csrs_first_regnum, unknown_csrs_count,
369 duplicate_fflags_regnum, duplicate_frm_regnum, and
370 duplicate_fcsr_regnum fields.
371
be64fd07
AB
3722020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
373
374 * target-descriptions.c (tdesc_use_registers): Add new parameter a
375 callback, use the callback (when not null) to help number unknown
376 registers.
377 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
378 (tdesc_use_registers): Add extra parameter to declaration.
379
3b9fce96
AB
3802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
381
382 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
383 in the file.
384 (class riscv_pending_register_alias): Likewise.
385 (riscv_register_feature::register_info): Change 'required_p' field
386 to 'required', and change its type. Add 'check' member function.
387 (riscv_register_feature::register_info::check): Define new member
388 function.
389 (riscv_xreg_feature): Change initialisation of 'required' field.
390 (riscv_freg_feature): Likewise.
391 (riscv_virtual_feature): Likewise.
392 (riscv_csr_feature): Likewise.
393 (riscv_check_tdesc_feature): Take extra parameter, the csr
394 tdesc_feature, rewrite the function to use the new
395 riscv_register_feature::register_info::check function.
396 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
397
865bad26
AB
3982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
399
400 * features/Makefile: Remove all references to the deleted files
401 below.
402 * features/riscv/32bit-csr.c: Deleted.
403 * features/riscv/32bit-csr.xml: Deleted.
404 * features/riscv/64bit-csr.c: Deleted.
405 * features/riscv/64bit-csr.xml: Deleted.
406 * features/riscv/rebuild-csr-xml.sh: Deleted.
407
ed69cbc8
AB
4082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
409
410 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
411 whitespace error for declaration of names member variable.
412 (struct riscv_register_feature): Add new prefer_first_name member
413 variable, and fix whitespace error in declaration of registers.
414 (riscv_xreg_feature): Initialize prefer_first_name field.
415 (riscv_freg_feature): Likewise.
416 (riscv_virtual_feature): Likewise.
417 (riscv_csr_feature): Likewise.
418 (riscv_register_name): Expand on comments. Remove register name
419 modifications for CSR and virtual registers.
420
4445e8f5
AB
4212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
422
423 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
424 errors.
425
767a879e
AB
4262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
427
428 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
429 riscv-opc.h.
430 (class riscv_pending_register_alias): New class.
431 (riscv_check_tdesc_feature): Take vector of pending aliases and
432 populate it as appropriate.
433 (riscv_setup_register_aliases): Delete.
434 (riscv_gdbarch_init): Create vector of pending aliases and pass it
435 to riscv_check_tdesc_feature in all cases. Use the vector to
436 create the register aliases.
437
bb6e55f3
RO
4382020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
439
440 * sol2-tdep.c (sol2_static_transform_name): Remove.
441 (sol2_init_abi): Don't register it.
442 * gdbarch.sh (static_transform_name): Remove.
443 * gdbarch.c, gdbarch.h: Regenerate.
444
445 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
446 gdbarch_static_transform_name.
447 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
448 * stabsread.c (define_symbol) <'X'>: Remove.
449 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
450 handling.
451 <'V'>: Likewise.
452 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
453 <'S'>: Remove call to gdbarch_static_transform_name.
454
c6d36836
RO
4552020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
456
457 * procfs.c (procfs_pre_trace): New function.
458 (procfs_target::create_inferior): Pass it to fork_inferior.
459
a7e6196b
RO
4602020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
461
462 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
463 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
464 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
465 sol2-tdep.o, sparc-sol2-tdep.o.
466 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
467 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
468 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
469 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
470
d412e696
RO
4712020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
472
473 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
474 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
475 Call sol2_init_abi.
476 Remove calls to set_gdbarch_skip_solib_resolver,
477 set_gdbarch_core_pid_to_str.
478 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
479 (i386_sol2_static_transform_name): Remove.
480 (i386_sol2_init_abi): Call sol2_init_abi.
481 Remove calls to set_gdbarch_sofun_address_maybe_missing,
482 set_gdbarch_static_transform_name,
483 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
484 Use sol2_sigtramp_p.
485 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
486 (sol2_sigtramp_p): New function.
487 (sol2_static_transform_name): New function.
488 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
489 (sol2_init_abi): New function.
490 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
491 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
492 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
493 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
494 (sparc_sol2_static_transform_name): Remove.
495 (sparc32_sol2_init_abi): Call sol2_init_abi.
496 Remove calls to set_gdbarch_sofun_address_maybe_missing,
497 set_gdbarch_static_transform_name,
498 set_gdbarch_skip_solib_resolver,
499 set_gdbarch_core_pid_to_str.
500 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
501 (sparc_sol2_static_transform_name): Remove
502 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
503 call sol2_sigtramp_p.
504 (sparc64_sol2_init_abi): Call sol2_init_abi.
505 Remove calls to set_gdbarch_sofun_address_maybe_missing,
506 set_gdbarch_static_transform_name,
507 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
508
a8654e7d
PW
5092020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
510
511 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
512 * exec.c (validate_exec_file): If from_tty, set both
513 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
514 * symfile.c (symbol_file_add_with_addrs): if always_confirm
515 and from_tty, unconditionally ask a confirmation.
516
caa7fd04
AB
5172020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
518
519 * target-descriptions.c (tdesc_architecture_name): Protect against
520 NULL pointer dereference.
521 (maint_print_xml_tdesc_cmd): New function.
522 (_initialize_target_descriptions): Register new 'maint print
523 xml-tdesc' command and give it the filename completer.
524 * NEWS: Mention new 'maint print xml-tdesc' command.
525
fbf42f4e
AB
5262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
527
528 * target-descriptions.c (class tdesc_compatible_info): New class.
529 (struct target_desc): Change type of compatible vector.
530 (tdesc_compatible_p): Update for change in type of
531 target_desc::compatible.
532 (tdesc_compatible_info_list): New function.
533 (tdesc_compatible_info_arch_name): New function.
534 (tdesc_add_compatible): Update for change in type of
535 target_desc::compatible.
536 (print_c_tdesc::visit_pre): Likewise.
537
20821f4e
AB
5382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
539
540 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
541 whitespace to underscore.
542 (maint_print_c_tdesc_cmd): Use fake filename for target
543 descriptions that came from the target.
544 (_initialize_target_descriptions): Add filename command completion
545 for 'maint print c-tdesc'.
546
1fb5ee62
SM
5472020-06-23 Simon Marchi <simon.marchi@efficios.com>
548
549 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
550 lines.
551
fc3ecb3e
SM
5522020-06-23 Simon Marchi <simon.marchi@efficios.com>
553
554 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
555 lines.
556 (dwarf2_find_location_expression): Likewise.
557 (call_site_parameter_matches): Likewise.
558 (dwarf2_compile_expr_to_ax): Likewise.
559 (disassemble_dwarf_expression): Likewise.
560 (loclist_describe_location): Likewise.
561
236ef034
PA
5622020-06-23 Pedro Alves <palves@redhat.com>
563
564 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
565 progspace-and-thread.h. Include scoped-mock-context.h instead.
566 (register_to_value_test): Use scoped_mock_context.
567 * regcache.c: Include "scoped-mock-context.h".
568 (cooked_read_test): Don't error out if a target is already pushed.
569 Use scoped_mock_context. Adjust.
570 * scoped-mock-context.h: New file.
571
39e7ecca
AB
5722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
573
574 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
575 initializer.
576 (ada_language::is_string_type_p): New member function.
577 * c-lang.c (c_language_data): Delete la_is_string_type_p
578 initializer.
579 (cplus_language_data): Likewise.
580 (asm_language_data): Likewise.
581 (minimal_language_data): Likewise.
582 * d-lang.c (d_language_data): Likewise.
583 * f-lang.c (f_is_string_type_p): Delete function, implementation
584 moved to f_language::is_string_type_p.
585 (f_language_data): Delete la_is_string_type_p initializer.
586 (f_language::is_string_type_p): New member function,
587 implementation from f_is_string_type_p.
588 * go-lang.c (go_is_string_type_p): Delete function, implementation
589 moved to go_language::is_string_type_p.
590 (go_language_data): Delete la_is_string_type_p initializer.
591 (go_language::is_string_type_p): New member function,
592 implementation from go_is_string_type_p.
593 * language.c (language_defn::is_string_type_p): Define new member
594 function.
595 (default_is_string_type_p): Make static, add comment copied from
596 header file.
597 (unknown_language_data): Delete la_is_string_type_p initializer.
598 (unknown_language::is_string_type_p): New member function.
599 (auto_language_data): Delete la_is_string_type_p initializer.
600 (auto_language::is_string_type_p): New member function.
601 * language.h (language_data): Delete la_is_string_type_p field.
602 (language_defn::is_string_type_p): Declare new function.
603 (default_is_string_type_p): Delete desclaration, move comment to
604 definition.
605 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
606 moved to m2_language::is_string_type_p.
607 (m2_language_data): Delete la_is_string_type_p initializer.
608 (m2_language::is_string_type_p): New member function,
609 implementation from m2_is_string_type_p.
610 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
611 initializer.
612 * opencl-lang.c (opencl_language_data): Likewise.
613 * p-lang.c (pascal_is_string_type_p): Delete function,
614 implementation moved to pascal_language::is_string_type_p.
615 (pascal_language_data): Delete la_is_string_type_p initializer.
616 (pascal_language::is_string_type_p): New member function,
617 implementation from pascal_is_string_type_p.
618 * rust-lang.c (rust_is_string_type_p): Delete function,
619 implementation moved to rust_language::is_string_type_p.
620 (rust_language_data): Delete la_is_string_type_p initializer.
621 (rust_language::is_string_type_p): New member function,
622 implementation from rust_is_string_type_p.
623 * valprint.c (val_print_scalar_or_string_type_p): Update call to
624 is_string_type_p.
625
4ffc13fb
AB
6262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
627
628 * ada-lang.c (ada_language_data): Delete la_print_typedef
629 initializer.
630 (ada_language::print_typedef): New member function.
631 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
632 (cplus_language_data): Likewise.
633 (asm_language_data): Likewise.
634 (minimal_language_data): Likewise.
635 * d-lang.c (d_language_data): Likewise.
636 * f-lang.c (f_language_data): Likewise.
637 (f_language::print_typedef): New member function.
638 * go-lang.c (go_language_data): Delete la_print_typedef
639 initializer.
640 * language.c (language_defn::print_typedef): Define member
641 function.
642 (unknown_language_data): Delete la_print_typedef initializer.
643 (unknown_language::print_typedef): New member function.
644 (auto_language_data): Delete la_print_typedef initializer.
645 (auto_language::print_typedef): New member function.
646 * language.h (language_data): Delete la_print_typedef field.
647 (language_defn::print_typedef): Declare new member function.
648 (LA_PRINT_TYPEDEF): Update call to print_typedef.
649 (default_print_typedef): Delete declaration.
650 * m2-lang.c (m2_language_data): Delete la_print_typedef
651 initializer.
652 (m2_language::print_typedef): New member function.
653 * objc-lang.c (objc_language_data): Delete la_print_typedef
654 initializer.
655 * opencl-lang.c (opencl_language_data): Likewise.
656 * p-lang.c (pascal_language_data): Likewise.
657 (pascal_language::print_typedef): New member function.
658 * rust-lang.c (rust_print_typedef): Delete function,
659 implementation moved to rust_language::print_typedef.
660 (rust_language): Delete la_print_typedef initializer.
661 (rust_language::print_typedef): New member function,
662 implementation from rust_print_typedef.
663 * typeprint.c (default_print_typedef): Delete.
664
d711ee67
AB
6652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
666
667 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
668 (ada_language::printstr): New member function.
669 * c-lang.c (c_language_data): Delete la_printstr initializer.
670 (cplus_language_data): Likewise.
671 (asm_language_data): Likewise.
672 (minimal_language_data): Likewise.
673 * d-lang.c (d_language_data): Likewise.
674 * f-lang.c (f_printstr): Rename to f_language::printstr.
675 (f_language_data): Delete la_printstr initializer.
676 (f_language::printstr): New member function, implementation from
677 f_printstr.
678 * go-lang.c (go_language_data): Delete la_printstr initializer.
679 * language.c (language_defn::printstr): Define new member
680 function.
681 (unk_lang_printstr): Delete.
682 (unknown_language_data): Delete la_printstr initializer.
683 (unknown_language::printstr): New member function.
684 (auto_language_data): Delete la_printstr initializer.
685 (auto_language::printstr): New member function.
686 * language.h (language_data): Delete la_printstr field.
687 (language_defn::printstr): Declare new member function.
688 (LA_PRINT_STRING): Update call to printstr.
689 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
690 (m2_language_data): Delete la_printstr initializer.
691 (m2_language::printstr): New member function, implementation from
692 m2_printstr.
693 * objc-lang.c (objc_language_data): Delete la_printstr
694 initializer.
695 * opencl-lang.c (opencl_language_data): Likewise.
696 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
697 (pascal_language_data): Delete la_printstr initializer.
698 (pascal_language::printstr): New member function, implementation
699 from pascal_printstr.
700 * p-lang.h (pascal_printstr): Delete declaration.
701 * rust-lang.c (rust_printstr): Update header comment.
702 (rust_language_data): Delete la_printstr initializer.
703 (rust_language::printstr): New member function.
704
52b50f2c
AB
7052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
706
707 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
708 (ada_language::printchar): New member function.
709 * c-lang.c (c_language_data): Delete la_printchar initializer.
710 (cplus_language_data): Likewise.
711 (asm_language_data): Likewise.
712 (minimal_language_data): Likewise.
713 * d-lang.c (d_language_data): Likewise.
714 * f-lang.c (f_printchar): Rename to f_language::printchar.
715 (f_language_data): Delete la_printchar initializer.
716 (f_language::printchar): New member function, implementation from
717 f_printchar.
718 * go-lang.c (go_language_data): Delete la_printchar initializer.
719 * language.c (unk_lang_printchar): Delete.
720 (language_defn::printchar): Define new member function.
721 (unknown_language_data): Delete la_printchar initializer.
722 (unknown_language::printchar): New member function.
723 (auto_language_data): Delete la_printchar initializer.
724 (auto_language::printchar): New member function.
725 * language.h (language_data): Delete la_printchar field.
726 (language_defn::printchar): Declare new member function.
727 (LA_PRINT_CHAR): Update call to printchar.
728 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
729 (m2_language::printchar): New member function.
730 * objc-lang.c (objc_language_data): Delete la_printchar
731 initializer.
732 * opencl-lang.c (opencl_language_data): Likewise.
733 * p-lang.c (pascal_language_data): Delete la_printchar
734 initializer.
735 (pascal_language::printchar): New member function.
736 * rust-lang.c (rust_printchar): Rename to
737 rust_language::printchar.
738 (rust_language_data): Delete la_printchar initializer.
739 (rust_language::printchar): New member function, implementation
740 from rust_printchar.
741
ec8cec5b
AB
7422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
743
744 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
745 (ada_language_data): Delete la_emitchar initializer.
746 (ada_language::emitchar): New member function, implementation from
747 emit_char.
748 * c-lang.c (c_language_data): Delete la_emitchar initializer.
749 (cplus_language_data): Likewise.
750 (asm_language_data): Likewise.
751 (minimal_language_data): Likewise.
752 * d-lang.c (d_language_data): Likewise.
753 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
754 (f_language_data): Delete la_emitchar initializer.
755 (f_language::emitchar): New member function, implementation from
756 f_emit_char.
757 * go-lang.c (go_language_data): Delete la_emitchar initializer.
758 * language.c (unk_lang_emit_char): Delete.
759 (language_defn::emitchar): New member function definition.
760 (unknown_language_data): Delete la_emitchar initializer.
761 (unknown_language::emitchar): New member function.
762 (auto_language_data): Delete la_emitchar initializer.
763 (auto_language::emitchar): New member function.
764 * language.h (language_data): Delete la_emitchar field.
765 (language_defn::emitchar): New member field declaration.
766 (LA_EMIT_CHAR): Update call to emitchar.
767 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
768 (m2_language_data): Delete la_emitchar initializer.
769 (m2_language::emitchar): New member function, implementation from
770 m2_emit_char.
771 * objc-lang.c (objc_language_data): Delete la_emitchar
772 initializer.
773 * opencl-lang.c (opencl_language_data): Likewise.
774 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
775 (pascal_language_data): Delete la_emitchar initializer.
776 (pascal_language::emitchar): New member function, implementation
777 from pascal_emit_char.
778 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
779 (rust_language_data): Delete la_emitchar initializer.
780 (rust_language::emitchar): New member function, implementation
781 from rust_emitchar.
782
1bf9c363
AB
7832020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
784
785 * ada-lang.c (resolve): Rename to ada_language::post_parser.
786 (ada_language_data): Delete la_post_parser initializer.
787 (ada_language::post_parser): New member function.
788 * c-lang.c (c_language_data): Delete la_post_parser initializer.
789 (cplus_language_data): Likewise.
790 (asm_language_data): Likewise.
791 (minimal_language_data): Likewise.
792 * d-lang.c (d_language_data): Likewise.
793 * f-lang.c (f_language_data): Likewise.
794 * go-lang.c (go_language_data): Likewise.
795 * language.c (unknown_language_data): Likewise.
796 (auto_language_data): Likewise.
797 * language.h (language_data): Delete la_post_parser field.
798 (language_defn::post_parser): New member function.
799 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
800 * objc-lang.c (objc_language_data): Likewise.
801 * opencl-lang.c (opencl_language_data): Likewise.
802 * p-lang.c (pascal_language_data): Likewise.
803 * parse.c (parse_exp_in_context): Update call to post_parser.
804 (null_post_parser): Delete definition.
805 * parser-defs.h (null_post_parser): Delete declaration.
806 * rust-lang.c (rust_language_data): Delete la_post_parser
807 initializer.
808
87afa652
AB
8092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
810
811 * ada-lang.c (parse): Rename to ada_language::parser.
812 (ada_language_data): Delete la_parser initializer.
813 (ada_language::parser): New member function, implementation from
814 parse.
815 * c-lang.c (c_language_data): Delete la_parser initializer.
816 (cplus_language_data): Likewise.
817 (asm_language_data): Likewise.
818 (minimal_language_data): Likewise.
819 * d-lang.c (d_language_data): Likewise.
820 (d_language::parser): New member function.
821 * f-lang.c (f_language_data): Delete la_parser initializer.
822 (f_language::parser): New member function.
823 * go-lang.c (go_language_data): Delete la_parser initializer.
824 (go_language::parser): New member function.
825 * language.c (unk_lang_parser): Delete.
826 (language_defn::parser): Define new member function.
827 (unknown_language_data): Delete la_parser initializer.
828 (unknown_language::parser): New member function.
829 (auto_language_data): Delete la_parser initializer.
830 (auto_language::parser): New member function.
831 * language.h (language_data): Delete la_parser field.
832 (language_defn::parser): Declare new member function.
833 * m2-lang.c (m2_language_data): Delete la_parser initializer.
834 (m2_language::parser): New member function.
835 * objc-lang.c (objc_language_data): Delete la_parser initializer.
836 * opencl-lang.c (opencl_language_data): Likewise.
837 * p-lang.c (pascal_language_data): Likewise.
838 (pascal_language::parser): New member function.
839 * parse.c (parse_exp_in_context): Update call to parser.
840 * rust-lang.c (rust_language_data): Delete la_parser initializer.
841 (rust_language::parser): New member function.
842
37825800
AB
8432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
844
845 * top.c (print_gdb_configuration): Print --with-python-libdir
846 configuration value.
847
5b860c93
PW
8482020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
849
850 * NEWS: Mention change to the alias command.
851
cf00cd6f
PW
8522020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
853
854 * cli/cli-cmds.c (lookup_cmd_for_default_args)
855 (alias_command_completer)
856 (make_alias_options_def_group): New functions.
857 (alias_opts, alias_option_defs): New struct and array.
858 (alias_usage_error): Update usage.
859 (alias_command): Handles optional DEFAULT-ARGS... arguments.
860 Use option framework.
861 (_initialize_cli_cmds): Update alias command help.
862 Update aliases command help.
863 (show_user):
864 Add NULL for new default_args lookup_cmd argument.
865 (valid_command_p): Rename to validate_aliased_command.
866 Add NULL for new default_args lookup_cmd argument. Verify that the
867 aliased_command has no default args.
868 * cli/cli-decode.c (help_cmd): Show aliases definitions.
869 (lookup_cmd_1, lookup_cmd): New argument default_args.
870 (add_alias_cmd):
871 Add NULL for new default_args lookup_cmd argument.
872 (print_help_for_command): Show default args under the layout
873 alias some_alias = some_aliased_cmd some_alias_default_arg.
874 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
875 xfree default_args in destructor.
876 * cli/cli-script.c (process_next_line, do_define_command):
877 Add NULL for new default_args lookup_cmd argument.
878 * command.h: Declare new default_args argument in lookup_cmd
879 and lookup_cmd_1.
880 * completer.c (complete_line_internal_1):
881 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
882 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
883 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
884 Likewise.
885 * infcmd.c (_initialize_infcmd): Likewise.
886 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
887 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
888 * python/py-param.c (add_setshow_generic): Likewise.
889 * remote.c (_initialize_remote): Likewise.
890 * top.c (execute_command): Prepend default_args if command has some.
891 (set_verbose):
892 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
893 * tracepoint.c (validate_actionline, encode_actions_1):
894 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
895
bd920864
TBA
8962020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
897
898 * jit.c (jit_read_descriptor): Use bool as the return type.
899 (jit_breakpoint_re_set_internal): Use bool as the return type.
900 Invert the return value logic; return true if the jit breakpoint
901 has been successfully initialized.
902 (jit_inferior_init): Update the call to
903 jit_breakpoint_re_set_internal.
904
f8098322
PA
9052020-06-22 Pedro Alves <palves@redhat.com>
906
907 PR gdb/25939
908 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
909 Use the current inferior instead. Don't return
910 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
911 wait again.
912 * sol-thread.c (sol_thread_target::wait): Don't reference
913 inferior_ptid.
914 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
915 (sol_update_thread_list_callback): Use the current inferior's pid
916 instead of inferior_ptid.
917
196535a6
RO
9182020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
919
920 * procfs.c: Cleanup many comments.
921
922 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
923 (AFTER_WATCHFLAG): Replace by value.
924
925 (MAIN_PROC_NAME_FORMAT): Inline ...
926 (create_procinfo): ... here.
927
928 (procfs_debug_inferior): Remove SYS_exec handling.
929 (syscall_is_exec): Likewise.
930 (procfs_set_exec_trap): Likewise.
931
932 (syscall_is_lwp_exit): Inline in callers.
933 (syscall_is_exit): Likewise.
934 (syscall_is_exec): Likewise.
935 (syscall_is_lwp_create): Likewise.
936
937 (invalidate_cache): Remove #if 0 code.
938
939 (make_signal_thread_runnable): Remove.
940 (procfs_target::resume): Remove #if 0 code.
941
cf6f3e86
RO
9422020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
943
944 PR gdb/25939
945 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
946 call ...
947 (procfs_target::create_inferior): ... here.
948
48e9cc84
PW
9492020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
950
951 * exec.c (validate_exec_file): Ensure the build-id is up to
952 date by calling reopen_exec_file (that checks file timestamp
953 to decide to re-read the file).
954
3922b302
PA
9552020-06-18 Pedro Alves <palves@redhat.com>
956
957 PR gdb/25412
958 * gdbthread.h (delete_thread, delete_thread_silent)
959 (find_thread_ptid): Update comments.
960 * thread.c (current_thread_): New global.
961 (is_current_thread): Move higher, and reimplement.
962 (inferior_thread): Reimplement.
963 (set_thread_exited): Use bool. Add assertions.
964 (add_thread_silent): Simplify thread-reuse handling by always
965 calling delete_thread.
966 (delete_thread): Remove intro comment.
967 (find_thread_ptid): Skip exited threads.
968 (switch_to_thread_no_regs): Write to current_thread_.
969 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
970 INFERIOR_PTID. Clear current_thread_.
971
6dbdab44
PA
9722020-06-18 Pedro Alves <palves@redhat.com>
973
974 * aix-thread.c (pd_update): Use switch_to_thread.
975
2da4b788
PA
9762020-06-18 Pedro Alves <palves@redhat.com>
977
978 * ravenscar-thread.c (ravenscar_thread_target): Update.
979 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
980 (ravenscar_thread_target::add_active_thread): ... this. Don't
981 set m_base_ptid here. Update to avoid referencing inferior_ptid.
982 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
983
50838d1b
PA
9842020-06-18 Pedro Alves <palves@redhat.com>
985
986 * nat/windows-nat.c (current_windows_thread): Remove.
987 * nat/windows-nat.h (current_windows_thread): Remove.
988 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
989 Adjust.
990 (display_selectors): Adjust to fetch the current
991 windows_thread_info based on inferior_ptid.
992 (fake_create_process): No longer write to current_windows_thread.
993 (windows_nat_target::get_windows_debug_event):
994 Don't set inferior_ptid or current_windows_thread.
995 (windows_nat_target::wait): Adjust to not rely on
996 current_windows_thread.
997 (do_initial_windows_stuff): Now a method of windows_nat_target.
998 Switch to the last_ptid thread.
999 (windows_nat_target::attach): Adjust.
1000 (windows_nat_target::detach): Use switch_to_no_thread instead of
1001 writing to inferior_ptid directly.
1002 (windows_nat_target::create_inferior): Adjust.
1003
31ce04e9
PA
10042020-06-18 Pedro Alves <palves@redhat.com>
1005
1006 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1007
1ee1a363
PA
10082020-06-18 Pedro Alves <palves@redhat.com>
1009
1010 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1011 after creating it, instead of writing to inferior_ptid. Don't
1012 write to inferior_ptid.
1013
6d350754
PA
10142020-06-18 Pedro Alves <palves@redhat.com>
1015
1016 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1017
5d971d48
PA
10182020-06-18 Pedro Alves <palves@redhat.com>
1019
1020 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1021 it, instead of writing to inferior_ptid.
1022
86e57d1b
PA
10232020-06-18 Pedro Alves <palves@redhat.com>
1024
1025 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1026 to inferior_ptid.
1027
f2e1c129
PA
10282020-06-18 Pedro Alves <palves@redhat.com>
1029
1030 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1031 instead of writing to inferior_ptid directly.
1032
60db1b85
PA
10332020-06-18 Pedro Alves <palves@redhat.com>
1034
1035 * corelow.c (core_target::close): Use switch_to_no_thread instead
1036 of writing to inferior_ptid directly.
1037 (add_to_thread_list, core_target_open): Use switch_to_thread
1038 instead of writing to inferior_ptid directly.
1039
fe7d6a8d
PA
10402020-06-18 Pedro Alves <palves@redhat.com>
1041
1042 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1043 inferior_ptid.
1044 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1045 inferior_ptid.
1046 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1047 inferior_ptid directly.
1048 (darwin_nat_target::init_thread_list): Switch to thread, instead
1049 of writing to inferior_ptid.
1050 (darwin_nat_target::attach): Don't write to inferior_ptid.
1051 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1052
975f8708
PA
10532020-06-18 Pedro Alves <palves@redhat.com>
1054
1055 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1056 thread.
1057 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1058 Instead use switch_to_thread.
1059 (gnu_nat_target::detach): Use switch_to_no_thread
1060 instead of writing to inferior_ptid directly. Used passed-in
1061 inferior instead of looking up the inferior by pid.
1062
1a204730
PA
10632020-06-18 Pedro Alves <palves@redhat.com>
1064
1065 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1066 inferior_ptid.
1067
ebe84f23
PA
10682020-06-18 Pedro Alves <palves@redhat.com>
1069
1070 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1071 inferior_ptid.
1072 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1073 thread.
1074 (nto_procfs_target::detach): Avoid referencing
1075 inferior_ptid. Use switch_to_no_thread instead of writing to
1076 inferior_ptid directly.
1077 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1078 instead of writing to inferior_ptid directly.
1079 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1080 to thread.
1081
191f02e5
PA
10822020-06-18 Pedro Alves <palves@redhat.com>
1083
1084 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1085 after creating it, instead of writing to inferior_ptid.
1086 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1087 to inferior_ptid directly.
1088 (gdbsim_target::wait): Don't write to inferior_ptid.
1089
0ac55310
PA
10902020-06-18 Pedro Alves <palves@redhat.com>
1091
1092 * remote.c (remote_target::remote_notice_new_inferior): Use
1093 switch_to_thread instead of writing to inferior_ptid directly.
1094 (remote_target::add_current_inferior_and_thread): Use
1095 switch_to_no_thread instead of writing to inferior_ptid directly.
1096 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1097 and switch_to_thread instead of using set_current_inferior or
1098 writing to inferior_ptid directly.
1099
5233f39b
PA
11002020-06-18 Pedro Alves <palves@redhat.com>
1101
1102 * tracectf.c (ctf_target_open): Switch to added thread instead of
1103 writing to inferior_ptid directly.
1104 (ctf_target::close): Use switch_to_no_thread instead of writing to
1105 inferior_ptid directly.
1106
087e161b
PA
11072020-06-18 Pedro Alves <palves@redhat.com>
1108
1109 * tracefile-tfile.c (tfile_target_open): Don't write to
1110 inferior_ptid directly, instead switch to added thread.
1111 (tfile_target::close): Use switch_to_no_thread instead of writing
1112 to inferior_ptid directly.
1113
7fb43e53
PA
11142020-06-18 Pedro Alves <palves@redhat.com>
1115
1116 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1117 (procfs_target::detach): Use switch_to_no_thread
1118 instead of writing to inferior_ptid directly.
1119 (do_attach): Change return type to void. Switch to the added
1120 thread.
1121 (procfs_target::create_inferior): Switch to the added thread.
1122 (procfs_do_thread_registers): Don't write to inferior_ptid.
1123
18493a00
PA
11242020-06-18 Pedro Alves <palves@redhat.com>
1125
1126 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1127 of writing to inferior_ptid.
1128 (scoped_restore_exited_inferior): Delete.
1129 (handle_vfork_child_exec_or_exit): Simplify using
1130 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1131 instead of writing to inferior_ptid.
1132 (THREAD_STOPPED_BY): Delete.
1133 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1134 (thread_stopped_by_hw_breakpoint): Delete.
1135 (save_waitstatus): Use
1136 scoped_restore_current_thread+switch_to_thread, and call
1137 target_stopped_by_watchpoint instead of
1138 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1139 instead of thread_stopped_by_sw_breakpoint, and
1140 target_stopped_by_hw_breakpoint instead of
1141 thread_stopped_by_hw_breakpoint.
1142 (handle_inferior_event)
1143 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1144 inferior_ptid directly, nor
1145 set_current_inferior/set_current_program_space. Use
1146 switch_to_thread / switch_to_inferior_no_thread instead.
1147
a0776b13
PA
11482020-06-18 Pedro Alves <palves@redhat.com>
1149
1150 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1151 instead of writing to inferior_ptid.
1152
6155c136
PA
11532020-06-18 Pedro Alves <palves@redhat.com>
1154
1155 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1156 added thread.
1157 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1158 to the added thread.
1159 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1160 instead of writing to inferior_ptid.
1161
c5316fc6
PA
11622020-06-18 Pedro Alves <palves@redhat.com>
1163
1164 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1165 (register_to_value_test): Mock a program_space too. Heap-allocate
1166 the address space. Don't write to inferior_ptid. Use
1167 switch_to_thread instead.
1168
8df01799
PA
11692020-06-18 Pedro Alves <palves@redhat.com>
1170
1171 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1172 Delete.
1173 (find_signalled_thread()): New, factored out from
1174 linux_make_corefile_notes and adjusted to handle exited threads.
1175 (linux_make_corefile_notes): Adjust to use the new
1176 find_signalled_thread.
1177
41792d68
PA
11782020-06-18 Pedro Alves <palves@redhat.com>
1179
1180 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1181 of saving/restoring inferior_ptid.
1182
612f258a
TT
11832020-06-17 Tom Tromey <tom@tromey.com>
1184
1185 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1186 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1187 declare.
1188 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1189
efb763a5
SM
11902020-06-15 Simon Marchi <simon.marchi@efficios.com>
1191
1192 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1193 of partial symtabs.
1194
2951f6c0
SM
11952020-06-17 Simon Marchi <simon.marchi@efficios.com>
1196
1197 * regformats/reg-arm.dat: Remove.
1198 * regformats/reg-bfin.dat: Remove.
1199 * regformats/reg-cris.dat: Remove.
1200 * regformats/reg-crisv32.dat: Remove.
1201 * regformats/reg-m32r.dat: Remove.
1202 * regformats/reg-tilegx.dat: Remove.
1203 * regformats/reg-tilegx32.dat: Remove.
1204
7d458ea5
SM
12052020-06-17 Simon Marchi <simon.marchi@efficios.com>
1206
1207 * features/Makefile (WHICH): Remove arm files.
1208 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1209 * regformats/arm/arm-with-neon.dat: Remove.
1210 * regformats/arm/arm-with-vfpv2.dat: Remove.
1211 * regformats/arm/arm-with-vfpv3.dat: Remove.
1212
3af96c0d
SM
12132020-06-17 Simon Marchi <simon.marchi@efficios.com>
1214
1215 * features/Makefile (XMLTOC): Remove rx.xml.
1216
b25e22fd
PA
12172020-06-17 Pedro Alves <palves@redhat.com>
1218
1219 * gdbthread.h (thread_control_state) <trap_expected> Update
1220 comments.
1221
a78a19b1
AB
12222020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1223
1224 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1225 ada_language::lookup_symbol_nonlocal.
1226 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1227 (ada_language::lookup_symbol_nonlocal): New member function,
1228 implementation from ada_lookup_symbol_nonlocal.
1229 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1230 initializer.
1231 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1232 initializer.
1233 (cplus_language::lookup_symbol_nonlocal): New member function.
1234 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1235 (minimal_language_data) Likewise.
1236 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1237 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1238 initializer.
1239 (d_language::lookup_symbol_nonlocal): New member function.
1240 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1241 initializer.
1242 (f_language::lookup_symbol_nonlocal): New member function.
1243 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1244 initializer.
1245 * language.c (unknown_language_data): Likewise.
1246 (auto_language_data): Likewise.
1247 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1248 field.
1249 (language_defn::lookup_symbol_nonlocal): New member function.
1250 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1251 initializer.
1252 * objc-lang.c (objc_language_data): Likewise.
1253 * opencl-lang.c (opencl_language_data): Likewise.
1254 * p-lang.c (pascal_language_data): Likewise.
1255 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1256 rust_language::lookup_symbol_nonlocal.
1257 (rust_language_data): Delete la_lookup_symbol_nonlocal
1258 initializer.
1259 (rust_language::lookup_symbol_nonlocal): New member function,
1260 implementation from rust_lookup_symbol_nonlocal.
1261 * symtab.c (lookup_symbol_aux): Update call to
1262 lookup_symbol_nonlocal.
1263 (basic_lookup_symbol_nonlocal): Rename to...
1264 (language_defn::lookup_symbol_nonlocal): ...this, and update
1265 header comment. Remove language_defn parameter, and replace with
1266 uses of `this'.
1267 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1268
ebe2334e
AB
12692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1270
1271 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1272 initializer.
1273 (ada_language::value_print_inner): New member function.
1274 * c-lang.c (c_language_data): Delete la_value_print_inner
1275 initializer.
1276 (cplus_language_data): Likewise.
1277 (asm_language_data): Likewise.
1278 (minimal_language_data): Likewise.
1279 * d-lang.c (d_language_data): Likewise.
1280 (d_language::value_print_inner): New member function.
1281 * f-lang.c (f_language_data): Delete la_value_print_inner
1282 initializer.
1283 (f_language::value_print_inner): New member function.
1284 * f-lang.h (f_value_print_innner): Rename to...
1285 (f_value_print_inner): ...this (note spelling of 'inner').
1286 * f-valprint.c (f_value_print_innner): Rename to...
1287 (f_value_print_inner): ...this (note spelling of 'inner').
1288 * go-lang.c (go_language_data): Delete la_value_print_inner
1289 initializer.
1290 (go_language::value_print_inner): New member function.
1291 * language.c (language_defn::value_print_inner): Define new member
1292 function.
1293 (unk_lang_value_print_inner): Delete.
1294 (unknown_language_data): Delete la_value_print_inner initializer.
1295 (unknown_language::value_print_inner): New member function.
1296 (auto_language_data): Delete la_value_print_inner initializer.
1297 (auto_language::value_print_inner): New member function.
1298 * language.h (language_data): Delete la_value_print_inner field.
1299 (language_defn::value_print_inner): Delcare new member function.
1300 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1301 initializer.
1302 (m2_language::value_print_inner): New member function.
1303 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1304 initializer.
1305 * opencl-lang.c (opencl_language_data): Likewise.
1306 * p-lang.c (pascal_language_data): Likewise.
1307 (pascal_language::value_print_inner): New member function.
1308 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1309 initializer.
1310 (rust_language::value_print_inner): New member function.
1311 * valprint.c (do_val_print): Update call to value_print_inner.
1312
a1d1fa3e
AB
13132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1314
1315 * ada-lang.c (ada_language_data): Delete la_value_print
1316 initializer.
1317 (ada_language::value_print): New member function.
1318 * c-lang.c (c_language_data): Delete la_value_print initializer.
1319 (cplus_language_data): Likewise.
1320 (asm_language_data): Likewise.
1321 (minimal_language_data): Likewise.
1322 * d-lang.c (d_language_data): Likewise.
1323 * f-lang.c (f_language_data): Likewise.
1324 * go-lang.c (go_language_data): Likewise.
1325 * language.c (unk_lang_value_print): Delete.
1326 (language_defn::value_print): Define new member function.
1327 (unknown_language_data): Delete la_value_print initializer.
1328 (unknown_language::value_print): New member function.
1329 (auto_language_data): Delete la_value_print initializer.
1330 (auto_language::value_print): New member function.
1331 * language.h (language_data): Delete la_value_print field.
1332 (language_defn::value_print): Declare new member function.
1333 (LA_VALUE_PRINT): Update call to value_print.
1334 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1335 * objc-lang.c (objc_language_data): Likewise.
1336 * opencl-lang.c (opencl_language_data): Likewise.
1337 * p-lang.c (pascal_language_data): Likewise.
1338 (pascal_language::value_print): New member function.
1339 * rust-lang.c (rust_language_data): Delete la_value_print
1340 initializer.
1341
f16a9f57
AB
13422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1343
1344 * ada-lang.c (ada_watch_location_expression): Rename to
1345 ada_language::watch_location_expression.
1346 (ada_language_data): Delete la_watch_location_expression
1347 initializer.
1348 (ada_language::watch_location_expression): New member function,
1349 implementation from ada_watch_location_expression.
1350 * breakpoint.c (watch_command_1): Update call to
1351 watch_location_expression.
1352 * c-lang.c (c_watch_location_expression): Rename to
1353 language_defn::watch_location_expression.
1354 (c_language_data): Delete la_watch_location_expression
1355 initializer.
1356 (cplus_language_data): Likewise.
1357 (asm_language_data): Likewise.
1358 (minimal_language_data): Likewise.
1359 * c-lang.h (c_watch_location_expression): Delete declaration.
1360 * d-lang.c (d_language_data): Delete la_watch_location_expression
1361 initializer.
1362 * f-lang.c (f_language_data): Likewise.
1363 * go-lang.c (go_language_data): Likewise.
1364 * language.c (language_defn::watch_location_expression): Member
1365 function implementation from c_watch_location_expression.
1366 (unknown_language_data): Delete la_watch_location_expression
1367 initializer.
1368 (auto_language_data): Likewise.
1369 * language.h (language_data): Delete la_watch_location_expression
1370 field.
1371 (language_defn::watch_location_expression): Declare new member
1372 function.
1373 * m2-lang.c (m2_language_data): Delete
1374 la_watch_location_expression initializer.
1375 * objc-lang.c (objc_language_data): Likewise.
1376 * opencl-lang.c (opencl_language_data): Likewise.
1377 * p-lang.c (pascal_language_data): Likewise.
1378 * rust-lang.c (rust_watch_location_expression): Rename to
1379 rust_language::watch_location_expression.
1380 (rust_language_data): Delete la_watch_location_expression
1381 initializer.
1382 (rust_language::watch_location_expression): New member function,
1383 implementation from rust_watch_location_expression.
1384
7e56227d
AB
13852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1386
1387 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1388 ada_language::collect_symbol_completion_matches.
1389 (ada_language_data): Delete la_collect_symbol_completion_matches
1390 initializer.
1391 (ada_language::collect_symbol_completion_matches): New member
1392 function, implementation from
1393 ada_collect_symbol_completion_matches.
1394 * c-lang.c (c_language_data): Delete
1395 la_collect_symbol_completion_matches initializer.
1396 (cplus_language_data): Likewise.
1397 (asm_language_data): Likewise.
1398 (minimal_language_data): Likewise.
1399 * d-lang.c (d_language_data): Likewise.
1400 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1401 f_language::collect_symbol_completion_matches.
1402 (f_language_data): Delete la_collect_symbol_completion_matches
1403 initializer.
1404 (f_language::collect_symbol_completion_matches) New member
1405 function, implementation from f_collect_symbol_completion_matches.
1406 * go-lang.c (go_language_data): Delete
1407 la_collect_symbol_completion_matches initializer.
1408 * language.c (unknown_language_data): Likewise.
1409 (auto_language_data): Likewise.
1410 * language.h (language_data): Delete
1411 la_collect_symbol_completion_matches field.
1412 (language_defn::collect_symbol_completion_matches): New member
1413 function.
1414 * m2-lang.c (m2_language_data): Delete
1415 la_collect_symbol_completion_matches initializer.
1416 * objc-lang.c (objc_language_data): Likewise.
1417 * opencl-lang.c (opencl_language_data): Likewise.
1418 * p-lang.c (pascal_language_data): Likewise.
1419 * rust-lang.c (rust_language_data): Likewise.
1420 * symtab.c (default_collect_symbol_completion_matches): Delete.
1421 (collect_symbol_completion_matches): Update call to
1422 collect_symbol_completion_matches.
1423 (collect_symbol_completion_matches_type): Likewise.
1424 * symtab.h (default_collect_symbol_completion_matches): Delete
1425 declaration.
1426
53fc67f8
AB
14272020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1428
1429 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1430 (ada_language_data): Delete la_word_break_characters initializer.
1431 (ada_language::word_break_characters): New member function.
1432 * c-lang.c (c_language_data): Delete la_word_break_characters
1433 initializer.
1434 (cplus_language_data): Likewise.
1435 (asm_language_data): Likewise.
1436 (minimal_language_data): Likewise.
1437 * completer.c: Update global comment.
1438 (advance_to_expression_complete_word_point): Update call to
1439 word_break_characters.
1440 (complete_files_symbols): Likewise.
1441 (complete_line_internal_1): Likewise.
1442 (default_completer_handle_brkchars): Likewise.
1443 (skip_quoted_chars): Likewise.
1444 * d-lang.c (d_language_data): Delete la_word_break_characters
1445 initializer.
1446 * f-lang.c (f_word_break_characters): Delete.
1447 (f_language_data): Delete la_word_break_characters initializer.
1448 (f_language::word_break_characters): New member function.
1449 * go-lang.c (go_language_data): Delete la_word_break_characters
1450 initializer.
1451 * language.c (unknown_language_data): Likewise.
1452 (auto_language_data): Likewise.
1453 * language.h (default_word_break_characters): Move declaration to
1454 earlier in the file.
1455 (language_data): Delete la_word_break_characters field.
1456 (language_defn::word_break_characters): New member function.
1457 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1458 initializer.
1459 * objc-lang.c (objc_language_data): Likewise.
1460 * opencl-lang.c (opencl_language_data): Likewise.
1461 * p-lang.c (pascal_language_data): Likewise.
1462 * rust-lang.c (rust_language_data): Likewise.
1463
c9debfb9
AB
14642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1465
1466 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1467 (ada_language_data): Delete la_get_symbol_name_matcher
1468 initializer.
1469 (language_defn::get_symbol_name_matcher_inner): New member
1470 function.
1471 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1472 initializer.
1473 (cplus_language_data): Likewise.
1474 (cplus_language::get_symbol_name_matcher_inner): New member
1475 function.
1476 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1477 (minimal_language_data): Likewise.
1478 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1479 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1480 initializer.
1481 * dictionary.c (iter_match_first_hashed): Update call to
1482 get_symbol_name_matcher.
1483 (iter_match_next_hashed): Likewise.
1484 (iter_match_next_linear): Likewise.
1485 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1486 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1487 initializer.
1488 (f_language::get_symbol_name_matcher_inner): New member function.
1489 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1490 initializer.
1491 * language.c (default_symbol_name_matcher): Update header comment,
1492 make static.
1493 (language_defn::get_symbol_name_matcher): New definition.
1494 (language_defn::get_symbol_name_matcher_inner): Likewise.
1495 (get_symbol_name_matcher): Delete.
1496 (unknown_language_data): Delete la_get_symbol_name_matcher
1497 initializer.
1498 (auto_language_data): Likewise.
1499 * language.h (language_data): Delete la_get_symbol_name_matcher
1500 field.
1501 (language_defn::get_symbol_name_matcher): New member function.
1502 (language_defn::get_symbol_name_matcher_inner): Likewise.
1503 (default_symbol_name_matcher): Delete declaration.
1504 * linespec.c (find_methods): Update call to
1505 get_symbol_name_matcher.
1506 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1507 initializer.
1508 * minsyms.c (lookup_minimal_symbol): Update call to
1509 get_symbol_name_matcher.
1510 (iterate_over_minimal_symbols): Likewise.
1511 * objc-lang.c (objc_language_data): Delete
1512 la_get_symbol_name_matcher initializer.
1513 * opencl-lang.c (opencl_language_data): Likewise.
1514 * p-lang.c (pascal_language_data): Likewise.
1515 * psymtab.c (psymbol_name_matches): Update call to
1516 get_symbol_name_matcher.
1517 * rust-lang.c (rust_language_data): Delete
1518 la_get_symbol_name_matcher initializer.
1519 * symtab.c (symbol_matches_search_name): Update call to
1520 get_symbol_name_matcher.
1521 (compare_symbol_name): Likewise.
1522
9a49ad8c
AB
15232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1524
1525 * ada-lang.c (ada_language_data): Delete la_compute_program
1526 initializer.
1527 * c-lang.c (c_language_data): Likewise.
1528 (c_language::compute_program): New member function.
1529 (cplus_language_data): Delete la_compute_program initializer.
1530 (cplus_language::compute_program): New member function.
1531 (asm_language_data): Delete la_compute_program initializer.
1532 (minimal_language_data): Likewise.
1533 * c-lang.h (c_compute_program): Update comment.
1534 (cplus_compute_program): Likewise.
1535 * compile/compile-c-support.c (c_compute_program): Likewise.
1536 (cplus_compute_program): Likewise.
1537 * compile/compile.c (compile_to_object): Update call to
1538 la_compute_program.
1539 * d-lang.c (d_language_data): Delete la_compute_program
1540 initializer.
1541 * f-lang.c (f_language_data): Likewise.
1542 * go-lang.c (go_language_data): Likewise.
1543 * language.c (unknown_language_data): Likewise.
1544 (auto_language_data): Likewise.
1545 * language.h (language_data): Delete la_compute_program field.
1546 (language_defn::compute_program): New member function.
1547 * m2-lang.c (m2_language_data): Delete la_compute_program
1548 initializer.
1549 * objc-lang.c (objc_language_data): Likewise.
1550 * opencl-lang.c (opencl_language_data): Likewise.
1551 * p-lang.c (pascal_language_data): Likewise.
1552 * rust-lang.c (rust_language_data): Likewise.
1553
eff93b4d
AB
15542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1555
1556 * ada-lang.c (ada_language_data) Delete
1557 la_class_name_from_physname initializer.
1558 * c-lang.c (c_language_data): Likewise.
1559 (cplus_language_data): Likewise.
1560 (cplus_language::class_name_from_physname): New member function.
1561 (asm_language_data): Delete la_class_name_from_physname
1562 initializer.
1563 (minimal_language_data): Likewise.
1564 * d-lang.c (d_language_data): Likewise.
1565 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1566 method on language_defn class.
1567 (guess_full_die_structure_name): Likewise.
1568 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1569 initializer.
1570 * go-lang.c (go_language_data): Likewise.
1571 * language.c (language_class_name_from_physname): Delete.
1572 (unk_lang_class_name): Delete.
1573 (unknown_language_data): Delete la_class_name_from_physname
1574 initializer.
1575 (auto_language_data): Likewise.
1576 * language.h (language_data): Delete la_class_name_from_physname
1577 field.
1578 (language_defn::class_name_from_physname): New function.
1579 (language_class_name_from_physname): Delete declaration.
1580 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1581 initializer.
1582 * objc-lang.c (objc_language_data): Likewise.
1583 * opencl-lang.c (opencl_language_data): Likewise.
1584 * p-lang.c (pascal_language_data): Likewise.
1585 * rust-lang.c (rust_language_data): Likewise.
1586
de543742
TT
15872020-06-16 Tom Tromey <tom@tromey.com>
1588
1589 * tui/tui-data.h (STATUS_NAME): New macro.
1590 * tui/tui-layout.c (tui_remove_some_windows)
1591 (initialize_known_windows, tui_register_window)
1592 (tui_layout_split::remove_windows, initialize_layouts)
1593 (tui_new_layout_command): Don't use hard-coded window names.
1594
a350efd4
TT
15952020-06-16 Tom Tromey <tom@tromey.com>
1596
1597 PR tui/25348:
1598 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1599 tui_initialize_readline. Only run once. Call rl_initialize.
1600 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1601 tui_initialize_readline.
1602 * tui/tui-io.c (tui_setup_io): Call
1603 tui_ensure_readline_initialized.
1604 * tui/tui-interp.c (tui_interp::init): Update.
1605
39ec0490
TT
16062020-06-16 Tom Tromey <tom@tromey.com>
1607
1608 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1609 Also preserve the status window.
1610
d2d1ea20
TT
16112020-06-16 Tom Tromey <tom@tromey.com>
1612
1613 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1614 where m_window==nullptr.
1615
66920317
TT
16162020-06-15 Tom Tromey <tromey@adacore.com>
1617
1618 * windows-nat.c (windows_nat::handle_output_debug_string):
1619 Update.
1620 (windows_nat::handle_ms_vc_exception): Update.
1621 * target.h (target_read_string): Change API.
1622 * target.c (target_read_string): Change API.
1623 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1624 Update.
1625 * solib-frv.c (frv_current_sos): Update.
1626 * solib-dsbt.c (dsbt_current_sos): Update.
1627 * solib-darwin.c (darwin_current_sos): Update.
1628 * linux-thread-db.c (inferior_has_bug): Update.
1629 * expprint.c (print_subexp_standard): Update.
1630 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1631 (ada_exception_message_1): Update.
1632
a5d871dd
TT
16332020-06-15 Tom Tromey <tromey@adacore.com>
1634
1635 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1636
670e35fa
TT
16372020-06-15 Tom Tromey <tromey@adacore.com>
1638
1639 * valprint.c (read_string): Update comment.
1640 * target.c (MIN): Remove.
1641 (target_read_string): Rewrite.
1642
f5272a3b
TT
16432020-06-15 Tom Tromey <tromey@adacore.com>
1644
1645 * corefile.c (read_memory_string): Remove.
1646 * ada-valprint.c (ada_value_print_ptr): Update.
1647 * ada-lang.h (ada_tag_name): Change return type.
1648 * ada-lang.c (type_from_tag): Update.
1649 (ada_tag_name_from_tsd): Change return type. Use
1650 target_read_string.
1651 (ada_tag_name): Likewise.
1652 * gdbcore.h (read_memory_string): Don't declare.
1653
2c074f49
HD
16542020-06-14 Hannes Domani <ssbssa@yahoo.de>
1655
1656 * symtab.c (rbreak_command): Ignore Windows drive colon.
1657
6a17d503
SM
16582020-06-12 Simon Marchi <simon.marchi@efficios.com>
1659
1660 * NEWS: Mention removed GDBserver host support.
1661
453c733f
NC
16622020-06-12 Nelson Chu <nelson.chu@sifive.com>
1663
1664 * features/riscv/rebuild-csr-xml.sh: Updated.
1665
2b4e6a3f
TT
16662020-06-11 Tom Tromey <tom@tromey.com>
1667
1668 PR gdb/18318:
1669 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1670
4412332f
JG
16712020-06-09 Jonny Grant <jg@jguk.org>
16722020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1673
1674 * main.c (captured_main_1): Don't print new line after help.
1675 (print_gdb_help): add mailing list and IRC channel information
1676 to --help. Add new lines between items in the footer. Remove
1677 quotes around bug url.
1678
2f33032a
KS
16792020-06-11 Keith Seitz <keiths@redhat.com>
1680
1681 PR gdb/21356
1682 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1683 Resolve typedefs for type length calculations.
1684
7ab96794
TV
16852020-06-10 Tom de Vries <tdevries@suse.de>
1686
1687 PR ada/24713
1688 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1689 (write_psymbols): Enable .gdb_index for ada.
1690 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1691 ada.
1692
e5f3ece2
TV
16932020-06-10 Tom de Vries <tdevries@suse.de>
1694
1695 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1696 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1697 namei" instead of "const char *name" argument.
1698 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1699 dw2_symtab_iter_init.
1700
940da03e
SM
17012020-06-08 Simon Marchi <simon.marchi@efficios.com>
1702
1703 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1704 to use type::field and field::type instead.
1705
b6cdac4b
SM
17062020-06-08 Simon Marchi <simon.marchi@efficios.com>
1707
1708 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1709 to use field::type instead.
1710
5d14b6e5
SM
17112020-06-08 Simon Marchi <simon.marchi@efficios.com>
1712
1713 * gdbtypes.h (struct field) <type, set_type>: New methods.
1714 Rename `type` field to...
1715 <m_type>: ... this. Change references throughout to use type or
1716 set_type methods.
1717 (FIELD_TYPE): Use field::type. Change call sites that modify
1718 the field's type to use field::set_type instead.
1719
3d967001
SM
17202020-06-08 Simon Marchi <simon.marchi@efficios.com>
1721
1722 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1723 to use type::index_type instead.
1724
262abc0d
SM
17252020-06-08 Simon Marchi <simon.marchi@efficios.com>
1726
1727 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1728 methods.
1729 (TYPE_INDEX_TYPE): Use type::index_type.
1730 * gdbtypes.c (create_array_type_with_stride): Likewise.
1731
82836c92
TT
17322020-06-07 Tom Tromey <tom@tromey.com>
1733
1734 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1735 parameter.
1736 (generic_value_print): Update.
1737
940dace9
AB
17382020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1739
1740 Revert commit 982a38f60b0.
1741 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1742
982a38f6
AB
17432020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1744
1745 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1746 avoid use after free.
1747
82f06518
TV
17482020-06-05 Tom de Vries <tdevries@suse.de>
1749
1750 * NEWS: Fix typos.
1751
f8c41851
SM
17522020-06-04 Simon Marchi <simon.marchi@efficios.com>
1753
1754 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1755 the per_bfd object.
1756 (dwarf2_read_debug_names): Likewise.
1757 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1758 object when re-using a per_bfd object with an index.
1759
f9b5d5ea
TV
17602020-06-03 Tom de Vries <tdevries@suse.de>
1761
1762 PR symtab/26046
1763 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1764 children for C++.
1765 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1766 DW_TAG_subprogram.
1767
f6eee2d0
AB
17682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1769
1770 * ada-lang.c (ada_language_data): Delete skip_trampoline
1771 initializer.
1772 * c-lang.c (c_language_data): Likewise.
1773 (cplus_language_data): Likewise.
1774 (cplus_language::skip_trampoline): New member function.
1775 (asm_language_data): Delete skip_trampoline initializer.
1776 (minimal_language_data): Likewise.
1777 * d-lang.c (d_language_data): Likewise.
1778 * f-lang.c (f_language_data): Likewise.
1779 * go-lang.c (go_language_data): Likewise.
1780 * language.c (unk_lang_trampoline): Delete function.
1781 (skip_language_trampoline): Update.
1782 (unknown_language_data): Delete skip_trampoline initializer.
1783 (auto_language_data): Likewise.
1784 * language.h (language_data): Delete skip_trampoline field.
1785 (language_defn::skip_trampoline): New function.
1786 * m2-lang.c (m2_language_data): Delete skip_trampoline
1787 initializer.
1788 * objc-lang.c (objc_skip_trampoline): Delete function, move
1789 implementation to objc_language::skip_trampoline.
1790 (objc_language_data): Delete skip_trampoline initializer.
1791 (objc_language::skip_trampoline): New member function with
1792 implementation from objc_skip_trampoline.
1793 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1794 initializer.
1795 * p-lang.c (pascal_language_data): Likewise.
1796 * rust-lang.c (rust_language_data): Likewise.
1797
0a50df5d
AB
17982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1799
1800 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1801 (ada_language::demangle): New member function.
1802 * c-lang.c (c_language_data): Delete la_demangle initializer.
1803 (cplus_language_data): Delete la_demangle initializer.
1804 (cplus_language::demangle): New member function.
1805 (asm_language_data): Delete la_demangle initializer.
1806 (minimal_language_data): Delete la_demangle initializer.
1807 * d-lang.c (d_language_data): Delete la_demangle initializer.
1808 (d_language::demangle): New member function.
1809 * f-lang.c (f_language_data): Delete la_demangle initializer.
1810 (f_language::demangle): New member function.
1811 * go-lang.c (go_language_data): Delete la_demangle initializer.
1812 (go_language::demangle): New member function.
1813 * language.c (language_demangle): Update.
1814 (unk_lang_demangle): Delete.
1815 (unknown_language_data): Delete la_demangle initializer.
1816 (unknown_language::demangle): New member function.
1817 (auto_language_data): Delete la_demangle initializer.
1818 (auto_language::demangle): New member function.
1819 * language.h (language_data): Delete la_demangle field.
1820 (language_defn::demangle): New function.
1821 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1822 * objc-lang.c (objc_language_data): Delete la_demangle
1823 initializer.
1824 (objc_language::demangle): New member function.
1825 * opencl-lang.c (opencl_language_data): Delete la_demangle
1826 initializer.
1827 * p-lang.c (pascal_language_data): Likewise.
1828 * rust-lang.c (rust_language_data): Likewise.
1829 (rust_language::demangle): New member function.
1830
fbfb0a46
AB
18312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1832
1833 * ada-lang.c (ada_language_data): Delete la_print_type
1834 initializer.
1835 (ada_language::print_type): New member function.
1836 * c-lang.c (c_language_data): Delete la_print_type initializer.
1837 (c_language::print_type): New member function.
1838 (cplus_language_data): Delete la_print_type initializer.
1839 (cplus_language::print_type): New member function.
1840 (asm_language_data): Delete la_print_type initializer.
1841 (asm_language::print_type): New member function.
1842 (minimal_language_data): Delete la_print_type initializer.
1843 (minimal_language::print_type): New member function.
1844 * d-lang.c (d_language_data): Delete la_print_type initializer.
1845 (d_language::print_type): New member function.
1846 * f-lang.c (f_language_data): Delete la_print_type initializer.
1847 (f_language::print_type): New member function.
1848 * go-lang.c (go_language_data): Delete la_print_type initializer.
1849 (go_language::print_type): New member function.
1850 * language.c (unk_lang_print_type): Delete.
1851 (unknown_language_data): Delete la_print_type initializer.
1852 (unknown_language::print_type): New member function.
1853 (auto_language_data): Delete la_print_type initializer.
1854 (auto_language::print_type): New member function.
1855 * language.h (language_data): Delete la_print_type field.
1856 (language_defn::print_type): New function.
1857 (LA_PRINT_TYPE): Update.
1858 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1859 (m2_language::print_type): New member function.
1860 * objc-lang.c (objc_language_data): Delete la_print_type
1861 initializer.
1862 (objc_language::print_type): New member function.
1863 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1864 to opencl_language::print_type.
1865 (opencl_language_data): Delete la_print_type initializer.
1866 (opencl_language::print_type): New member function, implementation
1867 from opencl_print_type.
1868 * p-lang.c (pascal_language_data): Delete la_print_type
1869 initializer.
1870 (pascal_language::print_type): New member function.
1871 * rust-lang.c (rust_print_type): Delete, implementation moved to
1872 rust_language::print_type.
1873 (rust_language_data): Delete la_print_type initializer.
1874 (rust_language::print_type): New member function, implementation
1875 from rust_print_type.
1876
6f827019
AB
18772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1878
1879 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1880 implementation moves to...
1881 (ada_language::sniff_from_mangled_name): ...here. Update return
1882 type.
1883 (ada_language_data): Delete la_sniff_from_mangled_name
1884 initializer.
1885 * c-lang.c (c_language_data): Likewise.
1886 (cplus_language_data): Likewise.
1887 (cplus_language::sniff_from_mangled_name): New member function,
1888 implementation taken from gdb_sniff_from_mangled_name.
1889 (asm_language_data): Delete la_sniff_from_mangled_name
1890 initializer.
1891 (minimal_language_data): Likewise.
1892 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1893 implementation moves to cplus_language::sniff_from_mangled_name.
1894 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1895 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1896 moves to...
1897 (d_language::sniff_from_mangled_name): ...here.
1898 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1899 * f-lang.c (f_language_data): Likewise.
1900 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1901 moves to...
1902 (go_language::sniff_from_mangled_name): ...here.
1903 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1904 * language.c (language_sniff_from_mangled_name): Delete.
1905 (unknown_language_data): Delete la_sniff_from_mangled_name
1906 initializer.
1907 (auto_language_data): Likewise.
1908 * language.h (language_data): Delete la_sniff_from_mangled_name
1909 field.
1910 (language_defn::sniff_from_mangled_name): New function.
1911 (language_sniff_from_mangled_name): Delete declaration.
1912 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1913 field.
1914 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1915 implementation moves to...
1916 (objc_language::sniff_from_mangled_name): ...here.
1917 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1918 * opencl-lang.c (opencl_language_data): Likewise.
1919 * p-lang.c (pascal_language_data): Likewise.
1920 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1921 implementation moves to...
1922 (rust_language::sniff_from_mangled_name): ...here.
1923 (rust_language_data): Delete la_sniff_from_mangled_name
1924 initializer.
1925 * symtab.c (symbol_find_demangled_name): Call
1926 sniff_from_mangled_name member function.
1927
fb8006fd
AB
19282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1929
1930 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1931 initializer.
1932 * c-lang.c (c_language_data): Likewise.
1933 (cplus_language_data): Likewise.
1934 (cplus_language::search_name_hash): New member function.
1935 (asm_language_data): Delete la_search_name_hash initializer.
1936 (minimal_language_data): Likewise.
1937 * d-lang.c (d_language_data): Likewise.
1938 * dictionary.c (default_search_name_hash): Rename to...
1939 (language_defn::search_name_hash): ...this.
1940 * f-lang.c (f_language_data): Likewise.
1941 (f_language::search_name_hash): New member function.
1942 * go-lang.c (go_language_data): Delete la_search_name_hash
1943 initializer.
1944 * language.c (unknown_language_data): Likewise.
1945 (auto_language_data): Likewise.
1946 * language.h (struct language_data): Delete la_search_name_hash
1947 field.
1948 (language_defn::search_name_hash): Declare new member function.
1949 (default_search_name_hash): Delete declaration.
1950 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1951 initializer.
1952 * objc-lang.c (objc_language_data): Likewise.
1953 * opencl-lang.c (opencl_language_data): Likewise.
1954 * p-lang.c (pascal_language_data): Likewise.
1955 * rust-lang.c (rust_language_data): Likewise.
1956 * symtab.c (search_name_hash): Update call.
1957
8e25bafe
AB
19582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1959
1960 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1961 initializer.
1962 * c-lang.c (class compile_instance): Declare.
1963 (c_language_data): Delete la_get_compile_instance initializer.
1964 (c_language::get_compile_instance): New member function.
1965 (cplus_language_data): Delete la_get_compile_instance initializer.
1966 (cplus_language::get_compile_instance): New member function.
1967 (asm_language_data): Delete la_get_compile_instance initializer.
1968 (minimal_language_data): Likewise.
1969 * c-lang.h (c_get_compile_context): Update comment.
1970 (cplus_get_compile_context): Update comment.
1971 * compile/compile.c (compile_to_object): Update calls, don't rely
1972 on function pointer being NULL.
1973 * d-lang.c (d_language_data): Delete la_get_compile_instance
1974 initializer.
1975 * f-lang.c (f_language_data): Likewise.
1976 * go-lang.c (go_language_data): Likewise.
1977 * language.c (unknown_language_data): Likewise.
1978 (auto_language_data): Likewise.
1979 * language.h (language_data): Delete la_get_compile_instance field.
1980 (language_defn::get_compile_instance): New member function.
1981 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1982 initializer.
1983 * objc-lang.c (objc_language_data): Likewise.
1984 * opencl-lang.c (opencl_language_data): Likewise.
1985 * p-lang.c (pascal_language_data): Likewise.
1986 * rust-lang.c (rust_language_data): Likewise.
1987
4009ee92
AB
19882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1989
1990 * ada-lang.c (ada_add_all_symbols): Update comment.
1991 (ada_iterate_over_symbols): Delete, move implementation to...
1992 (ada_language::iterate_over_symbols): ...here, a new member
1993 function, rewrite to use range based for loop.
1994 (ada_language_data): Delete la_iterate_over_symbols initializer.
1995 * c-lang.c (c_language_data): Likewise.
1996 (cplus_language_data): Likewise.
1997 (asm_language_data): Likewise.
1998 (minimal_language_data): Likewise.
1999 * d-lang.c (d_language_data): Likewise.
2000 * f-lang.c (f_language_data): Likewise.
2001 * go-lang.c (go_language_data): Likewise.
2002 * language.c (unknown_language_data): Likewise.
2003 (auto_language_data): Likewise.
2004 * language.h (language_data): Delete la_iterate_over_symbols field.
2005 (language_defn::iterate_over_symbols): New member function.
2006 (LA_ITERATE_OVER_SYMBOLS): Update.
2007 * linespec.c (iterate_over_all_matching_symtabs): Update.
2008 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2009 initializer.
2010 * objc-lang.c (objc_language_data): Likewise.
2011 * opencl-lang.c (opencl_language_data): Likewise.
2012 * p-lang.c (pascal_language_data): Likewise.
2013 * rust-lang.c (rust_language_data): Likewise.
2014
54f4ca46
AB
20152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2016
2017 * ada-lang.c (ada_language_data): Delete
2018 la_lookup_transparent_type initializer.
2019 * c-lang.c (c_language_data): Likewise.
2020 (cplus_language_data): Likewise.
2021 (cplus_language::lookup_transparent_type): New member function.
2022 (asm_language_data): Delete la_lookup_transparent_type
2023 initializer.
2024 (minimal_language_data): Likewise.
2025 * d-lang.c (d_language_data): Likewise.
2026 * f-lang.c (f_language_data): Likewise.
2027 * go-lang.c (go_language_data): Likewise.
2028 * language.c (unknown_language_data): Likewise.
2029 (auto_language_data): Likewise.
2030 * language.h (struct language_data): Delete
2031 la_lookup_transparent_type field.
2032 (language_defn::lookup_transparent_type): New member function.
2033 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2034 initializer.
2035 * objc-lang.c (objc_language_data): Likewise.
2036 * opencl-lang.c (opencl_language_data): Likewise.
2037 * p-lang.c (pascal_language_data): Likewise.
2038 * rust-lang.c (rust_language_data): Likewise.
2039 * symtab.c (symbol_matches_domain): Update call.
2040
1fb314aa
AB
20412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2042
2043 * ada-lang.c (ada_language_arch_info): Delete function, move
2044 implementation to...
2045 (ada_language::language_arch_info): ...here, a new member
2046 function.
2047 (ada_language_data): Delete la_language_arch_info.
2048 * c-lang.c (c_language_data): Likewise.
2049 (c_language::language_arch_info): New member function.
2050 (cplus_language_arch_info): Delete function, move
2051 implementation to...
2052 (cplus_language::language_arch_info): ...here, a new member
2053 function.
2054 (cplus_language_data): Delete la_language_arch_info.
2055 (asm_language_data): Likewise.
2056 (asm_language::language_arch_info): New member function.
2057 (minimal_language_data): Delete la_language_arch_info.
2058 (minimal_language::language_arch_info): New member function.
2059 * d-lang.c (d_language_arch_info): Delete function, move
2060 implementation to...
2061 (d_language::language_arch_info): ...here, a new member
2062 function.
2063 (d_language_data): Delete la_language_arch_info.
2064 * f-lang.c (f_language_arch_info): Delete function, move
2065 implementation to...
2066 (f_language::language_arch_info): ...here, a new member
2067 function.
2068 (f_language_data): Delete la_language_arch_info.
2069 * go-lang.c (go_language_arch_info): Delete function, move
2070 implementation to...
2071 (go_language::language_arch_info): ...here, a new member
2072 function.
2073 (go_language_data): Delete la_language_arch_info.
2074 * language.c (unknown_language_data): Likewise.
2075 (unknown_language::language_arch_info): New member function.
2076 (auto_language_data): Delete la_language_arch_info.
2077 (auto_language::language_arch_info): New member function.
2078 (language_gdbarch_post_init): Update call to
2079 la_language_arch_info.
2080 * language.h (language_data): Delete la_language_arch_info
2081 function pointer.
2082 (language_defn::language_arch_info): New function.
2083 * m2-lang.c (m2_language_arch_info): Delete function, move
2084 implementation to...
2085 (m2_language::language_arch_info): ...here, a new member
2086 function.
2087 (m2_language_data): Delete la_language_arch_info.
2088 * objc-lang.c (objc_language_arch_info): Delete function, move
2089 implementation to...
2090 (objc_language::language_arch_info): ...here, a new member
2091 function.
2092 (objc_language_data): Delete la_language_arch_info.
2093 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2094 implementation to...
2095 (opencl_language::language_arch_info): ...here, a new member
2096 function.
2097 (opencl_language_data): Delete la_language_arch_info.
2098 * p-lang.c (pascal_language_arch_info): Delete function, move
2099 implementation to...
2100 (pascal_language::language_arch_info): ...here, a new member
2101 function.
2102 (pascal_language_data): Delete la_language_arch_info.
2103 * rust-lang.c (rust_language_arch_info): Delete function, move
2104 implementation to...
2105 (rust_language::language_arch_info): ...here, a new member
2106 function.
2107 (rust_language_data): Delete la_language_arch_info.
2108
48448202
AB
21092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2110
2111 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2112 initializer.
2113 * c-lang.c (c_language_data): Likewise.
2114 (cplus_language_data): Likewise.
2115 (cplus_language::pass_by_reference_info): New method.
2116 (asm_language_data): Delete la_pass_by_reference initializer.
2117 (minimal_language_data): Likewise.
2118 * cp-abi.c (cp_pass_by_reference): Remove use of
2119 default_pass_by_reference.
2120 * d-lang.c (d_language_data): Likewise.
2121 * f-lang.c (f_language_data): Likewise.
2122 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2123 default_pass_by_reference.
2124 * go-lang.c (go_language_data): Likewise.
2125 * language.c (language_pass_by_reference): Update.
2126 (default_pass_by_reference): Delete.
2127 (unknown_language_data): Delete la_pass_by_reference
2128 initializer.
2129 (auto_language_data): Likewise.
2130 * language.h (struct language_data): Delete la_pass_by_reference
2131 field.
2132 (language_defn::pass_by_reference_info): New member function.
2133 (default_pass_by_reference): Delete declaration.
2134 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2135 initializer.
2136 * objc-lang.c (objc_language_data): Likewise.
2137 * opencl-lang.c (opencl_language_data): Likewise.
2138 * p-lang.c (pascal_language_data): Likewise.
2139 * rust-lang.c (rust_language_data): Likewise.
2140
15e5fd35
AB
21412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2142
2143 * ada-lang.c (ada_read_var_value): Delete function, move
2144 implementation to...
2145 (ada_language::read_var_value): ...here.
2146 (ada_language_data): Delete la_read_var_value initializer.
2147 * c-lang.c (c_language_data): Likewise.
2148 (cplus_language_data): Likewise.
2149 (minimal_language_data): Likewise.
2150 * d-lang.c (d_language_data): Likewise.
2151 * f-lang.c (f_language_data): Likewise.
2152 * findvar.c (default_read_var_value): Rename to...
2153 (language_defn::read_var_value): ...this.
2154 * findvar.c (read_var_value): Update header comment, and change to
2155 call member function instead of function pointer.
2156 * go-lang.c (go_language_data): Likewise.
2157 * language.c (unknown_language_data): Delete la_read_var_value
2158 initializer.
2159 (auto_language_data): Likewise.
2160 * language.h (struct language_data): Delete la_read_var_value
2161 field.
2162 (language_defn::read_var_value): New member function.
2163 (default_read_var_value): Delete declaration.
2164 * m2-lang.c (m2_language_data): Delete la_read_var_value
2165 initializer.
2166 * objc-lang.c (objc_language_data): Likewise.
2167 * opencl-lang.c (opencl_language_data): Likewise.
2168 * p-lang.c (pascal_language_data): Likewise.
2169 * rust-lang.c (rust_language_data): Likewise.
2170 * value.h (default_read_var_value): Delete declaration.
2171
5bd40f2a
AB
21722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2173
2174 * ada-lang.c (ada_print_array_index): Delete function, move
2175 implementation to...
2176 (ada_language::print_array_index): ...here.
2177 (ada_language_data): Delete la_print_array_index initializer.
2178 * c-lang.c (c_language_data): Likewise.
2179 (cplus_language_data): Likewise.
2180 (minimal_language_data): Likewise.
2181 * d-lang.c (d_language_data): Likewise.
2182 * f-lang.c (f_language_data): Likewise.
2183 * go-lang.c (go_language_data): Likewise.
2184 * language.c (default_print_array_index): Delete function, move
2185 implementation to...
2186 (language_defn::print_array_index): ...here.
2187 (unknown_language_data): Delete la_print_array_index initializer.
2188 (auto_language_data): Likewise.
2189 * language.h (struct language_data): Delete la_print_array_index
2190 field.
2191 (language_defn::print_array_index): New member function.
2192 (LA_PRINT_ARRAY_INDEX): Update.
2193 (default_print_array_index): Delete declaration.
2194 * m2-lang.c (m2_language_data): Delete la_print_array_index
2195 initializer.
2196 * objc-lang.c (objc_language_data): Likewise.
2197 * opencl-lang.c (opencl_language_data): Likewise.
2198 * p-lang.c (pascal_language_data): Likewise.
2199 * rust-lang.c (rust_language_data): Likewise.
2200
0874fd07
AB
22012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2202
2203 * gdb/ada-lang.c (ada_language_defn): Convert to...
2204 (ada_language_data): ...this.
2205 (class ada_language): New class.
2206 (ada_language_defn): New static global.
2207 * gdb/c-lang.c (c_language_defn): Convert to...
2208 (c_language_data): ...this.
2209 (class c_language): New class.
2210 (c_language_defn): New static global.
2211 (cplus_language_defn): Convert to...
2212 (cplus_language_data): ...this.
2213 (class cplus_language): New class.
2214 (cplus_language_defn): New static global.
2215 (asm_language_defn): Convert to...
2216 (asm_language_data): ...this.
2217 (class asm_language): New class.
2218 (asm_language_defn): New static global.
2219 (minimal_language_defn): Convert to...
2220 (minimal_language_data): ...this.
2221 (class minimal_language): New class.
2222 (minimal_language_defn): New static global.
2223 * gdb/d-lang.c (d_language_defn): Convert to...
2224 (d_language_data): ...this.
2225 (class d_language): New class.
2226 (d_language_defn): New static global.
2227 * gdb/f-lang.c (f_language_defn): Convert to...
2228 (f_language_data): ...this.
2229 (class f_language): New class.
2230 (f_language_defn): New static global.
2231 * gdb/go-lang.c (go_language_defn): Convert to...
2232 (go_language_data): ...this.
2233 (class go_language): New class.
2234 (go_language_defn): New static global.
2235 * gdb/language.c (unknown_language_defn): Remove declaration.
2236 (current_language): Initialize to nullptr, real initialization is
2237 moved to _initialize_language.
2238 (languages): Delete global.
2239 (language_defn::languages): Define.
2240 (set_language_command): Use language_defn::languages.
2241 (set_language): Likewise.
2242 (range_error): Likewise.
2243 (language_enum): Likewise.
2244 (language_def): Likewise.
2245 (add_set_language_command): Use language_def::languages for the
2246 language list, and language_def to lookup language pointers.
2247 (skip_language_trampoline): Use language_defn::languages.
2248 (unknown_language_defn): Convert to...
2249 (unknown_language_data): ...this.
2250 (class unknown_language): New class.
2251 (unknown_language_defn): New static global.
2252 (auto_language_defn): Convert to...
2253 (auto_language_data): ...this.
2254 (class auto_language): New class.
2255 (auto_language_defn): New static global.
2256 (language_gdbarch_post_init): Use language_defn::languages.
2257 (_initialize_language): Initialize current_language.
2258 * gdb/language.h (struct language_defn): Rename to...
2259 (struct language_data): ...this.
2260 (struct language_defn): New.
2261 (auto_language_defn): Delete.
2262 (unknown_language_defn): Delete.
2263 (minimal_language_defn): Delete.
2264 (ada_language_defn): Delete.
2265 (asm_language_defn): Delete.
2266 (c_language_defn): Delete.
2267 (cplus_language_defn): Delete.
2268 (d_language_defn): Delete.
2269 (f_language_defn): Delete.
2270 (go_language_defn): Delete.
2271 (m2_language_defn): Delete.
2272 (objc_language_defn): Delete.
2273 (opencl_language_defn): Delete.
2274 (pascal_language_defn): Delete.
2275 (rust_language_defn): Delete.
2276 * gdb/m2-lang.c (m2_language_defn): Convert to...
2277 (m2_language_data): ...this.
2278 (class m2_language): New class.
2279 (m2_language_defn): New static global.
2280 * gdb/objc-lang.c (objc_language_defn): Convert to...
2281 (objc_language_data): ...this.
2282 (class objc_language): New class.
2283 (objc_language_defn): New static global.
2284 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2285 (opencl_language_data): ...this.
2286 (class opencl_language): New class.
2287 (opencl_language_defn): New static global.
2288 * gdb/p-lang.c (pascal_language_defn): Convert to...
2289 (pascal_language_data): ...this.
2290 (class pascal_language): New class.
2291 (pascal_language_defn): New static global.
2292 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2293 language pointer, update comment format.
2294 * gdb/rust-lang.c (rust_language_defn): Convert to...
2295 (rust_language_data): ...this.
2296 (class rust_language): New class.
2297 (rust_language_defn): New static global.
2298
1313c56e
AB
22992020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2300
2301 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2302 member variable.
2303 <m_stmt_at_address>: New member variable.
2304 (lnp_state_machine::record_line): Don't record some lines, update
2305 tracking of is_stmt at the same address.
2306 (lnp_state_machine::lnp_state_machine): Initialise new member
2307 variables.
2308
b7ed9f3d
ST
23092020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2310
2311 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2312 "-include gnu-nat-mig.h".
2313 * gnu-nat-mig.h: New file.
2314 * gnu-nat.c: Include "gnu-nat-mig.h".
2315 (exc_server, msg_reply_server, notify_server,
2316 process_reply_server): Remove declarations.
2317
14a8ad62
ST
23182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2319
2320 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2321 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2322 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2323 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2324 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2325 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2326 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2327 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2328 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2329 to gnu_nat_target class.
2330 * gnu-nat.c: Likewise.
2331 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2332 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2333 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2334 object.
2335 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2336 instead of `gnu_target'.
2337
0af5e106
ST
23382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2339
2340 * i386-gnu-tdep.c: Include "gdbcore.h"
2341 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2342 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2343 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2344 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2345 i386_gnu_sigcontext_addr): New functions
2346 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2347 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2348 tdep.
2349
078f2fc9
ST
23502020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2351
2352 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2353 before fork_inferior call. Avoid calling it if target_is_pushed returns
2354 true.
2355
53dff92c
ST
23562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2357
2358 * gnu-nat.h (gnu_target): New variable declaration.
2359 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2360 gnu_target.
2361 * gnu-nat.c (gnu_target): New variable.
2362 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2363 add_thread_silent, and add_thread calls.
2364 (gnu_nat_target::create_inferior): Pass gnu_target to
2365 add_thread_silent, thread_change_ptid call.
2366 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2367 call.
2368
5a8b8627
ST
23692020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2370
2371 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2372 (gnu_nat_target::find_memory_regions): Remove unused
2373 `old_address' variable.
2374
366f550a
ST
23752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2376
2377 * gnu-nat.c: Include "gdbarch.h".
2378
f14871bf
ST
23792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2380
2381 * reply_mig_hack.awk (Error return): Cast function through
2382 void *, to bypass compiler function call check.
2383
c6887cfb
ST
23842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2385
2386 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2387 $(srcdir)/reply_mig_hack.awk.
2388
6930bffe
ST
23892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2390
2391 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2392
112c22ed
JG
23932020-05-30 Jonny Grant <jg@jguk.org>
2394
2395 * configure.ac (ACX_BUGURL): change bug URL to https.
2396
f68f85b5
PA
23972020-05-30 Pedro Alves <palves@redhat.com>
2398
2399 * cp-support.c (replace_typedefs_template): New.
2400 (replace_typedefs_qualified_name): Handle
2401 DEMANGLE_COMPONENT_TEMPLATE.
2402
976ca316
SM
24032020-05-29 Simon Marchi <simon.marchi@efficios.com>
2404
2405 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2406 dwarf2/index-cache.h, dwarf2/index-write.c,
2407 dwarf2/index-write.h, dwarf2/line-header.c,
2408 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2409 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2410 variables and fields from `dwarf2_per_objfile` to just
2411 `per_objfile` throughout.
2412
989ade05
SM
24132020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2414
2415 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2416 <push_dwarf_reg_entry_value>: Add comment.
2417
c47bae85
KB
24182020-05-28 Kevin Buettner <kevinb@redhat.com>
2419 Keith Seitz <keiths@redhat.com>
2420
2421 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2422 instead of PyEval_ReleaseLock.
2423 (class gdbpy_gil): Move to earlier in file.
2424 (finalize_python): Set gdb_python_initialized.
2425 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2426 when not initialized.
2427
44486dcf
SM
24282020-05-28 Simon Marchi <simon.marchi@efficios.com>
2429
2430 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2431 <push_dwarf_reg_entry_value>: Remove assert. Override
2432 per_objfile with caller_per_objfile.
2433
f030440d
TV
24342020-05-28 Tom de Vries <tdevries@suse.de>
2435
2436 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2437 PR gold/15646 workaround to symbol kind "type".
2438
f0fbb768
TT
24392020-05-27 Tom Tromey <tromey@adacore.com>
2440
2441 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2442
af0b2a3e
TT
24432020-05-27 Tom Tromey <tromey@adacore.com>
2444
2445 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2446 Use htab_find_with_hash.
2447 <add_abbrev>: Remove "abbrev_number" parameter.
2448 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2449 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2450 (hash_abbrev): Add comment.
2451 (abbrev_table::lookup_abbrev): Move to header file.
2452 (abbrev_table::read): Update.
2453
7d00ffec
TT
24542020-05-27 Tom Tromey <tromey@adacore.com>
2455
2456 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2457 method.
2458 <canonical_name>: New member.
2459 <raw_name>: Rename from "name".
2460 (partial_die_info): Initialize canonical_name.
2461 (scan_partial_symbols): Check raw_name.
2462 (partial_die_parent_scope, partial_die_full_name)
2463 (add_partial_symbol, add_partial_subprogram)
2464 (add_partial_enumeration, load_partial_dies): Use "name" method.
2465 (partial_die_info::name): New method.
2466 (partial_die_info::read, guess_partial_die_structure_name)
2467 (partial_die_info::fixup): Update.
2468
697bba18
TT
24692020-05-27 Tom Tromey <tromey@adacore.com>
2470
2471 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2472 <get_ref_die_offset>: Inline.
2473 <get_ref_die_offset_complaint>: New method.
2474 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2475 (attribute::get_ref_die_offset_complaint): Rename from
2476 get_ref_die_offset. Just issue complaint.
2477
c17ace43
HD
24782020-05-27 Hannes Domani <ssbssa@yahoo.de>
2479
2480 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2481
96445f0b
HD
24822020-05-27 Hannes Domani <ssbssa@yahoo.de>
2483
2484 * exec.c (exec_file_attach): Use errno value of first openp failure.
2485
ac637ec3
HD
24862020-05-27 Hannes Domani <ssbssa@yahoo.de>
2487
2488 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2489 Don't close thread handle.
2490
17ee85fc
TT
24912020-05-27 Tom Tromey <tom@tromey.com>
2492 Simon Marchi <simon.marchi@efficios.com>
2493
2494 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2495 shared_ptr.
2496 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2497 member.
2498 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2499 dwarf2_per_bfd_objfile_data_key>: New globals.
2500 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2501 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2502 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2503 shared.
2504 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2505 short-circuit when sharing.
2506 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2507 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2508
39b16f87
SM
25092020-05-27 Simon Marchi <simon.marchi@efficios.com>
2510
2511 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2512 to...
2513 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2514 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2515
fcf23d5b
SM
25162020-05-27 Simon Marchi <simon.marchi@efficios.com>
2517
2518 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2519 build_name_components, find_name_components_bounds>:
2520 Add per_objfile parameter.
2521 (struct mapped_index) <symbol_name_at>: Likewise.
2522 (struct mapped_debug_names): Remove constructor.
2523 <dwarf2_per_objfile>: Remove field.
2524 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2525 (mapped_index_base::find_name_components_bounds,
2526 mapped_index_base::build_name_components,
2527 dw2_expand_symtabs_matching_symbol): Likewise.
2528 (class mock_mapped_index) <symbol_name_at>: Likewise.
2529 (check_match): Likewise.
2530 (check_find_bounds_finds): Likewise.
2531 (test_mapped_index_find_name_component_bounds): Update.
2532 (CHECK_MATCH): Update.
2533 (dw2_expand_symtabs_matching): Update.
2534 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2535 per_objfile parameter.
2536 <find_vec_in_debug_names>: Likewise.
2537 <m_per_objfile>: New field.
2538 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2539 parameter.
2540 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2541 (dw2_debug_names_iterator::next): Update.
2542 (dw2_debug_names_lookup_symbol): Update.
2543 (dw2_debug_names_expand_symtabs_for_function): Update.
2544 (dw2_debug_names_map_matching_symbols): Update.
2545 (dw2_debug_names_expand_symtabs_matching): Update.
2546 (dwarf2_read_debug_names): Update.
2547
7188ed02
SM
25482020-05-27 Simon Marchi <simon.marchi@efficios.com>
2549
2550 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2551 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2552 move to dwarf2_per_objfile.
2553 <read_in_chain>: Remove.
2554 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2555 remove_all_cus, age_comp_units>: New methods.
2556 <m_dwarf2_cus>: New member.
2557 (struct dwarf2_per_cu_data) <cu>: Remove.
2558 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2559 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2560 moved to methods of dwarf2_per_objfile.
2561 (dwarf2_clear_marks): Remove.
2562 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2563 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2564 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2565 (dwarf2_per_objfile::remove_all_cus): New.
2566 (class free_cached_comp_units) <~free_cached_comp_units>:
2567 Update.
2568 (load_cu): Update.
2569 (dw2_do_instantiate_symtab): Adjust.
2570 (fill_in_sig_entry_from_dwo_entry): Adjust.
2571 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2572 (cutu_reader::cutu_reader): Likewise.
2573 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2574 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2575 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2576 and dwarf2_per_objfile::age_comp_units.
2577 (load_partial_comp_unit): Update.
2578 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2579 (process_queue): Likewise.
2580 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2581 backlink.
2582 (dwarf2_read_addr_index): Likewise.
2583 (follow_die_offset): Likewise.
2584 (dwarf2_fetch_die_loc_sect_off): Likewise.
2585 (dwarf2_fetch_constant_bytes): Likewise.
2586 (dwarf2_fetch_die_type_sect_off): Likewise.
2587 (follow_die_sig_1): Likewise.
2588 (load_full_type_unit): Likewise.
2589 (read_signatured_type): Likewise.
2590 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2591 (dwarf2_cu::~dwarf2_cu): Remove.
2592 (dwarf2_per_objfile::get_cu): New.
2593 (dwarf2_per_objfile::set_cu): New.
2594 (age_cached_comp_units): Rename to...
2595 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2596 to std::unordered_map.
2597 (free_one_cached_comp_unit): Rename to...
2598 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2599 to std::unordered_map.
2600 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2601 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2602 a dwarf2_per_objfile in data.
2603 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2604 (dwarf2_clear_marks): Remove.
2605
2e671100
SM
26062020-05-27 Simon Marchi <simon.marchi@efficios.com>
2607
2608 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2609 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2610 (init_tu_and_read_dwo_dies): Likewise.
2611 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2612 (cutu_reader::cutu_reader): Likewise.
2613 (load_partial_comp_unit): Likewise.
2614 (process_psymtab_comp_unit): Update.
2615 (build_type_psymtabs_1): Update.
2616 (process_skeletonless_type_unit): Update.
2617 (load_full_comp_unit): Update.
2618 (find_partial_die): Update.
2619 (dwarf2_read_addr_index): Update.
2620 (read_signatured_type): Update.
2621
2e6a9f79
SM
26222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2623
2624 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2625 m_header_read_in>: New fields.
2626 <get_header>: New method.
2627 * dwarf2/read.c (per_cu_header_read_in): Remove.
2628 (dwarf2_per_cu_data::get_header): New.
2629 (dwarf2_per_cu_data::addr_size): Update.
2630 (dwarf2_per_cu_data::offset_size): Update.
2631 (dwarf2_per_cu_data::ref_addr_size): Update.
2632
1b555f17
SM
26332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2634
2635 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2636 (dw2_do_instantiate_symtab): Update.
2637 (queue_and_load_all_dwo_tus): Change parameter from
2638 dwarf2_per_cu_data to dwarf2_cu.
2639 (dwarf2_fetch_die_loc_sect_off): Update.
2640 (dwarf2_fetch_constant_bytes): Update.
2641 (dwarf2_fetch_die_type_sect_off): Update.
2642
8fc0b21d
SM
26432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2644
2645 * dwarf2/read.c (process_full_comp_unit,
2646 process_full_type_unit): Remove per_cu, per_objfile paramters.
2647 Add dwarf2_cu parameter.
2648 (process_queue): Update.
2649
168c9250
SM
26502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2651
2652 * dwarf2/read.c (create_cu_from_index_list): Replace
2653 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2654 (create_cus_from_index_list): Likewise.
2655 (create_cus_from_index): Likewise.
2656 (create_signatured_type_table_from_index): Likewise.
2657 (create_cus_from_debug_names_list): Likewise.
2658 (create_cus_from_debug_names): Likewise.
2659 (dwarf2_read_gdb_index): Update.
2660 (dwarf2_read_debug_names): Update.
2661
e286671b
TT
26622020-05-27 Tom Tromey <tom@tromey.com>
2663 Simon Marchi <simon.marchi@efficios.com>
2664
2665 * dwarf2/read.h (struct dwarf2_per_objfile)
2666 <get_type_for_signatured_type, set_type_for_signatured_type>:
2667 New methods.
2668 <m_type_map>: New member.
2669 (struct signatured_type) <type>: Remove.
2670 * dwarf2/read.c
2671 (dwarf2_per_objfile::get_type_for_signatured_type,
2672 dwarf2_per_objfile::set_type_for_signatured_type): New.
2673 (get_signatured_type): Use new methods.
2674
8adb8487
TT
26752020-05-27 Tom Tromey <tom@tromey.com>
2676 Simon Marchi <simon.marchi@efficios.com>
2677
2678 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2679 (struct dwarf2_per_objfile) <type_units>: New member.
2680 <get_type_unit_group_unshareable>: New method.
2681 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2682 num_symtabs, symtabs>: Remove; move to
2683 type_unit_group_unshareable.
2684 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2685 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2686 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2687
127bbf4b
SM
26882020-05-27 Simon Marchi <simon.marchi@efficios.com>
2689
2690 * dwarf2/read.h (struct dwarf2_per_cu_data):
2691 <dwarf2_per_objfile>: Remove.
2692 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2693 dwarf2_per_objfile.
2694 (create_signatured_type_table_from_index): Likewise.
2695 (create_signatured_type_table_from_debug_names): Likewise.
2696 (create_debug_type_hash_table): Likewise.
2697 (fill_in_sig_entry_from_dwo_entry): Likewise.
2698 (create_type_unit_group): Likewise.
2699 (read_comp_units_from_section): Likewise.
2700 (create_cus_hash_table): Likewise.
2701
f6e649dd
SM
27022020-05-27 Simon Marchi <simon.marchi@efficios.com>
2703
2704 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2705 dwarf2_per_cu_data::dwarf2_per_objfile.
2706 (compute_compunit_symtab_includes): Likewise.
2707 (dwarf2_cu::start_symtab): Likewise.
2708
aa66c379
SM
27092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2710
2711 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2712 parameter.
2713 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2714 (read_namespace_alias): Update.
2715 (lookup_die_type): Update.
2716 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2717 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2718 Update.
2719 (disassemble_dwarf_expression): Update.
2720
120ce1b5
SM
27212020-05-27 Simon Marchi <simon.marchi@efficios.com>
2722
2723 * dwarf2/read.h (struct dwarf2_queue_item): Add
2724 dwarf2_per_objfile parameter, assign new parameter.
2725 <per_objfile>: New field.
2726 * dwarf2/read.c (free_one_cached_comp_unit): Add
2727 dwarf2_per_objfile parameter.
2728 (queue_comp_unit): Likewise.
2729 (dw2_do_instantiate_symtab): Update.
2730 (process_psymtab_comp_unit): Update.
2731 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2732 (process_imported_unit_die): Update.
2733 (queue_and_load_dwo_tu): Update.
2734 (follow_die_offset): Update.
2735 (follow_die_sig_1): Update.
2736
9f47c707
SM
27372020-05-27 Simon Marchi <simon.marchi@efficios.com>
2738
2739 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2740 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2741 (read_call_site_scope): Assign per_objfile.
2742 (dwarf2_per_cu_data::objfile): Remove.
2743 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2744 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2745 dwarf2_per_objfile parameter.
2746 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2747 dwarf2_per_objfile parameter.
2748 (dwarf_expr_reg_to_entry_parameter): Add output
2749 dwarf2_per_objfile parameter.
2750 (locexpr_get_frame_base): Update.
2751 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2752 <push_dwarf_reg_entry_value>: Update.
2753 <call_site_to_target_addr>: Update.
2754 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2755 parameter.
2756 (value_of_dwarf_reg_entry): Update.
2757 (rw_pieced_value): Update.
2758 (indirect_synthetic_pointer): Update.
2759 (dwarf2_evaluate_property): Update.
2760 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2761 parameter.
2762 (locexpr_read_variable): Update.
2763 (locexpr_get_symbol_read_needs): Update.
2764 (loclist_read_variable): Update.
2765
14095eb3
SM
27662020-05-27 Simon Marchi <simon.marchi@efficios.com>
2767
2768 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2769 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2770 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2771 parameter.
2772 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2773 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2774 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2775 parameter.
2776 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2777 sect_variable_value): Add dwarf2_per_objfile parameter.
2778 (class dwarf_evaluate_loc_desc) <dwarf_call,
2779 dwarf_variable_value>: Update.
2780 (fetch_const_value_from_synthetic_pointer): Add
2781 dwarf2_per_objfile parameter.
2782 (fetch_const_value_from_synthetic_pointer): Update.
2783 (coerced_pieced_ref): Update.
2784 (class symbol_needs_eval_context) <dwarf_call,
2785 dwarf_variable_value>: Update.
2786 (dwarf2_compile_expr_to_ax): Update.
2787
3c3cd3d4
SM
27882020-05-27 Simon Marchi <simon.marchi@efficios.com>
2789
2790 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2791 parameter.
2792 (dwarf2_evaluate_loc_desc_full): Update.
2793
82ca3f51
SM
27942020-05-27 Simon Marchi <simon.marchi@efficios.com>
2795
2796 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2797 parameter.
2798 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2799 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2800 dwarf2_per_objfile parameter.
2801 (decode_debug_loc_dwo_addresses): Likewise.
2802 (dwarf2_find_location_expression): Update.
2803 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2804 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2805 parameter.
2806 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2807 parameter.
2808 (locexpr_describe_location_1): Likewise.
2809 (locexpr_describe_location): Update.
2810
4b167ea1
SM
28112020-05-27 Simon Marchi <simon.marchi@efficios.com>
2812
2813 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2814 Remove.
2815 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2816 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2817 (dwarf2_compile_property_to_c): Update.
2818 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2819 use text offset from objfile.
2820 (locexpr_tracepoint_var_ref): Update.
2821 (locexpr_generate_c_location): Update.
2822 (loclist_describe_location): Update.
2823 (loclist_tracepoint_var_ref): Update.
2824 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2825 dwarf2_per_objfile parameter.
2826 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2827 use text offset from objfile.
2828 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2829
89b07335
SM
28302020-05-27 Simon Marchi <simon.marchi@efficios.com>
2831
2832 * dwarf2/expr.h (struct dwarf_expr_context)
2833 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2834 <offset>: Remove.
2835 <per_objfile>: New member.
2836 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2837 dwarf2_per_objfile parameter. Don't set offset, set
2838 per_objfile.
2839 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2840 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2841 a dwarf2_per_objfile object instead of an offset.
2842 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2843 constructor.
2844 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2845 to dwarf2_expr_executor constructor. Don't set offset.
2846 (dwarf2_fetch_cfa_info): Update.
2847 (struct dwarf2_frame_cache) <text_offset>: Remove.
2848 <per_objfile>: New field.
2849 (dwarf2_frame_cache): Update.
2850 (dwarf2_frame_prev_register): Update.
2851 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2852 <dwarf_evaluate_loc_desc>: Add constructor.
2853 (dwarf2_evaluate_loc_desc_full): Update.
2854 (dwarf2_locexpr_baton_eval): Update.
2855 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2856 Add constructor.
2857 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2858
293e7e51
SM
28592020-05-27 Simon Marchi <simon.marchi@efficios.com>
2860
2861 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2862 addr_sized_int_type>: Move to dwarf2_cu.
2863 <int_type>: Move to dwarf2_per_objfile.
2864 (struct dwarf2_per_objfile) <int_type>: Move here.
2865 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2866 addr_sized_int_type>: Move here.
2867 (read_func_scope): Update.
2868 (read_array_type): Update.
2869 (read_tag_string_type): Update.
2870 (attr_to_dynamic_prop): Update.
2871 (dwarf2_per_cu_data::int_type): Rename to...
2872 (dwarf2_per_objfile::int_type): ... this.
2873 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2874 (dwarf2_cu::addr_sized_int_type): ... this.
2875 (read_subrange_type): Update.
2876 (dwarf2_per_cu_data::addr_type): Rename to...
2877 (dwarf2_cu::addr_type): ... this.
2878 (set_die_type): Update.
2879
64874a40
SM
28802020-05-27 Simon Marchi <simon.marchi@efficios.com>
2881
2882 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2883 data through per_cu->cu.
2884
4ab09049
SM
28852020-05-27 Simon Marchi <simon.marchi@efficios.com>
2886
2887 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2888 dwarf2_per_cu_data parameter fo dwarf2_cu.
2889 (lookup_dwo_type_unit): Likewise.
2890 (read_cutu_die_from_dwo): Likewise.
2891 (lookup_dwo_unit): Likewise.
2892 (open_and_init_dwo_file): Likewise.
2893 (lookup_dwo_cutu): Likewise.
2894 (lookup_dwo_comp_unit): Likewise.
2895 (lookup_dwo_type_unit): Likewise.
2896 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2897 (cutu_reader::cutu_reader): Update.
2898
47b14e86
SM
28992020-05-27 Simon Marchi <simon.marchi@efficios.com>
2900
2901 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2902 parameter.
2903 (process_full_type_unit): Likewise.
2904 (process_queue): Update.
2905
43182c09
SM
29062020-05-27 Simon Marchi <simon.marchi@efficios.com>
2907
2908 * dwarf2/read.c (recursively_compute_inclusions): Add
2909 dwarf2_per_objfile parameter.
2910 (compute_compunit_symtab_includes): Likewise.
2911 (process_cu_includes): Update.
2912
7aa104c4
SM
29132020-05-27 Simon Marchi <simon.marchi@efficios.com>
2914
2915 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2916 parameter.
2917 (create_type_unit_group): Update.
2918 (process_psymtab_comp_unit_reader): Update.
2919 (build_type_psymtabs_reader): Update.
2920
e3beb21d
SM
29212020-05-27 Simon Marchi <simon.marchi@efficios.com>
2922
2923 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2924 object through m_this_cu->cu.
2925
d460f660
SM
29262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2927
2928 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2929 the info parameter.
2930 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2931
ab432490
SM
29322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2933
2934 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2935 per_objfile parameter.
2936 (load_full_type_unit): Add per_objfile parameter.
2937 (read_signatured_type): Likewise.
2938 (load_full_comp_unit): Likewise.
2939 (load_cu): Likewise.
2940 (dw2_do_instantiate_symtab): Likewise.
2941 (dw2_get_file_names): Likewise.
2942 (dw2_map_symtabs_matching_filename): Update.
2943 (dw_expand_symtabs_matching_file_matcher): Update.
2944 (dw2_map_symbol_filenames): Update.
2945 (process_psymtab_comp_unit): Add per_objfile parameter.
2946 (build_type_psymtabs_1): Update.
2947 (process_skeletonless_type_unit): Update.
2948 (dwarf2_build_psymtabs_hard): Update.
2949 (load_partial_comp_unit): Add per_objfile parameter.
2950 (scan_partial_symbols): Update.
2951 (load_full_comp_unit): Add per_objfile parameter.
2952 (process_imported_unit_die): Update.
2953 (create_cus_hash_table): Update.
2954 (find_partial_die): Update.
2955 (dwarf2_read_addr_index): Update.
2956 (follow_die_offset): Update.
2957 (dwarf2_fetch_die_loc_sect_off): Update.
2958 (dwarf2_fetch_constant_bytes): Update.
2959 (dwarf2_fetch_die_type_sect_off): Update.
2960 (follow_die_sig_1): Update.
2961 (load_full_type_unit): Add per_objfile parameter.
2962 (read_signatured_type): Likewise.
2963
313bad1b
SM
29642020-05-27 Simon Marchi <simon.marchi@efficios.com>
2965
2966 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2967 of objfile_name.
2968
c3699833
SM
29692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2970
2971 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2972 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2973 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2974 field.
2975 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2976 (create_cus_from_index): Update.
2977 (dwarf2_read_gdb_index): Update.
2978 (create_cus_from_debug_names): Update.
2979 (dwarf2_read_debug_names): Update.
2980 (get_abbrev_section_for_cu): Update.
2981 (create_all_comp_units): Update.
2982 (read_attribute_value): Update.
2983 (get_debug_line_section): Update.
2984 * dwarf2/index-cache.c (index_cache::store): Update.
2985 * dwarf2/index-write.c (save_gdb_index_command): Update.
2986 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2987
1859c670
SM
29882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2989
2990 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
2991 member.
2992 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
2993 dwarf2_per_cu_data::per_bfd.
2994 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
2995 (create_type_unit_group): Likewise.
2996 (queue_comp_unit): Remove reference to
2997 per_cu->dwarf2_per_objfile.
2998 (maybe_queue_comp_unit): Likewise.
2999 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3000 (create_cus_hash_table): Assign new field.
3001
5e22e966
SM
30022020-05-27 Simon Marchi <simon.marchi@efficios.com>
3003
3004 * dwarf2/read.c: Replace
3005 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3006 dwarf2_cu->per_objfile throughout.
3007
97a1449a
SM
30082020-05-27 Simon Marchi <simon.marchi@efficios.com>
3009
3010 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3011 parameter, don't use per_cu->dwarf2_per_objfile.
3012 (dw2_instantiate_symtab): Likewise.
3013 (dw2_find_last_source_symtab): Update.
3014 (dw2_map_expand_apply): Update.
3015 (dw2_lookup_symbol): Update.
3016 (dw2_expand_symtabs_for_function): Update.
3017 (dw2_expand_all_symtabs): Update.
3018 (dw2_expand_symtabs_with_fullname): Update.
3019 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3020 don't use per_cu->dwarf2_per_objfile.
3021 (dw2_expand_marked_cus): Update.
3022 (dw2_find_pc_sect_compunit_symtab): Update.
3023 (dw2_debug_names_lookup_symbol): Update.
3024 (dw2_debug_names_expand_symtabs_for_function): Update.
3025 (dw2_debug_names_map_matching_symbols): Update.
3026 (dwarf2_psymtab::expand_psymtab): Update.
3027
9e021579
SM
30282020-05-27 Simon Marchi <simon.marchi@efficios.com>
3029
3030 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3031 <per_objfile>: New member.
3032 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3033 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3034 call to dwarf2_cu.
3035 (cutu_reader::cutu_reader): Update.
3036 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3037
ae090bdb
SM
30382020-05-27 Simon Marchi <simon.marchi@efficios.com>
3039
3040 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3041 struct dwarf2_per_objfile.
3042 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3043 dwarf2_per_bfd.
3044 * dwarf2/read.c (set_die_type): Update.
3045 (get_die_type_at_offset): Update.
3046
af758d11
SM
30472020-05-27 Tom Tromey <tom@tromey.com>
3048 Simon Marchi <simon.marchi@efficios.com>
3049
3050 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3051 method.
3052 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3053 get_symtab, set_symtab>: New methods.
3054 <m_symtabs>: New field.
3055 (struct dwarf2_psymtab): Derive from partial_symtab.
3056 <readin_p, get_compunit_symtab>: Declare methods.
3057 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3058 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3059 New methods.
3060 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3061 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3062 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3063 (dw2_symtab_iter_next, dw2_print_stats)
3064 (dw2_expand_symtabs_with_fullname)
3065 (dw2_expand_symtabs_matching_one)
3066 (dw_expand_symtabs_matching_file_matcher)
3067 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3068 (dw2_debug_names_iterator::next)
3069 (dw2_debug_names_map_matching_symbols)
3070 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3071 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3072 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3073 New methods.
3074 (get_compunit_symtab, process_full_comp_unit)
3075 (process_full_type_unit): Update.
3076 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3077
5989a64e
SM
30782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3079
3080 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3081 then introduce a new dwarf2_per_objfile type.
3082 <read_line_string>: Move to the new dwarf2_per_objfile type.
3083 <objfile>: Likewise.
3084 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3085 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3086 dwarf2_per_objfile->per_bfd.
3087 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3088 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3089 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3090 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3091 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3092 (dwarf2_per_objfile::locate_sections): Rename to...
3093 (dwarf2_per_bfd::locate_sections): ... this.
3094 (dwarf2_per_objfile::get_cutu): Rename to...
3095 (dwarf2_per_bfd::get_cutu): ... this.
3096 (dwarf2_per_objfile::get_cu): Rename to...
3097 (dwarf2_per_bfd::get_cu): ... this.
3098 (dwarf2_per_objfile::get_tu): Rename to...
3099 (dwarf2_per_bfd::get_tu): ... this.
3100 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3101 (dwarf2_per_bfd::allocate_per_cu): ... this.
3102 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3103 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3104 (get_gdb_index_contents_ftype): Change parameter from
3105 dwarf2_per_objfile to dwarf2_per_bfd.
3106 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3107 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3108
a50264ba
TT
31092020-05-27 Tom Tromey <tom@tromey.com>
3110 Simon Marchi <simon.marchi@efficios.com>
3111
3112 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3113 (allocate_piece_closure): Set "per_objfile" member.
3114 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3115 (locexpr_describe_location, loclist_describe_location): Use new
3116 member.
3117 * dwarf2/read.c (read_call_site_scope)
3118 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3119 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3120 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3121 handle_data_member_location): Set per_objfile member.
3122 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3123 member.
3124 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3125
d3473f0c
TT
31262020-05-27 Tom Tromey <tom@tromey.com>
3127
3128 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3129 allocate_signatured_type>: Declare new methods.
3130 <m_num_psymtabs>: New member.
3131 (struct dwarf2_per_cu_data) <index>: New member.
3132 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3133 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3134 (create_cu_from_index_list): Use allocate_per_cu.
3135 (create_signatured_type_table_from_index)
3136 (create_signatured_type_table_from_debug_names)
3137 (create_debug_type_hash_table, add_type_unit)
3138 (read_comp_units_from_section): Use allocate_signatured_type.
3139
5717c425
TT
31402020-05-27 Tom Tromey <tom@tromey.com>
3141
3142 * psymtab.c (partial_map_expand_apply)
3143 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3144 (psym_lookup_global_symbol_language)
3145 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3146 (psym_print_stats, psym_expand_symtabs_for_function)
3147 (psym_map_symbol_filenames, psym_map_matching_symbols)
3148 (psym_expand_symtabs_matching)
3149 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3150 (maintenance_check_psymtabs): Update.
3151 * psympriv.h (struct partial_symtab) <readin_p,
3152 get_compunit_symtab>: Add objfile parameter.
3153 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3154 Likewise.
3155 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3156 get_compunit_symtab>: Likewise.
3157 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3158
45940949
TT
31592020-05-27 Tom Tromey <tom@tromey.com>
3160
3161 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3162 member.
3163 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3164 (create_cu_from_index_list)
3165 (create_signatured_type_table_from_index)
3166 (create_signatured_type_table_from_debug_names)
3167 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3168 (dwarf2_create_include_psymtab)
3169 (create_debug_type_hash_table, add_type_unit)
3170 (create_type_unit_group, read_comp_units_from_section)
3171 (dwarf2_compute_name, create_cus_hash_table)
3172 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3173 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3174 obstack.
3175 (dw2_get_real_path): Likewise. Change argument to
3176 dwarf2_per_objfile.
3177
f8c6d152
LM
31782020-05-27 Luis Machado <luis.machado@linaro.org>
3179
3180 PR tdep/26000
3181 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3182 for ldrd (immediate).
3183
e98d2e6d
PW
31842020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3185
3186 * command.h: Add comment giving the name of class_tui.
3187 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3188 create the fake command for the help for class_tui.
3189
53a47a3e
TT
31902020-05-26 Tom Tromey <tromey@adacore.com>
3191
3192 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3193 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3194 (val_atr): New function.
3195 (value_val_atr): Use it.
3196 * ada-valprint.c (print_optional_low_bound): Change low bound
3197 handling for enums.
3198 (val_print_packed_array_elements): Don't call discrete_position.
3199 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3200 discrete_position for enum types.
3201 * language.c (default_print_array_index): Change type.
3202 * language.h (struct language_defn) <la_print_array_index>: Add
3203 index_type parameter, change type of index_value.
3204 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3205 (default_print_array_index): Update.
3206 * valprint.c (maybe_print_array_index): Don't call
3207 value_from_longest. Update.
3208 (value_print_array_elements): Don't call discrete_position.
3209
0bc2354b
TT
32102020-05-26 Tom Tromey <tromey@adacore.com>
3211
3212 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3213 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3214
1218a4bf
CDA
32152020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3216
3217 PR gdb/13519
3218 * avr-tdep.c (avr_integer_to_address): Return data or code
3219 address accordingly to the second 'type' argument of the
3220 function.
3221
92651b1d
MW
32222020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3223
3224 * infcmd.c, inferior.h: (construct_inferior_arguments):
3225 Moved function from here to gdbsupport/common-inferior.{h,cc}
3226
0a4f5f8c
TT
32272020-05-23 Tom Tromey <tom@tromey.com>
3228
3229 Revert commit eca1f90c:
3230 * NEWS: Remove entry for completion styling.
3231 * completer.c (_rl_completion_prefix_display_length): Move
3232 declaration later.
3233 (gdb_fnprint): Revert.
3234 (gdb_display_match_list_1): Likewise.
3235 * cli/cli-style.c (completion_prefix_style)
3236 (completion_difference_style, completion_suffix_style): Remove.
3237 (_initialize_cli_style): Revert.
3238 * cli/cli-style.h (completion_prefix_style)
3239 (completion_difference_style, completion_suffix_style): Don't
3240 declare.
3241
e08bd6c5
PA
32422020-05-24 Pedro Alves <palves@redhat.com>
3243
3244 * symtab.c (completion_list_add_name): Return boolean indication
3245 of whether the symbol matched.
3246 (completion_list_add_symbol): Don't try to remove C++ aliases if
3247 the symbol didn't match in the first place.
3248 * symtab.h (completion_list_add_name): Return bool.
3249
ceacbf6e
SM
32502020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3251
3252 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3253 type::field.
3254
26f16254
JB
32552020-05-23 Joel Brobecker <brobecker@adacore.com>
3256
3257 GDB 9.2 released.
3258
eca1f90c
TT
32592020-05-23 Tom Tromey <tom@tromey.com>
3260
3261 * NEWS: Add entry for completion styling.
3262 * completer.c (_rl_completion_prefix_display_length): Move
3263 declaration earlier.
3264 (gdb_fnprint): Use completion_style.
3265 (gdb_display_match_list_1): Likewise.
3266 * cli/cli-style.c (completion_prefix_style)
3267 (completion_difference_style, completion_suffix_style): New
3268 globals.
3269 (_initialize_cli_style): Register new globals.
3270 * cli/cli-style.h (completion_prefix_style)
3271 (completion_difference_style, completion_suffix_style): Declare.
3272
51e2cfa2
PA
32732020-05-23 Pedro Alves <palves@redhat.com>
3274
3275 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3276 (parse_escape): Use ISDIGIT instead of isdigit.
3277 (puts_debug): Use gdb_isprint instead of isprint.
3278 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3279 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3280 ISSPACE instead of isspace.
3281 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3282 instead of isspace.
3283 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3284 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3285 instead of isxdigit and ISDIGIT instead of isdigit.
3286
80fc5e77
SM
32872020-05-22 Simon Marchi <simon.marchi@efficios.com>
3288
3289 * gdbtypes.h (struct type) <field>: New method.
3290 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3291 or type::field.
3292
3cabb6b0
SM
32932020-05-22 Simon Marchi <simon.marchi@efficios.com>
3294
3295 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3296 (TYPE_FIELDS): Use type::fields. Change all call sites that
3297 modify the propery to use type::set_fields instead.
3298
1f704f76
SM
32992020-05-22 Simon Marchi <simon.marchi@efficios.com>
3300
3301 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3302 type::num_fields instead.
3303
5e33d5f4
SM
33042020-05-22 Simon Marchi <simon.marchi@efficios.com>
3305
3306 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3307 methods.
3308 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3309 that modify the number of fields to use type::set_num_fields
3310 instead.
3311
9392ebb3
TT
33122020-05-22 Tom Tromey <tromey@adacore.com>
3313
3314 * compile/compile-object-load.h (munmap_list_free): Don't
3315 declare.
3316
7c13f4e8
AB
33172020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3318
3319 * annotate.c (annotate_source_line): Update return type, add call
3320 to update current symtab and line.
3321 * annotate.h (annotate_source_line): Update return type, and
3322 extend header comment.
3323 * source.c (info_line_command): Check annotation_level before
3324 calling annotate_source_line.
3325 * stack.c (print_frame_info): If calling annotate_source_line
3326 returns true, then don't print any other source line information.
3327
aa370940
SM
33282020-05-21 Simon Marchi <simon.marchi@efficios.com>
3329
3330 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3331
84d53fa9
SM
33322020-05-21 Simon Marchi <simon.marchi@efficios.com>
3333
3334 * coffread.c (patch_type): Remove NULL check before xfree.
3335 * corefile.c (set_gnutarget): Likewise.
3336 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3337 * exec.c (build_section_table): Likewise.
3338 * remote.c (remote_target::pass_signals): Likewise.
3339 * utils.c (n_spaces): Likewise.
3340 * cli/cli-script.c (document_command): Likewise.
3341 * i386-windows-tdep.c (core_process_module_section): Likewise.
3342 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3343
9d428aae
SM
33442020-05-20 Simon Marchi <simon.marchi@efficios.com>
3345
3346 * symfile.c (reread_symbols): Clear objfile's section_offsets
3347 vector and section indices, re-compute them by calling
3348 sym_offsets.
3349
250106a7
TT
33502020-05-20 Tom Tromey <tromey@adacore.com>
3351
3352 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3353 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3354
9a0bacfb
TV
33552020-05-20 Tom de Vries <tdevries@suse.de>
3356
3357 PR symtab/25833
3358 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3359
7b958a48
AM
33602020-05-20 Alan Modra <amodra@gmail.com>
3361
3362 PR 25993
3363 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3364 bfd_set_filename.
3365 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3366 passed to bfd_set_filename.
3367 * symfile-mem.c (add_vsyscall_page): Likewise for string
3368 passed to symbol_file_add_from_memory.
3369 (symbol_file_add_from_memory): Make name param a const char* and
3370 don't strdup.
3371
c7e97679
AM
33722020-05-20 Alan Modra <amodra@gmail.com>
3373
3374 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3375 rather than accessing bfd->filename directly.
3376 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3377 and use bfd_section_name.
3378 * dwarf2/frame.c (decode_frame_entry): Likewise.
3379 * exec.c (exec_set_section_address): Likewise.
3380 * solib-aix.c (solib_aix_bfd_open): Likewise.
3381 * stap-probe.c (get_stap_base_address): Likewise.
3382 * symfile.c (reread_symbols): Likewise.
3383
563c591b
TT
33842020-05-19 Tom Tromey <tromey@adacore.com>
3385
3386 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3387
f408d82c
SM
33882020-05-19 Simon Marchi <simon.marchi@efficios.com>
3389
3390 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3391
98c59b52
PA
33922020-05-19 Pedro Alves <palves@redhat.com>
3393
3394 * NEWS (set exec-file-mismatch): Adjust entry.
3395 * exec.c: Include "build-id.h".
3396 (validate_exec_file): Try to match build IDs instead of filenames.
3397 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3398 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3399 and pass down 'warn_if_slow'.
3400 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3401 gdb_bfd_open_closure to pass it down.
3402 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3403
4111f652
PA
34042020-05-19 Pedro Alves <palves@redhat.com>
3405
3406 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3407 * target.c (target_fileio_open_1): Rename to target_fileio_open
3408 and make extern. Use bool.
3409 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3410 (target_fileio_read_alloc_1): Adjust.
3411 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3412 (target_fileio_open_warn_if_slow): Delete declaration.
3413
ad80db5b
PA
34142020-05-19 Pedro Alves <palves@redhat.com>
3415
3416 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3417 Adjust all callers.
3418
1d6ce4d3
YS
34192020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3420
3421 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3422 whether disp is negative.
3423
9005fbbb
SM
34242020-05-19 Simon Marchi <simon.marchi@efficios.com>
3425
3426 * symfile.h (struct symfile_segment_data)
3427 <~symfile_segment_data>: Remove.
3428 <segment_info>: Change to std::vector.
3429 * symfile.c (default_symfile_segments): Update.
3430 * elfread.c (elf_symfile_segments): Update.
3431
68b888ff
SM
34322020-05-19 Simon Marchi <simon.marchi@efficios.com>
3433
3434 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3435 <segments>: New.
3436 <segment_bases, segment_sizes>: Remove.
3437 * symfile.c (default_symfile_segments): Update.
3438 * elfread.c (elf_symfile_segments): Update.
3439 * remote.c (remote_target::get_offsets): Update.
3440 * solib-target.c (solib_target_relocate_section_addresses):
3441 Update.
3442
62982abd
SM
34432020-05-19 Simon Marchi <simon.marchi@efficios.com>
3444
3445 * symfile.h (struct symfile_segment_data): Initialize fields.
3446 <~symfile_segment_data>: Add.
3447 (symfile_segment_data_up): New.
3448 (struct sym_fns) <sym_segments>: Return a
3449 symfile_segment_data_up.
3450 (default_symfile_segments): Return a symfile_segment_data_up.
3451 (free_symfile_segment_data): Remove.
3452 (get_symfile_segment_data): Return a symfile_segment_data_up.
3453 * symfile.c (default_symfile_segments): Likewise.
3454 (get_symfile_segment_data): Likewise.
3455 (free_symfile_segment_data): Remove.
3456 (symfile_find_segment_sections): Update.
3457 * elfread.c (elf_symfile_segments): Return a
3458 symfile_segment_data_up.
3459 * remote.c (remote_target::get_offsets): Update.
3460 * solib-target.c (solib_target_relocate_section_addresses):
3461 Update.
3462 * symfile-debug.c (debug_sym_segments): Return a
3463 symfile_segment_data_up.
3464
7f204339
RO
34652020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3466
e52a0f1b
RO
3467 PR build/25981
3468 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3469 Hardcode register numbers.
3470
7f204339
RO
3471 PR build/25981
3472 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3473 procfs_find_LDT_entry): Remove.
3474 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3475 procfs_find_LDT_entry): Remove.
3476 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3477 Remove.
3478
7f32a4d5
PA
34792020-05-17 Pedro Alves <palves@redhat.com>
3480 Andrew Burgess <andrew.burgess@embecosm.com>
3481 Keno Fischer <keno@juliacomputing.com>
3482
3483 PR gdb/25741
3484 * breakpoint.c (build_target_condition_list): Update comments.
3485 (build_target_command_list): Update comments and skip matching
3486 locations.
3487 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3488 a separate function. Simplify "set breakpoint auto-hw off"
3489 handling.
3490 (insert_breakpoints): Update comment.
3491 (tracepoint_locations_match): New parameter. For breakpoints,
3492 compare location types too, if the caller wants to.
3493 (handle_automatic_hardware_breakpoints): New functions.
3494 (bp_location_is_less_than): Also sort by location type and
3495 hardware breakpoint length.
3496 (update_global_location_list): Handle "set breakpoint auto-hw on"
3497 here.
3498 (update_breakpoint_locations): Ask breakpoint_locations_match to
3499 ignore location types.
3500
7d93a1e0
SM
35012020-05-16 Simon Marchi <simon.marchi@efficios.com>
3502
3503 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3504 type::name instead.
3505
d0e39ea2
SM
35062020-05-16 Simon Marchi <simon.marchi@efficios.com>
3507
3508 * gdbtypes.h (struct type) <name, set_name>: New methods.
3509 (TYPE_CODE): Use type::name. Change all call sites used to set
3510 the name to use type::set_name instead.
3511
2dab0c7b
TT
35122020-05-16 Tom Tromey <tom@tromey.com>
3513
3514 * top.c (quit_force): Update.
3515 * infrun.c (handle_no_resumed): Update.
3516 * top.h (all_uis): New function.
3517 (ALL_UIS): Remove.
3518
59f7bd8d
SM
35192020-05-16 Simon Marchi <simon.marchi@efficios.com>
3520
3521 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3522
9bf058f0
PA
35232020-05-16 Pedro Alves <palves@redhat.com>
3524
3525 * ia64-linux-nat.c
3526 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3527 Declare method.
3528 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3529
8f86ae1a
SM
35302020-05-15 Simon Marchi <simon.marchi@efficios.com>
3531
3532 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3533 (sparc64_adi_info): Likewise.
3534
d6bc0792
TT
35352020-05-15 Tom Tromey <tom@tromey.com>
3536
3537 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3538 block_objfile.
3539 (lookup_objfile_from_block): Remove.
3540 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3541 (lookup_global_symbol): Use block_objfile.
3542 * symtab.h (lookup_objfile_from_block): Don't declare.
3543 * printcmd.c (clear_dangling_display_expressions): Use
3544 block_objfile.
3545 * parse.c (operator_check_standard): Use block_objfile.
3546
8c14c3a3
TT
35472020-05-15 Tom Tromey <tom@tromey.com>
3548
3549 * language.c (language_alloc_type_symbol): Set
3550 SYMBOL_SECTION.
3551 * symtab.c (initialize_objfile_symbol): Remove.
3552 (allocate_symbol): Remove.
3553 (allocate_template_symbol): Remove.
3554 * dwarf2/read.c (fixup_go_packaging): Use "new".
3555 (new_symbol): Use "new".
3556 (read_variable): Don't call initialize_objfile_symbol. Use
3557 "new".
3558 (read_func_scope): Use "new".
3559 * xcoffread.c (process_xcoff_symbol): Don't call
3560 initialize_objfile_symbol.
3561 (SYMBOL_DUP): Remove.
3562 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3563 "new".
3564 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3565 (allocate_template_symbol): Don't declare.
3566 (struct symbol): Add copy constructor. Change defaults.
3567 * jit.c (finalize_symtab): Use "new".
3568 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3569 Use "new".
3570 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3571 (common_block_end): Use "new".
3572 * mdebugread.c (parse_symbol): Use "new".
3573 (new_symbol): Likewise.
3574
5b4a1a8d
PW
35752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3576
3577 * NEWS: Mention changes to help and apropos.
3578
57b4f16e
PW
35792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3580
3581 * command.h (enum command_class): Improve comments, document
3582 that class_alias is for user-defined aliases, give the class
3583 name for each class, remove unused class_xdb.
3584 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3585 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3586 by a precise class.
3587 * infcmd.c (_initialize_infcmd): Likewise.
3588 * reverse.c (_initialize_reverse): Likewise.
3589 * stack.c (_initialize_stack): Likewise.
3590 * symfile.c (_initialize_symfile): Likewise.
3591 * tracepoint.c (_initialize_tracepoint): Likewise.
3592
7c05caf7
PW
35932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3594
3595 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3596 when their aliased command is traversed.
3597 (help_cmd): Add fput_command_names_styled call to
3598 output command name and aliases when command has an alias.
3599
3b3aaacb
PW
36002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3601
3602 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3603 * cli/cli-decode.c (help_cmd_list): Declare as static,
3604 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3605 a command together with the command.
3606 (fput_command_name_styled, fput_command_names_styled): New functions.
3607 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3608 fput_command_name_styled.
3609 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3610 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3611
7aa1b46f
PW
36122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3613
3614 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3615 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3616 * command.h (cmd_show_list): Likewise.
3617 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3618 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3619
89bcba74
PW
36202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3621
3622 * unittests/command-def-selftests.c (traverse_command_structure):
3623 Verify all commands of a list have the same prefix command and
3624 that only the top cmdlist commands have a null prefix.
3625
3f4d92eb
PW
36262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3627
3628 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3629 as prefix, not one of its aliases.
3630 (set_cmd_prefix): Remove.
3631 (do_add_cmd): Centralize the setting of the prefix of a command, when
3632 command is defined after its full chain of prefix commands.
3633 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3634 (add_setshow_cmd_full): Likewise.
3635 (update_prefix_field_of_prefixed_commands): New function.
3636 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3637 update_prefix_field_of_prefixed_commands.
3638 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3639 addresses of remote_set_cmdlist and remote_show_cmdlist given
3640 as argument, not the address of an argument.
3641 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3642 * gdb/remote.c (_initialize_remote): Likewise.
3643
0605465f
PW
36442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3645
3646 * cli/cli-cmds.c (alias_command): Check for an existing alias
3647 using lookup_cmd_composition, as valid_command_p is too strict
3648 and forbids aliases that are the prefix of an existing alias
3649 or command.
3650 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3651 command is properly recognised as a valid command.
3652
58e6ac70
PW
36532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3654
3655 * unittests/help-doc-selftests.c: Rename to
3656 unittests/command-def-selftests.c
3657 * unittests/command-def-selftests.c (help_doc_tests): Update some
3658 comments.
3659 (command_structure_tests, traverse_command_structure): New namespace
3660 and function.
3661 (command_structure_invariants_tests): New function.
3662 (_initialize_command_def_selftests) Renamed from
3663 _initialize_help_doc_selftests, register command_structure_invariants
3664 selftest.
3665
a7b9ceb8
PW
36662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3667
3668 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3669 an alias of 'show'.
3670
b2188a06
JB
36712020-05-15 Joel Brobecker <brobecker@adacore.com>
3672
3673 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3674 ada_is_fixed_point_type. Update all callers.
3675 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3676 all callers.
3677 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3678 Update all callers.
3679 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3680 print_fixed_point_type. Update all callers.
3681 * ada-valprint.c (ada_value_print_num): Replace call to
3682 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3683
a51951c2
KB
36842020-05-14 Kevin Buettner <kevinb@redhat.com>
3685
3686 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3687 processors.
3688 (cpu_supports_bts): Add CV_AMD case.
3689
29d6859f
LM
36902020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3691 Simon Marchi <simon.marchi@efficios.com>
3692
3693 * infrun.c (stop_all_threads): Collect multiple wait events at
3694 each pass.
3695
78134374
SM
36962020-05-14 Simon Marchi <simon.marchi@efficios.com>
3697
3698 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3699 type::code instead.
3700
67607e24
SM
37012020-05-14 Simon Marchi <simon.marchi@efficios.com>
3702
3703 * gdbtypes.h (struct type) <code, set_code>: New methods.
3704 (TYPE_CODE): Use type::code. Change all call sites used to set
3705 the code to use type::set_code instead.
3706
a05575d3
TBA
37072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3708 Tom de Vries <tdevries@suse.de>
3709 Pedro Alves <palves@redhat.com>
3710
3711 PR threads/25478
3712 * infrun.c (stop_all_threads): Do NOT ignore
3713 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3714 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3715 received.
3716 (handle_no_resumed): Remove code handling a live inferior with no
3717 threads.
3718 * remote.c (has_single_non_exited_thread): New.
3719 (remote_target::update_thread_list): Do not delete a thread if is
3720 the last thread of the process.
3721 * thread.c (thread_select): Call delete_exited_threads instead of
3722 prune_threads.
3723
6ad82919
TBA
37242020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3725
3726 * infrun.c (stop_all_threads): Enable/disable thread events of all
3727 targets. Move a debug message denoting the end of the function
3728 into the SCOPED_EXIT block.
3729
d890404b
TBA
37302020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3731
3732 * process-stratum-target.h: Include <set>.
3733 (all_non_exited_process_targets, switch_to_target_no_thread): New
3734 function declarations.
3735 * process-stratum-target.c (all_non_exited_process_targets)
3736 (switch_to_target_no_thread): New function implementations.
3737
293b3ebc
TBA
37382020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3739
3740 * infrun.c (handle_inferior_event): Extract out a piece of code
3741 into...
3742 (mark_non_executing_threads): ...this new function.
3743
7ca9b62a
TBA
37442020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3745
3746 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3747 use.
3748
fc75c28b
TBA
37492020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3750
3751 * regcache.c (regcache_read_pc_protected): New function
3752 implementation that returns 0 if the PC cannot read via
3753 'regcache_read_pc'.
3754 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3755 instead of 'regcache_read_pc'.
3756 (keep_going_pass_signal): Ditto.
3757
a89febbd
TT
37582020-05-13 Tom Tromey <tromey@adacore.com>
3759
3760 * ada-lang.c (align_value): Remove.
3761 (ada_template_to_fixed_record_type_1): Use align_up.
3762
f7e23710
TBA
37632020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3764
3765 * async-event.c: Update the copyright year.
3766 * async-event.h: Update the copyright year.
3767
02ff80c2
SM
37682020-05-12 Simon Marchi <simon.marchi@efficios.com>
3769
3770 * objfiles.h (is_addr_in_objfile,
3771 shared_objfile_contains_address_p): Return bool.
3772 * objfile.c (is_addr_in_objfile,
3773 shared_objfile_contains_address_p): Return bool.
3774
4fd6c7e8
TT
37752020-05-11 Tom Tromey <tromey@adacore.com>
3776
3777 * cli/cli-cmds.c (info_command): Restore.
3778 (_initialize_cli_cmds): Use add_prefix_command for "info".
3779 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3780
5eb68a39
TT
37812020-05-11 Tom Tromey <tromey@adacore.com>
3782
3783 * ada-lang.c (ada_value_primitive_field): Now public.
3784 * ada-lang.h (ada_value_primitive_field): Declare.
3785 * ada-valprint.c (print_field_values): Use
3786 ada_value_primitive_field for wrapper fields.
3787
7666722f
TV
37882020-05-11 Tom de Vries <tdevries@suse.de>
3789
3790 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3791 MODULE_DOMAIN.
3792
3ee6bb11
TV
37932020-05-11 Tom de Vries <tdevries@suse.de>
3794
3795 PR symtab/25941
3796 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3797 with length 0, if not gdb-produced.
3798 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3799
43434996
TV
38002020-05-09 Tom de Vries <tdevries@suse.de>
3801
3802 PR gdb/25955
3803 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3804 calculation.
3805
2f78cffc
TT
38062020-05-09 Tom Tromey <tom@tromey.com>
3807
3808 * top.c (server_command): Now bool.
3809 * top.h (server_command): Now bool.
3810
4f7bc5ed
TT
38112020-05-08 Tom Tromey <tromey@adacore.com>
3812
3813 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3814 already being processed.
3815
8be4b118
TT
38162020-05-08 Tom Tromey <tom@tromey.com>
3817
3818 * printcmd.c (struct display) <next>: Remove.
3819 <display>: New constructor.
3820 <exp_string>: Now a std::string.
3821 <enabled_p>: Now a bool.
3822 (display_number): Move definition earlier.
3823 (displays): Rename from display_chain. Now a std::vector.
3824 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3825 (display_command): Update.
3826 (do_one_display, disable_display)
3827 (enable_disable_display_command, do_enable_disable_display):
3828 Update.
3829 (free_display): Remove.
3830 (clear_displays): Rewrite.
3831 (delete_display): Update.
3832 (map_display_numbers): Use function_view. Remove "data"
3833 parameter. Update.
3834 (do_delete_display): Remove.
3835 (undisplay_command): Update.
3836 (do_one_display, do_displays, disable_display)
3837 (info_display_command): Update.
3838 (do_enable_disable_display): Remove.
3839 (enable_disable_display_command)
3840 (clear_dangling_display_expressions): Update.
3841
94c93c35
TT
38422020-05-08 Tom Tromey <tom@tromey.com>
3843
3844 * symtab.c (set_symbol_cache_size)
3845 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3846 (maintenance_print_symbol_cache_statistics): Update.
3847 * symmisc.c (print_symbol_bcache_statistics)
3848 (print_objfile_statistics, maintenance_print_objfiles)
3849 (maintenance_info_symtabs, maintenance_check_symtabs)
3850 (maintenance_expand_symtabs, maintenance_info_line_tables):
3851 Update.
3852 * symfile-debug.c (set_debug_symfile): Update.
3853 * source.c (forget_cached_source_info): Update.
3854 * python/python.c (gdbpy_progspaces): Update.
3855 * psymtab.c (maintenance_info_psymtabs): Update.
3856 * probe.c (parse_probes): Update.
3857 * linespec.c (iterate_over_all_matching_symtabs)
3858 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3859 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3860 * exec.c (exec_target::close): Update.
3861 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3862 * breakpoint.c (print_one_breakpoint_location)
3863 (create_longjmp_master_breakpoint)
3864 (create_std_terminate_master_breakpoint): Update.
3865 * progspace.c (program_spaces): Now a std::vector.
3866 (maybe_new_address_space): Update.
3867 (add_program_space): Remove.
3868 (program_space::program_space): Update.
3869 (remove_program_space): Update.
3870 (number_of_program_spaces): Remove.
3871 (print_program_space, update_address_spaces): Update.
3872 * progspace.h (program_spaces): Change type.
3873 (ALL_PSPACES): Remove.
3874 (number_of_program_spaces): Don't declare.
3875 (struct program_space) <next>: Remove.
3876
a1fd1ac9
TT
38772020-05-08 Tom Tromey <tom@tromey.com>
3878
3879 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3880 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3881 (enable_break): Update.
3882 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3883 (frv_fdpic_find_canonical_descriptor): Update.
3884 (frv_fetch_objfile_link_map): Update.
3885 * progspace.c (program_space::free_all_objfiles): Update.
3886 (program_space::solibs): New method.
3887 * progspace.h (struct program_space) <solibs>: New method.
3888 * solist.h (master_so_list): Don't declare.
3889 (ALL_SO_LIBS): Remove.
3890 * solib.h (so_list_head): Remove.
3891 (update_solib_list): Update comment.
3892 * solib.c (master_so_list): Remove.
3893 (solib_used, update_solib_list, solib_add)
3894 (info_sharedlibrary_command, clear_solib)
3895 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3896
38eae084
TT
38972020-05-08 Tom Tromey <tom@tromey.com>
3898
3899 * extension.c (extension_languages): Now a std::array.
3900 (ALL_EXTENSION_LANGUAGES): Remove.
3901 (get_ext_lang_defn, get_ext_lang_of_file)
3902 (eval_ext_lang_from_control_command): Update.
3903 (finish_ext_lang_initialization)
3904 (auto_load_ext_lang_scripts_for_objfile)
3905 (ext_lang_type_printers::ext_lang_type_printers)
3906 (apply_ext_lang_type_printers)
3907 (ext_lang_type_printers::~ext_lang_type_printers)
3908 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3909 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3910 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3911 (get_matching_xmethod_workers, ext_lang_colorize)
3912 (ext_lang_before_prompt): Update.
3913 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3914
596dc4ad
TT
39152020-05-08 Tom Tromey <tom@tromey.com>
3916
3917 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3918 overload.
3919 <swap_string, m_string>: Remove.
3920 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3921 Update.
3922 * stabsread.c (define_symbol, read_type): Update.
3923 * linespec.c (find_linespec_symbols): Update.
3924 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3925 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3926 * dbxread.c (read_dbx_symtab): Update.
3927 * cp-support.h (cp_canonicalize_string_full)
3928 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3929 Return unique_xmalloc_ptr.
3930 * cp-support.c (inspect_type): Update.
3931 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3932 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3933 Likewise.
3934 * c-typeprint.c (print_name_maybe_canonical): Update.
3935 * break-catch-throw.c (check_status_exception_catchpoint):
3936 Update.
3937
bf4cb9be
TV
39382020-05-08 Tom de Vries <tdevries@suse.de>
3939
3940 * infrun.c (follow_fork): Copy current_line and current_symtab to
3941 child thread.
3942
a1b68f28
SM
39432020-05-07 Simon Marchi <simon.marchi@efficios.com>
3944
3945 * async-event.c (struct async_signal_handler, struct
3946 async_event_handler): Reformat, remove typedef.
3947
98d48915
SM
39482020-05-07 Simon Marchi <simon.marchi@efficios.com>
3949
3950 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3951 access thistype->main_type->dyn_prop_list directly.
3952
7aa91313
SM
39532020-05-07 Simon Marchi <simon.marchi@efficios.com>
3954
3955 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3956 (remove_dyn_prop): Remove. Update all users to use
3957 type::remove_dyn_prop.
3958 * gdbtypes.c (remove_dyn_prop): Rename to...
3959 (type::remove_dyn_prop): ... this.
3960
5c54719c
SM
39612020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3962
3963 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3964 (add_dyn_prop): Remove. Update all users to use
3965 type::add_dyn_prop.
3966 * gdbtypes.c (add_dyn_prop): Rename to...
3967 (type::add_dyn_prop): ... this.
3968
24e99c6c
SM
39692020-05-07 Simon Marchi <simon.marchi@efficios.com>
3970
3971 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3972 (get_dyn_prop): Remove. Update all users to use
3973 type::dyn_prop.
3974 * gdbtypes.c (get_dyn_prop): Rename to...
3975 (type::dyn_prop): ... this.
3976
0d4bf016
SM
39772020-05-06 Simon Marchi <simon.marchi@efficios.com>
3978
3979 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3980
ac4a4f1c
SM
39812020-05-06 Simon Marchi <simon.marchi@efficios.com>
3982
3983 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3984 instruction, skip it if it's there.
3985
a3bbacc1
SM
39862020-05-05 Simon Marchi <simon.marchi@efficios.com>
3987
3988 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
3989
c3236f84
SM
39902020-05-04 Simon Marchi <simon.marchi@efficios.com>
3991
3992 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
3993 * gdbtypes.c (recursive_dump_type): Remove use of
3994 TYPE_INCOMPLETE.
3995
3b6acaee
TT
39962020-05-03 Tom Tromey <tom@tromey.com>
3997
3998 * breakpoint.c (catch_command, tcatch_command): Remove.
3999 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4000 add_show_prefix_cmd.
4001 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4002 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4003 Remove.
4004 (add_internal_problem_command): Use add_basic_prefix_cmd,
4005 add_show_prefix_cmd.
4006 * mips-tdep.c (set_mipsfpu_command): Remove.
4007 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4008 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4009 (_initialize_index_cache): Use add_basic_prefix_cmd.
4010 * memattr.c (dummy_cmd): Remove.
4011 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4012 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4013 (_initialize_tui_win): Use add_basic_prefix_cmd,
4014 add_show_prefix_cmd.
4015 * cli/cli-logging.c (set_logging_command): Remove.
4016 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4017 add_show_prefix_cmd.
4018 (show_logging_command): Remove.
4019 * target.c (target_command): Remove.
4020 (add_target): Use add_basic_prefix_cmd.
4021
a51119cd
HD
40222020-05-02 Hannes Domani <ssbssa@yahoo.de>
4023
4024 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4025
652fc23a 40262020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4027
652fc23a
PW
4028 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4029 info_command.
4030
117539e6
KR
40312020-04-30 Kamil Rytarowski <n54@gmx.com>
4032
4033 * nbsd-nat.c (nbsd_enable_proc_events)
4034 (nbsd_nat_target::post_startup_inferior): Add.
4035 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4036 (nbsd_nat_target::update_thread_list): Rewrite.
4037 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4038 "PTRACE_LWP_CREATE".
4039 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4040
102e38eb 40412020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4042
102e38eb
PW
4043 * stack.c (_initialize_stack): Remove duplicated creation
4044 of "frame" command and "f" alias.
4045
ee9d1e5f
HD
40462020-04-30 Hannes Domani <ssbssa@yahoo.de>
4047
4048 PR gdb/18706
4049 * gdbtypes.c (check_typedef): Calculate size of array of
4050 stubbed type.
4051
627c7fb8
HD
40522020-04-30 Hannes Domani <ssbssa@yahoo.de>
4053
4054 PR gdb/15559
4055 * i386-tdep.c (i386_push_dummy_call): Call
4056 i386_thiscall_push_dummy_call.
4057 (i386_thiscall_push_dummy_call): New function.
4058 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4059 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4060 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4061
ffc2844e
SM
40622020-04-29 Simon Marchi <simon.marchi@efficios.com>
4063
4064 * gdbarch.sh (do_read): Add shellcheck disable directive for
4065 warning SC2162.
4066
1207375d
SM
40672020-04-29 Simon Marchi <simon.marchi@efficios.com>
4068
4069 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4070 "referenced but not assigned" warning.
4071
9fdb2916
SM
40722020-04-29 Simon Marchi <simon.marchi@efficios.com>
4073
4074 * gdbarch.sh: Remove code that sets fallbackdefault.
4075
759cea5e
SM
40762020-04-29 Simon Marchi <simon.marchi@efficios.com>
4077
4078 * gdbarch.sh: Use shell operators && and || instead of
4079 -a and -o.
4080
cb02ab24
SM
40812020-04-29 Simon Marchi <simon.marchi@efficios.com>
4082
4083 * gdbarch.sh: Use $(...) instead of `...`.
4084
a6fc5ffc
SM
40852020-04-29 Simon Marchi <simon.marchi@efficios.com>
4086
4087 * gdbarch.sh: Use double quotes around variables.
4088
8d113d13
SM
40892020-04-29 Simon Marchi <simon.marchi@efficios.com>
4090
4091 * gdbarch.sh: Use %s with printf, instead of variables in the
4092 format string.
4093
ed6acedd
TT
40942020-04-29 Tom Tromey <tromey@adacore.com>
4095
4096 PR ada/25875:
4097 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4098 type fields here.
4099 (read_enumeration_type): Call
4100 update_enumeration_type_from_children later. Update comments.
4101 (process_enumeration_scope): Don't create type fields.
4102
b68b1b58
KR
41032020-04-29 Kamil Rytarowski <n54@gmx.com>
4104
4105 * nbsd-tdep.c: Include "xml-syscall.h".
4106 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4107
f94b2e03
KR
41082020-04-29 Kamil Rytarowski <n54@gmx.com>
4109
4110 * nbsd-nat.c: Include "sys/wait.h".
4111 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4112 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4113 (nbsd_nat_target::remove_exec_catchpoint)
4114 (nbsd_nat_target::set_syscall_catchpoint): Add.
4115 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4116 (nbsd_nat_target::insert_exec_catchpoint)
4117 (nbsd_nat_target::remove_exec_catchpoint)
4118 (nbsd_nat_target::set_syscall_catchpoint): Add.
4119 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4120 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4121 `nbsd_get_syscall_number'.
4122
fc49bc72
TT
41232020-04-29 Tom Tromey <tom@tromey.com>
4124
4125 * stack.c (print_block_frame_labels): Remove.
4126
d642b692
HD
41272020-04-29 Hannes Domani <ssbssa@yahoo.de>
4128
4129 PR gdb/17320
4130 * ada-valprint.c (val_print_packed_array_elements): Move array
4131 end bracket to new line.
4132 (ada_val_print_string): Remove extra spaces before first array
4133 element.
4134 * c-valprint.c (c_value_print_array): Likewise.
4135 * m2-valprint.c (m2_print_array_contents): Likewise.
4136 (m2_value_print_inner): Likewise.
4137 * p-valprint.c (pascal_value_print_inner): Likewise.
4138 * valprint.c (generic_val_print_array): Likewise.
4139 (value_print_array_elements): Move first array element and array
4140 end bracket to new line.
4141
ea90f227
TV
41422020-04-29 Tom de Vries <tdevries@suse.de>
4143
4144 PR symtab/25889
4145 * linespec.c (find_method): Fix ix calculation.
4146
4498ef4f
KR
41472020-04-28 Kamil Rytarowski <n54@gmx.com>
4148
4149 * syscalls/update-netbsd.sh: New file.
4150 * syscalls/netbsd.xml: Regenerate.
4151 * data-directory/Makefile.in: Register `netbsd.xml' in
4152 `SYSCALLS_FILES'.
4153
a55e30b5
SM
41542020-04-28 Simon Marchi <simon.marchi@efficios.com>
4155
4156 * syscalls/update-freebsd.sh: Add double quotes.
4157
2b2fbab8
TT
41582020-04-28 Tom Tromey <tom@tromey.com>
4159
4160 * NEWS: Update.
4161 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4162 (cmdpy_init): Allow class_tui.
4163
a65189c9
TV
41642020-04-28 Mark Williams <mark@myosotissp.com>
4165
4166 PR gdb/24480
4167 * dwarf2read.c: Add missing assingments to list_in_scope when
4168 start_symtab was already called.
4169
1b95cdb7
SM
41702020-04-28 Simon Marchi <simon.marchi@efficios.com>
4171
4172 PR gdb/25881
4173 * dwarf2/read.c (offset_map_type): Use
4174 gdb:hash_enum<sect_offset> as hash function.
4175
15cd93d0
TV
41762020-04-28 Tom de Vries <tdevries@suse.de>
4177
4178 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4179 with DW_AT_signature.
4180
1eb39914
SM
41812020-04-27 Simon Marchi <simon.marchi@efficios.com>
4182
4183 * configure.ac: Remove check for fs_base/gs_base in
4184 user_regs_struct.
4185 * configure: Re-generate.
4186 * config.in: Re-generate.
4187 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4188 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4189 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4190
991a3e2e
LM
41912020-04-27 Luis Machado <luis.machado@linaro.org>
4192
4193 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4194 problematic inline frame unwinding situation.
4195 * frame.c (frame_id_computed_p): New function.
4196 * frame.h (frame_id_computed_p): New prototype.
4197
361ba0e8
TT
41982020-04-26 Tom Tromey <tom@tromey.com>
4199
4200 * command.h (enum command_class) <class_pseudo>: Remove.
4201
bc3609fd
PW
42022020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4203
4204 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4205 and whitespace.
4206
b9771db7
KR
42072020-04-25 Kamil Rytarowski <n54@gmx.com>
4208
ec16513e
SM
4209 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4210 `PT_GET_PROCESS_STATE' block.
b9771db7 4211
7151c1af
TT
42122020-04-24 Tom Tromey <tom@tromey.com>
4213
4214 * symtab.h (symbol_get_demangled_name): Don't declare.
4215 * symtab.c (symbol_get_demangled_name): Remove.
4216 (general_symbol_info::natural_name)
4217 (general_symbol_info::demangled_name): Update.
4218
906bb4c5
TT
42192020-04-24 Tom Tromey <tom@tromey.com>
4220
4221 PR rust/25025:
4222 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4223
bcfe6157
TT
42242020-04-24 Tom Tromey <tom@tromey.com>
4225
4226 PR symtab/12707:
4227 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4228 exists.
4229 (new_symbol): Likewise.
4230 * compile/compile-object-load.c (get_out_value_type): Use
4231 symbol_matches_search_name.
4232
f049a313
TT
42332020-04-24 Tom Tromey <tom@tromey.com>
4234
4235 * dwarf2/read.c (add_partial_symbol): Do not call
4236 compute_and_set_names.
4237
76e288d1
TT
42382020-04-24 Tom Tromey <tom@tromey.com>
4239
4240 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4241 overload.
4242
2467f4f6
TT
42432020-04-24 Tom Tromey <tom@tromey.com>
4244
4245 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4246 (add_psymbol_to_list): New overload. Make old overload call new
4247 one.
4248 * psympriv.h (add_psymbol_to_list): New overload.
4249
e61108c9
TT
42502020-04-24 Tom Tromey <tom@tromey.com>
4251
4252 * dwarf2/read.c (partial_die_info::read) <case
4253 DW_AT_linkage_name>: Use value_as_string.
4254 (dwarf2_string_attr): Use value_as_string.
4255 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4256 method.
4257 * dwarf2/attribute.c (attribute::value_as_string): New method.
4258
8c87a452
TT
42592020-04-24 Tom Tromey <tom@tromey.com>
4260
4261 * symtab.c (general_symbol_info::natural_name)
4262 (general_symbol_info::demangled_name): Check for language_rust.
4263
787de330
TT
42642020-04-24 Tom Tromey <tom@tromey.com>
4265
4266 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4267 (dwarf2_physname): ... from here.
4268 (partial_die_info::read): Add Rust "{" hack.
4269
ff985671
TT
42702020-04-24 Tom Tromey <tom@tromey.com>
4271
4272 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4273 method.
4274 (symbol_set_demangled_name): Don't declare.
4275 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4276 symbol_set_demangled_name.
4277 (general_symbol_info::set_language)
4278 (general_symbol_info::compute_and_set_names): Update.
4279 * minsyms.c (minimal_symbol_reader::install): Update.
4280 * dwarf2/read.c (new_symbol): Update.
4281
1acda803
TT
42822020-04-24 Tom Tromey <tromey@adacore.com>
4283
4284 PR python/23662:
4285 * python/py-type.c (convert_field): Handle
4286 FIELD_LOC_KIND_DWARF_BLOCK.
4287 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4288 (typy_get_dynamic): Nw function.
4289 (type_object_getset): Add "dynamic".
4290 * NEWS: Add entry.
4291
d656f129
TT
42922020-04-24 Tom Tromey <tromey@adacore.com>
4293
4294 * ada-typeprint.c (print_choices, print_variant_part)
4295 (print_record_field_types_dynamic): New functions.
4296 (print_record_field_types): Use print_record_field_types_dynamic.
4297
7d79de9a
TT
42982020-04-24 Tom Tromey <tromey@adacore.com>
4299
4300 * dwarf2/read.c (handle_data_member_location): New overload.
4301 (dwarf2_add_field): Use it.
4302 (decode_locdesc): Add "computed" parameter. Update comment.
4303 * gdbtypes.c (is_dynamic_type_internal): Also look for
4304 FIELD_LOC_KIND_DWARF_BLOCK.
4305 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4306 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4307 virtual base classes.
4308 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4309 FIELD_LOC_KIND_DWARF_BLOCK.
4310
f8e89861
TT
43112020-04-24 Tom Tromey <tromey@adacore.com>
4312
4313 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4314 * gdbtypes.c (is_dynamic_type_internal): Check
4315 TYPE_HAS_DYNAMIC_LENGTH.
4316 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4317 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4318 New macros.
4319 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4320 constant.
4321
9c6a1327
TT
43222020-04-24 Tom Tromey <tromey@adacore.com>
4323
4324 * dwarf2/read.c (struct variant_field): Rewrite.
4325 (struct variant_part_builder): New.
4326 (struct nextfield): Remove "variant" field. Add "offset".
4327 (struct field_info): Add "current_variant_part" and
4328 "variant_parts".
4329 (alloc_discriminant_info): Remove.
4330 (alloc_rust_variant): New function.
4331 (quirk_rust_enum): Update.
4332 (dwarf2_add_field): Set "offset" member. Don't handle
4333 DW_TAG_variant_part.
4334 (offset_map_type): New typedef.
4335 (convert_variant_range, create_one_variant)
4336 (create_one_variant_part, create_variant_parts)
4337 (add_variant_property): New functions.
4338 (dwarf2_attach_fields_to_type): Call add_variant_property.
4339 (read_structure_type): Don't handle DW_TAG_variant_part.
4340 (handle_variant_part, handle_variant): New functions.
4341 (handle_struct_member_die): Use them.
4342 (process_structure_scope): Don't handle variant parts.
4343 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4344 (struct discriminant_info): Remove.
4345 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4346 (struct main_type) <flag_discriminated_union>: Remove.
4347 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4348 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4349 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4350 Update.
4351 * valops.c (value_union_variant): Remove.
4352 * value.h (value_union_variant): Don't declare.
4353
b249d2c2
TT
43542020-04-24 Tom Tromey <tromey@adacore.com>
4355
4356 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4357 (ada_value_primitive_packed_val): Update.
4358 * ada-valprint.c (ada_value_print_1): Update.
4359 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4360 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4361 just an address. Use evaluate_for_locexpr_baton.
4362 (dwarf2_evaluate_property): Update.
4363 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4364 array_view.
4365 * findvar.c (default_read_var_value): Update.
4366 * gdbtypes.c (compute_variant_fields_inner)
4367 (resolve_dynamic_type_internal): Update.
4368 (resolve_dynamic_type): Change type of valaddr parameter.
4369 * gdbtypes.h (resolve_dynamic_type): Update.
4370 * valarith.c (value_subscripted_rvalue): Update.
4371 * value.c (value_from_contents_and_address): Update.
4372
61122aa9
TT
43732020-04-24 Tom Tromey <tromey@adacore.com>
4374
4375 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4376 "push_initial_value" parameter.
4377 (dwarf2_evaluate_property): Likewise.
4378 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4379
ef83a141
TT
43802020-04-24 Tom Tromey <tromey@adacore.com>
4381
4382 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4383 (variant::matches, compute_variant_fields_recurse)
4384 (compute_variant_fields_inner, compute_variant_fields): New
4385 functions.
4386 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4387 Use resolved_type after type is made.
4388 (operator==): Add new cases.
4389 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4390 (struct discriminant_range, struct variant, struct variant_part):
4391 New.
4392 (union dynamic_prop_data) <variant_parts, original_type>: New
4393 members.
4394 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4395 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4396 constants.
4397 * value.c (unpack_bits_as_long): Now public.
4398 * value.h (unpack_bits_as_long): Declare.
4399
675127ec
TT
44002020-04-24 Tom Tromey <tromey@adacore.com>
4401
4402 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4403 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4404
9852ceef
HD
44052020-04-24 Hannes Domani <ssbssa@yahoo.de>
4406
4407 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4408
7632c6ce
KR
44092020-04-24 Kamil Rytarowski <n54@gmx.com>
4410
4411 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4412 (remove_fork_catchpoint, post_startup_inferior)
4413 (post_attach): Move...
4414 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4415 (remove_fork_catchpoint, post_startup_inferior)
4416 (post_attach): ...here.
4417 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4418 (remove_fork_catchpoint, post_startup_inferior)
4419 (post_attach): Move...
4420 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4421 (remove_fork_catchpoint, post_startup_inferior)
4422 (post_attach): ...here.
4423
7be2bb4f
TT
44242020-04-24 Tom Tromey <tromey@adacore.com>
4425
4426 * nat/windows-nat.h (struct windows_thread_info)
4427 <pc_adjusted>: New member.
4428 * windows-nat.c (windows_fetch_one_register): Check
4429 pc_adjusted.
4430 (windows_nat_target::get_windows_debug_event)
4431 (windows_nat_target::wait): Set pc_adjusted.
4432
f80cb3b4
TV
44332020-04-24 Tom de Vries <tdevries@suse.de>
4434
4435 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4436 Run gdb-add-index inside temp dir.
4437
29514b87
TT
44382020-04-23 Tom Tromey <tromey@adacore.com>
4439
4440 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4441 in loop.
4442
5939967b
LM
44432020-04-23 Luis Machado <luis.machado@linaro.org>
4444
4445 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4446 get_frame_register instead of gdbarch_unwind_pc.
4447
70bc38f5
TV
44482020-04-23 Tom de Vries <tdevries@suse.de>
4449
4450 * symtab.c (lookup_global_symbol): Prefer def over decl.
4451
de82891c
TV
44522020-04-23 Tom de Vries <tdevries@suse.de>
4453
4454 PR symtab/25807
4455 * block.c (best_symbol, better_symbol): Promote to external.
4456 * block.h (best_symbol, better_symbol): Declare.
4457 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4458 decl.
4459
ecc6c606
TT
44602020-04-23 Tom Tromey <tromey@adacore.com>
4461
4462 PR ada/25837:
4463 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4464 "const char *", not a "const std::string &".
4465 <name_and_matcher::operator==>: Update.
4466 * unittests/lookup_name_info-selftests.c: Change type of
4467 "result".
4468
740480b8
TT
44692020-04-23 Tom Tromey <tom@tromey.com>
4470
4471 * inferior.h (iterate_over_inferiors): Don't declare.
4472 * inferior.c (iterate_over_inferiors): Remove.
4473 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4474 Remove.
4475 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4476 use iterate_over_inferiors.
4477 (darwin_resume_inferior_it)
4478 (struct resume_inferior_threads_param)
4479 (darwin_resume_inferior_threads_it): Remove.
4480 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4481
ae3ab1f0
TV
44822020-04-23 Tom de Vries <tdevries@suse.de>
4483
4484 * blockframe.c (find_pc_partial_function): Use
4485 find_pc_sect_compunit_symtab rather than
4486 objfile->sf->qf->find_pc_sect_compunit_symtab.
4487
317d2668
TV
44882020-04-22 Tom de Vries <tdevries@suse.de>
4489
4490 PR symtab/25764
4491 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4492 in psymtabs.
4493
eea9e357
TV
44942020-04-22 Tom de Vries <tdevries@suse.de>
4495
4496 PR symtab/25801
4497 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4498 symtabs.
4499
3d5afab3
TV
45002020-04-22 Tom de Vries <tdevries@suse.de>
4501
4502 PR symtab/25700
4503 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4504 CU if already created.
4505
d43b7a2d
TBA
45062020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4507
4508 * infrun.c (displaced_step_fixup): Switch to the event_thread
4509 before calling displaced_step_restore, not after.
4510
d89edf9b
MM
45112020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4512
4513 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4514 its inferior is not recorded by us.
4515 (record_btrace_target_open): Replace call to
4516 all_non_exited_threads () with call to current_inferior
4517 ()->non_exited_threads ().
4518 (record_btrace_target::stop_recording): Likewise.
4519 (record_btrace_target::close): Likewise.
4520 (record_btrace_target::wait): Likewise.
4521 (record_btrace_target::record_stop_replaying): Likewise.
4522
5897fd49
MM
45232020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4524
4525 * btrace.c (btrace_enable): Throw an error on double enables and
4526 when enabling recording fails.
4527 (btrace_disable): Throw an error if the thread is not recorded.
4528
1a476b6d
MM
45292020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4530
4531 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4532 request if we do not have a thread_info.
4533
4778a5f8
TV
45342020-04-21 Tom de Vries <tdevries@suse.de>
4535
4536 PR gdb/25471
4537 * thread.c
4538 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4539 exception in get_frame_id.
4540
0fa7617d
TT
45412020-04-20 Tom Tromey <tromey@adacore.com>
4542
4543 * python/python.c (struct gdbpy_event): Mark move constructor as
4544 noexcept.
4545 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4546 constructor as noexcept.
4547 * completer.h (struct completion_result): Mark move constructor as
4548 noexcept.
4549 * completer.c (completion_result::completion_result): Use
4550 initialization style. Don't call reset_match_list.
4551
ad23bda0
MS
45522020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4553
4554 * MAINTAINERS (Write After Approval): Add myself.
4555
45e1f031
TT
45562020-04-18 Tom Tromey <tom@tromey.com>
4557
4558 * windows-tdep.c (init_w32_command_list)
4559 (w32_prefix_command_valid): Restore.
4560 (_initialize_windows_tdep): Call init_w32_command_list.
4561
08feed99
TT
45622020-04-18 Tom Tromey <tom@tromey.com>
4563
4564 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4565 * value.c (value_fn_field): Update.
4566 * valops.c (find_function_in_inferior)
4567 (value_allocate_space_in_inferior): Update.
4568 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4569 Update.
4570 * tui/tui-source.c (tui_source_window::set_contents): Update.
4571 * symtab.c (lookup_global_or_static_symbol)
4572 (find_function_start_sal_1, skip_prologue_sal)
4573 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4574 * symmisc.c (dump_msymbols, dump_symtab_1)
4575 (maintenance_print_one_line_table): Update.
4576 * symfile.c (init_entry_point_info, section_is_mapped)
4577 (list_overlays_command, simple_read_overlay_table)
4578 (simple_overlay_update_1): Update.
4579 * stap-probe.c (handle_stap_probe): Update.
4580 * stabsread.c (dbx_init_float_type, define_symbol)
4581 (read_one_struct_field, read_enum_type, read_range_type): Update.
4582 * source.c (info_line_command): Update.
4583 * python/python.c (gdbpy_source_objfile_script)
4584 (gdbpy_execute_objfile_script): Update.
4585 * python/py-type.c (save_objfile_types): Update.
4586 * python/py-objfile.c (py_free_objfile): Update.
4587 * python/py-inferior.c (python_new_objfile): Update.
4588 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4589 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4590 (maintenance_check_psymtabs): Update.
4591 * printcmd.c (info_address_command): Update.
4592 * objfiles.h (struct objfile) <arch>: New method, from
4593 get_objfile_arch.
4594 (get_objfile_arch): Don't declare.
4595 * objfiles.c (get_objfile_arch): Remove.
4596 (filter_overlapping_sections): Update.
4597 * minsyms.c (msymbol_is_function): Update.
4598 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4599 (output_nondebug_symbol): Update.
4600 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4601 (mdebug_expand_psymtab): Update.
4602 * machoread.c (macho_add_oso_symfile): Update.
4603 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4604 Update.
4605 * linux-fork.c (checkpoint_command): Update.
4606 * linespec.c (convert_linespec_to_sals): Update.
4607 * jit.c (finalize_symtab): Update.
4608 * infrun.c (insert_exception_resume_from_probe): Update.
4609 * ia64-tdep.c (ia64_find_unwind_table): Update.
4610 * hppa-tdep.c (internalize_unwinds): Update.
4611 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4612 Update.
4613 * gcore.c (call_target_sbrk): Update.
4614 * elfread.c (record_minimal_symbol, elf_symtab_read)
4615 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4616 (elf_gnu_ifunc_resolve_by_got): Update.
4617 * dwarf2/read.c (create_addrmap_from_index)
4618 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4619 (read_debug_names_from_section)
4620 (process_psymtab_comp_unit_reader, add_partial_symbol)
4621 (add_partial_subprogram, process_full_comp_unit)
4622 (read_file_scope, read_func_scope, read_lexical_block_scope)
4623 (read_call_site_scope, dwarf2_ranges_read)
4624 (dwarf2_record_block_ranges, dwarf2_add_field)
4625 (mark_common_block_symbol_computed, read_tag_pointer_type)
4626 (read_tag_string_type, dwarf2_init_float_type)
4627 (dwarf2_init_complex_target_type, read_base_type)
4628 (partial_die_info::read, partial_die_info::read)
4629 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4630 (dwarf2_fetch_die_loc_sect_off): Update.
4631 * dwarf2/loc.c (dwarf2_find_location_expression)
4632 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4633 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4634 (dwarf2_loc_desc_get_symbol_read_needs)
4635 (locexpr_describe_location_piece, locexpr_describe_location_1)
4636 (loclist_describe_location): Update.
4637 * dwarf2/index-write.c (write_debug_names): Update.
4638 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4639 * dtrace-probe.c (dtrace_process_dof): Update.
4640 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4641 (process_one_symbol): Update.
4642 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4643 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4644 (coff_read_enum_type): Update.
4645 * cli/cli-cmds.c (edit_command, list_command): Update.
4646 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4647 * breakpoint.c (create_overlay_event_breakpoint)
4648 (create_longjmp_master_breakpoint)
4649 (create_std_terminate_master_breakpoint)
4650 (create_exception_master_breakpoint, get_sal_arch): Update.
4651 * block.c (block_gdbarch): Update.
4652 * annotate.c (annotate_source_line): Update.
4653
0743fc83
TT
46542020-04-17 Tom Tromey <tromey@adacore.com>
4655
4656 * auto-load.c (show_auto_load_cmd): Remove.
4657 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4658 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4659 (maintenance_print_arc_command): Remove.
4660 * tui/tui-win.c (tui_command): Remove.
4661 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4662 * tui/tui-layout.c (tui_layout_command): Remove.
4663 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4664 * python/python.c (user_set_python, user_show_python): Remove.
4665 (_initialize_python): Use add_basic_prefix_cmd,
4666 add_show_prefix_cmd.
4667 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4668 (install_gdb_commands): Use add_basic_prefix_cmd,
4669 add_show_prefix_cmd.
4670 (info_guile_command): Remove.
4671 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4672 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4673 add_show_prefix_cmd.
4674 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4675 Remove do_set and do_show parameters.
4676 * cli/cli-style.c (set_style, show_style): Remove.
4677 (_initialize_cli_style): Use add_basic_prefix_cmd,
4678 add_show_prefix_cmd.
4679 (cli_style_option::add_setshow_commands): Remove do_set and
4680 do_show parameters.
4681 (cli_style_option::add_setshow_commands): Use
4682 add_basic_prefix_cmd, add_show_prefix_cmd.
4683 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4684 (set_style_name): Remove.
4685 * cli/cli-dump.c (dump_command, append_command): Remove.
4686 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4687 (tekhex_dump_command, binary_dump_command)
4688 (binary_append_command): Remove.
4689 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4690 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4691 (init_w32_command_list): Remove; move into ...
4692 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4693 * valprint.c (set_print, show_print, set_print_raw)
4694 (show_print_raw): Remove.
4695 (_initialize_valprint): Use add_basic_prefix_cmd,
4696 add_show_prefix_cmd.
4697 * typeprint.c (set_print_type, show_print_type): Remove.
4698 (_initialize_typeprint): Use add_basic_prefix_cmd,
4699 add_show_prefix_cmd.
4700 * record.c (set_record_command, show_record_command): Remove.
4701 (_initialize_record): Use add_basic_prefix_cmd,
4702 add_show_prefix_cmd.
4703 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4704 add_show_prefix_cmd.
4705 (info_command, show_command, set_debug, show_debug): Remove.
4706 * top.h (set_history, show_history): Don't declare.
4707 * top.c (set_history, show_history): Remove.
4708 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4709 (unset_tdesc_cmd): Remove.
4710 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4711 add_show_prefix_cmd.
4712 * symtab.c (info_module_command): Remove.
4713 (_initialize_symtab): Use add_basic_prefix_cmd.
4714 * symfile.c (overlay_command): Remove.
4715 (_initialize_symfile): Use add_basic_prefix_cmd.
4716 * sparc64-tdep.c (info_adi_command): Remove.
4717 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4718 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4719 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4720 add_show_prefix_cmd.
4721 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4722 (_initialize_serial): Use add_basic_prefix_cmd,
4723 add_show_prefix_cmd.
4724 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4725 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4726 add_show_prefix_cmd.
4727 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4728 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4729 add_show_prefix_cmd.
4730 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4731 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4732 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4733 add_show_prefix_cmd.
4734 * remote.c (remote_command, set_remote_cmd): Remove.
4735 (_initialize_remote): Use add_basic_prefix_cmd.
4736 * record-full.c (set_record_full_command)
4737 (show_record_full_command): Remove.
4738 (_initialize_record_full): Use add_basic_prefix_cmd,
4739 add_show_prefix_cmd.
4740 * record-btrace.c (cmd_set_record_btrace)
4741 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4742 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4743 (cmd_show_record_btrace_pt): Remove.
4744 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4745 add_show_prefix_cmd.
4746 * ravenscar-thread.c (set_ravenscar_command)
4747 (show_ravenscar_command): Remove.
4748 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4749 add_show_prefix_cmd.
4750 * mips-tdep.c (show_mips_command, set_mips_command)
4751 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4752 add_show_prefix_cmd.
4753 * maint.c (maintenance_command, maintenance_info_command)
4754 (maintenance_check_command, maintenance_print_command)
4755 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4756 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4757 add_show_prefix_cmd.
4758 (show_per_command_cmd): Remove.
4759 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4760 Remove.
4761 (maintenance_show_test_settings_cmd): Remove.
4762 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4763 add_show_prefix_cmd.
4764 * maint-test-options.c (maintenance_test_options_command):
4765 Remove.
4766 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4767 * macrocmd.c (macro_command): Remove
4768 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4769 * language.c (set_check, show_check): Remove.
4770 (_initialize_language): Use add_basic_prefix_cmd,
4771 add_show_prefix_cmd.
4772 * infcmd.c (unset_command): Remove.
4773 (_initialize_infcmd): Use add_basic_prefix_cmd.
4774 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4775 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4776 add_show_prefix_cmd.
4777 * go32-nat.c (go32_info_dos_command): Remove.
4778 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4779 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4780 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4781 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4782 (_initialize_frame): Use add_basic_prefix_cmd,
4783 add_show_prefix_cmd.
4784 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4785 (_initialize_dcache): Use add_basic_prefix_cmd,
4786 add_show_prefix_cmd.
4787 * cp-support.c (maint_cplus_command): Remove.
4788 (_initialize_cp_support): Use add_basic_prefix_cmd.
4789 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4790 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4791 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4792 add_basic_prefix_cmd, add_show_prefix_cmd.
4793 * breakpoint.c (save_command): Remove.
4794 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4795 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4796 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4797 add_show_prefix_cmd.
4798 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4799 (set_ada_command, show_ada_command): Remove.
4800 (_initialize_ada_language): Use add_basic_prefix_cmd,
4801 add_show_prefix_cmd.
4802 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4803
3557f442
KR
48042020-04-16 Kamil Rytarowski <n54@gmx.com>
4805
4806 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4807 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4808
16197208
SM
48092020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4810
4811 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4812 warning messages.
4813
00ac85d3
SM
48142020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4815
4816 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4817 import table is not at beginning of .idata section.
4818
381ce63f
PA
48192020-04-16 Pedro Alves <palves@redhat.com>
4820
4821 * inferior.c (delete_inferior): Use delete operator directly
4822 instead of delete_program_space.
4823 * progspace.c (add_program_space): New, factored out from
4824 program_space::program_space.
4825 (remove_program_space): New, factored out from
4826 delete_program_space.
4827 (program_space::program_space): Remove intro comment. Rewrite.
4828 (program_space::~program_space): Remove intro comment. Call
4829 remove_program_space.
4830 (delete_program_space): Delete.
4831 * progspace.h (program_space::program_space): Make explicit. Move
4832 intro comment here, adjusted.
4833 (program_space::~program_space): Move intro comment here,
4834 adjusted.
4835 (delete_program_space): Remove.
4836
a010605f
TT
48372020-04-16 Tom Tromey <tromey@adacore.com>
4838
4839 * windows-nat.c (windows_nat::handle_access_violation): New
4840 function.
4841 * nat/windows-nat.h (handle_access_violation): Declare.
4842 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4843 windows-nat.c. Call handle_access_violation.
4844
efba5c23
TV
48452020-04-16 Tom de Vries <tdevries@suse.de>
4846
4847 PR symtab/25791
4848 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4849 CUs without psymtab.
4850
97ed802d
KB
48512020-04-16 Kevin Buettner <kevinb@redhat.com>
4852
4853 * python/python.c (do_start_initialization): Don't call
4854 PyEval_InitThreads for Python 3.9 and beyond.
4855
c7d64809
KR
48562020-04-15 Kamil Rytarowski <n54@gmx.com>
4857
4858 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4859 thread functions.
4860 (obsd_nat_target::wait): Likewise.
4861
ce127a96
TT
48622020-04-15 Tom Tromey <tromey@adacore.com>
4863
4864 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4865 (DEBUG_EXCEPT): Use debug_printf.
4866
99f1bc6a
AB
48672020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4868
4869 * completer.c (class completion_tracker::completion_hash_entry)
4870 <hash_name>: New member function.
4871 (completion_tracker::discard_completions): New callback to hash a
4872 completion_hash_entry, pass this to htab_create_alloc.
4873
a0e9b532
JT
48742016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4875
4876 * windows-nat.c (windows_make_so): Warn rather than stopping with
4877 an error if realpath() fails.
4878
06ca5dd4
KR
48792020-04-14 Kamil Rytarowski <n54@gmx.com>
4880
4881 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4882 (nbsd_nat_target::info_proc): Add do_status.
4883
194d088f
TV
48842020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4885 Tom de Vries <tdevries@suse.de>
4886
4887 PR symtab/25718
4888 * psympriv.h (struct partial_symtab::read_symtab)
4889 (struct partial_symtab::expand_psymtab)
4890 (struct partial_symtab::read_dependencies): Update comments.
4891 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4892 read_symtab for includer.
4893 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4894 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4895 (struct dwarf2_include_psymtab::m_readin): Remove.
4896 (struct dwarf2_include_psymtab::includer): New member function.
4897 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4898
c1a66c06
TV
48992020-04-14 Tom de Vries <tdevries@suse.de>
4900
4901 PR symtab/25720
4902 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4903 with NULL symbol_matcher and lookup_name.
4904 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4905 and lookup_name.
4906 * dwarf2/read.c (dw2_expand_symtabs_matching)
4907 (dw2_debug_names_expand_symtabs_matching): Same.
4908 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4909 Make lookup_name a pointer. Update comment.
4910 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4911 lookup_name being a pointer.
4912 * symfile.c (expand_symtabs_matching): Same.
4913 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4914 * linespec.c (iterate_over_all_matching_symtabs): Same.
4915
400b5eca
TT
49162020-04-13 Tom Tromey <tom@tromey.com>
4917
4918 * run-on-main-thread.c: Update include.
4919 * unittests/main-thread-selftests.c: Update include.
4920 * tui/tui-win.c: Update include.
4921 * tui/tui-io.c: Update include.
4922 * tui/tui-interp.c: Update include.
4923 * tui/tui-hooks.c: Update include.
4924 * top.h: Update include.
4925 * top.c: Update include.
4926 * ser-base.c: Update include.
4927 * remote.c: Update include.
4928 * remote-notif.c: Update include.
4929 * remote-fileio.c: Update include.
4930 * record-full.c: Update include.
4931 * record-btrace.c: Update include.
4932 * python/python.c: Update include.
4933 * posix-hdep.c: Update include.
4934 * mingw-hdep.c: Update include.
4935 * mi/mi-main.c: Update include.
4936 * mi/mi-interp.c: Update include.
4937 * main.c: Update include.
4938 * linux-nat.c: Update include.
4939 * interps.c: Update include.
4940 * infrun.c: Update include.
4941 * inf-loop.c: Update include.
4942 * event-top.c: Update include.
4943 * event-loop.c: Move to ../gdbsupport/.
4944 * event-loop.h: Move to ../gdbsupport/.
4945 * async-event.h: Update include.
4946 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4947
93b54c8e
TT
49482020-04-13 Tom Tromey <tom@tromey.com>
4949
4950 * tui/tui-win.c: Include async-event.h.
4951 * remote.c: Include async-event.h.
4952 * remote-notif.c: Include async-event.h.
4953 * record-full.c: Include async-event.h.
4954 * record-btrace.c: Include async-event.h.
4955 * infrun.c: Include async-event.h.
4956 * event-top.c: Include async-event.h.
4957 * event-loop.h: Move some declarations to async-event.h.
4958 * event-loop.c: Don't include ser-event.h or top.h. Move some
4959 code to async-event.c.
4960 * async-event.h: New file.
4961 * async-event.c: New file.
4962 * Makefile.in (COMMON_SFILES): Add async-event.c.
4963 (HFILES_NO_SRCDIR): Add async-event.h.
4964
c1cd3163
TT
49652020-04-13 Tom Tromey <tom@tromey.com>
4966
4967 * utils.c (flush_streams): New function.
4968 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4969
29f2bf4f
TT
49702020-04-13 Tom Tromey <tom@tromey.com>
4971
4972 * event-loop.c (handle_file_event): Use warning, not
4973 printf_unfiltered.
4974
98029d02
TT
49752020-04-13 Tom Tromey <tom@tromey.com>
4976
4977 * event-loop.c: Include <chrono>.
4978
06cc9596
TT
49792020-04-13 Tom Tromey <tom@tromey.com>
4980
4981 * gdb_select.h: Move to ../gdbsupport/.
4982 * event-loop.c: Update include path.
4983 * top.c: Update include path.
4984 * ser-base.c: Update include path.
4985 * ui-file.c: Update include path.
4986 * ser-tcp.c: Update include path.
4987 * guile/scm-ports.c: Update include path.
4988 * posix-hdep.c: Update include path.
4989 * ser-unix.c: Update include path.
4990 * gdb_usleep.c: Update include path.
4991 * mingw-hdep.c: Update include path.
4992 * inflow.c: Update include path.
4993 * infrun.c: Update include path.
4994 * event-top.c: Update include path.
4995
8ae8e197
TT
49962020-04-13 Tom Tromey <tom@tromey.com>
4997
4998 * configure: Rebuild.
4999 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5000
58cf28e8
TT
50012020-04-13 Tom Tromey <tom@tromey.com>
5002
5003 * event-loop.h (start_event_loop): Don't declare.
5004 * event-loop.c (start_event_loop): Move...
5005 * main.c (start_event_loop): ...here. Now static.
5006
b7f999ae
SDJ
50072020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5008
5009 * MAINTAINERS: Update my email address.
5010
1085dfd4
KR
50112020-04-12 Kamil Rytarowski <n54@gmx.com>
5012
5013 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5014 IP_ALL.
5015
49d1d1f5
KR
50162020-04-12 Kamil Rytarowski <n54@gmx.com>
5017
5018 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5019 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5020
b4848d2a
KR
50212020-04-12 Kamil Rytarowski <n54@gmx.com>
5022
5023 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5024 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5025
51c133d5
KR
50262020-04-12 Kamil Rytarowski <n54@gmx.com>
5027
5028 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5029
54b8cbd0
KR
50302020-04-11 Kamil Rytarowski <n54@gmx.com>
5031
5032 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5033 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5034 (nbsd_nat_target::info_proc): New functions.
5035 * nbsd-nat.c (kinfo_get_vmmap): New function.
5036 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5037 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5038 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5039 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5040 functions.
5041 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5042 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5043 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5044 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5045 (KINFO_VME_FLAG_GROWS_DOWN): New.
5046
cf83625d
AS
50472020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5048
5049 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5050 bit shift.
5051
0c4311ab
TT
50522020-04-10 Tom Tromey <tromey@adacore.com>
5053
5054 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5055
3e65b3e9
TT
50562020-04-10 Tom Tromey <tromey@adacore.com>
5057
5058 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5059 separate debug files.
5060
13302e95
HD
50612020-04-10 Hannes Domani <ssbssa@yahoo.de>
5062
5063 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5064 Move to...
5065 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5066 ... here.
5067 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5068 Check for STATUS_WX86_BREAKPOINT.
5069 (windows_nat_target::wait): Same.
5070
bdfc1e8a
TV
50712020-04-10 Tom de Vries <tdevries@suse.de>
5072
5073 PR cli/25808
5074 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5075
f4460aec
SM
50762020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5077
5078 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5079 (Write After Approval): Remove Tom de Vries.
5080
a25198bb
BE
50812020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5082
5083 revert partially:
5084 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5085
aac66a4c
SM
5086 * buildsym.c (record_line): Fix undefined behavior and preserve
5087 lines at eof.
a25198bb 5088
206c98a6
KR
50892020-04-09 Kamil Rytarowski <n54@gmx.com>
5090
5091 * auxv.h (svr4_auxv_parse): New.
5092 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5093 and generic_auxv_parse.
5094 (svr4_auxv_parse): Add.
5095 * obsd-tdep.c: Include "auxv.h".
5096 (obsd_auxv_parse): Remove.
5097 (obsd_init_abi): Remove comment.
5098 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5099 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5100 * nbsd-tdep.c: Include "auxv.h".
5101 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5102
71fbdbaf
TT
51032020-04-08 Tom Tromey <tromey@adacore.com>
5104
5105 * nat/windows-nat.h (last_wait_event): Don't declare.
5106 (wait_for_debug_event): Update comment.
5107 * nat/windows-nat.c (last_wait_event): Now static.
5108
2c1d95e8
TT
51092020-04-08 Tom Tromey <tromey@adacore.com>
5110
5111 * windows-nat.c (wait_for_debug_event): Move to
5112 nat/windows-nat.c.
5113 * nat/windows-nat.h (wait_for_debug_event): Declare.
5114 * nat/windows-nat.c (wait_for_debug_event): Move from
5115 windows-nat.c. No longer static.
5116
d2977bc4
TT
51172020-04-08 Tom Tromey <tromey@adacore.com>
5118
5119 * windows-nat.c (get_windows_debug_event): Use
5120 fetch_pending_stop.
5121 * nat/windows-nat.h (fetch_pending_stop): Declare.
5122 * nat/windows-nat.c (fetch_pending_stop): New function.
5123
e758e19c
TT
51242020-04-08 Tom Tromey <tromey@adacore.com>
5125
5126 * windows-nat.c (windows_continue): Use matching_pending_stop and
5127 continue_last_debug_event.
5128 * nat/windows-nat.h (matching_pending_stop)
5129 (continue_last_debug_event): Declare.
5130 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5131 (matching_pending_stop, continue_last_debug_event): New
5132 functions.
5133
8d30e395
TT
51342020-04-08 Tom Tromey <tromey@adacore.com>
5135
5136 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5137 (handle_exception_result): Move to nat/windows-nat.h.
5138 (DEBUG_EXCEPTION_SIMPLE): Remove.
5139 (windows_nat::handle_ms_vc_exception): New function.
5140 (handle_exception): Move to nat/windows-nat.c.
5141 (get_windows_debug_event): Update.
5142 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5143 nat/windows-nat.c.
5144 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5145 (handle_exception_result): Move from windows-nat.c.
5146 (handle_exception): Declare.
5147 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5148 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5149 windows-nat.c.
5150
29de418d
TT
51512020-04-08 Tom Tromey <tromey@adacore.com>
5152
5153 * windows-nat.c (exception_count, event_count): Remove.
5154 (handle_exception, get_windows_debug_event)
5155 (do_initial_windows_stuff): Update.
5156
a816ba18
TT
51572020-04-08 Tom Tromey <tromey@adacore.com>
5158
5159 * windows-nat.c (windows_nat::handle_load_dll)
5160 (windows_nat::handle_unload_dll): Rename. No longer static.
5161 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5162 Declare.
5163
a00caa12
TT
51642020-04-08 Tom Tromey <tromey@adacore.com>
5165
5166 * complaints.h (stop_whining): Declare at top-level.
5167 (complaint): Don't declare stop_whining.
5168
d41b524f
TT
51692020-04-08 Tom Tromey <tromey@adacore.com>
5170
5171 * windows-nat.c (windows_nat::handle_output_debug_string):
5172 Rename. No longer static.
5173 * nat/windows-nat.h (handle_output_debug_string): Declare.
5174
3c76026d
TT
51752020-04-08 Tom Tromey <tromey@adacore.com>
5176
5177 * windows-nat.c (current_process_handle, current_process_id)
5178 (main_thread_id, last_sig, current_event, last_wait_event)
5179 (current_windows_thread, desired_stop_thread_id, pending_stops)
5180 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5181 (display_selectors, fake_create_process)
5182 (get_windows_debug_event): Update.
5183 * nat/windows-nat.h (current_process_handle, current_process_id)
5184 (main_thread_id, last_sig, current_event, last_wait_event)
5185 (current_windows_thread, desired_stop_thread_id, pending_stops)
5186 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5187 * nat/windows-nat.c (current_process_handle, current_process_id)
5188 (main_thread_id, last_sig, current_event, last_wait_event)
5189 (current_windows_thread, desired_stop_thread_id, pending_stops)
5190 (siginfo_er): New globals. Move from windows-nat.c.
5191
9d8679cc
TT
51922020-04-08 Tom Tromey <tromey@adacore.com>
5193
5194 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5195 (handle_load_dll): Update.
5196 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5197
28688adf
TT
51982020-04-08 Tom Tromey <tromey@adacore.com>
5199
5200 * windows-nat.c (enum thread_disposition_type): Move to
5201 nat/windows-nat.h.
5202 (windows_nat::thread_rec): Rename from thread_rec. No longer
5203 static.
5204 (windows_add_thread, windows_nat_target::fetch_registers)
5205 (windows_nat_target::store_registers, handle_exception)
5206 (windows_nat_target::resume, get_windows_debug_event)
5207 (windows_nat_target::get_tib_address)
5208 (windows_nat_target::thread_name)
5209 (windows_nat_target::thread_alive): Update.
5210 * nat/windows-nat.h (enum thread_disposition_type): Move from
5211 windows-nat.c.
5212 (thread_rec): Declare.
5213
4834dad0
TT
52142020-04-08 Tom Tromey <tromey@adacore.com>
5215
5216 * windows-nat.c: Add "using namespace".
5217 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5218 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5219
65bafd5b
TT
52202020-04-08 Tom Tromey <tromey@adacore.com>
5221
5222 * nat/windows-nat.h (struct windows_thread_info): Declare
5223 destructor.
5224 * nat/windows-nat.c (~windows_thread_info): New.
5225
0a4afda3
TT
52262020-04-08 Tom Tromey <tromey@adacore.com>
5227
5228 PR gdb/22992
5229 * windows-nat.c (current_event): Update comment.
5230 (last_wait_event, desired_stop_thread_id): New globals.
5231 (struct pending_stop): New.
5232 (pending_stops): New global.
5233 (windows_nat_target) <stopped_by_sw_breakpoint>
5234 <supports_stopped_by_sw_breakpoint>: New methods.
5235 (windows_fetch_one_register): Add assertions. Adjust PC.
5236 (windows_continue): Handle pending stops. Suspend other threads
5237 when stepping. Use last_wait_event
5238 (wait_for_debug_event): New function.
5239 (get_windows_debug_event): Use wait_for_debug_event. Handle
5240 pending stops. Queue spurious stops.
5241 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5242 (windows_nat_target::kill): Use wait_for_debug_event.
5243 * nat/windows-nat.h (struct windows_thread_info)
5244 <stopped_at_software_breakpoint>: New field.
5245 * nat/windows-nat.c (windows_thread_info::resume): Clear
5246 stopped_at_software_breakpoint.
5247
8e61ebec
TT
52482020-04-08 Tom Tromey <tromey@adacore.com>
5249
5250 * windows-nat.c (enum thread_disposition_type): New.
5251 (thread_rec): Replace "get_context" parameter with "disposition";
5252 change type.
5253 (windows_add_thread, windows_nat_target::fetch_registers)
5254 (windows_nat_target::store_registers, handle_exception)
5255 (windows_nat_target::resume, get_windows_debug_event)
5256 (windows_nat_target::get_tib_address)
5257 (windows_nat_target::thread_name)
5258 (windows_nat_target::thread_alive): Update.
5259
98a03287
TT
52602020-04-08 Tom Tromey <tromey@adacore.com>
5261
5262 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5263 (windows_continue): Use windows_continue::resume.
5264 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5265 resume>: Declare new methods.
5266 * nat/windows-nat.c: New file.
5267 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5268
7c7411bc
TT
52692020-04-08 Tom Tromey <tromey@adacore.com>
5270
5271 * windows-nat.c (windows_add_thread, windows_delete_thread)
5272 (windows_nat_target::fetch_registers)
5273 (windows_nat_target::store_registers, fake_create_process)
5274 (windows_nat_target::resume, windows_nat_target::resume)
5275 (get_windows_debug_event, windows_nat_target::wait)
5276 (windows_nat_target::pid_to_str)
5277 (windows_nat_target::get_tib_address)
5278 (windows_nat_target::get_ada_task_ptid)
5279 (windows_nat_target::thread_name)
5280 (windows_nat_target::thread_alive): Use lwp, not tid.
5281
2950fdf7
TT
52822020-04-08 Tom Tromey <tromey@adacore.com>
5283
5284 * windows-nat.c (handle_exception)
5285 (windows_nat_target::thread_name): Update.
5286 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5287 <name>: Now unique_xmalloc_ptr.
5288
62fe396b
TT
52892020-04-08 Tom Tromey <tromey@adacore.com>
5290
5291 * windows-nat.c (thread_rec)
5292 (windows_nat_target::fetch_registers): Update.
5293 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5294 Update comment.
5295 <debug_registers_changed, reload_context>: Now bool.
5296
e9534bd2
TT
52972020-04-08 Tom Tromey <tromey@adacore.com>
5298
5299 * windows-nat.c (windows_add_thread): Use new.
5300 (windows_init_thread_list, windows_delete_thread): Use delete.
5301 (get_windows_debug_event): Update.
5302 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5303 destructor, and initializers.
5304
ae1f8880
TT
53052020-04-08 Tom Tromey <tromey@adacore.com>
5306
5307 * windows-nat.c (struct windows_thread_info): Remove.
5308 * nat/windows-nat.h: New file.
5309
55a1e039
TT
53102020-04-08 Tom Tromey <tromey@adacore.com>
5311
5312 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5313 (thread_rec, windows_add_thread, windows_delete_thread)
5314 (windows_continue): Update.
5315
93366324
TT
53162020-04-08 Tom Tromey <tromey@adacore.com>
5317
5318 * windows-nat.c (struct windows_thread_info): Remove typedef.
5319 (thread_head): Remove.
5320 (thread_list): New global.
5321 (thread_rec, windows_add_thread, windows_init_thread_list)
5322 (windows_delete_thread, windows_continue): Update.
5323
0f2265e2
SM
53242020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5325
5326 * windows-tdep.h (windows_init_abi): Add comment.
5327 (cygwin_init_abi): New declaration.
5328 * windows-tdep.c: Split signal enumeration in two, one for
5329 Windows and one for Cygwin.
5330 (windows_gdb_signal_to_target): Only deal with signal of the
5331 Windows OS ABI.
5332 (cygwin_gdb_signal_to_target): New function.
5333 (windows_init_abi): Rename to windows_init_abi_common, don't set
5334 gdb_signal_to_target gdbarch method. Add new new function with
5335 this name.
5336 (cygwin_init_abi): New function.
5337 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5338 comment. Don't call windows_init_abi.
5339 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5340 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5341 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5342 i386_windows_init_abi_common, don't call windows_init_abi. Add
5343 a new function of this name.
5344 (i386_cygwin_init_abi): New function.
5345 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5346 OS ABI Cygwin.
5347
3810f182
SM
53482020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5349
5350 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5351 parameter.c.
5352 (dwarf2_read_gdb_index): Update.
5353
063f8e80
KR
53542020-04-07 Kamil Rytarowski <n54@gmx.com>
5355
5356 * nbsd-tdep.c: Include "objfiles.h".
5357 (nbsd_skip_solib_resolver): New.
5358 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5359
85a9510c 53602020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5361
5362 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5363 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5364 with DW_LLE_base_addressx are being emitted in DWARFv5.
5365 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5366 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5367 unsigned integer.
5368
9fc3eaae 53692020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5370
5371 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5372 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5373 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5374 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5375 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5376 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5377 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5378
5379
41144253 53802020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5381
5382 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5383 (read_loclist_index): New function definition.
5384 (lookup_loclist_base): New function definition.
5385 (read_loclist_header): New function definition.
5386 (dwarf2_cu): Add loclist_base and loclist_header field.
5387 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5388 (read_full_die_1): Read the value of DW_AT_loclists_base.
5389 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5390 (read_attribute_value): Handle DW_FORM_loclistx.
5391 (skip_one_die): Handle DW_FORM_loclistx.
5392 (loclist_header): New structure declaration.
5393 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5394
9f4e76a4
SM
53952020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5396
5397 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5398 constructor. Remove `addr` parameter from other constructor and
5399 add `per_cu` parameter.
5400 * dwarf2/read.c (create_partial_symtab): Update.
5401
25c11aca
TV
54022020-04-07 Tom de Vries <tdevries@suse.de>
5403
5404 PR symtab/25796
5405 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5406 (partial_die_info::fixup): Inherit has_const_value.
5407
5707e24b
TV
54082020-04-07 Tom de Vries <tdevries@suse.de>
5409
5410 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5411 symbols without address.
5412
05f00e22
KR
54132020-04-06 Kamil Rytarowski <n54@gmx.com>
5414
5415 * nbsd-nat.h (struct thread_info): Add forward declaration.
5416 (nbsd_nat_target::thread_alive): Add.
5417 (nbsd_nat_target::thread_name): Likewise.
5418 (nbsd_nat_target::update_thread_list): Likewise.
5419 (update_thread_list::post_attach): Likewise.
5420 (post_attach::pid_to_str): Likewise.
5421 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5422 (nbsd_thread_lister): Add.
5423 (nbsd_nat_target::thread_alive): Likewise.
5424 (nbsd_nat_target::thread_name): Likewise.
5425 (nbsd_add_threads): Likewise.
5426 (update_thread_list::post_attach): Likewise.
5427 (nbsd_nat_target::update_thread_list): Likewise.
5428 (post_attach::pid_to_str): Likewise.
5429
6ee448cc
TT
54302020-04-06 Tom Tromey <tromey@adacore.com>
5431
5432 * ada-valprint.c (print_variant_part): Extract the variant field.
5433 (print_field_values): Use the field as the outer value when
5434 recursing.
5435
dea34e8c
TT
54362020-04-06 Tom Tromey <tromey@adacore.com>
5437
5438 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5439 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5440 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5441 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5442 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5443
93689ce9
TT
54442020-04-06 Tom Tromey <tromey@adacore.com>
5445
5446 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5447 TYPE_CODE_ERROR.
5448
79743962
KR
54492020-04-06 Kamil Rytarowski <n54@gmx.com>
5450
5451 * nbsd-tdep.c: Include "gdbarch.h".
5452 Define enum with NetBSD signal numbers.
5453 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5454 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5455 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5456 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5457 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5458 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5459 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5460 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5461 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5462 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5463 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5464 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5465
9e7c9a03
HD
54662020-04-03 Hannes Domani <ssbssa@yahoo.de>
5467
5468 PR gdb/25325
5469 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5470
d9e49b61
TT
54712020-04-03 Tom Tromey <tromey@adacore.com>
5472
5473 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5474 Read constant block.
5475
e0fc5c3f
SM
54762020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5477
5478 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5479 (gdb_bfd_get_full_section_contents): New declaration.
5480 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5481 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5482 gdb_bfd_get_full_section_contents.
5483
e2ff18a0
SM
54842020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5485
5486 * exec.c (build_section_table): Replace internal_error with
5487 gdb_assert.
5488 (section_table_xfer_memory_partial): Likewise.
5489 * mdebugread.c (parse_partial_symbols): Likewise.
5490 * psymtab.c (lookup_partial_symbol): Likewise.
5491 * utils.c (wrap_here): Likewise.
5492
0830d301
TT
54932020-04-02 Tom Tromey <tromey@adacore.com>
5494
5495 * f-lang.c (build_fortran_types): Use arch_type to initialize
5496 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5497
e7da7f8f
TT
54982020-04-02 Tom Tromey <tromey@adacore.com>
5499
5500 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5501 of attributes.
5502
c90d28ac
AB
55032020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5504 Bernd Edlinger <bernd.edlinger@hotmail.de>
5505 Tom Tromey <tromey@adacore.com>
5506
5507 * buildsym.c (buildsym_compunit::record_line): Remove
5508 deduplication code.
5509
1aa98955
TV
55102020-04-02 Tom de Vries <tdevries@suse.de>
5511
5512 PR ada/24671
5513 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5514
d3214198
TV
55152020-04-02 Tom de Vries <tdevries@suse.de>
5516
5517 * dwarf2/read.c (dwarf2_gdb_index_functions,
5518 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5519 NULL.
5520 * psymtab.c (psym_lookup_global_symbol_language): New function.
5521 (psym_functions): Init psym_lookup_global_symbol_language with
5522 psym_lookup_global_symbol_language.
5523 * symfile-debug.c (debug_sym_quick_functions): Init
5524 lookup_global_symbol_language with NULL.
5525 * symfile.c (set_initial_language): Remove fixme comment.
5526 * symfile.h (struct quick_symbol_functions): Add
5527 lookup_global_symbol_language.
5528 * symtab.c (find_quick_global_symbol_language): New function.
5529 (find_main_name): Use find_quick_global_symbol_language.
5530
2836752f
SM
55312020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5532
5533 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5534
64dc2d4b
BE
55352020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5536
5537 * buildsym.c (record_line): Fix undefined behavior and preserve
5538 lines at eof.
5539
bbe3dc41
BE
55402020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5541
5542 * buildsym.c (record_line): Fix the resizing condition.
5543
6b4a335b
TT
55442020-04-01 Tom Tromey <tom@tromey.com>
5545
5546 * value.h (value_literal_complex): Add comment.
5547 * valops.c (value_literal_complex): Refer to value.h.
5548
3638a098
TT
55492020-04-01 Tom Tromey <tom@tromey.com>
5550
5551 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5552 (scalar_type): New rule, from typebase.
5553 (typebase): Use scalar_type. Recognize complex types.
5554 (field_name): Handle FLOAT_KEYWORD.
5555 (ident_tokens): Add _Complex and __complex__.
5556
c34e8714
TT
55572020-04-01 Tom Tromey <tom@tromey.com>
5558
5559 PR exp/25299:
5560 * valarith.c (promotion_type, complex_binop): New functions.
5561 (scalar_binop): Handle complex numbers. Use promotion_type.
5562 (value_pos, value_neg, value_complement): Handle complex numbers.
5563
fa649bb7
TT
55642020-04-01 Tom Tromey <tom@tromey.com>
5565
5566 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5567 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5568 (parse_number): Handle complex numbers.
5569
981c08ce
TT
55702020-04-01 Tom Tromey <tom@tromey.com>
5571
5572 * c-valprint.c (c_decorations): Change complex suffix to "i".
5573
4c99290d
TT
55742020-04-01 Tom Tromey <tom@tromey.com>
5575
5576 * valprint.c (generic_value_print_complex): Use accessors.
5577 * value.h (value_real_part, value_imaginary_part): Declare.
5578 * valops.c (value_real_part, value_imaginary_part): New
5579 functions.
5580 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5581
5b930b45
TT
55822020-04-01 Tom Tromey <tom@tromey.com>
5583
5584 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5585 (read_range_type): Update.
5586 * mdebugread.c (basic_type): Update.
5587 * go-lang.c (build_go_types): Use init_complex_type.
5588 * gdbtypes.h (struct main_type) <complex_type>: New member.
5589 (init_complex_type): Update.
5590 (arch_complex_type): Don't declare.
5591 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5592 Make name if none given. Use alloc_type_copy. Look for cached
5593 complex type.
5594 (arch_complex_type): Remove.
5595 (gdbtypes_post_init): Use init_complex_type.
5596 * f-lang.c (build_fortran_types): Use init_complex_type.
5597 * dwarf2/read.c (read_base_type): Update.
5598 * d-lang.c (build_d_types): Use init_complex_type.
5599 * ctfread.c (read_base_type): Update.
5600
53cccef1
TBA
56012020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5602
5603 * infrun.c (stop_all_threads): Update assertion, plus when
5604 stopping threads, take into account that we might be trying
5605 to stop an all-stop target.
5606 (stop_waiting): Call 'stop_all_threads' if there exists a
5607 non-stop target.
5608
a0714d30
TBA
56092020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5610
5611 * target.h (exists_non_stop_target): New function declaration.
5612 * target.c (exists_non_stop_target): New function.
5613
60e22c1e
HD
56142020-04-01 Hannes Domani <ssbssa@yahoo.de>
5615
5616 PR gdb/24789
5617 * eval.c (is_integral_or_integral_reference): New function.
5618 (evaluate_subexp_standard): Allow integer references in
5619 pointer arithmetic.
5620
e139a727
TBA
56212020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5622
5623 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5624 check for no ptid in the stop reply when the target is non-stop.
5625
e0802d59
TT
56262020-04-01 Tom Tromey <tromey@adacore.com>
5627
5628 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5629 "name" parameter to rvalue reference. Initialize m_name_holder.
5630 <lookup_name_info>: New overloads.
5631 <name>: Return gdb::string_view.
5632 <c_str>: New method.
5633 <make_ignore_params>: Update.
5634 <search_name_hash>: Update.
5635 <language_lookup_name>: Return const char *.
5636 <m_name>: Change type.
5637 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5638 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5639 (lookup_name_info::match_any): Update.
5640 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5641 Update.
5642 * minsyms.c (linkage_name_str): Update.
5643 * language.c (default_symbol_name_matcher): Update.
5644 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5645 Update.
5646 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5647 (ada_lookup_name_info::ada_lookup_name_info): Update.
5648 (literal_symbol_name_matcher): Update.
5649
8c072cb6
TT
56502020-04-01 Tom Tromey <tromey@adacore.com>
5651
5652 * psymtab.c (psymtab_search_name): Remove function.
5653 (psym_lookup_symbol): Create search name and lookup name here.
5654 (lookup_partial_symbol): Remove "name" parameter; add
5655 lookup_name.
5656 (psym_expand_symtabs_for_function): Update.
5657
6f29a534
TT
56582020-03-31 Joel Jones <joelkevinjones@gmail.com>
5659
5660 PR tui/25597:
5661 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5662
af62665e
TT
56632020-03-31 Tom Tromey <tromey@adacore.com>
5664
5665 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5666 memcpy.
5667
d1a89da5
NC
56682020-03-30 Nelson Chu <nelson.chu@sifive.com>
5669
5670 * features/riscv/32bit-csr.xml: Regenerated.
5671 * features/riscv/64bit-csr.xml: Regenerated.
5672
d8af9068
TT
56732020-03-30 Tom Tromey <tromey@adacore.com>
5674
5675 * ada-valprint.c (print_variant_part): Update.
5676 * ada-lang.h (ada_which_variant_applies): Update.
5677 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5678 outer_valaddr parameters; replace with "outer" value parameter.
5679 (to_fixed_variant_branch_type): Update.
5680
227c0bf4
PFC
56812020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5682
5683 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5684 <list>. Remove inclusion of observable.h.
5685 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5686 (struct arch_lwp_info): New struct.
5687 (class ppc_linux_dreg_interface): New class.
5688 (struct ppc_linux_process_info): New struct.
5689 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5690 <low_new_clone, low_forget_process, low_prepare_to_resume>
5691 <copy_thread_dreg_state, mark_thread_stale>
5692 <mark_debug_registers_changed, register_hw_breakpoint>
5693 <clear_hw_breakpoint, register_wp, clear_wp>
5694 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5695 <num_memory_accesses, get_trigger_type>
5696 <create_watchpoint_request, hwdebug_point_cmp>
5697 <init_arch_lwp_info, get_arch_lwp_info>
5698 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5699 methods.
5700 <struct ptid_hash>: New inner struct.
5701 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5702 members.
5703 (saved_dabr_value, hwdebug_info, max_slots_number)
5704 (struct hw_break_tuple, struct thread_points, ppc_threads)
5705 (have_ptrace_hwdebug_interface)
5706 (hwdebug_find_thread_points_by_tid)
5707 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5708 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5709 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5710 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5711 use m_dreg_interface.
5712 (hwdebug_point_cmp): Change to...
5713 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5714 reference arguments instead of pointers.
5715 (ppc_linux_nat_target::ranged_break_num_registers): Use
5716 m_dreg_interface.
5717 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5718 m_dreg_interface. Call register_hw_breakpoint.
5719 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5720 m_dreg_interface. Call clear_hw_breakpoint.
5721 (get_trigger_type): Change to...
5722 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5723 comment.
5724 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5725 use m_dreg_interface. Call register_hw_breakpoint.
5726 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5727 use m_dreg_interface. Call clear_hw_breakpoint.
5728 (can_use_watchpoint_cond_accel): Change to...
5729 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5730 method. Update comment, use m_dreg_interface and
5731 m_process_info.
5732 (calculate_dvc): Change to...
5733 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5734 m_dreg_interface.
5735 (num_memory_accesses): Change to...
5736 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5737 (check_condition): Change to...
5738 (ppc_linux_nat_target::check_condition): ...this method.
5739 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5740 comment, use m_dreg_interface.
5741 (create_watchpoint_request): Change to...
5742 (ppc_linux_nat_target::create_watchpoint_request): ...this
5743 method. Use m_dreg_interface.
5744 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5745 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5746 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5747 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5748 (ppc_linux_nat_target::low_forget_process)
5749 (ppc_linux_nat_target::low_new_fork)
5750 (ppc_linux_nat_target::low_new_clone)
5751 (ppc_linux_nat_target::low_delete_thread)
5752 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5753 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5754 only call mark_thread_stale.
5755 (ppc_linux_thread_exit): Remove.
5756 (ppc_linux_nat_target::stopped_data_address): Change to...
5757 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5758 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5759 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5760 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5761 comment. Call low_stopped_data_address.
5762 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5763 m_dreg_interface.
5764 (ppc_linux_nat_target::masked_watch_num_registers): Use
5765 m_dreg_interface.
5766 (ppc_linux_nat_target::copy_thread_dreg_state)
5767 (ppc_linux_nat_target::mark_thread_stale)
5768 (ppc_linux_nat_target::mark_debug_registers_changed)
5769 (ppc_linux_nat_target::register_hw_breakpoint)
5770 (ppc_linux_nat_target::clear_hw_breakpoint)
5771 (ppc_linux_nat_target::register_wp)
5772 (ppc_linux_nat_target::clear_wp)
5773 (ppc_linux_nat_target::init_arch_lwp_info)
5774 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5775 (_initialize_ppc_linux_nat): Remove observer callback.
5776
4db10d8f
PFC
57772020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5778
5779 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5780 (ppc_linux_nat_target::auxv_parse)
5781 (ppc_linux_nat_target::read_description)
5782 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5783 Move up.
5784
1310c1b0
PFC
57852020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5786
5787 * linux-nat.h (low_new_clone): New method.
5788 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5789
69b037c3
SM
57902020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5791
5792 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5793 (dbx_expand_psymtab): ... this.
5794 (start_psymtab): Update.
5795 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5796 (mdebug_expand_psymtab): ... this.
5797 (parse_partial_symbols): Update.
5798 (new_psymtab): Update.
5799 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5800 (xcoff_expand_psymtab): ... this.
5801 (xcoff_start_psymtab): Update.
5802
48993951
SM
58032020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5804
5805 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5806 <expand_dependencies>: ... this.
5807 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5808 (partial_symtab::expand_dependencies): ... this.
5809 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5810 Update.
5811 (dwarf2_psymtab::expand_psymtab): Update.
5812 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5813 * mdebugread.c (psymtab_to_symtab_1): Update.
5814 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5815
3ad83046
SM
58162020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5817
5818 * psympriv.h (discard_psymtab): Remove.
5819 * dbxread.c (dbx_end_psymtab): Update.
5820 * xcoffread.c (xcoff_end_psymtab): Update.
5821
4d1b9ab6
TT
58222020-03-28 Tom Tromey <tom@tromey.com>
5823
5824 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5825 comment.
5826
f1749218
TT
58272020-03-28 Tom Tromey <tom@tromey.com>
5828
5829 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5830
ebea7626
HD
58312020-03-27 Hannes Domani <ssbssa@yahoo.de>
5832
5833 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5834
a879b4d5
JB
58352020-03-26 John Baldwin <jhb@FreeBSD.org>
5836
5837 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5838
0826b30a
TT
58392020-03-26 Tom Tromey <tom@tromey.com>
5840
5841 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5842 (mark_common_block_symbol_computed, read_tag_string_type)
5843 (attr_to_dynamic_prop, read_subrange_type): Update.
5844 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5845 to be methods on struct attribute.
5846 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5847 (read_call_site_scope, partial_die_info::read)
5848 (partial_die_info::read, lookup_die_type, follow_die_ref):
5849 Update.
5850 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5851 from dwarf2_get_ref_die_offset.
5852 (attribute::constant_value): New method, from
5853 dwarf2_get_attr_constant_value.
5854 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5855 Declare method.
5856 <constant_value>: New method.
5857
2b2558bf
TT
58582020-03-26 Tom Tromey <tom@tromey.com>
5859
5860 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5861 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5862 (dwarf_type_encoding_name): Move to stringify.c.
5863 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5864 * dwarf2/stringify.c: New file.
5865 * dwarf2/stringify.h: New file.
5866
eeb64781
TT
58672020-03-26 Tom Tromey <tom@tromey.com>
5868
5869 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5870 Rewrite.
5871
a39fdb41
TT
58722020-03-26 Tom Tromey <tom@tromey.com>
5873
5874 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5875 methods.
5876 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5877 (lookup_ranges_base): Likewise.
5878 (read_cutu_die_from_dwo, read_full_die_1): Update.
5879
436c571c
TT
58802020-03-26 Tom Tromey <tom@tromey.com>
5881
5882 * dwarf2/read.c (read_import_statement, read_file_scope)
5883 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5884 (read_lexical_block_scope, read_call_site_scope)
5885 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5886 (handle_struct_member_die, process_structure_scope)
5887 (update_enumeration_type_from_children)
5888 (process_enumeration_scope, read_array_type, read_common_block)
5889 (read_namespace, read_module, read_subroutine_type): Update.
5890 (sibling_die): Remove.
5891
052c8bb8
TT
58922020-03-26 Tom Tromey <tom@tromey.com>
5893
5894 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5895 (build_type_psymtabs_reader, read_structure_type)
5896 (read_enumeration_type, read_full_die_1): Update.
5897 (dwarf2_attr_no_follow): Move to die.h.
5898 * dwarf2/die.h (struct die_info) <attr>: New method.
5899
2b24b6e4
TT
59002020-03-26 Tom Tromey <tom@tromey.com>
5901
5902 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5903 <base_address>: Now an optional.
5904 (dwarf2_find_base_address, dwarf2_rnglists_process)
5905 (dwarf2_ranges_process, fill_in_loclist_baton)
5906 (dwarf2_symbol_mark_computed): Update.
5907
c2d50fd0
TT
59082020-03-26 Tom Tromey <tom@tromey.com>
5909
5910 * dwarf2/read.c (struct die_info): Move to die.h.
5911 * dwarf2/die.h: New file.
5912
0df7ad3a
TT
59132020-03-26 Tom Tromey <tom@tromey.com>
5914
5915 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5916 * dwarf2/read.c
5917 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5918 Move to line-header.c.
5919 (read_checked_initial_length_and_offset, read_formatted_entries):
5920 Likewise.
5921 (dwarf_decode_line_header): Split into two.
5922 * dwarf2/line-header.c
5923 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5924 Move from read.c.
5925 (read_checked_initial_length_and_offset, read_formatted_entries):
5926 Likewise.
5927 (dwarf_decode_line_header): New function, split from read.c.
5928
86c0bb4c
TT
59292020-03-26 Tom Tromey <tom@tromey.com>
5930
5931 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5932 Declare method.
5933 * dwarf2/read.c (read_attribute_value): Update.
5934 (dwarf2_per_objfile::read_line_string): Rename from
5935 read_indirect_line_string.
5936 (read_formatted_entries): Update.
5937
2ef46c2f
TT
59382020-03-26 Tom Tromey <tom@tromey.com>
5939
5940 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5941 variable.
5942
4f9c1eda
TT
59432020-03-26 Tom Tromey <tom@tromey.com>
5944
5945 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5946 const.
5947 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5948 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5949 parameter const.
5950
5a0e026f
TT
59512020-03-26 Tom Tromey <tom@tromey.com>
5952
5953 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5954 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5955 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5956 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5957
8844c11b
TT
59582020-03-26 Tom Tromey <tom@tromey.com>
5959
5960 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5961 file_names_size, file_full_name, file_file_name>: Use const.
5962 <file_name_at, file_names>: Add const overload.
5963 * dwarf2/line-header.c (line_header::file_file_name)
5964 (line_header::file_full_name): Update.
5965
c90ec28a
TT
59662020-03-26 Tom Tromey <tom@tromey.com>
5967
5968 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5969 (macro_start_file, consume_improper_spaces)
5970 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5971 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5972 (dwarf_decode_macros): Move to macro.c.
5973 * dwarf2/macro.c: New file.
5974 * dwarf2/macro.h: New file.
5975 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5976
4f44ae6c
TT
59772020-03-26 Tom Tromey <tom@tromey.com>
5978
5979 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5980 method.
5981 * dwarf2/section.c: New method. From
5982 read_indirect_string_at_offset_from.
5983 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5984 (read_indirect_string_at_offset_from): Move to section.c.
5985 (read_indirect_string_at_offset): Rewrite.
5986 (read_indirect_line_string_at_offset): Remove.
5987 (read_indirect_string, read_indirect_line_string)
5988 (dwarf_decode_macro_bytes): Update.
5989
a0194fa8
TT
59902020-03-26 Tom Tromey <tom@tromey.com>
5991
5992 * dwarf2/section.h (struct dwarf2_section_info)
5993 <overload_complaint>: Declare.
5994 (dwarf2_section_buffer_overflow_complaint): Don't declare.
5995 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
5996 Rename from dwarf2_section_buffer_overflow_complaint.
5997 * dwarf2/read.c (skip_one_die, partial_die_info::read)
5998 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
5999
3d27bbdb
TT
60002020-03-26 Tom Tromey <tom@tromey.com>
6001
6002 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6003 Declare.
6004 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6005 Move from read.c.
6006 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6007 to section.c.
6008
9eac9650
TT
60092020-03-26 Tom Tromey <tom@tromey.com>
6010
6011 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6012
bf80d710
TT
60132020-03-26 Tom Tromey <tom@tromey.com>
6014
6015 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6016 "builder".
6017 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6018 parameter.
6019 (dwarf_decode_macros): Update.
6020
0314b390
TT
60212020-03-26 Tom Tromey <tom@tromey.com>
6022
6023 * dwarf2/read.c (read_attribute_value): Update.
6024 (read_indirect_string_from_dwz): Move to dwz.c; change into
6025 method.
6026 (dwarf_decode_macro_bytes): Update.
6027 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6028 * dwarf2/dwz.c: New file.
6029 * Makefile.in (COMMON_SFILES): Add dwz.c.
6030
9fda78b6
TT
60312020-03-26 Tom Tromey <tom@tromey.com>
6032
6033 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6034 * dwarf2/read.c: Add include.
6035 * dwarf2/index-write.c: Add include.
6036 * dwarf2/index-cache.c: Add include.
6037 * dwarf2/dwz.h: New file.
6038
33aa3c10
TT
60392020-03-25 Tom Tromey <tom@tromey.com>
6040
6041 * compile/compile-object-load.c (get_out_value_type): Mention
6042 correct symbol name in error message.
6043
d503b685
HD
60442020-03-25 Hannes Domani <ssbssa@yahoo.de>
6045
6046 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6047
7b1eff95
TV
60482020-03-25 Tom de Vries <tdevries@suse.de>
6049
6050 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6051 * symmisc.c (dump_symtab_1): Print user and includes fields.
6052 (maintenance_info_symtabs): Same.
6053
dd895392
AB
60542020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6055
6056 PR gdb/25534
6057 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6058 (riscv_regcache_cooked_write): New function.
6059 (riscv_push_dummy_call): Use new function.
6060 (riscv_return_value): Likewise.
6061
5ab2fbf1
SM
60622020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6063
6064 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6065 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6066 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6067 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6068 * infrun.c (follow_fork): Likewise.
6069 (follow_fork_inferior): Likewise.
6070 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6071 * linux-nat.h (class linux_nat_target): Likewise.
6072 * remote.c (class remote_target) <follow_fork>: Likewise.
6073 (remote_target::follow_fork): Likewise.
6074 * target-delegates.c: Re-generate.
6075 * target.c (default_follow_fork): Likewise.
6076 (target_follow_fork): Likewise.
6077 * target.h (struct target_ops) <follow_fork>: Likewise.
6078 (target_follow_fork): Likewise.
6079
a64fafb5
TV
60802020-03-24 Tom de Vries <tdevries@suse.de>
6081
6082 * psymtab.c (maintenance_info_psymtabs): Print user field.
6083
fe26d3a3
TT
60842020-03-20 Tom Tromey <tromey@adacore.com>
6085
6086 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6087 const.
6088 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6089 const.
6090
c884cc46
SM
60912020-03-20 Simon Marchi <simon.marchi@efficios.com>
6092
6093 * ptrace.m4: Don't check for ptrace declaration.
6094 * config.in: Re-generate.
6095 * configure: Re-generate.
6096 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6097 not defined.
6098
1ff700c2
KR
60992020-03-20 Kamil Rytarowski <n54@gmx.com>
6100
6101 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6102 `PTRACE_TYPE_RET'.
6103 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6104 * sparc-nat.c (gdb_ptrace): Likewise.
6105 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6106
f7d4f0b1
TT
61072020-03-20 Tom Tromey <tromey@adacore.com>
6108
6109 * c-exp.y (lex_one_token): Fix assert.
6110
f67210ff
TT
61112020-03-20 Tom Tromey <tromey@adacore.com>
6112
6113 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6114 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6115 strncpy call.
6116
1773be9e
TT
61172020-03-20 Tom Tromey <tromey@adacore.com>
6118
6119 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6120
70304be9
TT
61212020-03-20 Tom Tromey <tromey@adacore.com>
6122
6123 * ada-valprint.c (print_variant_part): Remove parameters; switch
6124 to value-based API.
6125 (print_field_values): Likewise.
6126 (ada_val_print_struct_union): Likewise.
6127 (ada_value_print_1): Update.
6128
9faa006d
KR
61292020-03-20 Kamil Rytarowski <n54@gmx.com>
6130
6131 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6132 nbsd_nat_target instead of inf_ptrace_target.
6133 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6134 nbsd_nat_target.
6135
4a90f062
KR
61362020-03-20 Kamil Rytarowski <n54@gmx.com>
6137
6138 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6139 it to the ptrace call.
6140 * (store_registers): Likewise.
6141
61422020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6143
6144 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6145 it to the ptrace call.
6146 * (store_registers): Likewise.
6147
2d07da27
LM
61482020-03-19 Luis Machado <luis.machado@linaro.org>
6149
6150 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6151 valid, fetch vg value from ptrace.
6152
f09db380
KR
61532020-03-19 Kamil Rytarowski <n54@gmx.com>
6154 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6155 * inf-ptrace.c: Likewise.
6156 * (gdb_ptrace): Add.
6157 * (inf_ptrace_target::resume): Update.
6158 * (inf_ptrace_target::xfer_partial): Likewise.
6159 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6160 * (inf_ptrace_peek_poke): Update.
6161
fcc7376e
KR
61622020-03-19 Kamil Rytarowski <n54@gmx.com>
6163
6164 * x86-bsd-nat.c (gdb_ptrace): New.
6165 * (x86bsd_dr_set): Add new argument `ptid'.
6166 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6167 x86bsd_dr_set_addr): Update.
6168
cada5fc9
AB
61692020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6170
6171 * remote.c (remote_target::process_stop_reply): Handle events for
6172 all threads differently.
6173
19a2740f
AB
61742020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6175
6176 * completer.c (completion_tracker::remove_completion): Define new
6177 function.
6178 * completer.h (completion_tracker::remove_completion): Declare new
6179 function.
6180 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6181 when adding a C++ function symbol.
6182
724fd9ba
AB
61832020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6184
6185 * completer.c (completion_tracker::completion_hash_entry): Define
6186 new class.
6187 (advance_to_filename_complete_word_point): Call
6188 recompute_lowest_common_denominator.
6189 (completion_tracker::completion_tracker): Call discard_completions
6190 to setup the hash table.
6191 (completion_tracker::discard_completions): Allow for being called
6192 from the constructor, pass new equal function, and element deleter
6193 when constructing the hash table. Initialise new class member
6194 variables.
6195 (completion_tracker::maybe_add_completion): Remove use of
6196 m_entries_vec, and store more information into m_entries_hash.
6197 (completion_tracker::recompute_lcd_visitor): New function, most
6198 content taken from...
6199 (completion_tracker::recompute_lowest_common_denominator):
6200 ...here, this now just visits each item in the hash calling the
6201 above visitor.
6202 (completion_tracker::build_completion_result): Remove use of
6203 m_entries_vec, call recompute_lowest_common_denominator.
6204 * completer.h (completion_tracker::have_completions): Remove use
6205 of m_entries_vec.
6206 (completion_tracker::completion_hash_entry): Declare new class.
6207 (completion_tracker::recompute_lowest_common_denominator): Change
6208 function signature.
6209 (completion_tracker::recompute_lcd_visitor): Declare new function.
6210 (completion_tracker::m_entries_vec): Delete.
6211 (completion_tracker::m_entries_hash): Initialize to NULL.
6212 (completion_tracker::m_lowest_common_denominator_valid): New
6213 member variable.
6214 (completion_tracker::m_lowest_common_denominator_max_length): New
6215 member variable.
6216
5a82b8a1
KR
62172020-03-17 Kamil Rytarowski <n54@gmx.com>
6218
6219 * regformats/regdef.h: Put reg in gdb namespace.
6220
fb516a69
KR
62212020-03-17 Kamil Rytarowski <n54@gmx.com>
6222
6223 * i386-bsd-nat.c (gdb_ptrace): New.
6224 * (i386bsd_fetch_inferior_registers,
6225 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6226 * (i386bsd_fetch_inferior_registers,
6227 i386bsd_store_inferior_registers) Use gdb_ptrace.
6228
1c0aa1fb
KR
62292020-03-17 Kamil Rytarowski <n54@gmx.com>
6230
6231 * amd64-bsd-nat.c (gdb_ptrace): New.
6232 * (amd64bsd_fetch_inferior_registers,
6233 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6234 * (amd64bsd_fetch_inferior_registers,
6235 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6236
5ccd2fb7
KR
62372020-03-17 Kamil Rytarowski <n54@gmx.com>
6238
6239 * user-regs.c (user_reg::read): Rename to...
6240 (user_reg::xread): ...this.
6241 * (append_user_reg): Rename argument `read' to `xread'.
6242 * (user_reg_add_builtin): Likewise.
6243 * (user_reg_add): Likewise.
6244 * (value_of_user_reg): Likewise.
6245
2108a63a
KR
62462020-03-17 Kamil Rytarowski <n54@gmx.com>
6247
6248 * sparc-nat.c (gdb_ptrace): New.
6249 * sparc-nat.c (sparc_fetch_inferior_registers)
6250 (sparc_store_inferior_registers) Remove obsolete comment.
6251 * sparc-nat.c (sparc_fetch_inferior_registers)
6252 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6253 * sparc-nat.c (sparc_fetch_inferior_registers)
6254 (sparc_store_inferior_registers) Use gdb_ptrace.
6255
a225c9a8
KR
62562020-03-17 Kamil Rytarowski <n54@gmx.com>
6257
6258 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6259 it to the ptrace call.
6260 * sh-nbsd-nat.c (store_registers): Likewise.
6261
98097623
KR
62622020-03-17 Kamil Rytarowski <n54@gmx.com>
6263
6264 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6265 nbsd_nat_target instead of inf_ptrace_target.
6266 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6267 nbsd_nat_target.
6268
9e38d619
KR
62692020-03-17 Kamil Rytarowski <n54@gmx.com>
6270
6271 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6272
a2ecbe9f
KR
62732020-03-17 Kamil Rytarowski <n54@gmx.com>
6274
6275 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6276 <sys/sysctl.h>.
6277 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6278
58990295
TV
62792020-03-17 Tom de Vries <tdevries@suse.de>
6280
6281 PR gdb/23710
6282 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6283 fields.
6284 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6285 fields.
6286 (process_imported_unit_die): Skip import of c++ CUs.
6287
771dd3a8
TT
62882020-03-16 Tom Tromey <tom@tromey.com>
6289
6290 * p-valprint.c (pascal_object_print_value): Initialize
6291 base_value.
6292
817a7585
AK
62932020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6294 Shahab Vahedi <shahab@synopsys.com>
6295
6296 * Makefile.in: Add arch/arc.o
6297 * configure.tgt: Likewise.
6298 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6299 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6300 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6301 * arc-tdep.h (arc_read_description): Add proto type.
6302 * arch/arc.c: New file.
6303 * arch/arc.h: Likewise.
6304 * features/Makefile: Replace old target descriptions with new.
6305 * features/arc-arcompact.c: Remove.
6306 * features/arc-arcompact.xml: Likewise.
6307 * features/arc-v2.c: Likewise
6308 * features/arc-v2.xml: Likewise
6309 * features/arc/aux-arcompact.xml: New file.
6310 * features/arc/aux-v2.xml: Likewise.
6311 * features/arc/core-arcompact.xml: Likewise.
6312 * features/arc/core-v2.xml: Likewise.
6313 * features/arc/aux-arcompact.c: Generate.
6314 * features/arc/aux-v2.c: Likewise.
6315 * features/arc/core-arcompact.c: Likewise.
6316 * features/arc/core-v2.c: Likewise.
6317 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6318
67430cd0
TT
63192020-03-16 Tom Tromey <tromey@adacore.com>
6320
6321 PR gdb/25663:
6322 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6323 putting value into bcache.
6324
30efb6c7
SM
63252020-03-16 Simon Marchi <simon.marchi@efficios.com>
6326
6327 PR gdb/21500
6328 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6329 to...
6330 (amd64_windows_init_abi_common): ... this. Don't set size of
6331 long type.
6332 (amd64_windows_init_abi): New function.
6333 (amd64_cygwin_init_abi): New function.
6334 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6335 the Cygwin OS ABI.
6336 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6337 comment.
6338
8db52437
SM
63392020-03-16 Simon Marchi <simon.marchi@efficios.com>
6340
6341 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6342 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6343 (pe_import_directory_entry): New struct type.
6344 (is_linked_with_cygwin_dll): New function.
6345 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6346 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6347 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6348
5982a56a
SM
63492020-03-16 Simon Marchi <simon.marchi@efficios.com>
6350
6351 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6352 i386_cygwin_core_osabi_sniffer.
6353
7a1998df
SM
63542020-03-16 Simon Marchi <simon.marchi@efficios.com>
6355
6356 * i386-cygwin-tdep.c: Rename to...
6357 * i386-windows-tdep.c: ... this.
6358 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6359 i386-windows-tdep.c.
6360 * configure.tgt: Likewise.
6361
053205cc
SM
63622020-03-16 Simon Marchi <simon.marchi@efficios.com>
6363
6364 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6365 * osabi.c (gdb_osabi_names): Add "Windows".
6366 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6367 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6368 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6369 i386_cygwin_osabi_sniffer.
6370 (_initialize_i386_cygwin_tdep): Register OS ABI
6371 GDB_OSABI_WINDOWS for i386.
6372 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6373 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6374 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6375 for x86-64.
6376 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6377 when the target matches '*-*-mingw*'.
6378
fe4b2ee6
SM
63792020-03-16 Simon Marchi <simon.marchi@efficios.com>
6380
6381 * defs.h (enum gdb_osabi): Move to...
6382 * osabi.h (enum gdb_osabi): ... here.
6383 * gdbarch.sh: Include osabi.h in gdbarch.h.
6384 * gdbarch.h: Re-generate.
6385
cb9b645d
SM
63862020-03-16 Simon Marchi <simon.marchi@efficios.com>
6387
6388 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6389 function.
6390 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6391
3293bbaf
TT
63922020-03-14 Tom Tromey <tom@tromey.com>
6393
6394 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6395 for C++.
6396 (c_type_print_modifier): Likewise. Add "language" parameter.
6397 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6398 (c_type_print_base_1): Update.
6399 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6400 constants.
6401 * type-stack.c (type_stack::insert): Handle tp_atomic and
6402 tp_restrict.
6403 (type_stack::follow_type_instance_flags): Likewise.
6404 (type_stack::follow_types): Likewise. Merge type-following code.
6405 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6406 (space_identifier, cv_with_space_id)
6407 (const_or_volatile_or_space_identifier_noopt)
6408 (const_or_volatile_or_space_identifier): Remove.
6409 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6410 rules.
6411 (ptr_operator, typebase): Update.
6412 (enum token_flag) <FLAG_C>: New constant.
6413 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6414 "_Atomic".
6415 (lex_one_token): Handle FLAG_C.
6416
154151a6
KR
64172020-03-14 Kamil Rytarowski <n54@gmx.com>
6418
6419 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6420 it to the ptrace call.
6421 * m68k-bsd-nat.c (store_registers): Likewise.
6422
bc107784
KR
64232020-03-14 Kamil Rytarowski <n54@gmx.com>
6424
6425 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6426 gdb_byte *.
6427 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6428 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6429 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6430
01a80117
KR
64312020-03-14 Kamil Rytarowski <n54@gmx.com>
6432
6433 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6434 nbsd_nat_target instead of inf_ptrace_target.
6435 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6436 nbsd_nat_target.
6437
f90280ca
KR
64382020-03-14 Kamil Rytarowski <n54@gmx.com>
6439
6440 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6441 register_t.
6442
6def66f1
KR
64432020-03-14 Kamil Rytarowski <n54@gmx.com>
6444
6445 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6446 it to the ptrace call.
6447 * alpha-bsd-nat.c (store_registers): Likewise.
6448
66eaca97
KR
64492020-03-14 Kamil Rytarowski <n54@gmx.com>
6450
6451 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6452 includes.
6453 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6454 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6455 fill_fpregset): Likewise.
6456
4fed520b
KR
64572020-03-14 Kamil Rytarowski <n54@gmx.com>
6458
6459 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6460 nbsd_nat_target instead of inf_ptrace_target.
6461 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6462 nbsd_nat_target.
6463
2190cf06
KR
64642020-03-14 Kamil Rytarowski <n54@gmx.com>
6465
6466 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6467 register_t.
6468
75c56d3d
KR
64692020-03-14 Kamil Rytarowski <n54@gmx.com>
6470
6471 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6472 it to the ptrace call.
6473 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6474 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6475 * arm-nbsd-nat.c (store_register): Likewise.
6476 * arm-nbsd-nat.c (store_regs): Likewise.
6477 * arm-nbsd-nat.c (store_fp_register): Likewise.
6478 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6479
6018d381
KR
64802020-03-14 Kamil Rytarowski <n54@gmx.com>
6481
6482 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6483 nbsd_nat_target instead of inf_ptrace_target.
6484 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6485 nbsd_nat_target.
6486
013f99f0
KR
64872020-03-14 Kamil Rytarowski <n54@gmx.com>
6488
6489 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6490 it to the ptrace call.
6491 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6492
12753073
KR
64932020-03-14 Kamil Rytarowski <n54@gmx.com>
6494
6227b330
KR
6495 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6496 it to the ptrace call.
6497 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6498
64992020-03-14 Kamil Rytarowski <n54@gmx.com>
6500
6501 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6502 gdb_byte *.
12753073
KR
6503 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6504
d5be5fa4
KR
65052020-03-14 Kamil Rytarowski <n54@gmx.com>
6506
6507 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6508 instead of inf_ptrace_target.
6509 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6510 nbsd_nat_target.
6511
8110f842
KR
65122020-03-14 Kamil Rytarowski <n54@gmx.com>
6513
6514 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6515 register_t.
6516
52feded7
KR
65172020-03-14 Kamil Rytarowski <n54@gmx.com>
6518
6519 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6520 register_t.
6521
25567eee
KR
65222020-03-14 Kamil Rytarowski <n54@gmx.com>
6523
6524 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6525 register_t.
6526
426a9c18
TT
65272020-03-13 Tom Tromey <tom@tromey.com>
6528
6529 * value.h (val_print): Don't declare.
6530 * valprint.h (val_print_array_elements)
6531 (val_print_scalar_formatted, generic_val_print): Don't declare.
6532 * valprint.c (generic_val_print_array): Take a struct value.
6533 (generic_val_print_ptr, generic_val_print_memberptr)
6534 (generic_val_print_bool, generic_val_print_int)
6535 (generic_val_print_char, generic_val_print_complex)
6536 (generic_val_print): Remove.
6537 (generic_value_print): Update.
6538 (do_val_print): Remove unused parameters. Don't call
6539 la_val_print.
6540 (val_print): Remove.
6541 (common_val_print): Update. Don't call value_check_printable.
6542 (val_print_scalar_formatted, val_print_array_elements): Remove.
6543 * rust-lang.c (rust_val_print): Remove.
6544 (rust_language_defn): Update.
6545 * p-valprint.c (pascal_val_print): Remove.
6546 (pascal_value_print_inner): Update.
6547 (pascal_object_print_val_fields, pascal_object_print_val):
6548 Remove.
6549 (pascal_object_print_static_field): Update.
6550 * p-lang.h (pascal_val_print): Don't declare.
6551 * p-lang.c (pascal_language_defn): Update.
6552 * opencl-lang.c (opencl_language_defn): Update.
6553 * objc-lang.c (objc_language_defn): Update.
6554 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6555 * m2-lang.h (m2_val_print): Don't declare.
6556 * m2-lang.c (m2_language_defn): Update.
6557 * language.h (struct language_defn) <la_val_print>: Remove.
6558 * language.c (unk_lang_value_print_inner): Rename. Change
6559 argument types.
6560 (unknown_language_defn, auto_language_defn): Update.
6561 * go-valprint.c (go_val_print): Remove.
6562 * go-lang.h (go_val_print): Don't declare.
6563 * go-lang.c (go_language_defn): Update.
6564 * f-valprint.c (f_val_print): Remove.
6565 * f-lang.h (f_value_print): Don't declare.
6566 * f-lang.c (f_language_defn): Update.
6567 * d-valprint.c (d_val_print): Remove.
6568 * d-lang.h (d_value_print): Don't declare.
6569 * d-lang.c (d_language_defn): Update.
6570 * cp-valprint.c (cp_print_value_fields)
6571 (cp_print_value_fields_rtti, cp_print_value): Remove.
6572 (cp_print_static_field): Update.
6573 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6574 (c_val_print_struct, c_val_print_union, c_val_print_int)
6575 (c_val_print_memberptr, c_val_print): Remove.
6576 * c-lang.h (c_val_print_array, cp_print_value_fields)
6577 (cp_print_value_fields_rtti): Don't declare.
6578 * c-lang.c (c_language_defn, cplus_language_defn)
6579 (asm_language_defn, minimal_language_defn): Update.
6580 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6581 (ada_val_print_enum): Take a struct value.
6582 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6583 (ada_val_print): Remove.
6584 (ada_value_print_1): Update.
6585 (printable_val_type): Remove.
6586 * ada-lang.h (ada_val_print): Don't declare.
6587 * ada-lang.c (ada_language_defn): Update.
6588
42331a1e
TT
65892020-03-13 Tom Tromey <tom@tromey.com>
6590
6591 * valprint.c (do_val_print): Update.
6592 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6593 a struct value.
6594 (value_to_value_object_no_release): Declare.
6595 * python/py-value.c (value_to_value_object_no_release): New
6596 function.
6597 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6598 struct value.
6599 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6600 function.
6601 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6602 a struct value.
6603 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6604 Declare.
6605 (gdbscm_apply_val_pretty_printer): Take a struct value.
6606 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6607 value.
6608 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6609 value.
6610 * extension-priv.h (struct extension_language_ops)
6611 <apply_val_pretty_printer>: Take a struct value.
6612 * cp-valprint.c (cp_print_value): Create a struct value.
6613 (cp_print_value): Update.
6614
3a916a97
TT
66152020-03-13 Tom Tromey <tom@tromey.com>
6616
6617 * ada-valprint.c (print_field_values): Call common_val_print.
6618
b59eac37
TT
66192020-03-13 Tom Tromey <tom@tromey.com>
6620
6621 * ada-valprint.c (val_print_packed_array_elements): Remove
6622 bitoffset and val parameters. Call common_val_print.
6623 (ada_val_print_string): Remove offset, address, and original_value
6624 parameters.
6625 (ada_val_print_array): Update.
6626 (ada_value_print_array): New function.
6627 (ada_value_print_1): Call it.
6628
03371129
TT
66292020-03-13 Tom Tromey <tom@tromey.com>
6630
6631 * ada-valprint.c (ada_value_print): Use common_val_print.
6632
2e088f8b
TT
66332020-03-13 Tom Tromey <tom@tromey.com>
6634
6635 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6636
39ef85a8
TT
66372020-03-13 Tom Tromey <tom@tromey.com>
6638
6639 * ada-valprint.c (ada_value_print_num): New function.
6640 (ada_value_print_1): Use it.
6641
b9fa6e07
TT
66422020-03-13 Tom Tromey <tom@tromey.com>
6643
6644 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6645
416595d6
TT
66462020-03-13 Tom Tromey <tom@tromey.com>
6647
6648 * ada-valprint.c (ada_value_print_ptr): New function.
6649 (ada_value_print_1): Use it.
6650
5b5e15ec
TT
66512020-03-13 Tom Tromey <tom@tromey.com>
6652
6653 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6654 call common_val_print.
6655 (ada_val_print_1): Update.
6656 (ada_value_print_1): New function.
6657 (ada_value_print_inner): Rewrite.
6658
fbf54e75
TT
66592020-03-13 Tom Tromey <tom@tromey.com>
6660
6661 * cp-valprint.c (cp_print_value_fields): Update.
6662 (cp_print_value): New function.
6663
64b653ca
TT
66642020-03-13 Tom Tromey <tom@tromey.com>
6665
6666 * m2-valprint.c (m2_value_print_inner): Use
6667 cp_print_value_fields.
6668 * cp-valprint.c (cp_print_value_fields): New function.
6669 * c-valprint.c (c_value_print_struct): New function.
6670 (c_value_print_inner): Use c_value_print_struct.
6671 * c-lang.h (cp_print_value_fields): Declare.
6672
6999f067
TT
66732020-03-13 Tom Tromey <tom@tromey.com>
6674
6675 * c-valprint.c (c_value_print_array): New function.
6676 (c_value_print_inner): Use it.
6677
ce80b8bd
TT
66782020-03-13 Tom Tromey <tom@tromey.com>
6679
6680 * c-valprint.c (c_value_print_memberptr): New function.
6681 (c_value_print_inner): Use it.
6682
2faac269
TT
66832020-03-13 Tom Tromey <tom@tromey.com>
6684
6685 * c-valprint.c (c_value_print_int): New function.
6686 (c_value_print_inner): Use it.
6687
da3e2c29
TT
66882020-03-13 Tom Tromey <tom@tromey.com>
6689
6690 * c-valprint.c (c_value_print_ptr): New function.
6691 (c_value_print_inner): Use it.
6692
50836231
TT
66932020-03-13 Tom Tromey <tom@tromey.com>
6694
6695 * c-valprint.c (c_value_print_inner): Rewrite.
6696
4f412b6e
TT
66972020-03-13 Tom Tromey <tom@tromey.com>
6698
6699 * valprint.c (generic_value_print_complex): New function.
6700 (generic_value_print): Use it.
6701
f5354008
TT
67022020-03-13 Tom Tromey <tom@tromey.com>
6703
6704 * valprint.c (generic_val_print_float): Don't call
6705 val_print_scalar_formatted.
6706 (generic_val_print, generic_value_print): Update.
6707
3eec3b05
TT
67082020-03-13 Tom Tromey <tom@tromey.com>
6709
6710 * valprint.c (generic_value_print_char): New function
6711 (generic_value_print): Use it.
6712
fdddfccb
TT
67132020-03-13 Tom Tromey <tom@tromey.com>
6714
6715 * valprint.c (generic_value_print_int): New function.
6716 (generic_value_print): Use it.
6717
6dde7521
TT
67182020-03-13 Tom Tromey <tom@tromey.com>
6719
6720 * valprint.c (generic_value_print_bool): New function.
6721 (generic_value_print): Use it.
6722
4112d2e6
TT
67232020-03-13 Tom Tromey <tom@tromey.com>
6724
6725 * valprint.c (generic_val_print_func): Simplify.
6726 (generic_val_print, generic_value_print): Update.
6727
65786af6
TT
67282020-03-13 Tom Tromey <tom@tromey.com>
6729
6730 * valprint.c (generic_val_print_flags): Remove.
6731 (generic_val_print, generic_value_print): Update.
6732 (val_print_type_code_flags): Add original_value parameter.
6733
40f3ce18
TT
67342020-03-13 Tom Tromey <tom@tromey.com>
6735
6736 * valprint.c (generic_val_print): Update.
6737 (generic_value_print): Update.
6738 * valprint.c (generic_val_print_enum): Don't call
6739 val_print_scalar_formatted.
6740
2a5b130b
TT
67412020-03-13 Tom Tromey <tom@tromey.com>
6742
6743 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6744 * valprint.c (generic_value_print_ptr): New function.
6745
abc66ce9
TT
67462020-03-13 Tom Tromey <tom@tromey.com>
6747
6748 * valprint.c (generic_value_print): Rewrite.
6749
07a32858
TT
67502020-03-13 Tom Tromey <tom@tromey.com>
6751
6752 * p-valprint.c (pascal_object_print_value_fields)
6753 (pascal_object_print_value): New functions.
6754
64d64d3a
TT
67552020-03-13 Tom Tromey <tom@tromey.com>
6756
6757 * p-valprint.c (pascal_value_print_inner): Rewrite.
6758
6a95a1f5
TT
67592020-03-13 Tom Tromey <tom@tromey.com>
6760
6761 * f-valprint.c (f_value_print_innner): Rewrite.
6762
59fcdac6
TT
67632020-03-13 Tom Tromey <tom@tromey.com>
6764
6765 * m2-valprint.c (m2_print_unbounded_array): New overload.
6766 (m2_print_unbounded_array): Update.
6767 (m2_print_array_contents): Take a struct value.
6768 (m2_value_print_inner): Rewrite.
6769
d133c3e1
TT
67702020-03-13 Tom Tromey <tom@tromey.com>
6771
6772 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6773 (d_value_print_inner): New function.
6774 * d-lang.h (d_value_print_inner): Declare.
6775 * d-lang.c (d_language_defn): Use d_value_print_inner.
6776
23b0f06b
TT
67772020-03-13 Tom Tromey <tom@tromey.com>
6778
6779 * go-valprint.c (go_value_print_inner): New function.
6780 * go-lang.h (go_value_print_inner): Declare.
6781 * go-lang.c (go_language_defn): Use go_value_print_inner.
6782
5f56f7cb
TT
67832020-03-13 Tom Tromey <tom@tromey.com>
6784
6785 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6786 API.
6787 (rust_val_print): Rewrite.
6788 (rust_value_print_inner): New function, from rust_val_print.
6789 (rust_language_defn): Use rust_value_print_inner.
6790
26792ee0
TT
67912020-03-13 Tom Tromey <tom@tromey.com>
6792
6793 * ada-valprint.c (ada_value_print_inner): New function.
6794 * ada-lang.h (ada_value_print_inner): Declare.
6795 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6796
24051bbe
TT
67972020-03-13 Tom Tromey <tom@tromey.com>
6798
6799 * f-valprint.c (f_value_print_innner): New function.
6800 * f-lang.h (f_value_print_innner): Declare.
6801 * f-lang.c (f_language_defn): Use f_value_print_innner.
6802
c0941be6
TT
68032020-03-13 Tom Tromey <tom@tromey.com>
6804
6805 * p-valprint.c (pascal_value_print_inner): New function.
6806 * p-lang.h (pascal_value_print_inner): Declare.
6807 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6808
62c4663d
TT
68092020-03-13 Tom Tromey <tom@tromey.com>
6810
6811 * m2-valprint.c (m2_value_print_inner): New function.
6812 * m2-lang.h (m2_value_print_inner): Declare.
6813 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6814
62182190
TT
68152020-03-13 Tom Tromey <tom@tromey.com>
6816
6817 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6818 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6819 * c-valprint.c (c_value_print_inner): New function.
6820 * c-lang.h (c_value_print_inner): Declare.
6821 * c-lang.c (c_language_defn, cplus_language_defn)
6822 (asm_language_defn, minimal_language_defn): Use
6823 c_value_print_inner.
6824
1e592a8a
TT
68252020-03-13 Tom Tromey <tom@tromey.com>
6826
6827 * p-valprint.c (pascal_object_print_value_fields): Now static.
6828 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6829
7fe471e9
TT
68302020-03-13 Tom Tromey <tom@tromey.com>
6831
6832 * c-valprint.c (c_val_print_array): Simplify.
6833
d121c6ce
TT
68342020-03-13 Tom Tromey <tom@tromey.com>
6835
6836 * valprint.c (value_print_array_elements): New function.
6837 * valprint.h (value_print_array_elements): Declare.
6838
4dba70ee
TT
68392020-03-13 Tom Tromey <tom@tromey.com>
6840
6841 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6842 * mips-tdep.c (mips_print_register): Use
6843 value_print_scalar_formatted.
6844
4f9ae810
TT
68452020-03-13 Tom Tromey <tom@tromey.com>
6846
6847 * valprint.h (value_print_scalar_formatted): Declare.
6848 * valprint.c (value_print_scalar_formatted): New function.
6849
156bfec9
TT
68502020-03-13 Tom Tromey <tom@tromey.com>
6851
6852 * valprint.h (generic_value_print): Declare.
6853 * valprint.c (generic_value_print): New function.
6854
2b4e573d
TT
68552020-03-13 Tom Tromey <tom@tromey.com>
6856
6857 * valprint.c (do_val_print): Call la_value_print_inner, if
6858 available.
6859 * rust-lang.c (rust_language_defn): Update.
6860 * p-lang.c (pascal_language_defn): Update.
6861 * opencl-lang.c (opencl_language_defn): Update.
6862 * objc-lang.c (objc_language_defn): Update.
6863 * m2-lang.c (m2_language_defn): Update.
6864 * language.h (struct language_defn) <la_value_print_inner>: New
6865 member.
6866 * language.c (unknown_language_defn, auto_language_defn): Update.
6867 * go-lang.c (go_language_defn): Update.
6868 * f-lang.c (f_language_defn): Update.
6869 * d-lang.c (d_language_defn): Update.
6870 * c-lang.c (c_language_defn, cplus_language_defn)
6871 (asm_language_defn, minimal_language_defn): Update.
6872 * ada-lang.c (ada_language_defn): Update.
6873
a1f6a07c
TT
68742020-03-13 Tom Tromey <tom@tromey.com>
6875
6876 * c-valprint.c (c_value_print): Use common_val_print.
6877
410cf315
TT
68782020-03-13 Tom Tromey <tom@tromey.com>
6879
6880 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6881
72a45c93
TT
68822020-03-13 Tom Tromey <tom@tromey.com>
6883
6884 * f-valprint.c (f77_print_array_1, f_val_print): Use
6885 common_val_print.
6886
040f66bd
TT
68872020-03-13 Tom Tromey <tom@tromey.com>
6888
6889 * riscv-tdep.c (riscv_print_one_register_info): Use
6890 common_val_print.
6891
a6e05a6c
TT
68922020-03-13 Tom Tromey <tom@tromey.com>
6893
6894 * mi/mi-main.c (output_register): Use common_val_print.
6895
3444c526
TT
68962020-03-13 Tom Tromey <tom@tromey.com>
6897
6898 * infcmd.c (default_print_one_register_info): Use
6899 common_val_print.
6900
c2a44efe
TT
69012020-03-13 Tom Tromey <tom@tromey.com>
6902
6903 * valprint.h (common_val_print_checked): Declare.
6904 * valprint.c (common_val_print_checked): New function.
6905 * stack.c (print_frame_arg): Use common_val_print_checked.
6906
b0c26e99
TT
69072020-03-13 Tom Tromey <tom@tromey.com>
6908
6909 * valprint.c (do_val_print): New function, from val_print.
6910 (val_print): Use do_val_print.
6911 (common_val_print): Use do_val_print.
6912
ce3acbe9
TT
69132020-03-13 Tom Tromey <tom@tromey.com>
6914
6915 * valprint.c (value_print): Use scoped_value_mark.
6916
96c7f873
TV
69172020-03-13 Tom de Vries <tdevries@suse.de>
6918
6919 PR symtab/25646
6920 * psymtab.c (partial_symtab::partial_symtab): Don't set
6921 globals_offset and statics_offset. Push element onto
6922 current_global_psymbols and current_static_psymbols stacks.
6923 (concat): New function.
6924 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6925 element from current_global_psymbols and current_static_psymbols
6926 stacks. Concat popped elements to global_psymbols and
6927 static_symbols.
6928 (add_psymbol_to_list): Use current_global_psymbols and
6929 current_static_psymbols stacks.
6930 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6931 current_static_psymbols fields.
6932
6ba0a321
CB
69332020-03-12 Christian Biesinger <cbiesinger@google.com>
6934
6935 * corelow.c (sniff_core_bfd): Remove.
6936 (class core_target) <m_core_vec>: Remove.
6937 (core_target::core_target): Update.
6938 (core_file_fns): Remove.
6939 (deprecated_add_core_fns): Remove.
6940 (default_core_sniffer): Remove.
6941 (sniff_core_bfd): Remove.
6942 (default_check_format): Remove.
6943 (gdb_check_format): Remove.
6944 (core_target_open): Update.
6945 (core_target::get_core_register_section): Update.
6946 (get_core_registers_cb): Update.
6947 (core_target::fetch_registers): Update.
6948 * gdbcore.h (struct core_fns): Remove.
6949 (deprecated_add_core_fns): Remove.
6950 (default_core_sniffer): Remove.
6951 (default_check_format): Remove.
6952
227031b2
TT
69532020-03-12 Tom Tromey <tom@tromey.com>
6954
6955 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6956 CORE_ADDR.
6957 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6958
53807e9f
TT
69592020-03-12 Tom Tromey <tom@tromey.com>
6960
6961 * remote.c (remote_target::download_tracepoint)
6962 (remote_target::enable_tracepoint)
6963 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6964 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6965 sprintf_vma.
6966
64f25102
TT
69672020-03-12 Tom Tromey <tom@tromey.com>
6968
6969 * symfile-mem.c: Update CORE_ADDR size assert.
6970
272cd5a3
SM
69712020-03-12 Simon Marchi <simon.marchi@efficios.com>
6972
6973 * selftest.m4: Move to gdbsupport/.
6974 * acinclude.m4: Update path to selftest.m4.
6975
74cd3f9d
SM
69762020-03-12 Simon Marchi <simon.marchi@efficios.com>
6977
6978 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6979 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6980 gdbarch-selfselftests.c and selftest-arch.c.
6981 (SUBDIR_UNITTESTS_OBS): Rename to...
6982 (SELFTESTS_OBS): ... this.
6983 (COMMON_SFILES): Remove disasm-selftests.c and
6984 gdbarch-selftests.c.
6985 * configure.ac: Don't add selftest-arch.{c,o} to
6986 CONFIG_{SRCS,OBS}.
6987 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
6988 preprocessor conditions.
6989
db6878ac
SM
69902020-03-12 Simon Marchi <simon.marchi@efficios.com>
6991
6992 * configure.ac: Don't source bfd/development.sh.
6993 * selftest.m4: Modify comment.
6994 * configure: Re-generate.
6995
4d696a5c
SM
69962020-03-12 Simon Marchi <simon.marchi@efficios.com>
6997
6998 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
6999 not "true" or "false".
7000 * configure: Re-generate.
7001
8dd8e1c7
CB
70022020-03-12 Christian Biesinger <cbiesinger@google.com>
7003
7004 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7005 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7006 renamed to arm_nbsd_supply_gregset.
7007 (fetch_register): Update to call arm_nbsd_supply_gregset.
7008 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7009 (arm_netbsd_nat_target::fetch_registers): Update.
7010 (fetch_elfcore_registers): Removed.
7011 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7012 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7013 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7014 not require NetBSD system headers.
7015 (arm_nbsd_regset): New struct.
7016 (arm_nbsd_iterate_over_regset_sections): New function.
7017 (arm_netbsd_init_abi_common): Updated to call
7018 set_gdbarch_iterate_over_regset_sections.
7019 * arm-nbsd-tdep.h: New file.
7020
dd69bf7a
KB
70212020-03-11 Kevin Buettner <kevinb@redhat.com>
7022
7023 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7024 recursion.
7025
a0761e34
SM
70262020-03-11 Simon Marchi <simon.marchi@efficios.com>
7027
7028 * configure: Re-generate.
7029
e7a82140
TT
70302020-03-11 Tom Tromey <tromey@adacore.com>
7031
7032 * ada-typeprint.c (print_choices): Fix comment.
7033
dcc050c8
AB
70342020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7035
7036 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7037 previous item in the list, when the list has no items.
7038
1c33af77
TV
70392020-03-11 Tom de Vries <tdevries@suse.de>
7040
7041 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7042 PROP_LOCLIST handling code.
7043
8c95582d
AB
70442020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7045
7046 * buildsym-legacy.c (record_line): Pass extra parameter to
7047 record_line.
7048 * buildsym.c (buildsym_compunit::record_line): Take an extra
7049 parameter, reduce duplication in the line table, and record the
7050 is_stmt flag in the line table.
7051 * buildsym.h (buildsym_compunit::record_line): Add extra
7052 parameter.
7053 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7054 non-statement lines.
7055 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7056 this to the symtab builder.
7057 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7058 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7059 through to dwarf_record_line_1.
7060 * infrun.c (process_event_stop_test): When stepping, don't stop at
7061 a non-statement instruction, and only refresh the step info when
7062 we land in the middle of a line's range. Also add an extra
7063 comment.
7064 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7065 field.
7066 * record-btrace.c (btrace_find_line_range): Only record lines
7067 marked as is-statement.
7068 * stack.c (frame_show_address): Show the frame address if we are
7069 in a non-statement sal.
7070 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7071 (maintenance_print_one_line_table): Print a header for the is_stmt
7072 column, and include is_stmt information in the output.
7073 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7074 preference to non-statements.
7075 (find_pcs_for_symtab_line): Prefer is-statement entries.
7076 (find_line_common): Likewise.
7077 * symtab.h (struct linetable_entry): Add is_stmt field.
7078 (struct symtab_and_line): Likewise.
7079 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7080 arranging the line table.
7081
e4003a34
TV
70822020-03-07 Tom de Vries <tdevries@suse.de>
7083
7084 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7085 DIE.
7086
e8932576
TT
70872020-03-07 Tom Tromey <tom@tromey.com>
7088
7089 * valops.c (value_literal_complex): Remove obsolete comment.
7090 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7091 comment.
7092
29734269
SM
70932020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7094
7095 * infrun.h: Forward-declare thread_info.
7096 (set_step_info): Add thread_info parameter, add doc.
7097 * infrun.c (set_step_info): Add thread_info parameter, move doc
7098 to header.
7099 * infrun.c (process_event_stop_test): Pass thread to
7100 set_step_info call.
7101 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7102 set_step_info.
7103 (prepare_one_step): Add thread_info parameter, pass it to
7104 set_step_frame and prepare_one_step (recursive) call.
7105 (step_1): Pass thread to prepare_one_step call.
7106 (step_command_fsm::should_stop): Pass thread to
7107 prepare_one_step.
7108 (until_next_fsm): Pass thread to set_step_frame call.
7109 (finish_command): Pass thread to set_step_info call.
7110
b7d64b29
HD
71112020-03-06 Hannes Domani <ssbssa@yahoo.de>
7112
7113 * windows-tdep.c (windows_solib_create_inferior_hook):
7114 Check if inferior is running.
7115
09f2921c
TV
71162020-03-06 Tom de Vries <tdevries@suse.de>
7117
7118 * NEWS: Fix "the the".
7119 * ctfread.c: Same.
7120
fd760e79
TV
71212020-03-06 Tom de Vries <tdevries@suse.de>
7122
7123 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7124
20ea4a60
AB
71252020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7126
7127 * .dir-locals.el: Add a comment referencing the other copies of
7128 this file.
7129
0afbabf0
JB
71302020-03-05 John Baldwin <jhb@FreeBSD.org>
7131
7132 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7133 psargs.
7134
842806cb
TBA
71352020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7136
7137 * .gitattributes: New file.
7138
be1e3d3e
TT
71392020-03-04 Tom Tromey <tom@tromey.com>
7140
7141 * symmisc.c (print_symbol_bcache_statistics)
7142 (print_objfile_statistics): Update.
7143 * symfile.c (allocate_symtab): Use intern.
7144 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7145 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7146 macro_cache>: Remove.
7147 <string_cache>: New member.
7148 (struct objfile) <intern>: New methods.
7149 * elfread.c (elf_symtab_read): Use intern.
7150 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7151 (dwarf2_compute_name, dwarf2_physname)
7152 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7153 names.
7154 (guess_partial_die_structure_name): Update.
7155 (partial_die_info::fixup): Intern name.
7156 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7157 name.
7158 (dwarf2_name): Intern name. Update.
7159 * buildsym.c (buildsym_compunit::get_macro_table): Use
7160 string_cache.
7161
4e7625fd
TT
71622020-03-04 Tom Tromey <tom@tromey.com>
7163
7164 * jit.c (bfd_open_from_target_memory): Make "target" const.
7165 * corefile.c (gnutarget): Now const.
7166 * gdbcore.h (gnutarget): Now const.
7167
46f9f931
HD
71682020-03-04 Hannes Domani <ssbssa@yahoo.de>
7169
7170 * NEWS: Mention support for WOW64 processes.
7171 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7172 (amd64_windows_segment_register_p): Remove static.
7173 (_initialize_amd64_windows_nat): Update.
7174 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7175 * i386-windows-nat.c (context_offset): Update.
7176 (i386_mappings): Rename and remove static.
7177 (i386_windows_segment_register_p): Remove static.
7178 (_initialize_i386_windows_nat): Update.
7179 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7180 (STATUS_WX86_SINGLE_STEP): New macro.
7181 (EnumProcessModulesEx): New macro.
7182 (Wow64SuspendThread): New macro.
7183 (Wow64GetThreadContext): New macro.
7184 (Wow64SetThreadContext): New macro.
7185 (Wow64GetThreadSelectorEntry): New macro.
7186 (windows_set_context_register_offsets): Add static.
7187 (windows_set_segment_register_p): Likewise.
7188 (windows_add_thread): Adapt for WOW64 processes.
7189 (windows_fetch_one_register): Likewise.
7190 (windows_nat_target::fetch_registers): Likewise.
7191 (windows_store_one_register): Likewise.
7192 (display_selector): Likewise.
7193 (display_selectors): Likewise.
7194 (handle_exception): Likewise.
7195 (windows_continue): Likewise.
7196 (windows_nat_target::resume): Likewise.
7197 (windows_add_all_dlls): Likewise.
7198 (do_initial_windows_stuff): Likewise.
7199 (windows_nat_target::attach): Likewise.
7200 (windows_get_exec_module_filename): Likewise.
7201 (windows_nat_target::create_inferior): Likewise.
7202 (windows_xfer_siginfo): Likewise.
7203 (_initialize_loadable): Initialize Wow64SuspendThread,
7204 Wow64GetThreadContext, Wow64SetThreadContext,
7205 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7206 * windows-nat.h (windows_set_context_register_offsets):
7207 Remove declaration.
7208 (windows_set_segment_register_p): Likewise.
7209 (i386_windows_segment_register_p): Add declaration.
7210 (amd64_windows_segment_register_p): Likewise.
7211
440cf44e
LM
72122020-03-04 Luis Machado <luis.machado@linaro.org>
7213
7214 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7215 in "info registers" for AArch64/ARM.
7216
7217 The change caused "info registers" to not print GPR's.
7218
7219 gdb/ChangeLog:
7220
7221 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7222
7223 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7224 when reg->group is empty and reggroup is not.
7225
1009d92f
TT
72262020-03-03 Tom Tromey <tromey@adacore.com>
7227
7228 * dwarf2/frame.c (struct dwarf2_frame_cache)
7229 <checked_tailcall_bottom, entry_cfa_sp_offset,
7230 entry_cfa_sp_offset_p>: Remove members.
7231 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7232 (dwarf2_frame_prev_register): Don't call
7233 dwarf2_tailcall_sniffer_first.
7234 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7235 * frame-unwind.c (add_unwinder): New fuction.
7236 (frame_unwind_init): Use it. Add tailcall unwinder.
7237
5e5d66b6
AB
72382020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7239 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7240
7241 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7242 value should be printed as true.
7243
584cf46d
HD
72442020-03-03 Hannes Domani <ssbssa@yahoo.de>
7245
7246 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7247 (windows_init_abi): Set and use windows_so_ops.
7248
7b973adc
SDJ
72492020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7250
7251 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7252 when verifying if dealing with a convenience variable.
7253
bb7b70ab
LM
72542020-03-03 Luis Machado <luis.machado@linaro.org>
7255
7256 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7257
9822cb57
SM
72582020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7259
7260 * infrun.c (gdbarch_supports_displaced_stepping): New.
7261 (use_displaced_stepping): Break up conditions in smaller pieces.
7262 Use gdbarch_supports_displaced_stepping.
7263 (displaced_step_prepare_throw): Use
7264 gdbarch_supports_displaced_stepping.
7265
63e163f2
AB
72662020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7267
7268 * NEWS: Mention new behaviour of the history filename.
7269 * top.c (write_history_p): Add comment.
7270 (show_write_history_p): Add header comment, give a different
7271 message when history writing is on, but the history filename is
7272 empty.
7273 (history_filename): Add comment.
7274 (history_filename_empty): New function.
7275 (show_history_filename): Add header comment, give a different
7276 message when the filename is empty.
7277 (init_history): Compare history_filename against nullptr, and only
7278 read history if the filename is not empty.
7279 (set_history_filename): Add header comment, and only make
7280 non-empty filenames absolute.
7281 (init_main): Make the filename argument to 'set history filename'
7282 optional.
7283
81b86b97
CB
72842020-03-02 Christian Biesinger <cbiesinger@google.com>
7285
7286 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7287 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7288 (fetch_fp_register): Update.
7289 (fetch_fp_regs): Update.
7290 (store_fp_register): Update.
7291 (store_fp_regs): Update.
7292 (arm_netbsd_nat_target::read_description): New function.
7293 (fetch_elfcore_registers): Update.
7294
24ed6739
AB
72952020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7296
7297 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7298 general_thread if the stop reply is missing a thread-id.
7299 (remote_target::process_stop_reply): Use the first non-exited
7300 thread if the target didn't pass a thread-id.
7301 * infrun.c (do_target_wait): Move call to
7302 switch_to_inferior_no_thread to ....
7303 (do_target_wait_1): ... here.
7304
a84bb2a0
JT
73052020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7306
7307 * debuginfod-support.c: Include defs.h first.
7308
658dadf0
TV
73092020-02-28 Tom de Vries <tdevries@suse.de>
7310
7311 * symfile.c (set_initial_language): Use default language for lookup.
7312
4ebe4877
SM
73132020-02-28 Simon Marchi <simon.marchi@efficios.com>
7314
7315 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7316 reader variable, pass `this` to read_cutu_die_from_dwo.
7317
e5da1139
AM
73182020-02-27 Aaron Merey <amerey@redhat.com>
7319
7320 * source.c (open_source_file): Check for nullptr when computing
7321 srcpath.
7322
317f7127
TT
73232020-02-27 Tom Tromey <tromey@adacore.com>
7324
7325 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7326 member.
7327 (dwarf2_add_field): Don't update nfields.
7328 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7329
3104d9ee
AB
73302020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7331
7332 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7333 abs.
7334
b83470bf
TT
73352020-02-26 Tom Tromey <tom@tromey.com>
7336
7337 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7338 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7339 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7340 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7341 per_cu_data.
7342
edfe0a0c
TT
73432020-02-26 Tom Tromey <tom@tromey.com>
7344
7345 * dwarf2/index-write.c (psym_index_map): Change type.
7346 (add_address_entry_worker, write_one_signatured_type)
7347 (recursively_count_psymbols, recursively_write_psymbols)
7348 (class debug_names, psyms_seen_size, write_gdbindex)
7349 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7350
0d79cdc4
AM
73512020-02-26 Aaron Merey <amerey@redhat.com>
7352
7353 * Makefile.in: Handle optional debuginfod support.
7354 * NEWS: Update.
7355 * README: Add --with-debuginfod summary.
7356 * config.in: Regenerate.
7357 * configure: Regenerate.
7358 * configure.ac: Handle optional debuginfod support.
7359 * debuginfod-support.c: debuginfod helper functions.
7360 * debuginfod-support.h: Ditto.
7361 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7362 summary.
7363 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7364 when a dwz file cannot be found.
7365 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7366 debuginfo file cannot be found.
7367 * source.c (open_source_file): Query debuginfod servers when a
7368 source file cannot be found.
7369 * top.c (print_gdb_configuration): Include
7370 --{with,without}-debuginfod in the output.
7371
b65ce565
JG
73722020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7373
7374 * thread.c (thr_try_catch_cmd): Print thread name.
7375
d4c9a4f8
SM
73762020-02-26 Simon Marchi <simon.marchi@efficios.com>
7377
7378 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7379 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7380 dwarf2_fetch_die_type_sect_off): Move to...
7381 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7382 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7383 dwarf2_fetch_die_type_sect_off): ... here.
7384 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7385 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7386 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7387
0dce4280
TV
73882020-02-26 Tom de Vries <tdevries@suse.de>
7389
7390 PR gdb/25603
7391 * symfile.c (set_initial_language): Exit-early if
7392 language_mode == language_mode_manual.
7393
450a1bfc
SM
73942020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7395
7396 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7397 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7398 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7399
9e80cfa1
AB
74002020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7401
7402 * gdbtypes.c (create_array_type_with_stride): Handle negative
7403 array strides.
7404 * valarith.c (value_subscripted_rvalue): Likewise.
7405
09624f1f
LM
74062020-02-25 Luis Machado <luis.machado@linaro.org>
7407
7408 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7409
8cb5117c
SM
74102020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7411
7412 * loc.h (dwarf2_get_die_type): Move to...
7413 * read.h (dwarf2_get_die_type): ... here.
7414 * read.c (dwarf2_get_die_type): Move doc to header.
7415
c325c44e
JB
74162020-02-25 Joel Brobecker <brobecker@adacore.com>
7417
7418 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7419 'gnulib/Makefile.in' to the list.
7420
4ac93832
TT
74212020-02-24 Tom Tromey <tom@tromey.com>
7422
7423 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7424 Remove.
7425 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7426 XOBNEWVEC.
7427
197400e8
TT
74282020-02-24 Tom Tromey <tom@tromey.com>
7429
7430 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7431 New method.
7432 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7433 (dw2_do_instantiate_symtab, dw2_get_file_names)
7434 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7435
76935768
TT
74362020-02-24 Tom Tromey <tom@tromey.com>
7437
7438 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7439 make_scoped_restore.
7440 (dwarf2_psymtab::read_symtab): Don't clear
7441 reading_partial_symbols.
7442
a88ef40d
TV
74432020-02-24 Tom de Vries <tdevries@suse.de>
7444
7445 PR gdb/25592
7446 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7447
c9af6521
TV
74482020-02-24 Tom de Vries <tdevries@suse.de>
7449
7450 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7451 commands layout next/prev/regs.
7452
5707a07a
TT
74532020-02-22 Tom Tromey <tom@tromey.com>
7454
7455 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7456 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7457
3b0fb49e
TT
74582020-02-22 Tom Tromey <tom@tromey.com>
7459
7460 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7461
283be8bf
TT
74622020-02-22 Tom Tromey <tom@tromey.com>
7463
7464 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7465 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7466 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7467 * tui/tui.c (_initialize_tui): Add usage text.
7468
ca793b96
TT
74692020-02-22 Tom Tromey <tom@tromey.com>
7470
7471 * tui/tui-win.c (tui_set_focus_command)
7472 (tui_set_win_height_command): Use error_no_arg.
7473 (_initialize_tui_win): Update help text.
7474 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7475
432b5c40
TT
74762020-02-22 Tom Tromey <tom@tromey.com>
7477
7478 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7479 * tui/tui-disasm.h (struct tui_disasm_window)
7480 <display_start_addr>: Declare.
7481 * tui/tui-source.h (struct tui_source_window)
7482 <display_start_addr>: Declare.
7483 * tui/tui-winsource.h (struct tui_source_window_base)
7484 <show_source_line, display_start_addr>: New methods.
7485 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7486 Rename and move to protected section.
7487 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7488 (tui_source_window_base::do_erase_source_content): Update.
7489 (tui_source_window_base::show_source_line): Now a method.
7490 (tui_source_window_base::show_source_content)
7491 (tui_source_window_base::tui_source_window_base)
7492 (tui_source_window_base::rerender)
7493 (tui_source_window_base::refill)
7494 (tui_source_window_base::do_scroll_horizontal)
7495 (tui_source_window_base::set_is_exec_point_at)
7496 (tui_source_window_base::update_breakpoint_info)
7497 (tui_source_window_base::update_exec_info): Update.
7498 * tui/tui-source.c (tui_source_window::set_contents)
7499 (tui_source_window::showing_source_p)
7500 (tui_source_window::do_scroll_vertical)
7501 (tui_source_window::location_matches_p)
7502 (tui_source_window::line_is_displayed): Update.
7503 (tui_source_window::display_start_addr): New method.
7504 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7505 (tui_disasm_window::do_scroll_vertical)
7506 (tui_disasm_window::location_matches_p): Update.
7507 (tui_disasm_window::display_start_addr): New method.
7508
01b1af32
TT
75092020-02-22 Tom Tromey <tom@tromey.com>
7510
7511 * NEWS: Add entry for gdb.register_window_type.
7512 * tui/tui-layout.h (window_factory): New typedef.
7513 (tui_register_window): Declare.
7514 * tui/tui-layout.c (saved_tui_windows): New global.
7515 (tui_apply_current_layout): Use it.
7516 (tui_register_window): New function.
7517 * python/python.c (do_start_initialization): Call
7518 gdbpy_initialize_tui.
7519 (python_GdbMethods): Add "register_window_type" function.
7520 * python/python-internal.h (gdbpy_register_tui_window)
7521 (gdbpy_initialize_tui): Declare.
7522 * python/py-tui.c: New file.
7523 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7524
fc96d20b
TT
75252020-02-22 Tom Tromey <tom@tromey.com>
7526
7527 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7528
935c78c0
TT
75292020-02-22 Tom Tromey <tom@tromey.com>
7530
7531 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7532 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7533 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7534 (tui_set_win_focus_to): Move from tui-win.c.
7535
0240c8f1
TT
75362020-02-22 Tom Tromey <tom@tromey.com>
7537
7538 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7539 functions.
7540 (known_window_types): New global.
7541 (tui_get_window_by_name): Reimplement.
7542 (initialize_known_windows): New function.
7543 (validate_window_name): Rewrite.
7544 (_initialize_tui_layout): Call initialize_known_windows.
7545
fdb01f0c
TT
75462020-02-22 Tom Tromey <tom@tromey.com>
7547
7548 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7549 Remove constants.
7550 * tui/tui-winsource.h (struct tui_source_window_base)
7551 <tui_source_window_base>: Remove parameter.
7552 * tui/tui-winsource.c
7553 (tui_source_window_base::tui_source_window_base): Remove
7554 parameter.
7555 (tui_source_window_base::refill): Update.
7556 * tui/tui-stack.h (struct tui_locator_window)
7557 <tui_locator_window>: Update.
7558 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7559 Default the constructor.
7560 * tui/tui-regs.h (struct tui_data_item_window)
7561 <tui_data_item_window>: Default the constructor.
7562 (struct tui_data_window) <tui_data_window>: Likewise.
7563 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7564 Default the constructor.
7565 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7566 Default the constructor.
7567 <type>: Remove.
7568 (struct tui_win_info) <tui_win_info>: Default the constructor.
7569 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7570 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7571 Default the constructor.
7572
865a5aec
TT
75732020-02-22 Tom Tromey <tom@tromey.com>
7574
7575 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7576 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7577 * tui/tui-win.c (tui_resize_all): Don't call
7578 tui_delete_invisible_windows.
7579 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7580 done.
7581 (tui_set_layout): Update.
7582 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7583 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7584 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7585
e098d18c
TT
75862020-02-22 Tom Tromey <tom@tromey.com>
7587
7588 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7589 correctly.
7590
eb9c8874
TT
75912020-02-22 Tom Tromey <tom@tromey.com>
7592
7593 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7594
7eed1a8e
TT
75952020-02-22 Tom Tromey <tom@tromey.com>
7596
7597 * tui/tui-winsource.h (struct tui_source_window_iterator)
7598 <inner_iterator>: New etytypedef.
7599 <tui_source_window_iterator>: Take "end" parameter.
7600 <tui_source_window_iterator>: Take iterator.
7601 <operator*, advance>: Update.
7602 <m_iter>: Change type.
7603 <m_end>: New field.
7604 (struct tui_source_windows) <begin, end>: Update.
7605 * tui/tui-layout.c (tui_windows): New global.
7606 (tui_apply_current_layout): Clear tui_windows.
7607 (tui_layout_window::apply): Update tui_windows.
7608 * tui/tui-data.h (tui_windows): Declare.
7609 (all_tui_windows): Now inline function.
7610 (class tui_window_iterator, struct all_tui_windows): Remove.
7611
7c043ba6
TT
76122020-02-22 Tom Tromey <tom@tromey.com>
7613
7614 PR tui/17850:
7615 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7616 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7617 "height" argument.
7618 (class tui_layout_window) <get_sizes>: Likewise.
7619 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7620 argument.
7621 <get_sizes>: Add "height" argument.
7622 <m_vertical>: New field.
7623 * tui/tui-layout.c (tui_layout_split::clone): Update.
7624 (tui_layout_split::get_sizes): Add "height" argument.
7625 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7626 (tui_new_layout_command): Parse "-horizontal".
7627 (_initialize_tui_layout): Update help string.
7628 (tui_layout_split::specification): Add "-horizontal" when needed.
7629 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7630 argument.
7631 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7632 New methods.
7633
6bc56648
TT
76342020-02-22 Tom Tromey <tom@tromey.com>
7635
7636 * tui/tui-layout.h (enum tui_adjust_result): New.
7637 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7638 (class tui_layout_window) <adjust_size>: Return
7639 tui_adjust_result. Rewrite.
7640 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7641 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7642
c22fef7e
TT
76432020-02-22 Tom Tromey <tom@tromey.com>
7644
7645 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7646 parameter and return types.
7647 (class tui_layout_base) <specification>: Add "depth".
7648 (class tui_layout_window) <specification>: Add "depth".
7649 (class tui_layout_split) <specification>: Add "depth".
7650 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7651 and return types.
7652 (tui_new_layout_command): Parse sub-layouts.
7653 (_initialize_tui_layout): Update help string.
7654 (tui_layout_window::specification): Add "depth".
7655 (add_layout_command): Update.
7656
ee325b61
TT
76572020-02-22 Tom Tromey <tom@tromey.com>
7658
7659 * NEWS: Add "tui new-layout" item.
7660 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7661 Add new-layout command to help text.
7662 (validate_window_name): New function.
7663 (tui_new_layout_command): New function.
7664 (_initialize_tui_layout): Register "new-layout".
7665 (tui_layout_window::specification): New method.
7666 (tui_layout_window::specification): New method.
7667 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7668 method.
7669 (class tui_layout_window) <specification>: New method.
7670 (class tui_layout_split) <specification>: New method.
7671
416eb92d
TT
76722020-02-22 Tom Tromey <tom@tromey.com>
7673
7674 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7675 * tui/tui-win.c (window_name_completer): Update comment.
7676 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7677 Declare method.
7678 (class tui_layout_window) <replace_window>: Likewise.
7679 (class tui_layout_split) <replace_window>: Likewise.
7680 (tui_set_layout): Don't declare.
7681 (tui_set_initial_layout): Declare function.
7682 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7683 (asm_regs_layout): New globals.
7684 (tui_current_layout, show_layout): Remove.
7685 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7686 (find_layout, tui_apply_layout): New function.
7687 (layout_completer): Remove.
7688 (tui_next_layout): Reimplement.
7689 (tui_next_layout_command): New function.
7690 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7691 (tui_regs_layout): Reimplement.
7692 (tui_regs_layout_command): New function.
7693 (extract_display_start_addr): Rewrite.
7694 (next_layout, prev_layout): Remove.
7695 (tui_layout_window::replace_window): New method.
7696 (tui_layout_split::replace_window): New method.
7697 (destroy_layout): New function.
7698 (layout_list): New global.
7699 (add_layout_command): New function.
7700 (initialize_layouts): Update.
7701 (tui_layout_command): New function.
7702 (_initialize_tui_layout): Install "layout" commands.
7703 * tui/tui-data.h (enum tui_layout_type): Remove.
7704 (tui_current_layout): Don't declare.
7705
0dbc2fc7
TT
77062020-02-22 Tom Tromey <tom@tromey.com>
7707
7708 * tui/tui-regs.c (tui_reg_layout): Remove.
7709 (tui_reg_command): Use tui_regs_layout.
7710 * tui/tui-layout.h (tui_reg_command): Declare.
7711 * tui/tui-layout.c (tui_reg_command): New function.
7712
5afe342e
TT
77132020-02-22 Tom Tromey <tom@tromey.com>
7714
7715 * tui/tui.c (tui_rl_delete_other_windows): Call
7716 tui_remove_some_windows.
7717 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7718 Declare method.
7719 (class tui_layout_window) <remove_windows>: New method.
7720 (class tui_layout_split) <remove_windows>: Declare.
7721 (tui_remove_some_windows): Declare.
7722 * tui/tui-layout.c (tui_remove_some_windows): New function.
7723 (tui_layout_split::remove_windows): New method.
7724
427326a8
TT
77252020-02-22 Tom Tromey <tom@tromey.com>
7726
7727 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7728 * tui/tui-layout.h (tui_next_layout): Declare.
7729 * tui/tui-layout.c (tui_next_layout): New function.
7730
3fe12b6d
TT
77312020-02-22 Tom Tromey <tom@tromey.com>
7732
7733 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7734 correct coordinates.
7735
59b8b5d2
TT
77362020-02-22 Tom Tromey <tom@tromey.com>
7737
7738 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7739 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7740 DATA_WIN case.
7741
2a3d458b
TT
77422020-02-22 Tom Tromey <tom@tromey.com>
7743
7744 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7745 TUI_DISASM_WIN, not tui_win_list.
7746
3f0cbb04
TT
77472020-02-22 Tom Tromey <tom@tromey.com>
7748
7749 * valprint.c (generic_val_print_enum_1)
7750 (val_print_type_code_flags): Style member names.
7751 * rust-lang.c (val_print_struct, rust_print_enum)
7752 (rust_print_struct_def, rust_internal_print_type): Style member
7753 names.
7754 * p-valprint.c (pascal_object_print_value_fields): Style member
7755 names. Only call fprintf_symbol_filtered for static members.
7756 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7757 * f-valprint.c (f_val_print): Style member names.
7758 * f-typeprint.c (f_type_print_base): Style member names.
7759 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7760 call fprintf_symbol_filtered for static members.
7761 (cp_print_class_member): Style member names.
7762 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7763 member names.
7764 * ada-valprint.c (ada_print_scalar): Style enum names.
7765 (ada_val_print_enum): Likewise.
7766 * ada-typeprint.c (print_enum_type): Style enum names.
7767
d4d947ae
TT
77682020-02-21 Tom Tromey <tom@tromey.com>
7769
7770 * psympriv.h (struct partial_symtab): Update comment.
7771
e94e944b
TT
77722020-02-21 Tom Tromey <tromey@adacore.com>
7773
7774 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7775 type is CORE_ADDR.
7776
1eb73179
TV
77772020-02-21 Tom de Vries <tdevries@suse.de>
7778
7779 PR gdb/25534
7780 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7781 if dependencies[i]->user != NULL.
7782
4f180d53
AT
77832020-02-21 Ali Tamur <tamur@google.com>
7784
7785 * dwarf2/read.c (dwarf2_name): Add null check.
7786
22b6cd70
TT
77872020-02-20 Tom Tromey <tom@tromey.com>
7788
7789 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7790 ">=", in binary search.
7791 (dwarf2_find_containing_comp_unit): New overload.
7792 (run_test): New self-test.
7793 (_initialize_dwarf2_read): Register new test.
7794
bd0cf5a6
NC
77952020-02-20 Nelson Chu <nelson.chu@sifive.com>
7796
7797 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7798 * riscv-tdep.h: Likewise.
7799 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7800 rv32-only CSR.
7801 * features/riscv/64bit-csr.xml: Regenerated.
7802
3f702acd
SDJ
78032020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7804 Tom Tromey <tom@tromey.com>
7805
7806 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7807 of 'fputc_unfiltered'.
7808 (putchar_unfiltered): Call 'fputc_unfiltered'.
7809 (fputc_unfiltered): Call 'fputs_unfiltered'.
7810
d13c7322
AB
78112020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7812
7813 * config.in: Regenerate.
7814 * configure: Regenerate.
7815 * configure.ac: Add --with-python-libdir option.
7816 * main.c: Use WITH_PYTHON_LIBDIR.
7817
869d8950
TT
78182020-02-19 Tom Tromey <tom@tromey.com>
7819
7820 * symtab.c (general_symbol_info::compute_and_set_names): Use
7821 obstack_strndup. Simplify call to symbol_set_demangled_name.
7822
298e9637
SM
78232020-02-19 Simon Marchi <simon.marchi@efficios.com>
7824
7825 * dwarf2/read.c (allocate_signatured_type_table,
7826 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7827 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7828 Remove objfile parameter, update all callers.
7829
08410482
DE
78302020-02-19 Doug Evans <dje@google.com>
7831
7832 PR rust/25535
7833 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7834 rust_enum_variant calculation.
7835
dfdeeca1
TT
78362020-02-19 Tom Tromey <tromey@adacore.com>
7837
7838 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7839
2ef5453b
TT
78402020-02-19 Tom Tromey <tromey@adacore.com>
7841
7842 * ada-lang.c (cache_symbol): Use obstack_strdup.
7843
9f1528a1
AB
78442020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7845
7846 * configure: Regenerate.
7847
d3c22fa8
TT
78482020-02-19 Tom Tromey <tromey@adacore.com>
7849
7850 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7851 NULL check.
7852
bf84f706
MR
78532020-02-19 Maciej W. Rozycki <macro@wdc.com>
7854
7855 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7856
d1c9b20f
AB
78572020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7858
7859 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7860 if GDBSERVER is not defined.
7861 (riscv_tdesc_cache): Likewise, also store const target_desc.
7862 (STATIC_IN_GDB): Define.
7863 (riscv_create_target_description): Update declaration with
7864 STATIC_IN_GDB.
7865 (riscv_lookup_target_description): New function, only define if
7866 GDBSERVER is not defined.
7867 * arch/riscv.h (riscv_create_target_description): Declare only
7868 when GDBSERVER is defined.
7869 (riscv_lookup_target_description): New declaration when GDBSERVER
7870 is not defined.
7871 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7872 (riscv_linux_read_features): ...this, and return
7873 riscv_gdbarch_features instead of target_desc.
7874 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7875 (riscv_linux_read_description): Rename to...
7876 (riscv_linux_read_features): ...this.
7877 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7878 Update to use riscv_gdbarch_features and
7879 riscv_lookup_target_description.
7880 * riscv-tdep.c (riscv_find_default_target_description): Use
7881 riscv_lookup_target_description instead of
7882 riscv_create_target_description.
7883
373d7ac0
SM
78842020-02-18 Simon Marchi <simon.marchi@efficios.com>
7885
7886 * valprint.c (generic_val_print_enum_1): When printing a flag
7887 enum with value 0 and there is no enumerator with value 0, print
7888 just "0" instead of "(unknown: 0x0)".
7889
b29a2df0
SM
78902020-02-18 Simon Marchi <simon.marchi@efficios.com>
7891
7892 * valprint.c (generic_val_print_enum_1): Print unknown part of
7893 flag enum in hex.
7894
6740f0cc
SM
78952020-02-18 Simon Marchi <simon.marchi@efficios.com>
7896
7897 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7898 flag enums to contain duplicate enumerators.
7899 * valprint.c (generic_val_print_enum_1): Update comment.
7900
edd45eb0
SM
79012020-02-18 Simon Marchi <simon.marchi@efficios.com>
7902
7903 * dwarf2/read.c: Include "count-one-bits.h".
7904 (update_enumeration_type_from_children): If an enumerator has
7905 multiple bits set, don't treat the enumeration as a "flag enum".
7906 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7907 of flag enums have 0 or 1 bit set.
7908
6d0cf446
BE
79092020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7910
7911 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7912 conversion.
7913 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7914 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7915 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7916 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7917 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7918
7001c1b7
SM
79192020-02-18 Simon Marchi <simon.marchi@efficios.com>
7920
7921 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7922
fdb61c6c
SM
79232020-02-14 Simon Marchi <simon.marchi@efficios.com>
7924
7925 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7926 displaced_step_closure_up.
7927 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7928 (struct displaced_step_closure_up):
7929 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7930 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7931 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7932 Likewise.
7933 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7934 * gdbarch.c, gdbarch.h: Re-generate.
7935 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7936 displaced_step_closure_up.
7937 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7938 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7939 * infrun.h (displaced_step_closure_up): New type alias.
7940 (struct displaced_step_inferior_state) <step_closure>: Change
7941 type to displaced_step_closure_up.
7942 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7943 displaced_step_closure_up.
7944 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7945
a4a38eb4
TT
79462020-02-14 Tom Tromey <tom@tromey.com>
7947
7948 * minidebug.c (gnu_debug_key): New global.
7949 (find_separate_debug_file_in_section): Use it.
7950
e8217e61
SM
79512020-02-14 Simon Marchi <simon.marchi@efficios.com>
7952
7953 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7954 std::unique_ptr.
7955 * gdbarch.c: Re-generate.
7956 * gdbarch.h: Re-generate.
7957 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7958 change.
7959 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7960 type to std::unique_ptr.
7961 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7962 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7963 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7964 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7965 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7966 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7967 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7968 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7969 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7970
d8d83535
SM
79712020-02-14 Simon Marchi <simon.marchi@efficios.com>
7972
7973 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7974 std::unique_ptr.
7975 (displaced_step_clear): Rename to...
7976 (displaced_step_reset): ... this. Just call displaced->reset ().
7977 (displaced_step_clear_cleanup): Rename to...
7978 (displaced_step_reset_cleanup): ... this.
7979 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7980 (displaced_step_fixup): Likewise.
7981 (resume_1): Likewise.
7982 (handle_inferior_event): Restore child's memory before calling
7983 displaced_step_fixup on the parent.
7984 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
7985 to std::unique_ptr.
7986 <step_closure>: Change type to std::unique_ptr.
7987
5f661e03
SM
79882020-02-14 Simon Marchi <simon.marchi@efficios.com>
7989
7990 * arm-tdep.c: Include count-one-bits.h.
7991 (cleanup_block_store_pc): Use count_one_bits.
7992 (cleanup_block_load_pc): Use count_one_bits.
7993 (arm_copy_block_xfer): Use count_one_bits.
7994 (thumb2_copy_block_xfer): Use count_one_bits.
7995 (thumb_copy_pop_pc_16bit): Use count_one_bits.
7996 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
7997 (thumb_get_next_pcs_raw): Use count_one_bits.
7998 (arm_get_next_pcs_raw): Use count_one_bits_l.
7999 * arch/arm.c (bitcount): Remove.
8000 * arch/arm.h (bitcount): Remove.
8001
8084e579
TT
80022020-02-14 Tom Tromey <tromey@adacore.com>
8003
8004 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8005 Update.
8006 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8007 * dwarf2/loc.c (call_site_find_chain_1): Return
8008 unique_xmalloc_ptr.
8009 (call_site_find_chain): Likewise.
8010
258bf0ee
RB
80112020-02-14 Richard Biener <rguenther@suse.de>
8012
8013 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8014 on expression with division operators.
8015
f98a8458
AKS
80162020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8017
8018 * MAINTAINERS (Write After Approval): Adding myself.
8019
d1437c0e
TT
80202020-02-12 Tom Tromey <tom@tromey.com>
8021
8022 * event-loop.c (event_data, gdb_event, event_handler_func):
8023 Remove.
8024
3d4560f7
TT
80252020-02-12 Tom Tromey <tom@tromey.com>
8026
8027 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8028 (dwarf2_frame_objfile_data): Add comment.
8029 (find_comp_unit, set_comp_unit): New functions.
8030 (dwarf2_frame_find_fde): Use find_comp_unit.
8031 (dwarf2_build_frame_info): Use set_comp_unit.
8032
21982304
TT
80332020-02-12 Tom Tromey <tom@tromey.com>
8034
8035 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8036 (comp_unit): Don't initialize objfile.
8037 (execute_cfa_program): Add text_offset parameter.
8038 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8039 (dwarf2_frame_cache): Update.
8040 (dwarf2_build_frame_info): Don't set "objfile" member.
8041
4debb237
TT
80422020-02-12 Tom Tromey <tom@tromey.com>
8043
8044 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8045 (decode_frame_entry): Likewise.
8046 (dwarf2_build_frame_info): Update.
8047
0d404d44
TT
80482020-02-12 Tom Tromey <tom@tromey.com>
8049
8050 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8051 (decode_frame_entry_1): Use the comp_unit obstack.
8052
a7a3ae5c
TT
80532020-02-12 Tom Tromey <tom@tromey.com>
8054
8055 * dwarf2/frame.c (struct comp_unit): Add initializers and
8056 constructor.
8057 (dwarf2_frame_objfile_data): Store a comp_unit.
8058 (dwarf2_frame_find_fde): Update.
8059 (dwarf2_build_frame_info): Use "new".
8060
a9d65418
TT
80612020-02-12 Tom Tromey <tom@tromey.com>
8062
8063 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8064 (dwarf2_fde_table): Typedef for std::vector.
8065 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8066 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8067 (decode_frame_entry): Update.
8068 (dwarf2_build_frame_info): Use "new".
8069
7559c217
CB
80702020-02-12 Christian Biesinger <cbiesinger@google.com>
8071
8072 * arm-tdep.c (arm_gdbarch_init): Update.
8073 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8074 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8075 have_neon, is_m>: Change to bool.
8076
aeefc73c
CB
80772020-02-12 Christian Biesinger <cbiesinger@google.com>
8078
8079 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8080
d27b8e5f
TT
80812020-02-12 Tom Tromey <tom@tromey.com>
8082
8083 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8084
cd5900f3
HD
80852020-02-12 Hannes Domani <ssbssa@yahoo.de>
8086
8087 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8088 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8089
f056b22b
TT
80902020-02-11 Tom Tromey <tom@tromey.com>
8091
8092 * psymtab.h: Update comment.
8093
f92ff6b5
TT
80942020-02-11 Tom Tromey <tom@tromey.com>
8095
8096 * gdb_obstack.h (struct auto_obstack): Use
8097 DISABLE_COPY_AND_ASSIGN.
8098
3fd6912b
TT
80992020-02-11 Tom Tromey <tom@tromey.com>
8100
8101 * dwarf2/frame.h (struct objfile): Don't forward declare.
8102
69ed9b74
CB
81032020-02-11 Christian Biesinger <cbiesinger@google.com>
8104
8105 * cris-tdep.c (cris_supply_gregset): Change signature to match
8106 what struct regset expects.
8107 (cris_regset): New struct.
8108 (fetch_core_registers): Remove.
8109 (cris_iterate_over_regset_sections): New function.
8110 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8111 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8112
bda874f6
CB
81132020-02-11 Christian Biesinger <cbiesinger@google.com>
8114
8115 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8116 registers.
8117
754e1564
CB
81182020-02-11 Christian Biesinger <cbiesinger@google.com>
8119
8120 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8121
8ddd8e0e
SM
81222020-02-11 Simon Marchi <simon.marchi@efficios.com>
8123
8124 * configure: Re-generate.
8125
898e7f60
SM
81262020-02-11 Simon Marchi <simon.marchi@efficios.com>
8127
8128 * configure: Re-generate.
8129
58df732b
SM
81302020-02-11 Simon Marchi <simon.marchi@efficios.com>
8131
8132 * acinclude: Update warning.m4 path.
8133 * warning.m4: Move to gdbsupport.
8134
da5bd37e
TT
81352020-02-11 Tom Tromey <tromey@adacore.com>
8136
8137 * remote.c (remote_console_output): Update.
8138 * printcmd.c (printf_command): Update.
8139 * event-loop.c (gdb_wait_for_event): Update.
8140 * linux-nat.c (sigchld_handler): Update.
8141 * remote-sim.c (gdb_os_write_stdout): Update.
8142 (gdb_os_flush_stdout): Update.
8143 (gdb_os_flush_stderr): Update.
8144 (gdb_os_write_stderr): Update.
8145 * exceptions.c (print_exception): Update.
8146 * remote-fileio.c (remote_fileio_func_read): Update.
8147 (remote_fileio_func_write): Update.
8148 * tui/tui.c (tui_enable): Update.
8149 * tui/tui-interp.c (tui_interp::init): Update.
8150 * utils.c (init_page_info): Update.
8151 (putchar_unfiltered, fputc_unfiltered): Update.
8152 (gdb_flush): Update.
8153 (emit_style_escape): Update.
8154 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8155 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8156 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8157 (stderr_file::write): Update.
8158 (stderr_file::puts): Update.
8159 * ui-file.h (ui_file_isatty, ui_file_write)
8160 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8161 (ui_file_puts): Don't declare.
8162
85f0dd3c
TV
81632020-02-10 Tom de Vries <tdevries@suse.de>
8164
8165 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8166 sentinel to char *.
8167
2e927613
TV
81682020-02-09 Tom de Vries <tdevries@suse.de>
8169
8170 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8171 filename if it matches "<artificial>".
8172
6bafc845
HD
81732020-02-09 Hannes Domani <ssbssa@yahoo.de>
8174
8175 * windows-tdep.c (struct enum_value_name): New struct.
8176 (create_enum): New function.
8177 (windows_get_siginfo_type): Create and use enum types.
8178
7928d571
HD
81792020-02-09 Hannes Domani <ssbssa@yahoo.de>
8180
8181 * NEWS: Mention $_siginfo support for Windows.
8182 * windows-nat.c (handle_exception): Set siginfo_er.
8183 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8184 (windows_xfer_siginfo): New function.
8185 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8186 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8187 (init_windows_gdbarch_data): New function.
8188 (get_windows_gdbarch_data): New function.
8189 (windows_get_siginfo_type): New function.
8190 (windows_init_abi): Register windows_get_siginfo_type.
8191 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8192
6751ebae
TT
81932020-02-08 Tom Tromey <tom@tromey.com>
8194
8195 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8196 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8197 <keep>: Declare method.
8198 <m_keep>: Remove member.
8199 <~cutu_reader>: Remove.
8200 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8201 (cutu_reader::cutu_reader): Update.
8202 (cutu_reader::keep): Rename from ~cutu_reader.
8203 (process_psymtab_comp_unit, build_type_psymtabs_1)
8204 (process_skeletonless_type_unit, load_partial_comp_unit)
8205 (load_full_comp_unit, dwarf2_read_addr_index)
8206 (read_signatured_type): Update.
8207
135f5437
TT
82082020-02-08 Tom Tromey <tom@tromey.com>
8209
8210 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8211 "want_partial_unit" parameter.
8212 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8213 Inline check for DW_TAG_partial_unit.
8214 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8215
9f66ff1c
TT
82162020-02-08 Tom Tromey <tom@tromey.com>
8217
8218 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8219 read.c.
8220 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8221 read.c.
8222
c8a7a66f
TT
82232020-02-08 Tom Tromey <tom@tromey.com>
8224
8225 * dwarf2/read.c (read_address): Move to comp-unit.c.
8226 (dwarf2_rnglists_process, dwarf2_ranges_process)
8227 (read_attribute_value, dwarf_decode_lines_1)
8228 (var_decode_location, decode_locdesc): Update.
8229 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8230 read.c. Remove "cu" parameter.
8231 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8232 method.
8233
8266302d
TT
82342020-02-08 Tom Tromey <tom@tromey.com>
8235
8236 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8237 (read_indirect_line_string): Update.
8238 * dwarf2/comp-unit.c (read_offset): Remove.
8239 (read_comp_unit_head): Update.
8240 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8241 method.
8242 (read_offset): Don't declare.
8243
4057dfde
TT
82442020-02-08 Tom Tromey <tom@tromey.com>
8245
8246 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8247 * dwarf2/read.c (struct comp_unit_head): Move to
8248 dwarf2/comp-unit.h.
8249 (enum class rcuh_kind): Move to comp-unit.h.
8250 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8251 (read_comp_unit_head, error_check_comp_unit_head)
8252 (read_and_check_comp_unit_head): Move to comp-unit.c.
8253 (read_offset, dwarf_unit_type_name): Likewise.
8254 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8255 (cutu_reader::cutu_reader, read_call_site_scope)
8256 (find_partial_die, follow_die_offset): Update.
8257 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8258
24aa364d
TT
82592020-02-08 Tom Tromey <tom@tromey.com>
8260
8261 * dwarf2/read.c (read_offset_1): Move to leb.c.
8262 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8263 (dwarf_decode_macro_bytes): Update.
8264 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8265 * dwarf2/leb.h (read_offset): Declare.
8266
2c7d5afc
TT
82672020-02-08 Tom Tromey <tom@tromey.com>
8268
8269 * dwarf2/read.c (dwarf2_section_size): Remove.
8270 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8271 Update.
8272 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8273
4075cb26
TT
82742020-02-08 Tom Tromey <tom@tromey.com>
8275
8276 * dwarf2/read.c (read_initial_length): Move to leb.c.
8277 * dwarf2/leb.h (read_initial_length): Declare.
8278 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8279 handle_nonstd parameter.
8280 * dwarf2/frame.c (read_initial_length): Remove.
8281 (decode_frame_entry_1): Update.
8282
09ba997f
TT
82832020-02-08 Tom Tromey <tom@tromey.com>
8284
8285 * dwarf2/loc.c (dwarf2_find_location_expression)
8286 (dwarf_evaluate_loc_desc::get_tls_address)
8287 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8288 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8289 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8290 (dwarf2_compile_property_to_c)
8291 (dwarf2_loc_desc_get_symbol_read_needs)
8292 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8293 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8294 (loclist_describe_location, loclist_tracepoint_var_ref)
8295 (loclist_generate_c_location): Update.
8296 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8297 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8298 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8299 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8300 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8301 (dwarf2_per_cu_data::addr_size)
8302 (dwarf2_per_cu_data::ref_addr_size)
8303 (dwarf2_per_cu_data::text_offset)
8304 (dwarf2_per_cu_data::addr_type): Now methods.
8305 (per_cu_header_read_in): Make per_cu "const".
8306 (dwarf2_version): Remove.
8307 (dwarf2_per_cu_data::int_type): Now a method.
8308 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8309 (set_die_type, read_array_type, read_subrange_index_type)
8310 (read_tag_string_type, read_subrange_type): Update.
8311 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8312 offset_size, ref_addr_size, text_offset, addr_type, version,
8313 objfile, int_type, addr_sized_int_type>: Declare methods.
8314
96c738c0
TT
83152020-02-08 Tom Tromey <tom@tromey.com>
8316
8317 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8318 Move earlier.
8319
8fdd972c
TT
83202020-02-08 Tom Tromey <tom@tromey.com>
8321
8322 * dwarf2/read.h (dwarf_line_debug): Declare.
8323 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8324 * dwarf2/read.c: Move line_header code to new files.
8325 (dwarf_line_debug): No longer static.
8326 * dwarf2/line-header.c: New file.
8327 * dwarf2/line-header.h: New file.
8328
03075812
TT
83292020-02-08 Tom Tromey <tom@tromey.com>
8330
8331 * dwarf2/read.c (struct line_header) <file_full_name,
8332 file_file_name>: Return unique_xmalloc_ptr.
8333 (line_header::file_file_name): Update.
8334 (line_header::file_full_name): Update.
8335 (dw2_get_file_names_reader): Update.
8336 (macro_start_file): Update.
8337
bb822404
TT
83382020-02-08 Tom Tromey <tom@tromey.com>
8339
8340 * dwarf2/read.c (struct line_header) <file_full_name,
8341 file_file_name>: Declare methods.
8342 (dw2_get_file_names_reader): Update.
8343 (file_file_name): Now a method.
8344 (file_full_name): Likewise.
8345 (macro_start_file): Update.
8346
009b64fc
TT
83472020-02-08 Tom Tromey <tom@tromey.com>
8348
8349 * dwarf2/read.c (dwarf_always_disassemble)
8350 (show_dwarf_always_disassemble): Move to loc.c.
8351 (_initialize_dwarf2_read): Move "always-disassemble" registration
8352 to loc.c.
8353 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8354 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8355 static.
8356 (show_dwarf_always_disassemble): Move from read.c.
8357 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8358
5895093f
TT
83592020-02-08 Tom Tromey <tom@tromey.com>
8360
8361 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8362 (create_quick_file_names_table): Return htab_up.
8363 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8364 Update.
8365 * dwarf2/read.h (struct dwarf2_per_objfile)
8366 <quick_file_names_table>: Now htab_up.
8367
b3b32279
TT
83682020-02-08 Tom Tromey <tom@tromey.com>
8369
8370 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8371
1d33d811
TT
83722020-02-08 Tom Tromey <tom@tromey.com>
8373
8374 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8375 Rewrite.
8376 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8377 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8378 (abbrev_table::abbrev_table): No longer inline.
8379 (ABBREV_HASH_SIZE): Remove.
8380 (abbrev_table::m_abbrevs): Now an htab_up.
8381
86de1d91
TT
83822020-02-08 Tom Tromey <tom@tromey.com>
8383
8384 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8385 (cutu_reader): Update.
8386 (build_type_psymtabs_1): Update.
8387 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8388 (abbrev_table::alloc_abbrev): Update.
8389 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8390 (abbrev_table::read): New static method, renamed from
8391 abbrev_table_read_table.
8392 (abbrev_table::alloc_abbrev)
8393 (abbrev_table::add_abbrev): Now private.
8394 (abbrev_table::abbrev_table): Now private.
8395 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8396
0335378b
TT
83972020-02-08 Tom Tromey <tom@tromey.com>
8398
8399 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8400 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8401 htab_up.
8402
48b490f2
TT
84032020-02-08 Tom Tromey <tom@tromey.com>
8404
8405 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8406 htab_up.
8407 (lookup_dwo_unit_in_dwp): Update.
8408 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8409 on obstack.
8410
bc68fb19
TT
84112020-02-08 Tom Tromey <tom@tromey.com>
8412
8413 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8414 obstack.
8415
d15acc42
TT
84162020-02-08 Tom Tromey <tom@tromey.com>
8417
8418 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8419 line_header_hash.
8420 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8421 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8422 Change type to htab_up.
8423
eaa5fa8b
TT
84242020-02-08 Tom Tromey <tom@tromey.com>
8425
8426 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8427 htab_up. Don't allocate on obstack.
8428 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8429 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8430 Change type to htab_up.
8431
b0b6a987
TT
84322020-02-08 Tom Tromey <tom@tromey.com>
8433
8434 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8435 Change type to htab_up.
8436 * dwarf2/read.c (create_signatured_type_table_from_index)
8437 (create_signatured_type_table_from_debug_names)
8438 (create_all_type_units, add_type_unit)
8439 (lookup_dwo_signatured_type, lookup_signatured_type)
8440 (process_skeletonless_type_unit): Update.
8441 (create_debug_type_hash_table, create_debug_types_hash_table):
8442 Change type of types_htab.
8443 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8444 htab_up. Don't allocate on obstack.
8445 (create_cus_hash_table): Change type of cus_htab parameter.
8446 (struct dwo_file) <cus, tus>: Now htab_up.
8447 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8448 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8449 (queue_and_load_all_dwo_tus): Update.
8450 * dwarf2/index-write.c (write_gdbindex): Update.
8451 (write_debug_names): Update.
8452
39856def
TT
84532020-02-08 Tom Tromey <tom@tromey.com>
8454
8455 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8456 dwarf2/read.c. Remove "next" member. Add constructor ntad
8457 destructor.
8458 (struct dwarf2_per_objfile) <queue>: New member.
8459 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8460 dwarf2/read.h.
8461 (dwarf2_queue, dwarf2_queue_tail): Remove.
8462 (class dwarf2_queue_guard): Add parameter to constructor. Use
8463 DISABLE_COPY_AND_ASSIGN.
8464 <m_per_objfile>: New member.
8465 <~dwarf2_queue_guard>: Rewrite.
8466 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8467 Update.
8468 (~dwarf2_queue_item): New.
8469
3e225074
TT
84702020-02-08 Tom Tromey <tom@tromey.com>
8471
8472 * dwarf2/read.c (struct die_info) <has_children>: New member.
8473 (dw2_get_file_names_reader): Remove has_children.
8474 (dw2_get_file_names): Update.
8475 (read_cutu_die_from_dwo): Remove has_children.
8476 (cutu_reader::init_tu_and_read_dwo_dies)
8477 (cutu_reader::cutu_reader): Update.
8478 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8479 Remove has_children.
8480 (build_type_psymtabs_1, process_skeletonless_type_unit)
8481 (load_partial_comp_unit, load_full_comp_unit): Update.
8482 (create_dwo_cu_reader): Remove has_children.
8483 (create_cus_hash_table, read_die_and_children): Update.
8484 (read_full_die_1,read_full_die): Remove has_children.
8485 (read_signatured_type): Update.
8486 (class cutu_reader) <has_children>: Remove.
8487
82ca8957
TT
84882020-02-08 Tom Tromey <tom@tromey.com>
8489
8490 * dwarf2/expr.c: Rename from dwarf2expr.c.
8491 * dwarf2/expr.h: Rename from dwarf2expr.h.
8492 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8493 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8494 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8495 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8496 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8497 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8498 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8499 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8500 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8501 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8502 * dwarf2/loc.c: Rename from dwarf2loc.c.
8503 * dwarf2/loc.h: Rename from dwarf2loc.h.
8504 * dwarf2/read.c: Rename from dwarf2read.c.
8505 * dwarf2/read.h: Rename from dwarf2read.h.
8506 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8507 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8508 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8509 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8510 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8511 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8512 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8513 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8514 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8515 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8516 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8517 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8518 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8519 Update.
8520 * Makefile.in (COMMON_SFILES): Update.
8521 (HFILES_NO_SRCDIR): Update.
8522
9e35d499
TT
85232020-02-08 Tom Tromey <tom@tromey.com>
8524
8525 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8526 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8527
1eba2311
TT
85282020-02-08 Tom Tromey <tom@tromey.com>
8529
8530 * dwarf2read.h (struct die_info): Don't declare.
8531
e41c2da2
TT
85322020-02-08 Tom Tromey <tom@tromey.com>
8533
8534 * dwarf2read.h (die_info_ptr): Remove typedef.
8535
4fc6c0d5
TT
85362020-02-08 Tom Tromey <tom@tromey.com>
8537
8538 * dwarf2read.c (read_call_site_scope)
8539 (handle_data_member_location, dwarf2_add_member_fn)
8540 (mark_common_block_symbol_computed, read_common_block)
8541 (attr_to_dynamic_prop, partial_die_info::read)
8542 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8543 (dwarf2_symbol_mark_computed, set_die_type): Update.
8544 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8545 method.
8546 (attr_form_is_block): Don't declare.
8547 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8548
cd6c91b4
TT
85492020-02-08 Tom Tromey <tom@tromey.com>
8550
8551 * dwarf2read.c (dwarf2_find_base_address, )
8552 (read_call_site_scope, rust_containing_type)
8553 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8554 (handle_data_member_location, dwarf2_add_member_fn)
8555 (get_alignment, read_structure_type, process_structure_scope)
8556 (mark_common_block_symbol_computed, read_common_block)
8557 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8558 (partial_die_info::read, read_attribute_value, new_symbol)
8559 (lookup_die_type, dwarf2_get_ref_die_offset)
8560 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8561 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8562 (dwarf2_symbol_mark_computed): Update.
8563 * dwarf2/attribute.h (struct attribute) <value_as_address,
8564 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8565 methods.
8566 (value_as_address, attr_form_is_section_offset)
8567 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8568 * dwarf2/attribute.c (attribute::value_as_address)
8569 (attribute::form_is_section_offset, attribute::form_is_constant)
8570 (attribute::form_is_ref): Now methods.
8571
162dce55
TT
85722020-02-08 Tom Tromey <tom@tromey.com>
8573
8574 * dwarf2read.c (struct attribute, DW_STRING)
8575 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8576 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8577 (attr_form_is_block, attr_form_is_section_offset)
8578 (attr_form_is_constant, attr_form_is_ref): Move.
8579 * dwarf2/attribute.h: New file.
8580 * dwarf2/attribute.c: New file, from dwarf2read.c.
8581 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8582
3054dd54
TT
85832020-02-08 Tom Tromey <tom@tromey.com>
8584
8585 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8586 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8587 Move.
8588 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8589 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8590 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8591 abbrev.c.
8592 * dwarf2/abbrev.h: New file.
8593 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8594 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8595
96b79293
TT
85962020-02-08 Tom Tromey <tom@tromey.com>
8597
8598 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8599 (dwarf2_section_size, dwarf2_get_section_info)
8600 (create_signatured_type_table_from_debug_names)
8601 (create_addrmap_from_aranges, read_debug_names_from_section)
8602 (get_gdb_index_contents_from_section, read_comp_unit_head)
8603 (error_check_comp_unit_head, read_abbrev_offset)
8604 (create_debug_type_hash_table, init_cu_die_reader)
8605 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8606 (read_comp_units_from_section, create_cus_hash_table)
8607 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8608 (create_dwp_v2_section, dwarf2_rnglists_process)
8609 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8610 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8611 (read_indirect_string_from_dwz, read_addr_index_1)
8612 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8613 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8614 (fill_in_loclist_baton): Update.
8615 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8616 get_containing_section, get_bfd_owner, get_bfd_section,
8617 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8618 (dwarf2_read_section, get_section_name, get_section_file_name)
8619 (get_containing_section, get_section_bfd_owner)
8620 (get_section_bfd_section, get_section_name, get_section_file_name)
8621 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8622 declare.
8623 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8624 (dwarf2_section_info::get_bfd_owner)
8625 (dwarf2_section_info::get_bfd_section)
8626 (dwarf2_section_info::get_name)
8627 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8628 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8629 (dwarf2_section_info::read): Now methods.
8630 * dwarf-index-write.c (class debug_names): Update.
8631
2c86cff9
TT
86322020-02-08 Tom Tromey <tom@tromey.com>
8633
8634 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8635 Move to dwarf2/section.h.
8636 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8637 (get_section_bfd_section, get_section_name)
8638 (get_section_file_name, get_section_id, get_section_flags)
8639 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8640 dwarf2/section.c.
8641 * dwarf2/section.h: New file.
8642 * dwarf2/section.c: New file, from dwarf2read.c.
8643 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8644
f4382c45
TT
86452020-02-08 Tom Tromey <tom@tromey.com>
8646
8647 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8648 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8649 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8650 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8651 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8652 * dwarf2/leb.h: New file, from dwarf2read.c.
8653 * dwarf2/leb.c: New file, from dwarf2read.c.
8654 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8655 Remove.
8656 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8657 (COMMON_SFILES): Add dwarf2/leb.c.
8658
01840b7a
JB
86592020-02-08 Joel Brobecker <brobecker@adacore.com>
8660
8661 GDB 9.1 released.
8662
dfcb27e4
IB
86632020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8664
8665 PR gdb/25190:
aac66a4c
SM
8666 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8667 * gdb/remote.c (remote_console_output): Update.
8668 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8669 (ui_file_puts): ...this.
8670 * gdb/ui-file.h (ui_file_puts): Add declaration.
8671 * gdb/utils.c (emit_style_escape): Update.
8672 (flush_wrap_buffer): Update.
8673 (fputs_maybe_filtered): Update.
8674 (fputs_unfiltered): Add function.
dfcb27e4 8675
faa17681
IB
86762020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8677
aac66a4c
SM
8678 * gdb/event-loop.c (gdb_wait_for_event): Update.
8679 * gdb/printcmd.c (printf_command): Update.
8680 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8681 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8682 (gdb_os_flush_stderr): Update.
8683 * gdb/remote.c (remote_console_output): Update.
8684 * gdb/ui-file.c (gdb_flush): Rename to...
8685 (ui_file_flush): ...this.
8686 (stderr_file::write): Update.
8687 (stderr_file::puts): Update.
8688 * gdb/ui-file.h (gdb_flush): Rename to...
8689 (ui_file_flush): ...this.
8690 * gdb/utils.c (gdb_flush): Add function.
8691 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8692
5abbbe1d
TT
86932020-02-07 Tom Tromey <tromey@adacore.com>
8694
8695 PR breakpoints/24915:
8696 * source.c (find_and_open_source): Do not check basenames_may_differ.
8697
919adfe8
TT
86982020-02-07 Tom Tromey <tom@tromey.com>
8699
8700 * README: Update gdbserver documentation.
8701 * gdbserver: Move to top level.
8702 * configure.tgt (build_gdbserver): Remove.
8703 * configure.ac: Remove --enable-gdbserver.
8704 * configure: Rebuild.
8705 * Makefile.in (distclean): Don't mention gdbserver.
8706
1d5d29e7
SV
87072020-02-06 Shahab Vahedi <shahab@synopsys.com>
8708
8709 * source-cache.c (source_cache::ensure): Surround
8710 get_plain_source_lines with a try/catch.
8711 (source_cache::get_line_charpos): Get rid of try/catch
8712 and only check for the return value of "ensure".
8713 * tui/tui-source.c (tui_source_window::set_contents):
8714 Simplify "nlines" calculation.
8715
6eb1129c
SV
87162020-02-06 Shahab Vahedi <shahab@synopsys.com>
8717
8718 * MAINTAINERS (Write After Approval): Add myself.
8719
c6a42d11
CB
87202020-02-05 Christian Biesinger <cbiesinger@google.com>
8721
8722 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8723 function call.
8724
c8ecdda6
CB
87252020-02-05 Christian Biesinger <cbiesinger@google.com>
8726
8727 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8728
f6480e70
MR
87292020-02-05 Maciej W. Rozycki <macro@wdc.com>
8730
8731 * nat/riscv-linux-tdesc.h: New file.
8732 * nat/riscv-linux-tdesc.c: New file, taking code from...
8733 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8734 ... here.
8735 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8736 NATDEPFILES.
8737
dcc9fbc6
AB
87382020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8739
8740 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8741 we don't set the fake simulator ptid to the null_ptid.
8742
719546c4
SM
87432020-02-03 Simon Marchi <simon.marchi@efficios.com>
8744
8745 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8746 * gdbthread.h (class thread_info) <resumed>: Likewise.
8747 * infrun.c (resume_1): Likewise.
8748 (proceed): Likewise.
8749 (infrun_thread_stop_requested): Likewise.
8750 (stop_all_threads): Likewise.
8751 (handle_inferior_event): Likewise.
8752 (restart_threads): Likewise.
8753 (finish_step_over): Likewise.
8754 (keep_going_stepped_thread): Likewise.
8755 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8756 (linux_handle_extended_wait): Likewise.
8757 * record-btrace.c (get_thread_current_frame_id): Likewise.
8758 * record-full.c (record_full_wait_1): Likewise.
8759 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8760 * target.c (target_resume): Likewise.
8761 * thread.c (set_running_thread): Likewise.
8762
e409c542
AKS
87632020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8764
8765 * f-valprint.c (f77_print_array_1): Changed datatype of index
8766 variable to LONGEST from int to enable it to contain bound
8767 values correctly.
8768
ee98c0da
MR
87692020-02-03 Maciej W. Rozycki <macro@wdc.com>
8770
8771 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8772 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8773 offsets according to FLEN determined.
8774 (riscv_linux_nat_target::read_description): Determine FLEN
8775 dynamically.
8776 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8777 according to FLEN determined.
8778 (riscv_linux_nat_target::store_registers): Likewise.
8779
aa66aac4
SV
87802020-02-01 Shahab Vahedi <shahab@synopsys.com>
8781
8782 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8783 when reg->group is empty and reggroup is not.
8784
fd9faca8
TT
87852020-01-31 Tom Tromey <tromey@adacore.com>
8786
8787 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8788 Call beneath target's mourn_inferior after unpushing.
8789
42330a68
AB
87902020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8791
8792 PR tui/9765
8793 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8794 have enough lines to fill the screen, still return the lowest
8795 address we found.
8796
7a27a45b
AB
87972020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8798
8799 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8800 '-', '<', and '>' commands.
8801
c47f70e2
PA
88022020-01-29 Pedro Alves <palves@redhat.com>
8803 Sergio Durigan Junior <sergiodj@redhat.com>
8804
8805 * infcmd.c (construct_inferior_arguments): Assert that
8806 'argc' is greater than 0.
8807
5133a315
LM
88082020-01-29 Luis Machado <luis.machado@linaro.org>
8809
8810 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8811 (BRK_INSN_MASK): Define to 0xd4200000.
8812 (aarch64_program_breakpoint_here_p): New function.
8813 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8814 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8815 breakpoint.c.
8816 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8817 breakpoint.h
8818 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8819 call gdbarch_program_breakpoint_here_p.
8820 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8821 default_program_breakpoint_here_p, changed return type to bool and
8822 simplified.
8823 * breakpoint.h (program_breakpoint_here): Moved prototype to
8824 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8825 return type to bool.
8826 * gdbarch.c: Regenerate.
8827 * gdbarch.h: Regenerate.
8828 * gdbarch.sh (program_breakpoint_here_p): New method.
8829 * infrun.c (handle_signal_stop): Call
8830 gdbarch_program_breakpoint_here_p.
8831
168f8c6b
TT
88322020-01-26 Tom Tromey <tom@tromey.com>
8833
8834 * ctfread.c (struct ctf_fp_info): Reindent.
8835 (_initialize_ctfread): Remove.
8836
128a391f
TT
88372020-01-26 Tom Tromey <tom@tromey.com>
8838
8839 * psymtab.c (partial_map_expand_apply)
8840 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8841 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8842 (psym_print_stats, psym_expand_symtabs_for_function)
8843 (psym_map_symbol_filenames, psym_map_matching_symbols)
8844 (psym_expand_symtabs_matching)
8845 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8846 (maintenance_check_psymtabs): Use new methods.
8847 * psympriv.h (struct partial_symtab) <readin_p,
8848 get_compunit_symtab>: New methods.
8849 <readin, compunit_symtab>: Remove members.
8850 (struct standard_psymtab): New.
8851 (struct legacy_psymtab): Derive from standard_psymtab.
8852 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8853 standard_psymtab.
8854 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8855
0494dbec
TT
88562020-01-26 Tom Tromey <tom@tromey.com>
8857
8858 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8859 read_dependencies. Add assert.
8860 * psymtab.c (partial_symtab::read_dependencies): New method.
8861 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8862 method.
8863 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8864 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8865 read_dependencies.
8866 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8867 Add assert.
8868
8566b89b
TT
88692020-01-26 Tom Tromey <tom@tromey.com>
8870
8871 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8872 Call expand_psymtab.
8873 (xcoff_read_symtab): Call expand_psymtab.
8874 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8875 legacy_expand_psymtab.
8876 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8877 method.
8878 (struct legacy_psymtab) <expand_psymtab>: Implement.
8879 <legacy_expand_psymtab>: New member.
8880 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8881 (parse_partial_symbols): Set legacy_expand_psymtab.
8882 (psymtab_to_symtab_1): Change argument order. Call
8883 expand_psymtab.
8884 (new_psymtab): Set legacy_expand_psymtab.
8885 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8886 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8887 expand_psymtab.
8888 (dwarf2_psymtab::expand_psymtab): Rename from
8889 psymtab_to_symtab_1. Call expand_psymtab.
8890 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8891 (dbx_end_psymtab): Likewise.
8892 (dbx_psymtab_to_symtab_1): Change argument order. Call
8893 expand_psymtab.
8894 (dbx_read_symtab): Call expand_psymtab.
8895 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8896 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8897 (ctf_psymtab::read_symtab): Call expand_psymtab.
8898
077cbab2
TT
88992020-01-26 Tom Tromey <tom@tromey.com>
8900
8901 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8902 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8903 messages.
8904 * mdebugread.c (mdebug_read_symtab): Remove prints.
8905 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8906 assert.
8907 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8908
891813be
TT
89092020-01-26 Tom Tromey <tom@tromey.com>
8910
8911 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8912 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8913 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8914 legacy_symtab.
8915 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8916 * psymtab.c (psymtab_to_symtab): Call method.
8917 (dump_psymtab): Update.
8918 * psympriv.h (struct partial_symtab): Add virtual destructor.
8919 <read_symtab>: New method.
8920 (struct legacy_symtab): New.
8921 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8922 (struct pst_map) <pst>: Now a legacy_psymtab.
8923 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8924 (new_psymtab): Use legacy_psymtab.
8925 * dwarf2read.h (struct dwarf2_psymtab): New.
8926 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8927 * dwarf2read.c (dwarf2_create_include_psymtab)
8928 (dwarf2_build_include_psymtabs, create_type_unit_group)
8929 (create_partial_symtab, process_psymtab_comp_unit_reader)
8930 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8931 (set_partial_user): Use dwarf2_psymtab.
8932 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8933 (psymtab_to_symtab_1, process_full_comp_unit)
8934 (process_full_type_unit, dwarf2_ranges_read)
8935 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8936 (dwarf_decode_lines): Use dwarf2_psymtab.
8937 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8938 (add_address_entry_worker, write_one_signatured_type)
8939 (recursively_count_psymbols, recursively_write_psymbols)
8940 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8941 (write_debug_names): Likewise.
8942 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8943 <pst>: Now a legacy_psymtab.
8944 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8945 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8946 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8947 * ctfread.c (struct ctf_psymtab): New.
8948 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8949 ctf_psymtab.
8950 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8951 (create_partial_symtab): Return a ctf_psymtab.
8952 (scan_partial_symbols): Update.
8953
c3693a1d
TT
89542020-01-26 Tom Tromey <tom@tromey.com>
8955
8956 * xcoffread.c (xcoff_start_psymtab): Use new.
8957 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8958 renamed from start_psymtab_common.
8959 * psympriv.h (struct partial_symtab): Add new constructor.
8960 (start_psymtab_common): Don't declare.
8961 * mdebugread.c (parse_partial_symbols): Use new.
8962 * dwarf2read.c (create_partial_symtab): Use new.
8963 * dbxread.c (start_psymtab): Use new.
8964 * ctfread.c (create_partial_symtab): Use new.
8965
32caafd0
TT
89662020-01-26 Tom Tromey <tom@tromey.com>
8967
8968 * xcoffread.c (xcoff_end_psymtab): Use new.
8969 * psymtab.c (start_psymtab_common): Use new.
8970 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8971 Update.
8972 * psympriv.h (struct partial_symtab): Add parameters to
8973 constructor. Don't inline.
8974 (allocate_psymtab): Don't declare.
8975 * mdebugread.c (new_psymtab): Use new.
8976 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8977 * dbxread.c (dbx_end_psymtab): Use new.
8978
abaa2f23
TT
89792020-01-26 Tom Tromey <tom@tromey.com>
8980
8981 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8982 allocate_psymtab. Update documentation.
8983 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8984 allocate_psymtab. Do not use new.
8985 (allocate_psymtab): Use new. Update.
8986
6d94535f
TT
89872020-01-26 Tom Tromey <tom@tromey.com>
8988
8989 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8990 * psymtab.c (psym_print_stats): Update.
8991 * psympriv.h (struct partial_symtab) <readin,
8992 psymtabs_addrmap_supported, anonymous>: Now bool.
8993 * mdebugread.c (psymtab_to_symtab_1): Update.
8994 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
8995 (build_type_psymtabs_reader, psymtab_to_symtab_1)
8996 (process_full_comp_unit, process_full_type_unit): Update.
8997 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8998 * ctfread.c (psymtab_to_symtab): Update.
8999
6f17252b
TT
90002020-01-26 Tom Tromey <tom@tromey.com>
9001
9002 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9003 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9004 * psymtab.c (psymtab_storage): Delete psymtabs.
9005 (psymtab_storage::allocate_psymtab): Use new.
9006 (psymtab_storage::discard_psymtab): Use delete.
9007 * psympriv.h (struct partial_symtab): Add constructor and
9008 initializers.
9009
f6f1cebc
TT
90102020-01-26 Tom Tromey <tom@tromey.com>
9011
9012 * machoread.c: Do not include psympriv.h.
9013
e47e48f6
PW
90142020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9015
9016 * NEWS: Mention the new option and the set/show commands.
9017
a2fedca9
PW
90182020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9019
9020 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9021 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9022 (validate_exec_file): New variables, enums, functions.
9023 (exec_file_locate_attach, print_section_info): Style the filenames.
9024 (_initialize_exec): Install show_exec_file_mismatch_command and
9025 set_exec_file_mismatch_command.
9026 * gdbcore.h (validate_exec_file): Declare.
9027 * infcmd.c (attach_command): Call validate_exec_file.
9028 * remote.c ( remote_target::remote_add_inferior): Likewise.
9029
7ffa82e1
AB
90302020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9031
9032 * frame.c (find_frame_sal): Move call to get_next_frame into more
9033 inner scope.
9034 * inline-frame.c (inilne_state) <inline_state>: Update argument
9035 types.
9036 (inilne_state) <skipped_symbol>: Rename to...
9037 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9038 (skip_inline_frames): Build vector of skipped symbols and use this
9039 to reate the inline_state.
9040 (inline_skipped_symbol): Add a comment and some assertions, fetch
9041 skipped symbol from the list.
9042
3d92a3e3
AB
90432020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9044
9045 * buildsym.c (lte_is_less_than): Delete.
9046 (buildsym_compunit::end_symtab_with_blockvector): Create local
9047 lambda function to sort line table entries, and use
9048 std::stable_sort instead of std::sort.
9049 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9050 markers when looking for a previous line.
9051
94a72be7
AB
90522020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9053
9054 * dwarf2read.c (lnp_state_machine::record_line): Include
9055 end_sequence parameter in debug print out. Record the line if we
9056 are at an end_sequence marker even if it's not the start of a
9057 statement.
9058 * symmisc.c (maintenance_print_one_line_table): Print end of
9059 sequence markers with 'END' not '0'.
9060
53af73bf
PA
90612020-01-24 Pedro Alves <palves@redhat.com>
9062
9063 PR gdb/25410
9064 * thread.c (scoped_restore_current_thread::restore): Use
9065 switch_to_inferior_no_thread.
9066 * exec.c: Include "progspace-and-thread.h".
9067 (add_target_sections, remove_target_sections):
9068 scoped_restore_current_pspace_and_thread instead of
9069 scoped_restore_current_thread.
9070 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9071 and aspace to the inferior before calling clone_program_space.
9072 Remove stale comment.
9073
3050c6f4
CB
90742020-01-24 Christian Biesinger <cbiesinger@google.com>
9075
9076 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9077 (arm_netbsd_nat_target::fetch_registers): ...this.
9078 (arm_nbsd_nat_target::store_registers): Rename to...
9079 (arm_netbsd_nat_target::store_registers): ...this.
9080
73685c7e
CB
90812020-01-24 Christian Biesinger <cbiesinger@google.com>
9082
9083 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9084 register_t.
9085
89203d40
CB
90862020-01-24 Christian Biesinger <cbiesinger@google.com>
9087
9088 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9089 Update comment.
9090 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9091 Likewise.
9092 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9093 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9094 the correct replacement (iterate_over_regset_sections).
9095 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9096 Update comment.
9097
1ba1ac88
AB
90982020-01-24 Graham Markall <graham.markall@embecosm.com>
9099
9100 PR gdb/23718
9101 * gdb/python/python.c (execute_gdb_command): Call
9102 async_enable_stdin in catch block.
9103
f3364a6d
AB
91042020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9105
9106 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9107 SWITCH_THRU_ALL_UIS.
9108
733d0a67
AB
91092020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9110
9111 PR tui/9765
9112 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9113 comment, add extra parameter, and update to store previous symbol
9114 when appropriate.
9115 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9116 add extra parameter.
9117 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9118 remove unneeded parameter, add try/catch around gdb_print_insn,
9119 rewrite to add items to asm_lines vector.
9120 (tui_find_backward_disassembly_start_address): New function.
9121 (tui_find_disassembly_address): Updated throughout.
9122 (tui_disasm_window::set_contents): Update for changes to
9123 tui_disassemble.
9124 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9125 number of lines to scroll.
9126
b3b3bada
SM
91272020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9128
9129 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9130 (SECT_OFF_DATA): Likewise.
9131 (SECT_OFF_RODATA): Likewise.
9132 (SECT_OFF_TEXT): Likewise.
9133 (SECT_OFF_BSS): Likewise.
9134 (struct objfile) <text_section_offset, data_section_offset>: New
9135 methods.
9136 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9137 objfile::text_section_offset.
9138 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9139 * coffread.c (coff_symtab_read): Likewise.
9140 (enter_linenos): Likewise.
9141 (process_coff_symbol): Likewise.
9142 * ctfread.c (get_objfile_text_range): Likewise.
9143 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9144 Use objfile::data_section_offset.
9145 * dwarf2-frame.c (execute_cfa_program): Use
9146 objfile::text_section_offset.
9147 (dwarf2_frame_find_fde): Likewise.
9148 * dwarf2read.c (create_addrmap_from_index): Likewise.
9149 (create_addrmap_from_aranges): Likewise.
9150 (dw2_find_pc_sect_compunit_symtab): Likewise.
9151 (process_psymtab_comp_unit_reader): Likewise.
9152 (add_partial_symbol): Likewise.
9153 (add_partial_subprogram): Likewise.
9154 (process_full_comp_unit): Likewise.
9155 (read_file_scope): Likewise.
9156 (read_func_scope): Likewise.
9157 (read_lexical_block_scope): Likewise.
9158 (read_call_site_scope): Likewise.
9159 (dwarf2_rnglists_process): Likewise.
9160 (dwarf2_ranges_process): Likewise.
9161 (dwarf2_ranges_read): Likewise.
9162 (dwarf_decode_lines_1): Likewise.
9163 (new_symbol): Likewise.
9164 (dwarf2_fetch_die_loc_sect_off): Likewise.
9165 (dwarf2_per_cu_text_offset): Likewise.
9166 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9167 * hppa-tdep.c (read_unwind_info): Likewise.
9168 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9169 * psympriv.h (struct partial_symtab): Likewise.
9170 * psymtab.c (find_pc_sect_psymtab): Likewise.
9171 * solib-svr4.c (enable_break): Likewise.
9172 * stap-probe.c (relocate_address): Use
9173 objfile::data_section_offset.
9174 * xcoffread.c (enter_line_range): Use
9175 objfile::text_section_offset.
9176 (read_xcoff_symtab): Likewise.
9177
ab53f382
SM
91782020-01-23 Simon Marchi <simon.marchi@efficios.com>
9179
9180 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9181 declaration to narrower scopes.
9182
e7eee665
SM
91832020-01-23 Simon Marchi <simon.marchi@efficios.com>
9184
9185 * darwin-nat.h (struct darwin_exception_msg, enum
9186 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9187 Move up.
9188 (class darwin_nat_target) <wait_1, check_new_threads,
9189 decode_exception_message, decode_message, stop_inferior,
9190 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9191 * darwin-nat.c (darwin_check_new_threads): Rename to...
9192 (darwin_nat_target::check_new_threads): ... this.
9193 (darwin_suspend_inferior_it): Remove.
9194 (darwin_decode_exception_message): Rename to...
9195 (darwin_nat_target::decode_exception_message): ... this.
9196 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9197 (darwin_decode_message): Rename to...
9198 (darwin_nat_target::decode_message): ... this.
9199 (cancel_breakpoint): Rename to...
9200 (darwin_nat_target::cancel_breakpoint): ... this.
9201 (darwin_wait): Rename to...
9202 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9203 instead of iterate_over_inferiors.
9204 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9205 (darwin_stop_inferior): Rename to...
9206 (darwin_nat_target::stop_inferior): ... this.
9207 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9208 (darwin_init_thread_list): Rename to...
9209 (darwin_nat_target::init_thread_list): ... this.
9210 (darwin_ptrace_him): Rename to...
9211 (darwin_nat_target::ptrace_him): ... this.
9212 (darwin_nat_target::create_inferior): Pass lambda function to
9213 fork_inferior.
9214 (darwin_nat_target::detach): Call stop_inferior instead of
9215 darwin_stop_inferior.
9216 * fork-inferior.h (fork_inferior): Change init_trace_fun
9217 parameter to gdb::function_view.
9218 * fork-inferior.c (fork_inferior): Likewise.
9219
c162ed3e
HD
92202020-01-23 Hannes Domani <ssbssa@yahoo.de>
9221
9222 * i386-cygwin-tdep.c (core_process_module_section): Update.
9223 * windows-nat.c (struct lm_info_windows): Add text_offset.
9224 (windows_xfer_shared_libraries): Update.
9225 * windows-tdep.c (windows_xfer_shared_library):
9226 Add text_offset_cached argument.
9227 * windows-tdep.h (windows_xfer_shared_library): Update.
9228
a1237872
SM
92292020-01-21 Simon Marchi <simon.marchi@efficios.com>
9230
9231 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9232
b3ee6dd9
SM
92332020-01-21 Simon Marchi <simon.marchi@efficios.com>
9234
9235 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9236 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9237 replace with range-based for.
9238 (gdbsim_interrupt_inferior): Remove.
9239 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9240 with a range-based for. Inline code from
9241 gdbsim_interrupt_inferior.
9242
f9fac3c8
SM
92432020-01-21 Simon Marchi <simon.marchi@efficios.com>
9244
9245 * infrun.c (proceed): Fix indentation.
9246
f6474de9
TT
92472020-01-21 Tom Tromey <tromey@adacore.com>
9248
9249 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9250 * python/python.c (python_extension_ops): Update.
9251 (gdbpy_colorize): New function.
9252 * python/lib/gdb/__init__.py (colorize): New function.
9253 * extension.h (ext_lang_colorize): Declare.
9254 * extension.c (ext_lang_colorize): New function.
9255 * extension-priv.h (struct extension_language_ops) <colorize>: New
9256 member.
9257 * cli/cli-style.c (_initialize_cli_style): Update help text.
9258
f0c702d4
LM
92592020-01-21 Luis Machado <luis.machado@linaro.org>
9260
9261 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9262 <cond>: Change type to bool.
9263 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9264 (aarch64_displaced_step_cb): Likewise.
9265 (aarch64_displaced_step_tb): Likewise.
9266
1ab139e5
LM
92672020-01-21 Luis Machado <luis.machado@linaro.org>
9268
9269 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9270 output.
9271
0c271889
LM
92722020-01-21 Luis Machado <luis.machado@linaro.org>
9273
9274 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9275 <pc_adjust>: Adjust the documentation.
9276 (aarch64_displaced_step_fixup): Check if PC really moved before
9277 adjusting it.
9278
4d89c1c7
TT
92792020-01-19 Tom Tromey <tom@tromey.com>
9280
9281 * disasm.c (~gdb_disassembler): New destructor.
9282 (gdb_buffered_insn_length): Call disassemble_free_target.
9283 * disasm.h (class gdb_disassembler): Declare destructor. Use
9284 DISABLE_COPY_AND_ASSIGN.
9285
c0ab21c2
TT
92862020-01-19 Tom Tromey <tom@tromey.com>
9287
9288 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9289 (die_reader_func_ftype): Remove.
9290 (cutu_reader): New class.
9291 (dw2_get_file_names_reader): Remove "data" parameter.
9292 (dw2_get_file_names): Use cutu_reader.
9293 (create_debug_type_hash_table): Update.
9294 (read_cutu_die_from_dwo): Update comment.
9295 (lookup_dwo_unit): Add dwo_name parameter.
9296 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9297 die_reader_func_ftype and data parameters.
9298 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9299 Remove die_reader_func_ftype and data parameters.
9300 (~cutu_reader): New; from init_cutu_and_read_dies.
9301 (cutu_reader::cutu_reader): Rename from
9302 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9303 and data parameters.
9304 (init_cutu_and_read_dies_simple): Remove.
9305 (struct process_psymtab_comp_unit_data): Remove.
9306 (process_psymtab_comp_unit_reader): Remove data parameter; add
9307 want_partial_unit and pretend_language parameters.
9308 (process_psymtab_comp_unit): Use cutu_reader.
9309 (build_type_psymtabs_reader): Remove data parameter.
9310 (build_type_psymtabs_1): Use cutu_reader.
9311 (process_skeletonless_type_unit): Likewise.
9312 (load_partial_comp_unit_reader): Remove.
9313 (load_partial_comp_unit): Use cutu_reader.
9314 (load_full_comp_unit_reader): Remove.
9315 (load_full_comp_unit): Use cutu_reader.
9316 (struct create_dwo_cu_data): Remove.
9317 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9318 dwo_unit parameters.
9319 (create_cus_hash_table): Use cutu_reader.
9320 (struct dwarf2_read_addr_index_data): Remove.
9321 (dwarf2_read_addr_index_reader): Remove.
9322 (dwarf2_read_addr_index): Use cutu_reader.
9323 (read_signatured_type_reader): Remove.
9324 (read_signatured_type): Use cutu_reader.
9325
45bbae5c
TT
93262020-01-19 Tom Tromey <tom@tromey.com>
9327
9328 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9329 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9330 (tui_wrefresh): Declare.
9331 * tui/tui-wingeneral.c (suppress_output): New global.
9332 (tui_suppress_output, ~tui_suppress_output): New constructor and
9333 destructor.
9334 (tui_wrefresh): New function.
9335 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9336 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9337 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9338 method.
9339 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9340 tui_wrefresh.
9341 (tui_data_window::no_refresh): New method.
9342 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9343 (tui_reg_command): Use tui_suppress_output
9344 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9345 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9346 method.
9347 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9348
4f13c1c0
TT
93492020-01-19 Tom Tromey <tom@tromey.com>
9350
9351 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9352 Handle case where symtab is null.
9353
fa47e446
SM
93542020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9355
9356 * linux-fork.c (one_fork_p): Simplify.
9357
26f42329
SM
93582020-01-17 Simon Marchi <simon.marchi@efficios.com>
9359
9360 * top.c (struct qt_args): Remove.
9361 (kill_or_detach): Change return type to void, replace `void *`
9362 parameter with a proper one.
9363 (print_inferior_quit_action): Likewise.
9364 (quit_confirm): Use range-based for loop to iterate over inferiors.
9365 (quit_force): Likewise.
9366
a9ac81b1
SM
93672020-01-17 Simon Marchi <simon.marchi@efficios.com>
9368
9369 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9370 `void *` parameter with proper parameters.
9371 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9372 (print_one_inferior): Change return type to void, replace `void *`
9373 parameter with proper parameters.
9374 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9375 inferiors.
9376 (get_other_inferior): Remove.
9377 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9378 inferiors.
9379
788eca49
SM
93802020-01-17 Simon Marchi <simon.marchi@efficios.com>
9381
9382 * mi/mi-interp.c (report_initial_inferior): Remove.
9383 (mi_interp::init): Use range-based for to iterate over inferiors.
9384
d9bc85b6
SM
93852020-01-17 Simon Marchi <simon.marchi@efficios.com>
9386
9387 * python/py-inferior.c (build_inferior_list): Remove.
9388 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9389
40c94099
CB
93902020-01-16 Christian Biesinger <cbiesinger@google.com>
9391
9392 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9393 (btrace_stitch_trace): Likewise.
9394 * charset.c (intermediate_encoding): Likewise (vaild).
9395 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9396 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9397 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9398
e0cdfe3c
HD
93992020-01-16 Hannes Domani <ssbssa@yahoo.de>
9400
9401 * windows-tdep.c (windows_get_tlb_type):
9402 Add rtl_user_process_parameters type.
9403
790f1718 94042020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9405 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9406
9407 PR build/24805
9408 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9409 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9410 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9411 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9412 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9413 (ps_plog): Redeclare exported functions with default visibility.
9414
3112ed97
NA
94152020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9416
9417 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9418 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9419
8dc3273e
SM
94202020-01-15 Simon Marchi <simon.marchi@efficios.com>
9421
9422 * infcmd.c (post_create_inferior): Use get_thread_regcache
9423 instead of get_current_regcache.
9424
ff47f4f0
TT
94252020-01-14 Tom Tromey <tom@tromey.com>
9426
9427 PR symtab/12535:
9428 * python/python.c (gdbpy_decode_line): Treat empty string the same
9429 as no argument.
9430
975f45b7
TT
94312020-01-14 Tom Tromey <tom@tromey.com>
9432
9433 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9434
25e57356
TT
94352020-01-14 Tom Tromey <tom@tromey.com>
9436
9437 * nat/linux-btrace.c: Don't include <config.h>.
9438 * nat/linux-ptrace.c: Don't include <config.h>.
9439 * nat/x86-linux-dregs.c: Don't include <config.h>.
9440
05ea2a05
TT
94412020-01-14 Tom Tromey <tom@tromey.com>
9442
9443 * configure: Rebuild.
9444 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9445
01027315
TT
94462020-01-14 Tom Tromey <tom@tromey.com>
9447
9448 * nat/x86-linux-dregs.c: Include configh.h.
9449 * nat/linux-ptrace.c: Include configh.h.
9450 * nat/linux-btrace.c: Include configh.h.
9451 * defs.h: Include config.h, bfd.h.
9452 * configure.ac: Don't source common.host.
9453 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9454 * configure: Rebuild.
9455 * acinclude.m4: Update path.
9456 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9457 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9458 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9459 (CLIBS): Add LIBSUPPORT.
9460 (CDEPS): Likewise.
9461 (COMMON_SFILES): Remove gdbsupport files.
9462 (HFILES_NO_SRCDIR): Likewise.
9463 (stamp-version): Update path to create-version.sh.
9464 (ALLDEPFILES): Remove gdbsupport files.
9465
b2ceabe8
TT
94662020-01-14 Tom Tromey <tom@tromey.com>
9467
9468 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9469 USE_WIN32API when needed.
9470 * configure.ac (USE_WIN32API): Don't define.
9471 (WIN32LIBS): Use WIN32APILIBS.
9472 * configure: Rebuild.
9473
25c51f71
TT
94742020-01-14 Tom Tromey <tom@tromey.com>
9475
9476 * configure: Rebuild.
9477 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9478
717c684d
BE
94792020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9480
9481 * skip.c (skip_function_command): Make skip w/o arguments use the
9482 name of the inlined function if pc is inside any inlined function.
9483
7da6a5b9
LM
94842020-01-14 Luis Machado <luis.machado@linaro.org>
9485
9486 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9487 * infrun.c (resume_1): Likewise.
9488 (handle_inferior_event): Remove stale comment.
9489 * linux-nat.c (linux_nat_target::resume): Update comments.
9490 (save_stop_reason): Likewise.
9491 (linux_nat_filter_event): Likewise.
9492 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9493
44e4c775
AB
94942020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9495
9496 * elfread.c (record_minimal_symbol): Set section index to 0 for
9497 non-allocatable sections.
9498
18a8505e
AT
9499
95002020-01-13 Ali Tamur <tamur@google.com>
9501
9502 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9503 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9504 to gdb::optional. Update comments.
9505 (dwo_file): Update comments.
9506 (read_attribute): Update API to take an additional out parameter,
9507 need_reprocess. This is used to mark attributes that need other
9508 attributes (e.g. str_offsets_base) for correct computation which may not
9509 have been read yet.
9510 (read_attribute_reprocess): New function declaration.
9511 (read_addr_index): Likewise.
9512 (read_dwo_str_index): Likewise.
9513 (read_stub_str_index): Likewise.
9514 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9515 (lookup_addr_base): New function definition.
9516 (lookup_ranges_base): Likewise.
9517 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9518 lookup_ranges_base.
9519 (init_cutu_and_read_dies): Update comments.
9520 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9521 unit. This is used to inherit parent's str_offsets_base and addr_base.
9522 Update comments.
9523 (init_cutu_and_read_dies_simple): Reflect API changes.
9524 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9525 (create_cus_hash_table): Change API to take parent compile unit.
9526 Reflect API changes.
9527 (open_and_init_dwo_file): Reflect API changes.
9528 (dwarf2_get_pc_bounds): Update comments.
9529 (dwarf2_record_block_ranges): Likewise.
9530 (read_full_die_1): Change implementation to reprocess attributes that
9531 need str_offsets_base and addr_base.
9532 (partial_die_info::read): Likewise.
9533 (read_attribute_reprocess): New function definition.
9534 (read_attribute_value): Change API to take an additional out parameter,
9535 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9536 when a non-dwo compile unit has index based attributes.
9537 (read_attribute): Reflect API changes.
9538 (read_addr_index_1): Reflect API changes. Update comments.
9539 (dwarf2_read_addr_index_data): Reflect API changes.
9540 (dwarf2_read_addr_index): Likewise.
9541 (read_str_index): Change API and implementation. This becomes a helper
9542 to be used by the new string index related methods. Update error
9543 message and comments.
9544 (read_dwo_str_index): New function definition.
9545 (read_stub_str_index): Likewise.
9546 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9547 * symfile.h (dwarf2_debug_sections): Likewise.
9548 * xcoffread.c (dwarf2_debug_sections): Likewise.
9549
0cac9354
SM
95502020-01-13 Simon Marchi <simon.marchi@efficios.com>
9551
9552 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9553 core_reg_sect type to gdb_byte *.
9554 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9555 * cris-tdep.c (fetch_core_registers): Likewise.
9556 * corelow.c (core_target::get_core_register_section): Change
9557 type of `contents` to gdb::byte_vector.
9558
9a6d629c
AB
95592020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9560
9561 * tui/tui-wingeneral.c (box_win): Position the title in the center
9562 of the border.
9563
d8b2f9e3
SM
95642020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9565
9566 * corelow.c (core_target::get_core_register_section): Use
9567 std::vector instead of alloca.
9568
bb564c58
SM
95692020-01-13 Simon Marchi <simon.marchi@efficios.com>
9570
9571 * warning.m4: Add -Wmissing-declarations to build_warnings.
9572 * configure: Re-generate.
9573
6b366111
SM
95742020-01-13 Simon Marchi <simon.marchi@efficios.com>
9575
9576 * python/python.c (init__gdb_module): Add declaration.
9577
6c265988
SM
95782020-01-13 Simon Marchi <simon.marchi@efficios.com>
9579
9580 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9581 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9582 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9583 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9584 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9585 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9586 * ada-exp.y (_initialize_ada_exp): Add declaration.
9587 * ada-lang.c (_initialize_ada_language): Add declaration.
9588 * ada-tasks.c (_initialize_tasks): Add declaration.
9589 * agent.c (_initialize_agent): Add declaration.
9590 * aix-thread.c (_initialize_aix_thread): Add declaration.
9591 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9592 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9593 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9594 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9595 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9596 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9597 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9598 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9599 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9600 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9601 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9602 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9603 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9604 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9605 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9606 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9607 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9608 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9609 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9610 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9611 * annotate.c (_initialize_annotate): Add declaration.
9612 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9613 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9614 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9615 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9616 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9617 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9618 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9619 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9620 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9621 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9622 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9623 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9624 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9625 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9626 * auto-load.c (_initialize_auto_load): Add declaration.
9627 * auxv.c (_initialize_auxv): Add declaration.
9628 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9629 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9630 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9631 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9632 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9633 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9634 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9635 * breakpoint.c (_initialize_breakpoint): Add declaration.
9636 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9637 * btrace.c (_initialize_btrace): Add declaration.
9638 * charset.c (_initialize_charset): Add declaration.
9639 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9640 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9641 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9642 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9643 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9644 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9645 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9646 * coffread.c (_initialize_coffread): Add declaration.
9647 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9648 * compile/compile.c (_initialize_compile): Add declaration.
9649 * complaints.c (_initialize_complaints): Add declaration.
9650 * completer.c (_initialize_completer): Add declaration.
9651 * copying.c (_initialize_copying): Add declaration.
9652 * corefile.c (_initialize_core): Add declaration.
9653 * corelow.c (_initialize_corelow): Add declaration.
9654 * cp-abi.c (_initialize_cp_abi): Add declaration.
9655 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9656 * cp-support.c (_initialize_cp_support): Add declaration.
9657 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9658 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9659 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9660 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9661 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9662 * ctfread.c (_initialize_ctfread): Add declaration.
9663 * d-lang.c (_initialize_d_language): Add declaration.
9664 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9665 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9666 * dbxread.c (_initialize_dbxread): Add declaration.
9667 * dcache.c (_initialize_dcache): Add declaration.
9668 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9669 * disasm.c (_initialize_disasm): Add declaration.
9670 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9671 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9672 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9673 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9674 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9675 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9676 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9677 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9678 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9679 * elfread.c (_initialize_elfread): Add declaration.
9680 * exec.c (_initialize_exec): Add declaration.
9681 * extension.c (_initialize_extension): Add declaration.
9682 * f-lang.c (_initialize_f_language): Add declaration.
9683 * f-valprint.c (_initialize_f_valprint): Add declaration.
9684 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9685 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9686 * filesystem.c (_initialize_filesystem): Add declaration.
9687 * findcmd.c (_initialize_mem_search): Add declaration.
9688 * findvar.c (_initialize_findvar): Add declaration.
9689 * fork-child.c (_initialize_fork_child): Add declaration.
9690 * frame-base.c (_initialize_frame_base): Add declaration.
9691 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9692 * frame.c (_initialize_frame): Add declaration.
9693 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9694 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9695 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9696 * gcore.c (_initialize_gcore): Add declaration.
9697 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9698 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9699 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9700 * gdbarch.c (_initialize_gdbarch): Add declaration.
9701 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9702 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9703 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9704 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9705 * go-lang.c (_initialize_go_language): Add declaration.
9706 * go32-nat.c (_initialize_go32_nat): Add declaration.
9707 * guile/guile.c (_initialize_guile): Add declaration.
9708 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9709 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9710 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9711 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9712 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9713 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9714 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9715 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9716 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9717 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9718 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9719 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9720 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9721 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9722 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9723 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9724 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9725 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9726 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9727 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9728 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9729 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9730 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9731 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9732 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9733 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9734 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9735 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9736 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9737 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9738 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9739 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9740 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9741 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9742 * infcall.c (_initialize_infcall): Add declaration.
9743 * infcmd.c (_initialize_infcmd): Add declaration.
9744 * inflow.c (_initialize_inflow): Add declaration.
9745 * infrun.c (_initialize_infrun): Add declaration.
9746 * interps.c (_initialize_interpreter): Add declaration.
9747 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9748 * jit.c (_initialize_jit): Add declaration.
9749 * language.c (_initialize_language): Add declaration.
9750 * linux-fork.c (_initialize_linux_fork): Add declaration.
9751 * linux-nat.c (_initialize_linux_nat): Add declaration.
9752 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9753 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9754 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9755 * m2-lang.c (_initialize_m2_language): Add declaration.
9756 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9757 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9758 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9759 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9760 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9761 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9762 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9763 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9764 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9765 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9766 * machoread.c (_initialize_machoread): Add declaration.
9767 * macrocmd.c (_initialize_macrocmd): Add declaration.
9768 * macroscope.c (_initialize_macroscope): Add declaration.
9769 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9770 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9771 * maint.c (_initialize_maint_cmds): Add declaration.
9772 * mdebugread.c (_initialize_mdebugread): Add declaration.
9773 * memattr.c (_initialize_mem): Add declaration.
9774 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9775 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9776 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9777 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9778 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9779 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9780 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9781 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9782 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9783 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9784 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9785 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9786 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9787 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9788 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9789 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9790 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9791 * mipsread.c (_initialize_mipsread): Add declaration.
9792 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9793 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9794 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9795 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9796 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9797 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9798 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9799 * nto-procfs.c (_initialize_procfs): Add declaration.
9800 * objc-lang.c (_initialize_objc_language): Add declaration.
9801 * observable.c (_initialize_observer): Add declaration.
9802 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9803 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9804 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9805 * osabi.c (_initialize_gdb_osabi): Add declaration.
9806 * osdata.c (_initialize_osdata): Add declaration.
9807 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9808 * parse.c (_initialize_parse): Add declaration.
9809 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9810 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9811 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9812 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9813 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9814 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9815 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9816 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9817 * printcmd.c (_initialize_printcmd): Add declaration.
9818 * probe.c (_initialize_probe): Add declaration.
9819 * proc-api.c (_initialize_proc_api): Add declaration.
9820 * proc-events.c (_initialize_proc_events): Add declaration.
9821 * proc-service.c (_initialize_proc_service): Add declaration.
9822 * procfs.c (_initialize_procfs): Add declaration.
9823 * producer.c (_initialize_producer): Add declaration.
9824 * psymtab.c (_initialize_psymtab): Add declaration.
9825 * python/python.c (_initialize_python): Add declaration.
9826 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9827 * record-btrace.c (_initialize_record_btrace): Add declaration.
9828 * record-full.c (_initialize_record_full): Add declaration.
9829 * record.c (_initialize_record): Add declaration.
9830 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9831 * regcache.c (_initialize_regcache): Add declaration.
9832 * reggroups.c (_initialize_reggroup): Add declaration.
9833 * remote-notif.c (_initialize_notif): Add declaration.
9834 * remote-sim.c (_initialize_remote_sim): Add declaration.
9835 * remote.c (_initialize_remote): Add declaration.
9836 * reverse.c (_initialize_reverse): Add declaration.
9837 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9838 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9839 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9840 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9841 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9842 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9843 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9844 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9845 Add declaration.
9846 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9847 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9848 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9849 * rust-exp.y (_initialize_rust_exp): Add declaration.
9850 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9851 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9852 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9853 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9854 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9855 * score-tdep.c (_initialize_score_tdep): Add declaration.
9856 * ser-go32.c (_initialize_ser_dos): Add declaration.
9857 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9858 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9859 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9860 * ser-uds.c (_initialize_ser_socket): Add declaration.
9861 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9862 * serial.c (_initialize_serial): Add declaration.
9863 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9864 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9865 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9866 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9867 * skip.c (_initialize_step_skip): Add declaration.
9868 * sol-thread.c (_initialize_sol_thread): Add declaration.
9869 * solib-aix.c (_initialize_solib_aix): Add declaration.
9870 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9871 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9872 * solib-frv.c (_initialize_frv_solib): Add declaration.
9873 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9874 * solib-target.c (_initialize_solib_target): Add declaration.
9875 * solib.c (_initialize_solib): Add declaration.
9876 * source-cache.c (_initialize_source_cache): Add declaration.
9877 * source.c (_initialize_source): Add declaration.
9878 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9879 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9880 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9881 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9882 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9883 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9884 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9885 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9886 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9887 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9888 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9889 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9890 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9891 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9892 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9893 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9894 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9895 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9896 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9897 * stabsread.c (_initialize_stabsread): Add declaration.
9898 * stack.c (_initialize_stack): Add declaration.
9899 * stap-probe.c (_initialize_stap_probe): Add declaration.
9900 * std-regs.c (_initialize_frame_reg): Add declaration.
9901 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9902 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9903 * symfile.c (_initialize_symfile): Add declaration.
9904 * symmisc.c (_initialize_symmisc): Add declaration.
9905 * symtab.c (_initialize_symtab): Add declaration.
9906 * target.c (_initialize_target): Add declaration.
9907 * target-connection.c (_initialize_target_connection): Add
9908 declaration.
9909 * target-dcache.c (_initialize_target_dcache): Add declaration.
9910 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9911 * thread.c (_initialize_thread): Add declaration.
9912 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9913 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9914 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9915 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9916 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9917 * tracectf.c (_initialize_ctf): Add declaration.
9918 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9919 * tracefile.c (_initialize_tracefile): Add declaration.
9920 * tracepoint.c (_initialize_tracepoint): Add declaration.
9921 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9922 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9923 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9924 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9925 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9926 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9927 * tui/tui.c (_initialize_tui): Add declaration.
9928 * typeprint.c (_initialize_typeprint): Add declaration.
9929 * ui-style.c (_initialize_ui_style): Add declaration.
9930 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9931 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9932 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9933 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9934 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9935 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9936 * unittests/filtered_iterator-selftests.c
9937 (_initialize_filtered_iterator_selftests): Add declaration.
9938 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9939 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9940 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9941 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9942 * unittests/main-thread-selftests.c
9943 (_initialize_main_thread_selftests): Add declaration.
9944 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9945 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9946 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9947 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9948 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9949 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9950 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9951 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9952 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9953 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9954 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9955 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9956 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9957 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9958 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9959 declaration.
9960 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9961 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9962 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9963 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9964 * user-regs.c (_initialize_user_regs): Add declaration.
9965 * utils.c (_initialize_utils): Add declaration.
9966 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9967 * valops.c (_initialize_valops): Add declaration.
9968 * valprint.c (_initialize_valprint): Add declaration.
9969 * value.c (_initialize_values): Add declaration.
9970 * varobj.c (_initialize_varobj): Add declaration.
9971 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9972 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9973 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9974 * windows-nat.c (_initialize_windows_nat): Add declaration.
9975 (_initialize_check_for_gdb_ini): Add declaration.
9976 (_initialize_loadable): Add declaration.
9977 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9978 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9979 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9980 * xcoffread.c (_initialize_xcoffread): Add declaration.
9981 * xml-support.c (_initialize_xml_support): Add declaration.
9982 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9983 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9984 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
9985 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
9986
e2de1eec
SM
99872020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9988
9989 * regformats/regdat.sh: Generate declaration for init function.
9990
e0037b4c
SM
99912020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9992
9993 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
9994 up.
9995 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
9996 close_one_inferior>: New methods.
9997 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
9998 pass down target to find_inferior_pid.
9999 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10000 Pass down target to find_inferior_ptid.
10001 (gdbsim_target::create_inferior): Pass down target to
10002 add_thread_silent.
10003 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10004 target down to find_inferior_ptid and switch_to_thread.
10005 (gdbsim_target::close): Update to call close_one_inferior.
10006 (struct resume_data): Remove.
10007 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10008 directly, rather than through a void pointer.
10009 (gdbsim_target::resume): Update to call resume_one_inferior.
10010
58920b5b
SM
100112020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10012
10013 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10014
4ec89149
PA
100152020-01-12 Pedro Alves <palves@redhat.com>
10016
10017 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10018 directly for the current inferior instead of
10019 discard_all_inferiors.
10020 (discard_all_inferiors): Delete.
10021
7c392d1d
TT
100222020-01-11 Tom Tromey <tom@tromey.com>
10023
10024 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10025 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10026 deprecated_safe_get_selected_frame.
10027
d9ebdab7
TBA
100282020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10029
10030 * inferior.c (print_inferior): Switch inferior before printing it.
10031
f3c469b9
PA
100322020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10033 Pedro Alves <palves@redhat.com>
10034
10035 * progspace-and-thread.c (switch_to_program_space_and_thread):
10036 Assert there's an inferior for PSPACE. Use
10037 switch_to_inferior_no_thread to switch the inferior too.
10038 * progspace.c (program_space::~program_space): Call
10039 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10040 (program_space::free_all_objfiles): Don't call clear_symtab_users
10041 here.
10042 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10043
65c574f6
PA
100442020-01-10 Pedro Alves <palves@redhat.com>
10045
10046 * NEWS: Mention multi-target debugging, "info connections", and
10047 "add-inferior -no-connection".
10048
2f4fcf00
PA
100492020-01-10 Pedro Alves <palves@redhat.com>
10050
10051 * infrun.c: Include "target-connection.h".
10052 (check_multi_target_resumption): New.
10053 (proceed): Call it.
10054 * target-connection.c (make_target_connection_string): Make
10055 extern.
10056 * target-connection.h (make_target_connection_string): Declare.
10057
121b3efd
PA
100582020-01-10 Pedro Alves <palves@redhat.com>
10059
10060 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10061 * inferior.c (uiout_field_connection): New function.
10062 (print_inferior): Add new "connection-id" column.
10063 (add_inferior_command): Show connection number/string of added
10064 inferior.
10065 * process-stratum-target.h
10066 (process_stratum_target::connection_string): New virtual method.
10067 (process_stratum_target::connection_number): New field.
10068 * remote.c (remote_target::connection_string): New override.
10069 * target-connection.c: New file.
10070 * target-connection.h: New file.
10071 * target.c (decref_target): Remove process_stratum targets from
10072 the connection list.
10073 (target_stack::push): Add process_stratum targets to the
10074 connection list.
10075
4f837581
PA
100762020-01-10 Pedro Alves <palves@redhat.com>
10077
10078 Revert:
10079 2016-04-12 Pedro Alves <palves@redhat.com>
10080 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10081 Remove references to name.
10082 * serial.h (struct serial) <name>: Delete.
10083
f4ec508e
PA
100842020-01-10 Pedro Alves <palves@redhat.com>
10085
10086 * gdbarch-selftests.c (register_to_value_test): Remove "target
10087 already pushed" check.
10088
5b6d1e4f
PA
100892020-01-10 Pedro Alves <palves@redhat.com>
10090 John Baldwin <jhb@FreeBSD.org>
10091
10092 * aarch64-linux-nat.c
10093 (aarch64_linux_nat_target::thread_architecture): Adjust.
10094 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10095 (task_command_1): Likewise.
10096 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10097 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10098 (aix_thread_target::store_registers)
10099 (aix_thread_target::thread_alive): Adjust.
10100 * amd64-fbsd-tdep.c: Include "inferior.h".
10101 (amd64fbsd_get_thread_local_address): Pass down target.
10102 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10103 thread's gdbarch instead of target_gdbarch.
10104 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10105 get_last_target_status.
10106 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10107 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10108 inferiors.
10109 (update_inserted_breakpoint_locations): Skip if inferiors with no
10110 execution.
10111 (update_global_location_list): When handling moribund locations,
10112 find representative inferior for location's pspace, and use thread
10113 count of its process_stratum target.
10114 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10115 * bsd-uthread.c (bsd_uthread_target::wait): Use
10116 as_process_stratum_target and adjust thread_change_ptid and
10117 add_thread calls.
10118 (bsd_uthread_target::update_thread_list): Use
10119 as_process_stratum_target and adjust find_thread_ptid,
10120 thread_change_ptid and add_thread calls.
10121 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10122 find_thread_ptid call.
10123 * corelow.c (add_to_thread_list): Adjust add_thread call.
10124 (core_target_open): Adjust add_thread_silent and thread_count
10125 calls.
10126 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10127 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10128 * event-top.c (async_disconnect): Pop targets from all inferiors.
10129 * exec.c (add_target_sections): Push exec target on all inferiors
10130 sharing the program space.
10131 (remove_target_sections): Remove the exec target from all
10132 inferiors sharing the program space.
10133 (exec_on_vfork): New.
10134 * exec.h (exec_on_vfork): Declare.
10135 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10136 Pass it down.
10137 (fbsd_nat_target::update_thread_list): Adjust.
10138 (fbsd_nat_target::resume): Adjust.
10139 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10140 down.
10141 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10142 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10143 get_thread_arch_regcache call.
10144 * fork-child.c (gdb_startup_inferior): Pass target down to
10145 startup_inferior and set_executing.
10146 * gdbthread.h (struct process_stratum_target): Forward declare.
10147 (add_thread, add_thread_silent, add_thread_with_info)
10148 (in_thread_list): Add process_stratum_target parameter.
10149 (find_thread_ptid(inferior*, ptid_t)): New overload.
10150 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10151 parameter.
10152 (all_threads()): Delete overload.
10153 (all_threads, all_non_exited_threads): Add process_stratum_target
10154 parameter.
10155 (all_threads_safe): Use brace initialization.
10156 (thread_count): Add process_stratum_target parameter.
10157 (set_resumed, set_running, set_stop_requested, set_executing)
10158 (threads_are_executing, finish_thread_state): Add
10159 process_stratum_target parameter.
10160 (switch_to_thread): Use is_current_thread.
10161 * i386-fbsd-tdep.c: Include "inferior.h".
10162 (i386fbsd_get_thread_local_address): Pass down target.
10163 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10164 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10165 have_inferiors check.
10166 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10167 (inf_ptrace_target::attach): Adjust.
10168 * infcall.c (run_inferior_call): Adjust.
10169 * infcmd.c (run_command_1): Pass target to
10170 scoped_finish_thread_state.
10171 (proceed_thread_callback): Skip inferiors with no execution.
10172 (continue_command): Rename 'all_threads' local to avoid hiding
10173 'all_threads' function. Adjust get_last_target_status call.
10174 (prepare_one_step): Adjust set_running call.
10175 (signal_command): Use user_visible_resume_target. Compare thread
10176 pointers instead of inferior_ptid.
10177 (info_program_command): Adjust to pass down target.
10178 (attach_command): Mark target's 'thread_executing' flag.
10179 (stop_current_target_threads_ns): New, factored out from ...
10180 (interrupt_target_1): ... this. Switch inferior before making
10181 target calls.
10182 * inferior-iter.h
10183 (struct all_inferiors_iterator, struct all_inferiors_range)
10184 (struct all_inferiors_safe_range)
10185 (struct all_non_exited_inferiors_range): Filter on
10186 process_stratum_target too. Remove explicit.
10187 * inferior.c (inferior::inferior): Push dummy target on target
10188 stack.
10189 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10190 Add process_stratum_target parameter, and pass it down.
10191 (have_live_inferiors): Adjust.
10192 (switch_to_inferior_and_push_target): New.
10193 (add_inferior_command, clone_inferior_command): Handle
10194 "-no-connection" parameter. Use
10195 switch_to_inferior_and_push_target.
10196 (_initialize_inferior): Mention "-no-connection" option in
10197 the help of "add-inferior" and "clone-inferior" commands.
10198 * inferior.h: Include "process-stratum-target.h".
10199 (interrupt_target_1): Use bool.
10200 (struct inferior) <push_target, unpush_target, target_is_pushed,
10201 find_target_beneath, top_target, process_target, target_at,
10202 m_stack>: New.
10203 (discard_all_inferiors): Delete.
10204 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10205 (all_inferiors, all_non_exited_inferiors): Add
10206 process_stratum_target parameter.
10207 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10208 (target_last_proc_target): New global.
10209 (follow_fork_inferior): Push target on new inferior. Pass target
10210 to add_thread_silent. Call exec_on_vfork. Handle target's
10211 reference count.
10212 (follow_fork): Adjust get_last_target_status call. Also consider
10213 target.
10214 (follow_exec): Push target on new inferior.
10215 (struct execution_control_state) <target>: New field.
10216 (user_visible_resume_target): New.
10217 (do_target_resume): Call target_async.
10218 (resume_1): Set target's threads_executing flag. Consider resume
10219 target.
10220 (commit_resume_all_targets): New.
10221 (proceed): Also consider resume target. Skip threads of inferiors
10222 with no execution. Commit resumtion in all targets.
10223 (start_remote): Pass current inferior to wait_for_inferior.
10224 (infrun_thread_stop_requested): Consider target as well. Pass
10225 thread_info pointer to clear_inline_frame_state instead of ptid.
10226 (infrun_thread_thread_exit): Consider target as well.
10227 (random_pending_event_thread): New inferior parameter. Use it.
10228 (do_target_wait): Rename to ...
10229 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10230 down.
10231 (threads_are_resumed_pending_p, do_target_wait): New.
10232 (prepare_for_detach): Adjust calls.
10233 (wait_for_inferior): New inferior parameter. Handle it. Use
10234 do_target_wait_1 instead of do_target_wait.
10235 (fetch_inferior_event): Adjust. Switch to representative
10236 inferior. Pass target down.
10237 (set_last_target_status): Add process_stratum_target parameter.
10238 Save target in global.
10239 (get_last_target_status): Add process_stratum_target parameter and
10240 handle it.
10241 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10242 (context_switch): Check inferior_ptid == null_ptid before calling
10243 inferior_thread().
10244 (get_inferior_stop_soon): Pass down target.
10245 (wait_one): Rename to ...
10246 (poll_one_curr_target): ... this.
10247 (struct wait_one_event): New.
10248 (wait_one): New.
10249 (stop_all_threads): Adjust.
10250 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10251 event's target.
10252 (switch_back_to_stepped_thread): Also consider target.
10253 (print_stop_event): Update.
10254 (normal_stop): Update. Also consider the resume target.
10255 * infrun.h (wait_for_inferior): Remove declaration.
10256 (user_visible_resume_target): New declaration.
10257 (get_last_target_status, set_last_target_status): New
10258 process_stratum_target parameter.
10259 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10260 process_stratum_target parameter, and use it.
10261 (clear_inline_frame_state (thread_info*)): New.
10262 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10263 process_stratum_target parameter.
10264 (clear_inline_frame_state (thread_info*)): Declare.
10265 * linux-fork.c (delete_checkpoint_command): Pass target down to
10266 find_thread_ptid.
10267 (checkpoint_command): Adjust.
10268 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10269 instead of just tweaking inferior_ptid.
10270 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10271 (exit_lwp): Pass target down to find_thread_ptid.
10272 (attach_proc_task_lwp_callback): Pass target down to
10273 add_thread/set_running/set_executing.
10274 (linux_nat_target::attach): Pass target down to
10275 thread_change_ptid.
10276 (get_detach_signal): Pass target down to find_thread_ptid.
10277 Consider last target status's target.
10278 (linux_resume_one_lwp_throw, resume_lwp)
10279 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10280 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10281 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10282 (linux_nat_target::async_wait_fd): New.
10283 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10284 target down.
10285 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10286 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10287 * linux-thread-db.c (struct thread_db_info::process_target): New
10288 field.
10289 (add_thread_db_info): Save target.
10290 (get_thread_db_info): New process_stratum_target parameter. Also
10291 match target.
10292 (delete_thread_db_info): New process_stratum_target parameter.
10293 Also match target.
10294 (thread_from_lwp): Adjust to pass down target.
10295 (thread_db_notice_clone): Pass down target.
10296 (check_thread_db_callback): Pass down target.
10297 (try_thread_db_load_1): Always push the thread_db target.
10298 (try_thread_db_load, record_thread): Pass target down.
10299 (thread_db_target::detach): Pass target down. Always unpush the
10300 thread_db target.
10301 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10302 target down. Always unpush the thread_db target.
10303 (find_new_threads_callback, thread_db_find_new_threads_2)
10304 (thread_db_target::update_thread_list): Pass target down.
10305 (thread_db_target::pid_to_str): Pass current inferior down.
10306 (thread_db_target::get_thread_local_address): Pass target down.
10307 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10308 target down.
10309 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10310 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10311 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10312 (procfs_init_inferior): Rename to ...
10313 (procfs_target::procfs_init_inferior): ... this and adjust.
10314 (procfs_target::create_inferior, procfs_notice_thread)
10315 (procfs_do_thread_registers): Adjust.
10316 * ppc-fbsd-tdep.c: Include "inferior.h".
10317 (ppcfbsd_get_thread_local_address): Pass down target.
10318 * proc-service.c (ps_xfer_memory): Switch current inferior and
10319 program space as well.
10320 (get_ps_regcache): Pass target down.
10321 * process-stratum-target.c
10322 (process_stratum_target::thread_address_space)
10323 (process_stratum_target::thread_architecture): Pass target down.
10324 * process-stratum-target.h
10325 (process_stratum_target::threads_executing): New field.
10326 (as_process_stratum_target): New.
10327 * ravenscar-thread.c
10328 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10329 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10330 down.
10331 * record-btrace.c (record_btrace_target::info_record): Adjust.
10332 (record_btrace_target::record_method)
10333 (record_btrace_target::record_is_replaying)
10334 (record_btrace_target::fetch_registers)
10335 (get_thread_current_frame_id, record_btrace_target::resume)
10336 (record_btrace_target::wait, record_btrace_target::stop): Pass
10337 target down.
10338 * record-full.c (record_full_wait_1): Switch to event thread.
10339 Pass target down.
10340 * regcache.c (regcache::regcache)
10341 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10342 process_stratum_target parameter and handle it.
10343 (current_thread_target): New global.
10344 (get_thread_regcache): Add process_stratum_target parameter and
10345 handle it. Switch inferior before calling target method.
10346 (get_thread_regcache): Pass target down.
10347 (get_thread_regcache_for_ptid): Pass target down.
10348 (registers_changed_ptid): Add process_stratum_target parameter and
10349 handle it.
10350 (registers_changed_thread, registers_changed): Pass target down.
10351 (test_get_thread_arch_aspace_regcache): New.
10352 (current_regcache_test): Define a couple local test_target_ops
10353 instances and use them for testing.
10354 (readwrite_regcache): Pass process_stratum_target parameter.
10355 (cooked_read_test, cooked_write_test): Pass mock_target down.
10356 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10357 (get_thread_arch_aspace_regcache): Add process_stratum_target
10358 parameter.
10359 (regcache::target): New method.
10360 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10361 (regcache::registers_changed_ptid): Add process_stratum_target
10362 parameter.
10363 (regcache::m_target): New field.
10364 (registers_changed_ptid): Add process_stratum_target parameter.
10365 * remote.c (remote_state::supports_vCont_probed): New field.
10366 (remote_target::async_wait_fd): New method.
10367 (remote_unpush_and_throw): Add remote_target parameter.
10368 (get_current_remote_target): Adjust.
10369 (remote_target::remote_add_inferior): Push target.
10370 (remote_target::remote_add_thread)
10371 (remote_target::remote_notice_new_inferior)
10372 (get_remote_thread_info): Pass target down.
10373 (remote_target::update_thread_list): Skip threads of inferiors
10374 bound to other targets. (remote_target::close): Don't discard
10375 inferiors. (remote_target::add_current_inferior_and_thread)
10376 (remote_target::process_initial_stop_replies)
10377 (remote_target::start_remote)
10378 (remote_target::remote_serial_quit_handler): Pass down target.
10379 (remote_target::remote_unpush_target): New remote_target
10380 parameter. Unpush the target from all inferiors.
10381 (remote_target::remote_unpush_and_throw): New remote_target
10382 parameter. Pass it down.
10383 (remote_target::open_1): Check whether the current inferior has
10384 execution instead of checking whether any inferior is live. Pass
10385 target down.
10386 (remote_target::remote_detach_1): Pass down target. Use
10387 remote_unpush_target.
10388 (extended_remote_target::attach): Pass down target.
10389 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10390 (remote_target::append_resumption): Pass down target.
10391 (remote_target::append_pending_thread_resumptions)
10392 (remote_target::remote_resume_with_hc, remote_target::resume)
10393 (remote_target::commit_resume): Pass down target.
10394 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10395 (remote_target::interrupt_query)
10396 (remote_target::remove_new_fork_children)
10397 (remote_target::check_pending_events_prevent_wildcard_vcont)
10398 (remote_target::remote_parse_stop_reply)
10399 (remote_target::process_stop_reply): Pass down target.
10400 (first_remote_resumed_thread): New remote_target parameter. Pass
10401 it down.
10402 (remote_target::wait_as): Pass down target.
10403 (unpush_and_perror): New remote_target parameter. Pass it down.
10404 (remote_target::readchar, remote_target::remote_serial_write)
10405 (remote_target::getpkt_or_notif_sane_1)
10406 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10407 down target.
10408 (remote_target::mourn_inferior): Pass down target. Use
10409 remote_unpush_target.
10410 (remote_target::core_of_thread)
10411 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10412 (remote_target::pid_to_exec_file)
10413 (remote_target::thread_handle_to_thread_info): Pass down target.
10414 (remote_target::async_wait_fd): New.
10415 * riscv-fbsd-tdep.c: Include "inferior.h".
10416 (riscv_fbsd_get_thread_local_address): Pass down target.
10417 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10418 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10419 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10420 Adjust.
10421 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10422 * solib-svr4.c (enable_break): Pass down target.
10423 * spu-multiarch.c (parse_spufs_run): Pass down target.
10424 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10425 * target-delegates.c: Regenerate.
10426 * target.c (g_target_stack): Delete.
10427 (current_top_target): Return the current inferior's top target.
10428 (target_has_execution_1): Refer to the passed-in inferior's top
10429 target.
10430 (target_supports_terminal_ours): Check whether the initial
10431 inferior was already created.
10432 (decref_target): New.
10433 (target_stack::push): Incref/decref the target.
10434 (push_target, push_target, unpush_target): Adjust.
10435 (target_stack::unpush): Defref target.
10436 (target_is_pushed): Return bool. Adjust to refer to the current
10437 inferior's target stack.
10438 (dispose_inferior): Delete, and inline parts ...
10439 (target_preopen): ... here. Only dispose of the current inferior.
10440 (target_detach): Hold strong target reference while detaching.
10441 Pass target down.
10442 (target_thread_name): Add assertion.
10443 (target_resume): Pass down target.
10444 (target_ops::beneath, find_target_at): Adjust to refer to the
10445 current inferior's target stack.
10446 (get_dummy_target): New.
10447 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10448 has a thread running.
10449 (initialize_targets): Rename to ...
10450 (_initialize_target): ... this.
10451 * target.h: Include "gdbsupport/refcounted-object.h".
10452 (struct target_ops): Inherit refcounted_object.
10453 (target_ops::shortname, target_ops::longname): Make const.
10454 (target_ops::async_wait_fd): New method.
10455 (decref_target): Declare.
10456 (struct target_ops_ref_policy): New.
10457 (target_ops_ref): New typedef.
10458 (get_dummy_target): Declare function.
10459 (target_is_pushed): Return bool.
10460 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10461 (all_matching_threads_iterator::all_matching_threads_iterator):
10462 Handle filter target.
10463 * thread-iter.h (struct all_matching_threads_iterator, struct
10464 all_matching_threads_range, class all_non_exited_threads_range):
10465 Filter by target too. Remove explicit.
10466 * thread.c (threads_executing): Delete.
10467 (inferior_thread): Pass down current inferior.
10468 (clear_thread_inferior_resources): Pass down thread pointer
10469 instead of ptid_t.
10470 (add_thread_silent, add_thread_with_info, add_thread): Add
10471 process_stratum_target parameter. Use it for thread and inferior
10472 searches.
10473 (is_current_thread): New.
10474 (thread_info::deletable): Use it.
10475 (find_thread_ptid, thread_count, in_thread_list)
10476 (thread_change_ptid, set_resumed, set_running): New
10477 process_stratum_target parameter. Pass it down.
10478 (set_executing): New process_stratum_target parameter. Pass it
10479 down. Adjust reference to 'threads_executing'.
10480 (threads_are_executing): New process_stratum_target parameter.
10481 Adjust reference to 'threads_executing'.
10482 (set_stop_requested, finish_thread_state): New
10483 process_stratum_target parameter. Pass it down.
10484 (switch_to_thread): Also match inferior.
10485 (switch_to_thread): New process_stratum_target parameter. Pass it
10486 down.
10487 (update_threads_executing): Reimplement.
10488 * top.c (quit_force): Pop targets from all inferior.
10489 (gdb_init): Don't call initialize_targets.
10490 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10491 Declare.
10492 (windows_add_thread, windows_delete_thread): Adjust.
10493 (get_windows_debug_event): Rename to ...
10494 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10495 * tracefile-tfile.c (tfile_target_open): Pass down target.
10496 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10497 Forward declare.
10498 (switch_to_thread): Add process_stratum_target parameter.
10499 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10500 parameter. Use it.
10501 (mi_on_resume): Pass target down.
10502 * nat/fork-inferior.c (startup_inferior): Add
10503 process_stratum_target parameter. Pass it down.
10504 * nat/fork-inferior.h (startup_inferior): Add
10505 process_stratum_target parameter.
10506 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10507
75c6c844
PA
105082020-01-10 Pedro Alves <palves@redhat.com>
10509
10510 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10511 directly. Instead find the first thread in the thread list and
10512 use switch_to_thread.
10513
78f2c40a
PA
105142020-01-10 Pedro Alves <palves@redhat.com>
10515
10516 * remote.c (remote_target::remote_add_inferior): Don't bind a
10517 process to the current inferior if the current inferior is already
10518 bound to a process.
10519
e7af6c70
TBA
105202020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10521 Pedro Alves <palves@redhat.com>
10522
10523 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10524 If no process is specified, return null_ptid instead of
10525 inferior_ptid.
10526 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10527 TARGET_WAITKIND_SIGNALLED with no pid.
10528
31ba933e
PA
105292020-01-10 Pedro Alves <palves@redhat.com>
10530
10531 * remote.c (first_remote_resumed_thread): New.
10532 (remote_target::wait_as): Use it as default event_ptid instead of
10533 inferior_ptid.
10534
735fc2ca
PA
105352020-01-10 Pedro Alves <palves@redhat.com>
10536
10537 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10538
c17e02e1
PA
105392020-01-10 Pedro Alves <palves@redhat.com>
10540
10541 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10542 not -1.
10543
ab1ddbcf
PA
105442020-01-10 Pedro Alves <palves@redhat.com>
10545
10546 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10547 ptid to get_last_target_status.
10548 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10549 ptid to get_last_target_status.
10550 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10551 get_last_target_status.
10552 (info_program_command): Don't pass a target_waitstatus to
10553 get_last_target_status.
10554 * infrun.c (init_wait_for_inferior): Use
10555 nullify_last_target_wait_ptid.
10556 (get_last_target_status): Handle nullptr arguments.
10557 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10558 (print_stop_event): Don't pass a ptid to get_last_target_status.
10559 (normal_stop): Don't pass a ptid to get_last_target_status.
10560 * infrun.h (get_last_target_status, set_last_target_status): Move
10561 comments here and update.
10562 (nullify_last_target_wait_ptid): Declare.
10563 * linux-fork.c (fork_load_infrun_state): Remove local extern
10564 declaration of nullify_last_target_wait_ptid.
10565 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10566 to get_last_target_status.
10567
f3f8ece4
PA
105682020-01-10 Pedro Alves <palves@redhat.com>
10569
10570 * gdbthread.h (scoped_restore_current_thread)
10571 <dont_restore, restore, m_dont_restore>: Declare.
10572 * thread.c (thread_alive): Add assertion. Return bool.
10573 (switch_to_thread_if_alive): New.
10574 (prune_threads): Switch inferior/thread.
10575 (print_thread_info_1): Switch thread before calling target methods.
10576 (scoped_restore_current_thread::restore): New, factored out from
10577 ...
10578 (scoped_restore_current_thread::~scoped_restore_current_thread):
10579 ... this.
10580 (scoped_restore_current_thread::scoped_restore_current_thread):
10581 Add assertion.
10582 (thread_apply_all_command, thread_select): Use
10583 switch_to_thread_if_alive.
10584 * infrun.c (proceed, restart_threads, handle_signal_stop)
10585 (switch_back_to_stepped_thread): Switch current thread before
10586 calling target methods.
10587
db2d40f7
PA
105882020-01-10 Pedro Alves <palves@redhat.com>
10589
10590 * inferior.c (switch_to_inferior_no_thread): New function,
10591 factored out from ...
10592 (inferior_command): ... here.
10593 * inferior.h (switch_to_inferior_no_thread): Declare.
10594 * mi/mi-main.c (run_one_inferior): Use
10595 switch_to_inferior_no_thread.
10596
bd420a2d
PA
105972020-01-10 Pedro Alves <palves@redhat.com>
10598
10599 * infcmd.c (kill_command): Remove dead code.
10600
ddf5db90
PA
106012020-01-10 Pedro Alves <palves@redhat.com>
10602
10603 * remote.c (remote_target::mourn_inferior): No longer check
10604 whether the target is running.
10605
5018ce90
PA
106062020-01-10 Pedro Alves <palves@redhat.com>
10607
10608 * corelow.c (core_target::has_execution): Change parameter type to
10609 inferior pointer.
10610 * inferior.c (number_of_live_inferiors): Use
10611 inferior::has_execution instead of target_has_execution_1.
10612 * inferior.h (inferior::has_execution): New.
10613 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10614 inferior::has_execution instead of target_has_execution_1.
10615 * process-stratum-target.c
10616 (process_stratum_target::has_execution): Change parameter type to
10617 inferior pointer. Check the inferior's PID instead of
10618 inferior_ptid.
10619 * process-stratum-target.h
10620 (process_stratum_target::has_execution): Change parameter type to
10621 inferior pointer.
10622 * record-full.c (record_full_core_target::has_execution): Change
10623 parameter type to inferior pointer.
10624 * target.c (target_has_execution_1): Change parameter type to
10625 inferior pointer.
10626 (target_has_execution_current): Adjust.
10627 * target.h (target_ops::has_execution): Change parameter type to
10628 inferior pointer.
10629 (target_has_execution_1): Change parameter type to inferior
10630 pointer. Change return type to bool.
10631 * tracefile.h (tracefile_target::has_execution): Change parameter
10632 type to inferior pointer.
10633
74375d18
PA
106342020-01-10 Pedro Alves <palves@redhat.com>
10635
10636 * exceptions.c (print_flush): Remove current_top_target() check.
10637
acdf84a6
PA
106382020-01-10 Pedro Alves <palves@redhat.com>
10639
10640 * remote.c (show_remote_exec_file): Show the current inferior's
10641 exec-file instead of the command variable's value.
10642
ec506636
PA
106432020-01-10 Pedro Alves <palves@redhat.com>
10644
10645 * record-full.c (record_full_resume_ptid): New global.
10646 (record_full_target::resume): Set it.
10647 (record_full_wait_1): Use record_full_resume_ptid instead of
10648 inferior_ptid.
10649
873657b9
PA
106502020-01-10 Pedro Alves <palves@redhat.com>
10651
10652 * gdbthread.h (scoped_restore_current_thread)
10653 <dont_restore, restore, m_dont_restore>: Declare.
10654 * thread.c (thread_alive): Add assertion. Return bool.
10655 (switch_to_thread_if_alive): New.
10656 (prune_threads): Switch inferior/thread.
10657 (print_thread_info_1): Switch thread before calling target methods.
10658 (scoped_restore_current_thread::restore): New, factored out from
10659 ...
10660 (scoped_restore_current_thread::~scoped_restore_current_thread):
10661 ... this.
10662 (scoped_restore_current_thread::scoped_restore_current_thread):
10663 Add assertion.
10664 (thread_apply_all_command, thread_select): Use
10665 switch_to_thread_if_alive.
10666
7f0ae84c
GB
106672020-01-10 George Barrett <bob@bob131.so>
10668
10669 * stap-probe.c (stap_modify_semaphore): Don't check for null
10670 semaphores.
10671 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10672 for null semaphores.
10673
f5a7c406
AB
106742020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10675
10676 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10677 all source windows, and maintain horizontal scroll status while
10678 doing so.
10679
9ae6bf64
TT
106802020-01-09 Tom Tromey <tom@tromey.com>
10681
10682 PR tui/18932:
10683 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10684 update_source_window, not print_source_lines.
10685
b2efe70c
AB
106862020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10687
10688 * tui/tui.c (tui_enable): Register tui hooks after calling
10689 tui_display_main.
10690
5f23a082
CB
106912020-01-09 Christian Biesinger <cbiesinger@google.com>
10692
10693 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10694
3061113b
SM
106952020-01-08 Simon Marchi <simon.marchi@efficios.com>
10696
10697 * thread.c (print_thread_info_1): Fix indentation.
10698
57d75002
CB
106992020-01-09 Christian Biesinger <cbiesinger@google.com>
10700
10701 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10702 unique_xmalloc_ptr outside the if to always free the demangled name.
10703
6a053cb1
TT
107042020-01-08 Tom Tromey <tromey@adacore.com>
10705
10706 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10707 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10708 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10709 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10710 Remove.
10711 (section_offsets): New typedef.
10712 * symtab.c (fixup_section, get_msymbol_address): Update.
10713 * symmisc.c (dump_msymbols): Update.
10714 * symfile.h (relative_addr_info_to_section_offsets)
10715 (symfile_map_offsets_to_segments): Update.
10716 * symfile.c (build_section_addr_info_from_objfile)
10717 (init_objfile_sect_indices): Update.
10718 (struct place_section_arg): Change type of "offsets".
10719 (place_section): Update.
10720 (relative_addr_info_to_section_offsets): Change type of
10721 "section_offsets". Remove "num_sections" parameter.
10722 (default_symfile_offsets, syms_from_objfile_1)
10723 (set_objfile_default_section_offset): Update.
10724 (reread_symbols): No need to preserve section offsets by hand.
10725 (symfile_map_offsets_to_segments): Change type of "offsets".
10726 * stap-probe.c (relocate_address): Update.
10727 * stabsread.h (process_one_symbol): Update.
10728 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10729 (solib_target_relocate_section_addresses): Update.
10730 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10731 Update.
10732 * solib-frv.c (frv_relocate_main_executable): Update.
10733 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10734 * solib-aix.c (solib_aix_get_section_offsets): Change return
10735 type.
10736 (solib_aix_solib_create_inferior_hook): Update.
10737 * remote.c (remote_target::get_offsets): Update.
10738 * psymtab.c (find_pc_sect_psymtab): Update.
10739 * psympriv.h (struct partial_symbol) <address, text_low,
10740 text_high>: Update.
10741 * objfiles.h (obj_section_offset): Update.
10742 (struct objfile) <section_offsets>: Change type.
10743 <num_sections>: Remove.
10744 (objfile_relocate): Update.
10745 * objfiles.c (entry_point_address_query): Update
10746 (relocate_one_symbol): Change type of "section_offsets".
10747 (objfile_relocate1, objfile_relocate1): Change type of
10748 "new_offsets".
10749 (objfile_rebase1): Update.
10750 * mipsread.c (mipscoff_symfile_read): Update.
10751 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10752 parameter.
10753 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10754 (parse_external, psymtab_to_symtab_1): Update.
10755 * machoread.c (macho_symfile_offsets): Update.
10756 * ia64-tdep.c (ia64_find_unwind_table): Update.
10757 * hppa-tdep.c (read_unwind_info): Update.
10758 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10759 * dwarf2read.c (create_addrmap_from_index)
10760 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10761 (process_psymtab_comp_unit_reader, add_partial_symbol)
10762 (add_partial_subprogram, process_full_comp_unit)
10763 (read_file_scope, read_func_scope, read_lexical_block_scope)
10764 (read_call_site_scope, dwarf2_rnglists_process)
10765 (dwarf2_ranges_process, dwarf2_ranges_read)
10766 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10767 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10768 Update.
10769 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10770 Update.
10771 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10772 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10773 (process_one_symbol): Change type of "section_offsets".
10774 * ctfread.c (get_objfile_text_range): Update.
10775 * coffread.c (coff_symtab_read, enter_linenos)
10776 (process_coff_symbol): Update.
10777 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10778 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10779
456e800a
TT
107802020-01-08 Tom Tromey <tromey@adacore.com>
10781
10782 * dwarf2read.c (parse_macro_definition): Use std::string.
10783 (parse_macro_definition): Likewise.
10784
6dfa2fc2
TT
107852020-01-08 Tom Tromey <tromey@adacore.com>
10786
10787 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10788 (ATTR_ALLOC_CHUNK): Remove.
10789
421d1616
TT
107902020-01-08 Tom Tromey <tromey@adacore.com>
10791
10792 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10793
43816ebc
TT
107942020-01-08 Tom Tromey <tromey@adacore.com>
10795
10796 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10797 (dwarf2_compute_name, open_dwo_file): Likewise.
10798 (process_enumeration_scope): Use std::vector.
10799 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10800 (partial_die_info::fixup, dwarf2_start_subfile)
10801 (guess_full_die_structure_name, dwarf2_name): Likewise.
10802 (determine_prefix): Update.
10803 (guess_full_die_structure_name): Make return type const.
10804 (partial_die_full_name): Return unique_xmalloc_ptr.
10805 (DW_FIELD_ALLOC_CHUNK): Remove.
10806
4212d509
TT
108072020-01-07 Tom Tromey <tromey@adacore.com>
10808
10809 PR build/24937:
10810 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10811
06a6207a
JT
108122020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10813
10814 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10815
153d79c4
AB
108162020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10817
10818 * stack.c (print_frame_info): Move disassemble_next_line code
10819 inside source_print block.
10820
66182876
EZ
108212020-01-06 Eli Zaretskii <eliz@gnu.org>
10822
10823 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10824 gdb/signals.h, as we are now using native signal symbols.
10825
cbfa8581
SV
108262020-01-06 Shahab Vahedi <shahab@synopsys.com>
10827
10828 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10829 overflow by an early check of content vs threshold.
aac66a4c 10830 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10831 Likewise.
10832
3f602821
EZ
108332020-01-06 Eli Zaretskii <eliz@gnu.org>
10834
10835 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10836
a08c904d
JT
108372020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10838
10839 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10840 export table if no section contains it's RVA.
10841
89a65580
EZ
108422020-01-06 Eli Zaretskii <eliz@gnu.org>
10843
10844 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10845
8b7fcda2
HD
108462020-01-06 Hannes Domani <ssbssa@yahoo.de>
10847
10848 * source.c (print_source_lines_base): Set last_line_listed.
10849
a61b4f69
SV
108502020-01-06 Shahab Vahedi <shahab@synopsys.com>
10851
10852 * tui/tui-disasm.c: Remove trailing spaces.
10853
559e7e50
EZ
108542020-01-06 Eli Zaretskii <eliz@gnu.org>
10855 Pedro Alves <palves@redhat.com>
10856
10857 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10858 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10859 (windows_gdb_signal_to_target): New function, uses the above
10860 enumeration to convert GDB internal signal codes to equivalent
10861 Windows codes.
10862 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10863 * windows-nat.c: Include "gdb_wait.h".
10864 (get_windows_debug_event): Extract the fatal exception from the
10865 exit status and convert to the equivalent Posix signal number.
10866 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10867 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10868 * gdbsupport/gdb_wait.c: New file, implements
10869 windows_status_to_termsig.
10870 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10871 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10872
f2302a34
AB
108732020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10874
10875 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10876 show_layout.
10877
6a5206eb
LM
108782020-01-05 Luis Machado <luis.machado@linaro.org>
10879
10880 * aarch64-linux-nat.c
10881 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10882 and bfd_mach_aarch64.
10883
6ec1d75e
PW
108842020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10885
10886 * ui-file.c (stdio_file::can_emit_style_escape)
10887 (tee_file::can_emit_style_escape): Ensure style is used also on
10888 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10889 to gdb_stdout.
10890 * main.c (set_gdb_data_directory): Use file style to output the
10891 warning that the given pathname is not a directory.
10892 * top.c (show_history_filename, gdb_safe_append_history)
10893 (show_gdb_datadir): Use file style.
10894
44f81a76
HD
108952020-01-03 Hannes Domani <ssbssa@yahoo.de>
10896
10897 * solib-target.c (struct lm_info_target):
10898 Change offsets to be a unique_xmalloc_ptr.
10899 (solib_target_relocate_section_addresses): Update.
10900
25057eb0
HD
109012020-01-03 Hannes Domani <ssbssa@yahoo.de>
10902
10903 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10904
6e2118f5
BE
109052020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10906
10907 * MAINTAINERS (Write After Approval): Add myself.
10908
8133c7dc
LM
109092020-01-02 Luis Machado <luis.machado@linaro.org>
10910
10911 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10912 Cell BE architecture.
10913 * target.h (struct target_ops) <thread_architecture>: Likewise.
10914
48189bec
HD
109152020-01-01 Hannes Domani <ssbssa@yahoo.de>
10916
10917 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10918
ead1063b
HD
109192020-01-01 Hannes Domani <ssbssa@yahoo.de>
10920
10921 * MAINTAINERS (Write After Approval): Add myself.
10922
e5d78223
JB
109232020-01-01 Joel Brobecker <brobecker@adacore.com>
10924
10925 * gdbarch.sh: Update copyright year range of generated files.
10926
b811d2c2
JB
109272020-01-01 Joel Brobecker <brobecker@adacore.com>
10928
10929 Update copyright year range in all GDB files.
10930
5f4def5c
JB
109312020-01-01 Joel Brobecker <brobecker@adacore.com>
10932
10933 * copyright.py: Convert to Python 3.
10934
51fd4002
JB
109352020-01-01 Joel Brobecker <brobecker@adacore.com>
10936
10937 * copyright.py: Adapt after move of gnulib directory from gdb
10938 directory to toplevel directory.
10939
5fb651f2
JB
109402020-01-01 Joel Brobecker <brobecker@adacore.com>
10941
10942 * copyright.py (main): Exit if run from the wrong directory.
10943
5dd8bf88
JB
109442020-01-01 Joel Brobecker <brobecker@adacore.com>
10945
10946 * top.c (print_gdb_version): Change copyright year to 2020.
10947
9f71dacb 109482020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10949
9f71dacb 10950 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10951
9f71dacb 10952For older changes see ChangeLog-2019.
c906108c
SS
10953\f
10954Local Variables:
10955mode: change-log
10956left-margin: 8
10957fill-column: 74
10958version-control: never
57da7796 10959coding: utf-8
c906108c 10960End: