]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Linux/x86: Configure gas with --enable-x86-used-note by default
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6e2469ff
HD
12020-07-08 Hannes Domani <ssbssa@yahoo.de>
2
3 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4 of debugfile path on Windows.
5
d1076c41
JB
62020-07-08 John Baldwin <jhb@FreeBSD.org>
7
8 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
9 argument to 'data'.
10
15f3b077
TT
112020-07-08 Tom Tromey <tromey@adacore.com>
12
13 * ada-lang.c (ada_exception_message_1): Use read_memory.
14
9fc501fd
AB
152020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
16
17 PR python/22748
18 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
19 special handling for inline frames.
20 * findvar.c (value_of_register_lazy): Skip inline frames when
21 creating lazy register values.
22 * frame.c (frame_id_computed_p): Delete definition.
23 * frame.h (frame_id_computed_p): Delete declaration.
24
64cb3757
AB
252020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
26
27 * NEWS: Mention additions to Python API.
28 * python/py-arch.c (archpy_register_groups): New function.
29 (arch_object_methods): Add 'register_groups' method.
30 * python/py-registers.c (reggroup_iterator_object): New struct.
31 (reggroup_object): New struct.
32 (gdbpy_new_reggroup): New function.
33 (gdbpy_reggroup_to_string): New function.
34 (gdbpy_reggroup_name): New function.
35 (gdbpy_reggroup_iter): New function.
36 (gdbpy_reggroup_iter_next): New function.
37 (gdbpy_new_reggroup_iterator): New function
38 (gdbpy_initialize_registers): Register new types.
39 (reggroup_iterator_object_type): Define new Python type.
40 (gdbpy_reggroup_getset): New static global.
41 (reggroup_object_type): Define new Python type.
42 * python/python-internal.h
43
0f767f94
AB
442020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
45
46 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
47 * python/py-arch.c (archpy_registers): New function.
48 (arch_object_methods): Add 'registers' method.
49 * python/py-registers.c: New file.
50 * python/python-internal.h
51 (gdbpy_new_register_descriptor_iterator): Declare.
52 (gdbpy_initialize_registers): Declare.
53 * python/python.c (do_start_initialization): Call
54 gdbpy_initialize_registers.
55 * NEWS: Mention additions to the Python API.
56
87dbc774
AB
572020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
58
59 * NEWS: Mention new Python API method.
60 * python/py-unwind.c (pending_framepy_architecture): New function.
61 (pending_frame_object_methods): Add architecture method.
62
3bc98c0c
AB
632020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
64
65 * gdbarch.c: Regenerate.
66 * gdbarch.h: Regenerate.
67 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
68 (gdbarch_data): Use internal_error for the case where
69 deprecated_set_gdbarch_data was originally needed.
70 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
71 and use passed in obstack.
72 (libunwind_frame_set_descr): Should no longer get back NULL from
73 gdbarch_data.
74 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
75 type.
76 * user-regs.c (user_regs_init): Update parameters, and use passed
77 in obstack.
78 (user_reg_add): Should no longer get back NULL from gdbarch_data.
79 (_initialize_user_regs): Register as a pre-init gdbarch data type.
80
d8cc8af6
TV
812020-07-06 Tom de Vries <tdevries@suse.de>
82
83 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
84 End-Of-Sequence in lte_is_less_than.
85 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
86 "gdb: Don't reorder line table entries too much when sorting".
87
947f7597
TV
882020-07-06 Tom de Vries <tdevries@suse.de>
89
90 PR tui/26205
91 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
92
1e7c1b22
TV
932020-07-05 Tom de Vries <tdevries@suse.de>
94
95 PR build/26187
96 * inferior.h (struct infcall_suspend_state_deleter): If available, use
97 std::uncaught_exceptions instead of deprecated
98 std::uncaught_exception.
99
a36158ec
SM
1002020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
101
102 * macroexp.h (macro_stringify): Return
103 gdb::unique_xmalloc_ptr<char>.
104 * macroexp.c (macro_stringify): Likewise.
105 * macrotab.c (fixup_definition): Update.
106
14d960c8
SM
1072020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
108
109 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
110 (lex_one_token): Update.
111 * macroexp.c (struct macro_buffer) <release>: Return
112 gdb::unique_xmalloc_ptr<char>.
113 (macro_stringify): Update.
114 (macro_expand): Update.
115 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
116 * macroexp.h (macro_expand_next): Likewise.
117
211d5b1c
SM
1182020-07-02 Simon Marchi <simon.marchi@efficios.com>
119
120 * macroexp.h (macro_lookup_ftype): Remove.
121 (macro_expand, macro_expand_once, macro_expand_next): Remove
122 lookup function parameters, add scope parameter.
123 * macroexp.c (scan, substitute_args, expand, maybe_expand,
124 macro_expand, macro_expand_once, macro_expand_next): Likewise.
125 * macroscope.h (standard_macro_lookup): Change parameter type
126 to macro_scope.
127 * macroscope.c (standard_macro_lookup): Likewise.
128 * c-exp.y (lex_one_token): Update.
129 * macrocmd.c (macro_expand_command): Likewise.
130 (macro_expand_once_command): Likewise.
131
b1a35af2
SM
1322020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
133
134 * inf-loop.c (inferior_event_handler): Remove client_data param.
135 * inf-loop.h (inferior_event_handler): Likewise.
136 * infcmd.c (step_1): Adjust.
137 * infrun.c (proceed): Adjust.
138 (fetch_inferior_event): Remove client_data param.
139 (infrun_async_inferior_event_handler): Adjust.
140 * infrun.h (fetch_inferior_event): Remove `void *` param.
141 * linux-nat.c (handle_target_event): Adjust.
142 * record-btrace.c (record_btrace_handle_async_inferior_event):
143 Adjust.
144 * record-full.c (record_full_async_inferior_event_handler):
145 Adjust.
146 * remote.c (remote_async_inferior_event_handler): Adjust.
147
1cdf9e33
TT
1482020-07-01 Tom Tromey <tom@tromey.com>
149
150 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
151 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
152
32c1e210
TT
1532020-07-01 Tom Tromey <tom@tromey.com>
154
155 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
156 tui_gen_win_info.
157 (tui_win_info::make_window): Merge with
158 tui_gen_win_info::make_window.
159 (tui_win_info::make_visible): Move from tui_gen_win_info.
160 * tui/tui-win.c (tui_win_info::max_width): Move from
161 tui_gen_win_info.
162 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
163 type.
164 <window_factory>: Likewise.
165 * tui/tui-layout.c (tui_win_info::resize): Move from
166 tui_gen_win_info.
167 (make_standard_window): Change return type.
168 (get_locator_window, tui_get_window_by_name): Likewise.
169 (tui_layout_window::apply): Remove a cast.
170 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
171 (struct tui_win_info): Merge with tui_gen_win_info.
172 (struct tui_gen_win_info): Remove.
173
a30cb6da
TT
1742020-07-01 Tom Tromey <tom@tromey.com>
175
176 * tui/tui-stack.h (struct tui_locator_window): Derive from
177 tui_win_info.
178 <do_scroll_horizontal, do_scroll_vertical>: New methods.
179 <can_box>: New method.
180
1eb2161f
TT
1812020-07-01 Tom Tromey <tom@tromey.com>
182
183 * tui/tui-stack.h (struct tui_locator_window): Remove body.
184
7134f2eb
TT
1852020-07-01 Tom Tromey <tom@tromey.com>
186
187 * tui/tui-regs.c (tui_data_window::display_registers_from)
188 (tui_data_window::display_registers_from)
189 (tui_data_window::first_data_item_displayed)
190 (tui_data_window::delete_data_content_windows): Update.
191 (tui_data_window::refresh_window, tui_data_window::no_refresh):
192 Remove.
193 (tui_data_window::check_register_values): Update.
194 (tui_data_item_window::rerender): Add parameters. Update.
195 (tui_data_item_window::refresh_window): Remove.
196 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
197 virtual.
198 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
199 tui_gen_win_info.
200 <refresh_window, max_height, min_height>: Remove.
201 <rerender>: Add parameters.
202 <x, y, visible>: New members.
203 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
204 <m_item_width>: New member.
205
22b7b041
TT
2062020-07-01 Tom Tromey <tom@tromey.com>
207
208 * tui/tui-regs.c (tui_data_window::show_register_group)
209 (tui_data_window::check_register_values): Update.
210 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
211 from item_no.
212
c9753adb
TT
2132020-07-01 Tom Tromey <tom@tromey.com>
214
215 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
216 useless "if".
217
9ab26b4a
TT
2182020-07-01 Tom Tromey <tom@tromey.com>
219
220 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
221 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
222
e555083f
TT
2232020-07-01 Tom Tromey <tom@tromey.com>
224
225 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
226 * tui/tui-winsource.h (enum tui_line_or_address_kind)
227 (struct tui_line_or_address): Move from tui-data.h.
228 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
229 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
230 (tui_cmd_window, tui_source_window_base, tui_source_window)
231 (tui_disasm_window): Don't declare.
232 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
233 to tui-winsource.h.
234 (SINGLE_KEY): Move to tui-stack.c.
235
7a02bab7
TT
2362020-07-01 Tom Tromey <tom@tromey.com>
237
238 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
239 std::string.
240 * tui/tui-regs.c (class tab_expansion_file): New.
241 (tab_expansion_file::write): New method.
242 (tui_register_format): Change return type. Use
243 tab_expansion_file.
244 (tui_get_register, tui_data_window::display_registers_from)
245 (tui_data_item_window::rerender): Update.
246 * tui/tui-io.h (tui_expand_tabs): Don't declare.
247 * tui/tui-io.c (tui_expand_tabs): Remove.
248
ea68593b
TT
2492020-07-01 Tom Tromey <tom@tromey.com>
250
251 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
252
a8caed5d
FS
2532020-07-01 Fangrui Song <maskray@google.com>
254
255 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
256
9cdf9820
AKS
2572020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
258
259 * dwarf2/read.c (set_die_type): Removed conditions to restrict
260 forms for DW_AT_associated and DW_AT_allocated attributes,
261 which is already checked in function attr_to_dynamic_prop.
262
a1520ad8
TT
2632020-06-30 Tom Tromey <tromey@adacore.com>
264
265 * dwarf2/read.c (quirk_rust_enum): Correctly call
266 alloc_rust_variant for default-less enum.
267
5ac58899
TT
2682020-06-30 Tom Tromey <tromey@adacore.com>
269
270 PR build/26183:
271 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
272 gdb::to_string.
273
19b187a9
SM
2742020-06-29 Simon Marchi <simon.marchi@efficios.com>
275
276 * gdbarch.sh (displaced_step_copy_insn): Update doc.
277 * gdbarch.h: Re-generate.
278
cd4c4c07
TT
2792020-06-28 Tom Tromey <tom@tromey.com>
280
281 * command.h (cmd_types): Remove.
282 (cmd_type): Don't declare.
283 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
284 typedef.
285 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
286 * cli/cli-decode.c (cmd_type): Remove.
287
05779d57
PA
2882020-06-27 Pedro Alves <palves@redhat.com>
289
290 * fork-child.c (prefork_hook): Adjust.
291 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
292 Delete.
293 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
294 * inferior.c (inferior::set_tty, inferior::tty): New methods.
295 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
296 Remove declarations.
297 (struct inferior) <set_tty, tty>: New methods.
298 (struct inferior) <terminal>: Rename to ...
299 (struct inferior) <m_terminal>: ... this and make private.
300 * main.c (captured_main_1): Adjust.
301 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
302 (mi_cmd_inferior_tty_show): Adjust.
303 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
304 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
305
1776e3e5
NA
3062020-06-26 Nick Alcock <nick.alcock@oracle.com>
307
308 * configure.ac: Add --enable-libctf: handle --disable-static
309 properly.
310 * acinclude.m4: sinclude ../config/enable.m4.
311 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
312 (LIBCTF): Substitute in.
313 (CTF_DEPS): New, likewise.
314 (CLIBS): libctf needs symbols from libbfd: move earlier.
315 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
316 flags.
317 * ctfread.c: Surround in ENABLE_LIBCTF.
318 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
319 * configure: Regenerate.
320 * config.in: Likewise.
321
58373b80
SM
3222020-06-25 Simon Marchi <simon.marchi@efficios.com>
323
324 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
325
277474ee
SM
3262020-06-25 Simon Marchi <simon.marchi@efficios.com>
327
328 * inferior.h (struct inferior) <terminal>: Change type to
329 gdb::unique_xmalloc_ptr<char>.
330 * inferior.c (inferior::~inferior): Don't free inf->terminal.
331 * infcmd.c (set_inferior_io_terminal): Don't free terminal
332 field, adjust to unique pointer.
333 (get_inferior_io_terminal): Adjust to unique pointer.
334
6d74da72
AB
3352020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
336
337 * riscv-tdep.c (riscv_print_registers_info): Loop over all
338 registers, not just the known core set of registers.
339
2e52d038
AB
3402020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
341
342 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
343 fflags, frm, and fcsr registers.
344 (riscv_register_reggroup_p): Remove unknown CSRs from save and
345 restore groups.
346 (riscv_tdesc_unknown_reg): New function.
347 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
348 tdesc_use_registers.
349 * riscv-tdep.h (struct gdbarch_tdep): Add
350 unknown_csrs_first_regnum, unknown_csrs_count,
351 duplicate_fflags_regnum, duplicate_frm_regnum, and
352 duplicate_fcsr_regnum fields.
353
be64fd07
AB
3542020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
355
356 * target-descriptions.c (tdesc_use_registers): Add new parameter a
357 callback, use the callback (when not null) to help number unknown
358 registers.
359 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
360 (tdesc_use_registers): Add extra parameter to declaration.
361
3b9fce96
AB
3622020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
363
364 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
365 in the file.
366 (class riscv_pending_register_alias): Likewise.
367 (riscv_register_feature::register_info): Change 'required_p' field
368 to 'required', and change its type. Add 'check' member function.
369 (riscv_register_feature::register_info::check): Define new member
370 function.
371 (riscv_xreg_feature): Change initialisation of 'required' field.
372 (riscv_freg_feature): Likewise.
373 (riscv_virtual_feature): Likewise.
374 (riscv_csr_feature): Likewise.
375 (riscv_check_tdesc_feature): Take extra parameter, the csr
376 tdesc_feature, rewrite the function to use the new
377 riscv_register_feature::register_info::check function.
378 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
379
865bad26
AB
3802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
381
382 * features/Makefile: Remove all references to the deleted files
383 below.
384 * features/riscv/32bit-csr.c: Deleted.
385 * features/riscv/32bit-csr.xml: Deleted.
386 * features/riscv/64bit-csr.c: Deleted.
387 * features/riscv/64bit-csr.xml: Deleted.
388 * features/riscv/rebuild-csr-xml.sh: Deleted.
389
ed69cbc8
AB
3902020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
391
392 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
393 whitespace error for declaration of names member variable.
394 (struct riscv_register_feature): Add new prefer_first_name member
395 variable, and fix whitespace error in declaration of registers.
396 (riscv_xreg_feature): Initialize prefer_first_name field.
397 (riscv_freg_feature): Likewise.
398 (riscv_virtual_feature): Likewise.
399 (riscv_csr_feature): Likewise.
400 (riscv_register_name): Expand on comments. Remove register name
401 modifications for CSR and virtual registers.
402
4445e8f5
AB
4032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
404
405 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
406 errors.
407
767a879e
AB
4082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
409
410 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
411 riscv-opc.h.
412 (class riscv_pending_register_alias): New class.
413 (riscv_check_tdesc_feature): Take vector of pending aliases and
414 populate it as appropriate.
415 (riscv_setup_register_aliases): Delete.
416 (riscv_gdbarch_init): Create vector of pending aliases and pass it
417 to riscv_check_tdesc_feature in all cases. Use the vector to
418 create the register aliases.
419
bb6e55f3
RO
4202020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
421
422 * sol2-tdep.c (sol2_static_transform_name): Remove.
423 (sol2_init_abi): Don't register it.
424 * gdbarch.sh (static_transform_name): Remove.
425 * gdbarch.c, gdbarch.h: Regenerate.
426
427 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
428 gdbarch_static_transform_name.
429 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
430 * stabsread.c (define_symbol) <'X'>: Remove.
431 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
432 handling.
433 <'V'>: Likewise.
434 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
435 <'S'>: Remove call to gdbarch_static_transform_name.
436
c6d36836
RO
4372020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
438
439 * procfs.c (procfs_pre_trace): New function.
440 (procfs_target::create_inferior): Pass it to fork_inferior.
441
a7e6196b
RO
4422020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
443
444 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
445 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
446 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
447 sol2-tdep.o, sparc-sol2-tdep.o.
448 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
449 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
450 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
451 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
452
d412e696
RO
4532020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
454
455 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
456 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
457 Call sol2_init_abi.
458 Remove calls to set_gdbarch_skip_solib_resolver,
459 set_gdbarch_core_pid_to_str.
460 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
461 (i386_sol2_static_transform_name): Remove.
462 (i386_sol2_init_abi): Call sol2_init_abi.
463 Remove calls to set_gdbarch_sofun_address_maybe_missing,
464 set_gdbarch_static_transform_name,
465 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
466 Use sol2_sigtramp_p.
467 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
468 (sol2_sigtramp_p): New function.
469 (sol2_static_transform_name): New function.
470 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
471 (sol2_init_abi): New function.
472 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
473 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
474 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
475 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
476 (sparc_sol2_static_transform_name): Remove.
477 (sparc32_sol2_init_abi): Call sol2_init_abi.
478 Remove calls to set_gdbarch_sofun_address_maybe_missing,
479 set_gdbarch_static_transform_name,
480 set_gdbarch_skip_solib_resolver,
481 set_gdbarch_core_pid_to_str.
482 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
483 (sparc_sol2_static_transform_name): Remove
484 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
485 call sol2_sigtramp_p.
486 (sparc64_sol2_init_abi): Call sol2_init_abi.
487 Remove calls to set_gdbarch_sofun_address_maybe_missing,
488 set_gdbarch_static_transform_name,
489 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
490
a8654e7d
PW
4912020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
492
493 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
494 * exec.c (validate_exec_file): If from_tty, set both
495 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
496 * symfile.c (symbol_file_add_with_addrs): if always_confirm
497 and from_tty, unconditionally ask a confirmation.
498
caa7fd04
AB
4992020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
500
501 * target-descriptions.c (tdesc_architecture_name): Protect against
502 NULL pointer dereference.
503 (maint_print_xml_tdesc_cmd): New function.
504 (_initialize_target_descriptions): Register new 'maint print
505 xml-tdesc' command and give it the filename completer.
506 * NEWS: Mention new 'maint print xml-tdesc' command.
507
fbf42f4e
AB
5082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
509
510 * target-descriptions.c (class tdesc_compatible_info): New class.
511 (struct target_desc): Change type of compatible vector.
512 (tdesc_compatible_p): Update for change in type of
513 target_desc::compatible.
514 (tdesc_compatible_info_list): New function.
515 (tdesc_compatible_info_arch_name): New function.
516 (tdesc_add_compatible): Update for change in type of
517 target_desc::compatible.
518 (print_c_tdesc::visit_pre): Likewise.
519
20821f4e
AB
5202020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
521
522 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
523 whitespace to underscore.
524 (maint_print_c_tdesc_cmd): Use fake filename for target
525 descriptions that came from the target.
526 (_initialize_target_descriptions): Add filename command completion
527 for 'maint print c-tdesc'.
528
1fb5ee62
SM
5292020-06-23 Simon Marchi <simon.marchi@efficios.com>
530
531 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
532 lines.
533
fc3ecb3e
SM
5342020-06-23 Simon Marchi <simon.marchi@efficios.com>
535
536 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
537 lines.
538 (dwarf2_find_location_expression): Likewise.
539 (call_site_parameter_matches): Likewise.
540 (dwarf2_compile_expr_to_ax): Likewise.
541 (disassemble_dwarf_expression): Likewise.
542 (loclist_describe_location): Likewise.
543
236ef034
PA
5442020-06-23 Pedro Alves <palves@redhat.com>
545
546 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
547 progspace-and-thread.h. Include scoped-mock-context.h instead.
548 (register_to_value_test): Use scoped_mock_context.
549 * regcache.c: Include "scoped-mock-context.h".
550 (cooked_read_test): Don't error out if a target is already pushed.
551 Use scoped_mock_context. Adjust.
552 * scoped-mock-context.h: New file.
553
39e7ecca
AB
5542020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
555
556 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
557 initializer.
558 (ada_language::is_string_type_p): New member function.
559 * c-lang.c (c_language_data): Delete la_is_string_type_p
560 initializer.
561 (cplus_language_data): Likewise.
562 (asm_language_data): Likewise.
563 (minimal_language_data): Likewise.
564 * d-lang.c (d_language_data): Likewise.
565 * f-lang.c (f_is_string_type_p): Delete function, implementation
566 moved to f_language::is_string_type_p.
567 (f_language_data): Delete la_is_string_type_p initializer.
568 (f_language::is_string_type_p): New member function,
569 implementation from f_is_string_type_p.
570 * go-lang.c (go_is_string_type_p): Delete function, implementation
571 moved to go_language::is_string_type_p.
572 (go_language_data): Delete la_is_string_type_p initializer.
573 (go_language::is_string_type_p): New member function,
574 implementation from go_is_string_type_p.
575 * language.c (language_defn::is_string_type_p): Define new member
576 function.
577 (default_is_string_type_p): Make static, add comment copied from
578 header file.
579 (unknown_language_data): Delete la_is_string_type_p initializer.
580 (unknown_language::is_string_type_p): New member function.
581 (auto_language_data): Delete la_is_string_type_p initializer.
582 (auto_language::is_string_type_p): New member function.
583 * language.h (language_data): Delete la_is_string_type_p field.
584 (language_defn::is_string_type_p): Declare new function.
585 (default_is_string_type_p): Delete desclaration, move comment to
586 definition.
587 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
588 moved to m2_language::is_string_type_p.
589 (m2_language_data): Delete la_is_string_type_p initializer.
590 (m2_language::is_string_type_p): New member function,
591 implementation from m2_is_string_type_p.
592 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
593 initializer.
594 * opencl-lang.c (opencl_language_data): Likewise.
595 * p-lang.c (pascal_is_string_type_p): Delete function,
596 implementation moved to pascal_language::is_string_type_p.
597 (pascal_language_data): Delete la_is_string_type_p initializer.
598 (pascal_language::is_string_type_p): New member function,
599 implementation from pascal_is_string_type_p.
600 * rust-lang.c (rust_is_string_type_p): Delete function,
601 implementation moved to rust_language::is_string_type_p.
602 (rust_language_data): Delete la_is_string_type_p initializer.
603 (rust_language::is_string_type_p): New member function,
604 implementation from rust_is_string_type_p.
605 * valprint.c (val_print_scalar_or_string_type_p): Update call to
606 is_string_type_p.
607
4ffc13fb
AB
6082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
609
610 * ada-lang.c (ada_language_data): Delete la_print_typedef
611 initializer.
612 (ada_language::print_typedef): New member function.
613 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
614 (cplus_language_data): Likewise.
615 (asm_language_data): Likewise.
616 (minimal_language_data): Likewise.
617 * d-lang.c (d_language_data): Likewise.
618 * f-lang.c (f_language_data): Likewise.
619 (f_language::print_typedef): New member function.
620 * go-lang.c (go_language_data): Delete la_print_typedef
621 initializer.
622 * language.c (language_defn::print_typedef): Define member
623 function.
624 (unknown_language_data): Delete la_print_typedef initializer.
625 (unknown_language::print_typedef): New member function.
626 (auto_language_data): Delete la_print_typedef initializer.
627 (auto_language::print_typedef): New member function.
628 * language.h (language_data): Delete la_print_typedef field.
629 (language_defn::print_typedef): Declare new member function.
630 (LA_PRINT_TYPEDEF): Update call to print_typedef.
631 (default_print_typedef): Delete declaration.
632 * m2-lang.c (m2_language_data): Delete la_print_typedef
633 initializer.
634 (m2_language::print_typedef): New member function.
635 * objc-lang.c (objc_language_data): Delete la_print_typedef
636 initializer.
637 * opencl-lang.c (opencl_language_data): Likewise.
638 * p-lang.c (pascal_language_data): Likewise.
639 (pascal_language::print_typedef): New member function.
640 * rust-lang.c (rust_print_typedef): Delete function,
641 implementation moved to rust_language::print_typedef.
642 (rust_language): Delete la_print_typedef initializer.
643 (rust_language::print_typedef): New member function,
644 implementation from rust_print_typedef.
645 * typeprint.c (default_print_typedef): Delete.
646
d711ee67
AB
6472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
648
649 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
650 (ada_language::printstr): New member function.
651 * c-lang.c (c_language_data): Delete la_printstr initializer.
652 (cplus_language_data): Likewise.
653 (asm_language_data): Likewise.
654 (minimal_language_data): Likewise.
655 * d-lang.c (d_language_data): Likewise.
656 * f-lang.c (f_printstr): Rename to f_language::printstr.
657 (f_language_data): Delete la_printstr initializer.
658 (f_language::printstr): New member function, implementation from
659 f_printstr.
660 * go-lang.c (go_language_data): Delete la_printstr initializer.
661 * language.c (language_defn::printstr): Define new member
662 function.
663 (unk_lang_printstr): Delete.
664 (unknown_language_data): Delete la_printstr initializer.
665 (unknown_language::printstr): New member function.
666 (auto_language_data): Delete la_printstr initializer.
667 (auto_language::printstr): New member function.
668 * language.h (language_data): Delete la_printstr field.
669 (language_defn::printstr): Declare new member function.
670 (LA_PRINT_STRING): Update call to printstr.
671 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
672 (m2_language_data): Delete la_printstr initializer.
673 (m2_language::printstr): New member function, implementation from
674 m2_printstr.
675 * objc-lang.c (objc_language_data): Delete la_printstr
676 initializer.
677 * opencl-lang.c (opencl_language_data): Likewise.
678 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
679 (pascal_language_data): Delete la_printstr initializer.
680 (pascal_language::printstr): New member function, implementation
681 from pascal_printstr.
682 * p-lang.h (pascal_printstr): Delete declaration.
683 * rust-lang.c (rust_printstr): Update header comment.
684 (rust_language_data): Delete la_printstr initializer.
685 (rust_language::printstr): New member function.
686
52b50f2c
AB
6872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
688
689 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
690 (ada_language::printchar): New member function.
691 * c-lang.c (c_language_data): Delete la_printchar initializer.
692 (cplus_language_data): Likewise.
693 (asm_language_data): Likewise.
694 (minimal_language_data): Likewise.
695 * d-lang.c (d_language_data): Likewise.
696 * f-lang.c (f_printchar): Rename to f_language::printchar.
697 (f_language_data): Delete la_printchar initializer.
698 (f_language::printchar): New member function, implementation from
699 f_printchar.
700 * go-lang.c (go_language_data): Delete la_printchar initializer.
701 * language.c (unk_lang_printchar): Delete.
702 (language_defn::printchar): Define new member function.
703 (unknown_language_data): Delete la_printchar initializer.
704 (unknown_language::printchar): New member function.
705 (auto_language_data): Delete la_printchar initializer.
706 (auto_language::printchar): New member function.
707 * language.h (language_data): Delete la_printchar field.
708 (language_defn::printchar): Declare new member function.
709 (LA_PRINT_CHAR): Update call to printchar.
710 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
711 (m2_language::printchar): New member function.
712 * objc-lang.c (objc_language_data): Delete la_printchar
713 initializer.
714 * opencl-lang.c (opencl_language_data): Likewise.
715 * p-lang.c (pascal_language_data): Delete la_printchar
716 initializer.
717 (pascal_language::printchar): New member function.
718 * rust-lang.c (rust_printchar): Rename to
719 rust_language::printchar.
720 (rust_language_data): Delete la_printchar initializer.
721 (rust_language::printchar): New member function, implementation
722 from rust_printchar.
723
ec8cec5b
AB
7242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
725
726 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
727 (ada_language_data): Delete la_emitchar initializer.
728 (ada_language::emitchar): New member function, implementation from
729 emit_char.
730 * c-lang.c (c_language_data): Delete la_emitchar initializer.
731 (cplus_language_data): Likewise.
732 (asm_language_data): Likewise.
733 (minimal_language_data): Likewise.
734 * d-lang.c (d_language_data): Likewise.
735 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
736 (f_language_data): Delete la_emitchar initializer.
737 (f_language::emitchar): New member function, implementation from
738 f_emit_char.
739 * go-lang.c (go_language_data): Delete la_emitchar initializer.
740 * language.c (unk_lang_emit_char): Delete.
741 (language_defn::emitchar): New member function definition.
742 (unknown_language_data): Delete la_emitchar initializer.
743 (unknown_language::emitchar): New member function.
744 (auto_language_data): Delete la_emitchar initializer.
745 (auto_language::emitchar): New member function.
746 * language.h (language_data): Delete la_emitchar field.
747 (language_defn::emitchar): New member field declaration.
748 (LA_EMIT_CHAR): Update call to emitchar.
749 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
750 (m2_language_data): Delete la_emitchar initializer.
751 (m2_language::emitchar): New member function, implementation from
752 m2_emit_char.
753 * objc-lang.c (objc_language_data): Delete la_emitchar
754 initializer.
755 * opencl-lang.c (opencl_language_data): Likewise.
756 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
757 (pascal_language_data): Delete la_emitchar initializer.
758 (pascal_language::emitchar): New member function, implementation
759 from pascal_emit_char.
760 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
761 (rust_language_data): Delete la_emitchar initializer.
762 (rust_language::emitchar): New member function, implementation
763 from rust_emitchar.
764
1bf9c363
AB
7652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
766
767 * ada-lang.c (resolve): Rename to ada_language::post_parser.
768 (ada_language_data): Delete la_post_parser initializer.
769 (ada_language::post_parser): New member function.
770 * c-lang.c (c_language_data): Delete la_post_parser initializer.
771 (cplus_language_data): Likewise.
772 (asm_language_data): Likewise.
773 (minimal_language_data): Likewise.
774 * d-lang.c (d_language_data): Likewise.
775 * f-lang.c (f_language_data): Likewise.
776 * go-lang.c (go_language_data): Likewise.
777 * language.c (unknown_language_data): Likewise.
778 (auto_language_data): Likewise.
779 * language.h (language_data): Delete la_post_parser field.
780 (language_defn::post_parser): New member function.
781 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
782 * objc-lang.c (objc_language_data): Likewise.
783 * opencl-lang.c (opencl_language_data): Likewise.
784 * p-lang.c (pascal_language_data): Likewise.
785 * parse.c (parse_exp_in_context): Update call to post_parser.
786 (null_post_parser): Delete definition.
787 * parser-defs.h (null_post_parser): Delete declaration.
788 * rust-lang.c (rust_language_data): Delete la_post_parser
789 initializer.
790
87afa652
AB
7912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
792
793 * ada-lang.c (parse): Rename to ada_language::parser.
794 (ada_language_data): Delete la_parser initializer.
795 (ada_language::parser): New member function, implementation from
796 parse.
797 * c-lang.c (c_language_data): Delete la_parser initializer.
798 (cplus_language_data): Likewise.
799 (asm_language_data): Likewise.
800 (minimal_language_data): Likewise.
801 * d-lang.c (d_language_data): Likewise.
802 (d_language::parser): New member function.
803 * f-lang.c (f_language_data): Delete la_parser initializer.
804 (f_language::parser): New member function.
805 * go-lang.c (go_language_data): Delete la_parser initializer.
806 (go_language::parser): New member function.
807 * language.c (unk_lang_parser): Delete.
808 (language_defn::parser): Define new member function.
809 (unknown_language_data): Delete la_parser initializer.
810 (unknown_language::parser): New member function.
811 (auto_language_data): Delete la_parser initializer.
812 (auto_language::parser): New member function.
813 * language.h (language_data): Delete la_parser field.
814 (language_defn::parser): Declare new member function.
815 * m2-lang.c (m2_language_data): Delete la_parser initializer.
816 (m2_language::parser): New member function.
817 * objc-lang.c (objc_language_data): Delete la_parser initializer.
818 * opencl-lang.c (opencl_language_data): Likewise.
819 * p-lang.c (pascal_language_data): Likewise.
820 (pascal_language::parser): New member function.
821 * parse.c (parse_exp_in_context): Update call to parser.
822 * rust-lang.c (rust_language_data): Delete la_parser initializer.
823 (rust_language::parser): New member function.
824
37825800
AB
8252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
826
827 * top.c (print_gdb_configuration): Print --with-python-libdir
828 configuration value.
829
5b860c93
PW
8302020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
831
832 * NEWS: Mention change to the alias command.
833
cf00cd6f
PW
8342020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
835
836 * cli/cli-cmds.c (lookup_cmd_for_default_args)
837 (alias_command_completer)
838 (make_alias_options_def_group): New functions.
839 (alias_opts, alias_option_defs): New struct and array.
840 (alias_usage_error): Update usage.
841 (alias_command): Handles optional DEFAULT-ARGS... arguments.
842 Use option framework.
843 (_initialize_cli_cmds): Update alias command help.
844 Update aliases command help.
845 (show_user):
846 Add NULL for new default_args lookup_cmd argument.
847 (valid_command_p): Rename to validate_aliased_command.
848 Add NULL for new default_args lookup_cmd argument. Verify that the
849 aliased_command has no default args.
850 * cli/cli-decode.c (help_cmd): Show aliases definitions.
851 (lookup_cmd_1, lookup_cmd): New argument default_args.
852 (add_alias_cmd):
853 Add NULL for new default_args lookup_cmd argument.
854 (print_help_for_command): Show default args under the layout
855 alias some_alias = some_aliased_cmd some_alias_default_arg.
856 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
857 xfree default_args in destructor.
858 * cli/cli-script.c (process_next_line, do_define_command):
859 Add NULL for new default_args lookup_cmd argument.
860 * command.h: Declare new default_args argument in lookup_cmd
861 and lookup_cmd_1.
862 * completer.c (complete_line_internal_1):
863 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
864 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
865 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
866 Likewise.
867 * infcmd.c (_initialize_infcmd): Likewise.
868 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
869 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
870 * python/py-param.c (add_setshow_generic): Likewise.
871 * remote.c (_initialize_remote): Likewise.
872 * top.c (execute_command): Prepend default_args if command has some.
873 (set_verbose):
874 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
875 * tracepoint.c (validate_actionline, encode_actions_1):
876 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
877
bd920864
TBA
8782020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
879
880 * jit.c (jit_read_descriptor): Use bool as the return type.
881 (jit_breakpoint_re_set_internal): Use bool as the return type.
882 Invert the return value logic; return true if the jit breakpoint
883 has been successfully initialized.
884 (jit_inferior_init): Update the call to
885 jit_breakpoint_re_set_internal.
886
f8098322
PA
8872020-06-22 Pedro Alves <palves@redhat.com>
888
889 PR gdb/25939
890 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
891 Use the current inferior instead. Don't return
892 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
893 wait again.
894 * sol-thread.c (sol_thread_target::wait): Don't reference
895 inferior_ptid.
896 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
897 (sol_update_thread_list_callback): Use the current inferior's pid
898 instead of inferior_ptid.
899
196535a6
RO
9002020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
901
902 * procfs.c: Cleanup many comments.
903
904 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
905 (AFTER_WATCHFLAG): Replace by value.
906
907 (MAIN_PROC_NAME_FORMAT): Inline ...
908 (create_procinfo): ... here.
909
910 (procfs_debug_inferior): Remove SYS_exec handling.
911 (syscall_is_exec): Likewise.
912 (procfs_set_exec_trap): Likewise.
913
914 (syscall_is_lwp_exit): Inline in callers.
915 (syscall_is_exit): Likewise.
916 (syscall_is_exec): Likewise.
917 (syscall_is_lwp_create): Likewise.
918
919 (invalidate_cache): Remove #if 0 code.
920
921 (make_signal_thread_runnable): Remove.
922 (procfs_target::resume): Remove #if 0 code.
923
cf6f3e86
RO
9242020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
925
926 PR gdb/25939
927 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
928 call ...
929 (procfs_target::create_inferior): ... here.
930
48e9cc84
PW
9312020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
932
933 * exec.c (validate_exec_file): Ensure the build-id is up to
934 date by calling reopen_exec_file (that checks file timestamp
935 to decide to re-read the file).
936
3922b302
PA
9372020-06-18 Pedro Alves <palves@redhat.com>
938
939 PR gdb/25412
940 * gdbthread.h (delete_thread, delete_thread_silent)
941 (find_thread_ptid): Update comments.
942 * thread.c (current_thread_): New global.
943 (is_current_thread): Move higher, and reimplement.
944 (inferior_thread): Reimplement.
945 (set_thread_exited): Use bool. Add assertions.
946 (add_thread_silent): Simplify thread-reuse handling by always
947 calling delete_thread.
948 (delete_thread): Remove intro comment.
949 (find_thread_ptid): Skip exited threads.
950 (switch_to_thread_no_regs): Write to current_thread_.
951 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
952 INFERIOR_PTID. Clear current_thread_.
953
6dbdab44
PA
9542020-06-18 Pedro Alves <palves@redhat.com>
955
956 * aix-thread.c (pd_update): Use switch_to_thread.
957
2da4b788
PA
9582020-06-18 Pedro Alves <palves@redhat.com>
959
960 * ravenscar-thread.c (ravenscar_thread_target): Update.
961 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
962 (ravenscar_thread_target::add_active_thread): ... this. Don't
963 set m_base_ptid here. Update to avoid referencing inferior_ptid.
964 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
965
50838d1b
PA
9662020-06-18 Pedro Alves <palves@redhat.com>
967
968 * nat/windows-nat.c (current_windows_thread): Remove.
969 * nat/windows-nat.h (current_windows_thread): Remove.
970 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
971 Adjust.
972 (display_selectors): Adjust to fetch the current
973 windows_thread_info based on inferior_ptid.
974 (fake_create_process): No longer write to current_windows_thread.
975 (windows_nat_target::get_windows_debug_event):
976 Don't set inferior_ptid or current_windows_thread.
977 (windows_nat_target::wait): Adjust to not rely on
978 current_windows_thread.
979 (do_initial_windows_stuff): Now a method of windows_nat_target.
980 Switch to the last_ptid thread.
981 (windows_nat_target::attach): Adjust.
982 (windows_nat_target::detach): Use switch_to_no_thread instead of
983 writing to inferior_ptid directly.
984 (windows_nat_target::create_inferior): Adjust.
985
31ce04e9
PA
9862020-06-18 Pedro Alves <palves@redhat.com>
987
988 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
989
1ee1a363
PA
9902020-06-18 Pedro Alves <palves@redhat.com>
991
992 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
993 after creating it, instead of writing to inferior_ptid. Don't
994 write to inferior_ptid.
995
6d350754
PA
9962020-06-18 Pedro Alves <palves@redhat.com>
997
998 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
999
5d971d48
PA
10002020-06-18 Pedro Alves <palves@redhat.com>
1001
1002 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1003 it, instead of writing to inferior_ptid.
1004
86e57d1b
PA
10052020-06-18 Pedro Alves <palves@redhat.com>
1006
1007 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1008 to inferior_ptid.
1009
f2e1c129
PA
10102020-06-18 Pedro Alves <palves@redhat.com>
1011
1012 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1013 instead of writing to inferior_ptid directly.
1014
60db1b85
PA
10152020-06-18 Pedro Alves <palves@redhat.com>
1016
1017 * corelow.c (core_target::close): Use switch_to_no_thread instead
1018 of writing to inferior_ptid directly.
1019 (add_to_thread_list, core_target_open): Use switch_to_thread
1020 instead of writing to inferior_ptid directly.
1021
fe7d6a8d
PA
10222020-06-18 Pedro Alves <palves@redhat.com>
1023
1024 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1025 inferior_ptid.
1026 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1027 inferior_ptid.
1028 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1029 inferior_ptid directly.
1030 (darwin_nat_target::init_thread_list): Switch to thread, instead
1031 of writing to inferior_ptid.
1032 (darwin_nat_target::attach): Don't write to inferior_ptid.
1033 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1034
975f8708
PA
10352020-06-18 Pedro Alves <palves@redhat.com>
1036
1037 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1038 thread.
1039 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1040 Instead use switch_to_thread.
1041 (gnu_nat_target::detach): Use switch_to_no_thread
1042 instead of writing to inferior_ptid directly. Used passed-in
1043 inferior instead of looking up the inferior by pid.
1044
1a204730
PA
10452020-06-18 Pedro Alves <palves@redhat.com>
1046
1047 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1048 inferior_ptid.
1049
ebe84f23
PA
10502020-06-18 Pedro Alves <palves@redhat.com>
1051
1052 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1053 inferior_ptid.
1054 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1055 thread.
1056 (nto_procfs_target::detach): Avoid referencing
1057 inferior_ptid. Use switch_to_no_thread instead of writing to
1058 inferior_ptid directly.
1059 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1060 instead of writing to inferior_ptid directly.
1061 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1062 to thread.
1063
191f02e5
PA
10642020-06-18 Pedro Alves <palves@redhat.com>
1065
1066 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1067 after creating it, instead of writing to inferior_ptid.
1068 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1069 to inferior_ptid directly.
1070 (gdbsim_target::wait): Don't write to inferior_ptid.
1071
0ac55310
PA
10722020-06-18 Pedro Alves <palves@redhat.com>
1073
1074 * remote.c (remote_target::remote_notice_new_inferior): Use
1075 switch_to_thread instead of writing to inferior_ptid directly.
1076 (remote_target::add_current_inferior_and_thread): Use
1077 switch_to_no_thread instead of writing to inferior_ptid directly.
1078 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1079 and switch_to_thread instead of using set_current_inferior or
1080 writing to inferior_ptid directly.
1081
5233f39b
PA
10822020-06-18 Pedro Alves <palves@redhat.com>
1083
1084 * tracectf.c (ctf_target_open): Switch to added thread instead of
1085 writing to inferior_ptid directly.
1086 (ctf_target::close): Use switch_to_no_thread instead of writing to
1087 inferior_ptid directly.
1088
087e161b
PA
10892020-06-18 Pedro Alves <palves@redhat.com>
1090
1091 * tracefile-tfile.c (tfile_target_open): Don't write to
1092 inferior_ptid directly, instead switch to added thread.
1093 (tfile_target::close): Use switch_to_no_thread instead of writing
1094 to inferior_ptid directly.
1095
7fb43e53
PA
10962020-06-18 Pedro Alves <palves@redhat.com>
1097
1098 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1099 (procfs_target::detach): Use switch_to_no_thread
1100 instead of writing to inferior_ptid directly.
1101 (do_attach): Change return type to void. Switch to the added
1102 thread.
1103 (procfs_target::create_inferior): Switch to the added thread.
1104 (procfs_do_thread_registers): Don't write to inferior_ptid.
1105
18493a00
PA
11062020-06-18 Pedro Alves <palves@redhat.com>
1107
1108 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1109 of writing to inferior_ptid.
1110 (scoped_restore_exited_inferior): Delete.
1111 (handle_vfork_child_exec_or_exit): Simplify using
1112 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1113 instead of writing to inferior_ptid.
1114 (THREAD_STOPPED_BY): Delete.
1115 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1116 (thread_stopped_by_hw_breakpoint): Delete.
1117 (save_waitstatus): Use
1118 scoped_restore_current_thread+switch_to_thread, and call
1119 target_stopped_by_watchpoint instead of
1120 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1121 instead of thread_stopped_by_sw_breakpoint, and
1122 target_stopped_by_hw_breakpoint instead of
1123 thread_stopped_by_hw_breakpoint.
1124 (handle_inferior_event)
1125 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1126 inferior_ptid directly, nor
1127 set_current_inferior/set_current_program_space. Use
1128 switch_to_thread / switch_to_inferior_no_thread instead.
1129
a0776b13
PA
11302020-06-18 Pedro Alves <palves@redhat.com>
1131
1132 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1133 instead of writing to inferior_ptid.
1134
6155c136
PA
11352020-06-18 Pedro Alves <palves@redhat.com>
1136
1137 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1138 added thread.
1139 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1140 to the added thread.
1141 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1142 instead of writing to inferior_ptid.
1143
c5316fc6
PA
11442020-06-18 Pedro Alves <palves@redhat.com>
1145
1146 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1147 (register_to_value_test): Mock a program_space too. Heap-allocate
1148 the address space. Don't write to inferior_ptid. Use
1149 switch_to_thread instead.
1150
8df01799
PA
11512020-06-18 Pedro Alves <palves@redhat.com>
1152
1153 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1154 Delete.
1155 (find_signalled_thread()): New, factored out from
1156 linux_make_corefile_notes and adjusted to handle exited threads.
1157 (linux_make_corefile_notes): Adjust to use the new
1158 find_signalled_thread.
1159
41792d68
PA
11602020-06-18 Pedro Alves <palves@redhat.com>
1161
1162 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1163 of saving/restoring inferior_ptid.
1164
612f258a
TT
11652020-06-17 Tom Tromey <tom@tromey.com>
1166
1167 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1168 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1169 declare.
1170 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1171
efb763a5
SM
11722020-06-15 Simon Marchi <simon.marchi@efficios.com>
1173
1174 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1175 of partial symtabs.
1176
2951f6c0
SM
11772020-06-17 Simon Marchi <simon.marchi@efficios.com>
1178
1179 * regformats/reg-arm.dat: Remove.
1180 * regformats/reg-bfin.dat: Remove.
1181 * regformats/reg-cris.dat: Remove.
1182 * regformats/reg-crisv32.dat: Remove.
1183 * regformats/reg-m32r.dat: Remove.
1184 * regformats/reg-tilegx.dat: Remove.
1185 * regformats/reg-tilegx32.dat: Remove.
1186
7d458ea5
SM
11872020-06-17 Simon Marchi <simon.marchi@efficios.com>
1188
1189 * features/Makefile (WHICH): Remove arm files.
1190 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1191 * regformats/arm/arm-with-neon.dat: Remove.
1192 * regformats/arm/arm-with-vfpv2.dat: Remove.
1193 * regformats/arm/arm-with-vfpv3.dat: Remove.
1194
3af96c0d
SM
11952020-06-17 Simon Marchi <simon.marchi@efficios.com>
1196
1197 * features/Makefile (XMLTOC): Remove rx.xml.
1198
b25e22fd
PA
11992020-06-17 Pedro Alves <palves@redhat.com>
1200
1201 * gdbthread.h (thread_control_state) <trap_expected> Update
1202 comments.
1203
a78a19b1
AB
12042020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1205
1206 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1207 ada_language::lookup_symbol_nonlocal.
1208 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1209 (ada_language::lookup_symbol_nonlocal): New member function,
1210 implementation from ada_lookup_symbol_nonlocal.
1211 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1212 initializer.
1213 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1214 initializer.
1215 (cplus_language::lookup_symbol_nonlocal): New member function.
1216 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1217 (minimal_language_data) Likewise.
1218 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1219 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1220 initializer.
1221 (d_language::lookup_symbol_nonlocal): New member function.
1222 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1223 initializer.
1224 (f_language::lookup_symbol_nonlocal): New member function.
1225 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1226 initializer.
1227 * language.c (unknown_language_data): Likewise.
1228 (auto_language_data): Likewise.
1229 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1230 field.
1231 (language_defn::lookup_symbol_nonlocal): New member function.
1232 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1233 initializer.
1234 * objc-lang.c (objc_language_data): Likewise.
1235 * opencl-lang.c (opencl_language_data): Likewise.
1236 * p-lang.c (pascal_language_data): Likewise.
1237 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1238 rust_language::lookup_symbol_nonlocal.
1239 (rust_language_data): Delete la_lookup_symbol_nonlocal
1240 initializer.
1241 (rust_language::lookup_symbol_nonlocal): New member function,
1242 implementation from rust_lookup_symbol_nonlocal.
1243 * symtab.c (lookup_symbol_aux): Update call to
1244 lookup_symbol_nonlocal.
1245 (basic_lookup_symbol_nonlocal): Rename to...
1246 (language_defn::lookup_symbol_nonlocal): ...this, and update
1247 header comment. Remove language_defn parameter, and replace with
1248 uses of `this'.
1249 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1250
ebe2334e
AB
12512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1252
1253 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1254 initializer.
1255 (ada_language::value_print_inner): New member function.
1256 * c-lang.c (c_language_data): Delete la_value_print_inner
1257 initializer.
1258 (cplus_language_data): Likewise.
1259 (asm_language_data): Likewise.
1260 (minimal_language_data): Likewise.
1261 * d-lang.c (d_language_data): Likewise.
1262 (d_language::value_print_inner): New member function.
1263 * f-lang.c (f_language_data): Delete la_value_print_inner
1264 initializer.
1265 (f_language::value_print_inner): New member function.
1266 * f-lang.h (f_value_print_innner): Rename to...
1267 (f_value_print_inner): ...this (note spelling of 'inner').
1268 * f-valprint.c (f_value_print_innner): Rename to...
1269 (f_value_print_inner): ...this (note spelling of 'inner').
1270 * go-lang.c (go_language_data): Delete la_value_print_inner
1271 initializer.
1272 (go_language::value_print_inner): New member function.
1273 * language.c (language_defn::value_print_inner): Define new member
1274 function.
1275 (unk_lang_value_print_inner): Delete.
1276 (unknown_language_data): Delete la_value_print_inner initializer.
1277 (unknown_language::value_print_inner): New member function.
1278 (auto_language_data): Delete la_value_print_inner initializer.
1279 (auto_language::value_print_inner): New member function.
1280 * language.h (language_data): Delete la_value_print_inner field.
1281 (language_defn::value_print_inner): Delcare new member function.
1282 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1283 initializer.
1284 (m2_language::value_print_inner): New member function.
1285 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1286 initializer.
1287 * opencl-lang.c (opencl_language_data): Likewise.
1288 * p-lang.c (pascal_language_data): Likewise.
1289 (pascal_language::value_print_inner): New member function.
1290 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1291 initializer.
1292 (rust_language::value_print_inner): New member function.
1293 * valprint.c (do_val_print): Update call to value_print_inner.
1294
a1d1fa3e
AB
12952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1296
1297 * ada-lang.c (ada_language_data): Delete la_value_print
1298 initializer.
1299 (ada_language::value_print): New member function.
1300 * c-lang.c (c_language_data): Delete la_value_print initializer.
1301 (cplus_language_data): Likewise.
1302 (asm_language_data): Likewise.
1303 (minimal_language_data): Likewise.
1304 * d-lang.c (d_language_data): Likewise.
1305 * f-lang.c (f_language_data): Likewise.
1306 * go-lang.c (go_language_data): Likewise.
1307 * language.c (unk_lang_value_print): Delete.
1308 (language_defn::value_print): Define new member function.
1309 (unknown_language_data): Delete la_value_print initializer.
1310 (unknown_language::value_print): New member function.
1311 (auto_language_data): Delete la_value_print initializer.
1312 (auto_language::value_print): New member function.
1313 * language.h (language_data): Delete la_value_print field.
1314 (language_defn::value_print): Declare new member function.
1315 (LA_VALUE_PRINT): Update call to value_print.
1316 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1317 * objc-lang.c (objc_language_data): Likewise.
1318 * opencl-lang.c (opencl_language_data): Likewise.
1319 * p-lang.c (pascal_language_data): Likewise.
1320 (pascal_language::value_print): New member function.
1321 * rust-lang.c (rust_language_data): Delete la_value_print
1322 initializer.
1323
f16a9f57
AB
13242020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1325
1326 * ada-lang.c (ada_watch_location_expression): Rename to
1327 ada_language::watch_location_expression.
1328 (ada_language_data): Delete la_watch_location_expression
1329 initializer.
1330 (ada_language::watch_location_expression): New member function,
1331 implementation from ada_watch_location_expression.
1332 * breakpoint.c (watch_command_1): Update call to
1333 watch_location_expression.
1334 * c-lang.c (c_watch_location_expression): Rename to
1335 language_defn::watch_location_expression.
1336 (c_language_data): Delete la_watch_location_expression
1337 initializer.
1338 (cplus_language_data): Likewise.
1339 (asm_language_data): Likewise.
1340 (minimal_language_data): Likewise.
1341 * c-lang.h (c_watch_location_expression): Delete declaration.
1342 * d-lang.c (d_language_data): Delete la_watch_location_expression
1343 initializer.
1344 * f-lang.c (f_language_data): Likewise.
1345 * go-lang.c (go_language_data): Likewise.
1346 * language.c (language_defn::watch_location_expression): Member
1347 function implementation from c_watch_location_expression.
1348 (unknown_language_data): Delete la_watch_location_expression
1349 initializer.
1350 (auto_language_data): Likewise.
1351 * language.h (language_data): Delete la_watch_location_expression
1352 field.
1353 (language_defn::watch_location_expression): Declare new member
1354 function.
1355 * m2-lang.c (m2_language_data): Delete
1356 la_watch_location_expression initializer.
1357 * objc-lang.c (objc_language_data): Likewise.
1358 * opencl-lang.c (opencl_language_data): Likewise.
1359 * p-lang.c (pascal_language_data): Likewise.
1360 * rust-lang.c (rust_watch_location_expression): Rename to
1361 rust_language::watch_location_expression.
1362 (rust_language_data): Delete la_watch_location_expression
1363 initializer.
1364 (rust_language::watch_location_expression): New member function,
1365 implementation from rust_watch_location_expression.
1366
7e56227d
AB
13672020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1368
1369 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1370 ada_language::collect_symbol_completion_matches.
1371 (ada_language_data): Delete la_collect_symbol_completion_matches
1372 initializer.
1373 (ada_language::collect_symbol_completion_matches): New member
1374 function, implementation from
1375 ada_collect_symbol_completion_matches.
1376 * c-lang.c (c_language_data): Delete
1377 la_collect_symbol_completion_matches initializer.
1378 (cplus_language_data): Likewise.
1379 (asm_language_data): Likewise.
1380 (minimal_language_data): Likewise.
1381 * d-lang.c (d_language_data): Likewise.
1382 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1383 f_language::collect_symbol_completion_matches.
1384 (f_language_data): Delete la_collect_symbol_completion_matches
1385 initializer.
1386 (f_language::collect_symbol_completion_matches) New member
1387 function, implementation from f_collect_symbol_completion_matches.
1388 * go-lang.c (go_language_data): Delete
1389 la_collect_symbol_completion_matches initializer.
1390 * language.c (unknown_language_data): Likewise.
1391 (auto_language_data): Likewise.
1392 * language.h (language_data): Delete
1393 la_collect_symbol_completion_matches field.
1394 (language_defn::collect_symbol_completion_matches): New member
1395 function.
1396 * m2-lang.c (m2_language_data): Delete
1397 la_collect_symbol_completion_matches initializer.
1398 * objc-lang.c (objc_language_data): Likewise.
1399 * opencl-lang.c (opencl_language_data): Likewise.
1400 * p-lang.c (pascal_language_data): Likewise.
1401 * rust-lang.c (rust_language_data): Likewise.
1402 * symtab.c (default_collect_symbol_completion_matches): Delete.
1403 (collect_symbol_completion_matches): Update call to
1404 collect_symbol_completion_matches.
1405 (collect_symbol_completion_matches_type): Likewise.
1406 * symtab.h (default_collect_symbol_completion_matches): Delete
1407 declaration.
1408
53fc67f8
AB
14092020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1410
1411 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1412 (ada_language_data): Delete la_word_break_characters initializer.
1413 (ada_language::word_break_characters): New member function.
1414 * c-lang.c (c_language_data): Delete la_word_break_characters
1415 initializer.
1416 (cplus_language_data): Likewise.
1417 (asm_language_data): Likewise.
1418 (minimal_language_data): Likewise.
1419 * completer.c: Update global comment.
1420 (advance_to_expression_complete_word_point): Update call to
1421 word_break_characters.
1422 (complete_files_symbols): Likewise.
1423 (complete_line_internal_1): Likewise.
1424 (default_completer_handle_brkchars): Likewise.
1425 (skip_quoted_chars): Likewise.
1426 * d-lang.c (d_language_data): Delete la_word_break_characters
1427 initializer.
1428 * f-lang.c (f_word_break_characters): Delete.
1429 (f_language_data): Delete la_word_break_characters initializer.
1430 (f_language::word_break_characters): New member function.
1431 * go-lang.c (go_language_data): Delete la_word_break_characters
1432 initializer.
1433 * language.c (unknown_language_data): Likewise.
1434 (auto_language_data): Likewise.
1435 * language.h (default_word_break_characters): Move declaration to
1436 earlier in the file.
1437 (language_data): Delete la_word_break_characters field.
1438 (language_defn::word_break_characters): New member function.
1439 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1440 initializer.
1441 * objc-lang.c (objc_language_data): Likewise.
1442 * opencl-lang.c (opencl_language_data): Likewise.
1443 * p-lang.c (pascal_language_data): Likewise.
1444 * rust-lang.c (rust_language_data): Likewise.
1445
c9debfb9
AB
14462020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1447
1448 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1449 (ada_language_data): Delete la_get_symbol_name_matcher
1450 initializer.
1451 (language_defn::get_symbol_name_matcher_inner): New member
1452 function.
1453 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1454 initializer.
1455 (cplus_language_data): Likewise.
1456 (cplus_language::get_symbol_name_matcher_inner): New member
1457 function.
1458 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1459 (minimal_language_data): Likewise.
1460 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1461 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1462 initializer.
1463 * dictionary.c (iter_match_first_hashed): Update call to
1464 get_symbol_name_matcher.
1465 (iter_match_next_hashed): Likewise.
1466 (iter_match_next_linear): Likewise.
1467 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1468 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1469 initializer.
1470 (f_language::get_symbol_name_matcher_inner): New member function.
1471 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1472 initializer.
1473 * language.c (default_symbol_name_matcher): Update header comment,
1474 make static.
1475 (language_defn::get_symbol_name_matcher): New definition.
1476 (language_defn::get_symbol_name_matcher_inner): Likewise.
1477 (get_symbol_name_matcher): Delete.
1478 (unknown_language_data): Delete la_get_symbol_name_matcher
1479 initializer.
1480 (auto_language_data): Likewise.
1481 * language.h (language_data): Delete la_get_symbol_name_matcher
1482 field.
1483 (language_defn::get_symbol_name_matcher): New member function.
1484 (language_defn::get_symbol_name_matcher_inner): Likewise.
1485 (default_symbol_name_matcher): Delete declaration.
1486 * linespec.c (find_methods): Update call to
1487 get_symbol_name_matcher.
1488 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1489 initializer.
1490 * minsyms.c (lookup_minimal_symbol): Update call to
1491 get_symbol_name_matcher.
1492 (iterate_over_minimal_symbols): Likewise.
1493 * objc-lang.c (objc_language_data): Delete
1494 la_get_symbol_name_matcher initializer.
1495 * opencl-lang.c (opencl_language_data): Likewise.
1496 * p-lang.c (pascal_language_data): Likewise.
1497 * psymtab.c (psymbol_name_matches): Update call to
1498 get_symbol_name_matcher.
1499 * rust-lang.c (rust_language_data): Delete
1500 la_get_symbol_name_matcher initializer.
1501 * symtab.c (symbol_matches_search_name): Update call to
1502 get_symbol_name_matcher.
1503 (compare_symbol_name): Likewise.
1504
9a49ad8c
AB
15052020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1506
1507 * ada-lang.c (ada_language_data): Delete la_compute_program
1508 initializer.
1509 * c-lang.c (c_language_data): Likewise.
1510 (c_language::compute_program): New member function.
1511 (cplus_language_data): Delete la_compute_program initializer.
1512 (cplus_language::compute_program): New member function.
1513 (asm_language_data): Delete la_compute_program initializer.
1514 (minimal_language_data): Likewise.
1515 * c-lang.h (c_compute_program): Update comment.
1516 (cplus_compute_program): Likewise.
1517 * compile/compile-c-support.c (c_compute_program): Likewise.
1518 (cplus_compute_program): Likewise.
1519 * compile/compile.c (compile_to_object): Update call to
1520 la_compute_program.
1521 * d-lang.c (d_language_data): Delete la_compute_program
1522 initializer.
1523 * f-lang.c (f_language_data): Likewise.
1524 * go-lang.c (go_language_data): Likewise.
1525 * language.c (unknown_language_data): Likewise.
1526 (auto_language_data): Likewise.
1527 * language.h (language_data): Delete la_compute_program field.
1528 (language_defn::compute_program): New member function.
1529 * m2-lang.c (m2_language_data): Delete la_compute_program
1530 initializer.
1531 * objc-lang.c (objc_language_data): Likewise.
1532 * opencl-lang.c (opencl_language_data): Likewise.
1533 * p-lang.c (pascal_language_data): Likewise.
1534 * rust-lang.c (rust_language_data): Likewise.
1535
eff93b4d
AB
15362020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1537
1538 * ada-lang.c (ada_language_data) Delete
1539 la_class_name_from_physname initializer.
1540 * c-lang.c (c_language_data): Likewise.
1541 (cplus_language_data): Likewise.
1542 (cplus_language::class_name_from_physname): New member function.
1543 (asm_language_data): Delete la_class_name_from_physname
1544 initializer.
1545 (minimal_language_data): Likewise.
1546 * d-lang.c (d_language_data): Likewise.
1547 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1548 method on language_defn class.
1549 (guess_full_die_structure_name): Likewise.
1550 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1551 initializer.
1552 * go-lang.c (go_language_data): Likewise.
1553 * language.c (language_class_name_from_physname): Delete.
1554 (unk_lang_class_name): Delete.
1555 (unknown_language_data): Delete la_class_name_from_physname
1556 initializer.
1557 (auto_language_data): Likewise.
1558 * language.h (language_data): Delete la_class_name_from_physname
1559 field.
1560 (language_defn::class_name_from_physname): New function.
1561 (language_class_name_from_physname): Delete declaration.
1562 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1563 initializer.
1564 * objc-lang.c (objc_language_data): Likewise.
1565 * opencl-lang.c (opencl_language_data): Likewise.
1566 * p-lang.c (pascal_language_data): Likewise.
1567 * rust-lang.c (rust_language_data): Likewise.
1568
de543742
TT
15692020-06-16 Tom Tromey <tom@tromey.com>
1570
1571 * tui/tui-data.h (STATUS_NAME): New macro.
1572 * tui/tui-layout.c (tui_remove_some_windows)
1573 (initialize_known_windows, tui_register_window)
1574 (tui_layout_split::remove_windows, initialize_layouts)
1575 (tui_new_layout_command): Don't use hard-coded window names.
1576
a350efd4
TT
15772020-06-16 Tom Tromey <tom@tromey.com>
1578
1579 PR tui/25348:
1580 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1581 tui_initialize_readline. Only run once. Call rl_initialize.
1582 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1583 tui_initialize_readline.
1584 * tui/tui-io.c (tui_setup_io): Call
1585 tui_ensure_readline_initialized.
1586 * tui/tui-interp.c (tui_interp::init): Update.
1587
39ec0490
TT
15882020-06-16 Tom Tromey <tom@tromey.com>
1589
1590 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1591 Also preserve the status window.
1592
d2d1ea20
TT
15932020-06-16 Tom Tromey <tom@tromey.com>
1594
1595 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1596 where m_window==nullptr.
1597
66920317
TT
15982020-06-15 Tom Tromey <tromey@adacore.com>
1599
1600 * windows-nat.c (windows_nat::handle_output_debug_string):
1601 Update.
1602 (windows_nat::handle_ms_vc_exception): Update.
1603 * target.h (target_read_string): Change API.
1604 * target.c (target_read_string): Change API.
1605 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1606 Update.
1607 * solib-frv.c (frv_current_sos): Update.
1608 * solib-dsbt.c (dsbt_current_sos): Update.
1609 * solib-darwin.c (darwin_current_sos): Update.
1610 * linux-thread-db.c (inferior_has_bug): Update.
1611 * expprint.c (print_subexp_standard): Update.
1612 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1613 (ada_exception_message_1): Update.
1614
a5d871dd
TT
16152020-06-15 Tom Tromey <tromey@adacore.com>
1616
1617 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1618
670e35fa
TT
16192020-06-15 Tom Tromey <tromey@adacore.com>
1620
1621 * valprint.c (read_string): Update comment.
1622 * target.c (MIN): Remove.
1623 (target_read_string): Rewrite.
1624
f5272a3b
TT
16252020-06-15 Tom Tromey <tromey@adacore.com>
1626
1627 * corefile.c (read_memory_string): Remove.
1628 * ada-valprint.c (ada_value_print_ptr): Update.
1629 * ada-lang.h (ada_tag_name): Change return type.
1630 * ada-lang.c (type_from_tag): Update.
1631 (ada_tag_name_from_tsd): Change return type. Use
1632 target_read_string.
1633 (ada_tag_name): Likewise.
1634 * gdbcore.h (read_memory_string): Don't declare.
1635
2c074f49
HD
16362020-06-14 Hannes Domani <ssbssa@yahoo.de>
1637
1638 * symtab.c (rbreak_command): Ignore Windows drive colon.
1639
6a17d503
SM
16402020-06-12 Simon Marchi <simon.marchi@efficios.com>
1641
1642 * NEWS: Mention removed GDBserver host support.
1643
453c733f
NC
16442020-06-12 Nelson Chu <nelson.chu@sifive.com>
1645
1646 * features/riscv/rebuild-csr-xml.sh: Updated.
1647
2b4e6a3f
TT
16482020-06-11 Tom Tromey <tom@tromey.com>
1649
1650 PR gdb/18318:
1651 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1652
4412332f
JG
16532020-06-09 Jonny Grant <jg@jguk.org>
16542020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1655
1656 * main.c (captured_main_1): Don't print new line after help.
1657 (print_gdb_help): add mailing list and IRC channel information
1658 to --help. Add new lines between items in the footer. Remove
1659 quotes around bug url.
1660
2f33032a
KS
16612020-06-11 Keith Seitz <keiths@redhat.com>
1662
1663 PR gdb/21356
1664 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1665 Resolve typedefs for type length calculations.
1666
7ab96794
TV
16672020-06-10 Tom de Vries <tdevries@suse.de>
1668
1669 PR ada/24713
1670 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1671 (write_psymbols): Enable .gdb_index for ada.
1672 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1673 ada.
1674
e5f3ece2
TV
16752020-06-10 Tom de Vries <tdevries@suse.de>
1676
1677 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1678 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1679 namei" instead of "const char *name" argument.
1680 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1681 dw2_symtab_iter_init.
1682
940da03e
SM
16832020-06-08 Simon Marchi <simon.marchi@efficios.com>
1684
1685 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1686 to use type::field and field::type instead.
1687
b6cdac4b
SM
16882020-06-08 Simon Marchi <simon.marchi@efficios.com>
1689
1690 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1691 to use field::type instead.
1692
5d14b6e5
SM
16932020-06-08 Simon Marchi <simon.marchi@efficios.com>
1694
1695 * gdbtypes.h (struct field) <type, set_type>: New methods.
1696 Rename `type` field to...
1697 <m_type>: ... this. Change references throughout to use type or
1698 set_type methods.
1699 (FIELD_TYPE): Use field::type. Change call sites that modify
1700 the field's type to use field::set_type instead.
1701
3d967001
SM
17022020-06-08 Simon Marchi <simon.marchi@efficios.com>
1703
1704 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1705 to use type::index_type instead.
1706
262abc0d
SM
17072020-06-08 Simon Marchi <simon.marchi@efficios.com>
1708
1709 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1710 methods.
1711 (TYPE_INDEX_TYPE): Use type::index_type.
1712 * gdbtypes.c (create_array_type_with_stride): Likewise.
1713
82836c92
TT
17142020-06-07 Tom Tromey <tom@tromey.com>
1715
1716 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1717 parameter.
1718 (generic_value_print): Update.
1719
940dace9
AB
17202020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1721
1722 Revert commit 982a38f60b0.
1723 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1724
982a38f6
AB
17252020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1726
1727 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1728 avoid use after free.
1729
82f06518
TV
17302020-06-05 Tom de Vries <tdevries@suse.de>
1731
1732 * NEWS: Fix typos.
1733
f8c41851
SM
17342020-06-04 Simon Marchi <simon.marchi@efficios.com>
1735
1736 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1737 the per_bfd object.
1738 (dwarf2_read_debug_names): Likewise.
1739 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1740 object when re-using a per_bfd object with an index.
1741
f9b5d5ea
TV
17422020-06-03 Tom de Vries <tdevries@suse.de>
1743
1744 PR symtab/26046
1745 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1746 children for C++.
1747 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1748 DW_TAG_subprogram.
1749
f6eee2d0
AB
17502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1751
1752 * ada-lang.c (ada_language_data): Delete skip_trampoline
1753 initializer.
1754 * c-lang.c (c_language_data): Likewise.
1755 (cplus_language_data): Likewise.
1756 (cplus_language::skip_trampoline): New member function.
1757 (asm_language_data): Delete skip_trampoline initializer.
1758 (minimal_language_data): Likewise.
1759 * d-lang.c (d_language_data): Likewise.
1760 * f-lang.c (f_language_data): Likewise.
1761 * go-lang.c (go_language_data): Likewise.
1762 * language.c (unk_lang_trampoline): Delete function.
1763 (skip_language_trampoline): Update.
1764 (unknown_language_data): Delete skip_trampoline initializer.
1765 (auto_language_data): Likewise.
1766 * language.h (language_data): Delete skip_trampoline field.
1767 (language_defn::skip_trampoline): New function.
1768 * m2-lang.c (m2_language_data): Delete skip_trampoline
1769 initializer.
1770 * objc-lang.c (objc_skip_trampoline): Delete function, move
1771 implementation to objc_language::skip_trampoline.
1772 (objc_language_data): Delete skip_trampoline initializer.
1773 (objc_language::skip_trampoline): New member function with
1774 implementation from objc_skip_trampoline.
1775 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1776 initializer.
1777 * p-lang.c (pascal_language_data): Likewise.
1778 * rust-lang.c (rust_language_data): Likewise.
1779
0a50df5d
AB
17802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1781
1782 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1783 (ada_language::demangle): New member function.
1784 * c-lang.c (c_language_data): Delete la_demangle initializer.
1785 (cplus_language_data): Delete la_demangle initializer.
1786 (cplus_language::demangle): New member function.
1787 (asm_language_data): Delete la_demangle initializer.
1788 (minimal_language_data): Delete la_demangle initializer.
1789 * d-lang.c (d_language_data): Delete la_demangle initializer.
1790 (d_language::demangle): New member function.
1791 * f-lang.c (f_language_data): Delete la_demangle initializer.
1792 (f_language::demangle): New member function.
1793 * go-lang.c (go_language_data): Delete la_demangle initializer.
1794 (go_language::demangle): New member function.
1795 * language.c (language_demangle): Update.
1796 (unk_lang_demangle): Delete.
1797 (unknown_language_data): Delete la_demangle initializer.
1798 (unknown_language::demangle): New member function.
1799 (auto_language_data): Delete la_demangle initializer.
1800 (auto_language::demangle): New member function.
1801 * language.h (language_data): Delete la_demangle field.
1802 (language_defn::demangle): New function.
1803 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1804 * objc-lang.c (objc_language_data): Delete la_demangle
1805 initializer.
1806 (objc_language::demangle): New member function.
1807 * opencl-lang.c (opencl_language_data): Delete la_demangle
1808 initializer.
1809 * p-lang.c (pascal_language_data): Likewise.
1810 * rust-lang.c (rust_language_data): Likewise.
1811 (rust_language::demangle): New member function.
1812
fbfb0a46
AB
18132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1814
1815 * ada-lang.c (ada_language_data): Delete la_print_type
1816 initializer.
1817 (ada_language::print_type): New member function.
1818 * c-lang.c (c_language_data): Delete la_print_type initializer.
1819 (c_language::print_type): New member function.
1820 (cplus_language_data): Delete la_print_type initializer.
1821 (cplus_language::print_type): New member function.
1822 (asm_language_data): Delete la_print_type initializer.
1823 (asm_language::print_type): New member function.
1824 (minimal_language_data): Delete la_print_type initializer.
1825 (minimal_language::print_type): New member function.
1826 * d-lang.c (d_language_data): Delete la_print_type initializer.
1827 (d_language::print_type): New member function.
1828 * f-lang.c (f_language_data): Delete la_print_type initializer.
1829 (f_language::print_type): New member function.
1830 * go-lang.c (go_language_data): Delete la_print_type initializer.
1831 (go_language::print_type): New member function.
1832 * language.c (unk_lang_print_type): Delete.
1833 (unknown_language_data): Delete la_print_type initializer.
1834 (unknown_language::print_type): New member function.
1835 (auto_language_data): Delete la_print_type initializer.
1836 (auto_language::print_type): New member function.
1837 * language.h (language_data): Delete la_print_type field.
1838 (language_defn::print_type): New function.
1839 (LA_PRINT_TYPE): Update.
1840 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1841 (m2_language::print_type): New member function.
1842 * objc-lang.c (objc_language_data): Delete la_print_type
1843 initializer.
1844 (objc_language::print_type): New member function.
1845 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1846 to opencl_language::print_type.
1847 (opencl_language_data): Delete la_print_type initializer.
1848 (opencl_language::print_type): New member function, implementation
1849 from opencl_print_type.
1850 * p-lang.c (pascal_language_data): Delete la_print_type
1851 initializer.
1852 (pascal_language::print_type): New member function.
1853 * rust-lang.c (rust_print_type): Delete, implementation moved to
1854 rust_language::print_type.
1855 (rust_language_data): Delete la_print_type initializer.
1856 (rust_language::print_type): New member function, implementation
1857 from rust_print_type.
1858
6f827019
AB
18592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1860
1861 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1862 implementation moves to...
1863 (ada_language::sniff_from_mangled_name): ...here. Update return
1864 type.
1865 (ada_language_data): Delete la_sniff_from_mangled_name
1866 initializer.
1867 * c-lang.c (c_language_data): Likewise.
1868 (cplus_language_data): Likewise.
1869 (cplus_language::sniff_from_mangled_name): New member function,
1870 implementation taken from gdb_sniff_from_mangled_name.
1871 (asm_language_data): Delete la_sniff_from_mangled_name
1872 initializer.
1873 (minimal_language_data): Likewise.
1874 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1875 implementation moves to cplus_language::sniff_from_mangled_name.
1876 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1877 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1878 moves to...
1879 (d_language::sniff_from_mangled_name): ...here.
1880 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1881 * f-lang.c (f_language_data): Likewise.
1882 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1883 moves to...
1884 (go_language::sniff_from_mangled_name): ...here.
1885 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1886 * language.c (language_sniff_from_mangled_name): Delete.
1887 (unknown_language_data): Delete la_sniff_from_mangled_name
1888 initializer.
1889 (auto_language_data): Likewise.
1890 * language.h (language_data): Delete la_sniff_from_mangled_name
1891 field.
1892 (language_defn::sniff_from_mangled_name): New function.
1893 (language_sniff_from_mangled_name): Delete declaration.
1894 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1895 field.
1896 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1897 implementation moves to...
1898 (objc_language::sniff_from_mangled_name): ...here.
1899 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1900 * opencl-lang.c (opencl_language_data): Likewise.
1901 * p-lang.c (pascal_language_data): Likewise.
1902 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1903 implementation moves to...
1904 (rust_language::sniff_from_mangled_name): ...here.
1905 (rust_language_data): Delete la_sniff_from_mangled_name
1906 initializer.
1907 * symtab.c (symbol_find_demangled_name): Call
1908 sniff_from_mangled_name member function.
1909
fb8006fd
AB
19102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1911
1912 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1913 initializer.
1914 * c-lang.c (c_language_data): Likewise.
1915 (cplus_language_data): Likewise.
1916 (cplus_language::search_name_hash): New member function.
1917 (asm_language_data): Delete la_search_name_hash initializer.
1918 (minimal_language_data): Likewise.
1919 * d-lang.c (d_language_data): Likewise.
1920 * dictionary.c (default_search_name_hash): Rename to...
1921 (language_defn::search_name_hash): ...this.
1922 * f-lang.c (f_language_data): Likewise.
1923 (f_language::search_name_hash): New member function.
1924 * go-lang.c (go_language_data): Delete la_search_name_hash
1925 initializer.
1926 * language.c (unknown_language_data): Likewise.
1927 (auto_language_data): Likewise.
1928 * language.h (struct language_data): Delete la_search_name_hash
1929 field.
1930 (language_defn::search_name_hash): Declare new member function.
1931 (default_search_name_hash): Delete declaration.
1932 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1933 initializer.
1934 * objc-lang.c (objc_language_data): Likewise.
1935 * opencl-lang.c (opencl_language_data): Likewise.
1936 * p-lang.c (pascal_language_data): Likewise.
1937 * rust-lang.c (rust_language_data): Likewise.
1938 * symtab.c (search_name_hash): Update call.
1939
8e25bafe
AB
19402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1941
1942 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1943 initializer.
1944 * c-lang.c (class compile_instance): Declare.
1945 (c_language_data): Delete la_get_compile_instance initializer.
1946 (c_language::get_compile_instance): New member function.
1947 (cplus_language_data): Delete la_get_compile_instance initializer.
1948 (cplus_language::get_compile_instance): New member function.
1949 (asm_language_data): Delete la_get_compile_instance initializer.
1950 (minimal_language_data): Likewise.
1951 * c-lang.h (c_get_compile_context): Update comment.
1952 (cplus_get_compile_context): Update comment.
1953 * compile/compile.c (compile_to_object): Update calls, don't rely
1954 on function pointer being NULL.
1955 * d-lang.c (d_language_data): Delete la_get_compile_instance
1956 initializer.
1957 * f-lang.c (f_language_data): Likewise.
1958 * go-lang.c (go_language_data): Likewise.
1959 * language.c (unknown_language_data): Likewise.
1960 (auto_language_data): Likewise.
1961 * language.h (language_data): Delete la_get_compile_instance field.
1962 (language_defn::get_compile_instance): New member function.
1963 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1964 initializer.
1965 * objc-lang.c (objc_language_data): Likewise.
1966 * opencl-lang.c (opencl_language_data): Likewise.
1967 * p-lang.c (pascal_language_data): Likewise.
1968 * rust-lang.c (rust_language_data): Likewise.
1969
4009ee92
AB
19702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1971
1972 * ada-lang.c (ada_add_all_symbols): Update comment.
1973 (ada_iterate_over_symbols): Delete, move implementation to...
1974 (ada_language::iterate_over_symbols): ...here, a new member
1975 function, rewrite to use range based for loop.
1976 (ada_language_data): Delete la_iterate_over_symbols initializer.
1977 * c-lang.c (c_language_data): Likewise.
1978 (cplus_language_data): Likewise.
1979 (asm_language_data): Likewise.
1980 (minimal_language_data): Likewise.
1981 * d-lang.c (d_language_data): Likewise.
1982 * f-lang.c (f_language_data): Likewise.
1983 * go-lang.c (go_language_data): Likewise.
1984 * language.c (unknown_language_data): Likewise.
1985 (auto_language_data): Likewise.
1986 * language.h (language_data): Delete la_iterate_over_symbols field.
1987 (language_defn::iterate_over_symbols): New member function.
1988 (LA_ITERATE_OVER_SYMBOLS): Update.
1989 * linespec.c (iterate_over_all_matching_symtabs): Update.
1990 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
1991 initializer.
1992 * objc-lang.c (objc_language_data): Likewise.
1993 * opencl-lang.c (opencl_language_data): Likewise.
1994 * p-lang.c (pascal_language_data): Likewise.
1995 * rust-lang.c (rust_language_data): Likewise.
1996
54f4ca46
AB
19972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1998
1999 * ada-lang.c (ada_language_data): Delete
2000 la_lookup_transparent_type initializer.
2001 * c-lang.c (c_language_data): Likewise.
2002 (cplus_language_data): Likewise.
2003 (cplus_language::lookup_transparent_type): New member function.
2004 (asm_language_data): Delete la_lookup_transparent_type
2005 initializer.
2006 (minimal_language_data): Likewise.
2007 * d-lang.c (d_language_data): Likewise.
2008 * f-lang.c (f_language_data): Likewise.
2009 * go-lang.c (go_language_data): Likewise.
2010 * language.c (unknown_language_data): Likewise.
2011 (auto_language_data): Likewise.
2012 * language.h (struct language_data): Delete
2013 la_lookup_transparent_type field.
2014 (language_defn::lookup_transparent_type): New member function.
2015 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2016 initializer.
2017 * objc-lang.c (objc_language_data): Likewise.
2018 * opencl-lang.c (opencl_language_data): Likewise.
2019 * p-lang.c (pascal_language_data): Likewise.
2020 * rust-lang.c (rust_language_data): Likewise.
2021 * symtab.c (symbol_matches_domain): Update call.
2022
1fb314aa
AB
20232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2024
2025 * ada-lang.c (ada_language_arch_info): Delete function, move
2026 implementation to...
2027 (ada_language::language_arch_info): ...here, a new member
2028 function.
2029 (ada_language_data): Delete la_language_arch_info.
2030 * c-lang.c (c_language_data): Likewise.
2031 (c_language::language_arch_info): New member function.
2032 (cplus_language_arch_info): Delete function, move
2033 implementation to...
2034 (cplus_language::language_arch_info): ...here, a new member
2035 function.
2036 (cplus_language_data): Delete la_language_arch_info.
2037 (asm_language_data): Likewise.
2038 (asm_language::language_arch_info): New member function.
2039 (minimal_language_data): Delete la_language_arch_info.
2040 (minimal_language::language_arch_info): New member function.
2041 * d-lang.c (d_language_arch_info): Delete function, move
2042 implementation to...
2043 (d_language::language_arch_info): ...here, a new member
2044 function.
2045 (d_language_data): Delete la_language_arch_info.
2046 * f-lang.c (f_language_arch_info): Delete function, move
2047 implementation to...
2048 (f_language::language_arch_info): ...here, a new member
2049 function.
2050 (f_language_data): Delete la_language_arch_info.
2051 * go-lang.c (go_language_arch_info): Delete function, move
2052 implementation to...
2053 (go_language::language_arch_info): ...here, a new member
2054 function.
2055 (go_language_data): Delete la_language_arch_info.
2056 * language.c (unknown_language_data): Likewise.
2057 (unknown_language::language_arch_info): New member function.
2058 (auto_language_data): Delete la_language_arch_info.
2059 (auto_language::language_arch_info): New member function.
2060 (language_gdbarch_post_init): Update call to
2061 la_language_arch_info.
2062 * language.h (language_data): Delete la_language_arch_info
2063 function pointer.
2064 (language_defn::language_arch_info): New function.
2065 * m2-lang.c (m2_language_arch_info): Delete function, move
2066 implementation to...
2067 (m2_language::language_arch_info): ...here, a new member
2068 function.
2069 (m2_language_data): Delete la_language_arch_info.
2070 * objc-lang.c (objc_language_arch_info): Delete function, move
2071 implementation to...
2072 (objc_language::language_arch_info): ...here, a new member
2073 function.
2074 (objc_language_data): Delete la_language_arch_info.
2075 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2076 implementation to...
2077 (opencl_language::language_arch_info): ...here, a new member
2078 function.
2079 (opencl_language_data): Delete la_language_arch_info.
2080 * p-lang.c (pascal_language_arch_info): Delete function, move
2081 implementation to...
2082 (pascal_language::language_arch_info): ...here, a new member
2083 function.
2084 (pascal_language_data): Delete la_language_arch_info.
2085 * rust-lang.c (rust_language_arch_info): Delete function, move
2086 implementation to...
2087 (rust_language::language_arch_info): ...here, a new member
2088 function.
2089 (rust_language_data): Delete la_language_arch_info.
2090
48448202
AB
20912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2092
2093 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2094 initializer.
2095 * c-lang.c (c_language_data): Likewise.
2096 (cplus_language_data): Likewise.
2097 (cplus_language::pass_by_reference_info): New method.
2098 (asm_language_data): Delete la_pass_by_reference initializer.
2099 (minimal_language_data): Likewise.
2100 * cp-abi.c (cp_pass_by_reference): Remove use of
2101 default_pass_by_reference.
2102 * d-lang.c (d_language_data): Likewise.
2103 * f-lang.c (f_language_data): Likewise.
2104 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2105 default_pass_by_reference.
2106 * go-lang.c (go_language_data): Likewise.
2107 * language.c (language_pass_by_reference): Update.
2108 (default_pass_by_reference): Delete.
2109 (unknown_language_data): Delete la_pass_by_reference
2110 initializer.
2111 (auto_language_data): Likewise.
2112 * language.h (struct language_data): Delete la_pass_by_reference
2113 field.
2114 (language_defn::pass_by_reference_info): New member function.
2115 (default_pass_by_reference): Delete declaration.
2116 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2117 initializer.
2118 * objc-lang.c (objc_language_data): Likewise.
2119 * opencl-lang.c (opencl_language_data): Likewise.
2120 * p-lang.c (pascal_language_data): Likewise.
2121 * rust-lang.c (rust_language_data): Likewise.
2122
15e5fd35
AB
21232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2124
2125 * ada-lang.c (ada_read_var_value): Delete function, move
2126 implementation to...
2127 (ada_language::read_var_value): ...here.
2128 (ada_language_data): Delete la_read_var_value initializer.
2129 * c-lang.c (c_language_data): Likewise.
2130 (cplus_language_data): Likewise.
2131 (minimal_language_data): Likewise.
2132 * d-lang.c (d_language_data): Likewise.
2133 * f-lang.c (f_language_data): Likewise.
2134 * findvar.c (default_read_var_value): Rename to...
2135 (language_defn::read_var_value): ...this.
2136 * findvar.c (read_var_value): Update header comment, and change to
2137 call member function instead of function pointer.
2138 * go-lang.c (go_language_data): Likewise.
2139 * language.c (unknown_language_data): Delete la_read_var_value
2140 initializer.
2141 (auto_language_data): Likewise.
2142 * language.h (struct language_data): Delete la_read_var_value
2143 field.
2144 (language_defn::read_var_value): New member function.
2145 (default_read_var_value): Delete declaration.
2146 * m2-lang.c (m2_language_data): Delete la_read_var_value
2147 initializer.
2148 * objc-lang.c (objc_language_data): Likewise.
2149 * opencl-lang.c (opencl_language_data): Likewise.
2150 * p-lang.c (pascal_language_data): Likewise.
2151 * rust-lang.c (rust_language_data): Likewise.
2152 * value.h (default_read_var_value): Delete declaration.
2153
5bd40f2a
AB
21542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2155
2156 * ada-lang.c (ada_print_array_index): Delete function, move
2157 implementation to...
2158 (ada_language::print_array_index): ...here.
2159 (ada_language_data): Delete la_print_array_index initializer.
2160 * c-lang.c (c_language_data): Likewise.
2161 (cplus_language_data): Likewise.
2162 (minimal_language_data): Likewise.
2163 * d-lang.c (d_language_data): Likewise.
2164 * f-lang.c (f_language_data): Likewise.
2165 * go-lang.c (go_language_data): Likewise.
2166 * language.c (default_print_array_index): Delete function, move
2167 implementation to...
2168 (language_defn::print_array_index): ...here.
2169 (unknown_language_data): Delete la_print_array_index initializer.
2170 (auto_language_data): Likewise.
2171 * language.h (struct language_data): Delete la_print_array_index
2172 field.
2173 (language_defn::print_array_index): New member function.
2174 (LA_PRINT_ARRAY_INDEX): Update.
2175 (default_print_array_index): Delete declaration.
2176 * m2-lang.c (m2_language_data): Delete la_print_array_index
2177 initializer.
2178 * objc-lang.c (objc_language_data): Likewise.
2179 * opencl-lang.c (opencl_language_data): Likewise.
2180 * p-lang.c (pascal_language_data): Likewise.
2181 * rust-lang.c (rust_language_data): Likewise.
2182
0874fd07
AB
21832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2184
2185 * gdb/ada-lang.c (ada_language_defn): Convert to...
2186 (ada_language_data): ...this.
2187 (class ada_language): New class.
2188 (ada_language_defn): New static global.
2189 * gdb/c-lang.c (c_language_defn): Convert to...
2190 (c_language_data): ...this.
2191 (class c_language): New class.
2192 (c_language_defn): New static global.
2193 (cplus_language_defn): Convert to...
2194 (cplus_language_data): ...this.
2195 (class cplus_language): New class.
2196 (cplus_language_defn): New static global.
2197 (asm_language_defn): Convert to...
2198 (asm_language_data): ...this.
2199 (class asm_language): New class.
2200 (asm_language_defn): New static global.
2201 (minimal_language_defn): Convert to...
2202 (minimal_language_data): ...this.
2203 (class minimal_language): New class.
2204 (minimal_language_defn): New static global.
2205 * gdb/d-lang.c (d_language_defn): Convert to...
2206 (d_language_data): ...this.
2207 (class d_language): New class.
2208 (d_language_defn): New static global.
2209 * gdb/f-lang.c (f_language_defn): Convert to...
2210 (f_language_data): ...this.
2211 (class f_language): New class.
2212 (f_language_defn): New static global.
2213 * gdb/go-lang.c (go_language_defn): Convert to...
2214 (go_language_data): ...this.
2215 (class go_language): New class.
2216 (go_language_defn): New static global.
2217 * gdb/language.c (unknown_language_defn): Remove declaration.
2218 (current_language): Initialize to nullptr, real initialization is
2219 moved to _initialize_language.
2220 (languages): Delete global.
2221 (language_defn::languages): Define.
2222 (set_language_command): Use language_defn::languages.
2223 (set_language): Likewise.
2224 (range_error): Likewise.
2225 (language_enum): Likewise.
2226 (language_def): Likewise.
2227 (add_set_language_command): Use language_def::languages for the
2228 language list, and language_def to lookup language pointers.
2229 (skip_language_trampoline): Use language_defn::languages.
2230 (unknown_language_defn): Convert to...
2231 (unknown_language_data): ...this.
2232 (class unknown_language): New class.
2233 (unknown_language_defn): New static global.
2234 (auto_language_defn): Convert to...
2235 (auto_language_data): ...this.
2236 (class auto_language): New class.
2237 (auto_language_defn): New static global.
2238 (language_gdbarch_post_init): Use language_defn::languages.
2239 (_initialize_language): Initialize current_language.
2240 * gdb/language.h (struct language_defn): Rename to...
2241 (struct language_data): ...this.
2242 (struct language_defn): New.
2243 (auto_language_defn): Delete.
2244 (unknown_language_defn): Delete.
2245 (minimal_language_defn): Delete.
2246 (ada_language_defn): Delete.
2247 (asm_language_defn): Delete.
2248 (c_language_defn): Delete.
2249 (cplus_language_defn): Delete.
2250 (d_language_defn): Delete.
2251 (f_language_defn): Delete.
2252 (go_language_defn): Delete.
2253 (m2_language_defn): Delete.
2254 (objc_language_defn): Delete.
2255 (opencl_language_defn): Delete.
2256 (pascal_language_defn): Delete.
2257 (rust_language_defn): Delete.
2258 * gdb/m2-lang.c (m2_language_defn): Convert to...
2259 (m2_language_data): ...this.
2260 (class m2_language): New class.
2261 (m2_language_defn): New static global.
2262 * gdb/objc-lang.c (objc_language_defn): Convert to...
2263 (objc_language_data): ...this.
2264 (class objc_language): New class.
2265 (objc_language_defn): New static global.
2266 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2267 (opencl_language_data): ...this.
2268 (class opencl_language): New class.
2269 (opencl_language_defn): New static global.
2270 * gdb/p-lang.c (pascal_language_defn): Convert to...
2271 (pascal_language_data): ...this.
2272 (class pascal_language): New class.
2273 (pascal_language_defn): New static global.
2274 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2275 language pointer, update comment format.
2276 * gdb/rust-lang.c (rust_language_defn): Convert to...
2277 (rust_language_data): ...this.
2278 (class rust_language): New class.
2279 (rust_language_defn): New static global.
2280
1313c56e
AB
22812020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2282
2283 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2284 member variable.
2285 <m_stmt_at_address>: New member variable.
2286 (lnp_state_machine::record_line): Don't record some lines, update
2287 tracking of is_stmt at the same address.
2288 (lnp_state_machine::lnp_state_machine): Initialise new member
2289 variables.
2290
b7ed9f3d
ST
22912020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2292
2293 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2294 "-include gnu-nat-mig.h".
2295 * gnu-nat-mig.h: New file.
2296 * gnu-nat.c: Include "gnu-nat-mig.h".
2297 (exc_server, msg_reply_server, notify_server,
2298 process_reply_server): Remove declarations.
2299
14a8ad62
ST
23002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2301
2302 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2303 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2304 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2305 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2306 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2307 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2308 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2309 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2310 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2311 to gnu_nat_target class.
2312 * gnu-nat.c: Likewise.
2313 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2314 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2315 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2316 object.
2317 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2318 instead of `gnu_target'.
2319
0af5e106
ST
23202020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2321
2322 * i386-gnu-tdep.c: Include "gdbcore.h"
2323 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2324 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2325 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2326 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2327 i386_gnu_sigcontext_addr): New functions
2328 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2329 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2330 tdep.
2331
078f2fc9
ST
23322020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2333
2334 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2335 before fork_inferior call. Avoid calling it if target_is_pushed returns
2336 true.
2337
53dff92c
ST
23382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2339
2340 * gnu-nat.h (gnu_target): New variable declaration.
2341 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2342 gnu_target.
2343 * gnu-nat.c (gnu_target): New variable.
2344 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2345 add_thread_silent, and add_thread calls.
2346 (gnu_nat_target::create_inferior): Pass gnu_target to
2347 add_thread_silent, thread_change_ptid call.
2348 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2349 call.
2350
5a8b8627
ST
23512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2352
2353 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2354 (gnu_nat_target::find_memory_regions): Remove unused
2355 `old_address' variable.
2356
366f550a
ST
23572020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2358
2359 * gnu-nat.c: Include "gdbarch.h".
2360
f14871bf
ST
23612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2362
2363 * reply_mig_hack.awk (Error return): Cast function through
2364 void *, to bypass compiler function call check.
2365
c6887cfb
ST
23662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2367
2368 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2369 $(srcdir)/reply_mig_hack.awk.
2370
6930bffe
ST
23712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2372
2373 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2374
112c22ed
JG
23752020-05-30 Jonny Grant <jg@jguk.org>
2376
2377 * configure.ac (ACX_BUGURL): change bug URL to https.
2378
f68f85b5
PA
23792020-05-30 Pedro Alves <palves@redhat.com>
2380
2381 * cp-support.c (replace_typedefs_template): New.
2382 (replace_typedefs_qualified_name): Handle
2383 DEMANGLE_COMPONENT_TEMPLATE.
2384
976ca316
SM
23852020-05-29 Simon Marchi <simon.marchi@efficios.com>
2386
2387 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2388 dwarf2/index-cache.h, dwarf2/index-write.c,
2389 dwarf2/index-write.h, dwarf2/line-header.c,
2390 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2391 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2392 variables and fields from `dwarf2_per_objfile` to just
2393 `per_objfile` throughout.
2394
989ade05
SM
23952020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2396
2397 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2398 <push_dwarf_reg_entry_value>: Add comment.
2399
c47bae85
KB
24002020-05-28 Kevin Buettner <kevinb@redhat.com>
2401 Keith Seitz <keiths@redhat.com>
2402
2403 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2404 instead of PyEval_ReleaseLock.
2405 (class gdbpy_gil): Move to earlier in file.
2406 (finalize_python): Set gdb_python_initialized.
2407 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2408 when not initialized.
2409
44486dcf
SM
24102020-05-28 Simon Marchi <simon.marchi@efficios.com>
2411
2412 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2413 <push_dwarf_reg_entry_value>: Remove assert. Override
2414 per_objfile with caller_per_objfile.
2415
f030440d
TV
24162020-05-28 Tom de Vries <tdevries@suse.de>
2417
2418 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2419 PR gold/15646 workaround to symbol kind "type".
2420
f0fbb768
TT
24212020-05-27 Tom Tromey <tromey@adacore.com>
2422
2423 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2424
af0b2a3e
TT
24252020-05-27 Tom Tromey <tromey@adacore.com>
2426
2427 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2428 Use htab_find_with_hash.
2429 <add_abbrev>: Remove "abbrev_number" parameter.
2430 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2431 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2432 (hash_abbrev): Add comment.
2433 (abbrev_table::lookup_abbrev): Move to header file.
2434 (abbrev_table::read): Update.
2435
7d00ffec
TT
24362020-05-27 Tom Tromey <tromey@adacore.com>
2437
2438 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2439 method.
2440 <canonical_name>: New member.
2441 <raw_name>: Rename from "name".
2442 (partial_die_info): Initialize canonical_name.
2443 (scan_partial_symbols): Check raw_name.
2444 (partial_die_parent_scope, partial_die_full_name)
2445 (add_partial_symbol, add_partial_subprogram)
2446 (add_partial_enumeration, load_partial_dies): Use "name" method.
2447 (partial_die_info::name): New method.
2448 (partial_die_info::read, guess_partial_die_structure_name)
2449 (partial_die_info::fixup): Update.
2450
697bba18
TT
24512020-05-27 Tom Tromey <tromey@adacore.com>
2452
2453 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2454 <get_ref_die_offset>: Inline.
2455 <get_ref_die_offset_complaint>: New method.
2456 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2457 (attribute::get_ref_die_offset_complaint): Rename from
2458 get_ref_die_offset. Just issue complaint.
2459
c17ace43
HD
24602020-05-27 Hannes Domani <ssbssa@yahoo.de>
2461
2462 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2463
96445f0b
HD
24642020-05-27 Hannes Domani <ssbssa@yahoo.de>
2465
2466 * exec.c (exec_file_attach): Use errno value of first openp failure.
2467
ac637ec3
HD
24682020-05-27 Hannes Domani <ssbssa@yahoo.de>
2469
2470 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2471 Don't close thread handle.
2472
17ee85fc
TT
24732020-05-27 Tom Tromey <tom@tromey.com>
2474 Simon Marchi <simon.marchi@efficios.com>
2475
2476 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2477 shared_ptr.
2478 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2479 member.
2480 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2481 dwarf2_per_bfd_objfile_data_key>: New globals.
2482 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2483 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2484 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2485 shared.
2486 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2487 short-circuit when sharing.
2488 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2489 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2490
39b16f87
SM
24912020-05-27 Simon Marchi <simon.marchi@efficios.com>
2492
2493 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2494 to...
2495 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2496 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2497
fcf23d5b
SM
24982020-05-27 Simon Marchi <simon.marchi@efficios.com>
2499
2500 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2501 build_name_components, find_name_components_bounds>:
2502 Add per_objfile parameter.
2503 (struct mapped_index) <symbol_name_at>: Likewise.
2504 (struct mapped_debug_names): Remove constructor.
2505 <dwarf2_per_objfile>: Remove field.
2506 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2507 (mapped_index_base::find_name_components_bounds,
2508 mapped_index_base::build_name_components,
2509 dw2_expand_symtabs_matching_symbol): Likewise.
2510 (class mock_mapped_index) <symbol_name_at>: Likewise.
2511 (check_match): Likewise.
2512 (check_find_bounds_finds): Likewise.
2513 (test_mapped_index_find_name_component_bounds): Update.
2514 (CHECK_MATCH): Update.
2515 (dw2_expand_symtabs_matching): Update.
2516 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2517 per_objfile parameter.
2518 <find_vec_in_debug_names>: Likewise.
2519 <m_per_objfile>: New field.
2520 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2521 parameter.
2522 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2523 (dw2_debug_names_iterator::next): Update.
2524 (dw2_debug_names_lookup_symbol): Update.
2525 (dw2_debug_names_expand_symtabs_for_function): Update.
2526 (dw2_debug_names_map_matching_symbols): Update.
2527 (dw2_debug_names_expand_symtabs_matching): Update.
2528 (dwarf2_read_debug_names): Update.
2529
7188ed02
SM
25302020-05-27 Simon Marchi <simon.marchi@efficios.com>
2531
2532 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2533 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2534 move to dwarf2_per_objfile.
2535 <read_in_chain>: Remove.
2536 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2537 remove_all_cus, age_comp_units>: New methods.
2538 <m_dwarf2_cus>: New member.
2539 (struct dwarf2_per_cu_data) <cu>: Remove.
2540 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2541 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2542 moved to methods of dwarf2_per_objfile.
2543 (dwarf2_clear_marks): Remove.
2544 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2545 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2546 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2547 (dwarf2_per_objfile::remove_all_cus): New.
2548 (class free_cached_comp_units) <~free_cached_comp_units>:
2549 Update.
2550 (load_cu): Update.
2551 (dw2_do_instantiate_symtab): Adjust.
2552 (fill_in_sig_entry_from_dwo_entry): Adjust.
2553 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2554 (cutu_reader::cutu_reader): Likewise.
2555 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2556 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2557 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2558 and dwarf2_per_objfile::age_comp_units.
2559 (load_partial_comp_unit): Update.
2560 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2561 (process_queue): Likewise.
2562 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2563 backlink.
2564 (dwarf2_read_addr_index): Likewise.
2565 (follow_die_offset): Likewise.
2566 (dwarf2_fetch_die_loc_sect_off): Likewise.
2567 (dwarf2_fetch_constant_bytes): Likewise.
2568 (dwarf2_fetch_die_type_sect_off): Likewise.
2569 (follow_die_sig_1): Likewise.
2570 (load_full_type_unit): Likewise.
2571 (read_signatured_type): Likewise.
2572 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2573 (dwarf2_cu::~dwarf2_cu): Remove.
2574 (dwarf2_per_objfile::get_cu): New.
2575 (dwarf2_per_objfile::set_cu): New.
2576 (age_cached_comp_units): Rename to...
2577 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2578 to std::unordered_map.
2579 (free_one_cached_comp_unit): Rename to...
2580 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2581 to std::unordered_map.
2582 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2583 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2584 a dwarf2_per_objfile in data.
2585 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2586 (dwarf2_clear_marks): Remove.
2587
2e671100
SM
25882020-05-27 Simon Marchi <simon.marchi@efficios.com>
2589
2590 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2591 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2592 (init_tu_and_read_dwo_dies): Likewise.
2593 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2594 (cutu_reader::cutu_reader): Likewise.
2595 (load_partial_comp_unit): Likewise.
2596 (process_psymtab_comp_unit): Update.
2597 (build_type_psymtabs_1): Update.
2598 (process_skeletonless_type_unit): Update.
2599 (load_full_comp_unit): Update.
2600 (find_partial_die): Update.
2601 (dwarf2_read_addr_index): Update.
2602 (read_signatured_type): Update.
2603
2e6a9f79
SM
26042020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2605
2606 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2607 m_header_read_in>: New fields.
2608 <get_header>: New method.
2609 * dwarf2/read.c (per_cu_header_read_in): Remove.
2610 (dwarf2_per_cu_data::get_header): New.
2611 (dwarf2_per_cu_data::addr_size): Update.
2612 (dwarf2_per_cu_data::offset_size): Update.
2613 (dwarf2_per_cu_data::ref_addr_size): Update.
2614
1b555f17
SM
26152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2616
2617 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2618 (dw2_do_instantiate_symtab): Update.
2619 (queue_and_load_all_dwo_tus): Change parameter from
2620 dwarf2_per_cu_data to dwarf2_cu.
2621 (dwarf2_fetch_die_loc_sect_off): Update.
2622 (dwarf2_fetch_constant_bytes): Update.
2623 (dwarf2_fetch_die_type_sect_off): Update.
2624
8fc0b21d
SM
26252020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2626
2627 * dwarf2/read.c (process_full_comp_unit,
2628 process_full_type_unit): Remove per_cu, per_objfile paramters.
2629 Add dwarf2_cu parameter.
2630 (process_queue): Update.
2631
168c9250
SM
26322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2633
2634 * dwarf2/read.c (create_cu_from_index_list): Replace
2635 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2636 (create_cus_from_index_list): Likewise.
2637 (create_cus_from_index): Likewise.
2638 (create_signatured_type_table_from_index): Likewise.
2639 (create_cus_from_debug_names_list): Likewise.
2640 (create_cus_from_debug_names): Likewise.
2641 (dwarf2_read_gdb_index): Update.
2642 (dwarf2_read_debug_names): Update.
2643
e286671b
TT
26442020-05-27 Tom Tromey <tom@tromey.com>
2645 Simon Marchi <simon.marchi@efficios.com>
2646
2647 * dwarf2/read.h (struct dwarf2_per_objfile)
2648 <get_type_for_signatured_type, set_type_for_signatured_type>:
2649 New methods.
2650 <m_type_map>: New member.
2651 (struct signatured_type) <type>: Remove.
2652 * dwarf2/read.c
2653 (dwarf2_per_objfile::get_type_for_signatured_type,
2654 dwarf2_per_objfile::set_type_for_signatured_type): New.
2655 (get_signatured_type): Use new methods.
2656
8adb8487
TT
26572020-05-27 Tom Tromey <tom@tromey.com>
2658 Simon Marchi <simon.marchi@efficios.com>
2659
2660 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2661 (struct dwarf2_per_objfile) <type_units>: New member.
2662 <get_type_unit_group_unshareable>: New method.
2663 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2664 num_symtabs, symtabs>: Remove; move to
2665 type_unit_group_unshareable.
2666 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2667 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2668 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2669
127bbf4b
SM
26702020-05-27 Simon Marchi <simon.marchi@efficios.com>
2671
2672 * dwarf2/read.h (struct dwarf2_per_cu_data):
2673 <dwarf2_per_objfile>: Remove.
2674 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2675 dwarf2_per_objfile.
2676 (create_signatured_type_table_from_index): Likewise.
2677 (create_signatured_type_table_from_debug_names): Likewise.
2678 (create_debug_type_hash_table): Likewise.
2679 (fill_in_sig_entry_from_dwo_entry): Likewise.
2680 (create_type_unit_group): Likewise.
2681 (read_comp_units_from_section): Likewise.
2682 (create_cus_hash_table): Likewise.
2683
f6e649dd
SM
26842020-05-27 Simon Marchi <simon.marchi@efficios.com>
2685
2686 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2687 dwarf2_per_cu_data::dwarf2_per_objfile.
2688 (compute_compunit_symtab_includes): Likewise.
2689 (dwarf2_cu::start_symtab): Likewise.
2690
aa66c379
SM
26912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2692
2693 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2694 parameter.
2695 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2696 (read_namespace_alias): Update.
2697 (lookup_die_type): Update.
2698 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2699 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2700 Update.
2701 (disassemble_dwarf_expression): Update.
2702
120ce1b5
SM
27032020-05-27 Simon Marchi <simon.marchi@efficios.com>
2704
2705 * dwarf2/read.h (struct dwarf2_queue_item): Add
2706 dwarf2_per_objfile parameter, assign new parameter.
2707 <per_objfile>: New field.
2708 * dwarf2/read.c (free_one_cached_comp_unit): Add
2709 dwarf2_per_objfile parameter.
2710 (queue_comp_unit): Likewise.
2711 (dw2_do_instantiate_symtab): Update.
2712 (process_psymtab_comp_unit): Update.
2713 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2714 (process_imported_unit_die): Update.
2715 (queue_and_load_dwo_tu): Update.
2716 (follow_die_offset): Update.
2717 (follow_die_sig_1): Update.
2718
9f47c707
SM
27192020-05-27 Simon Marchi <simon.marchi@efficios.com>
2720
2721 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2722 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2723 (read_call_site_scope): Assign per_objfile.
2724 (dwarf2_per_cu_data::objfile): Remove.
2725 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2726 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2727 dwarf2_per_objfile parameter.
2728 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2729 dwarf2_per_objfile parameter.
2730 (dwarf_expr_reg_to_entry_parameter): Add output
2731 dwarf2_per_objfile parameter.
2732 (locexpr_get_frame_base): Update.
2733 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2734 <push_dwarf_reg_entry_value>: Update.
2735 <call_site_to_target_addr>: Update.
2736 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2737 parameter.
2738 (value_of_dwarf_reg_entry): Update.
2739 (rw_pieced_value): Update.
2740 (indirect_synthetic_pointer): Update.
2741 (dwarf2_evaluate_property): Update.
2742 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2743 parameter.
2744 (locexpr_read_variable): Update.
2745 (locexpr_get_symbol_read_needs): Update.
2746 (loclist_read_variable): Update.
2747
14095eb3
SM
27482020-05-27 Simon Marchi <simon.marchi@efficios.com>
2749
2750 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2751 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2752 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2753 parameter.
2754 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2755 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2756 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2757 parameter.
2758 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2759 sect_variable_value): Add dwarf2_per_objfile parameter.
2760 (class dwarf_evaluate_loc_desc) <dwarf_call,
2761 dwarf_variable_value>: Update.
2762 (fetch_const_value_from_synthetic_pointer): Add
2763 dwarf2_per_objfile parameter.
2764 (fetch_const_value_from_synthetic_pointer): Update.
2765 (coerced_pieced_ref): Update.
2766 (class symbol_needs_eval_context) <dwarf_call,
2767 dwarf_variable_value>: Update.
2768 (dwarf2_compile_expr_to_ax): Update.
2769
3c3cd3d4
SM
27702020-05-27 Simon Marchi <simon.marchi@efficios.com>
2771
2772 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2773 parameter.
2774 (dwarf2_evaluate_loc_desc_full): Update.
2775
82ca3f51
SM
27762020-05-27 Simon Marchi <simon.marchi@efficios.com>
2777
2778 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2779 parameter.
2780 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2781 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2782 dwarf2_per_objfile parameter.
2783 (decode_debug_loc_dwo_addresses): Likewise.
2784 (dwarf2_find_location_expression): Update.
2785 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2786 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2787 parameter.
2788 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2789 parameter.
2790 (locexpr_describe_location_1): Likewise.
2791 (locexpr_describe_location): Update.
2792
4b167ea1
SM
27932020-05-27 Simon Marchi <simon.marchi@efficios.com>
2794
2795 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2796 Remove.
2797 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2798 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2799 (dwarf2_compile_property_to_c): Update.
2800 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2801 use text offset from objfile.
2802 (locexpr_tracepoint_var_ref): Update.
2803 (locexpr_generate_c_location): Update.
2804 (loclist_describe_location): Update.
2805 (loclist_tracepoint_var_ref): Update.
2806 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2807 dwarf2_per_objfile parameter.
2808 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2809 use text offset from objfile.
2810 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2811
89b07335
SM
28122020-05-27 Simon Marchi <simon.marchi@efficios.com>
2813
2814 * dwarf2/expr.h (struct dwarf_expr_context)
2815 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2816 <offset>: Remove.
2817 <per_objfile>: New member.
2818 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2819 dwarf2_per_objfile parameter. Don't set offset, set
2820 per_objfile.
2821 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2822 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2823 a dwarf2_per_objfile object instead of an offset.
2824 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2825 constructor.
2826 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2827 to dwarf2_expr_executor constructor. Don't set offset.
2828 (dwarf2_fetch_cfa_info): Update.
2829 (struct dwarf2_frame_cache) <text_offset>: Remove.
2830 <per_objfile>: New field.
2831 (dwarf2_frame_cache): Update.
2832 (dwarf2_frame_prev_register): Update.
2833 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2834 <dwarf_evaluate_loc_desc>: Add constructor.
2835 (dwarf2_evaluate_loc_desc_full): Update.
2836 (dwarf2_locexpr_baton_eval): Update.
2837 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2838 Add constructor.
2839 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2840
293e7e51
SM
28412020-05-27 Simon Marchi <simon.marchi@efficios.com>
2842
2843 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2844 addr_sized_int_type>: Move to dwarf2_cu.
2845 <int_type>: Move to dwarf2_per_objfile.
2846 (struct dwarf2_per_objfile) <int_type>: Move here.
2847 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2848 addr_sized_int_type>: Move here.
2849 (read_func_scope): Update.
2850 (read_array_type): Update.
2851 (read_tag_string_type): Update.
2852 (attr_to_dynamic_prop): Update.
2853 (dwarf2_per_cu_data::int_type): Rename to...
2854 (dwarf2_per_objfile::int_type): ... this.
2855 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2856 (dwarf2_cu::addr_sized_int_type): ... this.
2857 (read_subrange_type): Update.
2858 (dwarf2_per_cu_data::addr_type): Rename to...
2859 (dwarf2_cu::addr_type): ... this.
2860 (set_die_type): Update.
2861
64874a40
SM
28622020-05-27 Simon Marchi <simon.marchi@efficios.com>
2863
2864 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2865 data through per_cu->cu.
2866
4ab09049
SM
28672020-05-27 Simon Marchi <simon.marchi@efficios.com>
2868
2869 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2870 dwarf2_per_cu_data parameter fo dwarf2_cu.
2871 (lookup_dwo_type_unit): Likewise.
2872 (read_cutu_die_from_dwo): Likewise.
2873 (lookup_dwo_unit): Likewise.
2874 (open_and_init_dwo_file): Likewise.
2875 (lookup_dwo_cutu): Likewise.
2876 (lookup_dwo_comp_unit): Likewise.
2877 (lookup_dwo_type_unit): Likewise.
2878 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2879 (cutu_reader::cutu_reader): Update.
2880
47b14e86
SM
28812020-05-27 Simon Marchi <simon.marchi@efficios.com>
2882
2883 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2884 parameter.
2885 (process_full_type_unit): Likewise.
2886 (process_queue): Update.
2887
43182c09
SM
28882020-05-27 Simon Marchi <simon.marchi@efficios.com>
2889
2890 * dwarf2/read.c (recursively_compute_inclusions): Add
2891 dwarf2_per_objfile parameter.
2892 (compute_compunit_symtab_includes): Likewise.
2893 (process_cu_includes): Update.
2894
7aa104c4
SM
28952020-05-27 Simon Marchi <simon.marchi@efficios.com>
2896
2897 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2898 parameter.
2899 (create_type_unit_group): Update.
2900 (process_psymtab_comp_unit_reader): Update.
2901 (build_type_psymtabs_reader): Update.
2902
e3beb21d
SM
29032020-05-27 Simon Marchi <simon.marchi@efficios.com>
2904
2905 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2906 object through m_this_cu->cu.
2907
d460f660
SM
29082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2909
2910 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2911 the info parameter.
2912 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2913
ab432490
SM
29142020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2915
2916 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2917 per_objfile parameter.
2918 (load_full_type_unit): Add per_objfile parameter.
2919 (read_signatured_type): Likewise.
2920 (load_full_comp_unit): Likewise.
2921 (load_cu): Likewise.
2922 (dw2_do_instantiate_symtab): Likewise.
2923 (dw2_get_file_names): Likewise.
2924 (dw2_map_symtabs_matching_filename): Update.
2925 (dw_expand_symtabs_matching_file_matcher): Update.
2926 (dw2_map_symbol_filenames): Update.
2927 (process_psymtab_comp_unit): Add per_objfile parameter.
2928 (build_type_psymtabs_1): Update.
2929 (process_skeletonless_type_unit): Update.
2930 (dwarf2_build_psymtabs_hard): Update.
2931 (load_partial_comp_unit): Add per_objfile parameter.
2932 (scan_partial_symbols): Update.
2933 (load_full_comp_unit): Add per_objfile parameter.
2934 (process_imported_unit_die): Update.
2935 (create_cus_hash_table): Update.
2936 (find_partial_die): Update.
2937 (dwarf2_read_addr_index): Update.
2938 (follow_die_offset): Update.
2939 (dwarf2_fetch_die_loc_sect_off): Update.
2940 (dwarf2_fetch_constant_bytes): Update.
2941 (dwarf2_fetch_die_type_sect_off): Update.
2942 (follow_die_sig_1): Update.
2943 (load_full_type_unit): Add per_objfile parameter.
2944 (read_signatured_type): Likewise.
2945
313bad1b
SM
29462020-05-27 Simon Marchi <simon.marchi@efficios.com>
2947
2948 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2949 of objfile_name.
2950
c3699833
SM
29512020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2952
2953 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2954 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2955 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2956 field.
2957 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2958 (create_cus_from_index): Update.
2959 (dwarf2_read_gdb_index): Update.
2960 (create_cus_from_debug_names): Update.
2961 (dwarf2_read_debug_names): Update.
2962 (get_abbrev_section_for_cu): Update.
2963 (create_all_comp_units): Update.
2964 (read_attribute_value): Update.
2965 (get_debug_line_section): Update.
2966 * dwarf2/index-cache.c (index_cache::store): Update.
2967 * dwarf2/index-write.c (save_gdb_index_command): Update.
2968 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2969
1859c670
SM
29702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2971
2972 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
2973 member.
2974 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
2975 dwarf2_per_cu_data::per_bfd.
2976 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
2977 (create_type_unit_group): Likewise.
2978 (queue_comp_unit): Remove reference to
2979 per_cu->dwarf2_per_objfile.
2980 (maybe_queue_comp_unit): Likewise.
2981 (fill_in_sig_entry_from_dwo_entry): Assign new field.
2982 (create_cus_hash_table): Assign new field.
2983
5e22e966
SM
29842020-05-27 Simon Marchi <simon.marchi@efficios.com>
2985
2986 * dwarf2/read.c: Replace
2987 dwarf2_cu->per_cu->dwarf2_per_objfile references with
2988 dwarf2_cu->per_objfile throughout.
2989
97a1449a
SM
29902020-05-27 Simon Marchi <simon.marchi@efficios.com>
2991
2992 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
2993 parameter, don't use per_cu->dwarf2_per_objfile.
2994 (dw2_instantiate_symtab): Likewise.
2995 (dw2_find_last_source_symtab): Update.
2996 (dw2_map_expand_apply): Update.
2997 (dw2_lookup_symbol): Update.
2998 (dw2_expand_symtabs_for_function): Update.
2999 (dw2_expand_all_symtabs): Update.
3000 (dw2_expand_symtabs_with_fullname): Update.
3001 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3002 don't use per_cu->dwarf2_per_objfile.
3003 (dw2_expand_marked_cus): Update.
3004 (dw2_find_pc_sect_compunit_symtab): Update.
3005 (dw2_debug_names_lookup_symbol): Update.
3006 (dw2_debug_names_expand_symtabs_for_function): Update.
3007 (dw2_debug_names_map_matching_symbols): Update.
3008 (dwarf2_psymtab::expand_psymtab): Update.
3009
9e021579
SM
30102020-05-27 Simon Marchi <simon.marchi@efficios.com>
3011
3012 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3013 <per_objfile>: New member.
3014 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3015 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3016 call to dwarf2_cu.
3017 (cutu_reader::cutu_reader): Update.
3018 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3019
ae090bdb
SM
30202020-05-27 Simon Marchi <simon.marchi@efficios.com>
3021
3022 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3023 struct dwarf2_per_objfile.
3024 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3025 dwarf2_per_bfd.
3026 * dwarf2/read.c (set_die_type): Update.
3027 (get_die_type_at_offset): Update.
3028
af758d11
SM
30292020-05-27 Tom Tromey <tom@tromey.com>
3030 Simon Marchi <simon.marchi@efficios.com>
3031
3032 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3033 method.
3034 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3035 get_symtab, set_symtab>: New methods.
3036 <m_symtabs>: New field.
3037 (struct dwarf2_psymtab): Derive from partial_symtab.
3038 <readin_p, get_compunit_symtab>: Declare methods.
3039 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3040 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3041 New methods.
3042 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3043 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3044 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3045 (dw2_symtab_iter_next, dw2_print_stats)
3046 (dw2_expand_symtabs_with_fullname)
3047 (dw2_expand_symtabs_matching_one)
3048 (dw_expand_symtabs_matching_file_matcher)
3049 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3050 (dw2_debug_names_iterator::next)
3051 (dw2_debug_names_map_matching_symbols)
3052 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3053 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3054 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3055 New methods.
3056 (get_compunit_symtab, process_full_comp_unit)
3057 (process_full_type_unit): Update.
3058 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3059
5989a64e
SM
30602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3061
3062 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3063 then introduce a new dwarf2_per_objfile type.
3064 <read_line_string>: Move to the new dwarf2_per_objfile type.
3065 <objfile>: Likewise.
3066 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3067 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3068 dwarf2_per_objfile->per_bfd.
3069 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3070 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3071 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3072 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3073 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3074 (dwarf2_per_objfile::locate_sections): Rename to...
3075 (dwarf2_per_bfd::locate_sections): ... this.
3076 (dwarf2_per_objfile::get_cutu): Rename to...
3077 (dwarf2_per_bfd::get_cutu): ... this.
3078 (dwarf2_per_objfile::get_cu): Rename to...
3079 (dwarf2_per_bfd::get_cu): ... this.
3080 (dwarf2_per_objfile::get_tu): Rename to...
3081 (dwarf2_per_bfd::get_tu): ... this.
3082 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3083 (dwarf2_per_bfd::allocate_per_cu): ... this.
3084 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3085 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3086 (get_gdb_index_contents_ftype): Change parameter from
3087 dwarf2_per_objfile to dwarf2_per_bfd.
3088 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3089 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3090
a50264ba
TT
30912020-05-27 Tom Tromey <tom@tromey.com>
3092 Simon Marchi <simon.marchi@efficios.com>
3093
3094 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3095 (allocate_piece_closure): Set "per_objfile" member.
3096 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3097 (locexpr_describe_location, loclist_describe_location): Use new
3098 member.
3099 * dwarf2/read.c (read_call_site_scope)
3100 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3101 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3102 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3103 handle_data_member_location): Set per_objfile member.
3104 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3105 member.
3106 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3107
d3473f0c
TT
31082020-05-27 Tom Tromey <tom@tromey.com>
3109
3110 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3111 allocate_signatured_type>: Declare new methods.
3112 <m_num_psymtabs>: New member.
3113 (struct dwarf2_per_cu_data) <index>: New member.
3114 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3115 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3116 (create_cu_from_index_list): Use allocate_per_cu.
3117 (create_signatured_type_table_from_index)
3118 (create_signatured_type_table_from_debug_names)
3119 (create_debug_type_hash_table, add_type_unit)
3120 (read_comp_units_from_section): Use allocate_signatured_type.
3121
5717c425
TT
31222020-05-27 Tom Tromey <tom@tromey.com>
3123
3124 * psymtab.c (partial_map_expand_apply)
3125 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3126 (psym_lookup_global_symbol_language)
3127 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3128 (psym_print_stats, psym_expand_symtabs_for_function)
3129 (psym_map_symbol_filenames, psym_map_matching_symbols)
3130 (psym_expand_symtabs_matching)
3131 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3132 (maintenance_check_psymtabs): Update.
3133 * psympriv.h (struct partial_symtab) <readin_p,
3134 get_compunit_symtab>: Add objfile parameter.
3135 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3136 Likewise.
3137 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3138 get_compunit_symtab>: Likewise.
3139 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3140
45940949
TT
31412020-05-27 Tom Tromey <tom@tromey.com>
3142
3143 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3144 member.
3145 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3146 (create_cu_from_index_list)
3147 (create_signatured_type_table_from_index)
3148 (create_signatured_type_table_from_debug_names)
3149 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3150 (dwarf2_create_include_psymtab)
3151 (create_debug_type_hash_table, add_type_unit)
3152 (create_type_unit_group, read_comp_units_from_section)
3153 (dwarf2_compute_name, create_cus_hash_table)
3154 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3155 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3156 obstack.
3157 (dw2_get_real_path): Likewise. Change argument to
3158 dwarf2_per_objfile.
3159
f8c6d152
LM
31602020-05-27 Luis Machado <luis.machado@linaro.org>
3161
3162 PR tdep/26000
3163 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3164 for ldrd (immediate).
3165
e98d2e6d
PW
31662020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3167
3168 * command.h: Add comment giving the name of class_tui.
3169 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3170 create the fake command for the help for class_tui.
3171
53a47a3e
TT
31722020-05-26 Tom Tromey <tromey@adacore.com>
3173
3174 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3175 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3176 (val_atr): New function.
3177 (value_val_atr): Use it.
3178 * ada-valprint.c (print_optional_low_bound): Change low bound
3179 handling for enums.
3180 (val_print_packed_array_elements): Don't call discrete_position.
3181 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3182 discrete_position for enum types.
3183 * language.c (default_print_array_index): Change type.
3184 * language.h (struct language_defn) <la_print_array_index>: Add
3185 index_type parameter, change type of index_value.
3186 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3187 (default_print_array_index): Update.
3188 * valprint.c (maybe_print_array_index): Don't call
3189 value_from_longest. Update.
3190 (value_print_array_elements): Don't call discrete_position.
3191
0bc2354b
TT
31922020-05-26 Tom Tromey <tromey@adacore.com>
3193
3194 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3195 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3196
1218a4bf
CDA
31972020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3198
3199 PR gdb/13519
3200 * avr-tdep.c (avr_integer_to_address): Return data or code
3201 address accordingly to the second 'type' argument of the
3202 function.
3203
92651b1d
MW
32042020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3205
3206 * infcmd.c, inferior.h: (construct_inferior_arguments):
3207 Moved function from here to gdbsupport/common-inferior.{h,cc}
3208
0a4f5f8c
TT
32092020-05-23 Tom Tromey <tom@tromey.com>
3210
3211 Revert commit eca1f90c:
3212 * NEWS: Remove entry for completion styling.
3213 * completer.c (_rl_completion_prefix_display_length): Move
3214 declaration later.
3215 (gdb_fnprint): Revert.
3216 (gdb_display_match_list_1): Likewise.
3217 * cli/cli-style.c (completion_prefix_style)
3218 (completion_difference_style, completion_suffix_style): Remove.
3219 (_initialize_cli_style): Revert.
3220 * cli/cli-style.h (completion_prefix_style)
3221 (completion_difference_style, completion_suffix_style): Don't
3222 declare.
3223
e08bd6c5
PA
32242020-05-24 Pedro Alves <palves@redhat.com>
3225
3226 * symtab.c (completion_list_add_name): Return boolean indication
3227 of whether the symbol matched.
3228 (completion_list_add_symbol): Don't try to remove C++ aliases if
3229 the symbol didn't match in the first place.
3230 * symtab.h (completion_list_add_name): Return bool.
3231
ceacbf6e
SM
32322020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3233
3234 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3235 type::field.
3236
26f16254
JB
32372020-05-23 Joel Brobecker <brobecker@adacore.com>
3238
3239 GDB 9.2 released.
3240
eca1f90c
TT
32412020-05-23 Tom Tromey <tom@tromey.com>
3242
3243 * NEWS: Add entry for completion styling.
3244 * completer.c (_rl_completion_prefix_display_length): Move
3245 declaration earlier.
3246 (gdb_fnprint): Use completion_style.
3247 (gdb_display_match_list_1): Likewise.
3248 * cli/cli-style.c (completion_prefix_style)
3249 (completion_difference_style, completion_suffix_style): New
3250 globals.
3251 (_initialize_cli_style): Register new globals.
3252 * cli/cli-style.h (completion_prefix_style)
3253 (completion_difference_style, completion_suffix_style): Declare.
3254
51e2cfa2
PA
32552020-05-23 Pedro Alves <palves@redhat.com>
3256
3257 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3258 (parse_escape): Use ISDIGIT instead of isdigit.
3259 (puts_debug): Use gdb_isprint instead of isprint.
3260 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3261 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3262 ISSPACE instead of isspace.
3263 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3264 instead of isspace.
3265 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3266 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3267 instead of isxdigit and ISDIGIT instead of isdigit.
3268
80fc5e77
SM
32692020-05-22 Simon Marchi <simon.marchi@efficios.com>
3270
3271 * gdbtypes.h (struct type) <field>: New method.
3272 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3273 or type::field.
3274
3cabb6b0
SM
32752020-05-22 Simon Marchi <simon.marchi@efficios.com>
3276
3277 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3278 (TYPE_FIELDS): Use type::fields. Change all call sites that
3279 modify the propery to use type::set_fields instead.
3280
1f704f76
SM
32812020-05-22 Simon Marchi <simon.marchi@efficios.com>
3282
3283 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3284 type::num_fields instead.
3285
5e33d5f4
SM
32862020-05-22 Simon Marchi <simon.marchi@efficios.com>
3287
3288 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3289 methods.
3290 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3291 that modify the number of fields to use type::set_num_fields
3292 instead.
3293
9392ebb3
TT
32942020-05-22 Tom Tromey <tromey@adacore.com>
3295
3296 * compile/compile-object-load.h (munmap_list_free): Don't
3297 declare.
3298
7c13f4e8
AB
32992020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3300
3301 * annotate.c (annotate_source_line): Update return type, add call
3302 to update current symtab and line.
3303 * annotate.h (annotate_source_line): Update return type, and
3304 extend header comment.
3305 * source.c (info_line_command): Check annotation_level before
3306 calling annotate_source_line.
3307 * stack.c (print_frame_info): If calling annotate_source_line
3308 returns true, then don't print any other source line information.
3309
aa370940
SM
33102020-05-21 Simon Marchi <simon.marchi@efficios.com>
3311
3312 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3313
84d53fa9
SM
33142020-05-21 Simon Marchi <simon.marchi@efficios.com>
3315
3316 * coffread.c (patch_type): Remove NULL check before xfree.
3317 * corefile.c (set_gnutarget): Likewise.
3318 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3319 * exec.c (build_section_table): Likewise.
3320 * remote.c (remote_target::pass_signals): Likewise.
3321 * utils.c (n_spaces): Likewise.
3322 * cli/cli-script.c (document_command): Likewise.
3323 * i386-windows-tdep.c (core_process_module_section): Likewise.
3324 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3325
9d428aae
SM
33262020-05-20 Simon Marchi <simon.marchi@efficios.com>
3327
3328 * symfile.c (reread_symbols): Clear objfile's section_offsets
3329 vector and section indices, re-compute them by calling
3330 sym_offsets.
3331
250106a7
TT
33322020-05-20 Tom Tromey <tromey@adacore.com>
3333
3334 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3335 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3336
9a0bacfb
TV
33372020-05-20 Tom de Vries <tdevries@suse.de>
3338
3339 PR symtab/25833
3340 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3341
7b958a48
AM
33422020-05-20 Alan Modra <amodra@gmail.com>
3343
3344 PR 25993
3345 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3346 bfd_set_filename.
3347 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3348 passed to bfd_set_filename.
3349 * symfile-mem.c (add_vsyscall_page): Likewise for string
3350 passed to symbol_file_add_from_memory.
3351 (symbol_file_add_from_memory): Make name param a const char* and
3352 don't strdup.
3353
c7e97679
AM
33542020-05-20 Alan Modra <amodra@gmail.com>
3355
3356 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3357 rather than accessing bfd->filename directly.
3358 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3359 and use bfd_section_name.
3360 * dwarf2/frame.c (decode_frame_entry): Likewise.
3361 * exec.c (exec_set_section_address): Likewise.
3362 * solib-aix.c (solib_aix_bfd_open): Likewise.
3363 * stap-probe.c (get_stap_base_address): Likewise.
3364 * symfile.c (reread_symbols): Likewise.
3365
563c591b
TT
33662020-05-19 Tom Tromey <tromey@adacore.com>
3367
3368 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3369
f408d82c
SM
33702020-05-19 Simon Marchi <simon.marchi@efficios.com>
3371
3372 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3373
98c59b52
PA
33742020-05-19 Pedro Alves <palves@redhat.com>
3375
3376 * NEWS (set exec-file-mismatch): Adjust entry.
3377 * exec.c: Include "build-id.h".
3378 (validate_exec_file): Try to match build IDs instead of filenames.
3379 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3380 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3381 and pass down 'warn_if_slow'.
3382 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3383 gdb_bfd_open_closure to pass it down.
3384 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3385
4111f652
PA
33862020-05-19 Pedro Alves <palves@redhat.com>
3387
3388 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3389 * target.c (target_fileio_open_1): Rename to target_fileio_open
3390 and make extern. Use bool.
3391 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3392 (target_fileio_read_alloc_1): Adjust.
3393 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3394 (target_fileio_open_warn_if_slow): Delete declaration.
3395
ad80db5b
PA
33962020-05-19 Pedro Alves <palves@redhat.com>
3397
3398 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3399 Adjust all callers.
3400
1d6ce4d3
YS
34012020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3402
3403 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3404 whether disp is negative.
3405
9005fbbb
SM
34062020-05-19 Simon Marchi <simon.marchi@efficios.com>
3407
3408 * symfile.h (struct symfile_segment_data)
3409 <~symfile_segment_data>: Remove.
3410 <segment_info>: Change to std::vector.
3411 * symfile.c (default_symfile_segments): Update.
3412 * elfread.c (elf_symfile_segments): Update.
3413
68b888ff
SM
34142020-05-19 Simon Marchi <simon.marchi@efficios.com>
3415
3416 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3417 <segments>: New.
3418 <segment_bases, segment_sizes>: Remove.
3419 * symfile.c (default_symfile_segments): Update.
3420 * elfread.c (elf_symfile_segments): Update.
3421 * remote.c (remote_target::get_offsets): Update.
3422 * solib-target.c (solib_target_relocate_section_addresses):
3423 Update.
3424
62982abd
SM
34252020-05-19 Simon Marchi <simon.marchi@efficios.com>
3426
3427 * symfile.h (struct symfile_segment_data): Initialize fields.
3428 <~symfile_segment_data>: Add.
3429 (symfile_segment_data_up): New.
3430 (struct sym_fns) <sym_segments>: Return a
3431 symfile_segment_data_up.
3432 (default_symfile_segments): Return a symfile_segment_data_up.
3433 (free_symfile_segment_data): Remove.
3434 (get_symfile_segment_data): Return a symfile_segment_data_up.
3435 * symfile.c (default_symfile_segments): Likewise.
3436 (get_symfile_segment_data): Likewise.
3437 (free_symfile_segment_data): Remove.
3438 (symfile_find_segment_sections): Update.
3439 * elfread.c (elf_symfile_segments): Return a
3440 symfile_segment_data_up.
3441 * remote.c (remote_target::get_offsets): Update.
3442 * solib-target.c (solib_target_relocate_section_addresses):
3443 Update.
3444 * symfile-debug.c (debug_sym_segments): Return a
3445 symfile_segment_data_up.
3446
7f204339
RO
34472020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3448
e52a0f1b
RO
3449 PR build/25981
3450 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3451 Hardcode register numbers.
3452
7f204339
RO
3453 PR build/25981
3454 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3455 procfs_find_LDT_entry): Remove.
3456 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3457 procfs_find_LDT_entry): Remove.
3458 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3459 Remove.
3460
7f32a4d5
PA
34612020-05-17 Pedro Alves <palves@redhat.com>
3462 Andrew Burgess <andrew.burgess@embecosm.com>
3463 Keno Fischer <keno@juliacomputing.com>
3464
3465 PR gdb/25741
3466 * breakpoint.c (build_target_condition_list): Update comments.
3467 (build_target_command_list): Update comments and skip matching
3468 locations.
3469 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3470 a separate function. Simplify "set breakpoint auto-hw off"
3471 handling.
3472 (insert_breakpoints): Update comment.
3473 (tracepoint_locations_match): New parameter. For breakpoints,
3474 compare location types too, if the caller wants to.
3475 (handle_automatic_hardware_breakpoints): New functions.
3476 (bp_location_is_less_than): Also sort by location type and
3477 hardware breakpoint length.
3478 (update_global_location_list): Handle "set breakpoint auto-hw on"
3479 here.
3480 (update_breakpoint_locations): Ask breakpoint_locations_match to
3481 ignore location types.
3482
7d93a1e0
SM
34832020-05-16 Simon Marchi <simon.marchi@efficios.com>
3484
3485 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3486 type::name instead.
3487
d0e39ea2
SM
34882020-05-16 Simon Marchi <simon.marchi@efficios.com>
3489
3490 * gdbtypes.h (struct type) <name, set_name>: New methods.
3491 (TYPE_CODE): Use type::name. Change all call sites used to set
3492 the name to use type::set_name instead.
3493
2dab0c7b
TT
34942020-05-16 Tom Tromey <tom@tromey.com>
3495
3496 * top.c (quit_force): Update.
3497 * infrun.c (handle_no_resumed): Update.
3498 * top.h (all_uis): New function.
3499 (ALL_UIS): Remove.
3500
59f7bd8d
SM
35012020-05-16 Simon Marchi <simon.marchi@efficios.com>
3502
3503 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3504
9bf058f0
PA
35052020-05-16 Pedro Alves <palves@redhat.com>
3506
3507 * ia64-linux-nat.c
3508 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3509 Declare method.
3510 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3511
8f86ae1a
SM
35122020-05-15 Simon Marchi <simon.marchi@efficios.com>
3513
3514 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3515 (sparc64_adi_info): Likewise.
3516
d6bc0792
TT
35172020-05-15 Tom Tromey <tom@tromey.com>
3518
3519 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3520 block_objfile.
3521 (lookup_objfile_from_block): Remove.
3522 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3523 (lookup_global_symbol): Use block_objfile.
3524 * symtab.h (lookup_objfile_from_block): Don't declare.
3525 * printcmd.c (clear_dangling_display_expressions): Use
3526 block_objfile.
3527 * parse.c (operator_check_standard): Use block_objfile.
3528
8c14c3a3
TT
35292020-05-15 Tom Tromey <tom@tromey.com>
3530
3531 * language.c (language_alloc_type_symbol): Set
3532 SYMBOL_SECTION.
3533 * symtab.c (initialize_objfile_symbol): Remove.
3534 (allocate_symbol): Remove.
3535 (allocate_template_symbol): Remove.
3536 * dwarf2/read.c (fixup_go_packaging): Use "new".
3537 (new_symbol): Use "new".
3538 (read_variable): Don't call initialize_objfile_symbol. Use
3539 "new".
3540 (read_func_scope): Use "new".
3541 * xcoffread.c (process_xcoff_symbol): Don't call
3542 initialize_objfile_symbol.
3543 (SYMBOL_DUP): Remove.
3544 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3545 "new".
3546 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3547 (allocate_template_symbol): Don't declare.
3548 (struct symbol): Add copy constructor. Change defaults.
3549 * jit.c (finalize_symtab): Use "new".
3550 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3551 Use "new".
3552 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3553 (common_block_end): Use "new".
3554 * mdebugread.c (parse_symbol): Use "new".
3555 (new_symbol): Likewise.
3556
5b4a1a8d
PW
35572020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3558
3559 * NEWS: Mention changes to help and apropos.
3560
57b4f16e
PW
35612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3562
3563 * command.h (enum command_class): Improve comments, document
3564 that class_alias is for user-defined aliases, give the class
3565 name for each class, remove unused class_xdb.
3566 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3567 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3568 by a precise class.
3569 * infcmd.c (_initialize_infcmd): Likewise.
3570 * reverse.c (_initialize_reverse): Likewise.
3571 * stack.c (_initialize_stack): Likewise.
3572 * symfile.c (_initialize_symfile): Likewise.
3573 * tracepoint.c (_initialize_tracepoint): Likewise.
3574
7c05caf7
PW
35752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3576
3577 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3578 when their aliased command is traversed.
3579 (help_cmd): Add fput_command_names_styled call to
3580 output command name and aliases when command has an alias.
3581
3b3aaacb
PW
35822020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3583
3584 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3585 * cli/cli-decode.c (help_cmd_list): Declare as static,
3586 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3587 a command together with the command.
3588 (fput_command_name_styled, fput_command_names_styled): New functions.
3589 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3590 fput_command_name_styled.
3591 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3592 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3593
7aa1b46f
PW
35942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3595
3596 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3597 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3598 * command.h (cmd_show_list): Likewise.
3599 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3600 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3601
89bcba74
PW
36022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3603
3604 * unittests/command-def-selftests.c (traverse_command_structure):
3605 Verify all commands of a list have the same prefix command and
3606 that only the top cmdlist commands have a null prefix.
3607
3f4d92eb
PW
36082020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3609
3610 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3611 as prefix, not one of its aliases.
3612 (set_cmd_prefix): Remove.
3613 (do_add_cmd): Centralize the setting of the prefix of a command, when
3614 command is defined after its full chain of prefix commands.
3615 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3616 (add_setshow_cmd_full): Likewise.
3617 (update_prefix_field_of_prefixed_commands): New function.
3618 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3619 update_prefix_field_of_prefixed_commands.
3620 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3621 addresses of remote_set_cmdlist and remote_show_cmdlist given
3622 as argument, not the address of an argument.
3623 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3624 * gdb/remote.c (_initialize_remote): Likewise.
3625
0605465f
PW
36262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3627
3628 * cli/cli-cmds.c (alias_command): Check for an existing alias
3629 using lookup_cmd_composition, as valid_command_p is too strict
3630 and forbids aliases that are the prefix of an existing alias
3631 or command.
3632 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3633 command is properly recognised as a valid command.
3634
58e6ac70
PW
36352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3636
3637 * unittests/help-doc-selftests.c: Rename to
3638 unittests/command-def-selftests.c
3639 * unittests/command-def-selftests.c (help_doc_tests): Update some
3640 comments.
3641 (command_structure_tests, traverse_command_structure): New namespace
3642 and function.
3643 (command_structure_invariants_tests): New function.
3644 (_initialize_command_def_selftests) Renamed from
3645 _initialize_help_doc_selftests, register command_structure_invariants
3646 selftest.
3647
a7b9ceb8
PW
36482020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3649
3650 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3651 an alias of 'show'.
3652
b2188a06
JB
36532020-05-15 Joel Brobecker <brobecker@adacore.com>
3654
3655 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3656 ada_is_fixed_point_type. Update all callers.
3657 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3658 all callers.
3659 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3660 Update all callers.
3661 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3662 print_fixed_point_type. Update all callers.
3663 * ada-valprint.c (ada_value_print_num): Replace call to
3664 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3665
a51951c2
KB
36662020-05-14 Kevin Buettner <kevinb@redhat.com>
3667
3668 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3669 processors.
3670 (cpu_supports_bts): Add CV_AMD case.
3671
29d6859f
LM
36722020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3673 Simon Marchi <simon.marchi@efficios.com>
3674
3675 * infrun.c (stop_all_threads): Collect multiple wait events at
3676 each pass.
3677
78134374
SM
36782020-05-14 Simon Marchi <simon.marchi@efficios.com>
3679
3680 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3681 type::code instead.
3682
67607e24
SM
36832020-05-14 Simon Marchi <simon.marchi@efficios.com>
3684
3685 * gdbtypes.h (struct type) <code, set_code>: New methods.
3686 (TYPE_CODE): Use type::code. Change all call sites used to set
3687 the code to use type::set_code instead.
3688
a05575d3
TBA
36892020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3690 Tom de Vries <tdevries@suse.de>
3691 Pedro Alves <palves@redhat.com>
3692
3693 PR threads/25478
3694 * infrun.c (stop_all_threads): Do NOT ignore
3695 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3696 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3697 received.
3698 (handle_no_resumed): Remove code handling a live inferior with no
3699 threads.
3700 * remote.c (has_single_non_exited_thread): New.
3701 (remote_target::update_thread_list): Do not delete a thread if is
3702 the last thread of the process.
3703 * thread.c (thread_select): Call delete_exited_threads instead of
3704 prune_threads.
3705
6ad82919
TBA
37062020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3707
3708 * infrun.c (stop_all_threads): Enable/disable thread events of all
3709 targets. Move a debug message denoting the end of the function
3710 into the SCOPED_EXIT block.
3711
d890404b
TBA
37122020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3713
3714 * process-stratum-target.h: Include <set>.
3715 (all_non_exited_process_targets, switch_to_target_no_thread): New
3716 function declarations.
3717 * process-stratum-target.c (all_non_exited_process_targets)
3718 (switch_to_target_no_thread): New function implementations.
3719
293b3ebc
TBA
37202020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3721
3722 * infrun.c (handle_inferior_event): Extract out a piece of code
3723 into...
3724 (mark_non_executing_threads): ...this new function.
3725
7ca9b62a
TBA
37262020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3727
3728 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3729 use.
3730
fc75c28b
TBA
37312020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3732
3733 * regcache.c (regcache_read_pc_protected): New function
3734 implementation that returns 0 if the PC cannot read via
3735 'regcache_read_pc'.
3736 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3737 instead of 'regcache_read_pc'.
3738 (keep_going_pass_signal): Ditto.
3739
a89febbd
TT
37402020-05-13 Tom Tromey <tromey@adacore.com>
3741
3742 * ada-lang.c (align_value): Remove.
3743 (ada_template_to_fixed_record_type_1): Use align_up.
3744
f7e23710
TBA
37452020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3746
3747 * async-event.c: Update the copyright year.
3748 * async-event.h: Update the copyright year.
3749
02ff80c2
SM
37502020-05-12 Simon Marchi <simon.marchi@efficios.com>
3751
3752 * objfiles.h (is_addr_in_objfile,
3753 shared_objfile_contains_address_p): Return bool.
3754 * objfile.c (is_addr_in_objfile,
3755 shared_objfile_contains_address_p): Return bool.
3756
4fd6c7e8
TT
37572020-05-11 Tom Tromey <tromey@adacore.com>
3758
3759 * cli/cli-cmds.c (info_command): Restore.
3760 (_initialize_cli_cmds): Use add_prefix_command for "info".
3761 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3762
5eb68a39
TT
37632020-05-11 Tom Tromey <tromey@adacore.com>
3764
3765 * ada-lang.c (ada_value_primitive_field): Now public.
3766 * ada-lang.h (ada_value_primitive_field): Declare.
3767 * ada-valprint.c (print_field_values): Use
3768 ada_value_primitive_field for wrapper fields.
3769
7666722f
TV
37702020-05-11 Tom de Vries <tdevries@suse.de>
3771
3772 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3773 MODULE_DOMAIN.
3774
3ee6bb11
TV
37752020-05-11 Tom de Vries <tdevries@suse.de>
3776
3777 PR symtab/25941
3778 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3779 with length 0, if not gdb-produced.
3780 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3781
43434996
TV
37822020-05-09 Tom de Vries <tdevries@suse.de>
3783
3784 PR gdb/25955
3785 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3786 calculation.
3787
2f78cffc
TT
37882020-05-09 Tom Tromey <tom@tromey.com>
3789
3790 * top.c (server_command): Now bool.
3791 * top.h (server_command): Now bool.
3792
4f7bc5ed
TT
37932020-05-08 Tom Tromey <tromey@adacore.com>
3794
3795 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3796 already being processed.
3797
8be4b118
TT
37982020-05-08 Tom Tromey <tom@tromey.com>
3799
3800 * printcmd.c (struct display) <next>: Remove.
3801 <display>: New constructor.
3802 <exp_string>: Now a std::string.
3803 <enabled_p>: Now a bool.
3804 (display_number): Move definition earlier.
3805 (displays): Rename from display_chain. Now a std::vector.
3806 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3807 (display_command): Update.
3808 (do_one_display, disable_display)
3809 (enable_disable_display_command, do_enable_disable_display):
3810 Update.
3811 (free_display): Remove.
3812 (clear_displays): Rewrite.
3813 (delete_display): Update.
3814 (map_display_numbers): Use function_view. Remove "data"
3815 parameter. Update.
3816 (do_delete_display): Remove.
3817 (undisplay_command): Update.
3818 (do_one_display, do_displays, disable_display)
3819 (info_display_command): Update.
3820 (do_enable_disable_display): Remove.
3821 (enable_disable_display_command)
3822 (clear_dangling_display_expressions): Update.
3823
94c93c35
TT
38242020-05-08 Tom Tromey <tom@tromey.com>
3825
3826 * symtab.c (set_symbol_cache_size)
3827 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3828 (maintenance_print_symbol_cache_statistics): Update.
3829 * symmisc.c (print_symbol_bcache_statistics)
3830 (print_objfile_statistics, maintenance_print_objfiles)
3831 (maintenance_info_symtabs, maintenance_check_symtabs)
3832 (maintenance_expand_symtabs, maintenance_info_line_tables):
3833 Update.
3834 * symfile-debug.c (set_debug_symfile): Update.
3835 * source.c (forget_cached_source_info): Update.
3836 * python/python.c (gdbpy_progspaces): Update.
3837 * psymtab.c (maintenance_info_psymtabs): Update.
3838 * probe.c (parse_probes): Update.
3839 * linespec.c (iterate_over_all_matching_symtabs)
3840 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3841 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3842 * exec.c (exec_target::close): Update.
3843 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3844 * breakpoint.c (print_one_breakpoint_location)
3845 (create_longjmp_master_breakpoint)
3846 (create_std_terminate_master_breakpoint): Update.
3847 * progspace.c (program_spaces): Now a std::vector.
3848 (maybe_new_address_space): Update.
3849 (add_program_space): Remove.
3850 (program_space::program_space): Update.
3851 (remove_program_space): Update.
3852 (number_of_program_spaces): Remove.
3853 (print_program_space, update_address_spaces): Update.
3854 * progspace.h (program_spaces): Change type.
3855 (ALL_PSPACES): Remove.
3856 (number_of_program_spaces): Don't declare.
3857 (struct program_space) <next>: Remove.
3858
a1fd1ac9
TT
38592020-05-08 Tom Tromey <tom@tromey.com>
3860
3861 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3862 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3863 (enable_break): Update.
3864 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3865 (frv_fdpic_find_canonical_descriptor): Update.
3866 (frv_fetch_objfile_link_map): Update.
3867 * progspace.c (program_space::free_all_objfiles): Update.
3868 (program_space::solibs): New method.
3869 * progspace.h (struct program_space) <solibs>: New method.
3870 * solist.h (master_so_list): Don't declare.
3871 (ALL_SO_LIBS): Remove.
3872 * solib.h (so_list_head): Remove.
3873 (update_solib_list): Update comment.
3874 * solib.c (master_so_list): Remove.
3875 (solib_used, update_solib_list, solib_add)
3876 (info_sharedlibrary_command, clear_solib)
3877 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3878
38eae084
TT
38792020-05-08 Tom Tromey <tom@tromey.com>
3880
3881 * extension.c (extension_languages): Now a std::array.
3882 (ALL_EXTENSION_LANGUAGES): Remove.
3883 (get_ext_lang_defn, get_ext_lang_of_file)
3884 (eval_ext_lang_from_control_command): Update.
3885 (finish_ext_lang_initialization)
3886 (auto_load_ext_lang_scripts_for_objfile)
3887 (ext_lang_type_printers::ext_lang_type_printers)
3888 (apply_ext_lang_type_printers)
3889 (ext_lang_type_printers::~ext_lang_type_printers)
3890 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3891 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3892 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3893 (get_matching_xmethod_workers, ext_lang_colorize)
3894 (ext_lang_before_prompt): Update.
3895 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3896
596dc4ad
TT
38972020-05-08 Tom Tromey <tom@tromey.com>
3898
3899 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3900 overload.
3901 <swap_string, m_string>: Remove.
3902 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3903 Update.
3904 * stabsread.c (define_symbol, read_type): Update.
3905 * linespec.c (find_linespec_symbols): Update.
3906 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3907 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3908 * dbxread.c (read_dbx_symtab): Update.
3909 * cp-support.h (cp_canonicalize_string_full)
3910 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3911 Return unique_xmalloc_ptr.
3912 * cp-support.c (inspect_type): Update.
3913 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3914 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3915 Likewise.
3916 * c-typeprint.c (print_name_maybe_canonical): Update.
3917 * break-catch-throw.c (check_status_exception_catchpoint):
3918 Update.
3919
bf4cb9be
TV
39202020-05-08 Tom de Vries <tdevries@suse.de>
3921
3922 * infrun.c (follow_fork): Copy current_line and current_symtab to
3923 child thread.
3924
a1b68f28
SM
39252020-05-07 Simon Marchi <simon.marchi@efficios.com>
3926
3927 * async-event.c (struct async_signal_handler, struct
3928 async_event_handler): Reformat, remove typedef.
3929
98d48915
SM
39302020-05-07 Simon Marchi <simon.marchi@efficios.com>
3931
3932 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3933 access thistype->main_type->dyn_prop_list directly.
3934
7aa91313
SM
39352020-05-07 Simon Marchi <simon.marchi@efficios.com>
3936
3937 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3938 (remove_dyn_prop): Remove. Update all users to use
3939 type::remove_dyn_prop.
3940 * gdbtypes.c (remove_dyn_prop): Rename to...
3941 (type::remove_dyn_prop): ... this.
3942
5c54719c
SM
39432020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3944
3945 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3946 (add_dyn_prop): Remove. Update all users to use
3947 type::add_dyn_prop.
3948 * gdbtypes.c (add_dyn_prop): Rename to...
3949 (type::add_dyn_prop): ... this.
3950
24e99c6c
SM
39512020-05-07 Simon Marchi <simon.marchi@efficios.com>
3952
3953 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3954 (get_dyn_prop): Remove. Update all users to use
3955 type::dyn_prop.
3956 * gdbtypes.c (get_dyn_prop): Rename to...
3957 (type::dyn_prop): ... this.
3958
0d4bf016
SM
39592020-05-06 Simon Marchi <simon.marchi@efficios.com>
3960
3961 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3962
ac4a4f1c
SM
39632020-05-06 Simon Marchi <simon.marchi@efficios.com>
3964
3965 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3966 instruction, skip it if it's there.
3967
a3bbacc1
SM
39682020-05-05 Simon Marchi <simon.marchi@efficios.com>
3969
3970 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
3971
c3236f84
SM
39722020-05-04 Simon Marchi <simon.marchi@efficios.com>
3973
3974 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
3975 * gdbtypes.c (recursive_dump_type): Remove use of
3976 TYPE_INCOMPLETE.
3977
3b6acaee
TT
39782020-05-03 Tom Tromey <tom@tromey.com>
3979
3980 * breakpoint.c (catch_command, tcatch_command): Remove.
3981 (_initialize_breakpoint): Use add_basic_prefix_cmd,
3982 add_show_prefix_cmd.
3983 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
3984 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3985 Remove.
3986 (add_internal_problem_command): Use add_basic_prefix_cmd,
3987 add_show_prefix_cmd.
3988 * mips-tdep.c (set_mipsfpu_command): Remove.
3989 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
3990 * dwarf2/index-cache.c (set_index_cache_command): Remove.
3991 (_initialize_index_cache): Use add_basic_prefix_cmd.
3992 * memattr.c (dummy_cmd): Remove.
3993 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
3994 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
3995 (_initialize_tui_win): Use add_basic_prefix_cmd,
3996 add_show_prefix_cmd.
3997 * cli/cli-logging.c (set_logging_command): Remove.
3998 (_initialize_cli_logging): Use add_basic_prefix_cmd,
3999 add_show_prefix_cmd.
4000 (show_logging_command): Remove.
4001 * target.c (target_command): Remove.
4002 (add_target): Use add_basic_prefix_cmd.
4003
a51119cd
HD
40042020-05-02 Hannes Domani <ssbssa@yahoo.de>
4005
4006 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4007
652fc23a 40082020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4009
652fc23a
PW
4010 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4011 info_command.
4012
117539e6
KR
40132020-04-30 Kamil Rytarowski <n54@gmx.com>
4014
4015 * nbsd-nat.c (nbsd_enable_proc_events)
4016 (nbsd_nat_target::post_startup_inferior): Add.
4017 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4018 (nbsd_nat_target::update_thread_list): Rewrite.
4019 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4020 "PTRACE_LWP_CREATE".
4021 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4022
102e38eb 40232020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4024
102e38eb
PW
4025 * stack.c (_initialize_stack): Remove duplicated creation
4026 of "frame" command and "f" alias.
4027
ee9d1e5f
HD
40282020-04-30 Hannes Domani <ssbssa@yahoo.de>
4029
4030 PR gdb/18706
4031 * gdbtypes.c (check_typedef): Calculate size of array of
4032 stubbed type.
4033
627c7fb8
HD
40342020-04-30 Hannes Domani <ssbssa@yahoo.de>
4035
4036 PR gdb/15559
4037 * i386-tdep.c (i386_push_dummy_call): Call
4038 i386_thiscall_push_dummy_call.
4039 (i386_thiscall_push_dummy_call): New function.
4040 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4041 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4042 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4043
ffc2844e
SM
40442020-04-29 Simon Marchi <simon.marchi@efficios.com>
4045
4046 * gdbarch.sh (do_read): Add shellcheck disable directive for
4047 warning SC2162.
4048
1207375d
SM
40492020-04-29 Simon Marchi <simon.marchi@efficios.com>
4050
4051 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4052 "referenced but not assigned" warning.
4053
9fdb2916
SM
40542020-04-29 Simon Marchi <simon.marchi@efficios.com>
4055
4056 * gdbarch.sh: Remove code that sets fallbackdefault.
4057
759cea5e
SM
40582020-04-29 Simon Marchi <simon.marchi@efficios.com>
4059
4060 * gdbarch.sh: Use shell operators && and || instead of
4061 -a and -o.
4062
cb02ab24
SM
40632020-04-29 Simon Marchi <simon.marchi@efficios.com>
4064
4065 * gdbarch.sh: Use $(...) instead of `...`.
4066
a6fc5ffc
SM
40672020-04-29 Simon Marchi <simon.marchi@efficios.com>
4068
4069 * gdbarch.sh: Use double quotes around variables.
4070
8d113d13
SM
40712020-04-29 Simon Marchi <simon.marchi@efficios.com>
4072
4073 * gdbarch.sh: Use %s with printf, instead of variables in the
4074 format string.
4075
ed6acedd
TT
40762020-04-29 Tom Tromey <tromey@adacore.com>
4077
4078 PR ada/25875:
4079 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4080 type fields here.
4081 (read_enumeration_type): Call
4082 update_enumeration_type_from_children later. Update comments.
4083 (process_enumeration_scope): Don't create type fields.
4084
b68b1b58
KR
40852020-04-29 Kamil Rytarowski <n54@gmx.com>
4086
4087 * nbsd-tdep.c: Include "xml-syscall.h".
4088 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4089
f94b2e03
KR
40902020-04-29 Kamil Rytarowski <n54@gmx.com>
4091
4092 * nbsd-nat.c: Include "sys/wait.h".
4093 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4094 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4095 (nbsd_nat_target::remove_exec_catchpoint)
4096 (nbsd_nat_target::set_syscall_catchpoint): Add.
4097 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4098 (nbsd_nat_target::insert_exec_catchpoint)
4099 (nbsd_nat_target::remove_exec_catchpoint)
4100 (nbsd_nat_target::set_syscall_catchpoint): Add.
4101 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4102 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4103 `nbsd_get_syscall_number'.
4104
fc49bc72
TT
41052020-04-29 Tom Tromey <tom@tromey.com>
4106
4107 * stack.c (print_block_frame_labels): Remove.
4108
d642b692
HD
41092020-04-29 Hannes Domani <ssbssa@yahoo.de>
4110
4111 PR gdb/17320
4112 * ada-valprint.c (val_print_packed_array_elements): Move array
4113 end bracket to new line.
4114 (ada_val_print_string): Remove extra spaces before first array
4115 element.
4116 * c-valprint.c (c_value_print_array): Likewise.
4117 * m2-valprint.c (m2_print_array_contents): Likewise.
4118 (m2_value_print_inner): Likewise.
4119 * p-valprint.c (pascal_value_print_inner): Likewise.
4120 * valprint.c (generic_val_print_array): Likewise.
4121 (value_print_array_elements): Move first array element and array
4122 end bracket to new line.
4123
ea90f227
TV
41242020-04-29 Tom de Vries <tdevries@suse.de>
4125
4126 PR symtab/25889
4127 * linespec.c (find_method): Fix ix calculation.
4128
4498ef4f
KR
41292020-04-28 Kamil Rytarowski <n54@gmx.com>
4130
4131 * syscalls/update-netbsd.sh: New file.
4132 * syscalls/netbsd.xml: Regenerate.
4133 * data-directory/Makefile.in: Register `netbsd.xml' in
4134 `SYSCALLS_FILES'.
4135
a55e30b5
SM
41362020-04-28 Simon Marchi <simon.marchi@efficios.com>
4137
4138 * syscalls/update-freebsd.sh: Add double quotes.
4139
2b2fbab8
TT
41402020-04-28 Tom Tromey <tom@tromey.com>
4141
4142 * NEWS: Update.
4143 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4144 (cmdpy_init): Allow class_tui.
4145
a65189c9
TV
41462020-04-28 Mark Williams <mark@myosotissp.com>
4147
4148 PR gdb/24480
4149 * dwarf2read.c: Add missing assingments to list_in_scope when
4150 start_symtab was already called.
4151
1b95cdb7
SM
41522020-04-28 Simon Marchi <simon.marchi@efficios.com>
4153
4154 PR gdb/25881
4155 * dwarf2/read.c (offset_map_type): Use
4156 gdb:hash_enum<sect_offset> as hash function.
4157
15cd93d0
TV
41582020-04-28 Tom de Vries <tdevries@suse.de>
4159
4160 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4161 with DW_AT_signature.
4162
1eb39914
SM
41632020-04-27 Simon Marchi <simon.marchi@efficios.com>
4164
4165 * configure.ac: Remove check for fs_base/gs_base in
4166 user_regs_struct.
4167 * configure: Re-generate.
4168 * config.in: Re-generate.
4169 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4170 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4171 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4172
991a3e2e
LM
41732020-04-27 Luis Machado <luis.machado@linaro.org>
4174
4175 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4176 problematic inline frame unwinding situation.
4177 * frame.c (frame_id_computed_p): New function.
4178 * frame.h (frame_id_computed_p): New prototype.
4179
361ba0e8
TT
41802020-04-26 Tom Tromey <tom@tromey.com>
4181
4182 * command.h (enum command_class) <class_pseudo>: Remove.
4183
bc3609fd
PW
41842020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4185
4186 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4187 and whitespace.
4188
b9771db7
KR
41892020-04-25 Kamil Rytarowski <n54@gmx.com>
4190
ec16513e
SM
4191 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4192 `PT_GET_PROCESS_STATE' block.
b9771db7 4193
7151c1af
TT
41942020-04-24 Tom Tromey <tom@tromey.com>
4195
4196 * symtab.h (symbol_get_demangled_name): Don't declare.
4197 * symtab.c (symbol_get_demangled_name): Remove.
4198 (general_symbol_info::natural_name)
4199 (general_symbol_info::demangled_name): Update.
4200
906bb4c5
TT
42012020-04-24 Tom Tromey <tom@tromey.com>
4202
4203 PR rust/25025:
4204 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4205
bcfe6157
TT
42062020-04-24 Tom Tromey <tom@tromey.com>
4207
4208 PR symtab/12707:
4209 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4210 exists.
4211 (new_symbol): Likewise.
4212 * compile/compile-object-load.c (get_out_value_type): Use
4213 symbol_matches_search_name.
4214
f049a313
TT
42152020-04-24 Tom Tromey <tom@tromey.com>
4216
4217 * dwarf2/read.c (add_partial_symbol): Do not call
4218 compute_and_set_names.
4219
76e288d1
TT
42202020-04-24 Tom Tromey <tom@tromey.com>
4221
4222 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4223 overload.
4224
2467f4f6
TT
42252020-04-24 Tom Tromey <tom@tromey.com>
4226
4227 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4228 (add_psymbol_to_list): New overload. Make old overload call new
4229 one.
4230 * psympriv.h (add_psymbol_to_list): New overload.
4231
e61108c9
TT
42322020-04-24 Tom Tromey <tom@tromey.com>
4233
4234 * dwarf2/read.c (partial_die_info::read) <case
4235 DW_AT_linkage_name>: Use value_as_string.
4236 (dwarf2_string_attr): Use value_as_string.
4237 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4238 method.
4239 * dwarf2/attribute.c (attribute::value_as_string): New method.
4240
8c87a452
TT
42412020-04-24 Tom Tromey <tom@tromey.com>
4242
4243 * symtab.c (general_symbol_info::natural_name)
4244 (general_symbol_info::demangled_name): Check for language_rust.
4245
787de330
TT
42462020-04-24 Tom Tromey <tom@tromey.com>
4247
4248 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4249 (dwarf2_physname): ... from here.
4250 (partial_die_info::read): Add Rust "{" hack.
4251
ff985671
TT
42522020-04-24 Tom Tromey <tom@tromey.com>
4253
4254 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4255 method.
4256 (symbol_set_demangled_name): Don't declare.
4257 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4258 symbol_set_demangled_name.
4259 (general_symbol_info::set_language)
4260 (general_symbol_info::compute_and_set_names): Update.
4261 * minsyms.c (minimal_symbol_reader::install): Update.
4262 * dwarf2/read.c (new_symbol): Update.
4263
1acda803
TT
42642020-04-24 Tom Tromey <tromey@adacore.com>
4265
4266 PR python/23662:
4267 * python/py-type.c (convert_field): Handle
4268 FIELD_LOC_KIND_DWARF_BLOCK.
4269 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4270 (typy_get_dynamic): Nw function.
4271 (type_object_getset): Add "dynamic".
4272 * NEWS: Add entry.
4273
d656f129
TT
42742020-04-24 Tom Tromey <tromey@adacore.com>
4275
4276 * ada-typeprint.c (print_choices, print_variant_part)
4277 (print_record_field_types_dynamic): New functions.
4278 (print_record_field_types): Use print_record_field_types_dynamic.
4279
7d79de9a
TT
42802020-04-24 Tom Tromey <tromey@adacore.com>
4281
4282 * dwarf2/read.c (handle_data_member_location): New overload.
4283 (dwarf2_add_field): Use it.
4284 (decode_locdesc): Add "computed" parameter. Update comment.
4285 * gdbtypes.c (is_dynamic_type_internal): Also look for
4286 FIELD_LOC_KIND_DWARF_BLOCK.
4287 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4288 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4289 virtual base classes.
4290 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4291 FIELD_LOC_KIND_DWARF_BLOCK.
4292
f8e89861
TT
42932020-04-24 Tom Tromey <tromey@adacore.com>
4294
4295 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4296 * gdbtypes.c (is_dynamic_type_internal): Check
4297 TYPE_HAS_DYNAMIC_LENGTH.
4298 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4299 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4300 New macros.
4301 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4302 constant.
4303
9c6a1327
TT
43042020-04-24 Tom Tromey <tromey@adacore.com>
4305
4306 * dwarf2/read.c (struct variant_field): Rewrite.
4307 (struct variant_part_builder): New.
4308 (struct nextfield): Remove "variant" field. Add "offset".
4309 (struct field_info): Add "current_variant_part" and
4310 "variant_parts".
4311 (alloc_discriminant_info): Remove.
4312 (alloc_rust_variant): New function.
4313 (quirk_rust_enum): Update.
4314 (dwarf2_add_field): Set "offset" member. Don't handle
4315 DW_TAG_variant_part.
4316 (offset_map_type): New typedef.
4317 (convert_variant_range, create_one_variant)
4318 (create_one_variant_part, create_variant_parts)
4319 (add_variant_property): New functions.
4320 (dwarf2_attach_fields_to_type): Call add_variant_property.
4321 (read_structure_type): Don't handle DW_TAG_variant_part.
4322 (handle_variant_part, handle_variant): New functions.
4323 (handle_struct_member_die): Use them.
4324 (process_structure_scope): Don't handle variant parts.
4325 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4326 (struct discriminant_info): Remove.
4327 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4328 (struct main_type) <flag_discriminated_union>: Remove.
4329 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4330 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4331 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4332 Update.
4333 * valops.c (value_union_variant): Remove.
4334 * value.h (value_union_variant): Don't declare.
4335
b249d2c2
TT
43362020-04-24 Tom Tromey <tromey@adacore.com>
4337
4338 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4339 (ada_value_primitive_packed_val): Update.
4340 * ada-valprint.c (ada_value_print_1): Update.
4341 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4342 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4343 just an address. Use evaluate_for_locexpr_baton.
4344 (dwarf2_evaluate_property): Update.
4345 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4346 array_view.
4347 * findvar.c (default_read_var_value): Update.
4348 * gdbtypes.c (compute_variant_fields_inner)
4349 (resolve_dynamic_type_internal): Update.
4350 (resolve_dynamic_type): Change type of valaddr parameter.
4351 * gdbtypes.h (resolve_dynamic_type): Update.
4352 * valarith.c (value_subscripted_rvalue): Update.
4353 * value.c (value_from_contents_and_address): Update.
4354
61122aa9
TT
43552020-04-24 Tom Tromey <tromey@adacore.com>
4356
4357 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4358 "push_initial_value" parameter.
4359 (dwarf2_evaluate_property): Likewise.
4360 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4361
ef83a141
TT
43622020-04-24 Tom Tromey <tromey@adacore.com>
4363
4364 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4365 (variant::matches, compute_variant_fields_recurse)
4366 (compute_variant_fields_inner, compute_variant_fields): New
4367 functions.
4368 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4369 Use resolved_type after type is made.
4370 (operator==): Add new cases.
4371 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4372 (struct discriminant_range, struct variant, struct variant_part):
4373 New.
4374 (union dynamic_prop_data) <variant_parts, original_type>: New
4375 members.
4376 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4377 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4378 constants.
4379 * value.c (unpack_bits_as_long): Now public.
4380 * value.h (unpack_bits_as_long): Declare.
4381
675127ec
TT
43822020-04-24 Tom Tromey <tromey@adacore.com>
4383
4384 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4385 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4386
9852ceef
HD
43872020-04-24 Hannes Domani <ssbssa@yahoo.de>
4388
4389 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4390
7632c6ce
KR
43912020-04-24 Kamil Rytarowski <n54@gmx.com>
4392
4393 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4394 (remove_fork_catchpoint, post_startup_inferior)
4395 (post_attach): Move...
4396 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4397 (remove_fork_catchpoint, post_startup_inferior)
4398 (post_attach): ...here.
4399 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4400 (remove_fork_catchpoint, post_startup_inferior)
4401 (post_attach): Move...
4402 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4403 (remove_fork_catchpoint, post_startup_inferior)
4404 (post_attach): ...here.
4405
7be2bb4f
TT
44062020-04-24 Tom Tromey <tromey@adacore.com>
4407
4408 * nat/windows-nat.h (struct windows_thread_info)
4409 <pc_adjusted>: New member.
4410 * windows-nat.c (windows_fetch_one_register): Check
4411 pc_adjusted.
4412 (windows_nat_target::get_windows_debug_event)
4413 (windows_nat_target::wait): Set pc_adjusted.
4414
f80cb3b4
TV
44152020-04-24 Tom de Vries <tdevries@suse.de>
4416
4417 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4418 Run gdb-add-index inside temp dir.
4419
29514b87
TT
44202020-04-23 Tom Tromey <tromey@adacore.com>
4421
4422 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4423 in loop.
4424
5939967b
LM
44252020-04-23 Luis Machado <luis.machado@linaro.org>
4426
4427 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4428 get_frame_register instead of gdbarch_unwind_pc.
4429
70bc38f5
TV
44302020-04-23 Tom de Vries <tdevries@suse.de>
4431
4432 * symtab.c (lookup_global_symbol): Prefer def over decl.
4433
de82891c
TV
44342020-04-23 Tom de Vries <tdevries@suse.de>
4435
4436 PR symtab/25807
4437 * block.c (best_symbol, better_symbol): Promote to external.
4438 * block.h (best_symbol, better_symbol): Declare.
4439 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4440 decl.
4441
ecc6c606
TT
44422020-04-23 Tom Tromey <tromey@adacore.com>
4443
4444 PR ada/25837:
4445 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4446 "const char *", not a "const std::string &".
4447 <name_and_matcher::operator==>: Update.
4448 * unittests/lookup_name_info-selftests.c: Change type of
4449 "result".
4450
740480b8
TT
44512020-04-23 Tom Tromey <tom@tromey.com>
4452
4453 * inferior.h (iterate_over_inferiors): Don't declare.
4454 * inferior.c (iterate_over_inferiors): Remove.
4455 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4456 Remove.
4457 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4458 use iterate_over_inferiors.
4459 (darwin_resume_inferior_it)
4460 (struct resume_inferior_threads_param)
4461 (darwin_resume_inferior_threads_it): Remove.
4462 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4463
ae3ab1f0
TV
44642020-04-23 Tom de Vries <tdevries@suse.de>
4465
4466 * blockframe.c (find_pc_partial_function): Use
4467 find_pc_sect_compunit_symtab rather than
4468 objfile->sf->qf->find_pc_sect_compunit_symtab.
4469
317d2668
TV
44702020-04-22 Tom de Vries <tdevries@suse.de>
4471
4472 PR symtab/25764
4473 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4474 in psymtabs.
4475
eea9e357
TV
44762020-04-22 Tom de Vries <tdevries@suse.de>
4477
4478 PR symtab/25801
4479 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4480 symtabs.
4481
3d5afab3
TV
44822020-04-22 Tom de Vries <tdevries@suse.de>
4483
4484 PR symtab/25700
4485 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4486 CU if already created.
4487
d43b7a2d
TBA
44882020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4489
4490 * infrun.c (displaced_step_fixup): Switch to the event_thread
4491 before calling displaced_step_restore, not after.
4492
d89edf9b
MM
44932020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4494
4495 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4496 its inferior is not recorded by us.
4497 (record_btrace_target_open): Replace call to
4498 all_non_exited_threads () with call to current_inferior
4499 ()->non_exited_threads ().
4500 (record_btrace_target::stop_recording): Likewise.
4501 (record_btrace_target::close): Likewise.
4502 (record_btrace_target::wait): Likewise.
4503 (record_btrace_target::record_stop_replaying): Likewise.
4504
5897fd49
MM
45052020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4506
4507 * btrace.c (btrace_enable): Throw an error on double enables and
4508 when enabling recording fails.
4509 (btrace_disable): Throw an error if the thread is not recorded.
4510
1a476b6d
MM
45112020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4512
4513 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4514 request if we do not have a thread_info.
4515
4778a5f8
TV
45162020-04-21 Tom de Vries <tdevries@suse.de>
4517
4518 PR gdb/25471
4519 * thread.c
4520 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4521 exception in get_frame_id.
4522
0fa7617d
TT
45232020-04-20 Tom Tromey <tromey@adacore.com>
4524
4525 * python/python.c (struct gdbpy_event): Mark move constructor as
4526 noexcept.
4527 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4528 constructor as noexcept.
4529 * completer.h (struct completion_result): Mark move constructor as
4530 noexcept.
4531 * completer.c (completion_result::completion_result): Use
4532 initialization style. Don't call reset_match_list.
4533
ad23bda0
MS
45342020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4535
4536 * MAINTAINERS (Write After Approval): Add myself.
4537
45e1f031
TT
45382020-04-18 Tom Tromey <tom@tromey.com>
4539
4540 * windows-tdep.c (init_w32_command_list)
4541 (w32_prefix_command_valid): Restore.
4542 (_initialize_windows_tdep): Call init_w32_command_list.
4543
08feed99
TT
45442020-04-18 Tom Tromey <tom@tromey.com>
4545
4546 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4547 * value.c (value_fn_field): Update.
4548 * valops.c (find_function_in_inferior)
4549 (value_allocate_space_in_inferior): Update.
4550 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4551 Update.
4552 * tui/tui-source.c (tui_source_window::set_contents): Update.
4553 * symtab.c (lookup_global_or_static_symbol)
4554 (find_function_start_sal_1, skip_prologue_sal)
4555 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4556 * symmisc.c (dump_msymbols, dump_symtab_1)
4557 (maintenance_print_one_line_table): Update.
4558 * symfile.c (init_entry_point_info, section_is_mapped)
4559 (list_overlays_command, simple_read_overlay_table)
4560 (simple_overlay_update_1): Update.
4561 * stap-probe.c (handle_stap_probe): Update.
4562 * stabsread.c (dbx_init_float_type, define_symbol)
4563 (read_one_struct_field, read_enum_type, read_range_type): Update.
4564 * source.c (info_line_command): Update.
4565 * python/python.c (gdbpy_source_objfile_script)
4566 (gdbpy_execute_objfile_script): Update.
4567 * python/py-type.c (save_objfile_types): Update.
4568 * python/py-objfile.c (py_free_objfile): Update.
4569 * python/py-inferior.c (python_new_objfile): Update.
4570 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4571 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4572 (maintenance_check_psymtabs): Update.
4573 * printcmd.c (info_address_command): Update.
4574 * objfiles.h (struct objfile) <arch>: New method, from
4575 get_objfile_arch.
4576 (get_objfile_arch): Don't declare.
4577 * objfiles.c (get_objfile_arch): Remove.
4578 (filter_overlapping_sections): Update.
4579 * minsyms.c (msymbol_is_function): Update.
4580 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4581 (output_nondebug_symbol): Update.
4582 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4583 (mdebug_expand_psymtab): Update.
4584 * machoread.c (macho_add_oso_symfile): Update.
4585 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4586 Update.
4587 * linux-fork.c (checkpoint_command): Update.
4588 * linespec.c (convert_linespec_to_sals): Update.
4589 * jit.c (finalize_symtab): Update.
4590 * infrun.c (insert_exception_resume_from_probe): Update.
4591 * ia64-tdep.c (ia64_find_unwind_table): Update.
4592 * hppa-tdep.c (internalize_unwinds): Update.
4593 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4594 Update.
4595 * gcore.c (call_target_sbrk): Update.
4596 * elfread.c (record_minimal_symbol, elf_symtab_read)
4597 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4598 (elf_gnu_ifunc_resolve_by_got): Update.
4599 * dwarf2/read.c (create_addrmap_from_index)
4600 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4601 (read_debug_names_from_section)
4602 (process_psymtab_comp_unit_reader, add_partial_symbol)
4603 (add_partial_subprogram, process_full_comp_unit)
4604 (read_file_scope, read_func_scope, read_lexical_block_scope)
4605 (read_call_site_scope, dwarf2_ranges_read)
4606 (dwarf2_record_block_ranges, dwarf2_add_field)
4607 (mark_common_block_symbol_computed, read_tag_pointer_type)
4608 (read_tag_string_type, dwarf2_init_float_type)
4609 (dwarf2_init_complex_target_type, read_base_type)
4610 (partial_die_info::read, partial_die_info::read)
4611 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4612 (dwarf2_fetch_die_loc_sect_off): Update.
4613 * dwarf2/loc.c (dwarf2_find_location_expression)
4614 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4615 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4616 (dwarf2_loc_desc_get_symbol_read_needs)
4617 (locexpr_describe_location_piece, locexpr_describe_location_1)
4618 (loclist_describe_location): Update.
4619 * dwarf2/index-write.c (write_debug_names): Update.
4620 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4621 * dtrace-probe.c (dtrace_process_dof): Update.
4622 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4623 (process_one_symbol): Update.
4624 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4625 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4626 (coff_read_enum_type): Update.
4627 * cli/cli-cmds.c (edit_command, list_command): Update.
4628 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4629 * breakpoint.c (create_overlay_event_breakpoint)
4630 (create_longjmp_master_breakpoint)
4631 (create_std_terminate_master_breakpoint)
4632 (create_exception_master_breakpoint, get_sal_arch): Update.
4633 * block.c (block_gdbarch): Update.
4634 * annotate.c (annotate_source_line): Update.
4635
0743fc83
TT
46362020-04-17 Tom Tromey <tromey@adacore.com>
4637
4638 * auto-load.c (show_auto_load_cmd): Remove.
4639 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4640 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4641 (maintenance_print_arc_command): Remove.
4642 * tui/tui-win.c (tui_command): Remove.
4643 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4644 * tui/tui-layout.c (tui_layout_command): Remove.
4645 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4646 * python/python.c (user_set_python, user_show_python): Remove.
4647 (_initialize_python): Use add_basic_prefix_cmd,
4648 add_show_prefix_cmd.
4649 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4650 (install_gdb_commands): Use add_basic_prefix_cmd,
4651 add_show_prefix_cmd.
4652 (info_guile_command): Remove.
4653 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4654 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4655 add_show_prefix_cmd.
4656 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4657 Remove do_set and do_show parameters.
4658 * cli/cli-style.c (set_style, show_style): Remove.
4659 (_initialize_cli_style): Use add_basic_prefix_cmd,
4660 add_show_prefix_cmd.
4661 (cli_style_option::add_setshow_commands): Remove do_set and
4662 do_show parameters.
4663 (cli_style_option::add_setshow_commands): Use
4664 add_basic_prefix_cmd, add_show_prefix_cmd.
4665 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4666 (set_style_name): Remove.
4667 * cli/cli-dump.c (dump_command, append_command): Remove.
4668 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4669 (tekhex_dump_command, binary_dump_command)
4670 (binary_append_command): Remove.
4671 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4672 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4673 (init_w32_command_list): Remove; move into ...
4674 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4675 * valprint.c (set_print, show_print, set_print_raw)
4676 (show_print_raw): Remove.
4677 (_initialize_valprint): Use add_basic_prefix_cmd,
4678 add_show_prefix_cmd.
4679 * typeprint.c (set_print_type, show_print_type): Remove.
4680 (_initialize_typeprint): Use add_basic_prefix_cmd,
4681 add_show_prefix_cmd.
4682 * record.c (set_record_command, show_record_command): Remove.
4683 (_initialize_record): Use add_basic_prefix_cmd,
4684 add_show_prefix_cmd.
4685 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4686 add_show_prefix_cmd.
4687 (info_command, show_command, set_debug, show_debug): Remove.
4688 * top.h (set_history, show_history): Don't declare.
4689 * top.c (set_history, show_history): Remove.
4690 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4691 (unset_tdesc_cmd): Remove.
4692 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4693 add_show_prefix_cmd.
4694 * symtab.c (info_module_command): Remove.
4695 (_initialize_symtab): Use add_basic_prefix_cmd.
4696 * symfile.c (overlay_command): Remove.
4697 (_initialize_symfile): Use add_basic_prefix_cmd.
4698 * sparc64-tdep.c (info_adi_command): Remove.
4699 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4700 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4701 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4702 add_show_prefix_cmd.
4703 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4704 (_initialize_serial): Use add_basic_prefix_cmd,
4705 add_show_prefix_cmd.
4706 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4707 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4708 add_show_prefix_cmd.
4709 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4710 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4711 add_show_prefix_cmd.
4712 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4713 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4714 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4715 add_show_prefix_cmd.
4716 * remote.c (remote_command, set_remote_cmd): Remove.
4717 (_initialize_remote): Use add_basic_prefix_cmd.
4718 * record-full.c (set_record_full_command)
4719 (show_record_full_command): Remove.
4720 (_initialize_record_full): Use add_basic_prefix_cmd,
4721 add_show_prefix_cmd.
4722 * record-btrace.c (cmd_set_record_btrace)
4723 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4724 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4725 (cmd_show_record_btrace_pt): Remove.
4726 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4727 add_show_prefix_cmd.
4728 * ravenscar-thread.c (set_ravenscar_command)
4729 (show_ravenscar_command): Remove.
4730 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4731 add_show_prefix_cmd.
4732 * mips-tdep.c (show_mips_command, set_mips_command)
4733 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4734 add_show_prefix_cmd.
4735 * maint.c (maintenance_command, maintenance_info_command)
4736 (maintenance_check_command, maintenance_print_command)
4737 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4738 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4739 add_show_prefix_cmd.
4740 (show_per_command_cmd): Remove.
4741 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4742 Remove.
4743 (maintenance_show_test_settings_cmd): Remove.
4744 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4745 add_show_prefix_cmd.
4746 * maint-test-options.c (maintenance_test_options_command):
4747 Remove.
4748 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4749 * macrocmd.c (macro_command): Remove
4750 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4751 * language.c (set_check, show_check): Remove.
4752 (_initialize_language): Use add_basic_prefix_cmd,
4753 add_show_prefix_cmd.
4754 * infcmd.c (unset_command): Remove.
4755 (_initialize_infcmd): Use add_basic_prefix_cmd.
4756 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4757 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4758 add_show_prefix_cmd.
4759 * go32-nat.c (go32_info_dos_command): Remove.
4760 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4761 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4762 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4763 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4764 (_initialize_frame): Use add_basic_prefix_cmd,
4765 add_show_prefix_cmd.
4766 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4767 (_initialize_dcache): Use add_basic_prefix_cmd,
4768 add_show_prefix_cmd.
4769 * cp-support.c (maint_cplus_command): Remove.
4770 (_initialize_cp_support): Use add_basic_prefix_cmd.
4771 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4772 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4773 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4774 add_basic_prefix_cmd, add_show_prefix_cmd.
4775 * breakpoint.c (save_command): Remove.
4776 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4777 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4778 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4779 add_show_prefix_cmd.
4780 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4781 (set_ada_command, show_ada_command): Remove.
4782 (_initialize_ada_language): Use add_basic_prefix_cmd,
4783 add_show_prefix_cmd.
4784 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4785
3557f442
KR
47862020-04-16 Kamil Rytarowski <n54@gmx.com>
4787
4788 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4789 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4790
16197208
SM
47912020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4792
4793 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4794 warning messages.
4795
00ac85d3
SM
47962020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4797
4798 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4799 import table is not at beginning of .idata section.
4800
381ce63f
PA
48012020-04-16 Pedro Alves <palves@redhat.com>
4802
4803 * inferior.c (delete_inferior): Use delete operator directly
4804 instead of delete_program_space.
4805 * progspace.c (add_program_space): New, factored out from
4806 program_space::program_space.
4807 (remove_program_space): New, factored out from
4808 delete_program_space.
4809 (program_space::program_space): Remove intro comment. Rewrite.
4810 (program_space::~program_space): Remove intro comment. Call
4811 remove_program_space.
4812 (delete_program_space): Delete.
4813 * progspace.h (program_space::program_space): Make explicit. Move
4814 intro comment here, adjusted.
4815 (program_space::~program_space): Move intro comment here,
4816 adjusted.
4817 (delete_program_space): Remove.
4818
a010605f
TT
48192020-04-16 Tom Tromey <tromey@adacore.com>
4820
4821 * windows-nat.c (windows_nat::handle_access_violation): New
4822 function.
4823 * nat/windows-nat.h (handle_access_violation): Declare.
4824 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4825 windows-nat.c. Call handle_access_violation.
4826
efba5c23
TV
48272020-04-16 Tom de Vries <tdevries@suse.de>
4828
4829 PR symtab/25791
4830 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4831 CUs without psymtab.
4832
97ed802d
KB
48332020-04-16 Kevin Buettner <kevinb@redhat.com>
4834
4835 * python/python.c (do_start_initialization): Don't call
4836 PyEval_InitThreads for Python 3.9 and beyond.
4837
c7d64809
KR
48382020-04-15 Kamil Rytarowski <n54@gmx.com>
4839
4840 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4841 thread functions.
4842 (obsd_nat_target::wait): Likewise.
4843
ce127a96
TT
48442020-04-15 Tom Tromey <tromey@adacore.com>
4845
4846 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4847 (DEBUG_EXCEPT): Use debug_printf.
4848
99f1bc6a
AB
48492020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4850
4851 * completer.c (class completion_tracker::completion_hash_entry)
4852 <hash_name>: New member function.
4853 (completion_tracker::discard_completions): New callback to hash a
4854 completion_hash_entry, pass this to htab_create_alloc.
4855
a0e9b532
JT
48562016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4857
4858 * windows-nat.c (windows_make_so): Warn rather than stopping with
4859 an error if realpath() fails.
4860
06ca5dd4
KR
48612020-04-14 Kamil Rytarowski <n54@gmx.com>
4862
4863 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4864 (nbsd_nat_target::info_proc): Add do_status.
4865
194d088f
TV
48662020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4867 Tom de Vries <tdevries@suse.de>
4868
4869 PR symtab/25718
4870 * psympriv.h (struct partial_symtab::read_symtab)
4871 (struct partial_symtab::expand_psymtab)
4872 (struct partial_symtab::read_dependencies): Update comments.
4873 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4874 read_symtab for includer.
4875 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4876 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4877 (struct dwarf2_include_psymtab::m_readin): Remove.
4878 (struct dwarf2_include_psymtab::includer): New member function.
4879 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4880
c1a66c06
TV
48812020-04-14 Tom de Vries <tdevries@suse.de>
4882
4883 PR symtab/25720
4884 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4885 with NULL symbol_matcher and lookup_name.
4886 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4887 and lookup_name.
4888 * dwarf2/read.c (dw2_expand_symtabs_matching)
4889 (dw2_debug_names_expand_symtabs_matching): Same.
4890 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4891 Make lookup_name a pointer. Update comment.
4892 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4893 lookup_name being a pointer.
4894 * symfile.c (expand_symtabs_matching): Same.
4895 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4896 * linespec.c (iterate_over_all_matching_symtabs): Same.
4897
400b5eca
TT
48982020-04-13 Tom Tromey <tom@tromey.com>
4899
4900 * run-on-main-thread.c: Update include.
4901 * unittests/main-thread-selftests.c: Update include.
4902 * tui/tui-win.c: Update include.
4903 * tui/tui-io.c: Update include.
4904 * tui/tui-interp.c: Update include.
4905 * tui/tui-hooks.c: Update include.
4906 * top.h: Update include.
4907 * top.c: Update include.
4908 * ser-base.c: Update include.
4909 * remote.c: Update include.
4910 * remote-notif.c: Update include.
4911 * remote-fileio.c: Update include.
4912 * record-full.c: Update include.
4913 * record-btrace.c: Update include.
4914 * python/python.c: Update include.
4915 * posix-hdep.c: Update include.
4916 * mingw-hdep.c: Update include.
4917 * mi/mi-main.c: Update include.
4918 * mi/mi-interp.c: Update include.
4919 * main.c: Update include.
4920 * linux-nat.c: Update include.
4921 * interps.c: Update include.
4922 * infrun.c: Update include.
4923 * inf-loop.c: Update include.
4924 * event-top.c: Update include.
4925 * event-loop.c: Move to ../gdbsupport/.
4926 * event-loop.h: Move to ../gdbsupport/.
4927 * async-event.h: Update include.
4928 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4929
93b54c8e
TT
49302020-04-13 Tom Tromey <tom@tromey.com>
4931
4932 * tui/tui-win.c: Include async-event.h.
4933 * remote.c: Include async-event.h.
4934 * remote-notif.c: Include async-event.h.
4935 * record-full.c: Include async-event.h.
4936 * record-btrace.c: Include async-event.h.
4937 * infrun.c: Include async-event.h.
4938 * event-top.c: Include async-event.h.
4939 * event-loop.h: Move some declarations to async-event.h.
4940 * event-loop.c: Don't include ser-event.h or top.h. Move some
4941 code to async-event.c.
4942 * async-event.h: New file.
4943 * async-event.c: New file.
4944 * Makefile.in (COMMON_SFILES): Add async-event.c.
4945 (HFILES_NO_SRCDIR): Add async-event.h.
4946
c1cd3163
TT
49472020-04-13 Tom Tromey <tom@tromey.com>
4948
4949 * utils.c (flush_streams): New function.
4950 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4951
29f2bf4f
TT
49522020-04-13 Tom Tromey <tom@tromey.com>
4953
4954 * event-loop.c (handle_file_event): Use warning, not
4955 printf_unfiltered.
4956
98029d02
TT
49572020-04-13 Tom Tromey <tom@tromey.com>
4958
4959 * event-loop.c: Include <chrono>.
4960
06cc9596
TT
49612020-04-13 Tom Tromey <tom@tromey.com>
4962
4963 * gdb_select.h: Move to ../gdbsupport/.
4964 * event-loop.c: Update include path.
4965 * top.c: Update include path.
4966 * ser-base.c: Update include path.
4967 * ui-file.c: Update include path.
4968 * ser-tcp.c: Update include path.
4969 * guile/scm-ports.c: Update include path.
4970 * posix-hdep.c: Update include path.
4971 * ser-unix.c: Update include path.
4972 * gdb_usleep.c: Update include path.
4973 * mingw-hdep.c: Update include path.
4974 * inflow.c: Update include path.
4975 * infrun.c: Update include path.
4976 * event-top.c: Update include path.
4977
8ae8e197
TT
49782020-04-13 Tom Tromey <tom@tromey.com>
4979
4980 * configure: Rebuild.
4981 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
4982
58cf28e8
TT
49832020-04-13 Tom Tromey <tom@tromey.com>
4984
4985 * event-loop.h (start_event_loop): Don't declare.
4986 * event-loop.c (start_event_loop): Move...
4987 * main.c (start_event_loop): ...here. Now static.
4988
b7f999ae
SDJ
49892020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
4990
4991 * MAINTAINERS: Update my email address.
4992
1085dfd4
KR
49932020-04-12 Kamil Rytarowski <n54@gmx.com>
4994
4995 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
4996 IP_ALL.
4997
49d1d1f5
KR
49982020-04-12 Kamil Rytarowski <n54@gmx.com>
4999
5000 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5001 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5002
b4848d2a
KR
50032020-04-12 Kamil Rytarowski <n54@gmx.com>
5004
5005 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5006 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5007
51c133d5
KR
50082020-04-12 Kamil Rytarowski <n54@gmx.com>
5009
5010 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5011
54b8cbd0
KR
50122020-04-11 Kamil Rytarowski <n54@gmx.com>
5013
5014 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5015 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5016 (nbsd_nat_target::info_proc): New functions.
5017 * nbsd-nat.c (kinfo_get_vmmap): New function.
5018 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5019 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5020 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5021 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5022 functions.
5023 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5024 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5025 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5026 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5027 (KINFO_VME_FLAG_GROWS_DOWN): New.
5028
cf83625d
AS
50292020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5030
5031 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5032 bit shift.
5033
0c4311ab
TT
50342020-04-10 Tom Tromey <tromey@adacore.com>
5035
5036 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5037
3e65b3e9
TT
50382020-04-10 Tom Tromey <tromey@adacore.com>
5039
5040 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5041 separate debug files.
5042
13302e95
HD
50432020-04-10 Hannes Domani <ssbssa@yahoo.de>
5044
5045 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5046 Move to...
5047 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5048 ... here.
5049 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5050 Check for STATUS_WX86_BREAKPOINT.
5051 (windows_nat_target::wait): Same.
5052
bdfc1e8a
TV
50532020-04-10 Tom de Vries <tdevries@suse.de>
5054
5055 PR cli/25808
5056 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5057
f4460aec
SM
50582020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5059
5060 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5061 (Write After Approval): Remove Tom de Vries.
5062
a25198bb
BE
50632020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5064
5065 revert partially:
5066 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5067
aac66a4c
SM
5068 * buildsym.c (record_line): Fix undefined behavior and preserve
5069 lines at eof.
a25198bb 5070
206c98a6
KR
50712020-04-09 Kamil Rytarowski <n54@gmx.com>
5072
5073 * auxv.h (svr4_auxv_parse): New.
5074 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5075 and generic_auxv_parse.
5076 (svr4_auxv_parse): Add.
5077 * obsd-tdep.c: Include "auxv.h".
5078 (obsd_auxv_parse): Remove.
5079 (obsd_init_abi): Remove comment.
5080 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5081 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5082 * nbsd-tdep.c: Include "auxv.h".
5083 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5084
71fbdbaf
TT
50852020-04-08 Tom Tromey <tromey@adacore.com>
5086
5087 * nat/windows-nat.h (last_wait_event): Don't declare.
5088 (wait_for_debug_event): Update comment.
5089 * nat/windows-nat.c (last_wait_event): Now static.
5090
2c1d95e8
TT
50912020-04-08 Tom Tromey <tromey@adacore.com>
5092
5093 * windows-nat.c (wait_for_debug_event): Move to
5094 nat/windows-nat.c.
5095 * nat/windows-nat.h (wait_for_debug_event): Declare.
5096 * nat/windows-nat.c (wait_for_debug_event): Move from
5097 windows-nat.c. No longer static.
5098
d2977bc4
TT
50992020-04-08 Tom Tromey <tromey@adacore.com>
5100
5101 * windows-nat.c (get_windows_debug_event): Use
5102 fetch_pending_stop.
5103 * nat/windows-nat.h (fetch_pending_stop): Declare.
5104 * nat/windows-nat.c (fetch_pending_stop): New function.
5105
e758e19c
TT
51062020-04-08 Tom Tromey <tromey@adacore.com>
5107
5108 * windows-nat.c (windows_continue): Use matching_pending_stop and
5109 continue_last_debug_event.
5110 * nat/windows-nat.h (matching_pending_stop)
5111 (continue_last_debug_event): Declare.
5112 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5113 (matching_pending_stop, continue_last_debug_event): New
5114 functions.
5115
8d30e395
TT
51162020-04-08 Tom Tromey <tromey@adacore.com>
5117
5118 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5119 (handle_exception_result): Move to nat/windows-nat.h.
5120 (DEBUG_EXCEPTION_SIMPLE): Remove.
5121 (windows_nat::handle_ms_vc_exception): New function.
5122 (handle_exception): Move to nat/windows-nat.c.
5123 (get_windows_debug_event): Update.
5124 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5125 nat/windows-nat.c.
5126 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5127 (handle_exception_result): Move from windows-nat.c.
5128 (handle_exception): Declare.
5129 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5130 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5131 windows-nat.c.
5132
29de418d
TT
51332020-04-08 Tom Tromey <tromey@adacore.com>
5134
5135 * windows-nat.c (exception_count, event_count): Remove.
5136 (handle_exception, get_windows_debug_event)
5137 (do_initial_windows_stuff): Update.
5138
a816ba18
TT
51392020-04-08 Tom Tromey <tromey@adacore.com>
5140
5141 * windows-nat.c (windows_nat::handle_load_dll)
5142 (windows_nat::handle_unload_dll): Rename. No longer static.
5143 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5144 Declare.
5145
a00caa12
TT
51462020-04-08 Tom Tromey <tromey@adacore.com>
5147
5148 * complaints.h (stop_whining): Declare at top-level.
5149 (complaint): Don't declare stop_whining.
5150
d41b524f
TT
51512020-04-08 Tom Tromey <tromey@adacore.com>
5152
5153 * windows-nat.c (windows_nat::handle_output_debug_string):
5154 Rename. No longer static.
5155 * nat/windows-nat.h (handle_output_debug_string): Declare.
5156
3c76026d
TT
51572020-04-08 Tom Tromey <tromey@adacore.com>
5158
5159 * windows-nat.c (current_process_handle, current_process_id)
5160 (main_thread_id, last_sig, current_event, last_wait_event)
5161 (current_windows_thread, desired_stop_thread_id, pending_stops)
5162 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5163 (display_selectors, fake_create_process)
5164 (get_windows_debug_event): Update.
5165 * nat/windows-nat.h (current_process_handle, current_process_id)
5166 (main_thread_id, last_sig, current_event, last_wait_event)
5167 (current_windows_thread, desired_stop_thread_id, pending_stops)
5168 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5169 * nat/windows-nat.c (current_process_handle, current_process_id)
5170 (main_thread_id, last_sig, current_event, last_wait_event)
5171 (current_windows_thread, desired_stop_thread_id, pending_stops)
5172 (siginfo_er): New globals. Move from windows-nat.c.
5173
9d8679cc
TT
51742020-04-08 Tom Tromey <tromey@adacore.com>
5175
5176 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5177 (handle_load_dll): Update.
5178 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5179
28688adf
TT
51802020-04-08 Tom Tromey <tromey@adacore.com>
5181
5182 * windows-nat.c (enum thread_disposition_type): Move to
5183 nat/windows-nat.h.
5184 (windows_nat::thread_rec): Rename from thread_rec. No longer
5185 static.
5186 (windows_add_thread, windows_nat_target::fetch_registers)
5187 (windows_nat_target::store_registers, handle_exception)
5188 (windows_nat_target::resume, get_windows_debug_event)
5189 (windows_nat_target::get_tib_address)
5190 (windows_nat_target::thread_name)
5191 (windows_nat_target::thread_alive): Update.
5192 * nat/windows-nat.h (enum thread_disposition_type): Move from
5193 windows-nat.c.
5194 (thread_rec): Declare.
5195
4834dad0
TT
51962020-04-08 Tom Tromey <tromey@adacore.com>
5197
5198 * windows-nat.c: Add "using namespace".
5199 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5200 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5201
65bafd5b
TT
52022020-04-08 Tom Tromey <tromey@adacore.com>
5203
5204 * nat/windows-nat.h (struct windows_thread_info): Declare
5205 destructor.
5206 * nat/windows-nat.c (~windows_thread_info): New.
5207
0a4afda3
TT
52082020-04-08 Tom Tromey <tromey@adacore.com>
5209
5210 PR gdb/22992
5211 * windows-nat.c (current_event): Update comment.
5212 (last_wait_event, desired_stop_thread_id): New globals.
5213 (struct pending_stop): New.
5214 (pending_stops): New global.
5215 (windows_nat_target) <stopped_by_sw_breakpoint>
5216 <supports_stopped_by_sw_breakpoint>: New methods.
5217 (windows_fetch_one_register): Add assertions. Adjust PC.
5218 (windows_continue): Handle pending stops. Suspend other threads
5219 when stepping. Use last_wait_event
5220 (wait_for_debug_event): New function.
5221 (get_windows_debug_event): Use wait_for_debug_event. Handle
5222 pending stops. Queue spurious stops.
5223 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5224 (windows_nat_target::kill): Use wait_for_debug_event.
5225 * nat/windows-nat.h (struct windows_thread_info)
5226 <stopped_at_software_breakpoint>: New field.
5227 * nat/windows-nat.c (windows_thread_info::resume): Clear
5228 stopped_at_software_breakpoint.
5229
8e61ebec
TT
52302020-04-08 Tom Tromey <tromey@adacore.com>
5231
5232 * windows-nat.c (enum thread_disposition_type): New.
5233 (thread_rec): Replace "get_context" parameter with "disposition";
5234 change type.
5235 (windows_add_thread, windows_nat_target::fetch_registers)
5236 (windows_nat_target::store_registers, handle_exception)
5237 (windows_nat_target::resume, get_windows_debug_event)
5238 (windows_nat_target::get_tib_address)
5239 (windows_nat_target::thread_name)
5240 (windows_nat_target::thread_alive): Update.
5241
98a03287
TT
52422020-04-08 Tom Tromey <tromey@adacore.com>
5243
5244 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5245 (windows_continue): Use windows_continue::resume.
5246 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5247 resume>: Declare new methods.
5248 * nat/windows-nat.c: New file.
5249 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5250
7c7411bc
TT
52512020-04-08 Tom Tromey <tromey@adacore.com>
5252
5253 * windows-nat.c (windows_add_thread, windows_delete_thread)
5254 (windows_nat_target::fetch_registers)
5255 (windows_nat_target::store_registers, fake_create_process)
5256 (windows_nat_target::resume, windows_nat_target::resume)
5257 (get_windows_debug_event, windows_nat_target::wait)
5258 (windows_nat_target::pid_to_str)
5259 (windows_nat_target::get_tib_address)
5260 (windows_nat_target::get_ada_task_ptid)
5261 (windows_nat_target::thread_name)
5262 (windows_nat_target::thread_alive): Use lwp, not tid.
5263
2950fdf7
TT
52642020-04-08 Tom Tromey <tromey@adacore.com>
5265
5266 * windows-nat.c (handle_exception)
5267 (windows_nat_target::thread_name): Update.
5268 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5269 <name>: Now unique_xmalloc_ptr.
5270
62fe396b
TT
52712020-04-08 Tom Tromey <tromey@adacore.com>
5272
5273 * windows-nat.c (thread_rec)
5274 (windows_nat_target::fetch_registers): Update.
5275 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5276 Update comment.
5277 <debug_registers_changed, reload_context>: Now bool.
5278
e9534bd2
TT
52792020-04-08 Tom Tromey <tromey@adacore.com>
5280
5281 * windows-nat.c (windows_add_thread): Use new.
5282 (windows_init_thread_list, windows_delete_thread): Use delete.
5283 (get_windows_debug_event): Update.
5284 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5285 destructor, and initializers.
5286
ae1f8880
TT
52872020-04-08 Tom Tromey <tromey@adacore.com>
5288
5289 * windows-nat.c (struct windows_thread_info): Remove.
5290 * nat/windows-nat.h: New file.
5291
55a1e039
TT
52922020-04-08 Tom Tromey <tromey@adacore.com>
5293
5294 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5295 (thread_rec, windows_add_thread, windows_delete_thread)
5296 (windows_continue): Update.
5297
93366324
TT
52982020-04-08 Tom Tromey <tromey@adacore.com>
5299
5300 * windows-nat.c (struct windows_thread_info): Remove typedef.
5301 (thread_head): Remove.
5302 (thread_list): New global.
5303 (thread_rec, windows_add_thread, windows_init_thread_list)
5304 (windows_delete_thread, windows_continue): Update.
5305
0f2265e2
SM
53062020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5307
5308 * windows-tdep.h (windows_init_abi): Add comment.
5309 (cygwin_init_abi): New declaration.
5310 * windows-tdep.c: Split signal enumeration in two, one for
5311 Windows and one for Cygwin.
5312 (windows_gdb_signal_to_target): Only deal with signal of the
5313 Windows OS ABI.
5314 (cygwin_gdb_signal_to_target): New function.
5315 (windows_init_abi): Rename to windows_init_abi_common, don't set
5316 gdb_signal_to_target gdbarch method. Add new new function with
5317 this name.
5318 (cygwin_init_abi): New function.
5319 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5320 comment. Don't call windows_init_abi.
5321 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5322 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5323 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5324 i386_windows_init_abi_common, don't call windows_init_abi. Add
5325 a new function of this name.
5326 (i386_cygwin_init_abi): New function.
5327 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5328 OS ABI Cygwin.
5329
3810f182
SM
53302020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5331
5332 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5333 parameter.c.
5334 (dwarf2_read_gdb_index): Update.
5335
063f8e80
KR
53362020-04-07 Kamil Rytarowski <n54@gmx.com>
5337
5338 * nbsd-tdep.c: Include "objfiles.h".
5339 (nbsd_skip_solib_resolver): New.
5340 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5341
85a9510c 53422020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5343
5344 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5345 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5346 with DW_LLE_base_addressx are being emitted in DWARFv5.
5347 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5348 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5349 unsigned integer.
5350
9fc3eaae 53512020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5352
5353 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5354 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5355 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5356 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5357 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5358 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5359 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5360
5361
41144253 53622020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5363
5364 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5365 (read_loclist_index): New function definition.
5366 (lookup_loclist_base): New function definition.
5367 (read_loclist_header): New function definition.
5368 (dwarf2_cu): Add loclist_base and loclist_header field.
5369 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5370 (read_full_die_1): Read the value of DW_AT_loclists_base.
5371 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5372 (read_attribute_value): Handle DW_FORM_loclistx.
5373 (skip_one_die): Handle DW_FORM_loclistx.
5374 (loclist_header): New structure declaration.
5375 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5376
9f4e76a4
SM
53772020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5378
5379 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5380 constructor. Remove `addr` parameter from other constructor and
5381 add `per_cu` parameter.
5382 * dwarf2/read.c (create_partial_symtab): Update.
5383
25c11aca
TV
53842020-04-07 Tom de Vries <tdevries@suse.de>
5385
5386 PR symtab/25796
5387 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5388 (partial_die_info::fixup): Inherit has_const_value.
5389
5707e24b
TV
53902020-04-07 Tom de Vries <tdevries@suse.de>
5391
5392 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5393 symbols without address.
5394
05f00e22
KR
53952020-04-06 Kamil Rytarowski <n54@gmx.com>
5396
5397 * nbsd-nat.h (struct thread_info): Add forward declaration.
5398 (nbsd_nat_target::thread_alive): Add.
5399 (nbsd_nat_target::thread_name): Likewise.
5400 (nbsd_nat_target::update_thread_list): Likewise.
5401 (update_thread_list::post_attach): Likewise.
5402 (post_attach::pid_to_str): Likewise.
5403 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5404 (nbsd_thread_lister): Add.
5405 (nbsd_nat_target::thread_alive): Likewise.
5406 (nbsd_nat_target::thread_name): Likewise.
5407 (nbsd_add_threads): Likewise.
5408 (update_thread_list::post_attach): Likewise.
5409 (nbsd_nat_target::update_thread_list): Likewise.
5410 (post_attach::pid_to_str): Likewise.
5411
6ee448cc
TT
54122020-04-06 Tom Tromey <tromey@adacore.com>
5413
5414 * ada-valprint.c (print_variant_part): Extract the variant field.
5415 (print_field_values): Use the field as the outer value when
5416 recursing.
5417
dea34e8c
TT
54182020-04-06 Tom Tromey <tromey@adacore.com>
5419
5420 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5421 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5422 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5423 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5424 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5425
93689ce9
TT
54262020-04-06 Tom Tromey <tromey@adacore.com>
5427
5428 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5429 TYPE_CODE_ERROR.
5430
79743962
KR
54312020-04-06 Kamil Rytarowski <n54@gmx.com>
5432
5433 * nbsd-tdep.c: Include "gdbarch.h".
5434 Define enum with NetBSD signal numbers.
5435 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5436 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5437 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5438 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5439 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5440 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5441 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5442 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5443 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5444 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5445 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5446 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5447
9e7c9a03
HD
54482020-04-03 Hannes Domani <ssbssa@yahoo.de>
5449
5450 PR gdb/25325
5451 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5452
d9e49b61
TT
54532020-04-03 Tom Tromey <tromey@adacore.com>
5454
5455 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5456 Read constant block.
5457
e0fc5c3f
SM
54582020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5459
5460 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5461 (gdb_bfd_get_full_section_contents): New declaration.
5462 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5463 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5464 gdb_bfd_get_full_section_contents.
5465
e2ff18a0
SM
54662020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5467
5468 * exec.c (build_section_table): Replace internal_error with
5469 gdb_assert.
5470 (section_table_xfer_memory_partial): Likewise.
5471 * mdebugread.c (parse_partial_symbols): Likewise.
5472 * psymtab.c (lookup_partial_symbol): Likewise.
5473 * utils.c (wrap_here): Likewise.
5474
0830d301
TT
54752020-04-02 Tom Tromey <tromey@adacore.com>
5476
5477 * f-lang.c (build_fortran_types): Use arch_type to initialize
5478 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5479
e7da7f8f
TT
54802020-04-02 Tom Tromey <tromey@adacore.com>
5481
5482 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5483 of attributes.
5484
c90d28ac
AB
54852020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5486 Bernd Edlinger <bernd.edlinger@hotmail.de>
5487 Tom Tromey <tromey@adacore.com>
5488
5489 * buildsym.c (buildsym_compunit::record_line): Remove
5490 deduplication code.
5491
1aa98955
TV
54922020-04-02 Tom de Vries <tdevries@suse.de>
5493
5494 PR ada/24671
5495 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5496
d3214198
TV
54972020-04-02 Tom de Vries <tdevries@suse.de>
5498
5499 * dwarf2/read.c (dwarf2_gdb_index_functions,
5500 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5501 NULL.
5502 * psymtab.c (psym_lookup_global_symbol_language): New function.
5503 (psym_functions): Init psym_lookup_global_symbol_language with
5504 psym_lookup_global_symbol_language.
5505 * symfile-debug.c (debug_sym_quick_functions): Init
5506 lookup_global_symbol_language with NULL.
5507 * symfile.c (set_initial_language): Remove fixme comment.
5508 * symfile.h (struct quick_symbol_functions): Add
5509 lookup_global_symbol_language.
5510 * symtab.c (find_quick_global_symbol_language): New function.
5511 (find_main_name): Use find_quick_global_symbol_language.
5512
2836752f
SM
55132020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5514
5515 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5516
64dc2d4b
BE
55172020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5518
5519 * buildsym.c (record_line): Fix undefined behavior and preserve
5520 lines at eof.
5521
bbe3dc41
BE
55222020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5523
5524 * buildsym.c (record_line): Fix the resizing condition.
5525
6b4a335b
TT
55262020-04-01 Tom Tromey <tom@tromey.com>
5527
5528 * value.h (value_literal_complex): Add comment.
5529 * valops.c (value_literal_complex): Refer to value.h.
5530
3638a098
TT
55312020-04-01 Tom Tromey <tom@tromey.com>
5532
5533 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5534 (scalar_type): New rule, from typebase.
5535 (typebase): Use scalar_type. Recognize complex types.
5536 (field_name): Handle FLOAT_KEYWORD.
5537 (ident_tokens): Add _Complex and __complex__.
5538
c34e8714
TT
55392020-04-01 Tom Tromey <tom@tromey.com>
5540
5541 PR exp/25299:
5542 * valarith.c (promotion_type, complex_binop): New functions.
5543 (scalar_binop): Handle complex numbers. Use promotion_type.
5544 (value_pos, value_neg, value_complement): Handle complex numbers.
5545
fa649bb7
TT
55462020-04-01 Tom Tromey <tom@tromey.com>
5547
5548 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5549 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5550 (parse_number): Handle complex numbers.
5551
981c08ce
TT
55522020-04-01 Tom Tromey <tom@tromey.com>
5553
5554 * c-valprint.c (c_decorations): Change complex suffix to "i".
5555
4c99290d
TT
55562020-04-01 Tom Tromey <tom@tromey.com>
5557
5558 * valprint.c (generic_value_print_complex): Use accessors.
5559 * value.h (value_real_part, value_imaginary_part): Declare.
5560 * valops.c (value_real_part, value_imaginary_part): New
5561 functions.
5562 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5563
5b930b45
TT
55642020-04-01 Tom Tromey <tom@tromey.com>
5565
5566 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5567 (read_range_type): Update.
5568 * mdebugread.c (basic_type): Update.
5569 * go-lang.c (build_go_types): Use init_complex_type.
5570 * gdbtypes.h (struct main_type) <complex_type>: New member.
5571 (init_complex_type): Update.
5572 (arch_complex_type): Don't declare.
5573 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5574 Make name if none given. Use alloc_type_copy. Look for cached
5575 complex type.
5576 (arch_complex_type): Remove.
5577 (gdbtypes_post_init): Use init_complex_type.
5578 * f-lang.c (build_fortran_types): Use init_complex_type.
5579 * dwarf2/read.c (read_base_type): Update.
5580 * d-lang.c (build_d_types): Use init_complex_type.
5581 * ctfread.c (read_base_type): Update.
5582
53cccef1
TBA
55832020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5584
5585 * infrun.c (stop_all_threads): Update assertion, plus when
5586 stopping threads, take into account that we might be trying
5587 to stop an all-stop target.
5588 (stop_waiting): Call 'stop_all_threads' if there exists a
5589 non-stop target.
5590
a0714d30
TBA
55912020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5592
5593 * target.h (exists_non_stop_target): New function declaration.
5594 * target.c (exists_non_stop_target): New function.
5595
60e22c1e
HD
55962020-04-01 Hannes Domani <ssbssa@yahoo.de>
5597
5598 PR gdb/24789
5599 * eval.c (is_integral_or_integral_reference): New function.
5600 (evaluate_subexp_standard): Allow integer references in
5601 pointer arithmetic.
5602
e139a727
TBA
56032020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5604
5605 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5606 check for no ptid in the stop reply when the target is non-stop.
5607
e0802d59
TT
56082020-04-01 Tom Tromey <tromey@adacore.com>
5609
5610 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5611 "name" parameter to rvalue reference. Initialize m_name_holder.
5612 <lookup_name_info>: New overloads.
5613 <name>: Return gdb::string_view.
5614 <c_str>: New method.
5615 <make_ignore_params>: Update.
5616 <search_name_hash>: Update.
5617 <language_lookup_name>: Return const char *.
5618 <m_name>: Change type.
5619 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5620 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5621 (lookup_name_info::match_any): Update.
5622 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5623 Update.
5624 * minsyms.c (linkage_name_str): Update.
5625 * language.c (default_symbol_name_matcher): Update.
5626 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5627 Update.
5628 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5629 (ada_lookup_name_info::ada_lookup_name_info): Update.
5630 (literal_symbol_name_matcher): Update.
5631
8c072cb6
TT
56322020-04-01 Tom Tromey <tromey@adacore.com>
5633
5634 * psymtab.c (psymtab_search_name): Remove function.
5635 (psym_lookup_symbol): Create search name and lookup name here.
5636 (lookup_partial_symbol): Remove "name" parameter; add
5637 lookup_name.
5638 (psym_expand_symtabs_for_function): Update.
5639
6f29a534
TT
56402020-03-31 Joel Jones <joelkevinjones@gmail.com>
5641
5642 PR tui/25597:
5643 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5644
af62665e
TT
56452020-03-31 Tom Tromey <tromey@adacore.com>
5646
5647 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5648 memcpy.
5649
d1a89da5
NC
56502020-03-30 Nelson Chu <nelson.chu@sifive.com>
5651
5652 * features/riscv/32bit-csr.xml: Regenerated.
5653 * features/riscv/64bit-csr.xml: Regenerated.
5654
d8af9068
TT
56552020-03-30 Tom Tromey <tromey@adacore.com>
5656
5657 * ada-valprint.c (print_variant_part): Update.
5658 * ada-lang.h (ada_which_variant_applies): Update.
5659 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5660 outer_valaddr parameters; replace with "outer" value parameter.
5661 (to_fixed_variant_branch_type): Update.
5662
227c0bf4
PFC
56632020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5664
5665 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5666 <list>. Remove inclusion of observable.h.
5667 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5668 (struct arch_lwp_info): New struct.
5669 (class ppc_linux_dreg_interface): New class.
5670 (struct ppc_linux_process_info): New struct.
5671 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5672 <low_new_clone, low_forget_process, low_prepare_to_resume>
5673 <copy_thread_dreg_state, mark_thread_stale>
5674 <mark_debug_registers_changed, register_hw_breakpoint>
5675 <clear_hw_breakpoint, register_wp, clear_wp>
5676 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5677 <num_memory_accesses, get_trigger_type>
5678 <create_watchpoint_request, hwdebug_point_cmp>
5679 <init_arch_lwp_info, get_arch_lwp_info>
5680 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5681 methods.
5682 <struct ptid_hash>: New inner struct.
5683 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5684 members.
5685 (saved_dabr_value, hwdebug_info, max_slots_number)
5686 (struct hw_break_tuple, struct thread_points, ppc_threads)
5687 (have_ptrace_hwdebug_interface)
5688 (hwdebug_find_thread_points_by_tid)
5689 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5690 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5691 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5692 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5693 use m_dreg_interface.
5694 (hwdebug_point_cmp): Change to...
5695 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5696 reference arguments instead of pointers.
5697 (ppc_linux_nat_target::ranged_break_num_registers): Use
5698 m_dreg_interface.
5699 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5700 m_dreg_interface. Call register_hw_breakpoint.
5701 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5702 m_dreg_interface. Call clear_hw_breakpoint.
5703 (get_trigger_type): Change to...
5704 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5705 comment.
5706 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5707 use m_dreg_interface. Call register_hw_breakpoint.
5708 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5709 use m_dreg_interface. Call clear_hw_breakpoint.
5710 (can_use_watchpoint_cond_accel): Change to...
5711 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5712 method. Update comment, use m_dreg_interface and
5713 m_process_info.
5714 (calculate_dvc): Change to...
5715 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5716 m_dreg_interface.
5717 (num_memory_accesses): Change to...
5718 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5719 (check_condition): Change to...
5720 (ppc_linux_nat_target::check_condition): ...this method.
5721 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5722 comment, use m_dreg_interface.
5723 (create_watchpoint_request): Change to...
5724 (ppc_linux_nat_target::create_watchpoint_request): ...this
5725 method. Use m_dreg_interface.
5726 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5727 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5728 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5729 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5730 (ppc_linux_nat_target::low_forget_process)
5731 (ppc_linux_nat_target::low_new_fork)
5732 (ppc_linux_nat_target::low_new_clone)
5733 (ppc_linux_nat_target::low_delete_thread)
5734 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5735 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5736 only call mark_thread_stale.
5737 (ppc_linux_thread_exit): Remove.
5738 (ppc_linux_nat_target::stopped_data_address): Change to...
5739 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5740 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5741 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5742 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5743 comment. Call low_stopped_data_address.
5744 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5745 m_dreg_interface.
5746 (ppc_linux_nat_target::masked_watch_num_registers): Use
5747 m_dreg_interface.
5748 (ppc_linux_nat_target::copy_thread_dreg_state)
5749 (ppc_linux_nat_target::mark_thread_stale)
5750 (ppc_linux_nat_target::mark_debug_registers_changed)
5751 (ppc_linux_nat_target::register_hw_breakpoint)
5752 (ppc_linux_nat_target::clear_hw_breakpoint)
5753 (ppc_linux_nat_target::register_wp)
5754 (ppc_linux_nat_target::clear_wp)
5755 (ppc_linux_nat_target::init_arch_lwp_info)
5756 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5757 (_initialize_ppc_linux_nat): Remove observer callback.
5758
4db10d8f
PFC
57592020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5760
5761 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5762 (ppc_linux_nat_target::auxv_parse)
5763 (ppc_linux_nat_target::read_description)
5764 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5765 Move up.
5766
1310c1b0
PFC
57672020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5768
5769 * linux-nat.h (low_new_clone): New method.
5770 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5771
69b037c3
SM
57722020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5773
5774 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5775 (dbx_expand_psymtab): ... this.
5776 (start_psymtab): Update.
5777 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5778 (mdebug_expand_psymtab): ... this.
5779 (parse_partial_symbols): Update.
5780 (new_psymtab): Update.
5781 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5782 (xcoff_expand_psymtab): ... this.
5783 (xcoff_start_psymtab): Update.
5784
48993951
SM
57852020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5786
5787 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5788 <expand_dependencies>: ... this.
5789 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5790 (partial_symtab::expand_dependencies): ... this.
5791 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5792 Update.
5793 (dwarf2_psymtab::expand_psymtab): Update.
5794 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5795 * mdebugread.c (psymtab_to_symtab_1): Update.
5796 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5797
3ad83046
SM
57982020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5799
5800 * psympriv.h (discard_psymtab): Remove.
5801 * dbxread.c (dbx_end_psymtab): Update.
5802 * xcoffread.c (xcoff_end_psymtab): Update.
5803
4d1b9ab6
TT
58042020-03-28 Tom Tromey <tom@tromey.com>
5805
5806 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5807 comment.
5808
f1749218
TT
58092020-03-28 Tom Tromey <tom@tromey.com>
5810
5811 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5812
ebea7626
HD
58132020-03-27 Hannes Domani <ssbssa@yahoo.de>
5814
5815 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5816
a879b4d5
JB
58172020-03-26 John Baldwin <jhb@FreeBSD.org>
5818
5819 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5820
0826b30a
TT
58212020-03-26 Tom Tromey <tom@tromey.com>
5822
5823 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5824 (mark_common_block_symbol_computed, read_tag_string_type)
5825 (attr_to_dynamic_prop, read_subrange_type): Update.
5826 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5827 to be methods on struct attribute.
5828 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5829 (read_call_site_scope, partial_die_info::read)
5830 (partial_die_info::read, lookup_die_type, follow_die_ref):
5831 Update.
5832 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5833 from dwarf2_get_ref_die_offset.
5834 (attribute::constant_value): New method, from
5835 dwarf2_get_attr_constant_value.
5836 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5837 Declare method.
5838 <constant_value>: New method.
5839
2b2558bf
TT
58402020-03-26 Tom Tromey <tom@tromey.com>
5841
5842 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5843 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5844 (dwarf_type_encoding_name): Move to stringify.c.
5845 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5846 * dwarf2/stringify.c: New file.
5847 * dwarf2/stringify.h: New file.
5848
eeb64781
TT
58492020-03-26 Tom Tromey <tom@tromey.com>
5850
5851 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5852 Rewrite.
5853
a39fdb41
TT
58542020-03-26 Tom Tromey <tom@tromey.com>
5855
5856 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5857 methods.
5858 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5859 (lookup_ranges_base): Likewise.
5860 (read_cutu_die_from_dwo, read_full_die_1): Update.
5861
436c571c
TT
58622020-03-26 Tom Tromey <tom@tromey.com>
5863
5864 * dwarf2/read.c (read_import_statement, read_file_scope)
5865 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5866 (read_lexical_block_scope, read_call_site_scope)
5867 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5868 (handle_struct_member_die, process_structure_scope)
5869 (update_enumeration_type_from_children)
5870 (process_enumeration_scope, read_array_type, read_common_block)
5871 (read_namespace, read_module, read_subroutine_type): Update.
5872 (sibling_die): Remove.
5873
052c8bb8
TT
58742020-03-26 Tom Tromey <tom@tromey.com>
5875
5876 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5877 (build_type_psymtabs_reader, read_structure_type)
5878 (read_enumeration_type, read_full_die_1): Update.
5879 (dwarf2_attr_no_follow): Move to die.h.
5880 * dwarf2/die.h (struct die_info) <attr>: New method.
5881
2b24b6e4
TT
58822020-03-26 Tom Tromey <tom@tromey.com>
5883
5884 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5885 <base_address>: Now an optional.
5886 (dwarf2_find_base_address, dwarf2_rnglists_process)
5887 (dwarf2_ranges_process, fill_in_loclist_baton)
5888 (dwarf2_symbol_mark_computed): Update.
5889
c2d50fd0
TT
58902020-03-26 Tom Tromey <tom@tromey.com>
5891
5892 * dwarf2/read.c (struct die_info): Move to die.h.
5893 * dwarf2/die.h: New file.
5894
0df7ad3a
TT
58952020-03-26 Tom Tromey <tom@tromey.com>
5896
5897 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5898 * dwarf2/read.c
5899 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5900 Move to line-header.c.
5901 (read_checked_initial_length_and_offset, read_formatted_entries):
5902 Likewise.
5903 (dwarf_decode_line_header): Split into two.
5904 * dwarf2/line-header.c
5905 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5906 Move from read.c.
5907 (read_checked_initial_length_and_offset, read_formatted_entries):
5908 Likewise.
5909 (dwarf_decode_line_header): New function, split from read.c.
5910
86c0bb4c
TT
59112020-03-26 Tom Tromey <tom@tromey.com>
5912
5913 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5914 Declare method.
5915 * dwarf2/read.c (read_attribute_value): Update.
5916 (dwarf2_per_objfile::read_line_string): Rename from
5917 read_indirect_line_string.
5918 (read_formatted_entries): Update.
5919
2ef46c2f
TT
59202020-03-26 Tom Tromey <tom@tromey.com>
5921
5922 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5923 variable.
5924
4f9c1eda
TT
59252020-03-26 Tom Tromey <tom@tromey.com>
5926
5927 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5928 const.
5929 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5930 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5931 parameter const.
5932
5a0e026f
TT
59332020-03-26 Tom Tromey <tom@tromey.com>
5934
5935 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5936 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5937 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5938 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5939
8844c11b
TT
59402020-03-26 Tom Tromey <tom@tromey.com>
5941
5942 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5943 file_names_size, file_full_name, file_file_name>: Use const.
5944 <file_name_at, file_names>: Add const overload.
5945 * dwarf2/line-header.c (line_header::file_file_name)
5946 (line_header::file_full_name): Update.
5947
c90ec28a
TT
59482020-03-26 Tom Tromey <tom@tromey.com>
5949
5950 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5951 (macro_start_file, consume_improper_spaces)
5952 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5953 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5954 (dwarf_decode_macros): Move to macro.c.
5955 * dwarf2/macro.c: New file.
5956 * dwarf2/macro.h: New file.
5957 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5958
4f44ae6c
TT
59592020-03-26 Tom Tromey <tom@tromey.com>
5960
5961 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5962 method.
5963 * dwarf2/section.c: New method. From
5964 read_indirect_string_at_offset_from.
5965 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5966 (read_indirect_string_at_offset_from): Move to section.c.
5967 (read_indirect_string_at_offset): Rewrite.
5968 (read_indirect_line_string_at_offset): Remove.
5969 (read_indirect_string, read_indirect_line_string)
5970 (dwarf_decode_macro_bytes): Update.
5971
a0194fa8
TT
59722020-03-26 Tom Tromey <tom@tromey.com>
5973
5974 * dwarf2/section.h (struct dwarf2_section_info)
5975 <overload_complaint>: Declare.
5976 (dwarf2_section_buffer_overflow_complaint): Don't declare.
5977 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
5978 Rename from dwarf2_section_buffer_overflow_complaint.
5979 * dwarf2/read.c (skip_one_die, partial_die_info::read)
5980 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
5981
3d27bbdb
TT
59822020-03-26 Tom Tromey <tom@tromey.com>
5983
5984 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
5985 Declare.
5986 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
5987 Move from read.c.
5988 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
5989 to section.c.
5990
9eac9650
TT
59912020-03-26 Tom Tromey <tom@tromey.com>
5992
5993 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
5994
bf80d710
TT
59952020-03-26 Tom Tromey <tom@tromey.com>
5996
5997 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
5998 "builder".
5999 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6000 parameter.
6001 (dwarf_decode_macros): Update.
6002
0314b390
TT
60032020-03-26 Tom Tromey <tom@tromey.com>
6004
6005 * dwarf2/read.c (read_attribute_value): Update.
6006 (read_indirect_string_from_dwz): Move to dwz.c; change into
6007 method.
6008 (dwarf_decode_macro_bytes): Update.
6009 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6010 * dwarf2/dwz.c: New file.
6011 * Makefile.in (COMMON_SFILES): Add dwz.c.
6012
9fda78b6
TT
60132020-03-26 Tom Tromey <tom@tromey.com>
6014
6015 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6016 * dwarf2/read.c: Add include.
6017 * dwarf2/index-write.c: Add include.
6018 * dwarf2/index-cache.c: Add include.
6019 * dwarf2/dwz.h: New file.
6020
33aa3c10
TT
60212020-03-25 Tom Tromey <tom@tromey.com>
6022
6023 * compile/compile-object-load.c (get_out_value_type): Mention
6024 correct symbol name in error message.
6025
d503b685
HD
60262020-03-25 Hannes Domani <ssbssa@yahoo.de>
6027
6028 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6029
7b1eff95
TV
60302020-03-25 Tom de Vries <tdevries@suse.de>
6031
6032 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6033 * symmisc.c (dump_symtab_1): Print user and includes fields.
6034 (maintenance_info_symtabs): Same.
6035
dd895392
AB
60362020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6037
6038 PR gdb/25534
6039 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6040 (riscv_regcache_cooked_write): New function.
6041 (riscv_push_dummy_call): Use new function.
6042 (riscv_return_value): Likewise.
6043
5ab2fbf1
SM
60442020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6045
6046 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6047 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6048 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6049 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6050 * infrun.c (follow_fork): Likewise.
6051 (follow_fork_inferior): Likewise.
6052 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6053 * linux-nat.h (class linux_nat_target): Likewise.
6054 * remote.c (class remote_target) <follow_fork>: Likewise.
6055 (remote_target::follow_fork): Likewise.
6056 * target-delegates.c: Re-generate.
6057 * target.c (default_follow_fork): Likewise.
6058 (target_follow_fork): Likewise.
6059 * target.h (struct target_ops) <follow_fork>: Likewise.
6060 (target_follow_fork): Likewise.
6061
a64fafb5
TV
60622020-03-24 Tom de Vries <tdevries@suse.de>
6063
6064 * psymtab.c (maintenance_info_psymtabs): Print user field.
6065
fe26d3a3
TT
60662020-03-20 Tom Tromey <tromey@adacore.com>
6067
6068 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6069 const.
6070 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6071 const.
6072
c884cc46
SM
60732020-03-20 Simon Marchi <simon.marchi@efficios.com>
6074
6075 * ptrace.m4: Don't check for ptrace declaration.
6076 * config.in: Re-generate.
6077 * configure: Re-generate.
6078 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6079 not defined.
6080
1ff700c2
KR
60812020-03-20 Kamil Rytarowski <n54@gmx.com>
6082
6083 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6084 `PTRACE_TYPE_RET'.
6085 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6086 * sparc-nat.c (gdb_ptrace): Likewise.
6087 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6088
f7d4f0b1
TT
60892020-03-20 Tom Tromey <tromey@adacore.com>
6090
6091 * c-exp.y (lex_one_token): Fix assert.
6092
f67210ff
TT
60932020-03-20 Tom Tromey <tromey@adacore.com>
6094
6095 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6096 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6097 strncpy call.
6098
1773be9e
TT
60992020-03-20 Tom Tromey <tromey@adacore.com>
6100
6101 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6102
70304be9
TT
61032020-03-20 Tom Tromey <tromey@adacore.com>
6104
6105 * ada-valprint.c (print_variant_part): Remove parameters; switch
6106 to value-based API.
6107 (print_field_values): Likewise.
6108 (ada_val_print_struct_union): Likewise.
6109 (ada_value_print_1): Update.
6110
9faa006d
KR
61112020-03-20 Kamil Rytarowski <n54@gmx.com>
6112
6113 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6114 nbsd_nat_target instead of inf_ptrace_target.
6115 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6116 nbsd_nat_target.
6117
4a90f062
KR
61182020-03-20 Kamil Rytarowski <n54@gmx.com>
6119
6120 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6121 it to the ptrace call.
6122 * (store_registers): Likewise.
6123
61242020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6125
6126 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6127 it to the ptrace call.
6128 * (store_registers): Likewise.
6129
2d07da27
LM
61302020-03-19 Luis Machado <luis.machado@linaro.org>
6131
6132 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6133 valid, fetch vg value from ptrace.
6134
f09db380
KR
61352020-03-19 Kamil Rytarowski <n54@gmx.com>
6136 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6137 * inf-ptrace.c: Likewise.
6138 * (gdb_ptrace): Add.
6139 * (inf_ptrace_target::resume): Update.
6140 * (inf_ptrace_target::xfer_partial): Likewise.
6141 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6142 * (inf_ptrace_peek_poke): Update.
6143
fcc7376e
KR
61442020-03-19 Kamil Rytarowski <n54@gmx.com>
6145
6146 * x86-bsd-nat.c (gdb_ptrace): New.
6147 * (x86bsd_dr_set): Add new argument `ptid'.
6148 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6149 x86bsd_dr_set_addr): Update.
6150
cada5fc9
AB
61512020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6152
6153 * remote.c (remote_target::process_stop_reply): Handle events for
6154 all threads differently.
6155
19a2740f
AB
61562020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6157
6158 * completer.c (completion_tracker::remove_completion): Define new
6159 function.
6160 * completer.h (completion_tracker::remove_completion): Declare new
6161 function.
6162 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6163 when adding a C++ function symbol.
6164
724fd9ba
AB
61652020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6166
6167 * completer.c (completion_tracker::completion_hash_entry): Define
6168 new class.
6169 (advance_to_filename_complete_word_point): Call
6170 recompute_lowest_common_denominator.
6171 (completion_tracker::completion_tracker): Call discard_completions
6172 to setup the hash table.
6173 (completion_tracker::discard_completions): Allow for being called
6174 from the constructor, pass new equal function, and element deleter
6175 when constructing the hash table. Initialise new class member
6176 variables.
6177 (completion_tracker::maybe_add_completion): Remove use of
6178 m_entries_vec, and store more information into m_entries_hash.
6179 (completion_tracker::recompute_lcd_visitor): New function, most
6180 content taken from...
6181 (completion_tracker::recompute_lowest_common_denominator):
6182 ...here, this now just visits each item in the hash calling the
6183 above visitor.
6184 (completion_tracker::build_completion_result): Remove use of
6185 m_entries_vec, call recompute_lowest_common_denominator.
6186 * completer.h (completion_tracker::have_completions): Remove use
6187 of m_entries_vec.
6188 (completion_tracker::completion_hash_entry): Declare new class.
6189 (completion_tracker::recompute_lowest_common_denominator): Change
6190 function signature.
6191 (completion_tracker::recompute_lcd_visitor): Declare new function.
6192 (completion_tracker::m_entries_vec): Delete.
6193 (completion_tracker::m_entries_hash): Initialize to NULL.
6194 (completion_tracker::m_lowest_common_denominator_valid): New
6195 member variable.
6196 (completion_tracker::m_lowest_common_denominator_max_length): New
6197 member variable.
6198
5a82b8a1
KR
61992020-03-17 Kamil Rytarowski <n54@gmx.com>
6200
6201 * regformats/regdef.h: Put reg in gdb namespace.
6202
fb516a69
KR
62032020-03-17 Kamil Rytarowski <n54@gmx.com>
6204
6205 * i386-bsd-nat.c (gdb_ptrace): New.
6206 * (i386bsd_fetch_inferior_registers,
6207 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6208 * (i386bsd_fetch_inferior_registers,
6209 i386bsd_store_inferior_registers) Use gdb_ptrace.
6210
1c0aa1fb
KR
62112020-03-17 Kamil Rytarowski <n54@gmx.com>
6212
6213 * amd64-bsd-nat.c (gdb_ptrace): New.
6214 * (amd64bsd_fetch_inferior_registers,
6215 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6216 * (amd64bsd_fetch_inferior_registers,
6217 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6218
5ccd2fb7
KR
62192020-03-17 Kamil Rytarowski <n54@gmx.com>
6220
6221 * user-regs.c (user_reg::read): Rename to...
6222 (user_reg::xread): ...this.
6223 * (append_user_reg): Rename argument `read' to `xread'.
6224 * (user_reg_add_builtin): Likewise.
6225 * (user_reg_add): Likewise.
6226 * (value_of_user_reg): Likewise.
6227
2108a63a
KR
62282020-03-17 Kamil Rytarowski <n54@gmx.com>
6229
6230 * sparc-nat.c (gdb_ptrace): New.
6231 * sparc-nat.c (sparc_fetch_inferior_registers)
6232 (sparc_store_inferior_registers) Remove obsolete comment.
6233 * sparc-nat.c (sparc_fetch_inferior_registers)
6234 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6235 * sparc-nat.c (sparc_fetch_inferior_registers)
6236 (sparc_store_inferior_registers) Use gdb_ptrace.
6237
a225c9a8
KR
62382020-03-17 Kamil Rytarowski <n54@gmx.com>
6239
6240 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6241 it to the ptrace call.
6242 * sh-nbsd-nat.c (store_registers): Likewise.
6243
98097623
KR
62442020-03-17 Kamil Rytarowski <n54@gmx.com>
6245
6246 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6247 nbsd_nat_target instead of inf_ptrace_target.
6248 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6249 nbsd_nat_target.
6250
9e38d619
KR
62512020-03-17 Kamil Rytarowski <n54@gmx.com>
6252
6253 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6254
a2ecbe9f
KR
62552020-03-17 Kamil Rytarowski <n54@gmx.com>
6256
6257 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6258 <sys/sysctl.h>.
6259 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6260
58990295
TV
62612020-03-17 Tom de Vries <tdevries@suse.de>
6262
6263 PR gdb/23710
6264 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6265 fields.
6266 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6267 fields.
6268 (process_imported_unit_die): Skip import of c++ CUs.
6269
771dd3a8
TT
62702020-03-16 Tom Tromey <tom@tromey.com>
6271
6272 * p-valprint.c (pascal_object_print_value): Initialize
6273 base_value.
6274
817a7585
AK
62752020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6276 Shahab Vahedi <shahab@synopsys.com>
6277
6278 * Makefile.in: Add arch/arc.o
6279 * configure.tgt: Likewise.
6280 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6281 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6282 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6283 * arc-tdep.h (arc_read_description): Add proto type.
6284 * arch/arc.c: New file.
6285 * arch/arc.h: Likewise.
6286 * features/Makefile: Replace old target descriptions with new.
6287 * features/arc-arcompact.c: Remove.
6288 * features/arc-arcompact.xml: Likewise.
6289 * features/arc-v2.c: Likewise
6290 * features/arc-v2.xml: Likewise
6291 * features/arc/aux-arcompact.xml: New file.
6292 * features/arc/aux-v2.xml: Likewise.
6293 * features/arc/core-arcompact.xml: Likewise.
6294 * features/arc/core-v2.xml: Likewise.
6295 * features/arc/aux-arcompact.c: Generate.
6296 * features/arc/aux-v2.c: Likewise.
6297 * features/arc/core-arcompact.c: Likewise.
6298 * features/arc/core-v2.c: Likewise.
6299 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6300
67430cd0
TT
63012020-03-16 Tom Tromey <tromey@adacore.com>
6302
6303 PR gdb/25663:
6304 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6305 putting value into bcache.
6306
30efb6c7
SM
63072020-03-16 Simon Marchi <simon.marchi@efficios.com>
6308
6309 PR gdb/21500
6310 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6311 to...
6312 (amd64_windows_init_abi_common): ... this. Don't set size of
6313 long type.
6314 (amd64_windows_init_abi): New function.
6315 (amd64_cygwin_init_abi): New function.
6316 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6317 the Cygwin OS ABI.
6318 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6319 comment.
6320
8db52437
SM
63212020-03-16 Simon Marchi <simon.marchi@efficios.com>
6322
6323 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6324 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6325 (pe_import_directory_entry): New struct type.
6326 (is_linked_with_cygwin_dll): New function.
6327 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6328 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6329 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6330
5982a56a
SM
63312020-03-16 Simon Marchi <simon.marchi@efficios.com>
6332
6333 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6334 i386_cygwin_core_osabi_sniffer.
6335
7a1998df
SM
63362020-03-16 Simon Marchi <simon.marchi@efficios.com>
6337
6338 * i386-cygwin-tdep.c: Rename to...
6339 * i386-windows-tdep.c: ... this.
6340 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6341 i386-windows-tdep.c.
6342 * configure.tgt: Likewise.
6343
053205cc
SM
63442020-03-16 Simon Marchi <simon.marchi@efficios.com>
6345
6346 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6347 * osabi.c (gdb_osabi_names): Add "Windows".
6348 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6349 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6350 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6351 i386_cygwin_osabi_sniffer.
6352 (_initialize_i386_cygwin_tdep): Register OS ABI
6353 GDB_OSABI_WINDOWS for i386.
6354 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6355 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6356 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6357 for x86-64.
6358 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6359 when the target matches '*-*-mingw*'.
6360
fe4b2ee6
SM
63612020-03-16 Simon Marchi <simon.marchi@efficios.com>
6362
6363 * defs.h (enum gdb_osabi): Move to...
6364 * osabi.h (enum gdb_osabi): ... here.
6365 * gdbarch.sh: Include osabi.h in gdbarch.h.
6366 * gdbarch.h: Re-generate.
6367
cb9b645d
SM
63682020-03-16 Simon Marchi <simon.marchi@efficios.com>
6369
6370 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6371 function.
6372 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6373
3293bbaf
TT
63742020-03-14 Tom Tromey <tom@tromey.com>
6375
6376 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6377 for C++.
6378 (c_type_print_modifier): Likewise. Add "language" parameter.
6379 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6380 (c_type_print_base_1): Update.
6381 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6382 constants.
6383 * type-stack.c (type_stack::insert): Handle tp_atomic and
6384 tp_restrict.
6385 (type_stack::follow_type_instance_flags): Likewise.
6386 (type_stack::follow_types): Likewise. Merge type-following code.
6387 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6388 (space_identifier, cv_with_space_id)
6389 (const_or_volatile_or_space_identifier_noopt)
6390 (const_or_volatile_or_space_identifier): Remove.
6391 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6392 rules.
6393 (ptr_operator, typebase): Update.
6394 (enum token_flag) <FLAG_C>: New constant.
6395 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6396 "_Atomic".
6397 (lex_one_token): Handle FLAG_C.
6398
154151a6
KR
63992020-03-14 Kamil Rytarowski <n54@gmx.com>
6400
6401 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6402 it to the ptrace call.
6403 * m68k-bsd-nat.c (store_registers): Likewise.
6404
bc107784
KR
64052020-03-14 Kamil Rytarowski <n54@gmx.com>
6406
6407 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6408 gdb_byte *.
6409 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6410 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6411 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6412
01a80117
KR
64132020-03-14 Kamil Rytarowski <n54@gmx.com>
6414
6415 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6416 nbsd_nat_target instead of inf_ptrace_target.
6417 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6418 nbsd_nat_target.
6419
f90280ca
KR
64202020-03-14 Kamil Rytarowski <n54@gmx.com>
6421
6422 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6423 register_t.
6424
6def66f1
KR
64252020-03-14 Kamil Rytarowski <n54@gmx.com>
6426
6427 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6428 it to the ptrace call.
6429 * alpha-bsd-nat.c (store_registers): Likewise.
6430
66eaca97
KR
64312020-03-14 Kamil Rytarowski <n54@gmx.com>
6432
6433 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6434 includes.
6435 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6436 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6437 fill_fpregset): Likewise.
6438
4fed520b
KR
64392020-03-14 Kamil Rytarowski <n54@gmx.com>
6440
6441 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6442 nbsd_nat_target instead of inf_ptrace_target.
6443 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6444 nbsd_nat_target.
6445
2190cf06
KR
64462020-03-14 Kamil Rytarowski <n54@gmx.com>
6447
6448 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6449 register_t.
6450
75c56d3d
KR
64512020-03-14 Kamil Rytarowski <n54@gmx.com>
6452
6453 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6454 it to the ptrace call.
6455 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6456 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6457 * arm-nbsd-nat.c (store_register): Likewise.
6458 * arm-nbsd-nat.c (store_regs): Likewise.
6459 * arm-nbsd-nat.c (store_fp_register): Likewise.
6460 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6461
6018d381
KR
64622020-03-14 Kamil Rytarowski <n54@gmx.com>
6463
6464 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6465 nbsd_nat_target instead of inf_ptrace_target.
6466 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6467 nbsd_nat_target.
6468
013f99f0
KR
64692020-03-14 Kamil Rytarowski <n54@gmx.com>
6470
6471 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6472 it to the ptrace call.
6473 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6474
12753073
KR
64752020-03-14 Kamil Rytarowski <n54@gmx.com>
6476
6227b330
KR
6477 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6478 it to the ptrace call.
6479 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6480
64812020-03-14 Kamil Rytarowski <n54@gmx.com>
6482
6483 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6484 gdb_byte *.
12753073
KR
6485 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6486
d5be5fa4
KR
64872020-03-14 Kamil Rytarowski <n54@gmx.com>
6488
6489 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6490 instead of inf_ptrace_target.
6491 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6492 nbsd_nat_target.
6493
8110f842
KR
64942020-03-14 Kamil Rytarowski <n54@gmx.com>
6495
6496 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6497 register_t.
6498
52feded7
KR
64992020-03-14 Kamil Rytarowski <n54@gmx.com>
6500
6501 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6502 register_t.
6503
25567eee
KR
65042020-03-14 Kamil Rytarowski <n54@gmx.com>
6505
6506 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6507 register_t.
6508
426a9c18
TT
65092020-03-13 Tom Tromey <tom@tromey.com>
6510
6511 * value.h (val_print): Don't declare.
6512 * valprint.h (val_print_array_elements)
6513 (val_print_scalar_formatted, generic_val_print): Don't declare.
6514 * valprint.c (generic_val_print_array): Take a struct value.
6515 (generic_val_print_ptr, generic_val_print_memberptr)
6516 (generic_val_print_bool, generic_val_print_int)
6517 (generic_val_print_char, generic_val_print_complex)
6518 (generic_val_print): Remove.
6519 (generic_value_print): Update.
6520 (do_val_print): Remove unused parameters. Don't call
6521 la_val_print.
6522 (val_print): Remove.
6523 (common_val_print): Update. Don't call value_check_printable.
6524 (val_print_scalar_formatted, val_print_array_elements): Remove.
6525 * rust-lang.c (rust_val_print): Remove.
6526 (rust_language_defn): Update.
6527 * p-valprint.c (pascal_val_print): Remove.
6528 (pascal_value_print_inner): Update.
6529 (pascal_object_print_val_fields, pascal_object_print_val):
6530 Remove.
6531 (pascal_object_print_static_field): Update.
6532 * p-lang.h (pascal_val_print): Don't declare.
6533 * p-lang.c (pascal_language_defn): Update.
6534 * opencl-lang.c (opencl_language_defn): Update.
6535 * objc-lang.c (objc_language_defn): Update.
6536 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6537 * m2-lang.h (m2_val_print): Don't declare.
6538 * m2-lang.c (m2_language_defn): Update.
6539 * language.h (struct language_defn) <la_val_print>: Remove.
6540 * language.c (unk_lang_value_print_inner): Rename. Change
6541 argument types.
6542 (unknown_language_defn, auto_language_defn): Update.
6543 * go-valprint.c (go_val_print): Remove.
6544 * go-lang.h (go_val_print): Don't declare.
6545 * go-lang.c (go_language_defn): Update.
6546 * f-valprint.c (f_val_print): Remove.
6547 * f-lang.h (f_value_print): Don't declare.
6548 * f-lang.c (f_language_defn): Update.
6549 * d-valprint.c (d_val_print): Remove.
6550 * d-lang.h (d_value_print): Don't declare.
6551 * d-lang.c (d_language_defn): Update.
6552 * cp-valprint.c (cp_print_value_fields)
6553 (cp_print_value_fields_rtti, cp_print_value): Remove.
6554 (cp_print_static_field): Update.
6555 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6556 (c_val_print_struct, c_val_print_union, c_val_print_int)
6557 (c_val_print_memberptr, c_val_print): Remove.
6558 * c-lang.h (c_val_print_array, cp_print_value_fields)
6559 (cp_print_value_fields_rtti): Don't declare.
6560 * c-lang.c (c_language_defn, cplus_language_defn)
6561 (asm_language_defn, minimal_language_defn): Update.
6562 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6563 (ada_val_print_enum): Take a struct value.
6564 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6565 (ada_val_print): Remove.
6566 (ada_value_print_1): Update.
6567 (printable_val_type): Remove.
6568 * ada-lang.h (ada_val_print): Don't declare.
6569 * ada-lang.c (ada_language_defn): Update.
6570
42331a1e
TT
65712020-03-13 Tom Tromey <tom@tromey.com>
6572
6573 * valprint.c (do_val_print): Update.
6574 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6575 a struct value.
6576 (value_to_value_object_no_release): Declare.
6577 * python/py-value.c (value_to_value_object_no_release): New
6578 function.
6579 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6580 struct value.
6581 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6582 function.
6583 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6584 a struct value.
6585 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6586 Declare.
6587 (gdbscm_apply_val_pretty_printer): Take a struct value.
6588 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6589 value.
6590 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6591 value.
6592 * extension-priv.h (struct extension_language_ops)
6593 <apply_val_pretty_printer>: Take a struct value.
6594 * cp-valprint.c (cp_print_value): Create a struct value.
6595 (cp_print_value): Update.
6596
3a916a97
TT
65972020-03-13 Tom Tromey <tom@tromey.com>
6598
6599 * ada-valprint.c (print_field_values): Call common_val_print.
6600
b59eac37
TT
66012020-03-13 Tom Tromey <tom@tromey.com>
6602
6603 * ada-valprint.c (val_print_packed_array_elements): Remove
6604 bitoffset and val parameters. Call common_val_print.
6605 (ada_val_print_string): Remove offset, address, and original_value
6606 parameters.
6607 (ada_val_print_array): Update.
6608 (ada_value_print_array): New function.
6609 (ada_value_print_1): Call it.
6610
03371129
TT
66112020-03-13 Tom Tromey <tom@tromey.com>
6612
6613 * ada-valprint.c (ada_value_print): Use common_val_print.
6614
2e088f8b
TT
66152020-03-13 Tom Tromey <tom@tromey.com>
6616
6617 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6618
39ef85a8
TT
66192020-03-13 Tom Tromey <tom@tromey.com>
6620
6621 * ada-valprint.c (ada_value_print_num): New function.
6622 (ada_value_print_1): Use it.
6623
b9fa6e07
TT
66242020-03-13 Tom Tromey <tom@tromey.com>
6625
6626 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6627
416595d6
TT
66282020-03-13 Tom Tromey <tom@tromey.com>
6629
6630 * ada-valprint.c (ada_value_print_ptr): New function.
6631 (ada_value_print_1): Use it.
6632
5b5e15ec
TT
66332020-03-13 Tom Tromey <tom@tromey.com>
6634
6635 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6636 call common_val_print.
6637 (ada_val_print_1): Update.
6638 (ada_value_print_1): New function.
6639 (ada_value_print_inner): Rewrite.
6640
fbf54e75
TT
66412020-03-13 Tom Tromey <tom@tromey.com>
6642
6643 * cp-valprint.c (cp_print_value_fields): Update.
6644 (cp_print_value): New function.
6645
64b653ca
TT
66462020-03-13 Tom Tromey <tom@tromey.com>
6647
6648 * m2-valprint.c (m2_value_print_inner): Use
6649 cp_print_value_fields.
6650 * cp-valprint.c (cp_print_value_fields): New function.
6651 * c-valprint.c (c_value_print_struct): New function.
6652 (c_value_print_inner): Use c_value_print_struct.
6653 * c-lang.h (cp_print_value_fields): Declare.
6654
6999f067
TT
66552020-03-13 Tom Tromey <tom@tromey.com>
6656
6657 * c-valprint.c (c_value_print_array): New function.
6658 (c_value_print_inner): Use it.
6659
ce80b8bd
TT
66602020-03-13 Tom Tromey <tom@tromey.com>
6661
6662 * c-valprint.c (c_value_print_memberptr): New function.
6663 (c_value_print_inner): Use it.
6664
2faac269
TT
66652020-03-13 Tom Tromey <tom@tromey.com>
6666
6667 * c-valprint.c (c_value_print_int): New function.
6668 (c_value_print_inner): Use it.
6669
da3e2c29
TT
66702020-03-13 Tom Tromey <tom@tromey.com>
6671
6672 * c-valprint.c (c_value_print_ptr): New function.
6673 (c_value_print_inner): Use it.
6674
50836231
TT
66752020-03-13 Tom Tromey <tom@tromey.com>
6676
6677 * c-valprint.c (c_value_print_inner): Rewrite.
6678
4f412b6e
TT
66792020-03-13 Tom Tromey <tom@tromey.com>
6680
6681 * valprint.c (generic_value_print_complex): New function.
6682 (generic_value_print): Use it.
6683
f5354008
TT
66842020-03-13 Tom Tromey <tom@tromey.com>
6685
6686 * valprint.c (generic_val_print_float): Don't call
6687 val_print_scalar_formatted.
6688 (generic_val_print, generic_value_print): Update.
6689
3eec3b05
TT
66902020-03-13 Tom Tromey <tom@tromey.com>
6691
6692 * valprint.c (generic_value_print_char): New function
6693 (generic_value_print): Use it.
6694
fdddfccb
TT
66952020-03-13 Tom Tromey <tom@tromey.com>
6696
6697 * valprint.c (generic_value_print_int): New function.
6698 (generic_value_print): Use it.
6699
6dde7521
TT
67002020-03-13 Tom Tromey <tom@tromey.com>
6701
6702 * valprint.c (generic_value_print_bool): New function.
6703 (generic_value_print): Use it.
6704
4112d2e6
TT
67052020-03-13 Tom Tromey <tom@tromey.com>
6706
6707 * valprint.c (generic_val_print_func): Simplify.
6708 (generic_val_print, generic_value_print): Update.
6709
65786af6
TT
67102020-03-13 Tom Tromey <tom@tromey.com>
6711
6712 * valprint.c (generic_val_print_flags): Remove.
6713 (generic_val_print, generic_value_print): Update.
6714 (val_print_type_code_flags): Add original_value parameter.
6715
40f3ce18
TT
67162020-03-13 Tom Tromey <tom@tromey.com>
6717
6718 * valprint.c (generic_val_print): Update.
6719 (generic_value_print): Update.
6720 * valprint.c (generic_val_print_enum): Don't call
6721 val_print_scalar_formatted.
6722
2a5b130b
TT
67232020-03-13 Tom Tromey <tom@tromey.com>
6724
6725 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6726 * valprint.c (generic_value_print_ptr): New function.
6727
abc66ce9
TT
67282020-03-13 Tom Tromey <tom@tromey.com>
6729
6730 * valprint.c (generic_value_print): Rewrite.
6731
07a32858
TT
67322020-03-13 Tom Tromey <tom@tromey.com>
6733
6734 * p-valprint.c (pascal_object_print_value_fields)
6735 (pascal_object_print_value): New functions.
6736
64d64d3a
TT
67372020-03-13 Tom Tromey <tom@tromey.com>
6738
6739 * p-valprint.c (pascal_value_print_inner): Rewrite.
6740
6a95a1f5
TT
67412020-03-13 Tom Tromey <tom@tromey.com>
6742
6743 * f-valprint.c (f_value_print_innner): Rewrite.
6744
59fcdac6
TT
67452020-03-13 Tom Tromey <tom@tromey.com>
6746
6747 * m2-valprint.c (m2_print_unbounded_array): New overload.
6748 (m2_print_unbounded_array): Update.
6749 (m2_print_array_contents): Take a struct value.
6750 (m2_value_print_inner): Rewrite.
6751
d133c3e1
TT
67522020-03-13 Tom Tromey <tom@tromey.com>
6753
6754 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6755 (d_value_print_inner): New function.
6756 * d-lang.h (d_value_print_inner): Declare.
6757 * d-lang.c (d_language_defn): Use d_value_print_inner.
6758
23b0f06b
TT
67592020-03-13 Tom Tromey <tom@tromey.com>
6760
6761 * go-valprint.c (go_value_print_inner): New function.
6762 * go-lang.h (go_value_print_inner): Declare.
6763 * go-lang.c (go_language_defn): Use go_value_print_inner.
6764
5f56f7cb
TT
67652020-03-13 Tom Tromey <tom@tromey.com>
6766
6767 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6768 API.
6769 (rust_val_print): Rewrite.
6770 (rust_value_print_inner): New function, from rust_val_print.
6771 (rust_language_defn): Use rust_value_print_inner.
6772
26792ee0
TT
67732020-03-13 Tom Tromey <tom@tromey.com>
6774
6775 * ada-valprint.c (ada_value_print_inner): New function.
6776 * ada-lang.h (ada_value_print_inner): Declare.
6777 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6778
24051bbe
TT
67792020-03-13 Tom Tromey <tom@tromey.com>
6780
6781 * f-valprint.c (f_value_print_innner): New function.
6782 * f-lang.h (f_value_print_innner): Declare.
6783 * f-lang.c (f_language_defn): Use f_value_print_innner.
6784
c0941be6
TT
67852020-03-13 Tom Tromey <tom@tromey.com>
6786
6787 * p-valprint.c (pascal_value_print_inner): New function.
6788 * p-lang.h (pascal_value_print_inner): Declare.
6789 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6790
62c4663d
TT
67912020-03-13 Tom Tromey <tom@tromey.com>
6792
6793 * m2-valprint.c (m2_value_print_inner): New function.
6794 * m2-lang.h (m2_value_print_inner): Declare.
6795 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6796
62182190
TT
67972020-03-13 Tom Tromey <tom@tromey.com>
6798
6799 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6800 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6801 * c-valprint.c (c_value_print_inner): New function.
6802 * c-lang.h (c_value_print_inner): Declare.
6803 * c-lang.c (c_language_defn, cplus_language_defn)
6804 (asm_language_defn, minimal_language_defn): Use
6805 c_value_print_inner.
6806
1e592a8a
TT
68072020-03-13 Tom Tromey <tom@tromey.com>
6808
6809 * p-valprint.c (pascal_object_print_value_fields): Now static.
6810 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6811
7fe471e9
TT
68122020-03-13 Tom Tromey <tom@tromey.com>
6813
6814 * c-valprint.c (c_val_print_array): Simplify.
6815
d121c6ce
TT
68162020-03-13 Tom Tromey <tom@tromey.com>
6817
6818 * valprint.c (value_print_array_elements): New function.
6819 * valprint.h (value_print_array_elements): Declare.
6820
4dba70ee
TT
68212020-03-13 Tom Tromey <tom@tromey.com>
6822
6823 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6824 * mips-tdep.c (mips_print_register): Use
6825 value_print_scalar_formatted.
6826
4f9ae810
TT
68272020-03-13 Tom Tromey <tom@tromey.com>
6828
6829 * valprint.h (value_print_scalar_formatted): Declare.
6830 * valprint.c (value_print_scalar_formatted): New function.
6831
156bfec9
TT
68322020-03-13 Tom Tromey <tom@tromey.com>
6833
6834 * valprint.h (generic_value_print): Declare.
6835 * valprint.c (generic_value_print): New function.
6836
2b4e573d
TT
68372020-03-13 Tom Tromey <tom@tromey.com>
6838
6839 * valprint.c (do_val_print): Call la_value_print_inner, if
6840 available.
6841 * rust-lang.c (rust_language_defn): Update.
6842 * p-lang.c (pascal_language_defn): Update.
6843 * opencl-lang.c (opencl_language_defn): Update.
6844 * objc-lang.c (objc_language_defn): Update.
6845 * m2-lang.c (m2_language_defn): Update.
6846 * language.h (struct language_defn) <la_value_print_inner>: New
6847 member.
6848 * language.c (unknown_language_defn, auto_language_defn): Update.
6849 * go-lang.c (go_language_defn): Update.
6850 * f-lang.c (f_language_defn): Update.
6851 * d-lang.c (d_language_defn): Update.
6852 * c-lang.c (c_language_defn, cplus_language_defn)
6853 (asm_language_defn, minimal_language_defn): Update.
6854 * ada-lang.c (ada_language_defn): Update.
6855
a1f6a07c
TT
68562020-03-13 Tom Tromey <tom@tromey.com>
6857
6858 * c-valprint.c (c_value_print): Use common_val_print.
6859
410cf315
TT
68602020-03-13 Tom Tromey <tom@tromey.com>
6861
6862 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6863
72a45c93
TT
68642020-03-13 Tom Tromey <tom@tromey.com>
6865
6866 * f-valprint.c (f77_print_array_1, f_val_print): Use
6867 common_val_print.
6868
040f66bd
TT
68692020-03-13 Tom Tromey <tom@tromey.com>
6870
6871 * riscv-tdep.c (riscv_print_one_register_info): Use
6872 common_val_print.
6873
a6e05a6c
TT
68742020-03-13 Tom Tromey <tom@tromey.com>
6875
6876 * mi/mi-main.c (output_register): Use common_val_print.
6877
3444c526
TT
68782020-03-13 Tom Tromey <tom@tromey.com>
6879
6880 * infcmd.c (default_print_one_register_info): Use
6881 common_val_print.
6882
c2a44efe
TT
68832020-03-13 Tom Tromey <tom@tromey.com>
6884
6885 * valprint.h (common_val_print_checked): Declare.
6886 * valprint.c (common_val_print_checked): New function.
6887 * stack.c (print_frame_arg): Use common_val_print_checked.
6888
b0c26e99
TT
68892020-03-13 Tom Tromey <tom@tromey.com>
6890
6891 * valprint.c (do_val_print): New function, from val_print.
6892 (val_print): Use do_val_print.
6893 (common_val_print): Use do_val_print.
6894
ce3acbe9
TT
68952020-03-13 Tom Tromey <tom@tromey.com>
6896
6897 * valprint.c (value_print): Use scoped_value_mark.
6898
96c7f873
TV
68992020-03-13 Tom de Vries <tdevries@suse.de>
6900
6901 PR symtab/25646
6902 * psymtab.c (partial_symtab::partial_symtab): Don't set
6903 globals_offset and statics_offset. Push element onto
6904 current_global_psymbols and current_static_psymbols stacks.
6905 (concat): New function.
6906 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6907 element from current_global_psymbols and current_static_psymbols
6908 stacks. Concat popped elements to global_psymbols and
6909 static_symbols.
6910 (add_psymbol_to_list): Use current_global_psymbols and
6911 current_static_psymbols stacks.
6912 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6913 current_static_psymbols fields.
6914
6ba0a321
CB
69152020-03-12 Christian Biesinger <cbiesinger@google.com>
6916
6917 * corelow.c (sniff_core_bfd): Remove.
6918 (class core_target) <m_core_vec>: Remove.
6919 (core_target::core_target): Update.
6920 (core_file_fns): Remove.
6921 (deprecated_add_core_fns): Remove.
6922 (default_core_sniffer): Remove.
6923 (sniff_core_bfd): Remove.
6924 (default_check_format): Remove.
6925 (gdb_check_format): Remove.
6926 (core_target_open): Update.
6927 (core_target::get_core_register_section): Update.
6928 (get_core_registers_cb): Update.
6929 (core_target::fetch_registers): Update.
6930 * gdbcore.h (struct core_fns): Remove.
6931 (deprecated_add_core_fns): Remove.
6932 (default_core_sniffer): Remove.
6933 (default_check_format): Remove.
6934
227031b2
TT
69352020-03-12 Tom Tromey <tom@tromey.com>
6936
6937 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6938 CORE_ADDR.
6939 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6940
53807e9f
TT
69412020-03-12 Tom Tromey <tom@tromey.com>
6942
6943 * remote.c (remote_target::download_tracepoint)
6944 (remote_target::enable_tracepoint)
6945 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6946 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6947 sprintf_vma.
6948
64f25102
TT
69492020-03-12 Tom Tromey <tom@tromey.com>
6950
6951 * symfile-mem.c: Update CORE_ADDR size assert.
6952
272cd5a3
SM
69532020-03-12 Simon Marchi <simon.marchi@efficios.com>
6954
6955 * selftest.m4: Move to gdbsupport/.
6956 * acinclude.m4: Update path to selftest.m4.
6957
74cd3f9d
SM
69582020-03-12 Simon Marchi <simon.marchi@efficios.com>
6959
6960 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6961 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6962 gdbarch-selfselftests.c and selftest-arch.c.
6963 (SUBDIR_UNITTESTS_OBS): Rename to...
6964 (SELFTESTS_OBS): ... this.
6965 (COMMON_SFILES): Remove disasm-selftests.c and
6966 gdbarch-selftests.c.
6967 * configure.ac: Don't add selftest-arch.{c,o} to
6968 CONFIG_{SRCS,OBS}.
6969 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
6970 preprocessor conditions.
6971
db6878ac
SM
69722020-03-12 Simon Marchi <simon.marchi@efficios.com>
6973
6974 * configure.ac: Don't source bfd/development.sh.
6975 * selftest.m4: Modify comment.
6976 * configure: Re-generate.
6977
4d696a5c
SM
69782020-03-12 Simon Marchi <simon.marchi@efficios.com>
6979
6980 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
6981 not "true" or "false".
6982 * configure: Re-generate.
6983
8dd8e1c7
CB
69842020-03-12 Christian Biesinger <cbiesinger@google.com>
6985
6986 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
6987 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
6988 renamed to arm_nbsd_supply_gregset.
6989 (fetch_register): Update to call arm_nbsd_supply_gregset.
6990 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
6991 (arm_netbsd_nat_target::fetch_registers): Update.
6992 (fetch_elfcore_registers): Removed.
6993 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
6994 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
6995 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
6996 not require NetBSD system headers.
6997 (arm_nbsd_regset): New struct.
6998 (arm_nbsd_iterate_over_regset_sections): New function.
6999 (arm_netbsd_init_abi_common): Updated to call
7000 set_gdbarch_iterate_over_regset_sections.
7001 * arm-nbsd-tdep.h: New file.
7002
dd69bf7a
KB
70032020-03-11 Kevin Buettner <kevinb@redhat.com>
7004
7005 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7006 recursion.
7007
a0761e34
SM
70082020-03-11 Simon Marchi <simon.marchi@efficios.com>
7009
7010 * configure: Re-generate.
7011
e7a82140
TT
70122020-03-11 Tom Tromey <tromey@adacore.com>
7013
7014 * ada-typeprint.c (print_choices): Fix comment.
7015
dcc050c8
AB
70162020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7017
7018 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7019 previous item in the list, when the list has no items.
7020
1c33af77
TV
70212020-03-11 Tom de Vries <tdevries@suse.de>
7022
7023 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7024 PROP_LOCLIST handling code.
7025
8c95582d
AB
70262020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7027
7028 * buildsym-legacy.c (record_line): Pass extra parameter to
7029 record_line.
7030 * buildsym.c (buildsym_compunit::record_line): Take an extra
7031 parameter, reduce duplication in the line table, and record the
7032 is_stmt flag in the line table.
7033 * buildsym.h (buildsym_compunit::record_line): Add extra
7034 parameter.
7035 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7036 non-statement lines.
7037 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7038 this to the symtab builder.
7039 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7040 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7041 through to dwarf_record_line_1.
7042 * infrun.c (process_event_stop_test): When stepping, don't stop at
7043 a non-statement instruction, and only refresh the step info when
7044 we land in the middle of a line's range. Also add an extra
7045 comment.
7046 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7047 field.
7048 * record-btrace.c (btrace_find_line_range): Only record lines
7049 marked as is-statement.
7050 * stack.c (frame_show_address): Show the frame address if we are
7051 in a non-statement sal.
7052 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7053 (maintenance_print_one_line_table): Print a header for the is_stmt
7054 column, and include is_stmt information in the output.
7055 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7056 preference to non-statements.
7057 (find_pcs_for_symtab_line): Prefer is-statement entries.
7058 (find_line_common): Likewise.
7059 * symtab.h (struct linetable_entry): Add is_stmt field.
7060 (struct symtab_and_line): Likewise.
7061 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7062 arranging the line table.
7063
e4003a34
TV
70642020-03-07 Tom de Vries <tdevries@suse.de>
7065
7066 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7067 DIE.
7068
e8932576
TT
70692020-03-07 Tom Tromey <tom@tromey.com>
7070
7071 * valops.c (value_literal_complex): Remove obsolete comment.
7072 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7073 comment.
7074
29734269
SM
70752020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7076
7077 * infrun.h: Forward-declare thread_info.
7078 (set_step_info): Add thread_info parameter, add doc.
7079 * infrun.c (set_step_info): Add thread_info parameter, move doc
7080 to header.
7081 * infrun.c (process_event_stop_test): Pass thread to
7082 set_step_info call.
7083 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7084 set_step_info.
7085 (prepare_one_step): Add thread_info parameter, pass it to
7086 set_step_frame and prepare_one_step (recursive) call.
7087 (step_1): Pass thread to prepare_one_step call.
7088 (step_command_fsm::should_stop): Pass thread to
7089 prepare_one_step.
7090 (until_next_fsm): Pass thread to set_step_frame call.
7091 (finish_command): Pass thread to set_step_info call.
7092
b7d64b29
HD
70932020-03-06 Hannes Domani <ssbssa@yahoo.de>
7094
7095 * windows-tdep.c (windows_solib_create_inferior_hook):
7096 Check if inferior is running.
7097
09f2921c
TV
70982020-03-06 Tom de Vries <tdevries@suse.de>
7099
7100 * NEWS: Fix "the the".
7101 * ctfread.c: Same.
7102
fd760e79
TV
71032020-03-06 Tom de Vries <tdevries@suse.de>
7104
7105 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7106
20ea4a60
AB
71072020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7108
7109 * .dir-locals.el: Add a comment referencing the other copies of
7110 this file.
7111
0afbabf0
JB
71122020-03-05 John Baldwin <jhb@FreeBSD.org>
7113
7114 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7115 psargs.
7116
842806cb
TBA
71172020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7118
7119 * .gitattributes: New file.
7120
be1e3d3e
TT
71212020-03-04 Tom Tromey <tom@tromey.com>
7122
7123 * symmisc.c (print_symbol_bcache_statistics)
7124 (print_objfile_statistics): Update.
7125 * symfile.c (allocate_symtab): Use intern.
7126 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7127 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7128 macro_cache>: Remove.
7129 <string_cache>: New member.
7130 (struct objfile) <intern>: New methods.
7131 * elfread.c (elf_symtab_read): Use intern.
7132 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7133 (dwarf2_compute_name, dwarf2_physname)
7134 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7135 names.
7136 (guess_partial_die_structure_name): Update.
7137 (partial_die_info::fixup): Intern name.
7138 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7139 name.
7140 (dwarf2_name): Intern name. Update.
7141 * buildsym.c (buildsym_compunit::get_macro_table): Use
7142 string_cache.
7143
4e7625fd
TT
71442020-03-04 Tom Tromey <tom@tromey.com>
7145
7146 * jit.c (bfd_open_from_target_memory): Make "target" const.
7147 * corefile.c (gnutarget): Now const.
7148 * gdbcore.h (gnutarget): Now const.
7149
46f9f931
HD
71502020-03-04 Hannes Domani <ssbssa@yahoo.de>
7151
7152 * NEWS: Mention support for WOW64 processes.
7153 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7154 (amd64_windows_segment_register_p): Remove static.
7155 (_initialize_amd64_windows_nat): Update.
7156 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7157 * i386-windows-nat.c (context_offset): Update.
7158 (i386_mappings): Rename and remove static.
7159 (i386_windows_segment_register_p): Remove static.
7160 (_initialize_i386_windows_nat): Update.
7161 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7162 (STATUS_WX86_SINGLE_STEP): New macro.
7163 (EnumProcessModulesEx): New macro.
7164 (Wow64SuspendThread): New macro.
7165 (Wow64GetThreadContext): New macro.
7166 (Wow64SetThreadContext): New macro.
7167 (Wow64GetThreadSelectorEntry): New macro.
7168 (windows_set_context_register_offsets): Add static.
7169 (windows_set_segment_register_p): Likewise.
7170 (windows_add_thread): Adapt for WOW64 processes.
7171 (windows_fetch_one_register): Likewise.
7172 (windows_nat_target::fetch_registers): Likewise.
7173 (windows_store_one_register): Likewise.
7174 (display_selector): Likewise.
7175 (display_selectors): Likewise.
7176 (handle_exception): Likewise.
7177 (windows_continue): Likewise.
7178 (windows_nat_target::resume): Likewise.
7179 (windows_add_all_dlls): Likewise.
7180 (do_initial_windows_stuff): Likewise.
7181 (windows_nat_target::attach): Likewise.
7182 (windows_get_exec_module_filename): Likewise.
7183 (windows_nat_target::create_inferior): Likewise.
7184 (windows_xfer_siginfo): Likewise.
7185 (_initialize_loadable): Initialize Wow64SuspendThread,
7186 Wow64GetThreadContext, Wow64SetThreadContext,
7187 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7188 * windows-nat.h (windows_set_context_register_offsets):
7189 Remove declaration.
7190 (windows_set_segment_register_p): Likewise.
7191 (i386_windows_segment_register_p): Add declaration.
7192 (amd64_windows_segment_register_p): Likewise.
7193
440cf44e
LM
71942020-03-04 Luis Machado <luis.machado@linaro.org>
7195
7196 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7197 in "info registers" for AArch64/ARM.
7198
7199 The change caused "info registers" to not print GPR's.
7200
7201 gdb/ChangeLog:
7202
7203 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7204
7205 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7206 when reg->group is empty and reggroup is not.
7207
1009d92f
TT
72082020-03-03 Tom Tromey <tromey@adacore.com>
7209
7210 * dwarf2/frame.c (struct dwarf2_frame_cache)
7211 <checked_tailcall_bottom, entry_cfa_sp_offset,
7212 entry_cfa_sp_offset_p>: Remove members.
7213 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7214 (dwarf2_frame_prev_register): Don't call
7215 dwarf2_tailcall_sniffer_first.
7216 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7217 * frame-unwind.c (add_unwinder): New fuction.
7218 (frame_unwind_init): Use it. Add tailcall unwinder.
7219
5e5d66b6
AB
72202020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7221 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7222
7223 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7224 value should be printed as true.
7225
584cf46d
HD
72262020-03-03 Hannes Domani <ssbssa@yahoo.de>
7227
7228 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7229 (windows_init_abi): Set and use windows_so_ops.
7230
7b973adc
SDJ
72312020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7232
7233 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7234 when verifying if dealing with a convenience variable.
7235
bb7b70ab
LM
72362020-03-03 Luis Machado <luis.machado@linaro.org>
7237
7238 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7239
9822cb57
SM
72402020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7241
7242 * infrun.c (gdbarch_supports_displaced_stepping): New.
7243 (use_displaced_stepping): Break up conditions in smaller pieces.
7244 Use gdbarch_supports_displaced_stepping.
7245 (displaced_step_prepare_throw): Use
7246 gdbarch_supports_displaced_stepping.
7247
63e163f2
AB
72482020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7249
7250 * NEWS: Mention new behaviour of the history filename.
7251 * top.c (write_history_p): Add comment.
7252 (show_write_history_p): Add header comment, give a different
7253 message when history writing is on, but the history filename is
7254 empty.
7255 (history_filename): Add comment.
7256 (history_filename_empty): New function.
7257 (show_history_filename): Add header comment, give a different
7258 message when the filename is empty.
7259 (init_history): Compare history_filename against nullptr, and only
7260 read history if the filename is not empty.
7261 (set_history_filename): Add header comment, and only make
7262 non-empty filenames absolute.
7263 (init_main): Make the filename argument to 'set history filename'
7264 optional.
7265
81b86b97
CB
72662020-03-02 Christian Biesinger <cbiesinger@google.com>
7267
7268 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7269 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7270 (fetch_fp_register): Update.
7271 (fetch_fp_regs): Update.
7272 (store_fp_register): Update.
7273 (store_fp_regs): Update.
7274 (arm_netbsd_nat_target::read_description): New function.
7275 (fetch_elfcore_registers): Update.
7276
24ed6739
AB
72772020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7278
7279 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7280 general_thread if the stop reply is missing a thread-id.
7281 (remote_target::process_stop_reply): Use the first non-exited
7282 thread if the target didn't pass a thread-id.
7283 * infrun.c (do_target_wait): Move call to
7284 switch_to_inferior_no_thread to ....
7285 (do_target_wait_1): ... here.
7286
a84bb2a0
JT
72872020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7288
7289 * debuginfod-support.c: Include defs.h first.
7290
658dadf0
TV
72912020-02-28 Tom de Vries <tdevries@suse.de>
7292
7293 * symfile.c (set_initial_language): Use default language for lookup.
7294
4ebe4877
SM
72952020-02-28 Simon Marchi <simon.marchi@efficios.com>
7296
7297 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7298 reader variable, pass `this` to read_cutu_die_from_dwo.
7299
e5da1139
AM
73002020-02-27 Aaron Merey <amerey@redhat.com>
7301
7302 * source.c (open_source_file): Check for nullptr when computing
7303 srcpath.
7304
317f7127
TT
73052020-02-27 Tom Tromey <tromey@adacore.com>
7306
7307 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7308 member.
7309 (dwarf2_add_field): Don't update nfields.
7310 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7311
3104d9ee
AB
73122020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7313
7314 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7315 abs.
7316
b83470bf
TT
73172020-02-26 Tom Tromey <tom@tromey.com>
7318
7319 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7320 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7321 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7322 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7323 per_cu_data.
7324
edfe0a0c
TT
73252020-02-26 Tom Tromey <tom@tromey.com>
7326
7327 * dwarf2/index-write.c (psym_index_map): Change type.
7328 (add_address_entry_worker, write_one_signatured_type)
7329 (recursively_count_psymbols, recursively_write_psymbols)
7330 (class debug_names, psyms_seen_size, write_gdbindex)
7331 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7332
0d79cdc4
AM
73332020-02-26 Aaron Merey <amerey@redhat.com>
7334
7335 * Makefile.in: Handle optional debuginfod support.
7336 * NEWS: Update.
7337 * README: Add --with-debuginfod summary.
7338 * config.in: Regenerate.
7339 * configure: Regenerate.
7340 * configure.ac: Handle optional debuginfod support.
7341 * debuginfod-support.c: debuginfod helper functions.
7342 * debuginfod-support.h: Ditto.
7343 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7344 summary.
7345 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7346 when a dwz file cannot be found.
7347 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7348 debuginfo file cannot be found.
7349 * source.c (open_source_file): Query debuginfod servers when a
7350 source file cannot be found.
7351 * top.c (print_gdb_configuration): Include
7352 --{with,without}-debuginfod in the output.
7353
b65ce565
JG
73542020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7355
7356 * thread.c (thr_try_catch_cmd): Print thread name.
7357
d4c9a4f8
SM
73582020-02-26 Simon Marchi <simon.marchi@efficios.com>
7359
7360 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7361 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7362 dwarf2_fetch_die_type_sect_off): Move to...
7363 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7364 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7365 dwarf2_fetch_die_type_sect_off): ... here.
7366 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7367 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7368 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7369
0dce4280
TV
73702020-02-26 Tom de Vries <tdevries@suse.de>
7371
7372 PR gdb/25603
7373 * symfile.c (set_initial_language): Exit-early if
7374 language_mode == language_mode_manual.
7375
450a1bfc
SM
73762020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7377
7378 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7379 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7380 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7381
9e80cfa1
AB
73822020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7383
7384 * gdbtypes.c (create_array_type_with_stride): Handle negative
7385 array strides.
7386 * valarith.c (value_subscripted_rvalue): Likewise.
7387
09624f1f
LM
73882020-02-25 Luis Machado <luis.machado@linaro.org>
7389
7390 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7391
8cb5117c
SM
73922020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7393
7394 * loc.h (dwarf2_get_die_type): Move to...
7395 * read.h (dwarf2_get_die_type): ... here.
7396 * read.c (dwarf2_get_die_type): Move doc to header.
7397
c325c44e
JB
73982020-02-25 Joel Brobecker <brobecker@adacore.com>
7399
7400 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7401 'gnulib/Makefile.in' to the list.
7402
4ac93832
TT
74032020-02-24 Tom Tromey <tom@tromey.com>
7404
7405 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7406 Remove.
7407 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7408 XOBNEWVEC.
7409
197400e8
TT
74102020-02-24 Tom Tromey <tom@tromey.com>
7411
7412 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7413 New method.
7414 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7415 (dw2_do_instantiate_symtab, dw2_get_file_names)
7416 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7417
76935768
TT
74182020-02-24 Tom Tromey <tom@tromey.com>
7419
7420 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7421 make_scoped_restore.
7422 (dwarf2_psymtab::read_symtab): Don't clear
7423 reading_partial_symbols.
7424
a88ef40d
TV
74252020-02-24 Tom de Vries <tdevries@suse.de>
7426
7427 PR gdb/25592
7428 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7429
c9af6521
TV
74302020-02-24 Tom de Vries <tdevries@suse.de>
7431
7432 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7433 commands layout next/prev/regs.
7434
5707a07a
TT
74352020-02-22 Tom Tromey <tom@tromey.com>
7436
7437 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7438 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7439
3b0fb49e
TT
74402020-02-22 Tom Tromey <tom@tromey.com>
7441
7442 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7443
283be8bf
TT
74442020-02-22 Tom Tromey <tom@tromey.com>
7445
7446 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7447 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7448 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7449 * tui/tui.c (_initialize_tui): Add usage text.
7450
ca793b96
TT
74512020-02-22 Tom Tromey <tom@tromey.com>
7452
7453 * tui/tui-win.c (tui_set_focus_command)
7454 (tui_set_win_height_command): Use error_no_arg.
7455 (_initialize_tui_win): Update help text.
7456 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7457
432b5c40
TT
74582020-02-22 Tom Tromey <tom@tromey.com>
7459
7460 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7461 * tui/tui-disasm.h (struct tui_disasm_window)
7462 <display_start_addr>: Declare.
7463 * tui/tui-source.h (struct tui_source_window)
7464 <display_start_addr>: Declare.
7465 * tui/tui-winsource.h (struct tui_source_window_base)
7466 <show_source_line, display_start_addr>: New methods.
7467 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7468 Rename and move to protected section.
7469 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7470 (tui_source_window_base::do_erase_source_content): Update.
7471 (tui_source_window_base::show_source_line): Now a method.
7472 (tui_source_window_base::show_source_content)
7473 (tui_source_window_base::tui_source_window_base)
7474 (tui_source_window_base::rerender)
7475 (tui_source_window_base::refill)
7476 (tui_source_window_base::do_scroll_horizontal)
7477 (tui_source_window_base::set_is_exec_point_at)
7478 (tui_source_window_base::update_breakpoint_info)
7479 (tui_source_window_base::update_exec_info): Update.
7480 * tui/tui-source.c (tui_source_window::set_contents)
7481 (tui_source_window::showing_source_p)
7482 (tui_source_window::do_scroll_vertical)
7483 (tui_source_window::location_matches_p)
7484 (tui_source_window::line_is_displayed): Update.
7485 (tui_source_window::display_start_addr): New method.
7486 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7487 (tui_disasm_window::do_scroll_vertical)
7488 (tui_disasm_window::location_matches_p): Update.
7489 (tui_disasm_window::display_start_addr): New method.
7490
01b1af32
TT
74912020-02-22 Tom Tromey <tom@tromey.com>
7492
7493 * NEWS: Add entry for gdb.register_window_type.
7494 * tui/tui-layout.h (window_factory): New typedef.
7495 (tui_register_window): Declare.
7496 * tui/tui-layout.c (saved_tui_windows): New global.
7497 (tui_apply_current_layout): Use it.
7498 (tui_register_window): New function.
7499 * python/python.c (do_start_initialization): Call
7500 gdbpy_initialize_tui.
7501 (python_GdbMethods): Add "register_window_type" function.
7502 * python/python-internal.h (gdbpy_register_tui_window)
7503 (gdbpy_initialize_tui): Declare.
7504 * python/py-tui.c: New file.
7505 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7506
fc96d20b
TT
75072020-02-22 Tom Tromey <tom@tromey.com>
7508
7509 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7510
935c78c0
TT
75112020-02-22 Tom Tromey <tom@tromey.com>
7512
7513 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7514 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7515 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7516 (tui_set_win_focus_to): Move from tui-win.c.
7517
0240c8f1
TT
75182020-02-22 Tom Tromey <tom@tromey.com>
7519
7520 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7521 functions.
7522 (known_window_types): New global.
7523 (tui_get_window_by_name): Reimplement.
7524 (initialize_known_windows): New function.
7525 (validate_window_name): Rewrite.
7526 (_initialize_tui_layout): Call initialize_known_windows.
7527
fdb01f0c
TT
75282020-02-22 Tom Tromey <tom@tromey.com>
7529
7530 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7531 Remove constants.
7532 * tui/tui-winsource.h (struct tui_source_window_base)
7533 <tui_source_window_base>: Remove parameter.
7534 * tui/tui-winsource.c
7535 (tui_source_window_base::tui_source_window_base): Remove
7536 parameter.
7537 (tui_source_window_base::refill): Update.
7538 * tui/tui-stack.h (struct tui_locator_window)
7539 <tui_locator_window>: Update.
7540 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7541 Default the constructor.
7542 * tui/tui-regs.h (struct tui_data_item_window)
7543 <tui_data_item_window>: Default the constructor.
7544 (struct tui_data_window) <tui_data_window>: Likewise.
7545 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7546 Default the constructor.
7547 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7548 Default the constructor.
7549 <type>: Remove.
7550 (struct tui_win_info) <tui_win_info>: Default the constructor.
7551 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7552 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7553 Default the constructor.
7554
865a5aec
TT
75552020-02-22 Tom Tromey <tom@tromey.com>
7556
7557 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7558 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7559 * tui/tui-win.c (tui_resize_all): Don't call
7560 tui_delete_invisible_windows.
7561 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7562 done.
7563 (tui_set_layout): Update.
7564 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7565 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7566 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7567
e098d18c
TT
75682020-02-22 Tom Tromey <tom@tromey.com>
7569
7570 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7571 correctly.
7572
eb9c8874
TT
75732020-02-22 Tom Tromey <tom@tromey.com>
7574
7575 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7576
7eed1a8e
TT
75772020-02-22 Tom Tromey <tom@tromey.com>
7578
7579 * tui/tui-winsource.h (struct tui_source_window_iterator)
7580 <inner_iterator>: New etytypedef.
7581 <tui_source_window_iterator>: Take "end" parameter.
7582 <tui_source_window_iterator>: Take iterator.
7583 <operator*, advance>: Update.
7584 <m_iter>: Change type.
7585 <m_end>: New field.
7586 (struct tui_source_windows) <begin, end>: Update.
7587 * tui/tui-layout.c (tui_windows): New global.
7588 (tui_apply_current_layout): Clear tui_windows.
7589 (tui_layout_window::apply): Update tui_windows.
7590 * tui/tui-data.h (tui_windows): Declare.
7591 (all_tui_windows): Now inline function.
7592 (class tui_window_iterator, struct all_tui_windows): Remove.
7593
7c043ba6
TT
75942020-02-22 Tom Tromey <tom@tromey.com>
7595
7596 PR tui/17850:
7597 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7598 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7599 "height" argument.
7600 (class tui_layout_window) <get_sizes>: Likewise.
7601 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7602 argument.
7603 <get_sizes>: Add "height" argument.
7604 <m_vertical>: New field.
7605 * tui/tui-layout.c (tui_layout_split::clone): Update.
7606 (tui_layout_split::get_sizes): Add "height" argument.
7607 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7608 (tui_new_layout_command): Parse "-horizontal".
7609 (_initialize_tui_layout): Update help string.
7610 (tui_layout_split::specification): Add "-horizontal" when needed.
7611 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7612 argument.
7613 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7614 New methods.
7615
6bc56648
TT
76162020-02-22 Tom Tromey <tom@tromey.com>
7617
7618 * tui/tui-layout.h (enum tui_adjust_result): New.
7619 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7620 (class tui_layout_window) <adjust_size>: Return
7621 tui_adjust_result. Rewrite.
7622 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7623 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7624
c22fef7e
TT
76252020-02-22 Tom Tromey <tom@tromey.com>
7626
7627 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7628 parameter and return types.
7629 (class tui_layout_base) <specification>: Add "depth".
7630 (class tui_layout_window) <specification>: Add "depth".
7631 (class tui_layout_split) <specification>: Add "depth".
7632 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7633 and return types.
7634 (tui_new_layout_command): Parse sub-layouts.
7635 (_initialize_tui_layout): Update help string.
7636 (tui_layout_window::specification): Add "depth".
7637 (add_layout_command): Update.
7638
ee325b61
TT
76392020-02-22 Tom Tromey <tom@tromey.com>
7640
7641 * NEWS: Add "tui new-layout" item.
7642 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7643 Add new-layout command to help text.
7644 (validate_window_name): New function.
7645 (tui_new_layout_command): New function.
7646 (_initialize_tui_layout): Register "new-layout".
7647 (tui_layout_window::specification): New method.
7648 (tui_layout_window::specification): New method.
7649 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7650 method.
7651 (class tui_layout_window) <specification>: New method.
7652 (class tui_layout_split) <specification>: New method.
7653
416eb92d
TT
76542020-02-22 Tom Tromey <tom@tromey.com>
7655
7656 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7657 * tui/tui-win.c (window_name_completer): Update comment.
7658 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7659 Declare method.
7660 (class tui_layout_window) <replace_window>: Likewise.
7661 (class tui_layout_split) <replace_window>: Likewise.
7662 (tui_set_layout): Don't declare.
7663 (tui_set_initial_layout): Declare function.
7664 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7665 (asm_regs_layout): New globals.
7666 (tui_current_layout, show_layout): Remove.
7667 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7668 (find_layout, tui_apply_layout): New function.
7669 (layout_completer): Remove.
7670 (tui_next_layout): Reimplement.
7671 (tui_next_layout_command): New function.
7672 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7673 (tui_regs_layout): Reimplement.
7674 (tui_regs_layout_command): New function.
7675 (extract_display_start_addr): Rewrite.
7676 (next_layout, prev_layout): Remove.
7677 (tui_layout_window::replace_window): New method.
7678 (tui_layout_split::replace_window): New method.
7679 (destroy_layout): New function.
7680 (layout_list): New global.
7681 (add_layout_command): New function.
7682 (initialize_layouts): Update.
7683 (tui_layout_command): New function.
7684 (_initialize_tui_layout): Install "layout" commands.
7685 * tui/tui-data.h (enum tui_layout_type): Remove.
7686 (tui_current_layout): Don't declare.
7687
0dbc2fc7
TT
76882020-02-22 Tom Tromey <tom@tromey.com>
7689
7690 * tui/tui-regs.c (tui_reg_layout): Remove.
7691 (tui_reg_command): Use tui_regs_layout.
7692 * tui/tui-layout.h (tui_reg_command): Declare.
7693 * tui/tui-layout.c (tui_reg_command): New function.
7694
5afe342e
TT
76952020-02-22 Tom Tromey <tom@tromey.com>
7696
7697 * tui/tui.c (tui_rl_delete_other_windows): Call
7698 tui_remove_some_windows.
7699 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7700 Declare method.
7701 (class tui_layout_window) <remove_windows>: New method.
7702 (class tui_layout_split) <remove_windows>: Declare.
7703 (tui_remove_some_windows): Declare.
7704 * tui/tui-layout.c (tui_remove_some_windows): New function.
7705 (tui_layout_split::remove_windows): New method.
7706
427326a8
TT
77072020-02-22 Tom Tromey <tom@tromey.com>
7708
7709 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7710 * tui/tui-layout.h (tui_next_layout): Declare.
7711 * tui/tui-layout.c (tui_next_layout): New function.
7712
3fe12b6d
TT
77132020-02-22 Tom Tromey <tom@tromey.com>
7714
7715 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7716 correct coordinates.
7717
59b8b5d2
TT
77182020-02-22 Tom Tromey <tom@tromey.com>
7719
7720 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7721 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7722 DATA_WIN case.
7723
2a3d458b
TT
77242020-02-22 Tom Tromey <tom@tromey.com>
7725
7726 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7727 TUI_DISASM_WIN, not tui_win_list.
7728
3f0cbb04
TT
77292020-02-22 Tom Tromey <tom@tromey.com>
7730
7731 * valprint.c (generic_val_print_enum_1)
7732 (val_print_type_code_flags): Style member names.
7733 * rust-lang.c (val_print_struct, rust_print_enum)
7734 (rust_print_struct_def, rust_internal_print_type): Style member
7735 names.
7736 * p-valprint.c (pascal_object_print_value_fields): Style member
7737 names. Only call fprintf_symbol_filtered for static members.
7738 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7739 * f-valprint.c (f_val_print): Style member names.
7740 * f-typeprint.c (f_type_print_base): Style member names.
7741 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7742 call fprintf_symbol_filtered for static members.
7743 (cp_print_class_member): Style member names.
7744 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7745 member names.
7746 * ada-valprint.c (ada_print_scalar): Style enum names.
7747 (ada_val_print_enum): Likewise.
7748 * ada-typeprint.c (print_enum_type): Style enum names.
7749
d4d947ae
TT
77502020-02-21 Tom Tromey <tom@tromey.com>
7751
7752 * psympriv.h (struct partial_symtab): Update comment.
7753
e94e944b
TT
77542020-02-21 Tom Tromey <tromey@adacore.com>
7755
7756 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7757 type is CORE_ADDR.
7758
1eb73179
TV
77592020-02-21 Tom de Vries <tdevries@suse.de>
7760
7761 PR gdb/25534
7762 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7763 if dependencies[i]->user != NULL.
7764
4f180d53
AT
77652020-02-21 Ali Tamur <tamur@google.com>
7766
7767 * dwarf2/read.c (dwarf2_name): Add null check.
7768
22b6cd70
TT
77692020-02-20 Tom Tromey <tom@tromey.com>
7770
7771 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7772 ">=", in binary search.
7773 (dwarf2_find_containing_comp_unit): New overload.
7774 (run_test): New self-test.
7775 (_initialize_dwarf2_read): Register new test.
7776
bd0cf5a6
NC
77772020-02-20 Nelson Chu <nelson.chu@sifive.com>
7778
7779 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7780 * riscv-tdep.h: Likewise.
7781 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7782 rv32-only CSR.
7783 * features/riscv/64bit-csr.xml: Regenerated.
7784
3f702acd
SDJ
77852020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7786 Tom Tromey <tom@tromey.com>
7787
7788 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7789 of 'fputc_unfiltered'.
7790 (putchar_unfiltered): Call 'fputc_unfiltered'.
7791 (fputc_unfiltered): Call 'fputs_unfiltered'.
7792
d13c7322
AB
77932020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7794
7795 * config.in: Regenerate.
7796 * configure: Regenerate.
7797 * configure.ac: Add --with-python-libdir option.
7798 * main.c: Use WITH_PYTHON_LIBDIR.
7799
869d8950
TT
78002020-02-19 Tom Tromey <tom@tromey.com>
7801
7802 * symtab.c (general_symbol_info::compute_and_set_names): Use
7803 obstack_strndup. Simplify call to symbol_set_demangled_name.
7804
298e9637
SM
78052020-02-19 Simon Marchi <simon.marchi@efficios.com>
7806
7807 * dwarf2/read.c (allocate_signatured_type_table,
7808 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7809 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7810 Remove objfile parameter, update all callers.
7811
08410482
DE
78122020-02-19 Doug Evans <dje@google.com>
7813
7814 PR rust/25535
7815 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7816 rust_enum_variant calculation.
7817
dfdeeca1
TT
78182020-02-19 Tom Tromey <tromey@adacore.com>
7819
7820 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7821
2ef5453b
TT
78222020-02-19 Tom Tromey <tromey@adacore.com>
7823
7824 * ada-lang.c (cache_symbol): Use obstack_strdup.
7825
9f1528a1
AB
78262020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7827
7828 * configure: Regenerate.
7829
d3c22fa8
TT
78302020-02-19 Tom Tromey <tromey@adacore.com>
7831
7832 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7833 NULL check.
7834
bf84f706
MR
78352020-02-19 Maciej W. Rozycki <macro@wdc.com>
7836
7837 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7838
d1c9b20f
AB
78392020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7840
7841 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7842 if GDBSERVER is not defined.
7843 (riscv_tdesc_cache): Likewise, also store const target_desc.
7844 (STATIC_IN_GDB): Define.
7845 (riscv_create_target_description): Update declaration with
7846 STATIC_IN_GDB.
7847 (riscv_lookup_target_description): New function, only define if
7848 GDBSERVER is not defined.
7849 * arch/riscv.h (riscv_create_target_description): Declare only
7850 when GDBSERVER is defined.
7851 (riscv_lookup_target_description): New declaration when GDBSERVER
7852 is not defined.
7853 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7854 (riscv_linux_read_features): ...this, and return
7855 riscv_gdbarch_features instead of target_desc.
7856 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7857 (riscv_linux_read_description): Rename to...
7858 (riscv_linux_read_features): ...this.
7859 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7860 Update to use riscv_gdbarch_features and
7861 riscv_lookup_target_description.
7862 * riscv-tdep.c (riscv_find_default_target_description): Use
7863 riscv_lookup_target_description instead of
7864 riscv_create_target_description.
7865
373d7ac0
SM
78662020-02-18 Simon Marchi <simon.marchi@efficios.com>
7867
7868 * valprint.c (generic_val_print_enum_1): When printing a flag
7869 enum with value 0 and there is no enumerator with value 0, print
7870 just "0" instead of "(unknown: 0x0)".
7871
b29a2df0
SM
78722020-02-18 Simon Marchi <simon.marchi@efficios.com>
7873
7874 * valprint.c (generic_val_print_enum_1): Print unknown part of
7875 flag enum in hex.
7876
6740f0cc
SM
78772020-02-18 Simon Marchi <simon.marchi@efficios.com>
7878
7879 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7880 flag enums to contain duplicate enumerators.
7881 * valprint.c (generic_val_print_enum_1): Update comment.
7882
edd45eb0
SM
78832020-02-18 Simon Marchi <simon.marchi@efficios.com>
7884
7885 * dwarf2/read.c: Include "count-one-bits.h".
7886 (update_enumeration_type_from_children): If an enumerator has
7887 multiple bits set, don't treat the enumeration as a "flag enum".
7888 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7889 of flag enums have 0 or 1 bit set.
7890
6d0cf446
BE
78912020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7892
7893 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7894 conversion.
7895 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7896 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7897 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7898 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7899 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7900
7001c1b7
SM
79012020-02-18 Simon Marchi <simon.marchi@efficios.com>
7902
7903 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7904
fdb61c6c
SM
79052020-02-14 Simon Marchi <simon.marchi@efficios.com>
7906
7907 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7908 displaced_step_closure_up.
7909 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7910 (struct displaced_step_closure_up):
7911 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7912 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7913 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7914 Likewise.
7915 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7916 * gdbarch.c, gdbarch.h: Re-generate.
7917 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7918 displaced_step_closure_up.
7919 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7920 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7921 * infrun.h (displaced_step_closure_up): New type alias.
7922 (struct displaced_step_inferior_state) <step_closure>: Change
7923 type to displaced_step_closure_up.
7924 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7925 displaced_step_closure_up.
7926 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7927
a4a38eb4
TT
79282020-02-14 Tom Tromey <tom@tromey.com>
7929
7930 * minidebug.c (gnu_debug_key): New global.
7931 (find_separate_debug_file_in_section): Use it.
7932
e8217e61
SM
79332020-02-14 Simon Marchi <simon.marchi@efficios.com>
7934
7935 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7936 std::unique_ptr.
7937 * gdbarch.c: Re-generate.
7938 * gdbarch.h: Re-generate.
7939 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7940 change.
7941 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7942 type to std::unique_ptr.
7943 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7944 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7945 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7946 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7947 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7948 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7949 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7950 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7951 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7952
d8d83535
SM
79532020-02-14 Simon Marchi <simon.marchi@efficios.com>
7954
7955 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7956 std::unique_ptr.
7957 (displaced_step_clear): Rename to...
7958 (displaced_step_reset): ... this. Just call displaced->reset ().
7959 (displaced_step_clear_cleanup): Rename to...
7960 (displaced_step_reset_cleanup): ... this.
7961 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7962 (displaced_step_fixup): Likewise.
7963 (resume_1): Likewise.
7964 (handle_inferior_event): Restore child's memory before calling
7965 displaced_step_fixup on the parent.
7966 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
7967 to std::unique_ptr.
7968 <step_closure>: Change type to std::unique_ptr.
7969
5f661e03
SM
79702020-02-14 Simon Marchi <simon.marchi@efficios.com>
7971
7972 * arm-tdep.c: Include count-one-bits.h.
7973 (cleanup_block_store_pc): Use count_one_bits.
7974 (cleanup_block_load_pc): Use count_one_bits.
7975 (arm_copy_block_xfer): Use count_one_bits.
7976 (thumb2_copy_block_xfer): Use count_one_bits.
7977 (thumb_copy_pop_pc_16bit): Use count_one_bits.
7978 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
7979 (thumb_get_next_pcs_raw): Use count_one_bits.
7980 (arm_get_next_pcs_raw): Use count_one_bits_l.
7981 * arch/arm.c (bitcount): Remove.
7982 * arch/arm.h (bitcount): Remove.
7983
8084e579
TT
79842020-02-14 Tom Tromey <tromey@adacore.com>
7985
7986 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
7987 Update.
7988 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
7989 * dwarf2/loc.c (call_site_find_chain_1): Return
7990 unique_xmalloc_ptr.
7991 (call_site_find_chain): Likewise.
7992
258bf0ee
RB
79932020-02-14 Richard Biener <rguenther@suse.de>
7994
7995 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
7996 on expression with division operators.
7997
f98a8458
AKS
79982020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7999
8000 * MAINTAINERS (Write After Approval): Adding myself.
8001
d1437c0e
TT
80022020-02-12 Tom Tromey <tom@tromey.com>
8003
8004 * event-loop.c (event_data, gdb_event, event_handler_func):
8005 Remove.
8006
3d4560f7
TT
80072020-02-12 Tom Tromey <tom@tromey.com>
8008
8009 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8010 (dwarf2_frame_objfile_data): Add comment.
8011 (find_comp_unit, set_comp_unit): New functions.
8012 (dwarf2_frame_find_fde): Use find_comp_unit.
8013 (dwarf2_build_frame_info): Use set_comp_unit.
8014
21982304
TT
80152020-02-12 Tom Tromey <tom@tromey.com>
8016
8017 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8018 (comp_unit): Don't initialize objfile.
8019 (execute_cfa_program): Add text_offset parameter.
8020 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8021 (dwarf2_frame_cache): Update.
8022 (dwarf2_build_frame_info): Don't set "objfile" member.
8023
4debb237
TT
80242020-02-12 Tom Tromey <tom@tromey.com>
8025
8026 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8027 (decode_frame_entry): Likewise.
8028 (dwarf2_build_frame_info): Update.
8029
0d404d44
TT
80302020-02-12 Tom Tromey <tom@tromey.com>
8031
8032 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8033 (decode_frame_entry_1): Use the comp_unit obstack.
8034
a7a3ae5c
TT
80352020-02-12 Tom Tromey <tom@tromey.com>
8036
8037 * dwarf2/frame.c (struct comp_unit): Add initializers and
8038 constructor.
8039 (dwarf2_frame_objfile_data): Store a comp_unit.
8040 (dwarf2_frame_find_fde): Update.
8041 (dwarf2_build_frame_info): Use "new".
8042
a9d65418
TT
80432020-02-12 Tom Tromey <tom@tromey.com>
8044
8045 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8046 (dwarf2_fde_table): Typedef for std::vector.
8047 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8048 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8049 (decode_frame_entry): Update.
8050 (dwarf2_build_frame_info): Use "new".
8051
7559c217
CB
80522020-02-12 Christian Biesinger <cbiesinger@google.com>
8053
8054 * arm-tdep.c (arm_gdbarch_init): Update.
8055 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8056 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8057 have_neon, is_m>: Change to bool.
8058
aeefc73c
CB
80592020-02-12 Christian Biesinger <cbiesinger@google.com>
8060
8061 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8062
d27b8e5f
TT
80632020-02-12 Tom Tromey <tom@tromey.com>
8064
8065 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8066
cd5900f3
HD
80672020-02-12 Hannes Domani <ssbssa@yahoo.de>
8068
8069 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8070 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8071
f056b22b
TT
80722020-02-11 Tom Tromey <tom@tromey.com>
8073
8074 * psymtab.h: Update comment.
8075
f92ff6b5
TT
80762020-02-11 Tom Tromey <tom@tromey.com>
8077
8078 * gdb_obstack.h (struct auto_obstack): Use
8079 DISABLE_COPY_AND_ASSIGN.
8080
3fd6912b
TT
80812020-02-11 Tom Tromey <tom@tromey.com>
8082
8083 * dwarf2/frame.h (struct objfile): Don't forward declare.
8084
69ed9b74
CB
80852020-02-11 Christian Biesinger <cbiesinger@google.com>
8086
8087 * cris-tdep.c (cris_supply_gregset): Change signature to match
8088 what struct regset expects.
8089 (cris_regset): New struct.
8090 (fetch_core_registers): Remove.
8091 (cris_iterate_over_regset_sections): New function.
8092 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8093 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8094
bda874f6
CB
80952020-02-11 Christian Biesinger <cbiesinger@google.com>
8096
8097 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8098 registers.
8099
754e1564
CB
81002020-02-11 Christian Biesinger <cbiesinger@google.com>
8101
8102 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8103
8ddd8e0e
SM
81042020-02-11 Simon Marchi <simon.marchi@efficios.com>
8105
8106 * configure: Re-generate.
8107
898e7f60
SM
81082020-02-11 Simon Marchi <simon.marchi@efficios.com>
8109
8110 * configure: Re-generate.
8111
58df732b
SM
81122020-02-11 Simon Marchi <simon.marchi@efficios.com>
8113
8114 * acinclude: Update warning.m4 path.
8115 * warning.m4: Move to gdbsupport.
8116
da5bd37e
TT
81172020-02-11 Tom Tromey <tromey@adacore.com>
8118
8119 * remote.c (remote_console_output): Update.
8120 * printcmd.c (printf_command): Update.
8121 * event-loop.c (gdb_wait_for_event): Update.
8122 * linux-nat.c (sigchld_handler): Update.
8123 * remote-sim.c (gdb_os_write_stdout): Update.
8124 (gdb_os_flush_stdout): Update.
8125 (gdb_os_flush_stderr): Update.
8126 (gdb_os_write_stderr): Update.
8127 * exceptions.c (print_exception): Update.
8128 * remote-fileio.c (remote_fileio_func_read): Update.
8129 (remote_fileio_func_write): Update.
8130 * tui/tui.c (tui_enable): Update.
8131 * tui/tui-interp.c (tui_interp::init): Update.
8132 * utils.c (init_page_info): Update.
8133 (putchar_unfiltered, fputc_unfiltered): Update.
8134 (gdb_flush): Update.
8135 (emit_style_escape): Update.
8136 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8137 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8138 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8139 (stderr_file::write): Update.
8140 (stderr_file::puts): Update.
8141 * ui-file.h (ui_file_isatty, ui_file_write)
8142 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8143 (ui_file_puts): Don't declare.
8144
85f0dd3c
TV
81452020-02-10 Tom de Vries <tdevries@suse.de>
8146
8147 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8148 sentinel to char *.
8149
2e927613
TV
81502020-02-09 Tom de Vries <tdevries@suse.de>
8151
8152 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8153 filename if it matches "<artificial>".
8154
6bafc845
HD
81552020-02-09 Hannes Domani <ssbssa@yahoo.de>
8156
8157 * windows-tdep.c (struct enum_value_name): New struct.
8158 (create_enum): New function.
8159 (windows_get_siginfo_type): Create and use enum types.
8160
7928d571
HD
81612020-02-09 Hannes Domani <ssbssa@yahoo.de>
8162
8163 * NEWS: Mention $_siginfo support for Windows.
8164 * windows-nat.c (handle_exception): Set siginfo_er.
8165 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8166 (windows_xfer_siginfo): New function.
8167 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8168 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8169 (init_windows_gdbarch_data): New function.
8170 (get_windows_gdbarch_data): New function.
8171 (windows_get_siginfo_type): New function.
8172 (windows_init_abi): Register windows_get_siginfo_type.
8173 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8174
6751ebae
TT
81752020-02-08 Tom Tromey <tom@tromey.com>
8176
8177 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8178 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8179 <keep>: Declare method.
8180 <m_keep>: Remove member.
8181 <~cutu_reader>: Remove.
8182 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8183 (cutu_reader::cutu_reader): Update.
8184 (cutu_reader::keep): Rename from ~cutu_reader.
8185 (process_psymtab_comp_unit, build_type_psymtabs_1)
8186 (process_skeletonless_type_unit, load_partial_comp_unit)
8187 (load_full_comp_unit, dwarf2_read_addr_index)
8188 (read_signatured_type): Update.
8189
135f5437
TT
81902020-02-08 Tom Tromey <tom@tromey.com>
8191
8192 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8193 "want_partial_unit" parameter.
8194 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8195 Inline check for DW_TAG_partial_unit.
8196 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8197
9f66ff1c
TT
81982020-02-08 Tom Tromey <tom@tromey.com>
8199
8200 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8201 read.c.
8202 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8203 read.c.
8204
c8a7a66f
TT
82052020-02-08 Tom Tromey <tom@tromey.com>
8206
8207 * dwarf2/read.c (read_address): Move to comp-unit.c.
8208 (dwarf2_rnglists_process, dwarf2_ranges_process)
8209 (read_attribute_value, dwarf_decode_lines_1)
8210 (var_decode_location, decode_locdesc): Update.
8211 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8212 read.c. Remove "cu" parameter.
8213 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8214 method.
8215
8266302d
TT
82162020-02-08 Tom Tromey <tom@tromey.com>
8217
8218 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8219 (read_indirect_line_string): Update.
8220 * dwarf2/comp-unit.c (read_offset): Remove.
8221 (read_comp_unit_head): Update.
8222 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8223 method.
8224 (read_offset): Don't declare.
8225
4057dfde
TT
82262020-02-08 Tom Tromey <tom@tromey.com>
8227
8228 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8229 * dwarf2/read.c (struct comp_unit_head): Move to
8230 dwarf2/comp-unit.h.
8231 (enum class rcuh_kind): Move to comp-unit.h.
8232 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8233 (read_comp_unit_head, error_check_comp_unit_head)
8234 (read_and_check_comp_unit_head): Move to comp-unit.c.
8235 (read_offset, dwarf_unit_type_name): Likewise.
8236 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8237 (cutu_reader::cutu_reader, read_call_site_scope)
8238 (find_partial_die, follow_die_offset): Update.
8239 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8240
24aa364d
TT
82412020-02-08 Tom Tromey <tom@tromey.com>
8242
8243 * dwarf2/read.c (read_offset_1): Move to leb.c.
8244 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8245 (dwarf_decode_macro_bytes): Update.
8246 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8247 * dwarf2/leb.h (read_offset): Declare.
8248
2c7d5afc
TT
82492020-02-08 Tom Tromey <tom@tromey.com>
8250
8251 * dwarf2/read.c (dwarf2_section_size): Remove.
8252 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8253 Update.
8254 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8255
4075cb26
TT
82562020-02-08 Tom Tromey <tom@tromey.com>
8257
8258 * dwarf2/read.c (read_initial_length): Move to leb.c.
8259 * dwarf2/leb.h (read_initial_length): Declare.
8260 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8261 handle_nonstd parameter.
8262 * dwarf2/frame.c (read_initial_length): Remove.
8263 (decode_frame_entry_1): Update.
8264
09ba997f
TT
82652020-02-08 Tom Tromey <tom@tromey.com>
8266
8267 * dwarf2/loc.c (dwarf2_find_location_expression)
8268 (dwarf_evaluate_loc_desc::get_tls_address)
8269 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8270 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8271 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8272 (dwarf2_compile_property_to_c)
8273 (dwarf2_loc_desc_get_symbol_read_needs)
8274 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8275 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8276 (loclist_describe_location, loclist_tracepoint_var_ref)
8277 (loclist_generate_c_location): Update.
8278 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8279 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8280 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8281 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8282 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8283 (dwarf2_per_cu_data::addr_size)
8284 (dwarf2_per_cu_data::ref_addr_size)
8285 (dwarf2_per_cu_data::text_offset)
8286 (dwarf2_per_cu_data::addr_type): Now methods.
8287 (per_cu_header_read_in): Make per_cu "const".
8288 (dwarf2_version): Remove.
8289 (dwarf2_per_cu_data::int_type): Now a method.
8290 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8291 (set_die_type, read_array_type, read_subrange_index_type)
8292 (read_tag_string_type, read_subrange_type): Update.
8293 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8294 offset_size, ref_addr_size, text_offset, addr_type, version,
8295 objfile, int_type, addr_sized_int_type>: Declare methods.
8296
96c738c0
TT
82972020-02-08 Tom Tromey <tom@tromey.com>
8298
8299 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8300 Move earlier.
8301
8fdd972c
TT
83022020-02-08 Tom Tromey <tom@tromey.com>
8303
8304 * dwarf2/read.h (dwarf_line_debug): Declare.
8305 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8306 * dwarf2/read.c: Move line_header code to new files.
8307 (dwarf_line_debug): No longer static.
8308 * dwarf2/line-header.c: New file.
8309 * dwarf2/line-header.h: New file.
8310
03075812
TT
83112020-02-08 Tom Tromey <tom@tromey.com>
8312
8313 * dwarf2/read.c (struct line_header) <file_full_name,
8314 file_file_name>: Return unique_xmalloc_ptr.
8315 (line_header::file_file_name): Update.
8316 (line_header::file_full_name): Update.
8317 (dw2_get_file_names_reader): Update.
8318 (macro_start_file): Update.
8319
bb822404
TT
83202020-02-08 Tom Tromey <tom@tromey.com>
8321
8322 * dwarf2/read.c (struct line_header) <file_full_name,
8323 file_file_name>: Declare methods.
8324 (dw2_get_file_names_reader): Update.
8325 (file_file_name): Now a method.
8326 (file_full_name): Likewise.
8327 (macro_start_file): Update.
8328
009b64fc
TT
83292020-02-08 Tom Tromey <tom@tromey.com>
8330
8331 * dwarf2/read.c (dwarf_always_disassemble)
8332 (show_dwarf_always_disassemble): Move to loc.c.
8333 (_initialize_dwarf2_read): Move "always-disassemble" registration
8334 to loc.c.
8335 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8336 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8337 static.
8338 (show_dwarf_always_disassemble): Move from read.c.
8339 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8340
5895093f
TT
83412020-02-08 Tom Tromey <tom@tromey.com>
8342
8343 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8344 (create_quick_file_names_table): Return htab_up.
8345 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8346 Update.
8347 * dwarf2/read.h (struct dwarf2_per_objfile)
8348 <quick_file_names_table>: Now htab_up.
8349
b3b32279
TT
83502020-02-08 Tom Tromey <tom@tromey.com>
8351
8352 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8353
1d33d811
TT
83542020-02-08 Tom Tromey <tom@tromey.com>
8355
8356 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8357 Rewrite.
8358 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8359 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8360 (abbrev_table::abbrev_table): No longer inline.
8361 (ABBREV_HASH_SIZE): Remove.
8362 (abbrev_table::m_abbrevs): Now an htab_up.
8363
86de1d91
TT
83642020-02-08 Tom Tromey <tom@tromey.com>
8365
8366 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8367 (cutu_reader): Update.
8368 (build_type_psymtabs_1): Update.
8369 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8370 (abbrev_table::alloc_abbrev): Update.
8371 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8372 (abbrev_table::read): New static method, renamed from
8373 abbrev_table_read_table.
8374 (abbrev_table::alloc_abbrev)
8375 (abbrev_table::add_abbrev): Now private.
8376 (abbrev_table::abbrev_table): Now private.
8377 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8378
0335378b
TT
83792020-02-08 Tom Tromey <tom@tromey.com>
8380
8381 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8382 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8383 htab_up.
8384
48b490f2
TT
83852020-02-08 Tom Tromey <tom@tromey.com>
8386
8387 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8388 htab_up.
8389 (lookup_dwo_unit_in_dwp): Update.
8390 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8391 on obstack.
8392
bc68fb19
TT
83932020-02-08 Tom Tromey <tom@tromey.com>
8394
8395 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8396 obstack.
8397
d15acc42
TT
83982020-02-08 Tom Tromey <tom@tromey.com>
8399
8400 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8401 line_header_hash.
8402 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8403 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8404 Change type to htab_up.
8405
eaa5fa8b
TT
84062020-02-08 Tom Tromey <tom@tromey.com>
8407
8408 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8409 htab_up. Don't allocate on obstack.
8410 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8411 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8412 Change type to htab_up.
8413
b0b6a987
TT
84142020-02-08 Tom Tromey <tom@tromey.com>
8415
8416 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8417 Change type to htab_up.
8418 * dwarf2/read.c (create_signatured_type_table_from_index)
8419 (create_signatured_type_table_from_debug_names)
8420 (create_all_type_units, add_type_unit)
8421 (lookup_dwo_signatured_type, lookup_signatured_type)
8422 (process_skeletonless_type_unit): Update.
8423 (create_debug_type_hash_table, create_debug_types_hash_table):
8424 Change type of types_htab.
8425 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8426 htab_up. Don't allocate on obstack.
8427 (create_cus_hash_table): Change type of cus_htab parameter.
8428 (struct dwo_file) <cus, tus>: Now htab_up.
8429 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8430 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8431 (queue_and_load_all_dwo_tus): Update.
8432 * dwarf2/index-write.c (write_gdbindex): Update.
8433 (write_debug_names): Update.
8434
39856def
TT
84352020-02-08 Tom Tromey <tom@tromey.com>
8436
8437 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8438 dwarf2/read.c. Remove "next" member. Add constructor ntad
8439 destructor.
8440 (struct dwarf2_per_objfile) <queue>: New member.
8441 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8442 dwarf2/read.h.
8443 (dwarf2_queue, dwarf2_queue_tail): Remove.
8444 (class dwarf2_queue_guard): Add parameter to constructor. Use
8445 DISABLE_COPY_AND_ASSIGN.
8446 <m_per_objfile>: New member.
8447 <~dwarf2_queue_guard>: Rewrite.
8448 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8449 Update.
8450 (~dwarf2_queue_item): New.
8451
3e225074
TT
84522020-02-08 Tom Tromey <tom@tromey.com>
8453
8454 * dwarf2/read.c (struct die_info) <has_children>: New member.
8455 (dw2_get_file_names_reader): Remove has_children.
8456 (dw2_get_file_names): Update.
8457 (read_cutu_die_from_dwo): Remove has_children.
8458 (cutu_reader::init_tu_and_read_dwo_dies)
8459 (cutu_reader::cutu_reader): Update.
8460 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8461 Remove has_children.
8462 (build_type_psymtabs_1, process_skeletonless_type_unit)
8463 (load_partial_comp_unit, load_full_comp_unit): Update.
8464 (create_dwo_cu_reader): Remove has_children.
8465 (create_cus_hash_table, read_die_and_children): Update.
8466 (read_full_die_1,read_full_die): Remove has_children.
8467 (read_signatured_type): Update.
8468 (class cutu_reader) <has_children>: Remove.
8469
82ca8957
TT
84702020-02-08 Tom Tromey <tom@tromey.com>
8471
8472 * dwarf2/expr.c: Rename from dwarf2expr.c.
8473 * dwarf2/expr.h: Rename from dwarf2expr.h.
8474 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8475 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8476 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8477 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8478 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8479 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8480 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8481 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8482 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8483 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8484 * dwarf2/loc.c: Rename from dwarf2loc.c.
8485 * dwarf2/loc.h: Rename from dwarf2loc.h.
8486 * dwarf2/read.c: Rename from dwarf2read.c.
8487 * dwarf2/read.h: Rename from dwarf2read.h.
8488 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8489 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8490 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8491 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8492 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8493 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8494 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8495 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8496 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8497 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8498 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8499 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8500 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8501 Update.
8502 * Makefile.in (COMMON_SFILES): Update.
8503 (HFILES_NO_SRCDIR): Update.
8504
9e35d499
TT
85052020-02-08 Tom Tromey <tom@tromey.com>
8506
8507 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8508 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8509
1eba2311
TT
85102020-02-08 Tom Tromey <tom@tromey.com>
8511
8512 * dwarf2read.h (struct die_info): Don't declare.
8513
e41c2da2
TT
85142020-02-08 Tom Tromey <tom@tromey.com>
8515
8516 * dwarf2read.h (die_info_ptr): Remove typedef.
8517
4fc6c0d5
TT
85182020-02-08 Tom Tromey <tom@tromey.com>
8519
8520 * dwarf2read.c (read_call_site_scope)
8521 (handle_data_member_location, dwarf2_add_member_fn)
8522 (mark_common_block_symbol_computed, read_common_block)
8523 (attr_to_dynamic_prop, partial_die_info::read)
8524 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8525 (dwarf2_symbol_mark_computed, set_die_type): Update.
8526 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8527 method.
8528 (attr_form_is_block): Don't declare.
8529 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8530
cd6c91b4
TT
85312020-02-08 Tom Tromey <tom@tromey.com>
8532
8533 * dwarf2read.c (dwarf2_find_base_address, )
8534 (read_call_site_scope, rust_containing_type)
8535 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8536 (handle_data_member_location, dwarf2_add_member_fn)
8537 (get_alignment, read_structure_type, process_structure_scope)
8538 (mark_common_block_symbol_computed, read_common_block)
8539 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8540 (partial_die_info::read, read_attribute_value, new_symbol)
8541 (lookup_die_type, dwarf2_get_ref_die_offset)
8542 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8543 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8544 (dwarf2_symbol_mark_computed): Update.
8545 * dwarf2/attribute.h (struct attribute) <value_as_address,
8546 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8547 methods.
8548 (value_as_address, attr_form_is_section_offset)
8549 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8550 * dwarf2/attribute.c (attribute::value_as_address)
8551 (attribute::form_is_section_offset, attribute::form_is_constant)
8552 (attribute::form_is_ref): Now methods.
8553
162dce55
TT
85542020-02-08 Tom Tromey <tom@tromey.com>
8555
8556 * dwarf2read.c (struct attribute, DW_STRING)
8557 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8558 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8559 (attr_form_is_block, attr_form_is_section_offset)
8560 (attr_form_is_constant, attr_form_is_ref): Move.
8561 * dwarf2/attribute.h: New file.
8562 * dwarf2/attribute.c: New file, from dwarf2read.c.
8563 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8564
3054dd54
TT
85652020-02-08 Tom Tromey <tom@tromey.com>
8566
8567 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8568 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8569 Move.
8570 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8571 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8572 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8573 abbrev.c.
8574 * dwarf2/abbrev.h: New file.
8575 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8576 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8577
96b79293
TT
85782020-02-08 Tom Tromey <tom@tromey.com>
8579
8580 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8581 (dwarf2_section_size, dwarf2_get_section_info)
8582 (create_signatured_type_table_from_debug_names)
8583 (create_addrmap_from_aranges, read_debug_names_from_section)
8584 (get_gdb_index_contents_from_section, read_comp_unit_head)
8585 (error_check_comp_unit_head, read_abbrev_offset)
8586 (create_debug_type_hash_table, init_cu_die_reader)
8587 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8588 (read_comp_units_from_section, create_cus_hash_table)
8589 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8590 (create_dwp_v2_section, dwarf2_rnglists_process)
8591 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8592 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8593 (read_indirect_string_from_dwz, read_addr_index_1)
8594 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8595 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8596 (fill_in_loclist_baton): Update.
8597 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8598 get_containing_section, get_bfd_owner, get_bfd_section,
8599 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8600 (dwarf2_read_section, get_section_name, get_section_file_name)
8601 (get_containing_section, get_section_bfd_owner)
8602 (get_section_bfd_section, get_section_name, get_section_file_name)
8603 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8604 declare.
8605 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8606 (dwarf2_section_info::get_bfd_owner)
8607 (dwarf2_section_info::get_bfd_section)
8608 (dwarf2_section_info::get_name)
8609 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8610 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8611 (dwarf2_section_info::read): Now methods.
8612 * dwarf-index-write.c (class debug_names): Update.
8613
2c86cff9
TT
86142020-02-08 Tom Tromey <tom@tromey.com>
8615
8616 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8617 Move to dwarf2/section.h.
8618 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8619 (get_section_bfd_section, get_section_name)
8620 (get_section_file_name, get_section_id, get_section_flags)
8621 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8622 dwarf2/section.c.
8623 * dwarf2/section.h: New file.
8624 * dwarf2/section.c: New file, from dwarf2read.c.
8625 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8626
f4382c45
TT
86272020-02-08 Tom Tromey <tom@tromey.com>
8628
8629 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8630 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8631 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8632 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8633 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8634 * dwarf2/leb.h: New file, from dwarf2read.c.
8635 * dwarf2/leb.c: New file, from dwarf2read.c.
8636 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8637 Remove.
8638 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8639 (COMMON_SFILES): Add dwarf2/leb.c.
8640
01840b7a
JB
86412020-02-08 Joel Brobecker <brobecker@adacore.com>
8642
8643 GDB 9.1 released.
8644
dfcb27e4
IB
86452020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8646
8647 PR gdb/25190:
aac66a4c
SM
8648 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8649 * gdb/remote.c (remote_console_output): Update.
8650 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8651 (ui_file_puts): ...this.
8652 * gdb/ui-file.h (ui_file_puts): Add declaration.
8653 * gdb/utils.c (emit_style_escape): Update.
8654 (flush_wrap_buffer): Update.
8655 (fputs_maybe_filtered): Update.
8656 (fputs_unfiltered): Add function.
dfcb27e4 8657
faa17681
IB
86582020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8659
aac66a4c
SM
8660 * gdb/event-loop.c (gdb_wait_for_event): Update.
8661 * gdb/printcmd.c (printf_command): Update.
8662 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8663 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8664 (gdb_os_flush_stderr): Update.
8665 * gdb/remote.c (remote_console_output): Update.
8666 * gdb/ui-file.c (gdb_flush): Rename to...
8667 (ui_file_flush): ...this.
8668 (stderr_file::write): Update.
8669 (stderr_file::puts): Update.
8670 * gdb/ui-file.h (gdb_flush): Rename to...
8671 (ui_file_flush): ...this.
8672 * gdb/utils.c (gdb_flush): Add function.
8673 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8674
5abbbe1d
TT
86752020-02-07 Tom Tromey <tromey@adacore.com>
8676
8677 PR breakpoints/24915:
8678 * source.c (find_and_open_source): Do not check basenames_may_differ.
8679
919adfe8
TT
86802020-02-07 Tom Tromey <tom@tromey.com>
8681
8682 * README: Update gdbserver documentation.
8683 * gdbserver: Move to top level.
8684 * configure.tgt (build_gdbserver): Remove.
8685 * configure.ac: Remove --enable-gdbserver.
8686 * configure: Rebuild.
8687 * Makefile.in (distclean): Don't mention gdbserver.
8688
1d5d29e7
SV
86892020-02-06 Shahab Vahedi <shahab@synopsys.com>
8690
8691 * source-cache.c (source_cache::ensure): Surround
8692 get_plain_source_lines with a try/catch.
8693 (source_cache::get_line_charpos): Get rid of try/catch
8694 and only check for the return value of "ensure".
8695 * tui/tui-source.c (tui_source_window::set_contents):
8696 Simplify "nlines" calculation.
8697
6eb1129c
SV
86982020-02-06 Shahab Vahedi <shahab@synopsys.com>
8699
8700 * MAINTAINERS (Write After Approval): Add myself.
8701
c6a42d11
CB
87022020-02-05 Christian Biesinger <cbiesinger@google.com>
8703
8704 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8705 function call.
8706
c8ecdda6
CB
87072020-02-05 Christian Biesinger <cbiesinger@google.com>
8708
8709 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8710
f6480e70
MR
87112020-02-05 Maciej W. Rozycki <macro@wdc.com>
8712
8713 * nat/riscv-linux-tdesc.h: New file.
8714 * nat/riscv-linux-tdesc.c: New file, taking code from...
8715 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8716 ... here.
8717 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8718 NATDEPFILES.
8719
dcc9fbc6
AB
87202020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8721
8722 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8723 we don't set the fake simulator ptid to the null_ptid.
8724
719546c4
SM
87252020-02-03 Simon Marchi <simon.marchi@efficios.com>
8726
8727 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8728 * gdbthread.h (class thread_info) <resumed>: Likewise.
8729 * infrun.c (resume_1): Likewise.
8730 (proceed): Likewise.
8731 (infrun_thread_stop_requested): Likewise.
8732 (stop_all_threads): Likewise.
8733 (handle_inferior_event): Likewise.
8734 (restart_threads): Likewise.
8735 (finish_step_over): Likewise.
8736 (keep_going_stepped_thread): Likewise.
8737 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8738 (linux_handle_extended_wait): Likewise.
8739 * record-btrace.c (get_thread_current_frame_id): Likewise.
8740 * record-full.c (record_full_wait_1): Likewise.
8741 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8742 * target.c (target_resume): Likewise.
8743 * thread.c (set_running_thread): Likewise.
8744
e409c542
AKS
87452020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8746
8747 * f-valprint.c (f77_print_array_1): Changed datatype of index
8748 variable to LONGEST from int to enable it to contain bound
8749 values correctly.
8750
ee98c0da
MR
87512020-02-03 Maciej W. Rozycki <macro@wdc.com>
8752
8753 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8754 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8755 offsets according to FLEN determined.
8756 (riscv_linux_nat_target::read_description): Determine FLEN
8757 dynamically.
8758 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8759 according to FLEN determined.
8760 (riscv_linux_nat_target::store_registers): Likewise.
8761
aa66aac4
SV
87622020-02-01 Shahab Vahedi <shahab@synopsys.com>
8763
8764 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8765 when reg->group is empty and reggroup is not.
8766
fd9faca8
TT
87672020-01-31 Tom Tromey <tromey@adacore.com>
8768
8769 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8770 Call beneath target's mourn_inferior after unpushing.
8771
42330a68
AB
87722020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8773
8774 PR tui/9765
8775 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8776 have enough lines to fill the screen, still return the lowest
8777 address we found.
8778
7a27a45b
AB
87792020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8780
8781 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8782 '-', '<', and '>' commands.
8783
c47f70e2
PA
87842020-01-29 Pedro Alves <palves@redhat.com>
8785 Sergio Durigan Junior <sergiodj@redhat.com>
8786
8787 * infcmd.c (construct_inferior_arguments): Assert that
8788 'argc' is greater than 0.
8789
5133a315
LM
87902020-01-29 Luis Machado <luis.machado@linaro.org>
8791
8792 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8793 (BRK_INSN_MASK): Define to 0xd4200000.
8794 (aarch64_program_breakpoint_here_p): New function.
8795 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8796 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8797 breakpoint.c.
8798 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8799 breakpoint.h
8800 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8801 call gdbarch_program_breakpoint_here_p.
8802 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8803 default_program_breakpoint_here_p, changed return type to bool and
8804 simplified.
8805 * breakpoint.h (program_breakpoint_here): Moved prototype to
8806 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8807 return type to bool.
8808 * gdbarch.c: Regenerate.
8809 * gdbarch.h: Regenerate.
8810 * gdbarch.sh (program_breakpoint_here_p): New method.
8811 * infrun.c (handle_signal_stop): Call
8812 gdbarch_program_breakpoint_here_p.
8813
168f8c6b
TT
88142020-01-26 Tom Tromey <tom@tromey.com>
8815
8816 * ctfread.c (struct ctf_fp_info): Reindent.
8817 (_initialize_ctfread): Remove.
8818
128a391f
TT
88192020-01-26 Tom Tromey <tom@tromey.com>
8820
8821 * psymtab.c (partial_map_expand_apply)
8822 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8823 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8824 (psym_print_stats, psym_expand_symtabs_for_function)
8825 (psym_map_symbol_filenames, psym_map_matching_symbols)
8826 (psym_expand_symtabs_matching)
8827 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8828 (maintenance_check_psymtabs): Use new methods.
8829 * psympriv.h (struct partial_symtab) <readin_p,
8830 get_compunit_symtab>: New methods.
8831 <readin, compunit_symtab>: Remove members.
8832 (struct standard_psymtab): New.
8833 (struct legacy_psymtab): Derive from standard_psymtab.
8834 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8835 standard_psymtab.
8836 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8837
0494dbec
TT
88382020-01-26 Tom Tromey <tom@tromey.com>
8839
8840 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8841 read_dependencies. Add assert.
8842 * psymtab.c (partial_symtab::read_dependencies): New method.
8843 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8844 method.
8845 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8846 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8847 read_dependencies.
8848 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8849 Add assert.
8850
8566b89b
TT
88512020-01-26 Tom Tromey <tom@tromey.com>
8852
8853 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8854 Call expand_psymtab.
8855 (xcoff_read_symtab): Call expand_psymtab.
8856 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8857 legacy_expand_psymtab.
8858 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8859 method.
8860 (struct legacy_psymtab) <expand_psymtab>: Implement.
8861 <legacy_expand_psymtab>: New member.
8862 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8863 (parse_partial_symbols): Set legacy_expand_psymtab.
8864 (psymtab_to_symtab_1): Change argument order. Call
8865 expand_psymtab.
8866 (new_psymtab): Set legacy_expand_psymtab.
8867 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8868 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8869 expand_psymtab.
8870 (dwarf2_psymtab::expand_psymtab): Rename from
8871 psymtab_to_symtab_1. Call expand_psymtab.
8872 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8873 (dbx_end_psymtab): Likewise.
8874 (dbx_psymtab_to_symtab_1): Change argument order. Call
8875 expand_psymtab.
8876 (dbx_read_symtab): Call expand_psymtab.
8877 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8878 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8879 (ctf_psymtab::read_symtab): Call expand_psymtab.
8880
077cbab2
TT
88812020-01-26 Tom Tromey <tom@tromey.com>
8882
8883 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8884 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8885 messages.
8886 * mdebugread.c (mdebug_read_symtab): Remove prints.
8887 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8888 assert.
8889 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8890
891813be
TT
88912020-01-26 Tom Tromey <tom@tromey.com>
8892
8893 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8894 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8895 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8896 legacy_symtab.
8897 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8898 * psymtab.c (psymtab_to_symtab): Call method.
8899 (dump_psymtab): Update.
8900 * psympriv.h (struct partial_symtab): Add virtual destructor.
8901 <read_symtab>: New method.
8902 (struct legacy_symtab): New.
8903 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8904 (struct pst_map) <pst>: Now a legacy_psymtab.
8905 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8906 (new_psymtab): Use legacy_psymtab.
8907 * dwarf2read.h (struct dwarf2_psymtab): New.
8908 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8909 * dwarf2read.c (dwarf2_create_include_psymtab)
8910 (dwarf2_build_include_psymtabs, create_type_unit_group)
8911 (create_partial_symtab, process_psymtab_comp_unit_reader)
8912 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8913 (set_partial_user): Use dwarf2_psymtab.
8914 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8915 (psymtab_to_symtab_1, process_full_comp_unit)
8916 (process_full_type_unit, dwarf2_ranges_read)
8917 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8918 (dwarf_decode_lines): Use dwarf2_psymtab.
8919 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8920 (add_address_entry_worker, write_one_signatured_type)
8921 (recursively_count_psymbols, recursively_write_psymbols)
8922 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8923 (write_debug_names): Likewise.
8924 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8925 <pst>: Now a legacy_psymtab.
8926 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8927 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8928 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8929 * ctfread.c (struct ctf_psymtab): New.
8930 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8931 ctf_psymtab.
8932 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8933 (create_partial_symtab): Return a ctf_psymtab.
8934 (scan_partial_symbols): Update.
8935
c3693a1d
TT
89362020-01-26 Tom Tromey <tom@tromey.com>
8937
8938 * xcoffread.c (xcoff_start_psymtab): Use new.
8939 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8940 renamed from start_psymtab_common.
8941 * psympriv.h (struct partial_symtab): Add new constructor.
8942 (start_psymtab_common): Don't declare.
8943 * mdebugread.c (parse_partial_symbols): Use new.
8944 * dwarf2read.c (create_partial_symtab): Use new.
8945 * dbxread.c (start_psymtab): Use new.
8946 * ctfread.c (create_partial_symtab): Use new.
8947
32caafd0
TT
89482020-01-26 Tom Tromey <tom@tromey.com>
8949
8950 * xcoffread.c (xcoff_end_psymtab): Use new.
8951 * psymtab.c (start_psymtab_common): Use new.
8952 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8953 Update.
8954 * psympriv.h (struct partial_symtab): Add parameters to
8955 constructor. Don't inline.
8956 (allocate_psymtab): Don't declare.
8957 * mdebugread.c (new_psymtab): Use new.
8958 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8959 * dbxread.c (dbx_end_psymtab): Use new.
8960
abaa2f23
TT
89612020-01-26 Tom Tromey <tom@tromey.com>
8962
8963 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8964 allocate_psymtab. Update documentation.
8965 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8966 allocate_psymtab. Do not use new.
8967 (allocate_psymtab): Use new. Update.
8968
6d94535f
TT
89692020-01-26 Tom Tromey <tom@tromey.com>
8970
8971 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8972 * psymtab.c (psym_print_stats): Update.
8973 * psympriv.h (struct partial_symtab) <readin,
8974 psymtabs_addrmap_supported, anonymous>: Now bool.
8975 * mdebugread.c (psymtab_to_symtab_1): Update.
8976 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
8977 (build_type_psymtabs_reader, psymtab_to_symtab_1)
8978 (process_full_comp_unit, process_full_type_unit): Update.
8979 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8980 * ctfread.c (psymtab_to_symtab): Update.
8981
6f17252b
TT
89822020-01-26 Tom Tromey <tom@tromey.com>
8983
8984 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
8985 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
8986 * psymtab.c (psymtab_storage): Delete psymtabs.
8987 (psymtab_storage::allocate_psymtab): Use new.
8988 (psymtab_storage::discard_psymtab): Use delete.
8989 * psympriv.h (struct partial_symtab): Add constructor and
8990 initializers.
8991
f6f1cebc
TT
89922020-01-26 Tom Tromey <tom@tromey.com>
8993
8994 * machoread.c: Do not include psympriv.h.
8995
e47e48f6
PW
89962020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8997
8998 * NEWS: Mention the new option and the set/show commands.
8999
a2fedca9
PW
90002020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9001
9002 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9003 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9004 (validate_exec_file): New variables, enums, functions.
9005 (exec_file_locate_attach, print_section_info): Style the filenames.
9006 (_initialize_exec): Install show_exec_file_mismatch_command and
9007 set_exec_file_mismatch_command.
9008 * gdbcore.h (validate_exec_file): Declare.
9009 * infcmd.c (attach_command): Call validate_exec_file.
9010 * remote.c ( remote_target::remote_add_inferior): Likewise.
9011
7ffa82e1
AB
90122020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9013
9014 * frame.c (find_frame_sal): Move call to get_next_frame into more
9015 inner scope.
9016 * inline-frame.c (inilne_state) <inline_state>: Update argument
9017 types.
9018 (inilne_state) <skipped_symbol>: Rename to...
9019 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9020 (skip_inline_frames): Build vector of skipped symbols and use this
9021 to reate the inline_state.
9022 (inline_skipped_symbol): Add a comment and some assertions, fetch
9023 skipped symbol from the list.
9024
3d92a3e3
AB
90252020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9026
9027 * buildsym.c (lte_is_less_than): Delete.
9028 (buildsym_compunit::end_symtab_with_blockvector): Create local
9029 lambda function to sort line table entries, and use
9030 std::stable_sort instead of std::sort.
9031 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9032 markers when looking for a previous line.
9033
94a72be7
AB
90342020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9035
9036 * dwarf2read.c (lnp_state_machine::record_line): Include
9037 end_sequence parameter in debug print out. Record the line if we
9038 are at an end_sequence marker even if it's not the start of a
9039 statement.
9040 * symmisc.c (maintenance_print_one_line_table): Print end of
9041 sequence markers with 'END' not '0'.
9042
53af73bf
PA
90432020-01-24 Pedro Alves <palves@redhat.com>
9044
9045 PR gdb/25410
9046 * thread.c (scoped_restore_current_thread::restore): Use
9047 switch_to_inferior_no_thread.
9048 * exec.c: Include "progspace-and-thread.h".
9049 (add_target_sections, remove_target_sections):
9050 scoped_restore_current_pspace_and_thread instead of
9051 scoped_restore_current_thread.
9052 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9053 and aspace to the inferior before calling clone_program_space.
9054 Remove stale comment.
9055
3050c6f4
CB
90562020-01-24 Christian Biesinger <cbiesinger@google.com>
9057
9058 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9059 (arm_netbsd_nat_target::fetch_registers): ...this.
9060 (arm_nbsd_nat_target::store_registers): Rename to...
9061 (arm_netbsd_nat_target::store_registers): ...this.
9062
73685c7e
CB
90632020-01-24 Christian Biesinger <cbiesinger@google.com>
9064
9065 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9066 register_t.
9067
89203d40
CB
90682020-01-24 Christian Biesinger <cbiesinger@google.com>
9069
9070 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9071 Update comment.
9072 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9073 Likewise.
9074 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9075 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9076 the correct replacement (iterate_over_regset_sections).
9077 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9078 Update comment.
9079
1ba1ac88
AB
90802020-01-24 Graham Markall <graham.markall@embecosm.com>
9081
9082 PR gdb/23718
9083 * gdb/python/python.c (execute_gdb_command): Call
9084 async_enable_stdin in catch block.
9085
f3364a6d
AB
90862020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9087
9088 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9089 SWITCH_THRU_ALL_UIS.
9090
733d0a67
AB
90912020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9092
9093 PR tui/9765
9094 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9095 comment, add extra parameter, and update to store previous symbol
9096 when appropriate.
9097 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9098 add extra parameter.
9099 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9100 remove unneeded parameter, add try/catch around gdb_print_insn,
9101 rewrite to add items to asm_lines vector.
9102 (tui_find_backward_disassembly_start_address): New function.
9103 (tui_find_disassembly_address): Updated throughout.
9104 (tui_disasm_window::set_contents): Update for changes to
9105 tui_disassemble.
9106 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9107 number of lines to scroll.
9108
b3b3bada
SM
91092020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9110
9111 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9112 (SECT_OFF_DATA): Likewise.
9113 (SECT_OFF_RODATA): Likewise.
9114 (SECT_OFF_TEXT): Likewise.
9115 (SECT_OFF_BSS): Likewise.
9116 (struct objfile) <text_section_offset, data_section_offset>: New
9117 methods.
9118 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9119 objfile::text_section_offset.
9120 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9121 * coffread.c (coff_symtab_read): Likewise.
9122 (enter_linenos): Likewise.
9123 (process_coff_symbol): Likewise.
9124 * ctfread.c (get_objfile_text_range): Likewise.
9125 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9126 Use objfile::data_section_offset.
9127 * dwarf2-frame.c (execute_cfa_program): Use
9128 objfile::text_section_offset.
9129 (dwarf2_frame_find_fde): Likewise.
9130 * dwarf2read.c (create_addrmap_from_index): Likewise.
9131 (create_addrmap_from_aranges): Likewise.
9132 (dw2_find_pc_sect_compunit_symtab): Likewise.
9133 (process_psymtab_comp_unit_reader): Likewise.
9134 (add_partial_symbol): Likewise.
9135 (add_partial_subprogram): Likewise.
9136 (process_full_comp_unit): Likewise.
9137 (read_file_scope): Likewise.
9138 (read_func_scope): Likewise.
9139 (read_lexical_block_scope): Likewise.
9140 (read_call_site_scope): Likewise.
9141 (dwarf2_rnglists_process): Likewise.
9142 (dwarf2_ranges_process): Likewise.
9143 (dwarf2_ranges_read): Likewise.
9144 (dwarf_decode_lines_1): Likewise.
9145 (new_symbol): Likewise.
9146 (dwarf2_fetch_die_loc_sect_off): Likewise.
9147 (dwarf2_per_cu_text_offset): Likewise.
9148 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9149 * hppa-tdep.c (read_unwind_info): Likewise.
9150 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9151 * psympriv.h (struct partial_symtab): Likewise.
9152 * psymtab.c (find_pc_sect_psymtab): Likewise.
9153 * solib-svr4.c (enable_break): Likewise.
9154 * stap-probe.c (relocate_address): Use
9155 objfile::data_section_offset.
9156 * xcoffread.c (enter_line_range): Use
9157 objfile::text_section_offset.
9158 (read_xcoff_symtab): Likewise.
9159
ab53f382
SM
91602020-01-23 Simon Marchi <simon.marchi@efficios.com>
9161
9162 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9163 declaration to narrower scopes.
9164
e7eee665
SM
91652020-01-23 Simon Marchi <simon.marchi@efficios.com>
9166
9167 * darwin-nat.h (struct darwin_exception_msg, enum
9168 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9169 Move up.
9170 (class darwin_nat_target) <wait_1, check_new_threads,
9171 decode_exception_message, decode_message, stop_inferior,
9172 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9173 * darwin-nat.c (darwin_check_new_threads): Rename to...
9174 (darwin_nat_target::check_new_threads): ... this.
9175 (darwin_suspend_inferior_it): Remove.
9176 (darwin_decode_exception_message): Rename to...
9177 (darwin_nat_target::decode_exception_message): ... this.
9178 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9179 (darwin_decode_message): Rename to...
9180 (darwin_nat_target::decode_message): ... this.
9181 (cancel_breakpoint): Rename to...
9182 (darwin_nat_target::cancel_breakpoint): ... this.
9183 (darwin_wait): Rename to...
9184 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9185 instead of iterate_over_inferiors.
9186 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9187 (darwin_stop_inferior): Rename to...
9188 (darwin_nat_target::stop_inferior): ... this.
9189 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9190 (darwin_init_thread_list): Rename to...
9191 (darwin_nat_target::init_thread_list): ... this.
9192 (darwin_ptrace_him): Rename to...
9193 (darwin_nat_target::ptrace_him): ... this.
9194 (darwin_nat_target::create_inferior): Pass lambda function to
9195 fork_inferior.
9196 (darwin_nat_target::detach): Call stop_inferior instead of
9197 darwin_stop_inferior.
9198 * fork-inferior.h (fork_inferior): Change init_trace_fun
9199 parameter to gdb::function_view.
9200 * fork-inferior.c (fork_inferior): Likewise.
9201
c162ed3e
HD
92022020-01-23 Hannes Domani <ssbssa@yahoo.de>
9203
9204 * i386-cygwin-tdep.c (core_process_module_section): Update.
9205 * windows-nat.c (struct lm_info_windows): Add text_offset.
9206 (windows_xfer_shared_libraries): Update.
9207 * windows-tdep.c (windows_xfer_shared_library):
9208 Add text_offset_cached argument.
9209 * windows-tdep.h (windows_xfer_shared_library): Update.
9210
a1237872
SM
92112020-01-21 Simon Marchi <simon.marchi@efficios.com>
9212
9213 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9214
b3ee6dd9
SM
92152020-01-21 Simon Marchi <simon.marchi@efficios.com>
9216
9217 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9218 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9219 replace with range-based for.
9220 (gdbsim_interrupt_inferior): Remove.
9221 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9222 with a range-based for. Inline code from
9223 gdbsim_interrupt_inferior.
9224
f9fac3c8
SM
92252020-01-21 Simon Marchi <simon.marchi@efficios.com>
9226
9227 * infrun.c (proceed): Fix indentation.
9228
f6474de9
TT
92292020-01-21 Tom Tromey <tromey@adacore.com>
9230
9231 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9232 * python/python.c (python_extension_ops): Update.
9233 (gdbpy_colorize): New function.
9234 * python/lib/gdb/__init__.py (colorize): New function.
9235 * extension.h (ext_lang_colorize): Declare.
9236 * extension.c (ext_lang_colorize): New function.
9237 * extension-priv.h (struct extension_language_ops) <colorize>: New
9238 member.
9239 * cli/cli-style.c (_initialize_cli_style): Update help text.
9240
f0c702d4
LM
92412020-01-21 Luis Machado <luis.machado@linaro.org>
9242
9243 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9244 <cond>: Change type to bool.
9245 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9246 (aarch64_displaced_step_cb): Likewise.
9247 (aarch64_displaced_step_tb): Likewise.
9248
1ab139e5
LM
92492020-01-21 Luis Machado <luis.machado@linaro.org>
9250
9251 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9252 output.
9253
0c271889
LM
92542020-01-21 Luis Machado <luis.machado@linaro.org>
9255
9256 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9257 <pc_adjust>: Adjust the documentation.
9258 (aarch64_displaced_step_fixup): Check if PC really moved before
9259 adjusting it.
9260
4d89c1c7
TT
92612020-01-19 Tom Tromey <tom@tromey.com>
9262
9263 * disasm.c (~gdb_disassembler): New destructor.
9264 (gdb_buffered_insn_length): Call disassemble_free_target.
9265 * disasm.h (class gdb_disassembler): Declare destructor. Use
9266 DISABLE_COPY_AND_ASSIGN.
9267
c0ab21c2
TT
92682020-01-19 Tom Tromey <tom@tromey.com>
9269
9270 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9271 (die_reader_func_ftype): Remove.
9272 (cutu_reader): New class.
9273 (dw2_get_file_names_reader): Remove "data" parameter.
9274 (dw2_get_file_names): Use cutu_reader.
9275 (create_debug_type_hash_table): Update.
9276 (read_cutu_die_from_dwo): Update comment.
9277 (lookup_dwo_unit): Add dwo_name parameter.
9278 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9279 die_reader_func_ftype and data parameters.
9280 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9281 Remove die_reader_func_ftype and data parameters.
9282 (~cutu_reader): New; from init_cutu_and_read_dies.
9283 (cutu_reader::cutu_reader): Rename from
9284 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9285 and data parameters.
9286 (init_cutu_and_read_dies_simple): Remove.
9287 (struct process_psymtab_comp_unit_data): Remove.
9288 (process_psymtab_comp_unit_reader): Remove data parameter; add
9289 want_partial_unit and pretend_language parameters.
9290 (process_psymtab_comp_unit): Use cutu_reader.
9291 (build_type_psymtabs_reader): Remove data parameter.
9292 (build_type_psymtabs_1): Use cutu_reader.
9293 (process_skeletonless_type_unit): Likewise.
9294 (load_partial_comp_unit_reader): Remove.
9295 (load_partial_comp_unit): Use cutu_reader.
9296 (load_full_comp_unit_reader): Remove.
9297 (load_full_comp_unit): Use cutu_reader.
9298 (struct create_dwo_cu_data): Remove.
9299 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9300 dwo_unit parameters.
9301 (create_cus_hash_table): Use cutu_reader.
9302 (struct dwarf2_read_addr_index_data): Remove.
9303 (dwarf2_read_addr_index_reader): Remove.
9304 (dwarf2_read_addr_index): Use cutu_reader.
9305 (read_signatured_type_reader): Remove.
9306 (read_signatured_type): Use cutu_reader.
9307
45bbae5c
TT
93082020-01-19 Tom Tromey <tom@tromey.com>
9309
9310 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9311 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9312 (tui_wrefresh): Declare.
9313 * tui/tui-wingeneral.c (suppress_output): New global.
9314 (tui_suppress_output, ~tui_suppress_output): New constructor and
9315 destructor.
9316 (tui_wrefresh): New function.
9317 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9318 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9319 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9320 method.
9321 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9322 tui_wrefresh.
9323 (tui_data_window::no_refresh): New method.
9324 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9325 (tui_reg_command): Use tui_suppress_output
9326 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9327 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9328 method.
9329 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9330
4f13c1c0
TT
93312020-01-19 Tom Tromey <tom@tromey.com>
9332
9333 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9334 Handle case where symtab is null.
9335
fa47e446
SM
93362020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9337
9338 * linux-fork.c (one_fork_p): Simplify.
9339
26f42329
SM
93402020-01-17 Simon Marchi <simon.marchi@efficios.com>
9341
9342 * top.c (struct qt_args): Remove.
9343 (kill_or_detach): Change return type to void, replace `void *`
9344 parameter with a proper one.
9345 (print_inferior_quit_action): Likewise.
9346 (quit_confirm): Use range-based for loop to iterate over inferiors.
9347 (quit_force): Likewise.
9348
a9ac81b1
SM
93492020-01-17 Simon Marchi <simon.marchi@efficios.com>
9350
9351 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9352 `void *` parameter with proper parameters.
9353 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9354 (print_one_inferior): Change return type to void, replace `void *`
9355 parameter with proper parameters.
9356 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9357 inferiors.
9358 (get_other_inferior): Remove.
9359 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9360 inferiors.
9361
788eca49
SM
93622020-01-17 Simon Marchi <simon.marchi@efficios.com>
9363
9364 * mi/mi-interp.c (report_initial_inferior): Remove.
9365 (mi_interp::init): Use range-based for to iterate over inferiors.
9366
d9bc85b6
SM
93672020-01-17 Simon Marchi <simon.marchi@efficios.com>
9368
9369 * python/py-inferior.c (build_inferior_list): Remove.
9370 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9371
40c94099
CB
93722020-01-16 Christian Biesinger <cbiesinger@google.com>
9373
9374 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9375 (btrace_stitch_trace): Likewise.
9376 * charset.c (intermediate_encoding): Likewise (vaild).
9377 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9378 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9379 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9380
e0cdfe3c
HD
93812020-01-16 Hannes Domani <ssbssa@yahoo.de>
9382
9383 * windows-tdep.c (windows_get_tlb_type):
9384 Add rtl_user_process_parameters type.
9385
790f1718 93862020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9387 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9388
9389 PR build/24805
9390 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9391 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9392 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9393 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9394 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9395 (ps_plog): Redeclare exported functions with default visibility.
9396
3112ed97
NA
93972020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9398
9399 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9400 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9401
8dc3273e
SM
94022020-01-15 Simon Marchi <simon.marchi@efficios.com>
9403
9404 * infcmd.c (post_create_inferior): Use get_thread_regcache
9405 instead of get_current_regcache.
9406
ff47f4f0
TT
94072020-01-14 Tom Tromey <tom@tromey.com>
9408
9409 PR symtab/12535:
9410 * python/python.c (gdbpy_decode_line): Treat empty string the same
9411 as no argument.
9412
975f45b7
TT
94132020-01-14 Tom Tromey <tom@tromey.com>
9414
9415 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9416
25e57356
TT
94172020-01-14 Tom Tromey <tom@tromey.com>
9418
9419 * nat/linux-btrace.c: Don't include <config.h>.
9420 * nat/linux-ptrace.c: Don't include <config.h>.
9421 * nat/x86-linux-dregs.c: Don't include <config.h>.
9422
05ea2a05
TT
94232020-01-14 Tom Tromey <tom@tromey.com>
9424
9425 * configure: Rebuild.
9426 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9427
01027315
TT
94282020-01-14 Tom Tromey <tom@tromey.com>
9429
9430 * nat/x86-linux-dregs.c: Include configh.h.
9431 * nat/linux-ptrace.c: Include configh.h.
9432 * nat/linux-btrace.c: Include configh.h.
9433 * defs.h: Include config.h, bfd.h.
9434 * configure.ac: Don't source common.host.
9435 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9436 * configure: Rebuild.
9437 * acinclude.m4: Update path.
9438 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9439 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9440 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9441 (CLIBS): Add LIBSUPPORT.
9442 (CDEPS): Likewise.
9443 (COMMON_SFILES): Remove gdbsupport files.
9444 (HFILES_NO_SRCDIR): Likewise.
9445 (stamp-version): Update path to create-version.sh.
9446 (ALLDEPFILES): Remove gdbsupport files.
9447
b2ceabe8
TT
94482020-01-14 Tom Tromey <tom@tromey.com>
9449
9450 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9451 USE_WIN32API when needed.
9452 * configure.ac (USE_WIN32API): Don't define.
9453 (WIN32LIBS): Use WIN32APILIBS.
9454 * configure: Rebuild.
9455
25c51f71
TT
94562020-01-14 Tom Tromey <tom@tromey.com>
9457
9458 * configure: Rebuild.
9459 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9460
717c684d
BE
94612020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9462
9463 * skip.c (skip_function_command): Make skip w/o arguments use the
9464 name of the inlined function if pc is inside any inlined function.
9465
7da6a5b9
LM
94662020-01-14 Luis Machado <luis.machado@linaro.org>
9467
9468 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9469 * infrun.c (resume_1): Likewise.
9470 (handle_inferior_event): Remove stale comment.
9471 * linux-nat.c (linux_nat_target::resume): Update comments.
9472 (save_stop_reason): Likewise.
9473 (linux_nat_filter_event): Likewise.
9474 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9475
44e4c775
AB
94762020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9477
9478 * elfread.c (record_minimal_symbol): Set section index to 0 for
9479 non-allocatable sections.
9480
18a8505e
AT
9481
94822020-01-13 Ali Tamur <tamur@google.com>
9483
9484 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9485 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9486 to gdb::optional. Update comments.
9487 (dwo_file): Update comments.
9488 (read_attribute): Update API to take an additional out parameter,
9489 need_reprocess. This is used to mark attributes that need other
9490 attributes (e.g. str_offsets_base) for correct computation which may not
9491 have been read yet.
9492 (read_attribute_reprocess): New function declaration.
9493 (read_addr_index): Likewise.
9494 (read_dwo_str_index): Likewise.
9495 (read_stub_str_index): Likewise.
9496 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9497 (lookup_addr_base): New function definition.
9498 (lookup_ranges_base): Likewise.
9499 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9500 lookup_ranges_base.
9501 (init_cutu_and_read_dies): Update comments.
9502 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9503 unit. This is used to inherit parent's str_offsets_base and addr_base.
9504 Update comments.
9505 (init_cutu_and_read_dies_simple): Reflect API changes.
9506 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9507 (create_cus_hash_table): Change API to take parent compile unit.
9508 Reflect API changes.
9509 (open_and_init_dwo_file): Reflect API changes.
9510 (dwarf2_get_pc_bounds): Update comments.
9511 (dwarf2_record_block_ranges): Likewise.
9512 (read_full_die_1): Change implementation to reprocess attributes that
9513 need str_offsets_base and addr_base.
9514 (partial_die_info::read): Likewise.
9515 (read_attribute_reprocess): New function definition.
9516 (read_attribute_value): Change API to take an additional out parameter,
9517 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9518 when a non-dwo compile unit has index based attributes.
9519 (read_attribute): Reflect API changes.
9520 (read_addr_index_1): Reflect API changes. Update comments.
9521 (dwarf2_read_addr_index_data): Reflect API changes.
9522 (dwarf2_read_addr_index): Likewise.
9523 (read_str_index): Change API and implementation. This becomes a helper
9524 to be used by the new string index related methods. Update error
9525 message and comments.
9526 (read_dwo_str_index): New function definition.
9527 (read_stub_str_index): Likewise.
9528 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9529 * symfile.h (dwarf2_debug_sections): Likewise.
9530 * xcoffread.c (dwarf2_debug_sections): Likewise.
9531
0cac9354
SM
95322020-01-13 Simon Marchi <simon.marchi@efficios.com>
9533
9534 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9535 core_reg_sect type to gdb_byte *.
9536 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9537 * cris-tdep.c (fetch_core_registers): Likewise.
9538 * corelow.c (core_target::get_core_register_section): Change
9539 type of `contents` to gdb::byte_vector.
9540
9a6d629c
AB
95412020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9542
9543 * tui/tui-wingeneral.c (box_win): Position the title in the center
9544 of the border.
9545
d8b2f9e3
SM
95462020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9547
9548 * corelow.c (core_target::get_core_register_section): Use
9549 std::vector instead of alloca.
9550
bb564c58
SM
95512020-01-13 Simon Marchi <simon.marchi@efficios.com>
9552
9553 * warning.m4: Add -Wmissing-declarations to build_warnings.
9554 * configure: Re-generate.
9555
6b366111
SM
95562020-01-13 Simon Marchi <simon.marchi@efficios.com>
9557
9558 * python/python.c (init__gdb_module): Add declaration.
9559
6c265988
SM
95602020-01-13 Simon Marchi <simon.marchi@efficios.com>
9561
9562 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9563 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9564 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9565 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9566 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9567 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9568 * ada-exp.y (_initialize_ada_exp): Add declaration.
9569 * ada-lang.c (_initialize_ada_language): Add declaration.
9570 * ada-tasks.c (_initialize_tasks): Add declaration.
9571 * agent.c (_initialize_agent): Add declaration.
9572 * aix-thread.c (_initialize_aix_thread): Add declaration.
9573 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9574 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9575 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9576 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9577 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9578 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9579 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9580 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9581 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9582 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9583 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9584 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9585 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9586 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9587 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9588 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9589 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9590 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9591 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9592 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9593 * annotate.c (_initialize_annotate): Add declaration.
9594 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9595 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9596 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9597 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9598 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9599 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9600 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9601 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9602 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9603 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9604 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9605 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9606 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9607 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9608 * auto-load.c (_initialize_auto_load): Add declaration.
9609 * auxv.c (_initialize_auxv): Add declaration.
9610 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9611 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9612 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9613 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9614 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9615 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9616 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9617 * breakpoint.c (_initialize_breakpoint): Add declaration.
9618 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9619 * btrace.c (_initialize_btrace): Add declaration.
9620 * charset.c (_initialize_charset): Add declaration.
9621 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9622 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9623 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9624 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9625 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9626 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9627 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9628 * coffread.c (_initialize_coffread): Add declaration.
9629 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9630 * compile/compile.c (_initialize_compile): Add declaration.
9631 * complaints.c (_initialize_complaints): Add declaration.
9632 * completer.c (_initialize_completer): Add declaration.
9633 * copying.c (_initialize_copying): Add declaration.
9634 * corefile.c (_initialize_core): Add declaration.
9635 * corelow.c (_initialize_corelow): Add declaration.
9636 * cp-abi.c (_initialize_cp_abi): Add declaration.
9637 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9638 * cp-support.c (_initialize_cp_support): Add declaration.
9639 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9640 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9641 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9642 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9643 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9644 * ctfread.c (_initialize_ctfread): Add declaration.
9645 * d-lang.c (_initialize_d_language): Add declaration.
9646 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9647 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9648 * dbxread.c (_initialize_dbxread): Add declaration.
9649 * dcache.c (_initialize_dcache): Add declaration.
9650 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9651 * disasm.c (_initialize_disasm): Add declaration.
9652 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9653 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9654 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9655 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9656 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9657 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9658 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9659 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9660 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9661 * elfread.c (_initialize_elfread): Add declaration.
9662 * exec.c (_initialize_exec): Add declaration.
9663 * extension.c (_initialize_extension): Add declaration.
9664 * f-lang.c (_initialize_f_language): Add declaration.
9665 * f-valprint.c (_initialize_f_valprint): Add declaration.
9666 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9667 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9668 * filesystem.c (_initialize_filesystem): Add declaration.
9669 * findcmd.c (_initialize_mem_search): Add declaration.
9670 * findvar.c (_initialize_findvar): Add declaration.
9671 * fork-child.c (_initialize_fork_child): Add declaration.
9672 * frame-base.c (_initialize_frame_base): Add declaration.
9673 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9674 * frame.c (_initialize_frame): Add declaration.
9675 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9676 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9677 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9678 * gcore.c (_initialize_gcore): Add declaration.
9679 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9680 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9681 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9682 * gdbarch.c (_initialize_gdbarch): Add declaration.
9683 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9684 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9685 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9686 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9687 * go-lang.c (_initialize_go_language): Add declaration.
9688 * go32-nat.c (_initialize_go32_nat): Add declaration.
9689 * guile/guile.c (_initialize_guile): Add declaration.
9690 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9691 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9692 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9693 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9694 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9695 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9696 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9697 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9698 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9699 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9700 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9701 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9702 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9703 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9704 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9705 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9706 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9707 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9708 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9709 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9710 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9711 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9712 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9713 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9714 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9715 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9716 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9717 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9718 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9719 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9720 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9721 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9722 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9723 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9724 * infcall.c (_initialize_infcall): Add declaration.
9725 * infcmd.c (_initialize_infcmd): Add declaration.
9726 * inflow.c (_initialize_inflow): Add declaration.
9727 * infrun.c (_initialize_infrun): Add declaration.
9728 * interps.c (_initialize_interpreter): Add declaration.
9729 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9730 * jit.c (_initialize_jit): Add declaration.
9731 * language.c (_initialize_language): Add declaration.
9732 * linux-fork.c (_initialize_linux_fork): Add declaration.
9733 * linux-nat.c (_initialize_linux_nat): Add declaration.
9734 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9735 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9736 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9737 * m2-lang.c (_initialize_m2_language): Add declaration.
9738 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9739 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9740 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9741 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9742 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9743 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9744 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9745 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9746 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9747 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9748 * machoread.c (_initialize_machoread): Add declaration.
9749 * macrocmd.c (_initialize_macrocmd): Add declaration.
9750 * macroscope.c (_initialize_macroscope): Add declaration.
9751 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9752 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9753 * maint.c (_initialize_maint_cmds): Add declaration.
9754 * mdebugread.c (_initialize_mdebugread): Add declaration.
9755 * memattr.c (_initialize_mem): Add declaration.
9756 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9757 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9758 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9759 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9760 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9761 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9762 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9763 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9764 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9765 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9766 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9767 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9768 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9769 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9770 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9771 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9772 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9773 * mipsread.c (_initialize_mipsread): Add declaration.
9774 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9775 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9776 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9777 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9778 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9779 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9780 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9781 * nto-procfs.c (_initialize_procfs): Add declaration.
9782 * objc-lang.c (_initialize_objc_language): Add declaration.
9783 * observable.c (_initialize_observer): Add declaration.
9784 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9785 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9786 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9787 * osabi.c (_initialize_gdb_osabi): Add declaration.
9788 * osdata.c (_initialize_osdata): Add declaration.
9789 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9790 * parse.c (_initialize_parse): Add declaration.
9791 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9792 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9793 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9794 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9795 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9796 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9797 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9798 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9799 * printcmd.c (_initialize_printcmd): Add declaration.
9800 * probe.c (_initialize_probe): Add declaration.
9801 * proc-api.c (_initialize_proc_api): Add declaration.
9802 * proc-events.c (_initialize_proc_events): Add declaration.
9803 * proc-service.c (_initialize_proc_service): Add declaration.
9804 * procfs.c (_initialize_procfs): Add declaration.
9805 * producer.c (_initialize_producer): Add declaration.
9806 * psymtab.c (_initialize_psymtab): Add declaration.
9807 * python/python.c (_initialize_python): Add declaration.
9808 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9809 * record-btrace.c (_initialize_record_btrace): Add declaration.
9810 * record-full.c (_initialize_record_full): Add declaration.
9811 * record.c (_initialize_record): Add declaration.
9812 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9813 * regcache.c (_initialize_regcache): Add declaration.
9814 * reggroups.c (_initialize_reggroup): Add declaration.
9815 * remote-notif.c (_initialize_notif): Add declaration.
9816 * remote-sim.c (_initialize_remote_sim): Add declaration.
9817 * remote.c (_initialize_remote): Add declaration.
9818 * reverse.c (_initialize_reverse): Add declaration.
9819 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9820 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9821 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9822 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9823 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9824 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9825 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9826 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9827 Add declaration.
9828 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9829 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9830 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9831 * rust-exp.y (_initialize_rust_exp): Add declaration.
9832 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9833 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9834 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9835 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9836 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9837 * score-tdep.c (_initialize_score_tdep): Add declaration.
9838 * ser-go32.c (_initialize_ser_dos): Add declaration.
9839 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9840 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9841 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9842 * ser-uds.c (_initialize_ser_socket): Add declaration.
9843 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9844 * serial.c (_initialize_serial): Add declaration.
9845 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9846 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9847 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9848 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9849 * skip.c (_initialize_step_skip): Add declaration.
9850 * sol-thread.c (_initialize_sol_thread): Add declaration.
9851 * solib-aix.c (_initialize_solib_aix): Add declaration.
9852 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9853 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9854 * solib-frv.c (_initialize_frv_solib): Add declaration.
9855 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9856 * solib-target.c (_initialize_solib_target): Add declaration.
9857 * solib.c (_initialize_solib): Add declaration.
9858 * source-cache.c (_initialize_source_cache): Add declaration.
9859 * source.c (_initialize_source): Add declaration.
9860 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9861 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9862 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9863 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9864 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9865 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9866 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9867 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9868 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9869 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9870 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9871 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9872 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9873 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9874 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9875 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9876 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9877 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9878 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9879 * stabsread.c (_initialize_stabsread): Add declaration.
9880 * stack.c (_initialize_stack): Add declaration.
9881 * stap-probe.c (_initialize_stap_probe): Add declaration.
9882 * std-regs.c (_initialize_frame_reg): Add declaration.
9883 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9884 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9885 * symfile.c (_initialize_symfile): Add declaration.
9886 * symmisc.c (_initialize_symmisc): Add declaration.
9887 * symtab.c (_initialize_symtab): Add declaration.
9888 * target.c (_initialize_target): Add declaration.
9889 * target-connection.c (_initialize_target_connection): Add
9890 declaration.
9891 * target-dcache.c (_initialize_target_dcache): Add declaration.
9892 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9893 * thread.c (_initialize_thread): Add declaration.
9894 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9895 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9896 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9897 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9898 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9899 * tracectf.c (_initialize_ctf): Add declaration.
9900 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9901 * tracefile.c (_initialize_tracefile): Add declaration.
9902 * tracepoint.c (_initialize_tracepoint): Add declaration.
9903 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9904 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9905 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9906 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9907 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9908 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9909 * tui/tui.c (_initialize_tui): Add declaration.
9910 * typeprint.c (_initialize_typeprint): Add declaration.
9911 * ui-style.c (_initialize_ui_style): Add declaration.
9912 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9913 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9914 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9915 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9916 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9917 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9918 * unittests/filtered_iterator-selftests.c
9919 (_initialize_filtered_iterator_selftests): Add declaration.
9920 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9921 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9922 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9923 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9924 * unittests/main-thread-selftests.c
9925 (_initialize_main_thread_selftests): Add declaration.
9926 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9927 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9928 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9929 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9930 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9931 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9932 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9933 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9934 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9935 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9936 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9937 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9938 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9939 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9940 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9941 declaration.
9942 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9943 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9944 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9945 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9946 * user-regs.c (_initialize_user_regs): Add declaration.
9947 * utils.c (_initialize_utils): Add declaration.
9948 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9949 * valops.c (_initialize_valops): Add declaration.
9950 * valprint.c (_initialize_valprint): Add declaration.
9951 * value.c (_initialize_values): Add declaration.
9952 * varobj.c (_initialize_varobj): Add declaration.
9953 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9954 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9955 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9956 * windows-nat.c (_initialize_windows_nat): Add declaration.
9957 (_initialize_check_for_gdb_ini): Add declaration.
9958 (_initialize_loadable): Add declaration.
9959 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9960 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9961 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9962 * xcoffread.c (_initialize_xcoffread): Add declaration.
9963 * xml-support.c (_initialize_xml_support): Add declaration.
9964 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9965 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9966 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
9967 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
9968
e2de1eec
SM
99692020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9970
9971 * regformats/regdat.sh: Generate declaration for init function.
9972
e0037b4c
SM
99732020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9974
9975 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
9976 up.
9977 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
9978 close_one_inferior>: New methods.
9979 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
9980 pass down target to find_inferior_pid.
9981 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
9982 Pass down target to find_inferior_ptid.
9983 (gdbsim_target::create_inferior): Pass down target to
9984 add_thread_silent.
9985 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
9986 target down to find_inferior_ptid and switch_to_thread.
9987 (gdbsim_target::close): Update to call close_one_inferior.
9988 (struct resume_data): Remove.
9989 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
9990 directly, rather than through a void pointer.
9991 (gdbsim_target::resume): Update to call resume_one_inferior.
9992
58920b5b
SM
99932020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
9994
9995 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
9996
4ec89149
PA
99972020-01-12 Pedro Alves <palves@redhat.com>
9998
9999 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10000 directly for the current inferior instead of
10001 discard_all_inferiors.
10002 (discard_all_inferiors): Delete.
10003
7c392d1d
TT
100042020-01-11 Tom Tromey <tom@tromey.com>
10005
10006 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10007 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10008 deprecated_safe_get_selected_frame.
10009
d9ebdab7
TBA
100102020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10011
10012 * inferior.c (print_inferior): Switch inferior before printing it.
10013
f3c469b9
PA
100142020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10015 Pedro Alves <palves@redhat.com>
10016
10017 * progspace-and-thread.c (switch_to_program_space_and_thread):
10018 Assert there's an inferior for PSPACE. Use
10019 switch_to_inferior_no_thread to switch the inferior too.
10020 * progspace.c (program_space::~program_space): Call
10021 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10022 (program_space::free_all_objfiles): Don't call clear_symtab_users
10023 here.
10024 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10025
65c574f6
PA
100262020-01-10 Pedro Alves <palves@redhat.com>
10027
10028 * NEWS: Mention multi-target debugging, "info connections", and
10029 "add-inferior -no-connection".
10030
2f4fcf00
PA
100312020-01-10 Pedro Alves <palves@redhat.com>
10032
10033 * infrun.c: Include "target-connection.h".
10034 (check_multi_target_resumption): New.
10035 (proceed): Call it.
10036 * target-connection.c (make_target_connection_string): Make
10037 extern.
10038 * target-connection.h (make_target_connection_string): Declare.
10039
121b3efd
PA
100402020-01-10 Pedro Alves <palves@redhat.com>
10041
10042 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10043 * inferior.c (uiout_field_connection): New function.
10044 (print_inferior): Add new "connection-id" column.
10045 (add_inferior_command): Show connection number/string of added
10046 inferior.
10047 * process-stratum-target.h
10048 (process_stratum_target::connection_string): New virtual method.
10049 (process_stratum_target::connection_number): New field.
10050 * remote.c (remote_target::connection_string): New override.
10051 * target-connection.c: New file.
10052 * target-connection.h: New file.
10053 * target.c (decref_target): Remove process_stratum targets from
10054 the connection list.
10055 (target_stack::push): Add process_stratum targets to the
10056 connection list.
10057
4f837581
PA
100582020-01-10 Pedro Alves <palves@redhat.com>
10059
10060 Revert:
10061 2016-04-12 Pedro Alves <palves@redhat.com>
10062 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10063 Remove references to name.
10064 * serial.h (struct serial) <name>: Delete.
10065
f4ec508e
PA
100662020-01-10 Pedro Alves <palves@redhat.com>
10067
10068 * gdbarch-selftests.c (register_to_value_test): Remove "target
10069 already pushed" check.
10070
5b6d1e4f
PA
100712020-01-10 Pedro Alves <palves@redhat.com>
10072 John Baldwin <jhb@FreeBSD.org>
10073
10074 * aarch64-linux-nat.c
10075 (aarch64_linux_nat_target::thread_architecture): Adjust.
10076 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10077 (task_command_1): Likewise.
10078 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10079 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10080 (aix_thread_target::store_registers)
10081 (aix_thread_target::thread_alive): Adjust.
10082 * amd64-fbsd-tdep.c: Include "inferior.h".
10083 (amd64fbsd_get_thread_local_address): Pass down target.
10084 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10085 thread's gdbarch instead of target_gdbarch.
10086 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10087 get_last_target_status.
10088 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10089 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10090 inferiors.
10091 (update_inserted_breakpoint_locations): Skip if inferiors with no
10092 execution.
10093 (update_global_location_list): When handling moribund locations,
10094 find representative inferior for location's pspace, and use thread
10095 count of its process_stratum target.
10096 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10097 * bsd-uthread.c (bsd_uthread_target::wait): Use
10098 as_process_stratum_target and adjust thread_change_ptid and
10099 add_thread calls.
10100 (bsd_uthread_target::update_thread_list): Use
10101 as_process_stratum_target and adjust find_thread_ptid,
10102 thread_change_ptid and add_thread calls.
10103 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10104 find_thread_ptid call.
10105 * corelow.c (add_to_thread_list): Adjust add_thread call.
10106 (core_target_open): Adjust add_thread_silent and thread_count
10107 calls.
10108 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10109 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10110 * event-top.c (async_disconnect): Pop targets from all inferiors.
10111 * exec.c (add_target_sections): Push exec target on all inferiors
10112 sharing the program space.
10113 (remove_target_sections): Remove the exec target from all
10114 inferiors sharing the program space.
10115 (exec_on_vfork): New.
10116 * exec.h (exec_on_vfork): Declare.
10117 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10118 Pass it down.
10119 (fbsd_nat_target::update_thread_list): Adjust.
10120 (fbsd_nat_target::resume): Adjust.
10121 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10122 down.
10123 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10124 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10125 get_thread_arch_regcache call.
10126 * fork-child.c (gdb_startup_inferior): Pass target down to
10127 startup_inferior and set_executing.
10128 * gdbthread.h (struct process_stratum_target): Forward declare.
10129 (add_thread, add_thread_silent, add_thread_with_info)
10130 (in_thread_list): Add process_stratum_target parameter.
10131 (find_thread_ptid(inferior*, ptid_t)): New overload.
10132 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10133 parameter.
10134 (all_threads()): Delete overload.
10135 (all_threads, all_non_exited_threads): Add process_stratum_target
10136 parameter.
10137 (all_threads_safe): Use brace initialization.
10138 (thread_count): Add process_stratum_target parameter.
10139 (set_resumed, set_running, set_stop_requested, set_executing)
10140 (threads_are_executing, finish_thread_state): Add
10141 process_stratum_target parameter.
10142 (switch_to_thread): Use is_current_thread.
10143 * i386-fbsd-tdep.c: Include "inferior.h".
10144 (i386fbsd_get_thread_local_address): Pass down target.
10145 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10146 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10147 have_inferiors check.
10148 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10149 (inf_ptrace_target::attach): Adjust.
10150 * infcall.c (run_inferior_call): Adjust.
10151 * infcmd.c (run_command_1): Pass target to
10152 scoped_finish_thread_state.
10153 (proceed_thread_callback): Skip inferiors with no execution.
10154 (continue_command): Rename 'all_threads' local to avoid hiding
10155 'all_threads' function. Adjust get_last_target_status call.
10156 (prepare_one_step): Adjust set_running call.
10157 (signal_command): Use user_visible_resume_target. Compare thread
10158 pointers instead of inferior_ptid.
10159 (info_program_command): Adjust to pass down target.
10160 (attach_command): Mark target's 'thread_executing' flag.
10161 (stop_current_target_threads_ns): New, factored out from ...
10162 (interrupt_target_1): ... this. Switch inferior before making
10163 target calls.
10164 * inferior-iter.h
10165 (struct all_inferiors_iterator, struct all_inferiors_range)
10166 (struct all_inferiors_safe_range)
10167 (struct all_non_exited_inferiors_range): Filter on
10168 process_stratum_target too. Remove explicit.
10169 * inferior.c (inferior::inferior): Push dummy target on target
10170 stack.
10171 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10172 Add process_stratum_target parameter, and pass it down.
10173 (have_live_inferiors): Adjust.
10174 (switch_to_inferior_and_push_target): New.
10175 (add_inferior_command, clone_inferior_command): Handle
10176 "-no-connection" parameter. Use
10177 switch_to_inferior_and_push_target.
10178 (_initialize_inferior): Mention "-no-connection" option in
10179 the help of "add-inferior" and "clone-inferior" commands.
10180 * inferior.h: Include "process-stratum-target.h".
10181 (interrupt_target_1): Use bool.
10182 (struct inferior) <push_target, unpush_target, target_is_pushed,
10183 find_target_beneath, top_target, process_target, target_at,
10184 m_stack>: New.
10185 (discard_all_inferiors): Delete.
10186 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10187 (all_inferiors, all_non_exited_inferiors): Add
10188 process_stratum_target parameter.
10189 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10190 (target_last_proc_target): New global.
10191 (follow_fork_inferior): Push target on new inferior. Pass target
10192 to add_thread_silent. Call exec_on_vfork. Handle target's
10193 reference count.
10194 (follow_fork): Adjust get_last_target_status call. Also consider
10195 target.
10196 (follow_exec): Push target on new inferior.
10197 (struct execution_control_state) <target>: New field.
10198 (user_visible_resume_target): New.
10199 (do_target_resume): Call target_async.
10200 (resume_1): Set target's threads_executing flag. Consider resume
10201 target.
10202 (commit_resume_all_targets): New.
10203 (proceed): Also consider resume target. Skip threads of inferiors
10204 with no execution. Commit resumtion in all targets.
10205 (start_remote): Pass current inferior to wait_for_inferior.
10206 (infrun_thread_stop_requested): Consider target as well. Pass
10207 thread_info pointer to clear_inline_frame_state instead of ptid.
10208 (infrun_thread_thread_exit): Consider target as well.
10209 (random_pending_event_thread): New inferior parameter. Use it.
10210 (do_target_wait): Rename to ...
10211 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10212 down.
10213 (threads_are_resumed_pending_p, do_target_wait): New.
10214 (prepare_for_detach): Adjust calls.
10215 (wait_for_inferior): New inferior parameter. Handle it. Use
10216 do_target_wait_1 instead of do_target_wait.
10217 (fetch_inferior_event): Adjust. Switch to representative
10218 inferior. Pass target down.
10219 (set_last_target_status): Add process_stratum_target parameter.
10220 Save target in global.
10221 (get_last_target_status): Add process_stratum_target parameter and
10222 handle it.
10223 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10224 (context_switch): Check inferior_ptid == null_ptid before calling
10225 inferior_thread().
10226 (get_inferior_stop_soon): Pass down target.
10227 (wait_one): Rename to ...
10228 (poll_one_curr_target): ... this.
10229 (struct wait_one_event): New.
10230 (wait_one): New.
10231 (stop_all_threads): Adjust.
10232 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10233 event's target.
10234 (switch_back_to_stepped_thread): Also consider target.
10235 (print_stop_event): Update.
10236 (normal_stop): Update. Also consider the resume target.
10237 * infrun.h (wait_for_inferior): Remove declaration.
10238 (user_visible_resume_target): New declaration.
10239 (get_last_target_status, set_last_target_status): New
10240 process_stratum_target parameter.
10241 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10242 process_stratum_target parameter, and use it.
10243 (clear_inline_frame_state (thread_info*)): New.
10244 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10245 process_stratum_target parameter.
10246 (clear_inline_frame_state (thread_info*)): Declare.
10247 * linux-fork.c (delete_checkpoint_command): Pass target down to
10248 find_thread_ptid.
10249 (checkpoint_command): Adjust.
10250 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10251 instead of just tweaking inferior_ptid.
10252 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10253 (exit_lwp): Pass target down to find_thread_ptid.
10254 (attach_proc_task_lwp_callback): Pass target down to
10255 add_thread/set_running/set_executing.
10256 (linux_nat_target::attach): Pass target down to
10257 thread_change_ptid.
10258 (get_detach_signal): Pass target down to find_thread_ptid.
10259 Consider last target status's target.
10260 (linux_resume_one_lwp_throw, resume_lwp)
10261 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10262 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10263 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10264 (linux_nat_target::async_wait_fd): New.
10265 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10266 target down.
10267 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10268 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10269 * linux-thread-db.c (struct thread_db_info::process_target): New
10270 field.
10271 (add_thread_db_info): Save target.
10272 (get_thread_db_info): New process_stratum_target parameter. Also
10273 match target.
10274 (delete_thread_db_info): New process_stratum_target parameter.
10275 Also match target.
10276 (thread_from_lwp): Adjust to pass down target.
10277 (thread_db_notice_clone): Pass down target.
10278 (check_thread_db_callback): Pass down target.
10279 (try_thread_db_load_1): Always push the thread_db target.
10280 (try_thread_db_load, record_thread): Pass target down.
10281 (thread_db_target::detach): Pass target down. Always unpush the
10282 thread_db target.
10283 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10284 target down. Always unpush the thread_db target.
10285 (find_new_threads_callback, thread_db_find_new_threads_2)
10286 (thread_db_target::update_thread_list): Pass target down.
10287 (thread_db_target::pid_to_str): Pass current inferior down.
10288 (thread_db_target::get_thread_local_address): Pass target down.
10289 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10290 target down.
10291 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10292 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10293 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10294 (procfs_init_inferior): Rename to ...
10295 (procfs_target::procfs_init_inferior): ... this and adjust.
10296 (procfs_target::create_inferior, procfs_notice_thread)
10297 (procfs_do_thread_registers): Adjust.
10298 * ppc-fbsd-tdep.c: Include "inferior.h".
10299 (ppcfbsd_get_thread_local_address): Pass down target.
10300 * proc-service.c (ps_xfer_memory): Switch current inferior and
10301 program space as well.
10302 (get_ps_regcache): Pass target down.
10303 * process-stratum-target.c
10304 (process_stratum_target::thread_address_space)
10305 (process_stratum_target::thread_architecture): Pass target down.
10306 * process-stratum-target.h
10307 (process_stratum_target::threads_executing): New field.
10308 (as_process_stratum_target): New.
10309 * ravenscar-thread.c
10310 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10311 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10312 down.
10313 * record-btrace.c (record_btrace_target::info_record): Adjust.
10314 (record_btrace_target::record_method)
10315 (record_btrace_target::record_is_replaying)
10316 (record_btrace_target::fetch_registers)
10317 (get_thread_current_frame_id, record_btrace_target::resume)
10318 (record_btrace_target::wait, record_btrace_target::stop): Pass
10319 target down.
10320 * record-full.c (record_full_wait_1): Switch to event thread.
10321 Pass target down.
10322 * regcache.c (regcache::regcache)
10323 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10324 process_stratum_target parameter and handle it.
10325 (current_thread_target): New global.
10326 (get_thread_regcache): Add process_stratum_target parameter and
10327 handle it. Switch inferior before calling target method.
10328 (get_thread_regcache): Pass target down.
10329 (get_thread_regcache_for_ptid): Pass target down.
10330 (registers_changed_ptid): Add process_stratum_target parameter and
10331 handle it.
10332 (registers_changed_thread, registers_changed): Pass target down.
10333 (test_get_thread_arch_aspace_regcache): New.
10334 (current_regcache_test): Define a couple local test_target_ops
10335 instances and use them for testing.
10336 (readwrite_regcache): Pass process_stratum_target parameter.
10337 (cooked_read_test, cooked_write_test): Pass mock_target down.
10338 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10339 (get_thread_arch_aspace_regcache): Add process_stratum_target
10340 parameter.
10341 (regcache::target): New method.
10342 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10343 (regcache::registers_changed_ptid): Add process_stratum_target
10344 parameter.
10345 (regcache::m_target): New field.
10346 (registers_changed_ptid): Add process_stratum_target parameter.
10347 * remote.c (remote_state::supports_vCont_probed): New field.
10348 (remote_target::async_wait_fd): New method.
10349 (remote_unpush_and_throw): Add remote_target parameter.
10350 (get_current_remote_target): Adjust.
10351 (remote_target::remote_add_inferior): Push target.
10352 (remote_target::remote_add_thread)
10353 (remote_target::remote_notice_new_inferior)
10354 (get_remote_thread_info): Pass target down.
10355 (remote_target::update_thread_list): Skip threads of inferiors
10356 bound to other targets. (remote_target::close): Don't discard
10357 inferiors. (remote_target::add_current_inferior_and_thread)
10358 (remote_target::process_initial_stop_replies)
10359 (remote_target::start_remote)
10360 (remote_target::remote_serial_quit_handler): Pass down target.
10361 (remote_target::remote_unpush_target): New remote_target
10362 parameter. Unpush the target from all inferiors.
10363 (remote_target::remote_unpush_and_throw): New remote_target
10364 parameter. Pass it down.
10365 (remote_target::open_1): Check whether the current inferior has
10366 execution instead of checking whether any inferior is live. Pass
10367 target down.
10368 (remote_target::remote_detach_1): Pass down target. Use
10369 remote_unpush_target.
10370 (extended_remote_target::attach): Pass down target.
10371 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10372 (remote_target::append_resumption): Pass down target.
10373 (remote_target::append_pending_thread_resumptions)
10374 (remote_target::remote_resume_with_hc, remote_target::resume)
10375 (remote_target::commit_resume): Pass down target.
10376 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10377 (remote_target::interrupt_query)
10378 (remote_target::remove_new_fork_children)
10379 (remote_target::check_pending_events_prevent_wildcard_vcont)
10380 (remote_target::remote_parse_stop_reply)
10381 (remote_target::process_stop_reply): Pass down target.
10382 (first_remote_resumed_thread): New remote_target parameter. Pass
10383 it down.
10384 (remote_target::wait_as): Pass down target.
10385 (unpush_and_perror): New remote_target parameter. Pass it down.
10386 (remote_target::readchar, remote_target::remote_serial_write)
10387 (remote_target::getpkt_or_notif_sane_1)
10388 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10389 down target.
10390 (remote_target::mourn_inferior): Pass down target. Use
10391 remote_unpush_target.
10392 (remote_target::core_of_thread)
10393 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10394 (remote_target::pid_to_exec_file)
10395 (remote_target::thread_handle_to_thread_info): Pass down target.
10396 (remote_target::async_wait_fd): New.
10397 * riscv-fbsd-tdep.c: Include "inferior.h".
10398 (riscv_fbsd_get_thread_local_address): Pass down target.
10399 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10400 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10401 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10402 Adjust.
10403 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10404 * solib-svr4.c (enable_break): Pass down target.
10405 * spu-multiarch.c (parse_spufs_run): Pass down target.
10406 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10407 * target-delegates.c: Regenerate.
10408 * target.c (g_target_stack): Delete.
10409 (current_top_target): Return the current inferior's top target.
10410 (target_has_execution_1): Refer to the passed-in inferior's top
10411 target.
10412 (target_supports_terminal_ours): Check whether the initial
10413 inferior was already created.
10414 (decref_target): New.
10415 (target_stack::push): Incref/decref the target.
10416 (push_target, push_target, unpush_target): Adjust.
10417 (target_stack::unpush): Defref target.
10418 (target_is_pushed): Return bool. Adjust to refer to the current
10419 inferior's target stack.
10420 (dispose_inferior): Delete, and inline parts ...
10421 (target_preopen): ... here. Only dispose of the current inferior.
10422 (target_detach): Hold strong target reference while detaching.
10423 Pass target down.
10424 (target_thread_name): Add assertion.
10425 (target_resume): Pass down target.
10426 (target_ops::beneath, find_target_at): Adjust to refer to the
10427 current inferior's target stack.
10428 (get_dummy_target): New.
10429 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10430 has a thread running.
10431 (initialize_targets): Rename to ...
10432 (_initialize_target): ... this.
10433 * target.h: Include "gdbsupport/refcounted-object.h".
10434 (struct target_ops): Inherit refcounted_object.
10435 (target_ops::shortname, target_ops::longname): Make const.
10436 (target_ops::async_wait_fd): New method.
10437 (decref_target): Declare.
10438 (struct target_ops_ref_policy): New.
10439 (target_ops_ref): New typedef.
10440 (get_dummy_target): Declare function.
10441 (target_is_pushed): Return bool.
10442 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10443 (all_matching_threads_iterator::all_matching_threads_iterator):
10444 Handle filter target.
10445 * thread-iter.h (struct all_matching_threads_iterator, struct
10446 all_matching_threads_range, class all_non_exited_threads_range):
10447 Filter by target too. Remove explicit.
10448 * thread.c (threads_executing): Delete.
10449 (inferior_thread): Pass down current inferior.
10450 (clear_thread_inferior_resources): Pass down thread pointer
10451 instead of ptid_t.
10452 (add_thread_silent, add_thread_with_info, add_thread): Add
10453 process_stratum_target parameter. Use it for thread and inferior
10454 searches.
10455 (is_current_thread): New.
10456 (thread_info::deletable): Use it.
10457 (find_thread_ptid, thread_count, in_thread_list)
10458 (thread_change_ptid, set_resumed, set_running): New
10459 process_stratum_target parameter. Pass it down.
10460 (set_executing): New process_stratum_target parameter. Pass it
10461 down. Adjust reference to 'threads_executing'.
10462 (threads_are_executing): New process_stratum_target parameter.
10463 Adjust reference to 'threads_executing'.
10464 (set_stop_requested, finish_thread_state): New
10465 process_stratum_target parameter. Pass it down.
10466 (switch_to_thread): Also match inferior.
10467 (switch_to_thread): New process_stratum_target parameter. Pass it
10468 down.
10469 (update_threads_executing): Reimplement.
10470 * top.c (quit_force): Pop targets from all inferior.
10471 (gdb_init): Don't call initialize_targets.
10472 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10473 Declare.
10474 (windows_add_thread, windows_delete_thread): Adjust.
10475 (get_windows_debug_event): Rename to ...
10476 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10477 * tracefile-tfile.c (tfile_target_open): Pass down target.
10478 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10479 Forward declare.
10480 (switch_to_thread): Add process_stratum_target parameter.
10481 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10482 parameter. Use it.
10483 (mi_on_resume): Pass target down.
10484 * nat/fork-inferior.c (startup_inferior): Add
10485 process_stratum_target parameter. Pass it down.
10486 * nat/fork-inferior.h (startup_inferior): Add
10487 process_stratum_target parameter.
10488 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10489
75c6c844
PA
104902020-01-10 Pedro Alves <palves@redhat.com>
10491
10492 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10493 directly. Instead find the first thread in the thread list and
10494 use switch_to_thread.
10495
78f2c40a
PA
104962020-01-10 Pedro Alves <palves@redhat.com>
10497
10498 * remote.c (remote_target::remote_add_inferior): Don't bind a
10499 process to the current inferior if the current inferior is already
10500 bound to a process.
10501
e7af6c70
TBA
105022020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10503 Pedro Alves <palves@redhat.com>
10504
10505 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10506 If no process is specified, return null_ptid instead of
10507 inferior_ptid.
10508 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10509 TARGET_WAITKIND_SIGNALLED with no pid.
10510
31ba933e
PA
105112020-01-10 Pedro Alves <palves@redhat.com>
10512
10513 * remote.c (first_remote_resumed_thread): New.
10514 (remote_target::wait_as): Use it as default event_ptid instead of
10515 inferior_ptid.
10516
735fc2ca
PA
105172020-01-10 Pedro Alves <palves@redhat.com>
10518
10519 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10520
c17e02e1
PA
105212020-01-10 Pedro Alves <palves@redhat.com>
10522
10523 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10524 not -1.
10525
ab1ddbcf
PA
105262020-01-10 Pedro Alves <palves@redhat.com>
10527
10528 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10529 ptid to get_last_target_status.
10530 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10531 ptid to get_last_target_status.
10532 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10533 get_last_target_status.
10534 (info_program_command): Don't pass a target_waitstatus to
10535 get_last_target_status.
10536 * infrun.c (init_wait_for_inferior): Use
10537 nullify_last_target_wait_ptid.
10538 (get_last_target_status): Handle nullptr arguments.
10539 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10540 (print_stop_event): Don't pass a ptid to get_last_target_status.
10541 (normal_stop): Don't pass a ptid to get_last_target_status.
10542 * infrun.h (get_last_target_status, set_last_target_status): Move
10543 comments here and update.
10544 (nullify_last_target_wait_ptid): Declare.
10545 * linux-fork.c (fork_load_infrun_state): Remove local extern
10546 declaration of nullify_last_target_wait_ptid.
10547 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10548 to get_last_target_status.
10549
f3f8ece4
PA
105502020-01-10 Pedro Alves <palves@redhat.com>
10551
10552 * gdbthread.h (scoped_restore_current_thread)
10553 <dont_restore, restore, m_dont_restore>: Declare.
10554 * thread.c (thread_alive): Add assertion. Return bool.
10555 (switch_to_thread_if_alive): New.
10556 (prune_threads): Switch inferior/thread.
10557 (print_thread_info_1): Switch thread before calling target methods.
10558 (scoped_restore_current_thread::restore): New, factored out from
10559 ...
10560 (scoped_restore_current_thread::~scoped_restore_current_thread):
10561 ... this.
10562 (scoped_restore_current_thread::scoped_restore_current_thread):
10563 Add assertion.
10564 (thread_apply_all_command, thread_select): Use
10565 switch_to_thread_if_alive.
10566 * infrun.c (proceed, restart_threads, handle_signal_stop)
10567 (switch_back_to_stepped_thread): Switch current thread before
10568 calling target methods.
10569
db2d40f7
PA
105702020-01-10 Pedro Alves <palves@redhat.com>
10571
10572 * inferior.c (switch_to_inferior_no_thread): New function,
10573 factored out from ...
10574 (inferior_command): ... here.
10575 * inferior.h (switch_to_inferior_no_thread): Declare.
10576 * mi/mi-main.c (run_one_inferior): Use
10577 switch_to_inferior_no_thread.
10578
bd420a2d
PA
105792020-01-10 Pedro Alves <palves@redhat.com>
10580
10581 * infcmd.c (kill_command): Remove dead code.
10582
ddf5db90
PA
105832020-01-10 Pedro Alves <palves@redhat.com>
10584
10585 * remote.c (remote_target::mourn_inferior): No longer check
10586 whether the target is running.
10587
5018ce90
PA
105882020-01-10 Pedro Alves <palves@redhat.com>
10589
10590 * corelow.c (core_target::has_execution): Change parameter type to
10591 inferior pointer.
10592 * inferior.c (number_of_live_inferiors): Use
10593 inferior::has_execution instead of target_has_execution_1.
10594 * inferior.h (inferior::has_execution): New.
10595 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10596 inferior::has_execution instead of target_has_execution_1.
10597 * process-stratum-target.c
10598 (process_stratum_target::has_execution): Change parameter type to
10599 inferior pointer. Check the inferior's PID instead of
10600 inferior_ptid.
10601 * process-stratum-target.h
10602 (process_stratum_target::has_execution): Change parameter type to
10603 inferior pointer.
10604 * record-full.c (record_full_core_target::has_execution): Change
10605 parameter type to inferior pointer.
10606 * target.c (target_has_execution_1): Change parameter type to
10607 inferior pointer.
10608 (target_has_execution_current): Adjust.
10609 * target.h (target_ops::has_execution): Change parameter type to
10610 inferior pointer.
10611 (target_has_execution_1): Change parameter type to inferior
10612 pointer. Change return type to bool.
10613 * tracefile.h (tracefile_target::has_execution): Change parameter
10614 type to inferior pointer.
10615
74375d18
PA
106162020-01-10 Pedro Alves <palves@redhat.com>
10617
10618 * exceptions.c (print_flush): Remove current_top_target() check.
10619
acdf84a6
PA
106202020-01-10 Pedro Alves <palves@redhat.com>
10621
10622 * remote.c (show_remote_exec_file): Show the current inferior's
10623 exec-file instead of the command variable's value.
10624
ec506636
PA
106252020-01-10 Pedro Alves <palves@redhat.com>
10626
10627 * record-full.c (record_full_resume_ptid): New global.
10628 (record_full_target::resume): Set it.
10629 (record_full_wait_1): Use record_full_resume_ptid instead of
10630 inferior_ptid.
10631
873657b9
PA
106322020-01-10 Pedro Alves <palves@redhat.com>
10633
10634 * gdbthread.h (scoped_restore_current_thread)
10635 <dont_restore, restore, m_dont_restore>: Declare.
10636 * thread.c (thread_alive): Add assertion. Return bool.
10637 (switch_to_thread_if_alive): New.
10638 (prune_threads): Switch inferior/thread.
10639 (print_thread_info_1): Switch thread before calling target methods.
10640 (scoped_restore_current_thread::restore): New, factored out from
10641 ...
10642 (scoped_restore_current_thread::~scoped_restore_current_thread):
10643 ... this.
10644 (scoped_restore_current_thread::scoped_restore_current_thread):
10645 Add assertion.
10646 (thread_apply_all_command, thread_select): Use
10647 switch_to_thread_if_alive.
10648
7f0ae84c
GB
106492020-01-10 George Barrett <bob@bob131.so>
10650
10651 * stap-probe.c (stap_modify_semaphore): Don't check for null
10652 semaphores.
10653 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10654 for null semaphores.
10655
f5a7c406
AB
106562020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10657
10658 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10659 all source windows, and maintain horizontal scroll status while
10660 doing so.
10661
9ae6bf64
TT
106622020-01-09 Tom Tromey <tom@tromey.com>
10663
10664 PR tui/18932:
10665 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10666 update_source_window, not print_source_lines.
10667
b2efe70c
AB
106682020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10669
10670 * tui/tui.c (tui_enable): Register tui hooks after calling
10671 tui_display_main.
10672
5f23a082
CB
106732020-01-09 Christian Biesinger <cbiesinger@google.com>
10674
10675 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10676
3061113b
SM
106772020-01-08 Simon Marchi <simon.marchi@efficios.com>
10678
10679 * thread.c (print_thread_info_1): Fix indentation.
10680
57d75002
CB
106812020-01-09 Christian Biesinger <cbiesinger@google.com>
10682
10683 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10684 unique_xmalloc_ptr outside the if to always free the demangled name.
10685
6a053cb1
TT
106862020-01-08 Tom Tromey <tromey@adacore.com>
10687
10688 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10689 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10690 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10691 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10692 Remove.
10693 (section_offsets): New typedef.
10694 * symtab.c (fixup_section, get_msymbol_address): Update.
10695 * symmisc.c (dump_msymbols): Update.
10696 * symfile.h (relative_addr_info_to_section_offsets)
10697 (symfile_map_offsets_to_segments): Update.
10698 * symfile.c (build_section_addr_info_from_objfile)
10699 (init_objfile_sect_indices): Update.
10700 (struct place_section_arg): Change type of "offsets".
10701 (place_section): Update.
10702 (relative_addr_info_to_section_offsets): Change type of
10703 "section_offsets". Remove "num_sections" parameter.
10704 (default_symfile_offsets, syms_from_objfile_1)
10705 (set_objfile_default_section_offset): Update.
10706 (reread_symbols): No need to preserve section offsets by hand.
10707 (symfile_map_offsets_to_segments): Change type of "offsets".
10708 * stap-probe.c (relocate_address): Update.
10709 * stabsread.h (process_one_symbol): Update.
10710 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10711 (solib_target_relocate_section_addresses): Update.
10712 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10713 Update.
10714 * solib-frv.c (frv_relocate_main_executable): Update.
10715 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10716 * solib-aix.c (solib_aix_get_section_offsets): Change return
10717 type.
10718 (solib_aix_solib_create_inferior_hook): Update.
10719 * remote.c (remote_target::get_offsets): Update.
10720 * psymtab.c (find_pc_sect_psymtab): Update.
10721 * psympriv.h (struct partial_symbol) <address, text_low,
10722 text_high>: Update.
10723 * objfiles.h (obj_section_offset): Update.
10724 (struct objfile) <section_offsets>: Change type.
10725 <num_sections>: Remove.
10726 (objfile_relocate): Update.
10727 * objfiles.c (entry_point_address_query): Update
10728 (relocate_one_symbol): Change type of "section_offsets".
10729 (objfile_relocate1, objfile_relocate1): Change type of
10730 "new_offsets".
10731 (objfile_rebase1): Update.
10732 * mipsread.c (mipscoff_symfile_read): Update.
10733 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10734 parameter.
10735 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10736 (parse_external, psymtab_to_symtab_1): Update.
10737 * machoread.c (macho_symfile_offsets): Update.
10738 * ia64-tdep.c (ia64_find_unwind_table): Update.
10739 * hppa-tdep.c (read_unwind_info): Update.
10740 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10741 * dwarf2read.c (create_addrmap_from_index)
10742 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10743 (process_psymtab_comp_unit_reader, add_partial_symbol)
10744 (add_partial_subprogram, process_full_comp_unit)
10745 (read_file_scope, read_func_scope, read_lexical_block_scope)
10746 (read_call_site_scope, dwarf2_rnglists_process)
10747 (dwarf2_ranges_process, dwarf2_ranges_read)
10748 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10749 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10750 Update.
10751 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10752 Update.
10753 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10754 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10755 (process_one_symbol): Change type of "section_offsets".
10756 * ctfread.c (get_objfile_text_range): Update.
10757 * coffread.c (coff_symtab_read, enter_linenos)
10758 (process_coff_symbol): Update.
10759 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10760 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10761
456e800a
TT
107622020-01-08 Tom Tromey <tromey@adacore.com>
10763
10764 * dwarf2read.c (parse_macro_definition): Use std::string.
10765 (parse_macro_definition): Likewise.
10766
6dfa2fc2
TT
107672020-01-08 Tom Tromey <tromey@adacore.com>
10768
10769 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10770 (ATTR_ALLOC_CHUNK): Remove.
10771
421d1616
TT
107722020-01-08 Tom Tromey <tromey@adacore.com>
10773
10774 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10775
43816ebc
TT
107762020-01-08 Tom Tromey <tromey@adacore.com>
10777
10778 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10779 (dwarf2_compute_name, open_dwo_file): Likewise.
10780 (process_enumeration_scope): Use std::vector.
10781 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10782 (partial_die_info::fixup, dwarf2_start_subfile)
10783 (guess_full_die_structure_name, dwarf2_name): Likewise.
10784 (determine_prefix): Update.
10785 (guess_full_die_structure_name): Make return type const.
10786 (partial_die_full_name): Return unique_xmalloc_ptr.
10787 (DW_FIELD_ALLOC_CHUNK): Remove.
10788
4212d509
TT
107892020-01-07 Tom Tromey <tromey@adacore.com>
10790
10791 PR build/24937:
10792 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10793
06a6207a
JT
107942020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10795
10796 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10797
153d79c4
AB
107982020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10799
10800 * stack.c (print_frame_info): Move disassemble_next_line code
10801 inside source_print block.
10802
66182876
EZ
108032020-01-06 Eli Zaretskii <eliz@gnu.org>
10804
10805 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10806 gdb/signals.h, as we are now using native signal symbols.
10807
cbfa8581
SV
108082020-01-06 Shahab Vahedi <shahab@synopsys.com>
10809
10810 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10811 overflow by an early check of content vs threshold.
aac66a4c 10812 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10813 Likewise.
10814
3f602821
EZ
108152020-01-06 Eli Zaretskii <eliz@gnu.org>
10816
10817 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10818
a08c904d
JT
108192020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10820
10821 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10822 export table if no section contains it's RVA.
10823
89a65580
EZ
108242020-01-06 Eli Zaretskii <eliz@gnu.org>
10825
10826 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10827
8b7fcda2
HD
108282020-01-06 Hannes Domani <ssbssa@yahoo.de>
10829
10830 * source.c (print_source_lines_base): Set last_line_listed.
10831
a61b4f69
SV
108322020-01-06 Shahab Vahedi <shahab@synopsys.com>
10833
10834 * tui/tui-disasm.c: Remove trailing spaces.
10835
559e7e50
EZ
108362020-01-06 Eli Zaretskii <eliz@gnu.org>
10837 Pedro Alves <palves@redhat.com>
10838
10839 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10840 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10841 (windows_gdb_signal_to_target): New function, uses the above
10842 enumeration to convert GDB internal signal codes to equivalent
10843 Windows codes.
10844 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10845 * windows-nat.c: Include "gdb_wait.h".
10846 (get_windows_debug_event): Extract the fatal exception from the
10847 exit status and convert to the equivalent Posix signal number.
10848 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10849 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10850 * gdbsupport/gdb_wait.c: New file, implements
10851 windows_status_to_termsig.
10852 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10853 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10854
f2302a34
AB
108552020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10856
10857 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10858 show_layout.
10859
6a5206eb
LM
108602020-01-05 Luis Machado <luis.machado@linaro.org>
10861
10862 * aarch64-linux-nat.c
10863 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10864 and bfd_mach_aarch64.
10865
6ec1d75e
PW
108662020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10867
10868 * ui-file.c (stdio_file::can_emit_style_escape)
10869 (tee_file::can_emit_style_escape): Ensure style is used also on
10870 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10871 to gdb_stdout.
10872 * main.c (set_gdb_data_directory): Use file style to output the
10873 warning that the given pathname is not a directory.
10874 * top.c (show_history_filename, gdb_safe_append_history)
10875 (show_gdb_datadir): Use file style.
10876
44f81a76
HD
108772020-01-03 Hannes Domani <ssbssa@yahoo.de>
10878
10879 * solib-target.c (struct lm_info_target):
10880 Change offsets to be a unique_xmalloc_ptr.
10881 (solib_target_relocate_section_addresses): Update.
10882
25057eb0
HD
108832020-01-03 Hannes Domani <ssbssa@yahoo.de>
10884
10885 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10886
6e2118f5
BE
108872020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10888
10889 * MAINTAINERS (Write After Approval): Add myself.
10890
8133c7dc
LM
108912020-01-02 Luis Machado <luis.machado@linaro.org>
10892
10893 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10894 Cell BE architecture.
10895 * target.h (struct target_ops) <thread_architecture>: Likewise.
10896
48189bec
HD
108972020-01-01 Hannes Domani <ssbssa@yahoo.de>
10898
10899 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10900
ead1063b
HD
109012020-01-01 Hannes Domani <ssbssa@yahoo.de>
10902
10903 * MAINTAINERS (Write After Approval): Add myself.
10904
e5d78223
JB
109052020-01-01 Joel Brobecker <brobecker@adacore.com>
10906
10907 * gdbarch.sh: Update copyright year range of generated files.
10908
b811d2c2
JB
109092020-01-01 Joel Brobecker <brobecker@adacore.com>
10910
10911 Update copyright year range in all GDB files.
10912
5f4def5c
JB
109132020-01-01 Joel Brobecker <brobecker@adacore.com>
10914
10915 * copyright.py: Convert to Python 3.
10916
51fd4002
JB
109172020-01-01 Joel Brobecker <brobecker@adacore.com>
10918
10919 * copyright.py: Adapt after move of gnulib directory from gdb
10920 directory to toplevel directory.
10921
5fb651f2
JB
109222020-01-01 Joel Brobecker <brobecker@adacore.com>
10923
10924 * copyright.py (main): Exit if run from the wrong directory.
10925
5dd8bf88
JB
109262020-01-01 Joel Brobecker <brobecker@adacore.com>
10927
10928 * top.c (print_gdb_version): Change copyright year to 2020.
10929
9f71dacb 109302020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10931
9f71dacb 10932 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10933
9f71dacb 10934For older changes see ChangeLog-2019.
c906108c
SS
10935\f
10936Local Variables:
10937mode: change-log
10938left-margin: 8
10939fill-column: 74
10940version-control: never
57da7796 10941coding: utf-8
c906108c 10942End: