gdb: remove callback in macro expand functions
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
2
3 * macroexp.h (macro_lookup_ftype): Remove.
4 (macro_expand, macro_expand_once, macro_expand_next): Remove
5 lookup function parameters, add scope parameter.
6 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7 macro_expand, macro_expand_once, macro_expand_next): Likewise.
8 * macroscope.h (standard_macro_lookup): Change parameter type
9 to macro_scope.
10 * macroscope.c (standard_macro_lookup): Likewise.
11 * c-exp.y (lex_one_token): Update.
12 * macrocmd.c (macro_expand_command): Likewise.
13 (macro_expand_once_command): Likewise.
14
15 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
16
17 * inf-loop.c (inferior_event_handler): Remove client_data param.
18 * inf-loop.h (inferior_event_handler): Likewise.
19 * infcmd.c (step_1): Adjust.
20 * infrun.c (proceed): Adjust.
21 (fetch_inferior_event): Remove client_data param.
22 (infrun_async_inferior_event_handler): Adjust.
23 * infrun.h (fetch_inferior_event): Remove `void *` param.
24 * linux-nat.c (handle_target_event): Adjust.
25 * record-btrace.c (record_btrace_handle_async_inferior_event):
26 Adjust.
27 * record-full.c (record_full_async_inferior_event_handler):
28 Adjust.
29 * remote.c (remote_async_inferior_event_handler): Adjust.
30
31 2020-07-01 Tom Tromey <tom@tromey.com>
32
33 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
34 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
35
36 2020-07-01 Tom Tromey <tom@tromey.com>
37
38 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
39 tui_gen_win_info.
40 (tui_win_info::make_window): Merge with
41 tui_gen_win_info::make_window.
42 (tui_win_info::make_visible): Move from tui_gen_win_info.
43 * tui/tui-win.c (tui_win_info::max_width): Move from
44 tui_gen_win_info.
45 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
46 type.
47 <window_factory>: Likewise.
48 * tui/tui-layout.c (tui_win_info::resize): Move from
49 tui_gen_win_info.
50 (make_standard_window): Change return type.
51 (get_locator_window, tui_get_window_by_name): Likewise.
52 (tui_layout_window::apply): Remove a cast.
53 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
54 (struct tui_win_info): Merge with tui_gen_win_info.
55 (struct tui_gen_win_info): Remove.
56
57 2020-07-01 Tom Tromey <tom@tromey.com>
58
59 * tui/tui-stack.h (struct tui_locator_window): Derive from
60 tui_win_info.
61 <do_scroll_horizontal, do_scroll_vertical>: New methods.
62 <can_box>: New method.
63
64 2020-07-01 Tom Tromey <tom@tromey.com>
65
66 * tui/tui-stack.h (struct tui_locator_window): Remove body.
67
68 2020-07-01 Tom Tromey <tom@tromey.com>
69
70 * tui/tui-regs.c (tui_data_window::display_registers_from)
71 (tui_data_window::display_registers_from)
72 (tui_data_window::first_data_item_displayed)
73 (tui_data_window::delete_data_content_windows): Update.
74 (tui_data_window::refresh_window, tui_data_window::no_refresh):
75 Remove.
76 (tui_data_window::check_register_values): Update.
77 (tui_data_item_window::rerender): Add parameters. Update.
78 (tui_data_item_window::refresh_window): Remove.
79 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
80 virtual.
81 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
82 tui_gen_win_info.
83 <refresh_window, max_height, min_height>: Remove.
84 <rerender>: Add parameters.
85 <x, y, visible>: New members.
86 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
87 <m_item_width>: New member.
88
89 2020-07-01 Tom Tromey <tom@tromey.com>
90
91 * tui/tui-regs.c (tui_data_window::show_register_group)
92 (tui_data_window::check_register_values): Update.
93 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
94 from item_no.
95
96 2020-07-01 Tom Tromey <tom@tromey.com>
97
98 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
99 useless "if".
100
101 2020-07-01 Tom Tromey <tom@tromey.com>
102
103 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
104 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
105
106 2020-07-01 Tom Tromey <tom@tromey.com>
107
108 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
109 * tui/tui-winsource.h (enum tui_line_or_address_kind)
110 (struct tui_line_or_address): Move from tui-data.h.
111 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
112 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
113 (tui_cmd_window, tui_source_window_base, tui_source_window)
114 (tui_disasm_window): Don't declare.
115 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
116 to tui-winsource.h.
117 (SINGLE_KEY): Move to tui-stack.c.
118
119 2020-07-01 Tom Tromey <tom@tromey.com>
120
121 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
122 std::string.
123 * tui/tui-regs.c (class tab_expansion_file): New.
124 (tab_expansion_file::write): New method.
125 (tui_register_format): Change return type. Use
126 tab_expansion_file.
127 (tui_get_register, tui_data_window::display_registers_from)
128 (tui_data_item_window::rerender): Update.
129 * tui/tui-io.h (tui_expand_tabs): Don't declare.
130 * tui/tui-io.c (tui_expand_tabs): Remove.
131
132 2020-07-01 Tom Tromey <tom@tromey.com>
133
134 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
135
136 2020-07-01 Fangrui Song <maskray@google.com>
137
138 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
139
140 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
141
142 * dwarf2/read.c (set_die_type): Removed conditions to restrict
143 forms for DW_AT_associated and DW_AT_allocated attributes,
144 which is already checked in function attr_to_dynamic_prop.
145
146 2020-06-30 Tom Tromey <tromey@adacore.com>
147
148 * dwarf2/read.c (quirk_rust_enum): Correctly call
149 alloc_rust_variant for default-less enum.
150
151 2020-06-30 Tom Tromey <tromey@adacore.com>
152
153 PR build/26183:
154 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
155 gdb::to_string.
156
157 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
158
159 * gdbarch.sh (displaced_step_copy_insn): Update doc.
160 * gdbarch.h: Re-generate.
161
162 2020-06-28 Tom Tromey <tom@tromey.com>
163
164 * command.h (cmd_types): Remove.
165 (cmd_type): Don't declare.
166 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
167 typedef.
168 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
169 * cli/cli-decode.c (cmd_type): Remove.
170
171 2020-06-27 Pedro Alves <palves@redhat.com>
172
173 * fork-child.c (prefork_hook): Adjust.
174 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
175 Delete.
176 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
177 * inferior.c (inferior::set_tty, inferior::tty): New methods.
178 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
179 Remove declarations.
180 (struct inferior) <set_tty, tty>: New methods.
181 (struct inferior) <terminal>: Rename to ...
182 (struct inferior) <m_terminal>: ... this and make private.
183 * main.c (captured_main_1): Adjust.
184 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
185 (mi_cmd_inferior_tty_show): Adjust.
186 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
187 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
188
189 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
190
191 * configure.ac: Add --enable-libctf: handle --disable-static
192 properly.
193 * acinclude.m4: sinclude ../config/enable.m4.
194 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
195 (LIBCTF): Substitute in.
196 (CTF_DEPS): New, likewise.
197 (CLIBS): libctf needs symbols from libbfd: move earlier.
198 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
199 flags.
200 * ctfread.c: Surround in ENABLE_LIBCTF.
201 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
202 * configure: Regenerate.
203 * config.in: Likewise.
204
205 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
206
207 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
208
209 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
210
211 * inferior.h (struct inferior) <terminal>: Change type to
212 gdb::unique_xmalloc_ptr<char>.
213 * inferior.c (inferior::~inferior): Don't free inf->terminal.
214 * infcmd.c (set_inferior_io_terminal): Don't free terminal
215 field, adjust to unique pointer.
216 (get_inferior_io_terminal): Adjust to unique pointer.
217
218 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
219
220 * riscv-tdep.c (riscv_print_registers_info): Loop over all
221 registers, not just the known core set of registers.
222
223 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
224
225 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
226 fflags, frm, and fcsr registers.
227 (riscv_register_reggroup_p): Remove unknown CSRs from save and
228 restore groups.
229 (riscv_tdesc_unknown_reg): New function.
230 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
231 tdesc_use_registers.
232 * riscv-tdep.h (struct gdbarch_tdep): Add
233 unknown_csrs_first_regnum, unknown_csrs_count,
234 duplicate_fflags_regnum, duplicate_frm_regnum, and
235 duplicate_fcsr_regnum fields.
236
237 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
238
239 * target-descriptions.c (tdesc_use_registers): Add new parameter a
240 callback, use the callback (when not null) to help number unknown
241 registers.
242 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
243 (tdesc_use_registers): Add extra parameter to declaration.
244
245 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
246
247 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
248 in the file.
249 (class riscv_pending_register_alias): Likewise.
250 (riscv_register_feature::register_info): Change 'required_p' field
251 to 'required', and change its type. Add 'check' member function.
252 (riscv_register_feature::register_info::check): Define new member
253 function.
254 (riscv_xreg_feature): Change initialisation of 'required' field.
255 (riscv_freg_feature): Likewise.
256 (riscv_virtual_feature): Likewise.
257 (riscv_csr_feature): Likewise.
258 (riscv_check_tdesc_feature): Take extra parameter, the csr
259 tdesc_feature, rewrite the function to use the new
260 riscv_register_feature::register_info::check function.
261 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
262
263 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
264
265 * features/Makefile: Remove all references to the deleted files
266 below.
267 * features/riscv/32bit-csr.c: Deleted.
268 * features/riscv/32bit-csr.xml: Deleted.
269 * features/riscv/64bit-csr.c: Deleted.
270 * features/riscv/64bit-csr.xml: Deleted.
271 * features/riscv/rebuild-csr-xml.sh: Deleted.
272
273 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
274
275 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
276 whitespace error for declaration of names member variable.
277 (struct riscv_register_feature): Add new prefer_first_name member
278 variable, and fix whitespace error in declaration of registers.
279 (riscv_xreg_feature): Initialize prefer_first_name field.
280 (riscv_freg_feature): Likewise.
281 (riscv_virtual_feature): Likewise.
282 (riscv_csr_feature): Likewise.
283 (riscv_register_name): Expand on comments. Remove register name
284 modifications for CSR and virtual registers.
285
286 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
287
288 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
289 errors.
290
291 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
292
293 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
294 riscv-opc.h.
295 (class riscv_pending_register_alias): New class.
296 (riscv_check_tdesc_feature): Take vector of pending aliases and
297 populate it as appropriate.
298 (riscv_setup_register_aliases): Delete.
299 (riscv_gdbarch_init): Create vector of pending aliases and pass it
300 to riscv_check_tdesc_feature in all cases. Use the vector to
301 create the register aliases.
302
303 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
304
305 * sol2-tdep.c (sol2_static_transform_name): Remove.
306 (sol2_init_abi): Don't register it.
307 * gdbarch.sh (static_transform_name): Remove.
308 * gdbarch.c, gdbarch.h: Regenerate.
309
310 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
311 gdbarch_static_transform_name.
312 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
313 * stabsread.c (define_symbol) <'X'>: Remove.
314 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
315 handling.
316 <'V'>: Likewise.
317 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
318 <'S'>: Remove call to gdbarch_static_transform_name.
319
320 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
321
322 * procfs.c (procfs_pre_trace): New function.
323 (procfs_target::create_inferior): Pass it to fork_inferior.
324
325 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
326
327 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
328 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
329 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
330 sol2-tdep.o, sparc-sol2-tdep.o.
331 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
332 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
333 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
334 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
335
336 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
337
338 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
339 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
340 Call sol2_init_abi.
341 Remove calls to set_gdbarch_skip_solib_resolver,
342 set_gdbarch_core_pid_to_str.
343 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
344 (i386_sol2_static_transform_name): Remove.
345 (i386_sol2_init_abi): Call sol2_init_abi.
346 Remove calls to set_gdbarch_sofun_address_maybe_missing,
347 set_gdbarch_static_transform_name,
348 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
349 Use sol2_sigtramp_p.
350 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
351 (sol2_sigtramp_p): New function.
352 (sol2_static_transform_name): New function.
353 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
354 (sol2_init_abi): New function.
355 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
356 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
357 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
358 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
359 (sparc_sol2_static_transform_name): Remove.
360 (sparc32_sol2_init_abi): Call sol2_init_abi.
361 Remove calls to set_gdbarch_sofun_address_maybe_missing,
362 set_gdbarch_static_transform_name,
363 set_gdbarch_skip_solib_resolver,
364 set_gdbarch_core_pid_to_str.
365 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
366 (sparc_sol2_static_transform_name): Remove
367 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
368 call sol2_sigtramp_p.
369 (sparc64_sol2_init_abi): Call sol2_init_abi.
370 Remove calls to set_gdbarch_sofun_address_maybe_missing,
371 set_gdbarch_static_transform_name,
372 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
373
374 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
375
376 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
377 * exec.c (validate_exec_file): If from_tty, set both
378 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
379 * symfile.c (symbol_file_add_with_addrs): if always_confirm
380 and from_tty, unconditionally ask a confirmation.
381
382 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
383
384 * target-descriptions.c (tdesc_architecture_name): Protect against
385 NULL pointer dereference.
386 (maint_print_xml_tdesc_cmd): New function.
387 (_initialize_target_descriptions): Register new 'maint print
388 xml-tdesc' command and give it the filename completer.
389 * NEWS: Mention new 'maint print xml-tdesc' command.
390
391 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
392
393 * target-descriptions.c (class tdesc_compatible_info): New class.
394 (struct target_desc): Change type of compatible vector.
395 (tdesc_compatible_p): Update for change in type of
396 target_desc::compatible.
397 (tdesc_compatible_info_list): New function.
398 (tdesc_compatible_info_arch_name): New function.
399 (tdesc_add_compatible): Update for change in type of
400 target_desc::compatible.
401 (print_c_tdesc::visit_pre): Likewise.
402
403 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
404
405 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
406 whitespace to underscore.
407 (maint_print_c_tdesc_cmd): Use fake filename for target
408 descriptions that came from the target.
409 (_initialize_target_descriptions): Add filename command completion
410 for 'maint print c-tdesc'.
411
412 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
413
414 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
415 lines.
416
417 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
418
419 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
420 lines.
421 (dwarf2_find_location_expression): Likewise.
422 (call_site_parameter_matches): Likewise.
423 (dwarf2_compile_expr_to_ax): Likewise.
424 (disassemble_dwarf_expression): Likewise.
425 (loclist_describe_location): Likewise.
426
427 2020-06-23 Pedro Alves <palves@redhat.com>
428
429 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
430 progspace-and-thread.h. Include scoped-mock-context.h instead.
431 (register_to_value_test): Use scoped_mock_context.
432 * regcache.c: Include "scoped-mock-context.h".
433 (cooked_read_test): Don't error out if a target is already pushed.
434 Use scoped_mock_context. Adjust.
435 * scoped-mock-context.h: New file.
436
437 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
438
439 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
440 initializer.
441 (ada_language::is_string_type_p): New member function.
442 * c-lang.c (c_language_data): Delete la_is_string_type_p
443 initializer.
444 (cplus_language_data): Likewise.
445 (asm_language_data): Likewise.
446 (minimal_language_data): Likewise.
447 * d-lang.c (d_language_data): Likewise.
448 * f-lang.c (f_is_string_type_p): Delete function, implementation
449 moved to f_language::is_string_type_p.
450 (f_language_data): Delete la_is_string_type_p initializer.
451 (f_language::is_string_type_p): New member function,
452 implementation from f_is_string_type_p.
453 * go-lang.c (go_is_string_type_p): Delete function, implementation
454 moved to go_language::is_string_type_p.
455 (go_language_data): Delete la_is_string_type_p initializer.
456 (go_language::is_string_type_p): New member function,
457 implementation from go_is_string_type_p.
458 * language.c (language_defn::is_string_type_p): Define new member
459 function.
460 (default_is_string_type_p): Make static, add comment copied from
461 header file.
462 (unknown_language_data): Delete la_is_string_type_p initializer.
463 (unknown_language::is_string_type_p): New member function.
464 (auto_language_data): Delete la_is_string_type_p initializer.
465 (auto_language::is_string_type_p): New member function.
466 * language.h (language_data): Delete la_is_string_type_p field.
467 (language_defn::is_string_type_p): Declare new function.
468 (default_is_string_type_p): Delete desclaration, move comment to
469 definition.
470 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
471 moved to m2_language::is_string_type_p.
472 (m2_language_data): Delete la_is_string_type_p initializer.
473 (m2_language::is_string_type_p): New member function,
474 implementation from m2_is_string_type_p.
475 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
476 initializer.
477 * opencl-lang.c (opencl_language_data): Likewise.
478 * p-lang.c (pascal_is_string_type_p): Delete function,
479 implementation moved to pascal_language::is_string_type_p.
480 (pascal_language_data): Delete la_is_string_type_p initializer.
481 (pascal_language::is_string_type_p): New member function,
482 implementation from pascal_is_string_type_p.
483 * rust-lang.c (rust_is_string_type_p): Delete function,
484 implementation moved to rust_language::is_string_type_p.
485 (rust_language_data): Delete la_is_string_type_p initializer.
486 (rust_language::is_string_type_p): New member function,
487 implementation from rust_is_string_type_p.
488 * valprint.c (val_print_scalar_or_string_type_p): Update call to
489 is_string_type_p.
490
491 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
492
493 * ada-lang.c (ada_language_data): Delete la_print_typedef
494 initializer.
495 (ada_language::print_typedef): New member function.
496 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
497 (cplus_language_data): Likewise.
498 (asm_language_data): Likewise.
499 (minimal_language_data): Likewise.
500 * d-lang.c (d_language_data): Likewise.
501 * f-lang.c (f_language_data): Likewise.
502 (f_language::print_typedef): New member function.
503 * go-lang.c (go_language_data): Delete la_print_typedef
504 initializer.
505 * language.c (language_defn::print_typedef): Define member
506 function.
507 (unknown_language_data): Delete la_print_typedef initializer.
508 (unknown_language::print_typedef): New member function.
509 (auto_language_data): Delete la_print_typedef initializer.
510 (auto_language::print_typedef): New member function.
511 * language.h (language_data): Delete la_print_typedef field.
512 (language_defn::print_typedef): Declare new member function.
513 (LA_PRINT_TYPEDEF): Update call to print_typedef.
514 (default_print_typedef): Delete declaration.
515 * m2-lang.c (m2_language_data): Delete la_print_typedef
516 initializer.
517 (m2_language::print_typedef): New member function.
518 * objc-lang.c (objc_language_data): Delete la_print_typedef
519 initializer.
520 * opencl-lang.c (opencl_language_data): Likewise.
521 * p-lang.c (pascal_language_data): Likewise.
522 (pascal_language::print_typedef): New member function.
523 * rust-lang.c (rust_print_typedef): Delete function,
524 implementation moved to rust_language::print_typedef.
525 (rust_language): Delete la_print_typedef initializer.
526 (rust_language::print_typedef): New member function,
527 implementation from rust_print_typedef.
528 * typeprint.c (default_print_typedef): Delete.
529
530 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
531
532 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
533 (ada_language::printstr): New member function.
534 * c-lang.c (c_language_data): Delete la_printstr initializer.
535 (cplus_language_data): Likewise.
536 (asm_language_data): Likewise.
537 (minimal_language_data): Likewise.
538 * d-lang.c (d_language_data): Likewise.
539 * f-lang.c (f_printstr): Rename to f_language::printstr.
540 (f_language_data): Delete la_printstr initializer.
541 (f_language::printstr): New member function, implementation from
542 f_printstr.
543 * go-lang.c (go_language_data): Delete la_printstr initializer.
544 * language.c (language_defn::printstr): Define new member
545 function.
546 (unk_lang_printstr): Delete.
547 (unknown_language_data): Delete la_printstr initializer.
548 (unknown_language::printstr): New member function.
549 (auto_language_data): Delete la_printstr initializer.
550 (auto_language::printstr): New member function.
551 * language.h (language_data): Delete la_printstr field.
552 (language_defn::printstr): Declare new member function.
553 (LA_PRINT_STRING): Update call to printstr.
554 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
555 (m2_language_data): Delete la_printstr initializer.
556 (m2_language::printstr): New member function, implementation from
557 m2_printstr.
558 * objc-lang.c (objc_language_data): Delete la_printstr
559 initializer.
560 * opencl-lang.c (opencl_language_data): Likewise.
561 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
562 (pascal_language_data): Delete la_printstr initializer.
563 (pascal_language::printstr): New member function, implementation
564 from pascal_printstr.
565 * p-lang.h (pascal_printstr): Delete declaration.
566 * rust-lang.c (rust_printstr): Update header comment.
567 (rust_language_data): Delete la_printstr initializer.
568 (rust_language::printstr): New member function.
569
570 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
571
572 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
573 (ada_language::printchar): New member function.
574 * c-lang.c (c_language_data): Delete la_printchar initializer.
575 (cplus_language_data): Likewise.
576 (asm_language_data): Likewise.
577 (minimal_language_data): Likewise.
578 * d-lang.c (d_language_data): Likewise.
579 * f-lang.c (f_printchar): Rename to f_language::printchar.
580 (f_language_data): Delete la_printchar initializer.
581 (f_language::printchar): New member function, implementation from
582 f_printchar.
583 * go-lang.c (go_language_data): Delete la_printchar initializer.
584 * language.c (unk_lang_printchar): Delete.
585 (language_defn::printchar): Define new member function.
586 (unknown_language_data): Delete la_printchar initializer.
587 (unknown_language::printchar): New member function.
588 (auto_language_data): Delete la_printchar initializer.
589 (auto_language::printchar): New member function.
590 * language.h (language_data): Delete la_printchar field.
591 (language_defn::printchar): Declare new member function.
592 (LA_PRINT_CHAR): Update call to printchar.
593 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
594 (m2_language::printchar): New member function.
595 * objc-lang.c (objc_language_data): Delete la_printchar
596 initializer.
597 * opencl-lang.c (opencl_language_data): Likewise.
598 * p-lang.c (pascal_language_data): Delete la_printchar
599 initializer.
600 (pascal_language::printchar): New member function.
601 * rust-lang.c (rust_printchar): Rename to
602 rust_language::printchar.
603 (rust_language_data): Delete la_printchar initializer.
604 (rust_language::printchar): New member function, implementation
605 from rust_printchar.
606
607 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
608
609 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
610 (ada_language_data): Delete la_emitchar initializer.
611 (ada_language::emitchar): New member function, implementation from
612 emit_char.
613 * c-lang.c (c_language_data): Delete la_emitchar 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_emit_char): Rename to f_language::emitchar.
619 (f_language_data): Delete la_emitchar initializer.
620 (f_language::emitchar): New member function, implementation from
621 f_emit_char.
622 * go-lang.c (go_language_data): Delete la_emitchar initializer.
623 * language.c (unk_lang_emit_char): Delete.
624 (language_defn::emitchar): New member function definition.
625 (unknown_language_data): Delete la_emitchar initializer.
626 (unknown_language::emitchar): New member function.
627 (auto_language_data): Delete la_emitchar initializer.
628 (auto_language::emitchar): New member function.
629 * language.h (language_data): Delete la_emitchar field.
630 (language_defn::emitchar): New member field declaration.
631 (LA_EMIT_CHAR): Update call to emitchar.
632 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
633 (m2_language_data): Delete la_emitchar initializer.
634 (m2_language::emitchar): New member function, implementation from
635 m2_emit_char.
636 * objc-lang.c (objc_language_data): Delete la_emitchar
637 initializer.
638 * opencl-lang.c (opencl_language_data): Likewise.
639 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
640 (pascal_language_data): Delete la_emitchar initializer.
641 (pascal_language::emitchar): New member function, implementation
642 from pascal_emit_char.
643 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
644 (rust_language_data): Delete la_emitchar initializer.
645 (rust_language::emitchar): New member function, implementation
646 from rust_emitchar.
647
648 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
649
650 * ada-lang.c (resolve): Rename to ada_language::post_parser.
651 (ada_language_data): Delete la_post_parser initializer.
652 (ada_language::post_parser): New member function.
653 * c-lang.c (c_language_data): Delete la_post_parser initializer.
654 (cplus_language_data): Likewise.
655 (asm_language_data): Likewise.
656 (minimal_language_data): Likewise.
657 * d-lang.c (d_language_data): Likewise.
658 * f-lang.c (f_language_data): Likewise.
659 * go-lang.c (go_language_data): Likewise.
660 * language.c (unknown_language_data): Likewise.
661 (auto_language_data): Likewise.
662 * language.h (language_data): Delete la_post_parser field.
663 (language_defn::post_parser): New member function.
664 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
665 * objc-lang.c (objc_language_data): Likewise.
666 * opencl-lang.c (opencl_language_data): Likewise.
667 * p-lang.c (pascal_language_data): Likewise.
668 * parse.c (parse_exp_in_context): Update call to post_parser.
669 (null_post_parser): Delete definition.
670 * parser-defs.h (null_post_parser): Delete declaration.
671 * rust-lang.c (rust_language_data): Delete la_post_parser
672 initializer.
673
674 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
675
676 * ada-lang.c (parse): Rename to ada_language::parser.
677 (ada_language_data): Delete la_parser initializer.
678 (ada_language::parser): New member function, implementation from
679 parse.
680 * c-lang.c (c_language_data): Delete la_parser initializer.
681 (cplus_language_data): Likewise.
682 (asm_language_data): Likewise.
683 (minimal_language_data): Likewise.
684 * d-lang.c (d_language_data): Likewise.
685 (d_language::parser): New member function.
686 * f-lang.c (f_language_data): Delete la_parser initializer.
687 (f_language::parser): New member function.
688 * go-lang.c (go_language_data): Delete la_parser initializer.
689 (go_language::parser): New member function.
690 * language.c (unk_lang_parser): Delete.
691 (language_defn::parser): Define new member function.
692 (unknown_language_data): Delete la_parser initializer.
693 (unknown_language::parser): New member function.
694 (auto_language_data): Delete la_parser initializer.
695 (auto_language::parser): New member function.
696 * language.h (language_data): Delete la_parser field.
697 (language_defn::parser): Declare new member function.
698 * m2-lang.c (m2_language_data): Delete la_parser initializer.
699 (m2_language::parser): New member function.
700 * objc-lang.c (objc_language_data): Delete la_parser initializer.
701 * opencl-lang.c (opencl_language_data): Likewise.
702 * p-lang.c (pascal_language_data): Likewise.
703 (pascal_language::parser): New member function.
704 * parse.c (parse_exp_in_context): Update call to parser.
705 * rust-lang.c (rust_language_data): Delete la_parser initializer.
706 (rust_language::parser): New member function.
707
708 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
709
710 * top.c (print_gdb_configuration): Print --with-python-libdir
711 configuration value.
712
713 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
714
715 * NEWS: Mention change to the alias command.
716
717 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
718
719 * cli/cli-cmds.c (lookup_cmd_for_default_args)
720 (alias_command_completer)
721 (make_alias_options_def_group): New functions.
722 (alias_opts, alias_option_defs): New struct and array.
723 (alias_usage_error): Update usage.
724 (alias_command): Handles optional DEFAULT-ARGS... arguments.
725 Use option framework.
726 (_initialize_cli_cmds): Update alias command help.
727 Update aliases command help.
728 (show_user):
729 Add NULL for new default_args lookup_cmd argument.
730 (valid_command_p): Rename to validate_aliased_command.
731 Add NULL for new default_args lookup_cmd argument. Verify that the
732 aliased_command has no default args.
733 * cli/cli-decode.c (help_cmd): Show aliases definitions.
734 (lookup_cmd_1, lookup_cmd): New argument default_args.
735 (add_alias_cmd):
736 Add NULL for new default_args lookup_cmd argument.
737 (print_help_for_command): Show default args under the layout
738 alias some_alias = some_aliased_cmd some_alias_default_arg.
739 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
740 xfree default_args in destructor.
741 * cli/cli-script.c (process_next_line, do_define_command):
742 Add NULL for new default_args lookup_cmd argument.
743 * command.h: Declare new default_args argument in lookup_cmd
744 and lookup_cmd_1.
745 * completer.c (complete_line_internal_1):
746 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
747 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
748 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
749 Likewise.
750 * infcmd.c (_initialize_infcmd): Likewise.
751 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
752 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
753 * python/py-param.c (add_setshow_generic): Likewise.
754 * remote.c (_initialize_remote): Likewise.
755 * top.c (execute_command): Prepend default_args if command has some.
756 (set_verbose):
757 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
758 * tracepoint.c (validate_actionline, encode_actions_1):
759 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
760
761 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
762
763 * jit.c (jit_read_descriptor): Use bool as the return type.
764 (jit_breakpoint_re_set_internal): Use bool as the return type.
765 Invert the return value logic; return true if the jit breakpoint
766 has been successfully initialized.
767 (jit_inferior_init): Update the call to
768 jit_breakpoint_re_set_internal.
769
770 2020-06-22 Pedro Alves <palves@redhat.com>
771
772 PR gdb/25939
773 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
774 Use the current inferior instead. Don't return
775 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
776 wait again.
777 * sol-thread.c (sol_thread_target::wait): Don't reference
778 inferior_ptid.
779 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
780 (sol_update_thread_list_callback): Use the current inferior's pid
781 instead of inferior_ptid.
782
783 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
784
785 * procfs.c: Cleanup many comments.
786
787 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
788 (AFTER_WATCHFLAG): Replace by value.
789
790 (MAIN_PROC_NAME_FORMAT): Inline ...
791 (create_procinfo): ... here.
792
793 (procfs_debug_inferior): Remove SYS_exec handling.
794 (syscall_is_exec): Likewise.
795 (procfs_set_exec_trap): Likewise.
796
797 (syscall_is_lwp_exit): Inline in callers.
798 (syscall_is_exit): Likewise.
799 (syscall_is_exec): Likewise.
800 (syscall_is_lwp_create): Likewise.
801
802 (invalidate_cache): Remove #if 0 code.
803
804 (make_signal_thread_runnable): Remove.
805 (procfs_target::resume): Remove #if 0 code.
806
807 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
808
809 PR gdb/25939
810 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
811 call ...
812 (procfs_target::create_inferior): ... here.
813
814 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
815
816 * exec.c (validate_exec_file): Ensure the build-id is up to
817 date by calling reopen_exec_file (that checks file timestamp
818 to decide to re-read the file).
819
820 2020-06-18 Pedro Alves <palves@redhat.com>
821
822 PR gdb/25412
823 * gdbthread.h (delete_thread, delete_thread_silent)
824 (find_thread_ptid): Update comments.
825 * thread.c (current_thread_): New global.
826 (is_current_thread): Move higher, and reimplement.
827 (inferior_thread): Reimplement.
828 (set_thread_exited): Use bool. Add assertions.
829 (add_thread_silent): Simplify thread-reuse handling by always
830 calling delete_thread.
831 (delete_thread): Remove intro comment.
832 (find_thread_ptid): Skip exited threads.
833 (switch_to_thread_no_regs): Write to current_thread_.
834 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
835 INFERIOR_PTID. Clear current_thread_.
836
837 2020-06-18 Pedro Alves <palves@redhat.com>
838
839 * aix-thread.c (pd_update): Use switch_to_thread.
840
841 2020-06-18 Pedro Alves <palves@redhat.com>
842
843 * ravenscar-thread.c (ravenscar_thread_target): Update.
844 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
845 (ravenscar_thread_target::add_active_thread): ... this. Don't
846 set m_base_ptid here. Update to avoid referencing inferior_ptid.
847 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
848
849 2020-06-18 Pedro Alves <palves@redhat.com>
850
851 * nat/windows-nat.c (current_windows_thread): Remove.
852 * nat/windows-nat.h (current_windows_thread): Remove.
853 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
854 Adjust.
855 (display_selectors): Adjust to fetch the current
856 windows_thread_info based on inferior_ptid.
857 (fake_create_process): No longer write to current_windows_thread.
858 (windows_nat_target::get_windows_debug_event):
859 Don't set inferior_ptid or current_windows_thread.
860 (windows_nat_target::wait): Adjust to not rely on
861 current_windows_thread.
862 (do_initial_windows_stuff): Now a method of windows_nat_target.
863 Switch to the last_ptid thread.
864 (windows_nat_target::attach): Adjust.
865 (windows_nat_target::detach): Use switch_to_no_thread instead of
866 writing to inferior_ptid directly.
867 (windows_nat_target::create_inferior): Adjust.
868
869 2020-06-18 Pedro Alves <palves@redhat.com>
870
871 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
872
873 2020-06-18 Pedro Alves <palves@redhat.com>
874
875 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
876 after creating it, instead of writing to inferior_ptid. Don't
877 write to inferior_ptid.
878
879 2020-06-18 Pedro Alves <palves@redhat.com>
880
881 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
882
883 2020-06-18 Pedro Alves <palves@redhat.com>
884
885 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
886 it, instead of writing to inferior_ptid.
887
888 2020-06-18 Pedro Alves <palves@redhat.com>
889
890 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
891 to inferior_ptid.
892
893 2020-06-18 Pedro Alves <palves@redhat.com>
894
895 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
896 instead of writing to inferior_ptid directly.
897
898 2020-06-18 Pedro Alves <palves@redhat.com>
899
900 * corelow.c (core_target::close): Use switch_to_no_thread instead
901 of writing to inferior_ptid directly.
902 (add_to_thread_list, core_target_open): Use switch_to_thread
903 instead of writing to inferior_ptid directly.
904
905 2020-06-18 Pedro Alves <palves@redhat.com>
906
907 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
908 inferior_ptid.
909 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
910 inferior_ptid.
911 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
912 inferior_ptid directly.
913 (darwin_nat_target::init_thread_list): Switch to thread, instead
914 of writing to inferior_ptid.
915 (darwin_nat_target::attach): Don't write to inferior_ptid.
916 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
917
918 2020-06-18 Pedro Alves <palves@redhat.com>
919
920 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
921 thread.
922 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
923 Instead use switch_to_thread.
924 (gnu_nat_target::detach): Use switch_to_no_thread
925 instead of writing to inferior_ptid directly. Used passed-in
926 inferior instead of looking up the inferior by pid.
927
928 2020-06-18 Pedro Alves <palves@redhat.com>
929
930 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
931 inferior_ptid.
932
933 2020-06-18 Pedro Alves <palves@redhat.com>
934
935 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
936 inferior_ptid.
937 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
938 thread.
939 (nto_procfs_target::detach): Avoid referencing
940 inferior_ptid. Use switch_to_no_thread instead of writing to
941 inferior_ptid directly.
942 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
943 instead of writing to inferior_ptid directly.
944 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
945 to thread.
946
947 2020-06-18 Pedro Alves <palves@redhat.com>
948
949 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
950 after creating it, instead of writing to inferior_ptid.
951 (gdbsim_target_open): Use switch_to_no_thread instead of writing
952 to inferior_ptid directly.
953 (gdbsim_target::wait): Don't write to inferior_ptid.
954
955 2020-06-18 Pedro Alves <palves@redhat.com>
956
957 * remote.c (remote_target::remote_notice_new_inferior): Use
958 switch_to_thread instead of writing to inferior_ptid directly.
959 (remote_target::add_current_inferior_and_thread): Use
960 switch_to_no_thread instead of writing to inferior_ptid directly.
961 (extended_remote_target::attach): Use switch_to_inferior_no_thread
962 and switch_to_thread instead of using set_current_inferior or
963 writing to inferior_ptid directly.
964
965 2020-06-18 Pedro Alves <palves@redhat.com>
966
967 * tracectf.c (ctf_target_open): Switch to added thread instead of
968 writing to inferior_ptid directly.
969 (ctf_target::close): Use switch_to_no_thread instead of writing to
970 inferior_ptid directly.
971
972 2020-06-18 Pedro Alves <palves@redhat.com>
973
974 * tracefile-tfile.c (tfile_target_open): Don't write to
975 inferior_ptid directly, instead switch to added thread.
976 (tfile_target::close): Use switch_to_no_thread instead of writing
977 to inferior_ptid directly.
978
979 2020-06-18 Pedro Alves <palves@redhat.com>
980
981 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
982 (procfs_target::detach): Use switch_to_no_thread
983 instead of writing to inferior_ptid directly.
984 (do_attach): Change return type to void. Switch to the added
985 thread.
986 (procfs_target::create_inferior): Switch to the added thread.
987 (procfs_do_thread_registers): Don't write to inferior_ptid.
988
989 2020-06-18 Pedro Alves <palves@redhat.com>
990
991 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
992 of writing to inferior_ptid.
993 (scoped_restore_exited_inferior): Delete.
994 (handle_vfork_child_exec_or_exit): Simplify using
995 scoped_restore_current_pspace_and_thread. Use switch_to_thread
996 instead of writing to inferior_ptid.
997 (THREAD_STOPPED_BY): Delete.
998 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
999 (thread_stopped_by_hw_breakpoint): Delete.
1000 (save_waitstatus): Use
1001 scoped_restore_current_thread+switch_to_thread, and call
1002 target_stopped_by_watchpoint instead of
1003 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1004 instead of thread_stopped_by_sw_breakpoint, and
1005 target_stopped_by_hw_breakpoint instead of
1006 thread_stopped_by_hw_breakpoint.
1007 (handle_inferior_event)
1008 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1009 inferior_ptid directly, nor
1010 set_current_inferior/set_current_program_space. Use
1011 switch_to_thread / switch_to_inferior_no_thread instead.
1012
1013 2020-06-18 Pedro Alves <palves@redhat.com>
1014
1015 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1016 instead of writing to inferior_ptid.
1017
1018 2020-06-18 Pedro Alves <palves@redhat.com>
1019
1020 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1021 added thread.
1022 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1023 to the added thread.
1024 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1025 instead of writing to inferior_ptid.
1026
1027 2020-06-18 Pedro Alves <palves@redhat.com>
1028
1029 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1030 (register_to_value_test): Mock a program_space too. Heap-allocate
1031 the address space. Don't write to inferior_ptid. Use
1032 switch_to_thread instead.
1033
1034 2020-06-18 Pedro Alves <palves@redhat.com>
1035
1036 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1037 Delete.
1038 (find_signalled_thread()): New, factored out from
1039 linux_make_corefile_notes and adjusted to handle exited threads.
1040 (linux_make_corefile_notes): Adjust to use the new
1041 find_signalled_thread.
1042
1043 2020-06-18 Pedro Alves <palves@redhat.com>
1044
1045 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1046 of saving/restoring inferior_ptid.
1047
1048 2020-06-17 Tom Tromey <tom@tromey.com>
1049
1050 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1051 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1052 declare.
1053 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1054
1055 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
1056
1057 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1058 of partial symtabs.
1059
1060 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1061
1062 * regformats/reg-arm.dat: Remove.
1063 * regformats/reg-bfin.dat: Remove.
1064 * regformats/reg-cris.dat: Remove.
1065 * regformats/reg-crisv32.dat: Remove.
1066 * regformats/reg-m32r.dat: Remove.
1067 * regformats/reg-tilegx.dat: Remove.
1068 * regformats/reg-tilegx32.dat: Remove.
1069
1070 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1071
1072 * features/Makefile (WHICH): Remove arm files.
1073 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1074 * regformats/arm/arm-with-neon.dat: Remove.
1075 * regformats/arm/arm-with-vfpv2.dat: Remove.
1076 * regformats/arm/arm-with-vfpv3.dat: Remove.
1077
1078 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1079
1080 * features/Makefile (XMLTOC): Remove rx.xml.
1081
1082 2020-06-17 Pedro Alves <palves@redhat.com>
1083
1084 * gdbthread.h (thread_control_state) <trap_expected> Update
1085 comments.
1086
1087 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1088
1089 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1090 ada_language::lookup_symbol_nonlocal.
1091 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1092 (ada_language::lookup_symbol_nonlocal): New member function,
1093 implementation from ada_lookup_symbol_nonlocal.
1094 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1095 initializer.
1096 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1097 initializer.
1098 (cplus_language::lookup_symbol_nonlocal): New member function.
1099 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1100 (minimal_language_data) Likewise.
1101 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1102 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1103 initializer.
1104 (d_language::lookup_symbol_nonlocal): New member function.
1105 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1106 initializer.
1107 (f_language::lookup_symbol_nonlocal): New member function.
1108 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1109 initializer.
1110 * language.c (unknown_language_data): Likewise.
1111 (auto_language_data): Likewise.
1112 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1113 field.
1114 (language_defn::lookup_symbol_nonlocal): New member function.
1115 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1116 initializer.
1117 * objc-lang.c (objc_language_data): Likewise.
1118 * opencl-lang.c (opencl_language_data): Likewise.
1119 * p-lang.c (pascal_language_data): Likewise.
1120 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1121 rust_language::lookup_symbol_nonlocal.
1122 (rust_language_data): Delete la_lookup_symbol_nonlocal
1123 initializer.
1124 (rust_language::lookup_symbol_nonlocal): New member function,
1125 implementation from rust_lookup_symbol_nonlocal.
1126 * symtab.c (lookup_symbol_aux): Update call to
1127 lookup_symbol_nonlocal.
1128 (basic_lookup_symbol_nonlocal): Rename to...
1129 (language_defn::lookup_symbol_nonlocal): ...this, and update
1130 header comment. Remove language_defn parameter, and replace with
1131 uses of `this'.
1132 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1133
1134 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1135
1136 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1137 initializer.
1138 (ada_language::value_print_inner): New member function.
1139 * c-lang.c (c_language_data): Delete la_value_print_inner
1140 initializer.
1141 (cplus_language_data): Likewise.
1142 (asm_language_data): Likewise.
1143 (minimal_language_data): Likewise.
1144 * d-lang.c (d_language_data): Likewise.
1145 (d_language::value_print_inner): New member function.
1146 * f-lang.c (f_language_data): Delete la_value_print_inner
1147 initializer.
1148 (f_language::value_print_inner): New member function.
1149 * f-lang.h (f_value_print_innner): Rename to...
1150 (f_value_print_inner): ...this (note spelling of 'inner').
1151 * f-valprint.c (f_value_print_innner): Rename to...
1152 (f_value_print_inner): ...this (note spelling of 'inner').
1153 * go-lang.c (go_language_data): Delete la_value_print_inner
1154 initializer.
1155 (go_language::value_print_inner): New member function.
1156 * language.c (language_defn::value_print_inner): Define new member
1157 function.
1158 (unk_lang_value_print_inner): Delete.
1159 (unknown_language_data): Delete la_value_print_inner initializer.
1160 (unknown_language::value_print_inner): New member function.
1161 (auto_language_data): Delete la_value_print_inner initializer.
1162 (auto_language::value_print_inner): New member function.
1163 * language.h (language_data): Delete la_value_print_inner field.
1164 (language_defn::value_print_inner): Delcare new member function.
1165 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1166 initializer.
1167 (m2_language::value_print_inner): New member function.
1168 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1169 initializer.
1170 * opencl-lang.c (opencl_language_data): Likewise.
1171 * p-lang.c (pascal_language_data): Likewise.
1172 (pascal_language::value_print_inner): New member function.
1173 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1174 initializer.
1175 (rust_language::value_print_inner): New member function.
1176 * valprint.c (do_val_print): Update call to value_print_inner.
1177
1178 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1179
1180 * ada-lang.c (ada_language_data): Delete la_value_print
1181 initializer.
1182 (ada_language::value_print): New member function.
1183 * c-lang.c (c_language_data): Delete la_value_print initializer.
1184 (cplus_language_data): Likewise.
1185 (asm_language_data): Likewise.
1186 (minimal_language_data): Likewise.
1187 * d-lang.c (d_language_data): Likewise.
1188 * f-lang.c (f_language_data): Likewise.
1189 * go-lang.c (go_language_data): Likewise.
1190 * language.c (unk_lang_value_print): Delete.
1191 (language_defn::value_print): Define new member function.
1192 (unknown_language_data): Delete la_value_print initializer.
1193 (unknown_language::value_print): New member function.
1194 (auto_language_data): Delete la_value_print initializer.
1195 (auto_language::value_print): New member function.
1196 * language.h (language_data): Delete la_value_print field.
1197 (language_defn::value_print): Declare new member function.
1198 (LA_VALUE_PRINT): Update call to value_print.
1199 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1200 * objc-lang.c (objc_language_data): Likewise.
1201 * opencl-lang.c (opencl_language_data): Likewise.
1202 * p-lang.c (pascal_language_data): Likewise.
1203 (pascal_language::value_print): New member function.
1204 * rust-lang.c (rust_language_data): Delete la_value_print
1205 initializer.
1206
1207 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1208
1209 * ada-lang.c (ada_watch_location_expression): Rename to
1210 ada_language::watch_location_expression.
1211 (ada_language_data): Delete la_watch_location_expression
1212 initializer.
1213 (ada_language::watch_location_expression): New member function,
1214 implementation from ada_watch_location_expression.
1215 * breakpoint.c (watch_command_1): Update call to
1216 watch_location_expression.
1217 * c-lang.c (c_watch_location_expression): Rename to
1218 language_defn::watch_location_expression.
1219 (c_language_data): Delete la_watch_location_expression
1220 initializer.
1221 (cplus_language_data): Likewise.
1222 (asm_language_data): Likewise.
1223 (minimal_language_data): Likewise.
1224 * c-lang.h (c_watch_location_expression): Delete declaration.
1225 * d-lang.c (d_language_data): Delete la_watch_location_expression
1226 initializer.
1227 * f-lang.c (f_language_data): Likewise.
1228 * go-lang.c (go_language_data): Likewise.
1229 * language.c (language_defn::watch_location_expression): Member
1230 function implementation from c_watch_location_expression.
1231 (unknown_language_data): Delete la_watch_location_expression
1232 initializer.
1233 (auto_language_data): Likewise.
1234 * language.h (language_data): Delete la_watch_location_expression
1235 field.
1236 (language_defn::watch_location_expression): Declare new member
1237 function.
1238 * m2-lang.c (m2_language_data): Delete
1239 la_watch_location_expression initializer.
1240 * objc-lang.c (objc_language_data): Likewise.
1241 * opencl-lang.c (opencl_language_data): Likewise.
1242 * p-lang.c (pascal_language_data): Likewise.
1243 * rust-lang.c (rust_watch_location_expression): Rename to
1244 rust_language::watch_location_expression.
1245 (rust_language_data): Delete la_watch_location_expression
1246 initializer.
1247 (rust_language::watch_location_expression): New member function,
1248 implementation from rust_watch_location_expression.
1249
1250 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1251
1252 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1253 ada_language::collect_symbol_completion_matches.
1254 (ada_language_data): Delete la_collect_symbol_completion_matches
1255 initializer.
1256 (ada_language::collect_symbol_completion_matches): New member
1257 function, implementation from
1258 ada_collect_symbol_completion_matches.
1259 * c-lang.c (c_language_data): Delete
1260 la_collect_symbol_completion_matches initializer.
1261 (cplus_language_data): Likewise.
1262 (asm_language_data): Likewise.
1263 (minimal_language_data): Likewise.
1264 * d-lang.c (d_language_data): Likewise.
1265 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1266 f_language::collect_symbol_completion_matches.
1267 (f_language_data): Delete la_collect_symbol_completion_matches
1268 initializer.
1269 (f_language::collect_symbol_completion_matches) New member
1270 function, implementation from f_collect_symbol_completion_matches.
1271 * go-lang.c (go_language_data): Delete
1272 la_collect_symbol_completion_matches initializer.
1273 * language.c (unknown_language_data): Likewise.
1274 (auto_language_data): Likewise.
1275 * language.h (language_data): Delete
1276 la_collect_symbol_completion_matches field.
1277 (language_defn::collect_symbol_completion_matches): New member
1278 function.
1279 * m2-lang.c (m2_language_data): Delete
1280 la_collect_symbol_completion_matches initializer.
1281 * objc-lang.c (objc_language_data): Likewise.
1282 * opencl-lang.c (opencl_language_data): Likewise.
1283 * p-lang.c (pascal_language_data): Likewise.
1284 * rust-lang.c (rust_language_data): Likewise.
1285 * symtab.c (default_collect_symbol_completion_matches): Delete.
1286 (collect_symbol_completion_matches): Update call to
1287 collect_symbol_completion_matches.
1288 (collect_symbol_completion_matches_type): Likewise.
1289 * symtab.h (default_collect_symbol_completion_matches): Delete
1290 declaration.
1291
1292 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1293
1294 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1295 (ada_language_data): Delete la_word_break_characters initializer.
1296 (ada_language::word_break_characters): New member function.
1297 * c-lang.c (c_language_data): Delete la_word_break_characters
1298 initializer.
1299 (cplus_language_data): Likewise.
1300 (asm_language_data): Likewise.
1301 (minimal_language_data): Likewise.
1302 * completer.c: Update global comment.
1303 (advance_to_expression_complete_word_point): Update call to
1304 word_break_characters.
1305 (complete_files_symbols): Likewise.
1306 (complete_line_internal_1): Likewise.
1307 (default_completer_handle_brkchars): Likewise.
1308 (skip_quoted_chars): Likewise.
1309 * d-lang.c (d_language_data): Delete la_word_break_characters
1310 initializer.
1311 * f-lang.c (f_word_break_characters): Delete.
1312 (f_language_data): Delete la_word_break_characters initializer.
1313 (f_language::word_break_characters): New member function.
1314 * go-lang.c (go_language_data): Delete la_word_break_characters
1315 initializer.
1316 * language.c (unknown_language_data): Likewise.
1317 (auto_language_data): Likewise.
1318 * language.h (default_word_break_characters): Move declaration to
1319 earlier in the file.
1320 (language_data): Delete la_word_break_characters field.
1321 (language_defn::word_break_characters): New member function.
1322 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1323 initializer.
1324 * objc-lang.c (objc_language_data): Likewise.
1325 * opencl-lang.c (opencl_language_data): Likewise.
1326 * p-lang.c (pascal_language_data): Likewise.
1327 * rust-lang.c (rust_language_data): Likewise.
1328
1329 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1330
1331 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1332 (ada_language_data): Delete la_get_symbol_name_matcher
1333 initializer.
1334 (language_defn::get_symbol_name_matcher_inner): New member
1335 function.
1336 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1337 initializer.
1338 (cplus_language_data): Likewise.
1339 (cplus_language::get_symbol_name_matcher_inner): New member
1340 function.
1341 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1342 (minimal_language_data): Likewise.
1343 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1344 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1345 initializer.
1346 * dictionary.c (iter_match_first_hashed): Update call to
1347 get_symbol_name_matcher.
1348 (iter_match_next_hashed): Likewise.
1349 (iter_match_next_linear): Likewise.
1350 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1351 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1352 initializer.
1353 (f_language::get_symbol_name_matcher_inner): New member function.
1354 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1355 initializer.
1356 * language.c (default_symbol_name_matcher): Update header comment,
1357 make static.
1358 (language_defn::get_symbol_name_matcher): New definition.
1359 (language_defn::get_symbol_name_matcher_inner): Likewise.
1360 (get_symbol_name_matcher): Delete.
1361 (unknown_language_data): Delete la_get_symbol_name_matcher
1362 initializer.
1363 (auto_language_data): Likewise.
1364 * language.h (language_data): Delete la_get_symbol_name_matcher
1365 field.
1366 (language_defn::get_symbol_name_matcher): New member function.
1367 (language_defn::get_symbol_name_matcher_inner): Likewise.
1368 (default_symbol_name_matcher): Delete declaration.
1369 * linespec.c (find_methods): Update call to
1370 get_symbol_name_matcher.
1371 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1372 initializer.
1373 * minsyms.c (lookup_minimal_symbol): Update call to
1374 get_symbol_name_matcher.
1375 (iterate_over_minimal_symbols): Likewise.
1376 * objc-lang.c (objc_language_data): Delete
1377 la_get_symbol_name_matcher initializer.
1378 * opencl-lang.c (opencl_language_data): Likewise.
1379 * p-lang.c (pascal_language_data): Likewise.
1380 * psymtab.c (psymbol_name_matches): Update call to
1381 get_symbol_name_matcher.
1382 * rust-lang.c (rust_language_data): Delete
1383 la_get_symbol_name_matcher initializer.
1384 * symtab.c (symbol_matches_search_name): Update call to
1385 get_symbol_name_matcher.
1386 (compare_symbol_name): Likewise.
1387
1388 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1389
1390 * ada-lang.c (ada_language_data): Delete la_compute_program
1391 initializer.
1392 * c-lang.c (c_language_data): Likewise.
1393 (c_language::compute_program): New member function.
1394 (cplus_language_data): Delete la_compute_program initializer.
1395 (cplus_language::compute_program): New member function.
1396 (asm_language_data): Delete la_compute_program initializer.
1397 (minimal_language_data): Likewise.
1398 * c-lang.h (c_compute_program): Update comment.
1399 (cplus_compute_program): Likewise.
1400 * compile/compile-c-support.c (c_compute_program): Likewise.
1401 (cplus_compute_program): Likewise.
1402 * compile/compile.c (compile_to_object): Update call to
1403 la_compute_program.
1404 * d-lang.c (d_language_data): Delete la_compute_program
1405 initializer.
1406 * f-lang.c (f_language_data): Likewise.
1407 * go-lang.c (go_language_data): Likewise.
1408 * language.c (unknown_language_data): Likewise.
1409 (auto_language_data): Likewise.
1410 * language.h (language_data): Delete la_compute_program field.
1411 (language_defn::compute_program): New member function.
1412 * m2-lang.c (m2_language_data): Delete la_compute_program
1413 initializer.
1414 * objc-lang.c (objc_language_data): Likewise.
1415 * opencl-lang.c (opencl_language_data): Likewise.
1416 * p-lang.c (pascal_language_data): Likewise.
1417 * rust-lang.c (rust_language_data): Likewise.
1418
1419 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1420
1421 * ada-lang.c (ada_language_data) Delete
1422 la_class_name_from_physname initializer.
1423 * c-lang.c (c_language_data): Likewise.
1424 (cplus_language_data): Likewise.
1425 (cplus_language::class_name_from_physname): New member function.
1426 (asm_language_data): Delete la_class_name_from_physname
1427 initializer.
1428 (minimal_language_data): Likewise.
1429 * d-lang.c (d_language_data): Likewise.
1430 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1431 method on language_defn class.
1432 (guess_full_die_structure_name): Likewise.
1433 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1434 initializer.
1435 * go-lang.c (go_language_data): Likewise.
1436 * language.c (language_class_name_from_physname): Delete.
1437 (unk_lang_class_name): Delete.
1438 (unknown_language_data): Delete la_class_name_from_physname
1439 initializer.
1440 (auto_language_data): Likewise.
1441 * language.h (language_data): Delete la_class_name_from_physname
1442 field.
1443 (language_defn::class_name_from_physname): New function.
1444 (language_class_name_from_physname): Delete declaration.
1445 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1446 initializer.
1447 * objc-lang.c (objc_language_data): Likewise.
1448 * opencl-lang.c (opencl_language_data): Likewise.
1449 * p-lang.c (pascal_language_data): Likewise.
1450 * rust-lang.c (rust_language_data): Likewise.
1451
1452 2020-06-16 Tom Tromey <tom@tromey.com>
1453
1454 * tui/tui-data.h (STATUS_NAME): New macro.
1455 * tui/tui-layout.c (tui_remove_some_windows)
1456 (initialize_known_windows, tui_register_window)
1457 (tui_layout_split::remove_windows, initialize_layouts)
1458 (tui_new_layout_command): Don't use hard-coded window names.
1459
1460 2020-06-16 Tom Tromey <tom@tromey.com>
1461
1462 PR tui/25348:
1463 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1464 tui_initialize_readline. Only run once. Call rl_initialize.
1465 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1466 tui_initialize_readline.
1467 * tui/tui-io.c (tui_setup_io): Call
1468 tui_ensure_readline_initialized.
1469 * tui/tui-interp.c (tui_interp::init): Update.
1470
1471 2020-06-16 Tom Tromey <tom@tromey.com>
1472
1473 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1474 Also preserve the status window.
1475
1476 2020-06-16 Tom Tromey <tom@tromey.com>
1477
1478 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1479 where m_window==nullptr.
1480
1481 2020-06-15 Tom Tromey <tromey@adacore.com>
1482
1483 * windows-nat.c (windows_nat::handle_output_debug_string):
1484 Update.
1485 (windows_nat::handle_ms_vc_exception): Update.
1486 * target.h (target_read_string): Change API.
1487 * target.c (target_read_string): Change API.
1488 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1489 Update.
1490 * solib-frv.c (frv_current_sos): Update.
1491 * solib-dsbt.c (dsbt_current_sos): Update.
1492 * solib-darwin.c (darwin_current_sos): Update.
1493 * linux-thread-db.c (inferior_has_bug): Update.
1494 * expprint.c (print_subexp_standard): Update.
1495 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1496 (ada_exception_message_1): Update.
1497
1498 2020-06-15 Tom Tromey <tromey@adacore.com>
1499
1500 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1501
1502 2020-06-15 Tom Tromey <tromey@adacore.com>
1503
1504 * valprint.c (read_string): Update comment.
1505 * target.c (MIN): Remove.
1506 (target_read_string): Rewrite.
1507
1508 2020-06-15 Tom Tromey <tromey@adacore.com>
1509
1510 * corefile.c (read_memory_string): Remove.
1511 * ada-valprint.c (ada_value_print_ptr): Update.
1512 * ada-lang.h (ada_tag_name): Change return type.
1513 * ada-lang.c (type_from_tag): Update.
1514 (ada_tag_name_from_tsd): Change return type. Use
1515 target_read_string.
1516 (ada_tag_name): Likewise.
1517 * gdbcore.h (read_memory_string): Don't declare.
1518
1519 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
1520
1521 * symtab.c (rbreak_command): Ignore Windows drive colon.
1522
1523 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
1524
1525 * NEWS: Mention removed GDBserver host support.
1526
1527 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
1528
1529 * features/riscv/rebuild-csr-xml.sh: Updated.
1530
1531 2020-06-11 Tom Tromey <tom@tromey.com>
1532
1533 PR gdb/18318:
1534 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1535
1536 2020-06-09 Jonny Grant <jg@jguk.org>
1537 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1538
1539 * main.c (captured_main_1): Don't print new line after help.
1540 (print_gdb_help): add mailing list and IRC channel information
1541 to --help. Add new lines between items in the footer. Remove
1542 quotes around bug url.
1543
1544 2020-06-11 Keith Seitz <keiths@redhat.com>
1545
1546 PR gdb/21356
1547 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1548 Resolve typedefs for type length calculations.
1549
1550 2020-06-10 Tom de Vries <tdevries@suse.de>
1551
1552 PR ada/24713
1553 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1554 (write_psymbols): Enable .gdb_index for ada.
1555 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1556 ada.
1557
1558 2020-06-10 Tom de Vries <tdevries@suse.de>
1559
1560 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1561 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1562 namei" instead of "const char *name" argument.
1563 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1564 dw2_symtab_iter_init.
1565
1566 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
1567
1568 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1569 to use type::field and field::type instead.
1570
1571 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
1572
1573 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1574 to use field::type instead.
1575
1576 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
1577
1578 * gdbtypes.h (struct field) <type, set_type>: New methods.
1579 Rename `type` field to...
1580 <m_type>: ... this. Change references throughout to use type or
1581 set_type methods.
1582 (FIELD_TYPE): Use field::type. Change call sites that modify
1583 the field's type to use field::set_type instead.
1584
1585 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
1586
1587 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1588 to use type::index_type instead.
1589
1590 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
1591
1592 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1593 methods.
1594 (TYPE_INDEX_TYPE): Use type::index_type.
1595 * gdbtypes.c (create_array_type_with_stride): Likewise.
1596
1597 2020-06-07 Tom Tromey <tom@tromey.com>
1598
1599 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1600 parameter.
1601 (generic_value_print): Update.
1602
1603 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1604
1605 Revert commit 982a38f60b0.
1606 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1607
1608 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1609
1610 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1611 avoid use after free.
1612
1613 2020-06-05 Tom de Vries <tdevries@suse.de>
1614
1615 * NEWS: Fix typos.
1616
1617 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
1618
1619 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1620 the per_bfd object.
1621 (dwarf2_read_debug_names): Likewise.
1622 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1623 object when re-using a per_bfd object with an index.
1624
1625 2020-06-03 Tom de Vries <tdevries@suse.de>
1626
1627 PR symtab/26046
1628 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1629 children for C++.
1630 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1631 DW_TAG_subprogram.
1632
1633 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1634
1635 * ada-lang.c (ada_language_data): Delete skip_trampoline
1636 initializer.
1637 * c-lang.c (c_language_data): Likewise.
1638 (cplus_language_data): Likewise.
1639 (cplus_language::skip_trampoline): New member function.
1640 (asm_language_data): Delete skip_trampoline initializer.
1641 (minimal_language_data): Likewise.
1642 * d-lang.c (d_language_data): Likewise.
1643 * f-lang.c (f_language_data): Likewise.
1644 * go-lang.c (go_language_data): Likewise.
1645 * language.c (unk_lang_trampoline): Delete function.
1646 (skip_language_trampoline): Update.
1647 (unknown_language_data): Delete skip_trampoline initializer.
1648 (auto_language_data): Likewise.
1649 * language.h (language_data): Delete skip_trampoline field.
1650 (language_defn::skip_trampoline): New function.
1651 * m2-lang.c (m2_language_data): Delete skip_trampoline
1652 initializer.
1653 * objc-lang.c (objc_skip_trampoline): Delete function, move
1654 implementation to objc_language::skip_trampoline.
1655 (objc_language_data): Delete skip_trampoline initializer.
1656 (objc_language::skip_trampoline): New member function with
1657 implementation from objc_skip_trampoline.
1658 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1659 initializer.
1660 * p-lang.c (pascal_language_data): Likewise.
1661 * rust-lang.c (rust_language_data): Likewise.
1662
1663 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1664
1665 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1666 (ada_language::demangle): New member function.
1667 * c-lang.c (c_language_data): Delete la_demangle initializer.
1668 (cplus_language_data): Delete la_demangle initializer.
1669 (cplus_language::demangle): New member function.
1670 (asm_language_data): Delete la_demangle initializer.
1671 (minimal_language_data): Delete la_demangle initializer.
1672 * d-lang.c (d_language_data): Delete la_demangle initializer.
1673 (d_language::demangle): New member function.
1674 * f-lang.c (f_language_data): Delete la_demangle initializer.
1675 (f_language::demangle): New member function.
1676 * go-lang.c (go_language_data): Delete la_demangle initializer.
1677 (go_language::demangle): New member function.
1678 * language.c (language_demangle): Update.
1679 (unk_lang_demangle): Delete.
1680 (unknown_language_data): Delete la_demangle initializer.
1681 (unknown_language::demangle): New member function.
1682 (auto_language_data): Delete la_demangle initializer.
1683 (auto_language::demangle): New member function.
1684 * language.h (language_data): Delete la_demangle field.
1685 (language_defn::demangle): New function.
1686 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1687 * objc-lang.c (objc_language_data): Delete la_demangle
1688 initializer.
1689 (objc_language::demangle): New member function.
1690 * opencl-lang.c (opencl_language_data): Delete la_demangle
1691 initializer.
1692 * p-lang.c (pascal_language_data): Likewise.
1693 * rust-lang.c (rust_language_data): Likewise.
1694 (rust_language::demangle): New member function.
1695
1696 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1697
1698 * ada-lang.c (ada_language_data): Delete la_print_type
1699 initializer.
1700 (ada_language::print_type): New member function.
1701 * c-lang.c (c_language_data): Delete la_print_type initializer.
1702 (c_language::print_type): New member function.
1703 (cplus_language_data): Delete la_print_type initializer.
1704 (cplus_language::print_type): New member function.
1705 (asm_language_data): Delete la_print_type initializer.
1706 (asm_language::print_type): New member function.
1707 (minimal_language_data): Delete la_print_type initializer.
1708 (minimal_language::print_type): New member function.
1709 * d-lang.c (d_language_data): Delete la_print_type initializer.
1710 (d_language::print_type): New member function.
1711 * f-lang.c (f_language_data): Delete la_print_type initializer.
1712 (f_language::print_type): New member function.
1713 * go-lang.c (go_language_data): Delete la_print_type initializer.
1714 (go_language::print_type): New member function.
1715 * language.c (unk_lang_print_type): Delete.
1716 (unknown_language_data): Delete la_print_type initializer.
1717 (unknown_language::print_type): New member function.
1718 (auto_language_data): Delete la_print_type initializer.
1719 (auto_language::print_type): New member function.
1720 * language.h (language_data): Delete la_print_type field.
1721 (language_defn::print_type): New function.
1722 (LA_PRINT_TYPE): Update.
1723 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1724 (m2_language::print_type): New member function.
1725 * objc-lang.c (objc_language_data): Delete la_print_type
1726 initializer.
1727 (objc_language::print_type): New member function.
1728 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1729 to opencl_language::print_type.
1730 (opencl_language_data): Delete la_print_type initializer.
1731 (opencl_language::print_type): New member function, implementation
1732 from opencl_print_type.
1733 * p-lang.c (pascal_language_data): Delete la_print_type
1734 initializer.
1735 (pascal_language::print_type): New member function.
1736 * rust-lang.c (rust_print_type): Delete, implementation moved to
1737 rust_language::print_type.
1738 (rust_language_data): Delete la_print_type initializer.
1739 (rust_language::print_type): New member function, implementation
1740 from rust_print_type.
1741
1742 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1743
1744 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1745 implementation moves to...
1746 (ada_language::sniff_from_mangled_name): ...here. Update return
1747 type.
1748 (ada_language_data): Delete la_sniff_from_mangled_name
1749 initializer.
1750 * c-lang.c (c_language_data): Likewise.
1751 (cplus_language_data): Likewise.
1752 (cplus_language::sniff_from_mangled_name): New member function,
1753 implementation taken from gdb_sniff_from_mangled_name.
1754 (asm_language_data): Delete la_sniff_from_mangled_name
1755 initializer.
1756 (minimal_language_data): Likewise.
1757 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1758 implementation moves to cplus_language::sniff_from_mangled_name.
1759 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1760 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1761 moves to...
1762 (d_language::sniff_from_mangled_name): ...here.
1763 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1764 * f-lang.c (f_language_data): Likewise.
1765 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1766 moves to...
1767 (go_language::sniff_from_mangled_name): ...here.
1768 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1769 * language.c (language_sniff_from_mangled_name): Delete.
1770 (unknown_language_data): Delete la_sniff_from_mangled_name
1771 initializer.
1772 (auto_language_data): Likewise.
1773 * language.h (language_data): Delete la_sniff_from_mangled_name
1774 field.
1775 (language_defn::sniff_from_mangled_name): New function.
1776 (language_sniff_from_mangled_name): Delete declaration.
1777 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1778 field.
1779 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1780 implementation moves to...
1781 (objc_language::sniff_from_mangled_name): ...here.
1782 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1783 * opencl-lang.c (opencl_language_data): Likewise.
1784 * p-lang.c (pascal_language_data): Likewise.
1785 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1786 implementation moves to...
1787 (rust_language::sniff_from_mangled_name): ...here.
1788 (rust_language_data): Delete la_sniff_from_mangled_name
1789 initializer.
1790 * symtab.c (symbol_find_demangled_name): Call
1791 sniff_from_mangled_name member function.
1792
1793 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1794
1795 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1796 initializer.
1797 * c-lang.c (c_language_data): Likewise.
1798 (cplus_language_data): Likewise.
1799 (cplus_language::search_name_hash): New member function.
1800 (asm_language_data): Delete la_search_name_hash initializer.
1801 (minimal_language_data): Likewise.
1802 * d-lang.c (d_language_data): Likewise.
1803 * dictionary.c (default_search_name_hash): Rename to...
1804 (language_defn::search_name_hash): ...this.
1805 * f-lang.c (f_language_data): Likewise.
1806 (f_language::search_name_hash): New member function.
1807 * go-lang.c (go_language_data): Delete la_search_name_hash
1808 initializer.
1809 * language.c (unknown_language_data): Likewise.
1810 (auto_language_data): Likewise.
1811 * language.h (struct language_data): Delete la_search_name_hash
1812 field.
1813 (language_defn::search_name_hash): Declare new member function.
1814 (default_search_name_hash): Delete declaration.
1815 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1816 initializer.
1817 * objc-lang.c (objc_language_data): Likewise.
1818 * opencl-lang.c (opencl_language_data): Likewise.
1819 * p-lang.c (pascal_language_data): Likewise.
1820 * rust-lang.c (rust_language_data): Likewise.
1821 * symtab.c (search_name_hash): Update call.
1822
1823 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1824
1825 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1826 initializer.
1827 * c-lang.c (class compile_instance): Declare.
1828 (c_language_data): Delete la_get_compile_instance initializer.
1829 (c_language::get_compile_instance): New member function.
1830 (cplus_language_data): Delete la_get_compile_instance initializer.
1831 (cplus_language::get_compile_instance): New member function.
1832 (asm_language_data): Delete la_get_compile_instance initializer.
1833 (minimal_language_data): Likewise.
1834 * c-lang.h (c_get_compile_context): Update comment.
1835 (cplus_get_compile_context): Update comment.
1836 * compile/compile.c (compile_to_object): Update calls, don't rely
1837 on function pointer being NULL.
1838 * d-lang.c (d_language_data): Delete la_get_compile_instance
1839 initializer.
1840 * f-lang.c (f_language_data): Likewise.
1841 * go-lang.c (go_language_data): Likewise.
1842 * language.c (unknown_language_data): Likewise.
1843 (auto_language_data): Likewise.
1844 * language.h (language_data): Delete la_get_compile_instance field.
1845 (language_defn::get_compile_instance): New member function.
1846 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1847 initializer.
1848 * objc-lang.c (objc_language_data): Likewise.
1849 * opencl-lang.c (opencl_language_data): Likewise.
1850 * p-lang.c (pascal_language_data): Likewise.
1851 * rust-lang.c (rust_language_data): Likewise.
1852
1853 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1854
1855 * ada-lang.c (ada_add_all_symbols): Update comment.
1856 (ada_iterate_over_symbols): Delete, move implementation to...
1857 (ada_language::iterate_over_symbols): ...here, a new member
1858 function, rewrite to use range based for loop.
1859 (ada_language_data): Delete la_iterate_over_symbols initializer.
1860 * c-lang.c (c_language_data): Likewise.
1861 (cplus_language_data): Likewise.
1862 (asm_language_data): Likewise.
1863 (minimal_language_data): Likewise.
1864 * d-lang.c (d_language_data): Likewise.
1865 * f-lang.c (f_language_data): Likewise.
1866 * go-lang.c (go_language_data): Likewise.
1867 * language.c (unknown_language_data): Likewise.
1868 (auto_language_data): Likewise.
1869 * language.h (language_data): Delete la_iterate_over_symbols field.
1870 (language_defn::iterate_over_symbols): New member function.
1871 (LA_ITERATE_OVER_SYMBOLS): Update.
1872 * linespec.c (iterate_over_all_matching_symtabs): Update.
1873 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
1874 initializer.
1875 * objc-lang.c (objc_language_data): Likewise.
1876 * opencl-lang.c (opencl_language_data): Likewise.
1877 * p-lang.c (pascal_language_data): Likewise.
1878 * rust-lang.c (rust_language_data): Likewise.
1879
1880 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1881
1882 * ada-lang.c (ada_language_data): Delete
1883 la_lookup_transparent_type initializer.
1884 * c-lang.c (c_language_data): Likewise.
1885 (cplus_language_data): Likewise.
1886 (cplus_language::lookup_transparent_type): New member function.
1887 (asm_language_data): Delete la_lookup_transparent_type
1888 initializer.
1889 (minimal_language_data): Likewise.
1890 * d-lang.c (d_language_data): Likewise.
1891 * f-lang.c (f_language_data): Likewise.
1892 * go-lang.c (go_language_data): Likewise.
1893 * language.c (unknown_language_data): Likewise.
1894 (auto_language_data): Likewise.
1895 * language.h (struct language_data): Delete
1896 la_lookup_transparent_type field.
1897 (language_defn::lookup_transparent_type): New member function.
1898 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
1899 initializer.
1900 * objc-lang.c (objc_language_data): Likewise.
1901 * opencl-lang.c (opencl_language_data): Likewise.
1902 * p-lang.c (pascal_language_data): Likewise.
1903 * rust-lang.c (rust_language_data): Likewise.
1904 * symtab.c (symbol_matches_domain): Update call.
1905
1906 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1907
1908 * ada-lang.c (ada_language_arch_info): Delete function, move
1909 implementation to...
1910 (ada_language::language_arch_info): ...here, a new member
1911 function.
1912 (ada_language_data): Delete la_language_arch_info.
1913 * c-lang.c (c_language_data): Likewise.
1914 (c_language::language_arch_info): New member function.
1915 (cplus_language_arch_info): Delete function, move
1916 implementation to...
1917 (cplus_language::language_arch_info): ...here, a new member
1918 function.
1919 (cplus_language_data): Delete la_language_arch_info.
1920 (asm_language_data): Likewise.
1921 (asm_language::language_arch_info): New member function.
1922 (minimal_language_data): Delete la_language_arch_info.
1923 (minimal_language::language_arch_info): New member function.
1924 * d-lang.c (d_language_arch_info): Delete function, move
1925 implementation to...
1926 (d_language::language_arch_info): ...here, a new member
1927 function.
1928 (d_language_data): Delete la_language_arch_info.
1929 * f-lang.c (f_language_arch_info): Delete function, move
1930 implementation to...
1931 (f_language::language_arch_info): ...here, a new member
1932 function.
1933 (f_language_data): Delete la_language_arch_info.
1934 * go-lang.c (go_language_arch_info): Delete function, move
1935 implementation to...
1936 (go_language::language_arch_info): ...here, a new member
1937 function.
1938 (go_language_data): Delete la_language_arch_info.
1939 * language.c (unknown_language_data): Likewise.
1940 (unknown_language::language_arch_info): New member function.
1941 (auto_language_data): Delete la_language_arch_info.
1942 (auto_language::language_arch_info): New member function.
1943 (language_gdbarch_post_init): Update call to
1944 la_language_arch_info.
1945 * language.h (language_data): Delete la_language_arch_info
1946 function pointer.
1947 (language_defn::language_arch_info): New function.
1948 * m2-lang.c (m2_language_arch_info): Delete function, move
1949 implementation to...
1950 (m2_language::language_arch_info): ...here, a new member
1951 function.
1952 (m2_language_data): Delete la_language_arch_info.
1953 * objc-lang.c (objc_language_arch_info): Delete function, move
1954 implementation to...
1955 (objc_language::language_arch_info): ...here, a new member
1956 function.
1957 (objc_language_data): Delete la_language_arch_info.
1958 * opencl-lang.c (opencl_language_arch_info): Delete function, move
1959 implementation to...
1960 (opencl_language::language_arch_info): ...here, a new member
1961 function.
1962 (opencl_language_data): Delete la_language_arch_info.
1963 * p-lang.c (pascal_language_arch_info): Delete function, move
1964 implementation to...
1965 (pascal_language::language_arch_info): ...here, a new member
1966 function.
1967 (pascal_language_data): Delete la_language_arch_info.
1968 * rust-lang.c (rust_language_arch_info): Delete function, move
1969 implementation to...
1970 (rust_language::language_arch_info): ...here, a new member
1971 function.
1972 (rust_language_data): Delete la_language_arch_info.
1973
1974 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1975
1976 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
1977 initializer.
1978 * c-lang.c (c_language_data): Likewise.
1979 (cplus_language_data): Likewise.
1980 (cplus_language::pass_by_reference_info): New method.
1981 (asm_language_data): Delete la_pass_by_reference initializer.
1982 (minimal_language_data): Likewise.
1983 * cp-abi.c (cp_pass_by_reference): Remove use of
1984 default_pass_by_reference.
1985 * d-lang.c (d_language_data): Likewise.
1986 * f-lang.c (f_language_data): Likewise.
1987 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
1988 default_pass_by_reference.
1989 * go-lang.c (go_language_data): Likewise.
1990 * language.c (language_pass_by_reference): Update.
1991 (default_pass_by_reference): Delete.
1992 (unknown_language_data): Delete la_pass_by_reference
1993 initializer.
1994 (auto_language_data): Likewise.
1995 * language.h (struct language_data): Delete la_pass_by_reference
1996 field.
1997 (language_defn::pass_by_reference_info): New member function.
1998 (default_pass_by_reference): Delete declaration.
1999 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2000 initializer.
2001 * objc-lang.c (objc_language_data): Likewise.
2002 * opencl-lang.c (opencl_language_data): Likewise.
2003 * p-lang.c (pascal_language_data): Likewise.
2004 * rust-lang.c (rust_language_data): Likewise.
2005
2006 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2007
2008 * ada-lang.c (ada_read_var_value): Delete function, move
2009 implementation to...
2010 (ada_language::read_var_value): ...here.
2011 (ada_language_data): Delete la_read_var_value initializer.
2012 * c-lang.c (c_language_data): Likewise.
2013 (cplus_language_data): Likewise.
2014 (minimal_language_data): Likewise.
2015 * d-lang.c (d_language_data): Likewise.
2016 * f-lang.c (f_language_data): Likewise.
2017 * findvar.c (default_read_var_value): Rename to...
2018 (language_defn::read_var_value): ...this.
2019 * findvar.c (read_var_value): Update header comment, and change to
2020 call member function instead of function pointer.
2021 * go-lang.c (go_language_data): Likewise.
2022 * language.c (unknown_language_data): Delete la_read_var_value
2023 initializer.
2024 (auto_language_data): Likewise.
2025 * language.h (struct language_data): Delete la_read_var_value
2026 field.
2027 (language_defn::read_var_value): New member function.
2028 (default_read_var_value): Delete declaration.
2029 * m2-lang.c (m2_language_data): Delete la_read_var_value
2030 initializer.
2031 * objc-lang.c (objc_language_data): Likewise.
2032 * opencl-lang.c (opencl_language_data): Likewise.
2033 * p-lang.c (pascal_language_data): Likewise.
2034 * rust-lang.c (rust_language_data): Likewise.
2035 * value.h (default_read_var_value): Delete declaration.
2036
2037 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2038
2039 * ada-lang.c (ada_print_array_index): Delete function, move
2040 implementation to...
2041 (ada_language::print_array_index): ...here.
2042 (ada_language_data): Delete la_print_array_index initializer.
2043 * c-lang.c (c_language_data): Likewise.
2044 (cplus_language_data): Likewise.
2045 (minimal_language_data): Likewise.
2046 * d-lang.c (d_language_data): Likewise.
2047 * f-lang.c (f_language_data): Likewise.
2048 * go-lang.c (go_language_data): Likewise.
2049 * language.c (default_print_array_index): Delete function, move
2050 implementation to...
2051 (language_defn::print_array_index): ...here.
2052 (unknown_language_data): Delete la_print_array_index initializer.
2053 (auto_language_data): Likewise.
2054 * language.h (struct language_data): Delete la_print_array_index
2055 field.
2056 (language_defn::print_array_index): New member function.
2057 (LA_PRINT_ARRAY_INDEX): Update.
2058 (default_print_array_index): Delete declaration.
2059 * m2-lang.c (m2_language_data): Delete la_print_array_index
2060 initializer.
2061 * objc-lang.c (objc_language_data): Likewise.
2062 * opencl-lang.c (opencl_language_data): Likewise.
2063 * p-lang.c (pascal_language_data): Likewise.
2064 * rust-lang.c (rust_language_data): Likewise.
2065
2066 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2067
2068 * gdb/ada-lang.c (ada_language_defn): Convert to...
2069 (ada_language_data): ...this.
2070 (class ada_language): New class.
2071 (ada_language_defn): New static global.
2072 * gdb/c-lang.c (c_language_defn): Convert to...
2073 (c_language_data): ...this.
2074 (class c_language): New class.
2075 (c_language_defn): New static global.
2076 (cplus_language_defn): Convert to...
2077 (cplus_language_data): ...this.
2078 (class cplus_language): New class.
2079 (cplus_language_defn): New static global.
2080 (asm_language_defn): Convert to...
2081 (asm_language_data): ...this.
2082 (class asm_language): New class.
2083 (asm_language_defn): New static global.
2084 (minimal_language_defn): Convert to...
2085 (minimal_language_data): ...this.
2086 (class minimal_language): New class.
2087 (minimal_language_defn): New static global.
2088 * gdb/d-lang.c (d_language_defn): Convert to...
2089 (d_language_data): ...this.
2090 (class d_language): New class.
2091 (d_language_defn): New static global.
2092 * gdb/f-lang.c (f_language_defn): Convert to...
2093 (f_language_data): ...this.
2094 (class f_language): New class.
2095 (f_language_defn): New static global.
2096 * gdb/go-lang.c (go_language_defn): Convert to...
2097 (go_language_data): ...this.
2098 (class go_language): New class.
2099 (go_language_defn): New static global.
2100 * gdb/language.c (unknown_language_defn): Remove declaration.
2101 (current_language): Initialize to nullptr, real initialization is
2102 moved to _initialize_language.
2103 (languages): Delete global.
2104 (language_defn::languages): Define.
2105 (set_language_command): Use language_defn::languages.
2106 (set_language): Likewise.
2107 (range_error): Likewise.
2108 (language_enum): Likewise.
2109 (language_def): Likewise.
2110 (add_set_language_command): Use language_def::languages for the
2111 language list, and language_def to lookup language pointers.
2112 (skip_language_trampoline): Use language_defn::languages.
2113 (unknown_language_defn): Convert to...
2114 (unknown_language_data): ...this.
2115 (class unknown_language): New class.
2116 (unknown_language_defn): New static global.
2117 (auto_language_defn): Convert to...
2118 (auto_language_data): ...this.
2119 (class auto_language): New class.
2120 (auto_language_defn): New static global.
2121 (language_gdbarch_post_init): Use language_defn::languages.
2122 (_initialize_language): Initialize current_language.
2123 * gdb/language.h (struct language_defn): Rename to...
2124 (struct language_data): ...this.
2125 (struct language_defn): New.
2126 (auto_language_defn): Delete.
2127 (unknown_language_defn): Delete.
2128 (minimal_language_defn): Delete.
2129 (ada_language_defn): Delete.
2130 (asm_language_defn): Delete.
2131 (c_language_defn): Delete.
2132 (cplus_language_defn): Delete.
2133 (d_language_defn): Delete.
2134 (f_language_defn): Delete.
2135 (go_language_defn): Delete.
2136 (m2_language_defn): Delete.
2137 (objc_language_defn): Delete.
2138 (opencl_language_defn): Delete.
2139 (pascal_language_defn): Delete.
2140 (rust_language_defn): Delete.
2141 * gdb/m2-lang.c (m2_language_defn): Convert to...
2142 (m2_language_data): ...this.
2143 (class m2_language): New class.
2144 (m2_language_defn): New static global.
2145 * gdb/objc-lang.c (objc_language_defn): Convert to...
2146 (objc_language_data): ...this.
2147 (class objc_language): New class.
2148 (objc_language_defn): New static global.
2149 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2150 (opencl_language_data): ...this.
2151 (class opencl_language): New class.
2152 (opencl_language_defn): New static global.
2153 * gdb/p-lang.c (pascal_language_defn): Convert to...
2154 (pascal_language_data): ...this.
2155 (class pascal_language): New class.
2156 (pascal_language_defn): New static global.
2157 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2158 language pointer, update comment format.
2159 * gdb/rust-lang.c (rust_language_defn): Convert to...
2160 (rust_language_data): ...this.
2161 (class rust_language): New class.
2162 (rust_language_defn): New static global.
2163
2164 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2165
2166 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2167 member variable.
2168 <m_stmt_at_address>: New member variable.
2169 (lnp_state_machine::record_line): Don't record some lines, update
2170 tracking of is_stmt at the same address.
2171 (lnp_state_machine::lnp_state_machine): Initialise new member
2172 variables.
2173
2174 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2175
2176 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2177 "-include gnu-nat-mig.h".
2178 * gnu-nat-mig.h: New file.
2179 * gnu-nat.c: Include "gnu-nat-mig.h".
2180 (exc_server, msg_reply_server, notify_server,
2181 process_reply_server): Remove declarations.
2182
2183 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2184
2185 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2186 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2187 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2188 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2189 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2190 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2191 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2192 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2193 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2194 to gnu_nat_target class.
2195 * gnu-nat.c: Likewise.
2196 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2197 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2198 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2199 object.
2200 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2201 instead of `gnu_target'.
2202
2203 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2204
2205 * i386-gnu-tdep.c: Include "gdbcore.h"
2206 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2207 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2208 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2209 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2210 i386_gnu_sigcontext_addr): New functions
2211 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2212 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2213 tdep.
2214
2215 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2216
2217 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2218 before fork_inferior call. Avoid calling it if target_is_pushed returns
2219 true.
2220
2221 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2222
2223 * gnu-nat.h (gnu_target): New variable declaration.
2224 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2225 gnu_target.
2226 * gnu-nat.c (gnu_target): New variable.
2227 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2228 add_thread_silent, and add_thread calls.
2229 (gnu_nat_target::create_inferior): Pass gnu_target to
2230 add_thread_silent, thread_change_ptid call.
2231 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2232 call.
2233
2234 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2235
2236 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2237 (gnu_nat_target::find_memory_regions): Remove unused
2238 `old_address' variable.
2239
2240 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2241
2242 * gnu-nat.c: Include "gdbarch.h".
2243
2244 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2245
2246 * reply_mig_hack.awk (Error return): Cast function through
2247 void *, to bypass compiler function call check.
2248
2249 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2250
2251 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2252 $(srcdir)/reply_mig_hack.awk.
2253
2254 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2255
2256 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2257
2258 2020-05-30 Jonny Grant <jg@jguk.org>
2259
2260 * configure.ac (ACX_BUGURL): change bug URL to https.
2261
2262 2020-05-30 Pedro Alves <palves@redhat.com>
2263
2264 * cp-support.c (replace_typedefs_template): New.
2265 (replace_typedefs_qualified_name): Handle
2266 DEMANGLE_COMPONENT_TEMPLATE.
2267
2268 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
2269
2270 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2271 dwarf2/index-cache.h, dwarf2/index-write.c,
2272 dwarf2/index-write.h, dwarf2/line-header.c,
2273 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2274 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2275 variables and fields from `dwarf2_per_objfile` to just
2276 `per_objfile` throughout.
2277
2278 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2279
2280 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2281 <push_dwarf_reg_entry_value>: Add comment.
2282
2283 2020-05-28 Kevin Buettner <kevinb@redhat.com>
2284 Keith Seitz <keiths@redhat.com>
2285
2286 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2287 instead of PyEval_ReleaseLock.
2288 (class gdbpy_gil): Move to earlier in file.
2289 (finalize_python): Set gdb_python_initialized.
2290 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2291 when not initialized.
2292
2293 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
2294
2295 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2296 <push_dwarf_reg_entry_value>: Remove assert. Override
2297 per_objfile with caller_per_objfile.
2298
2299 2020-05-28 Tom de Vries <tdevries@suse.de>
2300
2301 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2302 PR gold/15646 workaround to symbol kind "type".
2303
2304 2020-05-27 Tom Tromey <tromey@adacore.com>
2305
2306 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2307
2308 2020-05-27 Tom Tromey <tromey@adacore.com>
2309
2310 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2311 Use htab_find_with_hash.
2312 <add_abbrev>: Remove "abbrev_number" parameter.
2313 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2314 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2315 (hash_abbrev): Add comment.
2316 (abbrev_table::lookup_abbrev): Move to header file.
2317 (abbrev_table::read): Update.
2318
2319 2020-05-27 Tom Tromey <tromey@adacore.com>
2320
2321 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2322 method.
2323 <canonical_name>: New member.
2324 <raw_name>: Rename from "name".
2325 (partial_die_info): Initialize canonical_name.
2326 (scan_partial_symbols): Check raw_name.
2327 (partial_die_parent_scope, partial_die_full_name)
2328 (add_partial_symbol, add_partial_subprogram)
2329 (add_partial_enumeration, load_partial_dies): Use "name" method.
2330 (partial_die_info::name): New method.
2331 (partial_die_info::read, guess_partial_die_structure_name)
2332 (partial_die_info::fixup): Update.
2333
2334 2020-05-27 Tom Tromey <tromey@adacore.com>
2335
2336 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2337 <get_ref_die_offset>: Inline.
2338 <get_ref_die_offset_complaint>: New method.
2339 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2340 (attribute::get_ref_die_offset_complaint): Rename from
2341 get_ref_die_offset. Just issue complaint.
2342
2343 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
2344
2345 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2346
2347 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
2348
2349 * exec.c (exec_file_attach): Use errno value of first openp failure.
2350
2351 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
2352
2353 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2354 Don't close thread handle.
2355
2356 2020-05-27 Tom Tromey <tom@tromey.com>
2357 Simon Marchi <simon.marchi@efficios.com>
2358
2359 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2360 shared_ptr.
2361 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2362 member.
2363 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2364 dwarf2_per_bfd_objfile_data_key>: New globals.
2365 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2366 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2367 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2368 shared.
2369 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2370 short-circuit when sharing.
2371 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2372 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2373
2374 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2375
2376 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2377 to...
2378 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2379 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2380
2381 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2382
2383 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2384 build_name_components, find_name_components_bounds>:
2385 Add per_objfile parameter.
2386 (struct mapped_index) <symbol_name_at>: Likewise.
2387 (struct mapped_debug_names): Remove constructor.
2388 <dwarf2_per_objfile>: Remove field.
2389 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2390 (mapped_index_base::find_name_components_bounds,
2391 mapped_index_base::build_name_components,
2392 dw2_expand_symtabs_matching_symbol): Likewise.
2393 (class mock_mapped_index) <symbol_name_at>: Likewise.
2394 (check_match): Likewise.
2395 (check_find_bounds_finds): Likewise.
2396 (test_mapped_index_find_name_component_bounds): Update.
2397 (CHECK_MATCH): Update.
2398 (dw2_expand_symtabs_matching): Update.
2399 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2400 per_objfile parameter.
2401 <find_vec_in_debug_names>: Likewise.
2402 <m_per_objfile>: New field.
2403 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2404 parameter.
2405 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2406 (dw2_debug_names_iterator::next): Update.
2407 (dw2_debug_names_lookup_symbol): Update.
2408 (dw2_debug_names_expand_symtabs_for_function): Update.
2409 (dw2_debug_names_map_matching_symbols): Update.
2410 (dw2_debug_names_expand_symtabs_matching): Update.
2411 (dwarf2_read_debug_names): Update.
2412
2413 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2414
2415 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2416 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2417 move to dwarf2_per_objfile.
2418 <read_in_chain>: Remove.
2419 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2420 remove_all_cus, age_comp_units>: New methods.
2421 <m_dwarf2_cus>: New member.
2422 (struct dwarf2_per_cu_data) <cu>: Remove.
2423 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2424 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2425 moved to methods of dwarf2_per_objfile.
2426 (dwarf2_clear_marks): Remove.
2427 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2428 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2429 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2430 (dwarf2_per_objfile::remove_all_cus): New.
2431 (class free_cached_comp_units) <~free_cached_comp_units>:
2432 Update.
2433 (load_cu): Update.
2434 (dw2_do_instantiate_symtab): Adjust.
2435 (fill_in_sig_entry_from_dwo_entry): Adjust.
2436 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2437 (cutu_reader::cutu_reader): Likewise.
2438 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2439 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2440 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2441 and dwarf2_per_objfile::age_comp_units.
2442 (load_partial_comp_unit): Update.
2443 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2444 (process_queue): Likewise.
2445 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2446 backlink.
2447 (dwarf2_read_addr_index): Likewise.
2448 (follow_die_offset): Likewise.
2449 (dwarf2_fetch_die_loc_sect_off): Likewise.
2450 (dwarf2_fetch_constant_bytes): Likewise.
2451 (dwarf2_fetch_die_type_sect_off): Likewise.
2452 (follow_die_sig_1): Likewise.
2453 (load_full_type_unit): Likewise.
2454 (read_signatured_type): Likewise.
2455 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2456 (dwarf2_cu::~dwarf2_cu): Remove.
2457 (dwarf2_per_objfile::get_cu): New.
2458 (dwarf2_per_objfile::set_cu): New.
2459 (age_cached_comp_units): Rename to...
2460 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2461 to std::unordered_map.
2462 (free_one_cached_comp_unit): Rename to...
2463 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2464 to std::unordered_map.
2465 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2466 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2467 a dwarf2_per_objfile in data.
2468 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2469 (dwarf2_clear_marks): Remove.
2470
2471 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2472
2473 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2474 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2475 (init_tu_and_read_dwo_dies): Likewise.
2476 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2477 (cutu_reader::cutu_reader): Likewise.
2478 (load_partial_comp_unit): Likewise.
2479 (process_psymtab_comp_unit): Update.
2480 (build_type_psymtabs_1): Update.
2481 (process_skeletonless_type_unit): Update.
2482 (load_full_comp_unit): Update.
2483 (find_partial_die): Update.
2484 (dwarf2_read_addr_index): Update.
2485 (read_signatured_type): Update.
2486
2487 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2488
2489 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2490 m_header_read_in>: New fields.
2491 <get_header>: New method.
2492 * dwarf2/read.c (per_cu_header_read_in): Remove.
2493 (dwarf2_per_cu_data::get_header): New.
2494 (dwarf2_per_cu_data::addr_size): Update.
2495 (dwarf2_per_cu_data::offset_size): Update.
2496 (dwarf2_per_cu_data::ref_addr_size): Update.
2497
2498 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2499
2500 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2501 (dw2_do_instantiate_symtab): Update.
2502 (queue_and_load_all_dwo_tus): Change parameter from
2503 dwarf2_per_cu_data to dwarf2_cu.
2504 (dwarf2_fetch_die_loc_sect_off): Update.
2505 (dwarf2_fetch_constant_bytes): Update.
2506 (dwarf2_fetch_die_type_sect_off): Update.
2507
2508 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2509
2510 * dwarf2/read.c (process_full_comp_unit,
2511 process_full_type_unit): Remove per_cu, per_objfile paramters.
2512 Add dwarf2_cu parameter.
2513 (process_queue): Update.
2514
2515 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2516
2517 * dwarf2/read.c (create_cu_from_index_list): Replace
2518 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2519 (create_cus_from_index_list): Likewise.
2520 (create_cus_from_index): Likewise.
2521 (create_signatured_type_table_from_index): Likewise.
2522 (create_cus_from_debug_names_list): Likewise.
2523 (create_cus_from_debug_names): Likewise.
2524 (dwarf2_read_gdb_index): Update.
2525 (dwarf2_read_debug_names): Update.
2526
2527 2020-05-27 Tom Tromey <tom@tromey.com>
2528 Simon Marchi <simon.marchi@efficios.com>
2529
2530 * dwarf2/read.h (struct dwarf2_per_objfile)
2531 <get_type_for_signatured_type, set_type_for_signatured_type>:
2532 New methods.
2533 <m_type_map>: New member.
2534 (struct signatured_type) <type>: Remove.
2535 * dwarf2/read.c
2536 (dwarf2_per_objfile::get_type_for_signatured_type,
2537 dwarf2_per_objfile::set_type_for_signatured_type): New.
2538 (get_signatured_type): Use new methods.
2539
2540 2020-05-27 Tom Tromey <tom@tromey.com>
2541 Simon Marchi <simon.marchi@efficios.com>
2542
2543 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2544 (struct dwarf2_per_objfile) <type_units>: New member.
2545 <get_type_unit_group_unshareable>: New method.
2546 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2547 num_symtabs, symtabs>: Remove; move to
2548 type_unit_group_unshareable.
2549 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2550 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2551 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2552
2553 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2554
2555 * dwarf2/read.h (struct dwarf2_per_cu_data):
2556 <dwarf2_per_objfile>: Remove.
2557 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2558 dwarf2_per_objfile.
2559 (create_signatured_type_table_from_index): Likewise.
2560 (create_signatured_type_table_from_debug_names): Likewise.
2561 (create_debug_type_hash_table): Likewise.
2562 (fill_in_sig_entry_from_dwo_entry): Likewise.
2563 (create_type_unit_group): Likewise.
2564 (read_comp_units_from_section): Likewise.
2565 (create_cus_hash_table): Likewise.
2566
2567 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2568
2569 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2570 dwarf2_per_cu_data::dwarf2_per_objfile.
2571 (compute_compunit_symtab_includes): Likewise.
2572 (dwarf2_cu::start_symtab): Likewise.
2573
2574 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2575
2576 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2577 parameter.
2578 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2579 (read_namespace_alias): Update.
2580 (lookup_die_type): Update.
2581 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2582 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2583 Update.
2584 (disassemble_dwarf_expression): Update.
2585
2586 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2587
2588 * dwarf2/read.h (struct dwarf2_queue_item): Add
2589 dwarf2_per_objfile parameter, assign new parameter.
2590 <per_objfile>: New field.
2591 * dwarf2/read.c (free_one_cached_comp_unit): Add
2592 dwarf2_per_objfile parameter.
2593 (queue_comp_unit): Likewise.
2594 (dw2_do_instantiate_symtab): Update.
2595 (process_psymtab_comp_unit): Update.
2596 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2597 (process_imported_unit_die): Update.
2598 (queue_and_load_dwo_tu): Update.
2599 (follow_die_offset): Update.
2600 (follow_die_sig_1): Update.
2601
2602 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2603
2604 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2605 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2606 (read_call_site_scope): Assign per_objfile.
2607 (dwarf2_per_cu_data::objfile): Remove.
2608 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2609 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2610 dwarf2_per_objfile parameter.
2611 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2612 dwarf2_per_objfile parameter.
2613 (dwarf_expr_reg_to_entry_parameter): Add output
2614 dwarf2_per_objfile parameter.
2615 (locexpr_get_frame_base): Update.
2616 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2617 <push_dwarf_reg_entry_value>: Update.
2618 <call_site_to_target_addr>: Update.
2619 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2620 parameter.
2621 (value_of_dwarf_reg_entry): Update.
2622 (rw_pieced_value): Update.
2623 (indirect_synthetic_pointer): Update.
2624 (dwarf2_evaluate_property): Update.
2625 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2626 parameter.
2627 (locexpr_read_variable): Update.
2628 (locexpr_get_symbol_read_needs): Update.
2629 (loclist_read_variable): Update.
2630
2631 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2632
2633 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2634 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2635 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2636 parameter.
2637 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2638 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2639 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2640 parameter.
2641 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2642 sect_variable_value): Add dwarf2_per_objfile parameter.
2643 (class dwarf_evaluate_loc_desc) <dwarf_call,
2644 dwarf_variable_value>: Update.
2645 (fetch_const_value_from_synthetic_pointer): Add
2646 dwarf2_per_objfile parameter.
2647 (fetch_const_value_from_synthetic_pointer): Update.
2648 (coerced_pieced_ref): Update.
2649 (class symbol_needs_eval_context) <dwarf_call,
2650 dwarf_variable_value>: Update.
2651 (dwarf2_compile_expr_to_ax): Update.
2652
2653 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2654
2655 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2656 parameter.
2657 (dwarf2_evaluate_loc_desc_full): Update.
2658
2659 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2660
2661 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2662 parameter.
2663 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2664 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2665 dwarf2_per_objfile parameter.
2666 (decode_debug_loc_dwo_addresses): Likewise.
2667 (dwarf2_find_location_expression): Update.
2668 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2669 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2670 parameter.
2671 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2672 parameter.
2673 (locexpr_describe_location_1): Likewise.
2674 (locexpr_describe_location): Update.
2675
2676 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2677
2678 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2679 Remove.
2680 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2681 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2682 (dwarf2_compile_property_to_c): Update.
2683 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2684 use text offset from objfile.
2685 (locexpr_tracepoint_var_ref): Update.
2686 (locexpr_generate_c_location): Update.
2687 (loclist_describe_location): Update.
2688 (loclist_tracepoint_var_ref): Update.
2689 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2690 dwarf2_per_objfile parameter.
2691 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2692 use text offset from objfile.
2693 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2694
2695 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2696
2697 * dwarf2/expr.h (struct dwarf_expr_context)
2698 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2699 <offset>: Remove.
2700 <per_objfile>: New member.
2701 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2702 dwarf2_per_objfile parameter. Don't set offset, set
2703 per_objfile.
2704 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2705 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2706 a dwarf2_per_objfile object instead of an offset.
2707 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2708 constructor.
2709 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2710 to dwarf2_expr_executor constructor. Don't set offset.
2711 (dwarf2_fetch_cfa_info): Update.
2712 (struct dwarf2_frame_cache) <text_offset>: Remove.
2713 <per_objfile>: New field.
2714 (dwarf2_frame_cache): Update.
2715 (dwarf2_frame_prev_register): Update.
2716 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2717 <dwarf_evaluate_loc_desc>: Add constructor.
2718 (dwarf2_evaluate_loc_desc_full): Update.
2719 (dwarf2_locexpr_baton_eval): Update.
2720 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2721 Add constructor.
2722 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2723
2724 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2725
2726 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2727 addr_sized_int_type>: Move to dwarf2_cu.
2728 <int_type>: Move to dwarf2_per_objfile.
2729 (struct dwarf2_per_objfile) <int_type>: Move here.
2730 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2731 addr_sized_int_type>: Move here.
2732 (read_func_scope): Update.
2733 (read_array_type): Update.
2734 (read_tag_string_type): Update.
2735 (attr_to_dynamic_prop): Update.
2736 (dwarf2_per_cu_data::int_type): Rename to...
2737 (dwarf2_per_objfile::int_type): ... this.
2738 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2739 (dwarf2_cu::addr_sized_int_type): ... this.
2740 (read_subrange_type): Update.
2741 (dwarf2_per_cu_data::addr_type): Rename to...
2742 (dwarf2_cu::addr_type): ... this.
2743 (set_die_type): Update.
2744
2745 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2746
2747 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2748 data through per_cu->cu.
2749
2750 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2751
2752 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2753 dwarf2_per_cu_data parameter fo dwarf2_cu.
2754 (lookup_dwo_type_unit): Likewise.
2755 (read_cutu_die_from_dwo): Likewise.
2756 (lookup_dwo_unit): Likewise.
2757 (open_and_init_dwo_file): Likewise.
2758 (lookup_dwo_cutu): Likewise.
2759 (lookup_dwo_comp_unit): Likewise.
2760 (lookup_dwo_type_unit): Likewise.
2761 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2762 (cutu_reader::cutu_reader): Update.
2763
2764 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2765
2766 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2767 parameter.
2768 (process_full_type_unit): Likewise.
2769 (process_queue): Update.
2770
2771 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2772
2773 * dwarf2/read.c (recursively_compute_inclusions): Add
2774 dwarf2_per_objfile parameter.
2775 (compute_compunit_symtab_includes): Likewise.
2776 (process_cu_includes): Update.
2777
2778 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2779
2780 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2781 parameter.
2782 (create_type_unit_group): Update.
2783 (process_psymtab_comp_unit_reader): Update.
2784 (build_type_psymtabs_reader): Update.
2785
2786 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2787
2788 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2789 object through m_this_cu->cu.
2790
2791 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2792
2793 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2794 the info parameter.
2795 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2796
2797 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2798
2799 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2800 per_objfile parameter.
2801 (load_full_type_unit): Add per_objfile parameter.
2802 (read_signatured_type): Likewise.
2803 (load_full_comp_unit): Likewise.
2804 (load_cu): Likewise.
2805 (dw2_do_instantiate_symtab): Likewise.
2806 (dw2_get_file_names): Likewise.
2807 (dw2_map_symtabs_matching_filename): Update.
2808 (dw_expand_symtabs_matching_file_matcher): Update.
2809 (dw2_map_symbol_filenames): Update.
2810 (process_psymtab_comp_unit): Add per_objfile parameter.
2811 (build_type_psymtabs_1): Update.
2812 (process_skeletonless_type_unit): Update.
2813 (dwarf2_build_psymtabs_hard): Update.
2814 (load_partial_comp_unit): Add per_objfile parameter.
2815 (scan_partial_symbols): Update.
2816 (load_full_comp_unit): Add per_objfile parameter.
2817 (process_imported_unit_die): Update.
2818 (create_cus_hash_table): Update.
2819 (find_partial_die): Update.
2820 (dwarf2_read_addr_index): Update.
2821 (follow_die_offset): Update.
2822 (dwarf2_fetch_die_loc_sect_off): Update.
2823 (dwarf2_fetch_constant_bytes): Update.
2824 (dwarf2_fetch_die_type_sect_off): Update.
2825 (follow_die_sig_1): Update.
2826 (load_full_type_unit): Add per_objfile parameter.
2827 (read_signatured_type): Likewise.
2828
2829 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2830
2831 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2832 of objfile_name.
2833
2834 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2835
2836 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2837 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2838 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2839 field.
2840 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2841 (create_cus_from_index): Update.
2842 (dwarf2_read_gdb_index): Update.
2843 (create_cus_from_debug_names): Update.
2844 (dwarf2_read_debug_names): Update.
2845 (get_abbrev_section_for_cu): Update.
2846 (create_all_comp_units): Update.
2847 (read_attribute_value): Update.
2848 (get_debug_line_section): Update.
2849 * dwarf2/index-cache.c (index_cache::store): Update.
2850 * dwarf2/index-write.c (save_gdb_index_command): Update.
2851 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2852
2853 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2854
2855 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
2856 member.
2857 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
2858 dwarf2_per_cu_data::per_bfd.
2859 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
2860 (create_type_unit_group): Likewise.
2861 (queue_comp_unit): Remove reference to
2862 per_cu->dwarf2_per_objfile.
2863 (maybe_queue_comp_unit): Likewise.
2864 (fill_in_sig_entry_from_dwo_entry): Assign new field.
2865 (create_cus_hash_table): Assign new field.
2866
2867 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2868
2869 * dwarf2/read.c: Replace
2870 dwarf2_cu->per_cu->dwarf2_per_objfile references with
2871 dwarf2_cu->per_objfile throughout.
2872
2873 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2874
2875 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
2876 parameter, don't use per_cu->dwarf2_per_objfile.
2877 (dw2_instantiate_symtab): Likewise.
2878 (dw2_find_last_source_symtab): Update.
2879 (dw2_map_expand_apply): Update.
2880 (dw2_lookup_symbol): Update.
2881 (dw2_expand_symtabs_for_function): Update.
2882 (dw2_expand_all_symtabs): Update.
2883 (dw2_expand_symtabs_with_fullname): Update.
2884 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
2885 don't use per_cu->dwarf2_per_objfile.
2886 (dw2_expand_marked_cus): Update.
2887 (dw2_find_pc_sect_compunit_symtab): Update.
2888 (dw2_debug_names_lookup_symbol): Update.
2889 (dw2_debug_names_expand_symtabs_for_function): Update.
2890 (dw2_debug_names_map_matching_symbols): Update.
2891 (dwarf2_psymtab::expand_psymtab): Update.
2892
2893 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2894
2895 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
2896 <per_objfile>: New member.
2897 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
2898 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
2899 call to dwarf2_cu.
2900 (cutu_reader::cutu_reader): Update.
2901 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
2902
2903 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2904
2905 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
2906 struct dwarf2_per_objfile.
2907 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
2908 dwarf2_per_bfd.
2909 * dwarf2/read.c (set_die_type): Update.
2910 (get_die_type_at_offset): Update.
2911
2912 2020-05-27 Tom Tromey <tom@tromey.com>
2913 Simon Marchi <simon.marchi@efficios.com>
2914
2915 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
2916 method.
2917 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
2918 get_symtab, set_symtab>: New methods.
2919 <m_symtabs>: New field.
2920 (struct dwarf2_psymtab): Derive from partial_symtab.
2921 <readin_p, get_compunit_symtab>: Declare methods.
2922 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
2923 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
2924 New methods.
2925 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
2926 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
2927 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
2928 (dw2_symtab_iter_next, dw2_print_stats)
2929 (dw2_expand_symtabs_with_fullname)
2930 (dw2_expand_symtabs_matching_one)
2931 (dw_expand_symtabs_matching_file_matcher)
2932 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
2933 (dw2_debug_names_iterator::next)
2934 (dw2_debug_names_map_matching_symbols)
2935 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
2936 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
2937 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
2938 New methods.
2939 (get_compunit_symtab, process_full_comp_unit)
2940 (process_full_type_unit): Update.
2941 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
2942
2943 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2944
2945 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
2946 then introduce a new dwarf2_per_objfile type.
2947 <read_line_string>: Move to the new dwarf2_per_objfile type.
2948 <objfile>: Likewise.
2949 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
2950 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
2951 dwarf2_per_objfile->per_bfd.
2952 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
2953 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
2954 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
2955 (dwarf2_per_bfd::free_cached_comp_units): ... this.
2956 (dwarf2_has_info): Allocate dwarf2_per_bfd.
2957 (dwarf2_per_objfile::locate_sections): Rename to...
2958 (dwarf2_per_bfd::locate_sections): ... this.
2959 (dwarf2_per_objfile::get_cutu): Rename to...
2960 (dwarf2_per_bfd::get_cutu): ... this.
2961 (dwarf2_per_objfile::get_cu): Rename to...
2962 (dwarf2_per_bfd::get_cu): ... this.
2963 (dwarf2_per_objfile::get_tu): Rename to...
2964 (dwarf2_per_bfd::get_tu): ... this.
2965 (dwarf2_per_objfile::allocate_per_cu): Rename to...
2966 (dwarf2_per_bfd::allocate_per_cu): ... this.
2967 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
2968 (dwarf2_per_bfd::allocate_signatured_type): ... this.
2969 (get_gdb_index_contents_ftype): Change parameter from
2970 dwarf2_per_objfile to dwarf2_per_bfd.
2971 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
2972 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
2973
2974 2020-05-27 Tom Tromey <tom@tromey.com>
2975 Simon Marchi <simon.marchi@efficios.com>
2976
2977 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
2978 (allocate_piece_closure): Set "per_objfile" member.
2979 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
2980 (locexpr_describe_location, loclist_describe_location): Use new
2981 member.
2982 * dwarf2/read.c (read_call_site_scope)
2983 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2984 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
2985 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
2986 handle_data_member_location): Set per_objfile member.
2987 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
2988 member.
2989 (struct dwarf2_loclist_baton) <per_objfile>: New member.
2990
2991 2020-05-27 Tom Tromey <tom@tromey.com>
2992
2993 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
2994 allocate_signatured_type>: Declare new methods.
2995 <m_num_psymtabs>: New member.
2996 (struct dwarf2_per_cu_data) <index>: New member.
2997 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
2998 (dwarf2_per_objfile::allocate_signatured_type): New methods.
2999 (create_cu_from_index_list): Use allocate_per_cu.
3000 (create_signatured_type_table_from_index)
3001 (create_signatured_type_table_from_debug_names)
3002 (create_debug_type_hash_table, add_type_unit)
3003 (read_comp_units_from_section): Use allocate_signatured_type.
3004
3005 2020-05-27 Tom Tromey <tom@tromey.com>
3006
3007 * psymtab.c (partial_map_expand_apply)
3008 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3009 (psym_lookup_global_symbol_language)
3010 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3011 (psym_print_stats, psym_expand_symtabs_for_function)
3012 (psym_map_symbol_filenames, psym_map_matching_symbols)
3013 (psym_expand_symtabs_matching)
3014 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3015 (maintenance_check_psymtabs): Update.
3016 * psympriv.h (struct partial_symtab) <readin_p,
3017 get_compunit_symtab>: Add objfile parameter.
3018 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3019 Likewise.
3020 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3021 get_compunit_symtab>: Likewise.
3022 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3023
3024 2020-05-27 Tom Tromey <tom@tromey.com>
3025
3026 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3027 member.
3028 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3029 (create_cu_from_index_list)
3030 (create_signatured_type_table_from_index)
3031 (create_signatured_type_table_from_debug_names)
3032 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3033 (dwarf2_create_include_psymtab)
3034 (create_debug_type_hash_table, add_type_unit)
3035 (create_type_unit_group, read_comp_units_from_section)
3036 (dwarf2_compute_name, create_cus_hash_table)
3037 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3038 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3039 obstack.
3040 (dw2_get_real_path): Likewise. Change argument to
3041 dwarf2_per_objfile.
3042
3043 2020-05-27 Luis Machado <luis.machado@linaro.org>
3044
3045 PR tdep/26000
3046 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3047 for ldrd (immediate).
3048
3049 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3050
3051 * command.h: Add comment giving the name of class_tui.
3052 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3053 create the fake command for the help for class_tui.
3054
3055 2020-05-26 Tom Tromey <tromey@adacore.com>
3056
3057 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3058 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3059 (val_atr): New function.
3060 (value_val_atr): Use it.
3061 * ada-valprint.c (print_optional_low_bound): Change low bound
3062 handling for enums.
3063 (val_print_packed_array_elements): Don't call discrete_position.
3064 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3065 discrete_position for enum types.
3066 * language.c (default_print_array_index): Change type.
3067 * language.h (struct language_defn) <la_print_array_index>: Add
3068 index_type parameter, change type of index_value.
3069 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3070 (default_print_array_index): Update.
3071 * valprint.c (maybe_print_array_index): Don't call
3072 value_from_longest. Update.
3073 (value_print_array_elements): Don't call discrete_position.
3074
3075 2020-05-26 Tom Tromey <tromey@adacore.com>
3076
3077 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3078 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3079
3080 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3081
3082 PR gdb/13519
3083 * avr-tdep.c (avr_integer_to_address): Return data or code
3084 address accordingly to the second 'type' argument of the
3085 function.
3086
3087 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3088
3089 * infcmd.c, inferior.h: (construct_inferior_arguments):
3090 Moved function from here to gdbsupport/common-inferior.{h,cc}
3091
3092 2020-05-23 Tom Tromey <tom@tromey.com>
3093
3094 Revert commit eca1f90c:
3095 * NEWS: Remove entry for completion styling.
3096 * completer.c (_rl_completion_prefix_display_length): Move
3097 declaration later.
3098 (gdb_fnprint): Revert.
3099 (gdb_display_match_list_1): Likewise.
3100 * cli/cli-style.c (completion_prefix_style)
3101 (completion_difference_style, completion_suffix_style): Remove.
3102 (_initialize_cli_style): Revert.
3103 * cli/cli-style.h (completion_prefix_style)
3104 (completion_difference_style, completion_suffix_style): Don't
3105 declare.
3106
3107 2020-05-24 Pedro Alves <palves@redhat.com>
3108
3109 * symtab.c (completion_list_add_name): Return boolean indication
3110 of whether the symbol matched.
3111 (completion_list_add_symbol): Don't try to remove C++ aliases if
3112 the symbol didn't match in the first place.
3113 * symtab.h (completion_list_add_name): Return bool.
3114
3115 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3116
3117 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3118 type::field.
3119
3120 2020-05-23 Joel Brobecker <brobecker@adacore.com>
3121
3122 GDB 9.2 released.
3123
3124 2020-05-23 Tom Tromey <tom@tromey.com>
3125
3126 * NEWS: Add entry for completion styling.
3127 * completer.c (_rl_completion_prefix_display_length): Move
3128 declaration earlier.
3129 (gdb_fnprint): Use completion_style.
3130 (gdb_display_match_list_1): Likewise.
3131 * cli/cli-style.c (completion_prefix_style)
3132 (completion_difference_style, completion_suffix_style): New
3133 globals.
3134 (_initialize_cli_style): Register new globals.
3135 * cli/cli-style.h (completion_prefix_style)
3136 (completion_difference_style, completion_suffix_style): Declare.
3137
3138 2020-05-23 Pedro Alves <palves@redhat.com>
3139
3140 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3141 (parse_escape): Use ISDIGIT instead of isdigit.
3142 (puts_debug): Use gdb_isprint instead of isprint.
3143 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3144 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3145 ISSPACE instead of isspace.
3146 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3147 instead of isspace.
3148 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3149 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3150 instead of isxdigit and ISDIGIT instead of isdigit.
3151
3152 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3153
3154 * gdbtypes.h (struct type) <field>: New method.
3155 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3156 or type::field.
3157
3158 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3159
3160 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3161 (TYPE_FIELDS): Use type::fields. Change all call sites that
3162 modify the propery to use type::set_fields instead.
3163
3164 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3165
3166 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3167 type::num_fields instead.
3168
3169 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3170
3171 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3172 methods.
3173 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3174 that modify the number of fields to use type::set_num_fields
3175 instead.
3176
3177 2020-05-22 Tom Tromey <tromey@adacore.com>
3178
3179 * compile/compile-object-load.h (munmap_list_free): Don't
3180 declare.
3181
3182 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3183
3184 * annotate.c (annotate_source_line): Update return type, add call
3185 to update current symtab and line.
3186 * annotate.h (annotate_source_line): Update return type, and
3187 extend header comment.
3188 * source.c (info_line_command): Check annotation_level before
3189 calling annotate_source_line.
3190 * stack.c (print_frame_info): If calling annotate_source_line
3191 returns true, then don't print any other source line information.
3192
3193 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3194
3195 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3196
3197 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3198
3199 * coffread.c (patch_type): Remove NULL check before xfree.
3200 * corefile.c (set_gnutarget): Likewise.
3201 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3202 * exec.c (build_section_table): Likewise.
3203 * remote.c (remote_target::pass_signals): Likewise.
3204 * utils.c (n_spaces): Likewise.
3205 * cli/cli-script.c (document_command): Likewise.
3206 * i386-windows-tdep.c (core_process_module_section): Likewise.
3207 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3208
3209 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
3210
3211 * symfile.c (reread_symbols): Clear objfile's section_offsets
3212 vector and section indices, re-compute them by calling
3213 sym_offsets.
3214
3215 2020-05-20 Tom Tromey <tromey@adacore.com>
3216
3217 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
3218 (desc_one_bound, desc_index_type): Compute field name.
3219
3220 2020-05-20 Tom de Vries <tdevries@suse.de>
3221
3222 PR symtab/25833
3223 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3224
3225 2020-05-20 Alan Modra <amodra@gmail.com>
3226
3227 PR 25993
3228 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3229 bfd_set_filename.
3230 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3231 passed to bfd_set_filename.
3232 * symfile-mem.c (add_vsyscall_page): Likewise for string
3233 passed to symbol_file_add_from_memory.
3234 (symbol_file_add_from_memory): Make name param a const char* and
3235 don't strdup.
3236
3237 2020-05-20 Alan Modra <amodra@gmail.com>
3238
3239 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3240 rather than accessing bfd->filename directly.
3241 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3242 and use bfd_section_name.
3243 * dwarf2/frame.c (decode_frame_entry): Likewise.
3244 * exec.c (exec_set_section_address): Likewise.
3245 * solib-aix.c (solib_aix_bfd_open): Likewise.
3246 * stap-probe.c (get_stap_base_address): Likewise.
3247 * symfile.c (reread_symbols): Likewise.
3248
3249 2020-05-19 Tom Tromey <tromey@adacore.com>
3250
3251 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3252
3253 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3254
3255 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3256
3257 2020-05-19 Pedro Alves <palves@redhat.com>
3258
3259 * NEWS (set exec-file-mismatch): Adjust entry.
3260 * exec.c: Include "build-id.h".
3261 (validate_exec_file): Try to match build IDs instead of filenames.
3262 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3263 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3264 and pass down 'warn_if_slow'.
3265 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3266 gdb_bfd_open_closure to pass it down.
3267 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3268
3269 2020-05-19 Pedro Alves <palves@redhat.com>
3270
3271 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3272 * target.c (target_fileio_open_1): Rename to target_fileio_open
3273 and make extern. Use bool.
3274 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3275 (target_fileio_read_alloc_1): Adjust.
3276 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3277 (target_fileio_open_warn_if_slow): Delete declaration.
3278
3279 2020-05-19 Pedro Alves <palves@redhat.com>
3280
3281 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3282 Adjust all callers.
3283
3284 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3285
3286 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3287 whether disp is negative.
3288
3289 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3290
3291 * symfile.h (struct symfile_segment_data)
3292 <~symfile_segment_data>: Remove.
3293 <segment_info>: Change to std::vector.
3294 * symfile.c (default_symfile_segments): Update.
3295 * elfread.c (elf_symfile_segments): Update.
3296
3297 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3298
3299 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3300 <segments>: New.
3301 <segment_bases, segment_sizes>: Remove.
3302 * symfile.c (default_symfile_segments): Update.
3303 * elfread.c (elf_symfile_segments): Update.
3304 * remote.c (remote_target::get_offsets): Update.
3305 * solib-target.c (solib_target_relocate_section_addresses):
3306 Update.
3307
3308 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3309
3310 * symfile.h (struct symfile_segment_data): Initialize fields.
3311 <~symfile_segment_data>: Add.
3312 (symfile_segment_data_up): New.
3313 (struct sym_fns) <sym_segments>: Return a
3314 symfile_segment_data_up.
3315 (default_symfile_segments): Return a symfile_segment_data_up.
3316 (free_symfile_segment_data): Remove.
3317 (get_symfile_segment_data): Return a symfile_segment_data_up.
3318 * symfile.c (default_symfile_segments): Likewise.
3319 (get_symfile_segment_data): Likewise.
3320 (free_symfile_segment_data): Remove.
3321 (symfile_find_segment_sections): Update.
3322 * elfread.c (elf_symfile_segments): Return a
3323 symfile_segment_data_up.
3324 * remote.c (remote_target::get_offsets): Update.
3325 * solib-target.c (solib_target_relocate_section_addresses):
3326 Update.
3327 * symfile-debug.c (debug_sym_segments): Return a
3328 symfile_segment_data_up.
3329
3330 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3331
3332 PR build/25981
3333 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3334 Hardcode register numbers.
3335
3336 PR build/25981
3337 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3338 procfs_find_LDT_entry): Remove.
3339 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3340 procfs_find_LDT_entry): Remove.
3341 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3342 Remove.
3343
3344 2020-05-17 Pedro Alves <palves@redhat.com>
3345 Andrew Burgess <andrew.burgess@embecosm.com>
3346 Keno Fischer <keno@juliacomputing.com>
3347
3348 PR gdb/25741
3349 * breakpoint.c (build_target_condition_list): Update comments.
3350 (build_target_command_list): Update comments and skip matching
3351 locations.
3352 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3353 a separate function. Simplify "set breakpoint auto-hw off"
3354 handling.
3355 (insert_breakpoints): Update comment.
3356 (tracepoint_locations_match): New parameter. For breakpoints,
3357 compare location types too, if the caller wants to.
3358 (handle_automatic_hardware_breakpoints): New functions.
3359 (bp_location_is_less_than): Also sort by location type and
3360 hardware breakpoint length.
3361 (update_global_location_list): Handle "set breakpoint auto-hw on"
3362 here.
3363 (update_breakpoint_locations): Ask breakpoint_locations_match to
3364 ignore location types.
3365
3366 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
3367
3368 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3369 type::name instead.
3370
3371 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
3372
3373 * gdbtypes.h (struct type) <name, set_name>: New methods.
3374 (TYPE_CODE): Use type::name. Change all call sites used to set
3375 the name to use type::set_name instead.
3376
3377 2020-05-16 Tom Tromey <tom@tromey.com>
3378
3379 * top.c (quit_force): Update.
3380 * infrun.c (handle_no_resumed): Update.
3381 * top.h (all_uis): New function.
3382 (ALL_UIS): Remove.
3383
3384 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
3385
3386 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3387
3388 2020-05-16 Pedro Alves <palves@redhat.com>
3389
3390 * ia64-linux-nat.c
3391 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3392 Declare method.
3393 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3394
3395 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
3396
3397 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3398 (sparc64_adi_info): Likewise.
3399
3400 2020-05-15 Tom Tromey <tom@tromey.com>
3401
3402 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3403 block_objfile.
3404 (lookup_objfile_from_block): Remove.
3405 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3406 (lookup_global_symbol): Use block_objfile.
3407 * symtab.h (lookup_objfile_from_block): Don't declare.
3408 * printcmd.c (clear_dangling_display_expressions): Use
3409 block_objfile.
3410 * parse.c (operator_check_standard): Use block_objfile.
3411
3412 2020-05-15 Tom Tromey <tom@tromey.com>
3413
3414 * language.c (language_alloc_type_symbol): Set
3415 SYMBOL_SECTION.
3416 * symtab.c (initialize_objfile_symbol): Remove.
3417 (allocate_symbol): Remove.
3418 (allocate_template_symbol): Remove.
3419 * dwarf2/read.c (fixup_go_packaging): Use "new".
3420 (new_symbol): Use "new".
3421 (read_variable): Don't call initialize_objfile_symbol. Use
3422 "new".
3423 (read_func_scope): Use "new".
3424 * xcoffread.c (process_xcoff_symbol): Don't call
3425 initialize_objfile_symbol.
3426 (SYMBOL_DUP): Remove.
3427 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3428 "new".
3429 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3430 (allocate_template_symbol): Don't declare.
3431 (struct symbol): Add copy constructor. Change defaults.
3432 * jit.c (finalize_symtab): Use "new".
3433 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3434 Use "new".
3435 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3436 (common_block_end): Use "new".
3437 * mdebugread.c (parse_symbol): Use "new".
3438 (new_symbol): Likewise.
3439
3440 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3441
3442 * NEWS: Mention changes to help and apropos.
3443
3444 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3445
3446 * command.h (enum command_class): Improve comments, document
3447 that class_alias is for user-defined aliases, give the class
3448 name for each class, remove unused class_xdb.
3449 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3450 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3451 by a precise class.
3452 * infcmd.c (_initialize_infcmd): Likewise.
3453 * reverse.c (_initialize_reverse): Likewise.
3454 * stack.c (_initialize_stack): Likewise.
3455 * symfile.c (_initialize_symfile): Likewise.
3456 * tracepoint.c (_initialize_tracepoint): Likewise.
3457
3458 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3459
3460 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3461 when their aliased command is traversed.
3462 (help_cmd): Add fput_command_names_styled call to
3463 output command name and aliases when command has an alias.
3464
3465 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3466
3467 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3468 * cli/cli-decode.c (help_cmd_list): Declare as static,
3469 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3470 a command together with the command.
3471 (fput_command_name_styled, fput_command_names_styled): New functions.
3472 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3473 fput_command_name_styled.
3474 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3475 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3476
3477 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3478
3479 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3480 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3481 * command.h (cmd_show_list): Likewise.
3482 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3483 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3484
3485 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3486
3487 * unittests/command-def-selftests.c (traverse_command_structure):
3488 Verify all commands of a list have the same prefix command and
3489 that only the top cmdlist commands have a null prefix.
3490
3491 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3492
3493 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3494 as prefix, not one of its aliases.
3495 (set_cmd_prefix): Remove.
3496 (do_add_cmd): Centralize the setting of the prefix of a command, when
3497 command is defined after its full chain of prefix commands.
3498 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3499 (add_setshow_cmd_full): Likewise.
3500 (update_prefix_field_of_prefixed_commands): New function.
3501 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3502 update_prefix_field_of_prefixed_commands.
3503 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3504 addresses of remote_set_cmdlist and remote_show_cmdlist given
3505 as argument, not the address of an argument.
3506 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3507 * gdb/remote.c (_initialize_remote): Likewise.
3508
3509 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3510
3511 * cli/cli-cmds.c (alias_command): Check for an existing alias
3512 using lookup_cmd_composition, as valid_command_p is too strict
3513 and forbids aliases that are the prefix of an existing alias
3514 or command.
3515 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3516 command is properly recognised as a valid command.
3517
3518 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3519
3520 * unittests/help-doc-selftests.c: Rename to
3521 unittests/command-def-selftests.c
3522 * unittests/command-def-selftests.c (help_doc_tests): Update some
3523 comments.
3524 (command_structure_tests, traverse_command_structure): New namespace
3525 and function.
3526 (command_structure_invariants_tests): New function.
3527 (_initialize_command_def_selftests) Renamed from
3528 _initialize_help_doc_selftests, register command_structure_invariants
3529 selftest.
3530
3531 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3532
3533 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3534 an alias of 'show'.
3535
3536 2020-05-15 Joel Brobecker <brobecker@adacore.com>
3537
3538 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3539 ada_is_fixed_point_type. Update all callers.
3540 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3541 all callers.
3542 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3543 Update all callers.
3544 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3545 print_fixed_point_type. Update all callers.
3546 * ada-valprint.c (ada_value_print_num): Replace call to
3547 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3548
3549 2020-05-14 Kevin Buettner <kevinb@redhat.com>
3550
3551 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3552 processors.
3553 (cpu_supports_bts): Add CV_AMD case.
3554
3555 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3556 Simon Marchi <simon.marchi@efficios.com>
3557
3558 * infrun.c (stop_all_threads): Collect multiple wait events at
3559 each pass.
3560
3561 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
3562
3563 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3564 type::code instead.
3565
3566 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
3567
3568 * gdbtypes.h (struct type) <code, set_code>: New methods.
3569 (TYPE_CODE): Use type::code. Change all call sites used to set
3570 the code to use type::set_code instead.
3571
3572 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3573 Tom de Vries <tdevries@suse.de>
3574 Pedro Alves <palves@redhat.com>
3575
3576 PR threads/25478
3577 * infrun.c (stop_all_threads): Do NOT ignore
3578 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3579 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3580 received.
3581 (handle_no_resumed): Remove code handling a live inferior with no
3582 threads.
3583 * remote.c (has_single_non_exited_thread): New.
3584 (remote_target::update_thread_list): Do not delete a thread if is
3585 the last thread of the process.
3586 * thread.c (thread_select): Call delete_exited_threads instead of
3587 prune_threads.
3588
3589 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3590
3591 * infrun.c (stop_all_threads): Enable/disable thread events of all
3592 targets. Move a debug message denoting the end of the function
3593 into the SCOPED_EXIT block.
3594
3595 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3596
3597 * process-stratum-target.h: Include <set>.
3598 (all_non_exited_process_targets, switch_to_target_no_thread): New
3599 function declarations.
3600 * process-stratum-target.c (all_non_exited_process_targets)
3601 (switch_to_target_no_thread): New function implementations.
3602
3603 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3604
3605 * infrun.c (handle_inferior_event): Extract out a piece of code
3606 into...
3607 (mark_non_executing_threads): ...this new function.
3608
3609 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3610
3611 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3612 use.
3613
3614 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3615
3616 * regcache.c (regcache_read_pc_protected): New function
3617 implementation that returns 0 if the PC cannot read via
3618 'regcache_read_pc'.
3619 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3620 instead of 'regcache_read_pc'.
3621 (keep_going_pass_signal): Ditto.
3622
3623 2020-05-13 Tom Tromey <tromey@adacore.com>
3624
3625 * ada-lang.c (align_value): Remove.
3626 (ada_template_to_fixed_record_type_1): Use align_up.
3627
3628 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3629
3630 * async-event.c: Update the copyright year.
3631 * async-event.h: Update the copyright year.
3632
3633 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
3634
3635 * objfiles.h (is_addr_in_objfile,
3636 shared_objfile_contains_address_p): Return bool.
3637 * objfile.c (is_addr_in_objfile,
3638 shared_objfile_contains_address_p): Return bool.
3639
3640 2020-05-11 Tom Tromey <tromey@adacore.com>
3641
3642 * cli/cli-cmds.c (info_command): Restore.
3643 (_initialize_cli_cmds): Use add_prefix_command for "info".
3644 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3645
3646 2020-05-11 Tom Tromey <tromey@adacore.com>
3647
3648 * ada-lang.c (ada_value_primitive_field): Now public.
3649 * ada-lang.h (ada_value_primitive_field): Declare.
3650 * ada-valprint.c (print_field_values): Use
3651 ada_value_primitive_field for wrapper fields.
3652
3653 2020-05-11 Tom de Vries <tdevries@suse.de>
3654
3655 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3656 MODULE_DOMAIN.
3657
3658 2020-05-11 Tom de Vries <tdevries@suse.de>
3659
3660 PR symtab/25941
3661 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3662 with length 0, if not gdb-produced.
3663 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3664
3665 2020-05-09 Tom de Vries <tdevries@suse.de>
3666
3667 PR gdb/25955
3668 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3669 calculation.
3670
3671 2020-05-09 Tom Tromey <tom@tromey.com>
3672
3673 * top.c (server_command): Now bool.
3674 * top.h (server_command): Now bool.
3675
3676 2020-05-08 Tom Tromey <tromey@adacore.com>
3677
3678 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3679 already being processed.
3680
3681 2020-05-08 Tom Tromey <tom@tromey.com>
3682
3683 * printcmd.c (struct display) <next>: Remove.
3684 <display>: New constructor.
3685 <exp_string>: Now a std::string.
3686 <enabled_p>: Now a bool.
3687 (display_number): Move definition earlier.
3688 (displays): Rename from display_chain. Now a std::vector.
3689 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3690 (display_command): Update.
3691 (do_one_display, disable_display)
3692 (enable_disable_display_command, do_enable_disable_display):
3693 Update.
3694 (free_display): Remove.
3695 (clear_displays): Rewrite.
3696 (delete_display): Update.
3697 (map_display_numbers): Use function_view. Remove "data"
3698 parameter. Update.
3699 (do_delete_display): Remove.
3700 (undisplay_command): Update.
3701 (do_one_display, do_displays, disable_display)
3702 (info_display_command): Update.
3703 (do_enable_disable_display): Remove.
3704 (enable_disable_display_command)
3705 (clear_dangling_display_expressions): Update.
3706
3707 2020-05-08 Tom Tromey <tom@tromey.com>
3708
3709 * symtab.c (set_symbol_cache_size)
3710 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3711 (maintenance_print_symbol_cache_statistics): Update.
3712 * symmisc.c (print_symbol_bcache_statistics)
3713 (print_objfile_statistics, maintenance_print_objfiles)
3714 (maintenance_info_symtabs, maintenance_check_symtabs)
3715 (maintenance_expand_symtabs, maintenance_info_line_tables):
3716 Update.
3717 * symfile-debug.c (set_debug_symfile): Update.
3718 * source.c (forget_cached_source_info): Update.
3719 * python/python.c (gdbpy_progspaces): Update.
3720 * psymtab.c (maintenance_info_psymtabs): Update.
3721 * probe.c (parse_probes): Update.
3722 * linespec.c (iterate_over_all_matching_symtabs)
3723 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3724 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3725 * exec.c (exec_target::close): Update.
3726 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3727 * breakpoint.c (print_one_breakpoint_location)
3728 (create_longjmp_master_breakpoint)
3729 (create_std_terminate_master_breakpoint): Update.
3730 * progspace.c (program_spaces): Now a std::vector.
3731 (maybe_new_address_space): Update.
3732 (add_program_space): Remove.
3733 (program_space::program_space): Update.
3734 (remove_program_space): Update.
3735 (number_of_program_spaces): Remove.
3736 (print_program_space, update_address_spaces): Update.
3737 * progspace.h (program_spaces): Change type.
3738 (ALL_PSPACES): Remove.
3739 (number_of_program_spaces): Don't declare.
3740 (struct program_space) <next>: Remove.
3741
3742 2020-05-08 Tom Tromey <tom@tromey.com>
3743
3744 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3745 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3746 (enable_break): Update.
3747 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3748 (frv_fdpic_find_canonical_descriptor): Update.
3749 (frv_fetch_objfile_link_map): Update.
3750 * progspace.c (program_space::free_all_objfiles): Update.
3751 (program_space::solibs): New method.
3752 * progspace.h (struct program_space) <solibs>: New method.
3753 * solist.h (master_so_list): Don't declare.
3754 (ALL_SO_LIBS): Remove.
3755 * solib.h (so_list_head): Remove.
3756 (update_solib_list): Update comment.
3757 * solib.c (master_so_list): Remove.
3758 (solib_used, update_solib_list, solib_add)
3759 (info_sharedlibrary_command, clear_solib)
3760 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3761
3762 2020-05-08 Tom Tromey <tom@tromey.com>
3763
3764 * extension.c (extension_languages): Now a std::array.
3765 (ALL_EXTENSION_LANGUAGES): Remove.
3766 (get_ext_lang_defn, get_ext_lang_of_file)
3767 (eval_ext_lang_from_control_command): Update.
3768 (finish_ext_lang_initialization)
3769 (auto_load_ext_lang_scripts_for_objfile)
3770 (ext_lang_type_printers::ext_lang_type_printers)
3771 (apply_ext_lang_type_printers)
3772 (ext_lang_type_printers::~ext_lang_type_printers)
3773 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3774 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3775 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3776 (get_matching_xmethod_workers, ext_lang_colorize)
3777 (ext_lang_before_prompt): Update.
3778 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3779
3780 2020-05-08 Tom Tromey <tom@tromey.com>
3781
3782 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3783 overload.
3784 <swap_string, m_string>: Remove.
3785 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3786 Update.
3787 * stabsread.c (define_symbol, read_type): Update.
3788 * linespec.c (find_linespec_symbols): Update.
3789 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3790 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3791 * dbxread.c (read_dbx_symtab): Update.
3792 * cp-support.h (cp_canonicalize_string_full)
3793 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3794 Return unique_xmalloc_ptr.
3795 * cp-support.c (inspect_type): Update.
3796 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3797 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3798 Likewise.
3799 * c-typeprint.c (print_name_maybe_canonical): Update.
3800 * break-catch-throw.c (check_status_exception_catchpoint):
3801 Update.
3802
3803 2020-05-08 Tom de Vries <tdevries@suse.de>
3804
3805 * infrun.c (follow_fork): Copy current_line and current_symtab to
3806 child thread.
3807
3808 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
3809
3810 * async-event.c (struct async_signal_handler, struct
3811 async_event_handler): Reformat, remove typedef.
3812
3813 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
3814
3815 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3816 access thistype->main_type->dyn_prop_list directly.
3817
3818 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
3819
3820 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3821 (remove_dyn_prop): Remove. Update all users to use
3822 type::remove_dyn_prop.
3823 * gdbtypes.c (remove_dyn_prop): Rename to...
3824 (type::remove_dyn_prop): ... this.
3825
3826 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3827
3828 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3829 (add_dyn_prop): Remove. Update all users to use
3830 type::add_dyn_prop.
3831 * gdbtypes.c (add_dyn_prop): Rename to...
3832 (type::add_dyn_prop): ... this.
3833
3834 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
3835
3836 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3837 (get_dyn_prop): Remove. Update all users to use
3838 type::dyn_prop.
3839 * gdbtypes.c (get_dyn_prop): Rename to...
3840 (type::dyn_prop): ... this.
3841
3842 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
3843
3844 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3845
3846 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
3847
3848 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3849 instruction, skip it if it's there.
3850
3851 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
3852
3853 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
3854
3855 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
3856
3857 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
3858 * gdbtypes.c (recursive_dump_type): Remove use of
3859 TYPE_INCOMPLETE.
3860
3861 2020-05-03 Tom Tromey <tom@tromey.com>
3862
3863 * breakpoint.c (catch_command, tcatch_command): Remove.
3864 (_initialize_breakpoint): Use add_basic_prefix_cmd,
3865 add_show_prefix_cmd.
3866 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
3867 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3868 Remove.
3869 (add_internal_problem_command): Use add_basic_prefix_cmd,
3870 add_show_prefix_cmd.
3871 * mips-tdep.c (set_mipsfpu_command): Remove.
3872 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
3873 * dwarf2/index-cache.c (set_index_cache_command): Remove.
3874 (_initialize_index_cache): Use add_basic_prefix_cmd.
3875 * memattr.c (dummy_cmd): Remove.
3876 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
3877 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
3878 (_initialize_tui_win): Use add_basic_prefix_cmd,
3879 add_show_prefix_cmd.
3880 * cli/cli-logging.c (set_logging_command): Remove.
3881 (_initialize_cli_logging): Use add_basic_prefix_cmd,
3882 add_show_prefix_cmd.
3883 (show_logging_command): Remove.
3884 * target.c (target_command): Remove.
3885 (add_target): Use add_basic_prefix_cmd.
3886
3887 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
3888
3889 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
3890
3891 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3892
3893 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
3894 info_command.
3895
3896 2020-04-30 Kamil Rytarowski <n54@gmx.com>
3897
3898 * nbsd-nat.c (nbsd_enable_proc_events)
3899 (nbsd_nat_target::post_startup_inferior): Add.
3900 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
3901 (nbsd_nat_target::update_thread_list): Rewrite.
3902 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
3903 "PTRACE_LWP_CREATE".
3904 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
3905
3906 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3907
3908 * stack.c (_initialize_stack): Remove duplicated creation
3909 of "frame" command and "f" alias.
3910
3911 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
3912
3913 PR gdb/18706
3914 * gdbtypes.c (check_typedef): Calculate size of array of
3915 stubbed type.
3916
3917 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
3918
3919 PR gdb/15559
3920 * i386-tdep.c (i386_push_dummy_call): Call
3921 i386_thiscall_push_dummy_call.
3922 (i386_thiscall_push_dummy_call): New function.
3923 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
3924 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
3925 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
3926
3927 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
3928
3929 * gdbarch.sh (do_read): Add shellcheck disable directive for
3930 warning SC2162.
3931
3932 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
3933
3934 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
3935 "referenced but not assigned" warning.
3936
3937 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
3938
3939 * gdbarch.sh: Remove code that sets fallbackdefault.
3940
3941 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
3942
3943 * gdbarch.sh: Use shell operators && and || instead of
3944 -a and -o.
3945
3946 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
3947
3948 * gdbarch.sh: Use $(...) instead of `...`.
3949
3950 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
3951
3952 * gdbarch.sh: Use double quotes around variables.
3953
3954 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
3955
3956 * gdbarch.sh: Use %s with printf, instead of variables in the
3957 format string.
3958
3959 2020-04-29 Tom Tromey <tromey@adacore.com>
3960
3961 PR ada/25875:
3962 * dwarf2/read.c (update_enumeration_type_from_children): Compute
3963 type fields here.
3964 (read_enumeration_type): Call
3965 update_enumeration_type_from_children later. Update comments.
3966 (process_enumeration_scope): Don't create type fields.
3967
3968 2020-04-29 Kamil Rytarowski <n54@gmx.com>
3969
3970 * nbsd-tdep.c: Include "xml-syscall.h".
3971 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
3972
3973 2020-04-29 Kamil Rytarowski <n54@gmx.com>
3974
3975 * nbsd-nat.c: Include "sys/wait.h".
3976 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
3977 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
3978 (nbsd_nat_target::remove_exec_catchpoint)
3979 (nbsd_nat_target::set_syscall_catchpoint): Add.
3980 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
3981 (nbsd_nat_target::insert_exec_catchpoint)
3982 (nbsd_nat_target::remove_exec_catchpoint)
3983 (nbsd_nat_target::set_syscall_catchpoint): Add.
3984 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
3985 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
3986 `nbsd_get_syscall_number'.
3987
3988 2020-04-29 Tom Tromey <tom@tromey.com>
3989
3990 * stack.c (print_block_frame_labels): Remove.
3991
3992 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
3993
3994 PR gdb/17320
3995 * ada-valprint.c (val_print_packed_array_elements): Move array
3996 end bracket to new line.
3997 (ada_val_print_string): Remove extra spaces before first array
3998 element.
3999 * c-valprint.c (c_value_print_array): Likewise.
4000 * m2-valprint.c (m2_print_array_contents): Likewise.
4001 (m2_value_print_inner): Likewise.
4002 * p-valprint.c (pascal_value_print_inner): Likewise.
4003 * valprint.c (generic_val_print_array): Likewise.
4004 (value_print_array_elements): Move first array element and array
4005 end bracket to new line.
4006
4007 2020-04-29 Tom de Vries <tdevries@suse.de>
4008
4009 PR symtab/25889
4010 * linespec.c (find_method): Fix ix calculation.
4011
4012 2020-04-28 Kamil Rytarowski <n54@gmx.com>
4013
4014 * syscalls/update-netbsd.sh: New file.
4015 * syscalls/netbsd.xml: Regenerate.
4016 * data-directory/Makefile.in: Register `netbsd.xml' in
4017 `SYSCALLS_FILES'.
4018
4019 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4020
4021 * syscalls/update-freebsd.sh: Add double quotes.
4022
4023 2020-04-28 Tom Tromey <tom@tromey.com>
4024
4025 * NEWS: Update.
4026 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4027 (cmdpy_init): Allow class_tui.
4028
4029 2020-04-28 Mark Williams <mark@myosotissp.com>
4030
4031 PR gdb/24480
4032 * dwarf2read.c: Add missing assingments to list_in_scope when
4033 start_symtab was already called.
4034
4035 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4036
4037 PR gdb/25881
4038 * dwarf2/read.c (offset_map_type): Use
4039 gdb:hash_enum<sect_offset> as hash function.
4040
4041 2020-04-28 Tom de Vries <tdevries@suse.de>
4042
4043 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4044 with DW_AT_signature.
4045
4046 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
4047
4048 * configure.ac: Remove check for fs_base/gs_base in
4049 user_regs_struct.
4050 * configure: Re-generate.
4051 * config.in: Re-generate.
4052 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4053 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4054 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4055
4056 2020-04-27 Luis Machado <luis.machado@linaro.org>
4057
4058 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4059 problematic inline frame unwinding situation.
4060 * frame.c (frame_id_computed_p): New function.
4061 * frame.h (frame_id_computed_p): New prototype.
4062
4063 2020-04-26 Tom Tromey <tom@tromey.com>
4064
4065 * command.h (enum command_class) <class_pseudo>: Remove.
4066
4067 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4068
4069 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4070 and whitespace.
4071
4072 2020-04-25 Kamil Rytarowski <n54@gmx.com>
4073
4074 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4075 `PT_GET_PROCESS_STATE' block.
4076
4077 2020-04-24 Tom Tromey <tom@tromey.com>
4078
4079 * symtab.h (symbol_get_demangled_name): Don't declare.
4080 * symtab.c (symbol_get_demangled_name): Remove.
4081 (general_symbol_info::natural_name)
4082 (general_symbol_info::demangled_name): Update.
4083
4084 2020-04-24 Tom Tromey <tom@tromey.com>
4085
4086 PR rust/25025:
4087 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4088
4089 2020-04-24 Tom Tromey <tom@tromey.com>
4090
4091 PR symtab/12707:
4092 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4093 exists.
4094 (new_symbol): Likewise.
4095 * compile/compile-object-load.c (get_out_value_type): Use
4096 symbol_matches_search_name.
4097
4098 2020-04-24 Tom Tromey <tom@tromey.com>
4099
4100 * dwarf2/read.c (add_partial_symbol): Do not call
4101 compute_and_set_names.
4102
4103 2020-04-24 Tom Tromey <tom@tromey.com>
4104
4105 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4106 overload.
4107
4108 2020-04-24 Tom Tromey <tom@tromey.com>
4109
4110 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4111 (add_psymbol_to_list): New overload. Make old overload call new
4112 one.
4113 * psympriv.h (add_psymbol_to_list): New overload.
4114
4115 2020-04-24 Tom Tromey <tom@tromey.com>
4116
4117 * dwarf2/read.c (partial_die_info::read) <case
4118 DW_AT_linkage_name>: Use value_as_string.
4119 (dwarf2_string_attr): Use value_as_string.
4120 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4121 method.
4122 * dwarf2/attribute.c (attribute::value_as_string): New method.
4123
4124 2020-04-24 Tom Tromey <tom@tromey.com>
4125
4126 * symtab.c (general_symbol_info::natural_name)
4127 (general_symbol_info::demangled_name): Check for language_rust.
4128
4129 2020-04-24 Tom Tromey <tom@tromey.com>
4130
4131 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4132 (dwarf2_physname): ... from here.
4133 (partial_die_info::read): Add Rust "{" hack.
4134
4135 2020-04-24 Tom Tromey <tom@tromey.com>
4136
4137 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4138 method.
4139 (symbol_set_demangled_name): Don't declare.
4140 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4141 symbol_set_demangled_name.
4142 (general_symbol_info::set_language)
4143 (general_symbol_info::compute_and_set_names): Update.
4144 * minsyms.c (minimal_symbol_reader::install): Update.
4145 * dwarf2/read.c (new_symbol): Update.
4146
4147 2020-04-24 Tom Tromey <tromey@adacore.com>
4148
4149 PR python/23662:
4150 * python/py-type.c (convert_field): Handle
4151 FIELD_LOC_KIND_DWARF_BLOCK.
4152 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4153 (typy_get_dynamic): Nw function.
4154 (type_object_getset): Add "dynamic".
4155 * NEWS: Add entry.
4156
4157 2020-04-24 Tom Tromey <tromey@adacore.com>
4158
4159 * ada-typeprint.c (print_choices, print_variant_part)
4160 (print_record_field_types_dynamic): New functions.
4161 (print_record_field_types): Use print_record_field_types_dynamic.
4162
4163 2020-04-24 Tom Tromey <tromey@adacore.com>
4164
4165 * dwarf2/read.c (handle_data_member_location): New overload.
4166 (dwarf2_add_field): Use it.
4167 (decode_locdesc): Add "computed" parameter. Update comment.
4168 * gdbtypes.c (is_dynamic_type_internal): Also look for
4169 FIELD_LOC_KIND_DWARF_BLOCK.
4170 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4171 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4172 virtual base classes.
4173 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4174 FIELD_LOC_KIND_DWARF_BLOCK.
4175
4176 2020-04-24 Tom Tromey <tromey@adacore.com>
4177
4178 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4179 * gdbtypes.c (is_dynamic_type_internal): Check
4180 TYPE_HAS_DYNAMIC_LENGTH.
4181 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4182 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4183 New macros.
4184 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4185 constant.
4186
4187 2020-04-24 Tom Tromey <tromey@adacore.com>
4188
4189 * dwarf2/read.c (struct variant_field): Rewrite.
4190 (struct variant_part_builder): New.
4191 (struct nextfield): Remove "variant" field. Add "offset".
4192 (struct field_info): Add "current_variant_part" and
4193 "variant_parts".
4194 (alloc_discriminant_info): Remove.
4195 (alloc_rust_variant): New function.
4196 (quirk_rust_enum): Update.
4197 (dwarf2_add_field): Set "offset" member. Don't handle
4198 DW_TAG_variant_part.
4199 (offset_map_type): New typedef.
4200 (convert_variant_range, create_one_variant)
4201 (create_one_variant_part, create_variant_parts)
4202 (add_variant_property): New functions.
4203 (dwarf2_attach_fields_to_type): Call add_variant_property.
4204 (read_structure_type): Don't handle DW_TAG_variant_part.
4205 (handle_variant_part, handle_variant): New functions.
4206 (handle_struct_member_die): Use them.
4207 (process_structure_scope): Don't handle variant parts.
4208 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4209 (struct discriminant_info): Remove.
4210 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4211 (struct main_type) <flag_discriminated_union>: Remove.
4212 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4213 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4214 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4215 Update.
4216 * valops.c (value_union_variant): Remove.
4217 * value.h (value_union_variant): Don't declare.
4218
4219 2020-04-24 Tom Tromey <tromey@adacore.com>
4220
4221 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4222 (ada_value_primitive_packed_val): Update.
4223 * ada-valprint.c (ada_value_print_1): Update.
4224 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4225 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4226 just an address. Use evaluate_for_locexpr_baton.
4227 (dwarf2_evaluate_property): Update.
4228 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4229 array_view.
4230 * findvar.c (default_read_var_value): Update.
4231 * gdbtypes.c (compute_variant_fields_inner)
4232 (resolve_dynamic_type_internal): Update.
4233 (resolve_dynamic_type): Change type of valaddr parameter.
4234 * gdbtypes.h (resolve_dynamic_type): Update.
4235 * valarith.c (value_subscripted_rvalue): Update.
4236 * value.c (value_from_contents_and_address): Update.
4237
4238 2020-04-24 Tom Tromey <tromey@adacore.com>
4239
4240 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4241 "push_initial_value" parameter.
4242 (dwarf2_evaluate_property): Likewise.
4243 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4244
4245 2020-04-24 Tom Tromey <tromey@adacore.com>
4246
4247 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4248 (variant::matches, compute_variant_fields_recurse)
4249 (compute_variant_fields_inner, compute_variant_fields): New
4250 functions.
4251 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4252 Use resolved_type after type is made.
4253 (operator==): Add new cases.
4254 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4255 (struct discriminant_range, struct variant, struct variant_part):
4256 New.
4257 (union dynamic_prop_data) <variant_parts, original_type>: New
4258 members.
4259 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4260 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4261 constants.
4262 * value.c (unpack_bits_as_long): Now public.
4263 * value.h (unpack_bits_as_long): Declare.
4264
4265 2020-04-24 Tom Tromey <tromey@adacore.com>
4266
4267 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4268 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4269
4270 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
4271
4272 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4273
4274 2020-04-24 Kamil Rytarowski <n54@gmx.com>
4275
4276 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4277 (remove_fork_catchpoint, post_startup_inferior)
4278 (post_attach): Move...
4279 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4280 (remove_fork_catchpoint, post_startup_inferior)
4281 (post_attach): ...here.
4282 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4283 (remove_fork_catchpoint, post_startup_inferior)
4284 (post_attach): Move...
4285 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4286 (remove_fork_catchpoint, post_startup_inferior)
4287 (post_attach): ...here.
4288
4289 2020-04-24 Tom Tromey <tromey@adacore.com>
4290
4291 * nat/windows-nat.h (struct windows_thread_info)
4292 <pc_adjusted>: New member.
4293 * windows-nat.c (windows_fetch_one_register): Check
4294 pc_adjusted.
4295 (windows_nat_target::get_windows_debug_event)
4296 (windows_nat_target::wait): Set pc_adjusted.
4297
4298 2020-04-24 Tom de Vries <tdevries@suse.de>
4299
4300 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4301 Run gdb-add-index inside temp dir.
4302
4303 2020-04-23 Tom Tromey <tromey@adacore.com>
4304
4305 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4306 in loop.
4307
4308 2020-04-23 Luis Machado <luis.machado@linaro.org>
4309
4310 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4311 get_frame_register instead of gdbarch_unwind_pc.
4312
4313 2020-04-23 Tom de Vries <tdevries@suse.de>
4314
4315 * symtab.c (lookup_global_symbol): Prefer def over decl.
4316
4317 2020-04-23 Tom de Vries <tdevries@suse.de>
4318
4319 PR symtab/25807
4320 * block.c (best_symbol, better_symbol): Promote to external.
4321 * block.h (best_symbol, better_symbol): Declare.
4322 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4323 decl.
4324
4325 2020-04-23 Tom Tromey <tromey@adacore.com>
4326
4327 PR ada/25837:
4328 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4329 "const char *", not a "const std::string &".
4330 <name_and_matcher::operator==>: Update.
4331 * unittests/lookup_name_info-selftests.c: Change type of
4332 "result".
4333
4334 2020-04-23 Tom Tromey <tom@tromey.com>
4335
4336 * inferior.h (iterate_over_inferiors): Don't declare.
4337 * inferior.c (iterate_over_inferiors): Remove.
4338 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4339 Remove.
4340 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4341 use iterate_over_inferiors.
4342 (darwin_resume_inferior_it)
4343 (struct resume_inferior_threads_param)
4344 (darwin_resume_inferior_threads_it): Remove.
4345 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4346
4347 2020-04-23 Tom de Vries <tdevries@suse.de>
4348
4349 * blockframe.c (find_pc_partial_function): Use
4350 find_pc_sect_compunit_symtab rather than
4351 objfile->sf->qf->find_pc_sect_compunit_symtab.
4352
4353 2020-04-22 Tom de Vries <tdevries@suse.de>
4354
4355 PR symtab/25764
4356 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4357 in psymtabs.
4358
4359 2020-04-22 Tom de Vries <tdevries@suse.de>
4360
4361 PR symtab/25801
4362 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4363 symtabs.
4364
4365 2020-04-22 Tom de Vries <tdevries@suse.de>
4366
4367 PR symtab/25700
4368 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4369 CU if already created.
4370
4371 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4372
4373 * infrun.c (displaced_step_fixup): Switch to the event_thread
4374 before calling displaced_step_restore, not after.
4375
4376 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4377
4378 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4379 its inferior is not recorded by us.
4380 (record_btrace_target_open): Replace call to
4381 all_non_exited_threads () with call to current_inferior
4382 ()->non_exited_threads ().
4383 (record_btrace_target::stop_recording): Likewise.
4384 (record_btrace_target::close): Likewise.
4385 (record_btrace_target::wait): Likewise.
4386 (record_btrace_target::record_stop_replaying): Likewise.
4387
4388 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4389
4390 * btrace.c (btrace_enable): Throw an error on double enables and
4391 when enabling recording fails.
4392 (btrace_disable): Throw an error if the thread is not recorded.
4393
4394 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4395
4396 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4397 request if we do not have a thread_info.
4398
4399 2020-04-21 Tom de Vries <tdevries@suse.de>
4400
4401 PR gdb/25471
4402 * thread.c
4403 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4404 exception in get_frame_id.
4405
4406 2020-04-20 Tom Tromey <tromey@adacore.com>
4407
4408 * python/python.c (struct gdbpy_event): Mark move constructor as
4409 noexcept.
4410 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4411 constructor as noexcept.
4412 * completer.h (struct completion_result): Mark move constructor as
4413 noexcept.
4414 * completer.c (completion_result::completion_result): Use
4415 initialization style. Don't call reset_match_list.
4416
4417 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4418
4419 * MAINTAINERS (Write After Approval): Add myself.
4420
4421 2020-04-18 Tom Tromey <tom@tromey.com>
4422
4423 * windows-tdep.c (init_w32_command_list)
4424 (w32_prefix_command_valid): Restore.
4425 (_initialize_windows_tdep): Call init_w32_command_list.
4426
4427 2020-04-18 Tom Tromey <tom@tromey.com>
4428
4429 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4430 * value.c (value_fn_field): Update.
4431 * valops.c (find_function_in_inferior)
4432 (value_allocate_space_in_inferior): Update.
4433 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4434 Update.
4435 * tui/tui-source.c (tui_source_window::set_contents): Update.
4436 * symtab.c (lookup_global_or_static_symbol)
4437 (find_function_start_sal_1, skip_prologue_sal)
4438 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4439 * symmisc.c (dump_msymbols, dump_symtab_1)
4440 (maintenance_print_one_line_table): Update.
4441 * symfile.c (init_entry_point_info, section_is_mapped)
4442 (list_overlays_command, simple_read_overlay_table)
4443 (simple_overlay_update_1): Update.
4444 * stap-probe.c (handle_stap_probe): Update.
4445 * stabsread.c (dbx_init_float_type, define_symbol)
4446 (read_one_struct_field, read_enum_type, read_range_type): Update.
4447 * source.c (info_line_command): Update.
4448 * python/python.c (gdbpy_source_objfile_script)
4449 (gdbpy_execute_objfile_script): Update.
4450 * python/py-type.c (save_objfile_types): Update.
4451 * python/py-objfile.c (py_free_objfile): Update.
4452 * python/py-inferior.c (python_new_objfile): Update.
4453 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4454 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4455 (maintenance_check_psymtabs): Update.
4456 * printcmd.c (info_address_command): Update.
4457 * objfiles.h (struct objfile) <arch>: New method, from
4458 get_objfile_arch.
4459 (get_objfile_arch): Don't declare.
4460 * objfiles.c (get_objfile_arch): Remove.
4461 (filter_overlapping_sections): Update.
4462 * minsyms.c (msymbol_is_function): Update.
4463 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4464 (output_nondebug_symbol): Update.
4465 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4466 (mdebug_expand_psymtab): Update.
4467 * machoread.c (macho_add_oso_symfile): Update.
4468 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4469 Update.
4470 * linux-fork.c (checkpoint_command): Update.
4471 * linespec.c (convert_linespec_to_sals): Update.
4472 * jit.c (finalize_symtab): Update.
4473 * infrun.c (insert_exception_resume_from_probe): Update.
4474 * ia64-tdep.c (ia64_find_unwind_table): Update.
4475 * hppa-tdep.c (internalize_unwinds): Update.
4476 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4477 Update.
4478 * gcore.c (call_target_sbrk): Update.
4479 * elfread.c (record_minimal_symbol, elf_symtab_read)
4480 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4481 (elf_gnu_ifunc_resolve_by_got): Update.
4482 * dwarf2/read.c (create_addrmap_from_index)
4483 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4484 (read_debug_names_from_section)
4485 (process_psymtab_comp_unit_reader, add_partial_symbol)
4486 (add_partial_subprogram, process_full_comp_unit)
4487 (read_file_scope, read_func_scope, read_lexical_block_scope)
4488 (read_call_site_scope, dwarf2_ranges_read)
4489 (dwarf2_record_block_ranges, dwarf2_add_field)
4490 (mark_common_block_symbol_computed, read_tag_pointer_type)
4491 (read_tag_string_type, dwarf2_init_float_type)
4492 (dwarf2_init_complex_target_type, read_base_type)
4493 (partial_die_info::read, partial_die_info::read)
4494 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4495 (dwarf2_fetch_die_loc_sect_off): Update.
4496 * dwarf2/loc.c (dwarf2_find_location_expression)
4497 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4498 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4499 (dwarf2_loc_desc_get_symbol_read_needs)
4500 (locexpr_describe_location_piece, locexpr_describe_location_1)
4501 (loclist_describe_location): Update.
4502 * dwarf2/index-write.c (write_debug_names): Update.
4503 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4504 * dtrace-probe.c (dtrace_process_dof): Update.
4505 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4506 (process_one_symbol): Update.
4507 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4508 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4509 (coff_read_enum_type): Update.
4510 * cli/cli-cmds.c (edit_command, list_command): Update.
4511 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4512 * breakpoint.c (create_overlay_event_breakpoint)
4513 (create_longjmp_master_breakpoint)
4514 (create_std_terminate_master_breakpoint)
4515 (create_exception_master_breakpoint, get_sal_arch): Update.
4516 * block.c (block_gdbarch): Update.
4517 * annotate.c (annotate_source_line): Update.
4518
4519 2020-04-17 Tom Tromey <tromey@adacore.com>
4520
4521 * auto-load.c (show_auto_load_cmd): Remove.
4522 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4523 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4524 (maintenance_print_arc_command): Remove.
4525 * tui/tui-win.c (tui_command): Remove.
4526 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4527 * tui/tui-layout.c (tui_layout_command): Remove.
4528 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4529 * python/python.c (user_set_python, user_show_python): Remove.
4530 (_initialize_python): Use add_basic_prefix_cmd,
4531 add_show_prefix_cmd.
4532 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4533 (install_gdb_commands): Use add_basic_prefix_cmd,
4534 add_show_prefix_cmd.
4535 (info_guile_command): Remove.
4536 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4537 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4538 add_show_prefix_cmd.
4539 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4540 Remove do_set and do_show parameters.
4541 * cli/cli-style.c (set_style, show_style): Remove.
4542 (_initialize_cli_style): Use add_basic_prefix_cmd,
4543 add_show_prefix_cmd.
4544 (cli_style_option::add_setshow_commands): Remove do_set and
4545 do_show parameters.
4546 (cli_style_option::add_setshow_commands): Use
4547 add_basic_prefix_cmd, add_show_prefix_cmd.
4548 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4549 (set_style_name): Remove.
4550 * cli/cli-dump.c (dump_command, append_command): Remove.
4551 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4552 (tekhex_dump_command, binary_dump_command)
4553 (binary_append_command): Remove.
4554 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4555 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4556 (init_w32_command_list): Remove; move into ...
4557 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4558 * valprint.c (set_print, show_print, set_print_raw)
4559 (show_print_raw): Remove.
4560 (_initialize_valprint): Use add_basic_prefix_cmd,
4561 add_show_prefix_cmd.
4562 * typeprint.c (set_print_type, show_print_type): Remove.
4563 (_initialize_typeprint): Use add_basic_prefix_cmd,
4564 add_show_prefix_cmd.
4565 * record.c (set_record_command, show_record_command): Remove.
4566 (_initialize_record): Use add_basic_prefix_cmd,
4567 add_show_prefix_cmd.
4568 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4569 add_show_prefix_cmd.
4570 (info_command, show_command, set_debug, show_debug): Remove.
4571 * top.h (set_history, show_history): Don't declare.
4572 * top.c (set_history, show_history): Remove.
4573 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4574 (unset_tdesc_cmd): Remove.
4575 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4576 add_show_prefix_cmd.
4577 * symtab.c (info_module_command): Remove.
4578 (_initialize_symtab): Use add_basic_prefix_cmd.
4579 * symfile.c (overlay_command): Remove.
4580 (_initialize_symfile): Use add_basic_prefix_cmd.
4581 * sparc64-tdep.c (info_adi_command): Remove.
4582 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4583 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4584 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4585 add_show_prefix_cmd.
4586 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4587 (_initialize_serial): Use add_basic_prefix_cmd,
4588 add_show_prefix_cmd.
4589 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4590 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4591 add_show_prefix_cmd.
4592 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4593 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4594 add_show_prefix_cmd.
4595 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4596 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4597 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4598 add_show_prefix_cmd.
4599 * remote.c (remote_command, set_remote_cmd): Remove.
4600 (_initialize_remote): Use add_basic_prefix_cmd.
4601 * record-full.c (set_record_full_command)
4602 (show_record_full_command): Remove.
4603 (_initialize_record_full): Use add_basic_prefix_cmd,
4604 add_show_prefix_cmd.
4605 * record-btrace.c (cmd_set_record_btrace)
4606 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4607 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4608 (cmd_show_record_btrace_pt): Remove.
4609 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4610 add_show_prefix_cmd.
4611 * ravenscar-thread.c (set_ravenscar_command)
4612 (show_ravenscar_command): Remove.
4613 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4614 add_show_prefix_cmd.
4615 * mips-tdep.c (show_mips_command, set_mips_command)
4616 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4617 add_show_prefix_cmd.
4618 * maint.c (maintenance_command, maintenance_info_command)
4619 (maintenance_check_command, maintenance_print_command)
4620 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4621 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4622 add_show_prefix_cmd.
4623 (show_per_command_cmd): Remove.
4624 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4625 Remove.
4626 (maintenance_show_test_settings_cmd): Remove.
4627 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4628 add_show_prefix_cmd.
4629 * maint-test-options.c (maintenance_test_options_command):
4630 Remove.
4631 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4632 * macrocmd.c (macro_command): Remove
4633 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4634 * language.c (set_check, show_check): Remove.
4635 (_initialize_language): Use add_basic_prefix_cmd,
4636 add_show_prefix_cmd.
4637 * infcmd.c (unset_command): Remove.
4638 (_initialize_infcmd): Use add_basic_prefix_cmd.
4639 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4640 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4641 add_show_prefix_cmd.
4642 * go32-nat.c (go32_info_dos_command): Remove.
4643 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4644 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4645 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4646 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4647 (_initialize_frame): Use add_basic_prefix_cmd,
4648 add_show_prefix_cmd.
4649 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4650 (_initialize_dcache): Use add_basic_prefix_cmd,
4651 add_show_prefix_cmd.
4652 * cp-support.c (maint_cplus_command): Remove.
4653 (_initialize_cp_support): Use add_basic_prefix_cmd.
4654 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4655 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4656 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4657 add_basic_prefix_cmd, add_show_prefix_cmd.
4658 * breakpoint.c (save_command): Remove.
4659 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4660 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4661 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4662 add_show_prefix_cmd.
4663 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4664 (set_ada_command, show_ada_command): Remove.
4665 (_initialize_ada_language): Use add_basic_prefix_cmd,
4666 add_show_prefix_cmd.
4667 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4668
4669 2020-04-16 Kamil Rytarowski <n54@gmx.com>
4670
4671 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4672 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4673
4674 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4675
4676 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4677 warning messages.
4678
4679 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4680
4681 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4682 import table is not at beginning of .idata section.
4683
4684 2020-04-16 Pedro Alves <palves@redhat.com>
4685
4686 * inferior.c (delete_inferior): Use delete operator directly
4687 instead of delete_program_space.
4688 * progspace.c (add_program_space): New, factored out from
4689 program_space::program_space.
4690 (remove_program_space): New, factored out from
4691 delete_program_space.
4692 (program_space::program_space): Remove intro comment. Rewrite.
4693 (program_space::~program_space): Remove intro comment. Call
4694 remove_program_space.
4695 (delete_program_space): Delete.
4696 * progspace.h (program_space::program_space): Make explicit. Move
4697 intro comment here, adjusted.
4698 (program_space::~program_space): Move intro comment here,
4699 adjusted.
4700 (delete_program_space): Remove.
4701
4702 2020-04-16 Tom Tromey <tromey@adacore.com>
4703
4704 * windows-nat.c (windows_nat::handle_access_violation): New
4705 function.
4706 * nat/windows-nat.h (handle_access_violation): Declare.
4707 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4708 windows-nat.c. Call handle_access_violation.
4709
4710 2020-04-16 Tom de Vries <tdevries@suse.de>
4711
4712 PR symtab/25791
4713 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4714 CUs without psymtab.
4715
4716 2020-04-16 Kevin Buettner <kevinb@redhat.com>
4717
4718 * python/python.c (do_start_initialization): Don't call
4719 PyEval_InitThreads for Python 3.9 and beyond.
4720
4721 2020-04-15 Kamil Rytarowski <n54@gmx.com>
4722
4723 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4724 thread functions.
4725 (obsd_nat_target::wait): Likewise.
4726
4727 2020-04-15 Tom Tromey <tromey@adacore.com>
4728
4729 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4730 (DEBUG_EXCEPT): Use debug_printf.
4731
4732 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4733
4734 * completer.c (class completion_tracker::completion_hash_entry)
4735 <hash_name>: New member function.
4736 (completion_tracker::discard_completions): New callback to hash a
4737 completion_hash_entry, pass this to htab_create_alloc.
4738
4739 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4740
4741 * windows-nat.c (windows_make_so): Warn rather than stopping with
4742 an error if realpath() fails.
4743
4744 2020-04-14 Kamil Rytarowski <n54@gmx.com>
4745
4746 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4747 (nbsd_nat_target::info_proc): Add do_status.
4748
4749 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4750 Tom de Vries <tdevries@suse.de>
4751
4752 PR symtab/25718
4753 * psympriv.h (struct partial_symtab::read_symtab)
4754 (struct partial_symtab::expand_psymtab)
4755 (struct partial_symtab::read_dependencies): Update comments.
4756 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4757 read_symtab for includer.
4758 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4759 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4760 (struct dwarf2_include_psymtab::m_readin): Remove.
4761 (struct dwarf2_include_psymtab::includer): New member function.
4762 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4763
4764 2020-04-14 Tom de Vries <tdevries@suse.de>
4765
4766 PR symtab/25720
4767 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4768 with NULL symbol_matcher and lookup_name.
4769 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4770 and lookup_name.
4771 * dwarf2/read.c (dw2_expand_symtabs_matching)
4772 (dw2_debug_names_expand_symtabs_matching): Same.
4773 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4774 Make lookup_name a pointer. Update comment.
4775 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4776 lookup_name being a pointer.
4777 * symfile.c (expand_symtabs_matching): Same.
4778 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4779 * linespec.c (iterate_over_all_matching_symtabs): Same.
4780
4781 2020-04-13 Tom Tromey <tom@tromey.com>
4782
4783 * run-on-main-thread.c: Update include.
4784 * unittests/main-thread-selftests.c: Update include.
4785 * tui/tui-win.c: Update include.
4786 * tui/tui-io.c: Update include.
4787 * tui/tui-interp.c: Update include.
4788 * tui/tui-hooks.c: Update include.
4789 * top.h: Update include.
4790 * top.c: Update include.
4791 * ser-base.c: Update include.
4792 * remote.c: Update include.
4793 * remote-notif.c: Update include.
4794 * remote-fileio.c: Update include.
4795 * record-full.c: Update include.
4796 * record-btrace.c: Update include.
4797 * python/python.c: Update include.
4798 * posix-hdep.c: Update include.
4799 * mingw-hdep.c: Update include.
4800 * mi/mi-main.c: Update include.
4801 * mi/mi-interp.c: Update include.
4802 * main.c: Update include.
4803 * linux-nat.c: Update include.
4804 * interps.c: Update include.
4805 * infrun.c: Update include.
4806 * inf-loop.c: Update include.
4807 * event-top.c: Update include.
4808 * event-loop.c: Move to ../gdbsupport/.
4809 * event-loop.h: Move to ../gdbsupport/.
4810 * async-event.h: Update include.
4811 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4812
4813 2020-04-13 Tom Tromey <tom@tromey.com>
4814
4815 * tui/tui-win.c: Include async-event.h.
4816 * remote.c: Include async-event.h.
4817 * remote-notif.c: Include async-event.h.
4818 * record-full.c: Include async-event.h.
4819 * record-btrace.c: Include async-event.h.
4820 * infrun.c: Include async-event.h.
4821 * event-top.c: Include async-event.h.
4822 * event-loop.h: Move some declarations to async-event.h.
4823 * event-loop.c: Don't include ser-event.h or top.h. Move some
4824 code to async-event.c.
4825 * async-event.h: New file.
4826 * async-event.c: New file.
4827 * Makefile.in (COMMON_SFILES): Add async-event.c.
4828 (HFILES_NO_SRCDIR): Add async-event.h.
4829
4830 2020-04-13 Tom Tromey <tom@tromey.com>
4831
4832 * utils.c (flush_streams): New function.
4833 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4834
4835 2020-04-13 Tom Tromey <tom@tromey.com>
4836
4837 * event-loop.c (handle_file_event): Use warning, not
4838 printf_unfiltered.
4839
4840 2020-04-13 Tom Tromey <tom@tromey.com>
4841
4842 * event-loop.c: Include <chrono>.
4843
4844 2020-04-13 Tom Tromey <tom@tromey.com>
4845
4846 * gdb_select.h: Move to ../gdbsupport/.
4847 * event-loop.c: Update include path.
4848 * top.c: Update include path.
4849 * ser-base.c: Update include path.
4850 * ui-file.c: Update include path.
4851 * ser-tcp.c: Update include path.
4852 * guile/scm-ports.c: Update include path.
4853 * posix-hdep.c: Update include path.
4854 * ser-unix.c: Update include path.
4855 * gdb_usleep.c: Update include path.
4856 * mingw-hdep.c: Update include path.
4857 * inflow.c: Update include path.
4858 * infrun.c: Update include path.
4859 * event-top.c: Update include path.
4860
4861 2020-04-13 Tom Tromey <tom@tromey.com>
4862
4863 * configure: Rebuild.
4864 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
4865
4866 2020-04-13 Tom Tromey <tom@tromey.com>
4867
4868 * event-loop.h (start_event_loop): Don't declare.
4869 * event-loop.c (start_event_loop): Move...
4870 * main.c (start_event_loop): ...here. Now static.
4871
4872 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
4873
4874 * MAINTAINERS: Update my email address.
4875
4876 2020-04-12 Kamil Rytarowski <n54@gmx.com>
4877
4878 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
4879 IP_ALL.
4880
4881 2020-04-12 Kamil Rytarowski <n54@gmx.com>
4882
4883 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
4884 (nbsd_nat_target::info_proc): Add do_cmdline.
4885
4886 2020-04-12 Kamil Rytarowski <n54@gmx.com>
4887
4888 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
4889 (nbsd_nat_target::info_proc): Add do_cwd.
4890
4891 2020-04-12 Kamil Rytarowski <n54@gmx.com>
4892
4893 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
4894
4895 2020-04-11 Kamil Rytarowski <n54@gmx.com>
4896
4897 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
4898 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
4899 (nbsd_nat_target::info_proc): New functions.
4900 * nbsd-nat.c (kinfo_get_vmmap): New function.
4901 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
4902 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
4903 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
4904 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
4905 functions.
4906 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
4907 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
4908 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
4909 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
4910 (KINFO_VME_FLAG_GROWS_DOWN): New.
4911
4912 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
4913
4914 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
4915 bit shift.
4916
4917 2020-04-10 Tom Tromey <tromey@adacore.com>
4918
4919 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
4920
4921 2020-04-10 Tom Tromey <tromey@adacore.com>
4922
4923 * symtab.c (get_symbol_address, get_msymbol_address): Skip
4924 separate debug files.
4925
4926 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
4927
4928 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4929 Move to...
4930 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4931 ... here.
4932 * windows-nat.c (windows_nat_target::get_windows_debug_event):
4933 Check for STATUS_WX86_BREAKPOINT.
4934 (windows_nat_target::wait): Same.
4935
4936 2020-04-10 Tom de Vries <tdevries@suse.de>
4937
4938 PR cli/25808
4939 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
4940
4941 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
4942
4943 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
4944 (Write After Approval): Remove Tom de Vries.
4945
4946 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4947
4948 revert partially:
4949 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4950
4951 * buildsym.c (record_line): Fix undefined behavior and preserve
4952 lines at eof.
4953
4954 2020-04-09 Kamil Rytarowski <n54@gmx.com>
4955
4956 * auxv.h (svr4_auxv_parse): New.
4957 * auxv.c (default_auxv_parse): Split into default_auxv_parse
4958 and generic_auxv_parse.
4959 (svr4_auxv_parse): Add.
4960 * obsd-tdep.c: Include "auxv.h".
4961 (obsd_auxv_parse): Remove.
4962 (obsd_init_abi): Remove comment.
4963 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
4964 from `obsd_auxv_parse' to `svr4_auxv_parse'.
4965 * nbsd-tdep.c: Include "auxv.h".
4966 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
4967
4968 2020-04-08 Tom Tromey <tromey@adacore.com>
4969
4970 * nat/windows-nat.h (last_wait_event): Don't declare.
4971 (wait_for_debug_event): Update comment.
4972 * nat/windows-nat.c (last_wait_event): Now static.
4973
4974 2020-04-08 Tom Tromey <tromey@adacore.com>
4975
4976 * windows-nat.c (wait_for_debug_event): Move to
4977 nat/windows-nat.c.
4978 * nat/windows-nat.h (wait_for_debug_event): Declare.
4979 * nat/windows-nat.c (wait_for_debug_event): Move from
4980 windows-nat.c. No longer static.
4981
4982 2020-04-08 Tom Tromey <tromey@adacore.com>
4983
4984 * windows-nat.c (get_windows_debug_event): Use
4985 fetch_pending_stop.
4986 * nat/windows-nat.h (fetch_pending_stop): Declare.
4987 * nat/windows-nat.c (fetch_pending_stop): New function.
4988
4989 2020-04-08 Tom Tromey <tromey@adacore.com>
4990
4991 * windows-nat.c (windows_continue): Use matching_pending_stop and
4992 continue_last_debug_event.
4993 * nat/windows-nat.h (matching_pending_stop)
4994 (continue_last_debug_event): Declare.
4995 * nat/windows-nat.c (DEBUG_EVENTS): New define.
4996 (matching_pending_stop, continue_last_debug_event): New
4997 functions.
4998
4999 2020-04-08 Tom Tromey <tromey@adacore.com>
5000
5001 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5002 (handle_exception_result): Move to nat/windows-nat.h.
5003 (DEBUG_EXCEPTION_SIMPLE): Remove.
5004 (windows_nat::handle_ms_vc_exception): New function.
5005 (handle_exception): Move to nat/windows-nat.c.
5006 (get_windows_debug_event): Update.
5007 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5008 nat/windows-nat.c.
5009 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5010 (handle_exception_result): Move from windows-nat.c.
5011 (handle_exception): Declare.
5012 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5013 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5014 windows-nat.c.
5015
5016 2020-04-08 Tom Tromey <tromey@adacore.com>
5017
5018 * windows-nat.c (exception_count, event_count): Remove.
5019 (handle_exception, get_windows_debug_event)
5020 (do_initial_windows_stuff): Update.
5021
5022 2020-04-08 Tom Tromey <tromey@adacore.com>
5023
5024 * windows-nat.c (windows_nat::handle_load_dll)
5025 (windows_nat::handle_unload_dll): Rename. No longer static.
5026 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5027 Declare.
5028
5029 2020-04-08 Tom Tromey <tromey@adacore.com>
5030
5031 * complaints.h (stop_whining): Declare at top-level.
5032 (complaint): Don't declare stop_whining.
5033
5034 2020-04-08 Tom Tromey <tromey@adacore.com>
5035
5036 * windows-nat.c (windows_nat::handle_output_debug_string):
5037 Rename. No longer static.
5038 * nat/windows-nat.h (handle_output_debug_string): Declare.
5039
5040 2020-04-08 Tom Tromey <tromey@adacore.com>
5041
5042 * windows-nat.c (current_process_handle, current_process_id)
5043 (main_thread_id, last_sig, current_event, last_wait_event)
5044 (current_windows_thread, desired_stop_thread_id, pending_stops)
5045 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5046 (display_selectors, fake_create_process)
5047 (get_windows_debug_event): Update.
5048 * nat/windows-nat.h (current_process_handle, current_process_id)
5049 (main_thread_id, last_sig, current_event, last_wait_event)
5050 (current_windows_thread, desired_stop_thread_id, pending_stops)
5051 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5052 * nat/windows-nat.c (current_process_handle, current_process_id)
5053 (main_thread_id, last_sig, current_event, last_wait_event)
5054 (current_windows_thread, desired_stop_thread_id, pending_stops)
5055 (siginfo_er): New globals. Move from windows-nat.c.
5056
5057 2020-04-08 Tom Tromey <tromey@adacore.com>
5058
5059 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5060 (handle_load_dll): Update.
5061 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5062
5063 2020-04-08 Tom Tromey <tromey@adacore.com>
5064
5065 * windows-nat.c (enum thread_disposition_type): Move to
5066 nat/windows-nat.h.
5067 (windows_nat::thread_rec): Rename from thread_rec. No longer
5068 static.
5069 (windows_add_thread, windows_nat_target::fetch_registers)
5070 (windows_nat_target::store_registers, handle_exception)
5071 (windows_nat_target::resume, get_windows_debug_event)
5072 (windows_nat_target::get_tib_address)
5073 (windows_nat_target::thread_name)
5074 (windows_nat_target::thread_alive): Update.
5075 * nat/windows-nat.h (enum thread_disposition_type): Move from
5076 windows-nat.c.
5077 (thread_rec): Declare.
5078
5079 2020-04-08 Tom Tromey <tromey@adacore.com>
5080
5081 * windows-nat.c: Add "using namespace".
5082 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5083 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5084
5085 2020-04-08 Tom Tromey <tromey@adacore.com>
5086
5087 * nat/windows-nat.h (struct windows_thread_info): Declare
5088 destructor.
5089 * nat/windows-nat.c (~windows_thread_info): New.
5090
5091 2020-04-08 Tom Tromey <tromey@adacore.com>
5092
5093 PR gdb/22992
5094 * windows-nat.c (current_event): Update comment.
5095 (last_wait_event, desired_stop_thread_id): New globals.
5096 (struct pending_stop): New.
5097 (pending_stops): New global.
5098 (windows_nat_target) <stopped_by_sw_breakpoint>
5099 <supports_stopped_by_sw_breakpoint>: New methods.
5100 (windows_fetch_one_register): Add assertions. Adjust PC.
5101 (windows_continue): Handle pending stops. Suspend other threads
5102 when stepping. Use last_wait_event
5103 (wait_for_debug_event): New function.
5104 (get_windows_debug_event): Use wait_for_debug_event. Handle
5105 pending stops. Queue spurious stops.
5106 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5107 (windows_nat_target::kill): Use wait_for_debug_event.
5108 * nat/windows-nat.h (struct windows_thread_info)
5109 <stopped_at_software_breakpoint>: New field.
5110 * nat/windows-nat.c (windows_thread_info::resume): Clear
5111 stopped_at_software_breakpoint.
5112
5113 2020-04-08 Tom Tromey <tromey@adacore.com>
5114
5115 * windows-nat.c (enum thread_disposition_type): New.
5116 (thread_rec): Replace "get_context" parameter with "disposition";
5117 change type.
5118 (windows_add_thread, windows_nat_target::fetch_registers)
5119 (windows_nat_target::store_registers, handle_exception)
5120 (windows_nat_target::resume, get_windows_debug_event)
5121 (windows_nat_target::get_tib_address)
5122 (windows_nat_target::thread_name)
5123 (windows_nat_target::thread_alive): Update.
5124
5125 2020-04-08 Tom Tromey <tromey@adacore.com>
5126
5127 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5128 (windows_continue): Use windows_continue::resume.
5129 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5130 resume>: Declare new methods.
5131 * nat/windows-nat.c: New file.
5132 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5133
5134 2020-04-08 Tom Tromey <tromey@adacore.com>
5135
5136 * windows-nat.c (windows_add_thread, windows_delete_thread)
5137 (windows_nat_target::fetch_registers)
5138 (windows_nat_target::store_registers, fake_create_process)
5139 (windows_nat_target::resume, windows_nat_target::resume)
5140 (get_windows_debug_event, windows_nat_target::wait)
5141 (windows_nat_target::pid_to_str)
5142 (windows_nat_target::get_tib_address)
5143 (windows_nat_target::get_ada_task_ptid)
5144 (windows_nat_target::thread_name)
5145 (windows_nat_target::thread_alive): Use lwp, not tid.
5146
5147 2020-04-08 Tom Tromey <tromey@adacore.com>
5148
5149 * windows-nat.c (handle_exception)
5150 (windows_nat_target::thread_name): Update.
5151 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5152 <name>: Now unique_xmalloc_ptr.
5153
5154 2020-04-08 Tom Tromey <tromey@adacore.com>
5155
5156 * windows-nat.c (thread_rec)
5157 (windows_nat_target::fetch_registers): Update.
5158 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5159 Update comment.
5160 <debug_registers_changed, reload_context>: Now bool.
5161
5162 2020-04-08 Tom Tromey <tromey@adacore.com>
5163
5164 * windows-nat.c (windows_add_thread): Use new.
5165 (windows_init_thread_list, windows_delete_thread): Use delete.
5166 (get_windows_debug_event): Update.
5167 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5168 destructor, and initializers.
5169
5170 2020-04-08 Tom Tromey <tromey@adacore.com>
5171
5172 * windows-nat.c (struct windows_thread_info): Remove.
5173 * nat/windows-nat.h: New file.
5174
5175 2020-04-08 Tom Tromey <tromey@adacore.com>
5176
5177 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5178 (thread_rec, windows_add_thread, windows_delete_thread)
5179 (windows_continue): Update.
5180
5181 2020-04-08 Tom Tromey <tromey@adacore.com>
5182
5183 * windows-nat.c (struct windows_thread_info): Remove typedef.
5184 (thread_head): Remove.
5185 (thread_list): New global.
5186 (thread_rec, windows_add_thread, windows_init_thread_list)
5187 (windows_delete_thread, windows_continue): Update.
5188
5189 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5190
5191 * windows-tdep.h (windows_init_abi): Add comment.
5192 (cygwin_init_abi): New declaration.
5193 * windows-tdep.c: Split signal enumeration in two, one for
5194 Windows and one for Cygwin.
5195 (windows_gdb_signal_to_target): Only deal with signal of the
5196 Windows OS ABI.
5197 (cygwin_gdb_signal_to_target): New function.
5198 (windows_init_abi): Rename to windows_init_abi_common, don't set
5199 gdb_signal_to_target gdbarch method. Add new new function with
5200 this name.
5201 (cygwin_init_abi): New function.
5202 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5203 comment. Don't call windows_init_abi.
5204 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5205 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5206 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5207 i386_windows_init_abi_common, don't call windows_init_abi. Add
5208 a new function of this name.
5209 (i386_cygwin_init_abi): New function.
5210 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5211 OS ABI Cygwin.
5212
5213 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5214
5215 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5216 parameter.c.
5217 (dwarf2_read_gdb_index): Update.
5218
5219 2020-04-07 Kamil Rytarowski <n54@gmx.com>
5220
5221 * nbsd-tdep.c: Include "objfiles.h".
5222 (nbsd_skip_solib_resolver): New.
5223 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5224
5225 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5226
5227 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5228 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5229 with DW_LLE_base_addressx are being emitted in DWARFv5.
5230 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5231 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5232 unsigned integer.
5233
5234 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5235
5236 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5237 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5238 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5239 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5240 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5241 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5242 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5243
5244
5245 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5246
5247 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5248 (read_loclist_index): New function definition.
5249 (lookup_loclist_base): New function definition.
5250 (read_loclist_header): New function definition.
5251 (dwarf2_cu): Add loclist_base and loclist_header field.
5252 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5253 (read_full_die_1): Read the value of DW_AT_loclists_base.
5254 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5255 (read_attribute_value): Handle DW_FORM_loclistx.
5256 (skip_one_die): Handle DW_FORM_loclistx.
5257 (loclist_header): New structure declaration.
5258 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5259
5260 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5261
5262 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5263 constructor. Remove `addr` parameter from other constructor and
5264 add `per_cu` parameter.
5265 * dwarf2/read.c (create_partial_symtab): Update.
5266
5267 2020-04-07 Tom de Vries <tdevries@suse.de>
5268
5269 PR symtab/25796
5270 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5271 (partial_die_info::fixup): Inherit has_const_value.
5272
5273 2020-04-07 Tom de Vries <tdevries@suse.de>
5274
5275 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5276 symbols without address.
5277
5278 2020-04-06 Kamil Rytarowski <n54@gmx.com>
5279
5280 * nbsd-nat.h (struct thread_info): Add forward declaration.
5281 (nbsd_nat_target::thread_alive): Add.
5282 (nbsd_nat_target::thread_name): Likewise.
5283 (nbsd_nat_target::update_thread_list): Likewise.
5284 (update_thread_list::post_attach): Likewise.
5285 (post_attach::pid_to_str): Likewise.
5286 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5287 (nbsd_thread_lister): Add.
5288 (nbsd_nat_target::thread_alive): Likewise.
5289 (nbsd_nat_target::thread_name): Likewise.
5290 (nbsd_add_threads): Likewise.
5291 (update_thread_list::post_attach): Likewise.
5292 (nbsd_nat_target::update_thread_list): Likewise.
5293 (post_attach::pid_to_str): Likewise.
5294
5295 2020-04-06 Tom Tromey <tromey@adacore.com>
5296
5297 * ada-valprint.c (print_variant_part): Extract the variant field.
5298 (print_field_values): Use the field as the outer value when
5299 recursing.
5300
5301 2020-04-06 Tom Tromey <tromey@adacore.com>
5302
5303 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5304 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5305 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5306 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5307 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5308
5309 2020-04-06 Tom Tromey <tromey@adacore.com>
5310
5311 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5312 TYPE_CODE_ERROR.
5313
5314 2020-04-06 Kamil Rytarowski <n54@gmx.com>
5315
5316 * nbsd-tdep.c: Include "gdbarch.h".
5317 Define enum with NetBSD signal numbers.
5318 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5319 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5320 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5321 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5322 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5323 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5324 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5325 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5326 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5327 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5328 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5329 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5330
5331 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
5332
5333 PR gdb/25325
5334 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5335
5336 2020-04-03 Tom Tromey <tromey@adacore.com>
5337
5338 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5339 Read constant block.
5340
5341 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5342
5343 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5344 (gdb_bfd_get_full_section_contents): New declaration.
5345 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5346 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5347 gdb_bfd_get_full_section_contents.
5348
5349 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5350
5351 * exec.c (build_section_table): Replace internal_error with
5352 gdb_assert.
5353 (section_table_xfer_memory_partial): Likewise.
5354 * mdebugread.c (parse_partial_symbols): Likewise.
5355 * psymtab.c (lookup_partial_symbol): Likewise.
5356 * utils.c (wrap_here): Likewise.
5357
5358 2020-04-02 Tom Tromey <tromey@adacore.com>
5359
5360 * f-lang.c (build_fortran_types): Use arch_type to initialize
5361 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5362
5363 2020-04-02 Tom Tromey <tromey@adacore.com>
5364
5365 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5366 of attributes.
5367
5368 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5369 Bernd Edlinger <bernd.edlinger@hotmail.de>
5370 Tom Tromey <tromey@adacore.com>
5371
5372 * buildsym.c (buildsym_compunit::record_line): Remove
5373 deduplication code.
5374
5375 2020-04-02 Tom de Vries <tdevries@suse.de>
5376
5377 PR ada/24671
5378 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5379
5380 2020-04-02 Tom de Vries <tdevries@suse.de>
5381
5382 * dwarf2/read.c (dwarf2_gdb_index_functions,
5383 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5384 NULL.
5385 * psymtab.c (psym_lookup_global_symbol_language): New function.
5386 (psym_functions): Init psym_lookup_global_symbol_language with
5387 psym_lookup_global_symbol_language.
5388 * symfile-debug.c (debug_sym_quick_functions): Init
5389 lookup_global_symbol_language with NULL.
5390 * symfile.c (set_initial_language): Remove fixme comment.
5391 * symfile.h (struct quick_symbol_functions): Add
5392 lookup_global_symbol_language.
5393 * symtab.c (find_quick_global_symbol_language): New function.
5394 (find_main_name): Use find_quick_global_symbol_language.
5395
5396 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5397
5398 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5399
5400 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5401
5402 * buildsym.c (record_line): Fix undefined behavior and preserve
5403 lines at eof.
5404
5405 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5406
5407 * buildsym.c (record_line): Fix the resizing condition.
5408
5409 2020-04-01 Tom Tromey <tom@tromey.com>
5410
5411 * value.h (value_literal_complex): Add comment.
5412 * valops.c (value_literal_complex): Refer to value.h.
5413
5414 2020-04-01 Tom Tromey <tom@tromey.com>
5415
5416 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5417 (scalar_type): New rule, from typebase.
5418 (typebase): Use scalar_type. Recognize complex types.
5419 (field_name): Handle FLOAT_KEYWORD.
5420 (ident_tokens): Add _Complex and __complex__.
5421
5422 2020-04-01 Tom Tromey <tom@tromey.com>
5423
5424 PR exp/25299:
5425 * valarith.c (promotion_type, complex_binop): New functions.
5426 (scalar_binop): Handle complex numbers. Use promotion_type.
5427 (value_pos, value_neg, value_complement): Handle complex numbers.
5428
5429 2020-04-01 Tom Tromey <tom@tromey.com>
5430
5431 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5432 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5433 (parse_number): Handle complex numbers.
5434
5435 2020-04-01 Tom Tromey <tom@tromey.com>
5436
5437 * c-valprint.c (c_decorations): Change complex suffix to "i".
5438
5439 2020-04-01 Tom Tromey <tom@tromey.com>
5440
5441 * valprint.c (generic_value_print_complex): Use accessors.
5442 * value.h (value_real_part, value_imaginary_part): Declare.
5443 * valops.c (value_real_part, value_imaginary_part): New
5444 functions.
5445 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5446
5447 2020-04-01 Tom Tromey <tom@tromey.com>
5448
5449 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5450 (read_range_type): Update.
5451 * mdebugread.c (basic_type): Update.
5452 * go-lang.c (build_go_types): Use init_complex_type.
5453 * gdbtypes.h (struct main_type) <complex_type>: New member.
5454 (init_complex_type): Update.
5455 (arch_complex_type): Don't declare.
5456 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5457 Make name if none given. Use alloc_type_copy. Look for cached
5458 complex type.
5459 (arch_complex_type): Remove.
5460 (gdbtypes_post_init): Use init_complex_type.
5461 * f-lang.c (build_fortran_types): Use init_complex_type.
5462 * dwarf2/read.c (read_base_type): Update.
5463 * d-lang.c (build_d_types): Use init_complex_type.
5464 * ctfread.c (read_base_type): Update.
5465
5466 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5467
5468 * infrun.c (stop_all_threads): Update assertion, plus when
5469 stopping threads, take into account that we might be trying
5470 to stop an all-stop target.
5471 (stop_waiting): Call 'stop_all_threads' if there exists a
5472 non-stop target.
5473
5474 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5475
5476 * target.h (exists_non_stop_target): New function declaration.
5477 * target.c (exists_non_stop_target): New function.
5478
5479 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
5480
5481 PR gdb/24789
5482 * eval.c (is_integral_or_integral_reference): New function.
5483 (evaluate_subexp_standard): Allow integer references in
5484 pointer arithmetic.
5485
5486 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5487
5488 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5489 check for no ptid in the stop reply when the target is non-stop.
5490
5491 2020-04-01 Tom Tromey <tromey@adacore.com>
5492
5493 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5494 "name" parameter to rvalue reference. Initialize m_name_holder.
5495 <lookup_name_info>: New overloads.
5496 <name>: Return gdb::string_view.
5497 <c_str>: New method.
5498 <make_ignore_params>: Update.
5499 <search_name_hash>: Update.
5500 <language_lookup_name>: Return const char *.
5501 <m_name>: Change type.
5502 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5503 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5504 (lookup_name_info::match_any): Update.
5505 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5506 Update.
5507 * minsyms.c (linkage_name_str): Update.
5508 * language.c (default_symbol_name_matcher): Update.
5509 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5510 Update.
5511 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5512 (ada_lookup_name_info::ada_lookup_name_info): Update.
5513 (literal_symbol_name_matcher): Update.
5514
5515 2020-04-01 Tom Tromey <tromey@adacore.com>
5516
5517 * psymtab.c (psymtab_search_name): Remove function.
5518 (psym_lookup_symbol): Create search name and lookup name here.
5519 (lookup_partial_symbol): Remove "name" parameter; add
5520 lookup_name.
5521 (psym_expand_symtabs_for_function): Update.
5522
5523 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
5524
5525 PR tui/25597:
5526 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5527
5528 2020-03-31 Tom Tromey <tromey@adacore.com>
5529
5530 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5531 memcpy.
5532
5533 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
5534
5535 * features/riscv/32bit-csr.xml: Regenerated.
5536 * features/riscv/64bit-csr.xml: Regenerated.
5537
5538 2020-03-30 Tom Tromey <tromey@adacore.com>
5539
5540 * ada-valprint.c (print_variant_part): Update.
5541 * ada-lang.h (ada_which_variant_applies): Update.
5542 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5543 outer_valaddr parameters; replace with "outer" value parameter.
5544 (to_fixed_variant_branch_type): Update.
5545
5546 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5547
5548 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5549 <list>. Remove inclusion of observable.h.
5550 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5551 (struct arch_lwp_info): New struct.
5552 (class ppc_linux_dreg_interface): New class.
5553 (struct ppc_linux_process_info): New struct.
5554 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5555 <low_new_clone, low_forget_process, low_prepare_to_resume>
5556 <copy_thread_dreg_state, mark_thread_stale>
5557 <mark_debug_registers_changed, register_hw_breakpoint>
5558 <clear_hw_breakpoint, register_wp, clear_wp>
5559 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5560 <num_memory_accesses, get_trigger_type>
5561 <create_watchpoint_request, hwdebug_point_cmp>
5562 <init_arch_lwp_info, get_arch_lwp_info>
5563 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5564 methods.
5565 <struct ptid_hash>: New inner struct.
5566 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5567 members.
5568 (saved_dabr_value, hwdebug_info, max_slots_number)
5569 (struct hw_break_tuple, struct thread_points, ppc_threads)
5570 (have_ptrace_hwdebug_interface)
5571 (hwdebug_find_thread_points_by_tid)
5572 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5573 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5574 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5575 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5576 use m_dreg_interface.
5577 (hwdebug_point_cmp): Change to...
5578 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5579 reference arguments instead of pointers.
5580 (ppc_linux_nat_target::ranged_break_num_registers): Use
5581 m_dreg_interface.
5582 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5583 m_dreg_interface. Call register_hw_breakpoint.
5584 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5585 m_dreg_interface. Call clear_hw_breakpoint.
5586 (get_trigger_type): Change to...
5587 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5588 comment.
5589 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5590 use m_dreg_interface. Call register_hw_breakpoint.
5591 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5592 use m_dreg_interface. Call clear_hw_breakpoint.
5593 (can_use_watchpoint_cond_accel): Change to...
5594 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5595 method. Update comment, use m_dreg_interface and
5596 m_process_info.
5597 (calculate_dvc): Change to...
5598 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5599 m_dreg_interface.
5600 (num_memory_accesses): Change to...
5601 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5602 (check_condition): Change to...
5603 (ppc_linux_nat_target::check_condition): ...this method.
5604 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5605 comment, use m_dreg_interface.
5606 (create_watchpoint_request): Change to...
5607 (ppc_linux_nat_target::create_watchpoint_request): ...this
5608 method. Use m_dreg_interface.
5609 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5610 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5611 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5612 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5613 (ppc_linux_nat_target::low_forget_process)
5614 (ppc_linux_nat_target::low_new_fork)
5615 (ppc_linux_nat_target::low_new_clone)
5616 (ppc_linux_nat_target::low_delete_thread)
5617 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5618 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5619 only call mark_thread_stale.
5620 (ppc_linux_thread_exit): Remove.
5621 (ppc_linux_nat_target::stopped_data_address): Change to...
5622 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5623 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5624 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5625 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5626 comment. Call low_stopped_data_address.
5627 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5628 m_dreg_interface.
5629 (ppc_linux_nat_target::masked_watch_num_registers): Use
5630 m_dreg_interface.
5631 (ppc_linux_nat_target::copy_thread_dreg_state)
5632 (ppc_linux_nat_target::mark_thread_stale)
5633 (ppc_linux_nat_target::mark_debug_registers_changed)
5634 (ppc_linux_nat_target::register_hw_breakpoint)
5635 (ppc_linux_nat_target::clear_hw_breakpoint)
5636 (ppc_linux_nat_target::register_wp)
5637 (ppc_linux_nat_target::clear_wp)
5638 (ppc_linux_nat_target::init_arch_lwp_info)
5639 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5640 (_initialize_ppc_linux_nat): Remove observer callback.
5641
5642 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5643
5644 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5645 (ppc_linux_nat_target::auxv_parse)
5646 (ppc_linux_nat_target::read_description)
5647 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5648 Move up.
5649
5650 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5651
5652 * linux-nat.h (low_new_clone): New method.
5653 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5654
5655 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5656
5657 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5658 (dbx_expand_psymtab): ... this.
5659 (start_psymtab): Update.
5660 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5661 (mdebug_expand_psymtab): ... this.
5662 (parse_partial_symbols): Update.
5663 (new_psymtab): Update.
5664 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5665 (xcoff_expand_psymtab): ... this.
5666 (xcoff_start_psymtab): Update.
5667
5668 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5669
5670 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5671 <expand_dependencies>: ... this.
5672 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5673 (partial_symtab::expand_dependencies): ... this.
5674 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5675 Update.
5676 (dwarf2_psymtab::expand_psymtab): Update.
5677 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5678 * mdebugread.c (psymtab_to_symtab_1): Update.
5679 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5680
5681 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5682
5683 * psympriv.h (discard_psymtab): Remove.
5684 * dbxread.c (dbx_end_psymtab): Update.
5685 * xcoffread.c (xcoff_end_psymtab): Update.
5686
5687 2020-03-28 Tom Tromey <tom@tromey.com>
5688
5689 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5690 comment.
5691
5692 2020-03-28 Tom Tromey <tom@tromey.com>
5693
5694 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5695
5696 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
5697
5698 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5699
5700 2020-03-26 John Baldwin <jhb@FreeBSD.org>
5701
5702 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5703
5704 2020-03-26 Tom Tromey <tom@tromey.com>
5705
5706 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5707 (mark_common_block_symbol_computed, read_tag_string_type)
5708 (attr_to_dynamic_prop, read_subrange_type): Update.
5709 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5710 to be methods on struct attribute.
5711 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5712 (read_call_site_scope, partial_die_info::read)
5713 (partial_die_info::read, lookup_die_type, follow_die_ref):
5714 Update.
5715 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5716 from dwarf2_get_ref_die_offset.
5717 (attribute::constant_value): New method, from
5718 dwarf2_get_attr_constant_value.
5719 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5720 Declare method.
5721 <constant_value>: New method.
5722
5723 2020-03-26 Tom Tromey <tom@tromey.com>
5724
5725 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5726 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5727 (dwarf_type_encoding_name): Move to stringify.c.
5728 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5729 * dwarf2/stringify.c: New file.
5730 * dwarf2/stringify.h: New file.
5731
5732 2020-03-26 Tom Tromey <tom@tromey.com>
5733
5734 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5735 Rewrite.
5736
5737 2020-03-26 Tom Tromey <tom@tromey.com>
5738
5739 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5740 methods.
5741 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5742 (lookup_ranges_base): Likewise.
5743 (read_cutu_die_from_dwo, read_full_die_1): Update.
5744
5745 2020-03-26 Tom Tromey <tom@tromey.com>
5746
5747 * dwarf2/read.c (read_import_statement, read_file_scope)
5748 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5749 (read_lexical_block_scope, read_call_site_scope)
5750 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5751 (handle_struct_member_die, process_structure_scope)
5752 (update_enumeration_type_from_children)
5753 (process_enumeration_scope, read_array_type, read_common_block)
5754 (read_namespace, read_module, read_subroutine_type): Update.
5755 (sibling_die): Remove.
5756
5757 2020-03-26 Tom Tromey <tom@tromey.com>
5758
5759 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5760 (build_type_psymtabs_reader, read_structure_type)
5761 (read_enumeration_type, read_full_die_1): Update.
5762 (dwarf2_attr_no_follow): Move to die.h.
5763 * dwarf2/die.h (struct die_info) <attr>: New method.
5764
5765 2020-03-26 Tom Tromey <tom@tromey.com>
5766
5767 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5768 <base_address>: Now an optional.
5769 (dwarf2_find_base_address, dwarf2_rnglists_process)
5770 (dwarf2_ranges_process, fill_in_loclist_baton)
5771 (dwarf2_symbol_mark_computed): Update.
5772
5773 2020-03-26 Tom Tromey <tom@tromey.com>
5774
5775 * dwarf2/read.c (struct die_info): Move to die.h.
5776 * dwarf2/die.h: New file.
5777
5778 2020-03-26 Tom Tromey <tom@tromey.com>
5779
5780 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5781 * dwarf2/read.c
5782 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5783 Move to line-header.c.
5784 (read_checked_initial_length_and_offset, read_formatted_entries):
5785 Likewise.
5786 (dwarf_decode_line_header): Split into two.
5787 * dwarf2/line-header.c
5788 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5789 Move from read.c.
5790 (read_checked_initial_length_and_offset, read_formatted_entries):
5791 Likewise.
5792 (dwarf_decode_line_header): New function, split from read.c.
5793
5794 2020-03-26 Tom Tromey <tom@tromey.com>
5795
5796 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5797 Declare method.
5798 * dwarf2/read.c (read_attribute_value): Update.
5799 (dwarf2_per_objfile::read_line_string): Rename from
5800 read_indirect_line_string.
5801 (read_formatted_entries): Update.
5802
5803 2020-03-26 Tom Tromey <tom@tromey.com>
5804
5805 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5806 variable.
5807
5808 2020-03-26 Tom Tromey <tom@tromey.com>
5809
5810 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5811 const.
5812 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5813 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5814 parameter const.
5815
5816 2020-03-26 Tom Tromey <tom@tromey.com>
5817
5818 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5819 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5820 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5821 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5822
5823 2020-03-26 Tom Tromey <tom@tromey.com>
5824
5825 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5826 file_names_size, file_full_name, file_file_name>: Use const.
5827 <file_name_at, file_names>: Add const overload.
5828 * dwarf2/line-header.c (line_header::file_file_name)
5829 (line_header::file_full_name): Update.
5830
5831 2020-03-26 Tom Tromey <tom@tromey.com>
5832
5833 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5834 (macro_start_file, consume_improper_spaces)
5835 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5836 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5837 (dwarf_decode_macros): Move to macro.c.
5838 * dwarf2/macro.c: New file.
5839 * dwarf2/macro.h: New file.
5840 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5841
5842 2020-03-26 Tom Tromey <tom@tromey.com>
5843
5844 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5845 method.
5846 * dwarf2/section.c: New method. From
5847 read_indirect_string_at_offset_from.
5848 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5849 (read_indirect_string_at_offset_from): Move to section.c.
5850 (read_indirect_string_at_offset): Rewrite.
5851 (read_indirect_line_string_at_offset): Remove.
5852 (read_indirect_string, read_indirect_line_string)
5853 (dwarf_decode_macro_bytes): Update.
5854
5855 2020-03-26 Tom Tromey <tom@tromey.com>
5856
5857 * dwarf2/section.h (struct dwarf2_section_info)
5858 <overload_complaint>: Declare.
5859 (dwarf2_section_buffer_overflow_complaint): Don't declare.
5860 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
5861 Rename from dwarf2_section_buffer_overflow_complaint.
5862 * dwarf2/read.c (skip_one_die, partial_die_info::read)
5863 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
5864
5865 2020-03-26 Tom Tromey <tom@tromey.com>
5866
5867 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
5868 Declare.
5869 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
5870 Move from read.c.
5871 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
5872 to section.c.
5873
5874 2020-03-26 Tom Tromey <tom@tromey.com>
5875
5876 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
5877
5878 2020-03-26 Tom Tromey <tom@tromey.com>
5879
5880 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
5881 "builder".
5882 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
5883 parameter.
5884 (dwarf_decode_macros): Update.
5885
5886 2020-03-26 Tom Tromey <tom@tromey.com>
5887
5888 * dwarf2/read.c (read_attribute_value): Update.
5889 (read_indirect_string_from_dwz): Move to dwz.c; change into
5890 method.
5891 (dwarf_decode_macro_bytes): Update.
5892 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
5893 * dwarf2/dwz.c: New file.
5894 * Makefile.in (COMMON_SFILES): Add dwz.c.
5895
5896 2020-03-26 Tom Tromey <tom@tromey.com>
5897
5898 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
5899 * dwarf2/read.c: Add include.
5900 * dwarf2/index-write.c: Add include.
5901 * dwarf2/index-cache.c: Add include.
5902 * dwarf2/dwz.h: New file.
5903
5904 2020-03-25 Tom Tromey <tom@tromey.com>
5905
5906 * compile/compile-object-load.c (get_out_value_type): Mention
5907 correct symbol name in error message.
5908
5909 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
5910
5911 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5912
5913 2020-03-25 Tom de Vries <tdevries@suse.de>
5914
5915 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
5916 * symmisc.c (dump_symtab_1): Print user and includes fields.
5917 (maintenance_info_symtabs): Same.
5918
5919 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
5920
5921 PR gdb/25534
5922 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
5923 (riscv_regcache_cooked_write): New function.
5924 (riscv_push_dummy_call): Use new function.
5925 (riscv_return_value): Likewise.
5926
5927 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
5928
5929 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
5930 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
5931 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
5932 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
5933 * infrun.c (follow_fork): Likewise.
5934 (follow_fork_inferior): Likewise.
5935 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
5936 * linux-nat.h (class linux_nat_target): Likewise.
5937 * remote.c (class remote_target) <follow_fork>: Likewise.
5938 (remote_target::follow_fork): Likewise.
5939 * target-delegates.c: Re-generate.
5940 * target.c (default_follow_fork): Likewise.
5941 (target_follow_fork): Likewise.
5942 * target.h (struct target_ops) <follow_fork>: Likewise.
5943 (target_follow_fork): Likewise.
5944
5945 2020-03-24 Tom de Vries <tdevries@suse.de>
5946
5947 * psymtab.c (maintenance_info_psymtabs): Print user field.
5948
5949 2020-03-20 Tom Tromey <tromey@adacore.com>
5950
5951 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
5952 const.
5953 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
5954 const.
5955
5956 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
5957
5958 * ptrace.m4: Don't check for ptrace declaration.
5959 * config.in: Re-generate.
5960 * configure: Re-generate.
5961 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
5962 not defined.
5963
5964 2020-03-20 Kamil Rytarowski <n54@gmx.com>
5965
5966 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
5967 `PTRACE_TYPE_RET'.
5968 * i386-bsd-nat.c (gdb_ptrace): Likewise.
5969 * sparc-nat.c (gdb_ptrace): Likewise.
5970 * x86-bsd-nat.c (gdb_ptrace): Likewise.
5971
5972 2020-03-20 Tom Tromey <tromey@adacore.com>
5973
5974 * c-exp.y (lex_one_token): Fix assert.
5975
5976 2020-03-20 Tom Tromey <tromey@adacore.com>
5977
5978 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
5979 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
5980 strncpy call.
5981
5982 2020-03-20 Tom Tromey <tromey@adacore.com>
5983
5984 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
5985
5986 2020-03-20 Tom Tromey <tromey@adacore.com>
5987
5988 * ada-valprint.c (print_variant_part): Remove parameters; switch
5989 to value-based API.
5990 (print_field_values): Likewise.
5991 (ada_val_print_struct_union): Likewise.
5992 (ada_value_print_1): Update.
5993
5994 2020-03-20 Kamil Rytarowski <n54@gmx.com>
5995
5996 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
5997 nbsd_nat_target instead of inf_ptrace_target.
5998 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
5999 nbsd_nat_target.
6000
6001 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6002
6003 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6004 it to the ptrace call.
6005 * (store_registers): Likewise.
6006
6007 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6008
6009 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6010 it to the ptrace call.
6011 * (store_registers): Likewise.
6012
6013 2020-03-19 Luis Machado <luis.machado@linaro.org>
6014
6015 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6016 valid, fetch vg value from ptrace.
6017
6018 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6019 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6020 * inf-ptrace.c: Likewise.
6021 * (gdb_ptrace): Add.
6022 * (inf_ptrace_target::resume): Update.
6023 * (inf_ptrace_target::xfer_partial): Likewise.
6024 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6025 * (inf_ptrace_peek_poke): Update.
6026
6027 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6028
6029 * x86-bsd-nat.c (gdb_ptrace): New.
6030 * (x86bsd_dr_set): Add new argument `ptid'.
6031 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6032 x86bsd_dr_set_addr): Update.
6033
6034 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6035
6036 * remote.c (remote_target::process_stop_reply): Handle events for
6037 all threads differently.
6038
6039 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6040
6041 * completer.c (completion_tracker::remove_completion): Define new
6042 function.
6043 * completer.h (completion_tracker::remove_completion): Declare new
6044 function.
6045 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6046 when adding a C++ function symbol.
6047
6048 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6049
6050 * completer.c (completion_tracker::completion_hash_entry): Define
6051 new class.
6052 (advance_to_filename_complete_word_point): Call
6053 recompute_lowest_common_denominator.
6054 (completion_tracker::completion_tracker): Call discard_completions
6055 to setup the hash table.
6056 (completion_tracker::discard_completions): Allow for being called
6057 from the constructor, pass new equal function, and element deleter
6058 when constructing the hash table. Initialise new class member
6059 variables.
6060 (completion_tracker::maybe_add_completion): Remove use of
6061 m_entries_vec, and store more information into m_entries_hash.
6062 (completion_tracker::recompute_lcd_visitor): New function, most
6063 content taken from...
6064 (completion_tracker::recompute_lowest_common_denominator):
6065 ...here, this now just visits each item in the hash calling the
6066 above visitor.
6067 (completion_tracker::build_completion_result): Remove use of
6068 m_entries_vec, call recompute_lowest_common_denominator.
6069 * completer.h (completion_tracker::have_completions): Remove use
6070 of m_entries_vec.
6071 (completion_tracker::completion_hash_entry): Declare new class.
6072 (completion_tracker::recompute_lowest_common_denominator): Change
6073 function signature.
6074 (completion_tracker::recompute_lcd_visitor): Declare new function.
6075 (completion_tracker::m_entries_vec): Delete.
6076 (completion_tracker::m_entries_hash): Initialize to NULL.
6077 (completion_tracker::m_lowest_common_denominator_valid): New
6078 member variable.
6079 (completion_tracker::m_lowest_common_denominator_max_length): New
6080 member variable.
6081
6082 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6083
6084 * regformats/regdef.h: Put reg in gdb namespace.
6085
6086 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6087
6088 * i386-bsd-nat.c (gdb_ptrace): New.
6089 * (i386bsd_fetch_inferior_registers,
6090 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6091 * (i386bsd_fetch_inferior_registers,
6092 i386bsd_store_inferior_registers) Use gdb_ptrace.
6093
6094 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6095
6096 * amd64-bsd-nat.c (gdb_ptrace): New.
6097 * (amd64bsd_fetch_inferior_registers,
6098 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6099 * (amd64bsd_fetch_inferior_registers,
6100 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6101
6102 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6103
6104 * user-regs.c (user_reg::read): Rename to...
6105 (user_reg::xread): ...this.
6106 * (append_user_reg): Rename argument `read' to `xread'.
6107 * (user_reg_add_builtin): Likewise.
6108 * (user_reg_add): Likewise.
6109 * (value_of_user_reg): Likewise.
6110
6111 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6112
6113 * sparc-nat.c (gdb_ptrace): New.
6114 * sparc-nat.c (sparc_fetch_inferior_registers)
6115 (sparc_store_inferior_registers) Remove obsolete comment.
6116 * sparc-nat.c (sparc_fetch_inferior_registers)
6117 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6118 * sparc-nat.c (sparc_fetch_inferior_registers)
6119 (sparc_store_inferior_registers) Use gdb_ptrace.
6120
6121 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6122
6123 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6124 it to the ptrace call.
6125 * sh-nbsd-nat.c (store_registers): Likewise.
6126
6127 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6128
6129 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6130 nbsd_nat_target instead of inf_ptrace_target.
6131 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6132 nbsd_nat_target.
6133
6134 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6135
6136 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6137
6138 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6139
6140 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6141 <sys/sysctl.h>.
6142 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6143
6144 2020-03-17 Tom de Vries <tdevries@suse.de>
6145
6146 PR gdb/23710
6147 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6148 fields.
6149 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6150 fields.
6151 (process_imported_unit_die): Skip import of c++ CUs.
6152
6153 2020-03-16 Tom Tromey <tom@tromey.com>
6154
6155 * p-valprint.c (pascal_object_print_value): Initialize
6156 base_value.
6157
6158 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6159 Shahab Vahedi <shahab@synopsys.com>
6160
6161 * Makefile.in: Add arch/arc.o
6162 * configure.tgt: Likewise.
6163 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6164 (_initialize_arc_tdep): Don't initialize old target descriptions.
6165 (arc_read_description): New function to cache target descriptions.
6166 * arc-tdep.h (arc_read_description): Add proto type.
6167 * arch/arc.c: New file.
6168 * arch/arc.h: Likewise.
6169 * features/Makefile: Replace old target descriptions with new.
6170 * features/arc-arcompact.c: Remove.
6171 * features/arc-arcompact.xml: Likewise.
6172 * features/arc-v2.c: Likewise
6173 * features/arc-v2.xml: Likewise
6174 * features/arc/aux-arcompact.xml: New file.
6175 * features/arc/aux-v2.xml: Likewise.
6176 * features/arc/core-arcompact.xml: Likewise.
6177 * features/arc/core-v2.xml: Likewise.
6178 * features/arc/aux-arcompact.c: Generate.
6179 * features/arc/aux-v2.c: Likewise.
6180 * features/arc/core-arcompact.c: Likewise.
6181 * features/arc/core-v2.c: Likewise.
6182 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6183
6184 2020-03-16 Tom Tromey <tromey@adacore.com>
6185
6186 PR gdb/25663:
6187 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6188 putting value into bcache.
6189
6190 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6191
6192 PR gdb/21500
6193 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6194 to...
6195 (amd64_windows_init_abi_common): ... this. Don't set size of
6196 long type.
6197 (amd64_windows_init_abi): New function.
6198 (amd64_cygwin_init_abi): New function.
6199 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6200 the Cygwin OS ABI.
6201 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6202 comment.
6203
6204 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6205
6206 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6207 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6208 (pe_import_directory_entry): New struct type.
6209 (is_linked_with_cygwin_dll): New function.
6210 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6211 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6212 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6213
6214 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6215
6216 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6217 i386_cygwin_core_osabi_sniffer.
6218
6219 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6220
6221 * i386-cygwin-tdep.c: Rename to...
6222 * i386-windows-tdep.c: ... this.
6223 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6224 i386-windows-tdep.c.
6225 * configure.tgt: Likewise.
6226
6227 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6228
6229 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6230 * osabi.c (gdb_osabi_names): Add "Windows".
6231 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6232 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6233 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6234 i386_cygwin_osabi_sniffer.
6235 (_initialize_i386_cygwin_tdep): Register OS ABI
6236 GDB_OSABI_WINDOWS for i386.
6237 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6238 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6239 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6240 for x86-64.
6241 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6242 when the target matches '*-*-mingw*'.
6243
6244 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6245
6246 * defs.h (enum gdb_osabi): Move to...
6247 * osabi.h (enum gdb_osabi): ... here.
6248 * gdbarch.sh: Include osabi.h in gdbarch.h.
6249 * gdbarch.h: Re-generate.
6250
6251 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6252
6253 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6254 function.
6255 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6256
6257 2020-03-14 Tom Tromey <tom@tromey.com>
6258
6259 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6260 for C++.
6261 (c_type_print_modifier): Likewise. Add "language" parameter.
6262 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6263 (c_type_print_base_1): Update.
6264 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6265 constants.
6266 * type-stack.c (type_stack::insert): Handle tp_atomic and
6267 tp_restrict.
6268 (type_stack::follow_type_instance_flags): Likewise.
6269 (type_stack::follow_types): Likewise. Merge type-following code.
6270 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6271 (space_identifier, cv_with_space_id)
6272 (const_or_volatile_or_space_identifier_noopt)
6273 (const_or_volatile_or_space_identifier): Remove.
6274 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6275 rules.
6276 (ptr_operator, typebase): Update.
6277 (enum token_flag) <FLAG_C>: New constant.
6278 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6279 "_Atomic".
6280 (lex_one_token): Handle FLAG_C.
6281
6282 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6283
6284 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6285 it to the ptrace call.
6286 * m68k-bsd-nat.c (store_registers): Likewise.
6287
6288 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6289
6290 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6291 gdb_byte *.
6292 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6293 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6294 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6295
6296 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6297
6298 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6299 nbsd_nat_target instead of inf_ptrace_target.
6300 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6301 nbsd_nat_target.
6302
6303 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6304
6305 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6306 register_t.
6307
6308 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6309
6310 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6311 it to the ptrace call.
6312 * alpha-bsd-nat.c (store_registers): Likewise.
6313
6314 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6315
6316 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6317 includes.
6318 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6319 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6320 fill_fpregset): Likewise.
6321
6322 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6323
6324 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6325 nbsd_nat_target instead of inf_ptrace_target.
6326 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6327 nbsd_nat_target.
6328
6329 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6330
6331 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6332 register_t.
6333
6334 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6335
6336 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6337 it to the ptrace call.
6338 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6339 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6340 * arm-nbsd-nat.c (store_register): Likewise.
6341 * arm-nbsd-nat.c (store_regs): Likewise.
6342 * arm-nbsd-nat.c (store_fp_register): Likewise.
6343 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6344
6345 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6346
6347 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6348 nbsd_nat_target instead of inf_ptrace_target.
6349 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6350 nbsd_nat_target.
6351
6352 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6353
6354 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6355 it to the ptrace call.
6356 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6357
6358 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6359
6360 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6361 it to the ptrace call.
6362 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6363
6364 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6365
6366 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6367 gdb_byte *.
6368 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6369
6370 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6371
6372 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6373 instead of inf_ptrace_target.
6374 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6375 nbsd_nat_target.
6376
6377 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6378
6379 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6380 register_t.
6381
6382 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6383
6384 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6385 register_t.
6386
6387 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6388
6389 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6390 register_t.
6391
6392 2020-03-13 Tom Tromey <tom@tromey.com>
6393
6394 * value.h (val_print): Don't declare.
6395 * valprint.h (val_print_array_elements)
6396 (val_print_scalar_formatted, generic_val_print): Don't declare.
6397 * valprint.c (generic_val_print_array): Take a struct value.
6398 (generic_val_print_ptr, generic_val_print_memberptr)
6399 (generic_val_print_bool, generic_val_print_int)
6400 (generic_val_print_char, generic_val_print_complex)
6401 (generic_val_print): Remove.
6402 (generic_value_print): Update.
6403 (do_val_print): Remove unused parameters. Don't call
6404 la_val_print.
6405 (val_print): Remove.
6406 (common_val_print): Update. Don't call value_check_printable.
6407 (val_print_scalar_formatted, val_print_array_elements): Remove.
6408 * rust-lang.c (rust_val_print): Remove.
6409 (rust_language_defn): Update.
6410 * p-valprint.c (pascal_val_print): Remove.
6411 (pascal_value_print_inner): Update.
6412 (pascal_object_print_val_fields, pascal_object_print_val):
6413 Remove.
6414 (pascal_object_print_static_field): Update.
6415 * p-lang.h (pascal_val_print): Don't declare.
6416 * p-lang.c (pascal_language_defn): Update.
6417 * opencl-lang.c (opencl_language_defn): Update.
6418 * objc-lang.c (objc_language_defn): Update.
6419 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6420 * m2-lang.h (m2_val_print): Don't declare.
6421 * m2-lang.c (m2_language_defn): Update.
6422 * language.h (struct language_defn) <la_val_print>: Remove.
6423 * language.c (unk_lang_value_print_inner): Rename. Change
6424 argument types.
6425 (unknown_language_defn, auto_language_defn): Update.
6426 * go-valprint.c (go_val_print): Remove.
6427 * go-lang.h (go_val_print): Don't declare.
6428 * go-lang.c (go_language_defn): Update.
6429 * f-valprint.c (f_val_print): Remove.
6430 * f-lang.h (f_value_print): Don't declare.
6431 * f-lang.c (f_language_defn): Update.
6432 * d-valprint.c (d_val_print): Remove.
6433 * d-lang.h (d_value_print): Don't declare.
6434 * d-lang.c (d_language_defn): Update.
6435 * cp-valprint.c (cp_print_value_fields)
6436 (cp_print_value_fields_rtti, cp_print_value): Remove.
6437 (cp_print_static_field): Update.
6438 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6439 (c_val_print_struct, c_val_print_union, c_val_print_int)
6440 (c_val_print_memberptr, c_val_print): Remove.
6441 * c-lang.h (c_val_print_array, cp_print_value_fields)
6442 (cp_print_value_fields_rtti): Don't declare.
6443 * c-lang.c (c_language_defn, cplus_language_defn)
6444 (asm_language_defn, minimal_language_defn): Update.
6445 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6446 (ada_val_print_enum): Take a struct value.
6447 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6448 (ada_val_print): Remove.
6449 (ada_value_print_1): Update.
6450 (printable_val_type): Remove.
6451 * ada-lang.h (ada_val_print): Don't declare.
6452 * ada-lang.c (ada_language_defn): Update.
6453
6454 2020-03-13 Tom Tromey <tom@tromey.com>
6455
6456 * valprint.c (do_val_print): Update.
6457 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6458 a struct value.
6459 (value_to_value_object_no_release): Declare.
6460 * python/py-value.c (value_to_value_object_no_release): New
6461 function.
6462 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6463 struct value.
6464 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6465 function.
6466 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6467 a struct value.
6468 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6469 Declare.
6470 (gdbscm_apply_val_pretty_printer): Take a struct value.
6471 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6472 value.
6473 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6474 value.
6475 * extension-priv.h (struct extension_language_ops)
6476 <apply_val_pretty_printer>: Take a struct value.
6477 * cp-valprint.c (cp_print_value): Create a struct value.
6478 (cp_print_value): Update.
6479
6480 2020-03-13 Tom Tromey <tom@tromey.com>
6481
6482 * ada-valprint.c (print_field_values): Call common_val_print.
6483
6484 2020-03-13 Tom Tromey <tom@tromey.com>
6485
6486 * ada-valprint.c (val_print_packed_array_elements): Remove
6487 bitoffset and val parameters. Call common_val_print.
6488 (ada_val_print_string): Remove offset, address, and original_value
6489 parameters.
6490 (ada_val_print_array): Update.
6491 (ada_value_print_array): New function.
6492 (ada_value_print_1): Call it.
6493
6494 2020-03-13 Tom Tromey <tom@tromey.com>
6495
6496 * ada-valprint.c (ada_value_print): Use common_val_print.
6497
6498 2020-03-13 Tom Tromey <tom@tromey.com>
6499
6500 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6501
6502 2020-03-13 Tom Tromey <tom@tromey.com>
6503
6504 * ada-valprint.c (ada_value_print_num): New function.
6505 (ada_value_print_1): Use it.
6506
6507 2020-03-13 Tom Tromey <tom@tromey.com>
6508
6509 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6510
6511 2020-03-13 Tom Tromey <tom@tromey.com>
6512
6513 * ada-valprint.c (ada_value_print_ptr): New function.
6514 (ada_value_print_1): Use it.
6515
6516 2020-03-13 Tom Tromey <tom@tromey.com>
6517
6518 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6519 call common_val_print.
6520 (ada_val_print_1): Update.
6521 (ada_value_print_1): New function.
6522 (ada_value_print_inner): Rewrite.
6523
6524 2020-03-13 Tom Tromey <tom@tromey.com>
6525
6526 * cp-valprint.c (cp_print_value_fields): Update.
6527 (cp_print_value): New function.
6528
6529 2020-03-13 Tom Tromey <tom@tromey.com>
6530
6531 * m2-valprint.c (m2_value_print_inner): Use
6532 cp_print_value_fields.
6533 * cp-valprint.c (cp_print_value_fields): New function.
6534 * c-valprint.c (c_value_print_struct): New function.
6535 (c_value_print_inner): Use c_value_print_struct.
6536 * c-lang.h (cp_print_value_fields): Declare.
6537
6538 2020-03-13 Tom Tromey <tom@tromey.com>
6539
6540 * c-valprint.c (c_value_print_array): New function.
6541 (c_value_print_inner): Use it.
6542
6543 2020-03-13 Tom Tromey <tom@tromey.com>
6544
6545 * c-valprint.c (c_value_print_memberptr): New function.
6546 (c_value_print_inner): Use it.
6547
6548 2020-03-13 Tom Tromey <tom@tromey.com>
6549
6550 * c-valprint.c (c_value_print_int): New function.
6551 (c_value_print_inner): Use it.
6552
6553 2020-03-13 Tom Tromey <tom@tromey.com>
6554
6555 * c-valprint.c (c_value_print_ptr): New function.
6556 (c_value_print_inner): Use it.
6557
6558 2020-03-13 Tom Tromey <tom@tromey.com>
6559
6560 * c-valprint.c (c_value_print_inner): Rewrite.
6561
6562 2020-03-13 Tom Tromey <tom@tromey.com>
6563
6564 * valprint.c (generic_value_print_complex): New function.
6565 (generic_value_print): Use it.
6566
6567 2020-03-13 Tom Tromey <tom@tromey.com>
6568
6569 * valprint.c (generic_val_print_float): Don't call
6570 val_print_scalar_formatted.
6571 (generic_val_print, generic_value_print): Update.
6572
6573 2020-03-13 Tom Tromey <tom@tromey.com>
6574
6575 * valprint.c (generic_value_print_char): New function
6576 (generic_value_print): Use it.
6577
6578 2020-03-13 Tom Tromey <tom@tromey.com>
6579
6580 * valprint.c (generic_value_print_int): New function.
6581 (generic_value_print): Use it.
6582
6583 2020-03-13 Tom Tromey <tom@tromey.com>
6584
6585 * valprint.c (generic_value_print_bool): New function.
6586 (generic_value_print): Use it.
6587
6588 2020-03-13 Tom Tromey <tom@tromey.com>
6589
6590 * valprint.c (generic_val_print_func): Simplify.
6591 (generic_val_print, generic_value_print): Update.
6592
6593 2020-03-13 Tom Tromey <tom@tromey.com>
6594
6595 * valprint.c (generic_val_print_flags): Remove.
6596 (generic_val_print, generic_value_print): Update.
6597 (val_print_type_code_flags): Add original_value parameter.
6598
6599 2020-03-13 Tom Tromey <tom@tromey.com>
6600
6601 * valprint.c (generic_val_print): Update.
6602 (generic_value_print): Update.
6603 * valprint.c (generic_val_print_enum): Don't call
6604 val_print_scalar_formatted.
6605
6606 2020-03-13 Tom Tromey <tom@tromey.com>
6607
6608 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6609 * valprint.c (generic_value_print_ptr): New function.
6610
6611 2020-03-13 Tom Tromey <tom@tromey.com>
6612
6613 * valprint.c (generic_value_print): Rewrite.
6614
6615 2020-03-13 Tom Tromey <tom@tromey.com>
6616
6617 * p-valprint.c (pascal_object_print_value_fields)
6618 (pascal_object_print_value): New functions.
6619
6620 2020-03-13 Tom Tromey <tom@tromey.com>
6621
6622 * p-valprint.c (pascal_value_print_inner): Rewrite.
6623
6624 2020-03-13 Tom Tromey <tom@tromey.com>
6625
6626 * f-valprint.c (f_value_print_innner): Rewrite.
6627
6628 2020-03-13 Tom Tromey <tom@tromey.com>
6629
6630 * m2-valprint.c (m2_print_unbounded_array): New overload.
6631 (m2_print_unbounded_array): Update.
6632 (m2_print_array_contents): Take a struct value.
6633 (m2_value_print_inner): Rewrite.
6634
6635 2020-03-13 Tom Tromey <tom@tromey.com>
6636
6637 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6638 (d_value_print_inner): New function.
6639 * d-lang.h (d_value_print_inner): Declare.
6640 * d-lang.c (d_language_defn): Use d_value_print_inner.
6641
6642 2020-03-13 Tom Tromey <tom@tromey.com>
6643
6644 * go-valprint.c (go_value_print_inner): New function.
6645 * go-lang.h (go_value_print_inner): Declare.
6646 * go-lang.c (go_language_defn): Use go_value_print_inner.
6647
6648 2020-03-13 Tom Tromey <tom@tromey.com>
6649
6650 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6651 API.
6652 (rust_val_print): Rewrite.
6653 (rust_value_print_inner): New function, from rust_val_print.
6654 (rust_language_defn): Use rust_value_print_inner.
6655
6656 2020-03-13 Tom Tromey <tom@tromey.com>
6657
6658 * ada-valprint.c (ada_value_print_inner): New function.
6659 * ada-lang.h (ada_value_print_inner): Declare.
6660 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6661
6662 2020-03-13 Tom Tromey <tom@tromey.com>
6663
6664 * f-valprint.c (f_value_print_innner): New function.
6665 * f-lang.h (f_value_print_innner): Declare.
6666 * f-lang.c (f_language_defn): Use f_value_print_innner.
6667
6668 2020-03-13 Tom Tromey <tom@tromey.com>
6669
6670 * p-valprint.c (pascal_value_print_inner): New function.
6671 * p-lang.h (pascal_value_print_inner): Declare.
6672 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6673
6674 2020-03-13 Tom Tromey <tom@tromey.com>
6675
6676 * m2-valprint.c (m2_value_print_inner): New function.
6677 * m2-lang.h (m2_value_print_inner): Declare.
6678 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6679
6680 2020-03-13 Tom Tromey <tom@tromey.com>
6681
6682 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6683 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6684 * c-valprint.c (c_value_print_inner): New function.
6685 * c-lang.h (c_value_print_inner): Declare.
6686 * c-lang.c (c_language_defn, cplus_language_defn)
6687 (asm_language_defn, minimal_language_defn): Use
6688 c_value_print_inner.
6689
6690 2020-03-13 Tom Tromey <tom@tromey.com>
6691
6692 * p-valprint.c (pascal_object_print_value_fields): Now static.
6693 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6694
6695 2020-03-13 Tom Tromey <tom@tromey.com>
6696
6697 * c-valprint.c (c_val_print_array): Simplify.
6698
6699 2020-03-13 Tom Tromey <tom@tromey.com>
6700
6701 * valprint.c (value_print_array_elements): New function.
6702 * valprint.h (value_print_array_elements): Declare.
6703
6704 2020-03-13 Tom Tromey <tom@tromey.com>
6705
6706 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6707 * mips-tdep.c (mips_print_register): Use
6708 value_print_scalar_formatted.
6709
6710 2020-03-13 Tom Tromey <tom@tromey.com>
6711
6712 * valprint.h (value_print_scalar_formatted): Declare.
6713 * valprint.c (value_print_scalar_formatted): New function.
6714
6715 2020-03-13 Tom Tromey <tom@tromey.com>
6716
6717 * valprint.h (generic_value_print): Declare.
6718 * valprint.c (generic_value_print): New function.
6719
6720 2020-03-13 Tom Tromey <tom@tromey.com>
6721
6722 * valprint.c (do_val_print): Call la_value_print_inner, if
6723 available.
6724 * rust-lang.c (rust_language_defn): Update.
6725 * p-lang.c (pascal_language_defn): Update.
6726 * opencl-lang.c (opencl_language_defn): Update.
6727 * objc-lang.c (objc_language_defn): Update.
6728 * m2-lang.c (m2_language_defn): Update.
6729 * language.h (struct language_defn) <la_value_print_inner>: New
6730 member.
6731 * language.c (unknown_language_defn, auto_language_defn): Update.
6732 * go-lang.c (go_language_defn): Update.
6733 * f-lang.c (f_language_defn): Update.
6734 * d-lang.c (d_language_defn): Update.
6735 * c-lang.c (c_language_defn, cplus_language_defn)
6736 (asm_language_defn, minimal_language_defn): Update.
6737 * ada-lang.c (ada_language_defn): Update.
6738
6739 2020-03-13 Tom Tromey <tom@tromey.com>
6740
6741 * c-valprint.c (c_value_print): Use common_val_print.
6742
6743 2020-03-13 Tom Tromey <tom@tromey.com>
6744
6745 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6746
6747 2020-03-13 Tom Tromey <tom@tromey.com>
6748
6749 * f-valprint.c (f77_print_array_1, f_val_print): Use
6750 common_val_print.
6751
6752 2020-03-13 Tom Tromey <tom@tromey.com>
6753
6754 * riscv-tdep.c (riscv_print_one_register_info): Use
6755 common_val_print.
6756
6757 2020-03-13 Tom Tromey <tom@tromey.com>
6758
6759 * mi/mi-main.c (output_register): Use common_val_print.
6760
6761 2020-03-13 Tom Tromey <tom@tromey.com>
6762
6763 * infcmd.c (default_print_one_register_info): Use
6764 common_val_print.
6765
6766 2020-03-13 Tom Tromey <tom@tromey.com>
6767
6768 * valprint.h (common_val_print_checked): Declare.
6769 * valprint.c (common_val_print_checked): New function.
6770 * stack.c (print_frame_arg): Use common_val_print_checked.
6771
6772 2020-03-13 Tom Tromey <tom@tromey.com>
6773
6774 * valprint.c (do_val_print): New function, from val_print.
6775 (val_print): Use do_val_print.
6776 (common_val_print): Use do_val_print.
6777
6778 2020-03-13 Tom Tromey <tom@tromey.com>
6779
6780 * valprint.c (value_print): Use scoped_value_mark.
6781
6782 2020-03-13 Tom de Vries <tdevries@suse.de>
6783
6784 PR symtab/25646
6785 * psymtab.c (partial_symtab::partial_symtab): Don't set
6786 globals_offset and statics_offset. Push element onto
6787 current_global_psymbols and current_static_psymbols stacks.
6788 (concat): New function.
6789 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6790 element from current_global_psymbols and current_static_psymbols
6791 stacks. Concat popped elements to global_psymbols and
6792 static_symbols.
6793 (add_psymbol_to_list): Use current_global_psymbols and
6794 current_static_psymbols stacks.
6795 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6796 current_static_psymbols fields.
6797
6798 2020-03-12 Christian Biesinger <cbiesinger@google.com>
6799
6800 * corelow.c (sniff_core_bfd): Remove.
6801 (class core_target) <m_core_vec>: Remove.
6802 (core_target::core_target): Update.
6803 (core_file_fns): Remove.
6804 (deprecated_add_core_fns): Remove.
6805 (default_core_sniffer): Remove.
6806 (sniff_core_bfd): Remove.
6807 (default_check_format): Remove.
6808 (gdb_check_format): Remove.
6809 (core_target_open): Update.
6810 (core_target::get_core_register_section): Update.
6811 (get_core_registers_cb): Update.
6812 (core_target::fetch_registers): Update.
6813 * gdbcore.h (struct core_fns): Remove.
6814 (deprecated_add_core_fns): Remove.
6815 (default_core_sniffer): Remove.
6816 (default_check_format): Remove.
6817
6818 2020-03-12 Tom Tromey <tom@tromey.com>
6819
6820 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6821 CORE_ADDR.
6822 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6823
6824 2020-03-12 Tom Tromey <tom@tromey.com>
6825
6826 * remote.c (remote_target::download_tracepoint)
6827 (remote_target::enable_tracepoint)
6828 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6829 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6830 sprintf_vma.
6831
6832 2020-03-12 Tom Tromey <tom@tromey.com>
6833
6834 * symfile-mem.c: Update CORE_ADDR size assert.
6835
6836 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
6837
6838 * selftest.m4: Move to gdbsupport/.
6839 * acinclude.m4: Update path to selftest.m4.
6840
6841 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
6842
6843 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6844 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6845 gdbarch-selfselftests.c and selftest-arch.c.
6846 (SUBDIR_UNITTESTS_OBS): Rename to...
6847 (SELFTESTS_OBS): ... this.
6848 (COMMON_SFILES): Remove disasm-selftests.c and
6849 gdbarch-selftests.c.
6850 * configure.ac: Don't add selftest-arch.{c,o} to
6851 CONFIG_{SRCS,OBS}.
6852 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
6853 preprocessor conditions.
6854
6855 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
6856
6857 * configure.ac: Don't source bfd/development.sh.
6858 * selftest.m4: Modify comment.
6859 * configure: Re-generate.
6860
6861 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
6862
6863 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
6864 not "true" or "false".
6865 * configure: Re-generate.
6866
6867 2020-03-12 Christian Biesinger <cbiesinger@google.com>
6868
6869 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
6870 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
6871 renamed to arm_nbsd_supply_gregset.
6872 (fetch_register): Update to call arm_nbsd_supply_gregset.
6873 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
6874 (arm_netbsd_nat_target::fetch_registers): Update.
6875 (fetch_elfcore_registers): Removed.
6876 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
6877 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
6878 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
6879 not require NetBSD system headers.
6880 (arm_nbsd_regset): New struct.
6881 (arm_nbsd_iterate_over_regset_sections): New function.
6882 (arm_netbsd_init_abi_common): Updated to call
6883 set_gdbarch_iterate_over_regset_sections.
6884 * arm-nbsd-tdep.h: New file.
6885
6886 2020-03-11 Kevin Buettner <kevinb@redhat.com>
6887
6888 * symtab.c (find_pc_sect_line): Add check which prevents infinite
6889 recursion.
6890
6891 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
6892
6893 * configure: Re-generate.
6894
6895 2020-03-11 Tom Tromey <tromey@adacore.com>
6896
6897 * ada-typeprint.c (print_choices): Fix comment.
6898
6899 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
6900
6901 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
6902 previous item in the list, when the list has no items.
6903
6904 2020-03-11 Tom de Vries <tdevries@suse.de>
6905
6906 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
6907 PROP_LOCLIST handling code.
6908
6909 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
6910
6911 * buildsym-legacy.c (record_line): Pass extra parameter to
6912 record_line.
6913 * buildsym.c (buildsym_compunit::record_line): Take an extra
6914 parameter, reduce duplication in the line table, and record the
6915 is_stmt flag in the line table.
6916 * buildsym.h (buildsym_compunit::record_line): Add extra
6917 parameter.
6918 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
6919 non-statement lines.
6920 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
6921 this to the symtab builder.
6922 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
6923 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
6924 through to dwarf_record_line_1.
6925 * infrun.c (process_event_stop_test): When stepping, don't stop at
6926 a non-statement instruction, and only refresh the step info when
6927 we land in the middle of a line's range. Also add an extra
6928 comment.
6929 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
6930 field.
6931 * record-btrace.c (btrace_find_line_range): Only record lines
6932 marked as is-statement.
6933 * stack.c (frame_show_address): Show the frame address if we are
6934 in a non-statement sal.
6935 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
6936 (maintenance_print_one_line_table): Print a header for the is_stmt
6937 column, and include is_stmt information in the output.
6938 * symtab.c (find_pc_sect_line): Find lines marked as statements in
6939 preference to non-statements.
6940 (find_pcs_for_symtab_line): Prefer is-statement entries.
6941 (find_line_common): Likewise.
6942 * symtab.h (struct linetable_entry): Add is_stmt field.
6943 (struct symtab_and_line): Likewise.
6944 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
6945 arranging the line table.
6946
6947 2020-03-07 Tom de Vries <tdevries@suse.de>
6948
6949 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
6950 DIE.
6951
6952 2020-03-07 Tom Tromey <tom@tromey.com>
6953
6954 * valops.c (value_literal_complex): Remove obsolete comment.
6955 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
6956 comment.
6957
6958 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
6959
6960 * infrun.h: Forward-declare thread_info.
6961 (set_step_info): Add thread_info parameter, add doc.
6962 * infrun.c (set_step_info): Add thread_info parameter, move doc
6963 to header.
6964 * infrun.c (process_event_stop_test): Pass thread to
6965 set_step_info call.
6966 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
6967 set_step_info.
6968 (prepare_one_step): Add thread_info parameter, pass it to
6969 set_step_frame and prepare_one_step (recursive) call.
6970 (step_1): Pass thread to prepare_one_step call.
6971 (step_command_fsm::should_stop): Pass thread to
6972 prepare_one_step.
6973 (until_next_fsm): Pass thread to set_step_frame call.
6974 (finish_command): Pass thread to set_step_info call.
6975
6976 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
6977
6978 * windows-tdep.c (windows_solib_create_inferior_hook):
6979 Check if inferior is running.
6980
6981 2020-03-06 Tom de Vries <tdevries@suse.de>
6982
6983 * NEWS: Fix "the the".
6984 * ctfread.c: Same.
6985
6986 2020-03-06 Tom de Vries <tdevries@suse.de>
6987
6988 * psymtab.c (psymtab_to_symtab): Don't print "done.".
6989
6990 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6991
6992 * .dir-locals.el: Add a comment referencing the other copies of
6993 this file.
6994
6995 2020-03-05 John Baldwin <jhb@FreeBSD.org>
6996
6997 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
6998 psargs.
6999
7000 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7001
7002 * .gitattributes: New file.
7003
7004 2020-03-04 Tom Tromey <tom@tromey.com>
7005
7006 * symmisc.c (print_symbol_bcache_statistics)
7007 (print_objfile_statistics): Update.
7008 * symfile.c (allocate_symtab): Use intern.
7009 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7010 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7011 macro_cache>: Remove.
7012 <string_cache>: New member.
7013 (struct objfile) <intern>: New methods.
7014 * elfread.c (elf_symtab_read): Use intern.
7015 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7016 (dwarf2_compute_name, dwarf2_physname)
7017 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7018 names.
7019 (guess_partial_die_structure_name): Update.
7020 (partial_die_info::fixup): Intern name.
7021 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7022 name.
7023 (dwarf2_name): Intern name. Update.
7024 * buildsym.c (buildsym_compunit::get_macro_table): Use
7025 string_cache.
7026
7027 2020-03-04 Tom Tromey <tom@tromey.com>
7028
7029 * jit.c (bfd_open_from_target_memory): Make "target" const.
7030 * corefile.c (gnutarget): Now const.
7031 * gdbcore.h (gnutarget): Now const.
7032
7033 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
7034
7035 * NEWS: Mention support for WOW64 processes.
7036 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7037 (amd64_windows_segment_register_p): Remove static.
7038 (_initialize_amd64_windows_nat): Update.
7039 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7040 * i386-windows-nat.c (context_offset): Update.
7041 (i386_mappings): Rename and remove static.
7042 (i386_windows_segment_register_p): Remove static.
7043 (_initialize_i386_windows_nat): Update.
7044 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7045 (STATUS_WX86_SINGLE_STEP): New macro.
7046 (EnumProcessModulesEx): New macro.
7047 (Wow64SuspendThread): New macro.
7048 (Wow64GetThreadContext): New macro.
7049 (Wow64SetThreadContext): New macro.
7050 (Wow64GetThreadSelectorEntry): New macro.
7051 (windows_set_context_register_offsets): Add static.
7052 (windows_set_segment_register_p): Likewise.
7053 (windows_add_thread): Adapt for WOW64 processes.
7054 (windows_fetch_one_register): Likewise.
7055 (windows_nat_target::fetch_registers): Likewise.
7056 (windows_store_one_register): Likewise.
7057 (display_selector): Likewise.
7058 (display_selectors): Likewise.
7059 (handle_exception): Likewise.
7060 (windows_continue): Likewise.
7061 (windows_nat_target::resume): Likewise.
7062 (windows_add_all_dlls): Likewise.
7063 (do_initial_windows_stuff): Likewise.
7064 (windows_nat_target::attach): Likewise.
7065 (windows_get_exec_module_filename): Likewise.
7066 (windows_nat_target::create_inferior): Likewise.
7067 (windows_xfer_siginfo): Likewise.
7068 (_initialize_loadable): Initialize Wow64SuspendThread,
7069 Wow64GetThreadContext, Wow64SetThreadContext,
7070 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7071 * windows-nat.h (windows_set_context_register_offsets):
7072 Remove declaration.
7073 (windows_set_segment_register_p): Likewise.
7074 (i386_windows_segment_register_p): Add declaration.
7075 (amd64_windows_segment_register_p): Likewise.
7076
7077 2020-03-04 Luis Machado <luis.machado@linaro.org>
7078
7079 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7080 in "info registers" for AArch64/ARM.
7081
7082 The change caused "info registers" to not print GPR's.
7083
7084 gdb/ChangeLog:
7085
7086 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7087
7088 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7089 when reg->group is empty and reggroup is not.
7090
7091 2020-03-03 Tom Tromey <tromey@adacore.com>
7092
7093 * dwarf2/frame.c (struct dwarf2_frame_cache)
7094 <checked_tailcall_bottom, entry_cfa_sp_offset,
7095 entry_cfa_sp_offset_p>: Remove members.
7096 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7097 (dwarf2_frame_prev_register): Don't call
7098 dwarf2_tailcall_sniffer_first.
7099 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7100 * frame-unwind.c (add_unwinder): New fuction.
7101 (frame_unwind_init): Use it. Add tailcall unwinder.
7102
7103 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7104 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7105
7106 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7107 value should be printed as true.
7108
7109 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
7110
7111 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7112 (windows_init_abi): Set and use windows_so_ops.
7113
7114 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7115
7116 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7117 when verifying if dealing with a convenience variable.
7118
7119 2020-03-03 Luis Machado <luis.machado@linaro.org>
7120
7121 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7122
7123 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7124
7125 * infrun.c (gdbarch_supports_displaced_stepping): New.
7126 (use_displaced_stepping): Break up conditions in smaller pieces.
7127 Use gdbarch_supports_displaced_stepping.
7128 (displaced_step_prepare_throw): Use
7129 gdbarch_supports_displaced_stepping.
7130
7131 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7132
7133 * NEWS: Mention new behaviour of the history filename.
7134 * top.c (write_history_p): Add comment.
7135 (show_write_history_p): Add header comment, give a different
7136 message when history writing is on, but the history filename is
7137 empty.
7138 (history_filename): Add comment.
7139 (history_filename_empty): New function.
7140 (show_history_filename): Add header comment, give a different
7141 message when the filename is empty.
7142 (init_history): Compare history_filename against nullptr, and only
7143 read history if the filename is not empty.
7144 (set_history_filename): Add header comment, and only make
7145 non-empty filenames absolute.
7146 (init_main): Make the filename argument to 'set history filename'
7147 optional.
7148
7149 2020-03-02 Christian Biesinger <cbiesinger@google.com>
7150
7151 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7152 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7153 (fetch_fp_register): Update.
7154 (fetch_fp_regs): Update.
7155 (store_fp_register): Update.
7156 (store_fp_regs): Update.
7157 (arm_netbsd_nat_target::read_description): New function.
7158 (fetch_elfcore_registers): Update.
7159
7160 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7161
7162 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7163 general_thread if the stop reply is missing a thread-id.
7164 (remote_target::process_stop_reply): Use the first non-exited
7165 thread if the target didn't pass a thread-id.
7166 * infrun.c (do_target_wait): Move call to
7167 switch_to_inferior_no_thread to ....
7168 (do_target_wait_1): ... here.
7169
7170 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7171
7172 * debuginfod-support.c: Include defs.h first.
7173
7174 2020-02-28 Tom de Vries <tdevries@suse.de>
7175
7176 * symfile.c (set_initial_language): Use default language for lookup.
7177
7178 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
7179
7180 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7181 reader variable, pass `this` to read_cutu_die_from_dwo.
7182
7183 2020-02-27 Aaron Merey <amerey@redhat.com>
7184
7185 * source.c (open_source_file): Check for nullptr when computing
7186 srcpath.
7187
7188 2020-02-27 Tom Tromey <tromey@adacore.com>
7189
7190 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7191 member.
7192 (dwarf2_add_field): Don't update nfields.
7193 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7194
7195 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7196
7197 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7198 abs.
7199
7200 2020-02-26 Tom Tromey <tom@tromey.com>
7201
7202 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7203 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7204 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7205 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7206 per_cu_data.
7207
7208 2020-02-26 Tom Tromey <tom@tromey.com>
7209
7210 * dwarf2/index-write.c (psym_index_map): Change type.
7211 (add_address_entry_worker, write_one_signatured_type)
7212 (recursively_count_psymbols, recursively_write_psymbols)
7213 (class debug_names, psyms_seen_size, write_gdbindex)
7214 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7215
7216 2020-02-26 Aaron Merey <amerey@redhat.com>
7217
7218 * Makefile.in: Handle optional debuginfod support.
7219 * NEWS: Update.
7220 * README: Add --with-debuginfod summary.
7221 * config.in: Regenerate.
7222 * configure: Regenerate.
7223 * configure.ac: Handle optional debuginfod support.
7224 * debuginfod-support.c: debuginfod helper functions.
7225 * debuginfod-support.h: Ditto.
7226 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7227 summary.
7228 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7229 when a dwz file cannot be found.
7230 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7231 debuginfo file cannot be found.
7232 * source.c (open_source_file): Query debuginfod servers when a
7233 source file cannot be found.
7234 * top.c (print_gdb_configuration): Include
7235 --{with,without}-debuginfod in the output.
7236
7237 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7238
7239 * thread.c (thr_try_catch_cmd): Print thread name.
7240
7241 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
7242
7243 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7244 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7245 dwarf2_fetch_die_type_sect_off): Move to...
7246 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7247 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7248 dwarf2_fetch_die_type_sect_off): ... here.
7249 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7250 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7251 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7252
7253 2020-02-26 Tom de Vries <tdevries@suse.de>
7254
7255 PR gdb/25603
7256 * symfile.c (set_initial_language): Exit-early if
7257 language_mode == language_mode_manual.
7258
7259 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7260
7261 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7262 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7263 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7264
7265 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7266
7267 * gdbtypes.c (create_array_type_with_stride): Handle negative
7268 array strides.
7269 * valarith.c (value_subscripted_rvalue): Likewise.
7270
7271 2020-02-25 Luis Machado <luis.machado@linaro.org>
7272
7273 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7274
7275 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7276
7277 * loc.h (dwarf2_get_die_type): Move to...
7278 * read.h (dwarf2_get_die_type): ... here.
7279 * read.c (dwarf2_get_die_type): Move doc to header.
7280
7281 2020-02-25 Joel Brobecker <brobecker@adacore.com>
7282
7283 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7284 'gnulib/Makefile.in' to the list.
7285
7286 2020-02-24 Tom Tromey <tom@tromey.com>
7287
7288 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7289 Remove.
7290 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7291 XOBNEWVEC.
7292
7293 2020-02-24 Tom Tromey <tom@tromey.com>
7294
7295 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7296 New method.
7297 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7298 (dw2_do_instantiate_symtab, dw2_get_file_names)
7299 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7300
7301 2020-02-24 Tom Tromey <tom@tromey.com>
7302
7303 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7304 make_scoped_restore.
7305 (dwarf2_psymtab::read_symtab): Don't clear
7306 reading_partial_symbols.
7307
7308 2020-02-24 Tom de Vries <tdevries@suse.de>
7309
7310 PR gdb/25592
7311 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7312
7313 2020-02-24 Tom de Vries <tdevries@suse.de>
7314
7315 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7316 commands layout next/prev/regs.
7317
7318 2020-02-22 Tom Tromey <tom@tromey.com>
7319
7320 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7321 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7322
7323 2020-02-22 Tom Tromey <tom@tromey.com>
7324
7325 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7326
7327 2020-02-22 Tom Tromey <tom@tromey.com>
7328
7329 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7330 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7331 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7332 * tui/tui.c (_initialize_tui): Add usage text.
7333
7334 2020-02-22 Tom Tromey <tom@tromey.com>
7335
7336 * tui/tui-win.c (tui_set_focus_command)
7337 (tui_set_win_height_command): Use error_no_arg.
7338 (_initialize_tui_win): Update help text.
7339 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7340
7341 2020-02-22 Tom Tromey <tom@tromey.com>
7342
7343 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7344 * tui/tui-disasm.h (struct tui_disasm_window)
7345 <display_start_addr>: Declare.
7346 * tui/tui-source.h (struct tui_source_window)
7347 <display_start_addr>: Declare.
7348 * tui/tui-winsource.h (struct tui_source_window_base)
7349 <show_source_line, display_start_addr>: New methods.
7350 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7351 Rename and move to protected section.
7352 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7353 (tui_source_window_base::do_erase_source_content): Update.
7354 (tui_source_window_base::show_source_line): Now a method.
7355 (tui_source_window_base::show_source_content)
7356 (tui_source_window_base::tui_source_window_base)
7357 (tui_source_window_base::rerender)
7358 (tui_source_window_base::refill)
7359 (tui_source_window_base::do_scroll_horizontal)
7360 (tui_source_window_base::set_is_exec_point_at)
7361 (tui_source_window_base::update_breakpoint_info)
7362 (tui_source_window_base::update_exec_info): Update.
7363 * tui/tui-source.c (tui_source_window::set_contents)
7364 (tui_source_window::showing_source_p)
7365 (tui_source_window::do_scroll_vertical)
7366 (tui_source_window::location_matches_p)
7367 (tui_source_window::line_is_displayed): Update.
7368 (tui_source_window::display_start_addr): New method.
7369 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7370 (tui_disasm_window::do_scroll_vertical)
7371 (tui_disasm_window::location_matches_p): Update.
7372 (tui_disasm_window::display_start_addr): New method.
7373
7374 2020-02-22 Tom Tromey <tom@tromey.com>
7375
7376 * NEWS: Add entry for gdb.register_window_type.
7377 * tui/tui-layout.h (window_factory): New typedef.
7378 (tui_register_window): Declare.
7379 * tui/tui-layout.c (saved_tui_windows): New global.
7380 (tui_apply_current_layout): Use it.
7381 (tui_register_window): New function.
7382 * python/python.c (do_start_initialization): Call
7383 gdbpy_initialize_tui.
7384 (python_GdbMethods): Add "register_window_type" function.
7385 * python/python-internal.h (gdbpy_register_tui_window)
7386 (gdbpy_initialize_tui): Declare.
7387 * python/py-tui.c: New file.
7388 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7389
7390 2020-02-22 Tom Tromey <tom@tromey.com>
7391
7392 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7393
7394 2020-02-22 Tom Tromey <tom@tromey.com>
7395
7396 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7397 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7398 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7399 (tui_set_win_focus_to): Move from tui-win.c.
7400
7401 2020-02-22 Tom Tromey <tom@tromey.com>
7402
7403 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7404 functions.
7405 (known_window_types): New global.
7406 (tui_get_window_by_name): Reimplement.
7407 (initialize_known_windows): New function.
7408 (validate_window_name): Rewrite.
7409 (_initialize_tui_layout): Call initialize_known_windows.
7410
7411 2020-02-22 Tom Tromey <tom@tromey.com>
7412
7413 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7414 Remove constants.
7415 * tui/tui-winsource.h (struct tui_source_window_base)
7416 <tui_source_window_base>: Remove parameter.
7417 * tui/tui-winsource.c
7418 (tui_source_window_base::tui_source_window_base): Remove
7419 parameter.
7420 (tui_source_window_base::refill): Update.
7421 * tui/tui-stack.h (struct tui_locator_window)
7422 <tui_locator_window>: Update.
7423 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7424 Default the constructor.
7425 * tui/tui-regs.h (struct tui_data_item_window)
7426 <tui_data_item_window>: Default the constructor.
7427 (struct tui_data_window) <tui_data_window>: Likewise.
7428 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7429 Default the constructor.
7430 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7431 Default the constructor.
7432 <type>: Remove.
7433 (struct tui_win_info) <tui_win_info>: Default the constructor.
7434 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7435 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7436 Default the constructor.
7437
7438 2020-02-22 Tom Tromey <tom@tromey.com>
7439
7440 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7441 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7442 * tui/tui-win.c (tui_resize_all): Don't call
7443 tui_delete_invisible_windows.
7444 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7445 done.
7446 (tui_set_layout): Update.
7447 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7448 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7449 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7450
7451 2020-02-22 Tom Tromey <tom@tromey.com>
7452
7453 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7454 correctly.
7455
7456 2020-02-22 Tom Tromey <tom@tromey.com>
7457
7458 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7459
7460 2020-02-22 Tom Tromey <tom@tromey.com>
7461
7462 * tui/tui-winsource.h (struct tui_source_window_iterator)
7463 <inner_iterator>: New etytypedef.
7464 <tui_source_window_iterator>: Take "end" parameter.
7465 <tui_source_window_iterator>: Take iterator.
7466 <operator*, advance>: Update.
7467 <m_iter>: Change type.
7468 <m_end>: New field.
7469 (struct tui_source_windows) <begin, end>: Update.
7470 * tui/tui-layout.c (tui_windows): New global.
7471 (tui_apply_current_layout): Clear tui_windows.
7472 (tui_layout_window::apply): Update tui_windows.
7473 * tui/tui-data.h (tui_windows): Declare.
7474 (all_tui_windows): Now inline function.
7475 (class tui_window_iterator, struct all_tui_windows): Remove.
7476
7477 2020-02-22 Tom Tromey <tom@tromey.com>
7478
7479 PR tui/17850:
7480 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7481 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7482 "height" argument.
7483 (class tui_layout_window) <get_sizes>: Likewise.
7484 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7485 argument.
7486 <get_sizes>: Add "height" argument.
7487 <m_vertical>: New field.
7488 * tui/tui-layout.c (tui_layout_split::clone): Update.
7489 (tui_layout_split::get_sizes): Add "height" argument.
7490 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7491 (tui_new_layout_command): Parse "-horizontal".
7492 (_initialize_tui_layout): Update help string.
7493 (tui_layout_split::specification): Add "-horizontal" when needed.
7494 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7495 argument.
7496 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7497 New methods.
7498
7499 2020-02-22 Tom Tromey <tom@tromey.com>
7500
7501 * tui/tui-layout.h (enum tui_adjust_result): New.
7502 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7503 (class tui_layout_window) <adjust_size>: Return
7504 tui_adjust_result. Rewrite.
7505 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7506 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7507
7508 2020-02-22 Tom Tromey <tom@tromey.com>
7509
7510 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7511 parameter and return types.
7512 (class tui_layout_base) <specification>: Add "depth".
7513 (class tui_layout_window) <specification>: Add "depth".
7514 (class tui_layout_split) <specification>: Add "depth".
7515 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7516 and return types.
7517 (tui_new_layout_command): Parse sub-layouts.
7518 (_initialize_tui_layout): Update help string.
7519 (tui_layout_window::specification): Add "depth".
7520 (add_layout_command): Update.
7521
7522 2020-02-22 Tom Tromey <tom@tromey.com>
7523
7524 * NEWS: Add "tui new-layout" item.
7525 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7526 Add new-layout command to help text.
7527 (validate_window_name): New function.
7528 (tui_new_layout_command): New function.
7529 (_initialize_tui_layout): Register "new-layout".
7530 (tui_layout_window::specification): New method.
7531 (tui_layout_window::specification): New method.
7532 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7533 method.
7534 (class tui_layout_window) <specification>: New method.
7535 (class tui_layout_split) <specification>: New method.
7536
7537 2020-02-22 Tom Tromey <tom@tromey.com>
7538
7539 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7540 * tui/tui-win.c (window_name_completer): Update comment.
7541 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7542 Declare method.
7543 (class tui_layout_window) <replace_window>: Likewise.
7544 (class tui_layout_split) <replace_window>: Likewise.
7545 (tui_set_layout): Don't declare.
7546 (tui_set_initial_layout): Declare function.
7547 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7548 (asm_regs_layout): New globals.
7549 (tui_current_layout, show_layout): Remove.
7550 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7551 (find_layout, tui_apply_layout): New function.
7552 (layout_completer): Remove.
7553 (tui_next_layout): Reimplement.
7554 (tui_next_layout_command): New function.
7555 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7556 (tui_regs_layout): Reimplement.
7557 (tui_regs_layout_command): New function.
7558 (extract_display_start_addr): Rewrite.
7559 (next_layout, prev_layout): Remove.
7560 (tui_layout_window::replace_window): New method.
7561 (tui_layout_split::replace_window): New method.
7562 (destroy_layout): New function.
7563 (layout_list): New global.
7564 (add_layout_command): New function.
7565 (initialize_layouts): Update.
7566 (tui_layout_command): New function.
7567 (_initialize_tui_layout): Install "layout" commands.
7568 * tui/tui-data.h (enum tui_layout_type): Remove.
7569 (tui_current_layout): Don't declare.
7570
7571 2020-02-22 Tom Tromey <tom@tromey.com>
7572
7573 * tui/tui-regs.c (tui_reg_layout): Remove.
7574 (tui_reg_command): Use tui_regs_layout.
7575 * tui/tui-layout.h (tui_reg_command): Declare.
7576 * tui/tui-layout.c (tui_reg_command): New function.
7577
7578 2020-02-22 Tom Tromey <tom@tromey.com>
7579
7580 * tui/tui.c (tui_rl_delete_other_windows): Call
7581 tui_remove_some_windows.
7582 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7583 Declare method.
7584 (class tui_layout_window) <remove_windows>: New method.
7585 (class tui_layout_split) <remove_windows>: Declare.
7586 (tui_remove_some_windows): Declare.
7587 * tui/tui-layout.c (tui_remove_some_windows): New function.
7588 (tui_layout_split::remove_windows): New method.
7589
7590 2020-02-22 Tom Tromey <tom@tromey.com>
7591
7592 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7593 * tui/tui-layout.h (tui_next_layout): Declare.
7594 * tui/tui-layout.c (tui_next_layout): New function.
7595
7596 2020-02-22 Tom Tromey <tom@tromey.com>
7597
7598 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7599 correct coordinates.
7600
7601 2020-02-22 Tom Tromey <tom@tromey.com>
7602
7603 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7604 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7605 DATA_WIN case.
7606
7607 2020-02-22 Tom Tromey <tom@tromey.com>
7608
7609 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7610 TUI_DISASM_WIN, not tui_win_list.
7611
7612 2020-02-22 Tom Tromey <tom@tromey.com>
7613
7614 * valprint.c (generic_val_print_enum_1)
7615 (val_print_type_code_flags): Style member names.
7616 * rust-lang.c (val_print_struct, rust_print_enum)
7617 (rust_print_struct_def, rust_internal_print_type): Style member
7618 names.
7619 * p-valprint.c (pascal_object_print_value_fields): Style member
7620 names. Only call fprintf_symbol_filtered for static members.
7621 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7622 * f-valprint.c (f_val_print): Style member names.
7623 * f-typeprint.c (f_type_print_base): Style member names.
7624 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7625 call fprintf_symbol_filtered for static members.
7626 (cp_print_class_member): Style member names.
7627 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7628 member names.
7629 * ada-valprint.c (ada_print_scalar): Style enum names.
7630 (ada_val_print_enum): Likewise.
7631 * ada-typeprint.c (print_enum_type): Style enum names.
7632
7633 2020-02-21 Tom Tromey <tom@tromey.com>
7634
7635 * psympriv.h (struct partial_symtab): Update comment.
7636
7637 2020-02-21 Tom Tromey <tromey@adacore.com>
7638
7639 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7640 type is CORE_ADDR.
7641
7642 2020-02-21 Tom de Vries <tdevries@suse.de>
7643
7644 PR gdb/25534
7645 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7646 if dependencies[i]->user != NULL.
7647
7648 2020-02-21 Ali Tamur <tamur@google.com>
7649
7650 * dwarf2/read.c (dwarf2_name): Add null check.
7651
7652 2020-02-20 Tom Tromey <tom@tromey.com>
7653
7654 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7655 ">=", in binary search.
7656 (dwarf2_find_containing_comp_unit): New overload.
7657 (run_test): New self-test.
7658 (_initialize_dwarf2_read): Register new test.
7659
7660 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
7661
7662 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7663 * riscv-tdep.h: Likewise.
7664 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7665 rv32-only CSR.
7666 * features/riscv/64bit-csr.xml: Regenerated.
7667
7668 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7669 Tom Tromey <tom@tromey.com>
7670
7671 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7672 of 'fputc_unfiltered'.
7673 (putchar_unfiltered): Call 'fputc_unfiltered'.
7674 (fputc_unfiltered): Call 'fputs_unfiltered'.
7675
7676 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7677
7678 * config.in: Regenerate.
7679 * configure: Regenerate.
7680 * configure.ac: Add --with-python-libdir option.
7681 * main.c: Use WITH_PYTHON_LIBDIR.
7682
7683 2020-02-19 Tom Tromey <tom@tromey.com>
7684
7685 * symtab.c (general_symbol_info::compute_and_set_names): Use
7686 obstack_strndup. Simplify call to symbol_set_demangled_name.
7687
7688 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
7689
7690 * dwarf2/read.c (allocate_signatured_type_table,
7691 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7692 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7693 Remove objfile parameter, update all callers.
7694
7695 2020-02-19 Doug Evans <dje@google.com>
7696
7697 PR rust/25535
7698 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7699 rust_enum_variant calculation.
7700
7701 2020-02-19 Tom Tromey <tromey@adacore.com>
7702
7703 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7704
7705 2020-02-19 Tom Tromey <tromey@adacore.com>
7706
7707 * ada-lang.c (cache_symbol): Use obstack_strdup.
7708
7709 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7710
7711 * configure: Regenerate.
7712
7713 2020-02-19 Tom Tromey <tromey@adacore.com>
7714
7715 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7716 NULL check.
7717
7718 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
7719
7720 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7721
7722 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7723
7724 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7725 if GDBSERVER is not defined.
7726 (riscv_tdesc_cache): Likewise, also store const target_desc.
7727 (STATIC_IN_GDB): Define.
7728 (riscv_create_target_description): Update declaration with
7729 STATIC_IN_GDB.
7730 (riscv_lookup_target_description): New function, only define if
7731 GDBSERVER is not defined.
7732 * arch/riscv.h (riscv_create_target_description): Declare only
7733 when GDBSERVER is defined.
7734 (riscv_lookup_target_description): New declaration when GDBSERVER
7735 is not defined.
7736 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7737 (riscv_linux_read_features): ...this, and return
7738 riscv_gdbarch_features instead of target_desc.
7739 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7740 (riscv_linux_read_description): Rename to...
7741 (riscv_linux_read_features): ...this.
7742 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7743 Update to use riscv_gdbarch_features and
7744 riscv_lookup_target_description.
7745 * riscv-tdep.c (riscv_find_default_target_description): Use
7746 riscv_lookup_target_description instead of
7747 riscv_create_target_description.
7748
7749 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
7750
7751 * valprint.c (generic_val_print_enum_1): When printing a flag
7752 enum with value 0 and there is no enumerator with value 0, print
7753 just "0" instead of "(unknown: 0x0)".
7754
7755 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
7756
7757 * valprint.c (generic_val_print_enum_1): Print unknown part of
7758 flag enum in hex.
7759
7760 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
7761
7762 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7763 flag enums to contain duplicate enumerators.
7764 * valprint.c (generic_val_print_enum_1): Update comment.
7765
7766 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
7767
7768 * dwarf2/read.c: Include "count-one-bits.h".
7769 (update_enumeration_type_from_children): If an enumerator has
7770 multiple bits set, don't treat the enumeration as a "flag enum".
7771 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7772 of flag enums have 0 or 1 bit set.
7773
7774 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7775
7776 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7777 conversion.
7778 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7779 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7780 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7781 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7782 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7783
7784 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
7785
7786 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7787
7788 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
7789
7790 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7791 displaced_step_closure_up.
7792 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7793 (struct displaced_step_closure_up):
7794 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7795 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7796 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7797 Likewise.
7798 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7799 * gdbarch.c, gdbarch.h: Re-generate.
7800 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7801 displaced_step_closure_up.
7802 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7803 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7804 * infrun.h (displaced_step_closure_up): New type alias.
7805 (struct displaced_step_inferior_state) <step_closure>: Change
7806 type to displaced_step_closure_up.
7807 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7808 displaced_step_closure_up.
7809 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7810
7811 2020-02-14 Tom Tromey <tom@tromey.com>
7812
7813 * minidebug.c (gnu_debug_key): New global.
7814 (find_separate_debug_file_in_section): Use it.
7815
7816 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
7817
7818 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7819 std::unique_ptr.
7820 * gdbarch.c: Re-generate.
7821 * gdbarch.h: Re-generate.
7822 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7823 change.
7824 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7825 type to std::unique_ptr.
7826 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7827 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7828 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7829 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7830 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7831 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7832 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7833 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7834 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7835
7836 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
7837
7838 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7839 std::unique_ptr.
7840 (displaced_step_clear): Rename to...
7841 (displaced_step_reset): ... this. Just call displaced->reset ().
7842 (displaced_step_clear_cleanup): Rename to...
7843 (displaced_step_reset_cleanup): ... this.
7844 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7845 (displaced_step_fixup): Likewise.
7846 (resume_1): Likewise.
7847 (handle_inferior_event): Restore child's memory before calling
7848 displaced_step_fixup on the parent.
7849 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
7850 to std::unique_ptr.
7851 <step_closure>: Change type to std::unique_ptr.
7852
7853 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
7854
7855 * arm-tdep.c: Include count-one-bits.h.
7856 (cleanup_block_store_pc): Use count_one_bits.
7857 (cleanup_block_load_pc): Use count_one_bits.
7858 (arm_copy_block_xfer): Use count_one_bits.
7859 (thumb2_copy_block_xfer): Use count_one_bits.
7860 (thumb_copy_pop_pc_16bit): Use count_one_bits.
7861 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
7862 (thumb_get_next_pcs_raw): Use count_one_bits.
7863 (arm_get_next_pcs_raw): Use count_one_bits_l.
7864 * arch/arm.c (bitcount): Remove.
7865 * arch/arm.h (bitcount): Remove.
7866
7867 2020-02-14 Tom Tromey <tromey@adacore.com>
7868
7869 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
7870 Update.
7871 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
7872 * dwarf2/loc.c (call_site_find_chain_1): Return
7873 unique_xmalloc_ptr.
7874 (call_site_find_chain): Likewise.
7875
7876 2020-02-14 Richard Biener <rguenther@suse.de>
7877
7878 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
7879 on expression with division operators.
7880
7881 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7882
7883 * MAINTAINERS (Write After Approval): Adding myself.
7884
7885 2020-02-12 Tom Tromey <tom@tromey.com>
7886
7887 * event-loop.c (event_data, gdb_event, event_handler_func):
7888 Remove.
7889
7890 2020-02-12 Tom Tromey <tom@tromey.com>
7891
7892 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
7893 (dwarf2_frame_objfile_data): Add comment.
7894 (find_comp_unit, set_comp_unit): New functions.
7895 (dwarf2_frame_find_fde): Use find_comp_unit.
7896 (dwarf2_build_frame_info): Use set_comp_unit.
7897
7898 2020-02-12 Tom Tromey <tom@tromey.com>
7899
7900 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
7901 (comp_unit): Don't initialize objfile.
7902 (execute_cfa_program): Add text_offset parameter.
7903 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
7904 (dwarf2_frame_cache): Update.
7905 (dwarf2_build_frame_info): Don't set "objfile" member.
7906
7907 2020-02-12 Tom Tromey <tom@tromey.com>
7908
7909 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
7910 (decode_frame_entry): Likewise.
7911 (dwarf2_build_frame_info): Update.
7912
7913 2020-02-12 Tom Tromey <tom@tromey.com>
7914
7915 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
7916 (decode_frame_entry_1): Use the comp_unit obstack.
7917
7918 2020-02-12 Tom Tromey <tom@tromey.com>
7919
7920 * dwarf2/frame.c (struct comp_unit): Add initializers and
7921 constructor.
7922 (dwarf2_frame_objfile_data): Store a comp_unit.
7923 (dwarf2_frame_find_fde): Update.
7924 (dwarf2_build_frame_info): Use "new".
7925
7926 2020-02-12 Tom Tromey <tom@tromey.com>
7927
7928 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
7929 (dwarf2_fde_table): Typedef for std::vector.
7930 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
7931 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
7932 (decode_frame_entry): Update.
7933 (dwarf2_build_frame_info): Use "new".
7934
7935 2020-02-12 Christian Biesinger <cbiesinger@google.com>
7936
7937 * arm-tdep.c (arm_gdbarch_init): Update.
7938 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
7939 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
7940 have_neon, is_m>: Change to bool.
7941
7942 2020-02-12 Christian Biesinger <cbiesinger@google.com>
7943
7944 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
7945
7946 2020-02-12 Tom Tromey <tom@tromey.com>
7947
7948 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
7949
7950 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
7951
7952 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
7953 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
7954
7955 2020-02-11 Tom Tromey <tom@tromey.com>
7956
7957 * psymtab.h: Update comment.
7958
7959 2020-02-11 Tom Tromey <tom@tromey.com>
7960
7961 * gdb_obstack.h (struct auto_obstack): Use
7962 DISABLE_COPY_AND_ASSIGN.
7963
7964 2020-02-11 Tom Tromey <tom@tromey.com>
7965
7966 * dwarf2/frame.h (struct objfile): Don't forward declare.
7967
7968 2020-02-11 Christian Biesinger <cbiesinger@google.com>
7969
7970 * cris-tdep.c (cris_supply_gregset): Change signature to match
7971 what struct regset expects.
7972 (cris_regset): New struct.
7973 (fetch_core_registers): Remove.
7974 (cris_iterate_over_regset_sections): New function.
7975 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
7976 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
7977
7978 2020-02-11 Christian Biesinger <cbiesinger@google.com>
7979
7980 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
7981 registers.
7982
7983 2020-02-11 Christian Biesinger <cbiesinger@google.com>
7984
7985 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
7986
7987 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
7988
7989 * configure: Re-generate.
7990
7991 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
7992
7993 * configure: Re-generate.
7994
7995 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
7996
7997 * acinclude: Update warning.m4 path.
7998 * warning.m4: Move to gdbsupport.
7999
8000 2020-02-11 Tom Tromey <tromey@adacore.com>
8001
8002 * remote.c (remote_console_output): Update.
8003 * printcmd.c (printf_command): Update.
8004 * event-loop.c (gdb_wait_for_event): Update.
8005 * linux-nat.c (sigchld_handler): Update.
8006 * remote-sim.c (gdb_os_write_stdout): Update.
8007 (gdb_os_flush_stdout): Update.
8008 (gdb_os_flush_stderr): Update.
8009 (gdb_os_write_stderr): Update.
8010 * exceptions.c (print_exception): Update.
8011 * remote-fileio.c (remote_fileio_func_read): Update.
8012 (remote_fileio_func_write): Update.
8013 * tui/tui.c (tui_enable): Update.
8014 * tui/tui-interp.c (tui_interp::init): Update.
8015 * utils.c (init_page_info): Update.
8016 (putchar_unfiltered, fputc_unfiltered): Update.
8017 (gdb_flush): Update.
8018 (emit_style_escape): Update.
8019 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8020 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8021 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8022 (stderr_file::write): Update.
8023 (stderr_file::puts): Update.
8024 * ui-file.h (ui_file_isatty, ui_file_write)
8025 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8026 (ui_file_puts): Don't declare.
8027
8028 2020-02-10 Tom de Vries <tdevries@suse.de>
8029
8030 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8031 sentinel to char *.
8032
8033 2020-02-09 Tom de Vries <tdevries@suse.de>
8034
8035 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8036 filename if it matches "<artificial>".
8037
8038 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8039
8040 * windows-tdep.c (struct enum_value_name): New struct.
8041 (create_enum): New function.
8042 (windows_get_siginfo_type): Create and use enum types.
8043
8044 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8045
8046 * NEWS: Mention $_siginfo support for Windows.
8047 * windows-nat.c (handle_exception): Set siginfo_er.
8048 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8049 (windows_xfer_siginfo): New function.
8050 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8051 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8052 (init_windows_gdbarch_data): New function.
8053 (get_windows_gdbarch_data): New function.
8054 (windows_get_siginfo_type): New function.
8055 (windows_init_abi): Register windows_get_siginfo_type.
8056 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8057
8058 2020-02-08 Tom Tromey <tom@tromey.com>
8059
8060 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8061 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8062 <keep>: Declare method.
8063 <m_keep>: Remove member.
8064 <~cutu_reader>: Remove.
8065 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8066 (cutu_reader::cutu_reader): Update.
8067 (cutu_reader::keep): Rename from ~cutu_reader.
8068 (process_psymtab_comp_unit, build_type_psymtabs_1)
8069 (process_skeletonless_type_unit, load_partial_comp_unit)
8070 (load_full_comp_unit, dwarf2_read_addr_index)
8071 (read_signatured_type): Update.
8072
8073 2020-02-08 Tom Tromey <tom@tromey.com>
8074
8075 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8076 "want_partial_unit" parameter.
8077 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8078 Inline check for DW_TAG_partial_unit.
8079 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8080
8081 2020-02-08 Tom Tromey <tom@tromey.com>
8082
8083 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8084 read.c.
8085 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8086 read.c.
8087
8088 2020-02-08 Tom Tromey <tom@tromey.com>
8089
8090 * dwarf2/read.c (read_address): Move to comp-unit.c.
8091 (dwarf2_rnglists_process, dwarf2_ranges_process)
8092 (read_attribute_value, dwarf_decode_lines_1)
8093 (var_decode_location, decode_locdesc): Update.
8094 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8095 read.c. Remove "cu" parameter.
8096 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8097 method.
8098
8099 2020-02-08 Tom Tromey <tom@tromey.com>
8100
8101 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8102 (read_indirect_line_string): Update.
8103 * dwarf2/comp-unit.c (read_offset): Remove.
8104 (read_comp_unit_head): Update.
8105 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8106 method.
8107 (read_offset): Don't declare.
8108
8109 2020-02-08 Tom Tromey <tom@tromey.com>
8110
8111 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8112 * dwarf2/read.c (struct comp_unit_head): Move to
8113 dwarf2/comp-unit.h.
8114 (enum class rcuh_kind): Move to comp-unit.h.
8115 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8116 (read_comp_unit_head, error_check_comp_unit_head)
8117 (read_and_check_comp_unit_head): Move to comp-unit.c.
8118 (read_offset, dwarf_unit_type_name): Likewise.
8119 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8120 (cutu_reader::cutu_reader, read_call_site_scope)
8121 (find_partial_die, follow_die_offset): Update.
8122 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8123
8124 2020-02-08 Tom Tromey <tom@tromey.com>
8125
8126 * dwarf2/read.c (read_offset_1): Move to leb.c.
8127 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8128 (dwarf_decode_macro_bytes): Update.
8129 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8130 * dwarf2/leb.h (read_offset): Declare.
8131
8132 2020-02-08 Tom Tromey <tom@tromey.com>
8133
8134 * dwarf2/read.c (dwarf2_section_size): Remove.
8135 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8136 Update.
8137 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8138
8139 2020-02-08 Tom Tromey <tom@tromey.com>
8140
8141 * dwarf2/read.c (read_initial_length): Move to leb.c.
8142 * dwarf2/leb.h (read_initial_length): Declare.
8143 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8144 handle_nonstd parameter.
8145 * dwarf2/frame.c (read_initial_length): Remove.
8146 (decode_frame_entry_1): Update.
8147
8148 2020-02-08 Tom Tromey <tom@tromey.com>
8149
8150 * dwarf2/loc.c (dwarf2_find_location_expression)
8151 (dwarf_evaluate_loc_desc::get_tls_address)
8152 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8153 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8154 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8155 (dwarf2_compile_property_to_c)
8156 (dwarf2_loc_desc_get_symbol_read_needs)
8157 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8158 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8159 (loclist_describe_location, loclist_tracepoint_var_ref)
8160 (loclist_generate_c_location): Update.
8161 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8162 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8163 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8164 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8165 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8166 (dwarf2_per_cu_data::addr_size)
8167 (dwarf2_per_cu_data::ref_addr_size)
8168 (dwarf2_per_cu_data::text_offset)
8169 (dwarf2_per_cu_data::addr_type): Now methods.
8170 (per_cu_header_read_in): Make per_cu "const".
8171 (dwarf2_version): Remove.
8172 (dwarf2_per_cu_data::int_type): Now a method.
8173 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8174 (set_die_type, read_array_type, read_subrange_index_type)
8175 (read_tag_string_type, read_subrange_type): Update.
8176 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8177 offset_size, ref_addr_size, text_offset, addr_type, version,
8178 objfile, int_type, addr_sized_int_type>: Declare methods.
8179
8180 2020-02-08 Tom Tromey <tom@tromey.com>
8181
8182 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8183 Move earlier.
8184
8185 2020-02-08 Tom Tromey <tom@tromey.com>
8186
8187 * dwarf2/read.h (dwarf_line_debug): Declare.
8188 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8189 * dwarf2/read.c: Move line_header code to new files.
8190 (dwarf_line_debug): No longer static.
8191 * dwarf2/line-header.c: New file.
8192 * dwarf2/line-header.h: New file.
8193
8194 2020-02-08 Tom Tromey <tom@tromey.com>
8195
8196 * dwarf2/read.c (struct line_header) <file_full_name,
8197 file_file_name>: Return unique_xmalloc_ptr.
8198 (line_header::file_file_name): Update.
8199 (line_header::file_full_name): Update.
8200 (dw2_get_file_names_reader): Update.
8201 (macro_start_file): Update.
8202
8203 2020-02-08 Tom Tromey <tom@tromey.com>
8204
8205 * dwarf2/read.c (struct line_header) <file_full_name,
8206 file_file_name>: Declare methods.
8207 (dw2_get_file_names_reader): Update.
8208 (file_file_name): Now a method.
8209 (file_full_name): Likewise.
8210 (macro_start_file): Update.
8211
8212 2020-02-08 Tom Tromey <tom@tromey.com>
8213
8214 * dwarf2/read.c (dwarf_always_disassemble)
8215 (show_dwarf_always_disassemble): Move to loc.c.
8216 (_initialize_dwarf2_read): Move "always-disassemble" registration
8217 to loc.c.
8218 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8219 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8220 static.
8221 (show_dwarf_always_disassemble): Move from read.c.
8222 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8223
8224 2020-02-08 Tom Tromey <tom@tromey.com>
8225
8226 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8227 (create_quick_file_names_table): Return htab_up.
8228 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8229 Update.
8230 * dwarf2/read.h (struct dwarf2_per_objfile)
8231 <quick_file_names_table>: Now htab_up.
8232
8233 2020-02-08 Tom Tromey <tom@tromey.com>
8234
8235 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8236
8237 2020-02-08 Tom Tromey <tom@tromey.com>
8238
8239 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8240 Rewrite.
8241 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8242 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8243 (abbrev_table::abbrev_table): No longer inline.
8244 (ABBREV_HASH_SIZE): Remove.
8245 (abbrev_table::m_abbrevs): Now an htab_up.
8246
8247 2020-02-08 Tom Tromey <tom@tromey.com>
8248
8249 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8250 (cutu_reader): Update.
8251 (build_type_psymtabs_1): Update.
8252 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8253 (abbrev_table::alloc_abbrev): Update.
8254 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8255 (abbrev_table::read): New static method, renamed from
8256 abbrev_table_read_table.
8257 (abbrev_table::alloc_abbrev)
8258 (abbrev_table::add_abbrev): Now private.
8259 (abbrev_table::abbrev_table): Now private.
8260 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8261
8262 2020-02-08 Tom Tromey <tom@tromey.com>
8263
8264 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8265 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8266 htab_up.
8267
8268 2020-02-08 Tom Tromey <tom@tromey.com>
8269
8270 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8271 htab_up.
8272 (lookup_dwo_unit_in_dwp): Update.
8273 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8274 on obstack.
8275
8276 2020-02-08 Tom Tromey <tom@tromey.com>
8277
8278 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8279 obstack.
8280
8281 2020-02-08 Tom Tromey <tom@tromey.com>
8282
8283 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8284 line_header_hash.
8285 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8286 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8287 Change type to htab_up.
8288
8289 2020-02-08 Tom Tromey <tom@tromey.com>
8290
8291 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8292 htab_up. Don't allocate on obstack.
8293 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8294 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8295 Change type to htab_up.
8296
8297 2020-02-08 Tom Tromey <tom@tromey.com>
8298
8299 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8300 Change type to htab_up.
8301 * dwarf2/read.c (create_signatured_type_table_from_index)
8302 (create_signatured_type_table_from_debug_names)
8303 (create_all_type_units, add_type_unit)
8304 (lookup_dwo_signatured_type, lookup_signatured_type)
8305 (process_skeletonless_type_unit): Update.
8306 (create_debug_type_hash_table, create_debug_types_hash_table):
8307 Change type of types_htab.
8308 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8309 htab_up. Don't allocate on obstack.
8310 (create_cus_hash_table): Change type of cus_htab parameter.
8311 (struct dwo_file) <cus, tus>: Now htab_up.
8312 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8313 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8314 (queue_and_load_all_dwo_tus): Update.
8315 * dwarf2/index-write.c (write_gdbindex): Update.
8316 (write_debug_names): Update.
8317
8318 2020-02-08 Tom Tromey <tom@tromey.com>
8319
8320 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8321 dwarf2/read.c. Remove "next" member. Add constructor ntad
8322 destructor.
8323 (struct dwarf2_per_objfile) <queue>: New member.
8324 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8325 dwarf2/read.h.
8326 (dwarf2_queue, dwarf2_queue_tail): Remove.
8327 (class dwarf2_queue_guard): Add parameter to constructor. Use
8328 DISABLE_COPY_AND_ASSIGN.
8329 <m_per_objfile>: New member.
8330 <~dwarf2_queue_guard>: Rewrite.
8331 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8332 Update.
8333 (~dwarf2_queue_item): New.
8334
8335 2020-02-08 Tom Tromey <tom@tromey.com>
8336
8337 * dwarf2/read.c (struct die_info) <has_children>: New member.
8338 (dw2_get_file_names_reader): Remove has_children.
8339 (dw2_get_file_names): Update.
8340 (read_cutu_die_from_dwo): Remove has_children.
8341 (cutu_reader::init_tu_and_read_dwo_dies)
8342 (cutu_reader::cutu_reader): Update.
8343 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8344 Remove has_children.
8345 (build_type_psymtabs_1, process_skeletonless_type_unit)
8346 (load_partial_comp_unit, load_full_comp_unit): Update.
8347 (create_dwo_cu_reader): Remove has_children.
8348 (create_cus_hash_table, read_die_and_children): Update.
8349 (read_full_die_1,read_full_die): Remove has_children.
8350 (read_signatured_type): Update.
8351 (class cutu_reader) <has_children>: Remove.
8352
8353 2020-02-08 Tom Tromey <tom@tromey.com>
8354
8355 * dwarf2/expr.c: Rename from dwarf2expr.c.
8356 * dwarf2/expr.h: Rename from dwarf2expr.h.
8357 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8358 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8359 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8360 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8361 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8362 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8363 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8364 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8365 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8366 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8367 * dwarf2/loc.c: Rename from dwarf2loc.c.
8368 * dwarf2/loc.h: Rename from dwarf2loc.h.
8369 * dwarf2/read.c: Rename from dwarf2read.c.
8370 * dwarf2/read.h: Rename from dwarf2read.h.
8371 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8372 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8373 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8374 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8375 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8376 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8377 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8378 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8379 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8380 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8381 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8382 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8383 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8384 Update.
8385 * Makefile.in (COMMON_SFILES): Update.
8386 (HFILES_NO_SRCDIR): Update.
8387
8388 2020-02-08 Tom Tromey <tom@tromey.com>
8389
8390 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8391 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8392
8393 2020-02-08 Tom Tromey <tom@tromey.com>
8394
8395 * dwarf2read.h (struct die_info): Don't declare.
8396
8397 2020-02-08 Tom Tromey <tom@tromey.com>
8398
8399 * dwarf2read.h (die_info_ptr): Remove typedef.
8400
8401 2020-02-08 Tom Tromey <tom@tromey.com>
8402
8403 * dwarf2read.c (read_call_site_scope)
8404 (handle_data_member_location, dwarf2_add_member_fn)
8405 (mark_common_block_symbol_computed, read_common_block)
8406 (attr_to_dynamic_prop, partial_die_info::read)
8407 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8408 (dwarf2_symbol_mark_computed, set_die_type): Update.
8409 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8410 method.
8411 (attr_form_is_block): Don't declare.
8412 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8413
8414 2020-02-08 Tom Tromey <tom@tromey.com>
8415
8416 * dwarf2read.c (dwarf2_find_base_address, )
8417 (read_call_site_scope, rust_containing_type)
8418 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8419 (handle_data_member_location, dwarf2_add_member_fn)
8420 (get_alignment, read_structure_type, process_structure_scope)
8421 (mark_common_block_symbol_computed, read_common_block)
8422 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8423 (partial_die_info::read, read_attribute_value, new_symbol)
8424 (lookup_die_type, dwarf2_get_ref_die_offset)
8425 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8426 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8427 (dwarf2_symbol_mark_computed): Update.
8428 * dwarf2/attribute.h (struct attribute) <value_as_address,
8429 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8430 methods.
8431 (value_as_address, attr_form_is_section_offset)
8432 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8433 * dwarf2/attribute.c (attribute::value_as_address)
8434 (attribute::form_is_section_offset, attribute::form_is_constant)
8435 (attribute::form_is_ref): Now methods.
8436
8437 2020-02-08 Tom Tromey <tom@tromey.com>
8438
8439 * dwarf2read.c (struct attribute, DW_STRING)
8440 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8441 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8442 (attr_form_is_block, attr_form_is_section_offset)
8443 (attr_form_is_constant, attr_form_is_ref): Move.
8444 * dwarf2/attribute.h: New file.
8445 * dwarf2/attribute.c: New file, from dwarf2read.c.
8446 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8447
8448 2020-02-08 Tom Tromey <tom@tromey.com>
8449
8450 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8451 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8452 Move.
8453 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8454 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8455 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8456 abbrev.c.
8457 * dwarf2/abbrev.h: New file.
8458 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8459 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8460
8461 2020-02-08 Tom Tromey <tom@tromey.com>
8462
8463 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8464 (dwarf2_section_size, dwarf2_get_section_info)
8465 (create_signatured_type_table_from_debug_names)
8466 (create_addrmap_from_aranges, read_debug_names_from_section)
8467 (get_gdb_index_contents_from_section, read_comp_unit_head)
8468 (error_check_comp_unit_head, read_abbrev_offset)
8469 (create_debug_type_hash_table, init_cu_die_reader)
8470 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8471 (read_comp_units_from_section, create_cus_hash_table)
8472 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8473 (create_dwp_v2_section, dwarf2_rnglists_process)
8474 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8475 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8476 (read_indirect_string_from_dwz, read_addr_index_1)
8477 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8478 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8479 (fill_in_loclist_baton): Update.
8480 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8481 get_containing_section, get_bfd_owner, get_bfd_section,
8482 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8483 (dwarf2_read_section, get_section_name, get_section_file_name)
8484 (get_containing_section, get_section_bfd_owner)
8485 (get_section_bfd_section, get_section_name, get_section_file_name)
8486 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8487 declare.
8488 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8489 (dwarf2_section_info::get_bfd_owner)
8490 (dwarf2_section_info::get_bfd_section)
8491 (dwarf2_section_info::get_name)
8492 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8493 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8494 (dwarf2_section_info::read): Now methods.
8495 * dwarf-index-write.c (class debug_names): Update.
8496
8497 2020-02-08 Tom Tromey <tom@tromey.com>
8498
8499 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8500 Move to dwarf2/section.h.
8501 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8502 (get_section_bfd_section, get_section_name)
8503 (get_section_file_name, get_section_id, get_section_flags)
8504 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8505 dwarf2/section.c.
8506 * dwarf2/section.h: New file.
8507 * dwarf2/section.c: New file, from dwarf2read.c.
8508 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8509
8510 2020-02-08 Tom Tromey <tom@tromey.com>
8511
8512 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8513 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8514 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8515 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8516 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8517 * dwarf2/leb.h: New file, from dwarf2read.c.
8518 * dwarf2/leb.c: New file, from dwarf2read.c.
8519 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8520 Remove.
8521 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8522 (COMMON_SFILES): Add dwarf2/leb.c.
8523
8524 2020-02-08 Joel Brobecker <brobecker@adacore.com>
8525
8526 GDB 9.1 released.
8527
8528 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8529
8530 PR gdb/25190:
8531 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8532 * gdb/remote.c (remote_console_output): Update.
8533 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8534 (ui_file_puts): ...this.
8535 * gdb/ui-file.h (ui_file_puts): Add declaration.
8536 * gdb/utils.c (emit_style_escape): Update.
8537 (flush_wrap_buffer): Update.
8538 (fputs_maybe_filtered): Update.
8539 (fputs_unfiltered): Add function.
8540
8541 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8542
8543 * gdb/event-loop.c (gdb_wait_for_event): Update.
8544 * gdb/printcmd.c (printf_command): Update.
8545 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8546 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8547 (gdb_os_flush_stderr): Update.
8548 * gdb/remote.c (remote_console_output): Update.
8549 * gdb/ui-file.c (gdb_flush): Rename to...
8550 (ui_file_flush): ...this.
8551 (stderr_file::write): Update.
8552 (stderr_file::puts): Update.
8553 * gdb/ui-file.h (gdb_flush): Rename to...
8554 (ui_file_flush): ...this.
8555 * gdb/utils.c (gdb_flush): Add function.
8556 * gdb/utils.h (gdb_flush): Add declaration.
8557
8558 2020-02-07 Tom Tromey <tromey@adacore.com>
8559
8560 PR breakpoints/24915:
8561 * source.c (find_and_open_source): Do not check basenames_may_differ.
8562
8563 2020-02-07 Tom Tromey <tom@tromey.com>
8564
8565 * README: Update gdbserver documentation.
8566 * gdbserver: Move to top level.
8567 * configure.tgt (build_gdbserver): Remove.
8568 * configure.ac: Remove --enable-gdbserver.
8569 * configure: Rebuild.
8570 * Makefile.in (distclean): Don't mention gdbserver.
8571
8572 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
8573
8574 * source-cache.c (source_cache::ensure): Surround
8575 get_plain_source_lines with a try/catch.
8576 (source_cache::get_line_charpos): Get rid of try/catch
8577 and only check for the return value of "ensure".
8578 * tui/tui-source.c (tui_source_window::set_contents):
8579 Simplify "nlines" calculation.
8580
8581 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
8582
8583 * MAINTAINERS (Write After Approval): Add myself.
8584
8585 2020-02-05 Christian Biesinger <cbiesinger@google.com>
8586
8587 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8588 function call.
8589
8590 2020-02-05 Christian Biesinger <cbiesinger@google.com>
8591
8592 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8593
8594 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
8595
8596 * nat/riscv-linux-tdesc.h: New file.
8597 * nat/riscv-linux-tdesc.c: New file, taking code from...
8598 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8599 ... here.
8600 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8601 NATDEPFILES.
8602
8603 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8604
8605 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8606 we don't set the fake simulator ptid to the null_ptid.
8607
8608 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
8609
8610 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8611 * gdbthread.h (class thread_info) <resumed>: Likewise.
8612 * infrun.c (resume_1): Likewise.
8613 (proceed): Likewise.
8614 (infrun_thread_stop_requested): Likewise.
8615 (stop_all_threads): Likewise.
8616 (handle_inferior_event): Likewise.
8617 (restart_threads): Likewise.
8618 (finish_step_over): Likewise.
8619 (keep_going_stepped_thread): Likewise.
8620 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8621 (linux_handle_extended_wait): Likewise.
8622 * record-btrace.c (get_thread_current_frame_id): Likewise.
8623 * record-full.c (record_full_wait_1): Likewise.
8624 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8625 * target.c (target_resume): Likewise.
8626 * thread.c (set_running_thread): Likewise.
8627
8628 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8629
8630 * f-valprint.c (f77_print_array_1): Changed datatype of index
8631 variable to LONGEST from int to enable it to contain bound
8632 values correctly.
8633
8634 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
8635
8636 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8637 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8638 offsets according to FLEN determined.
8639 (riscv_linux_nat_target::read_description): Determine FLEN
8640 dynamically.
8641 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8642 according to FLEN determined.
8643 (riscv_linux_nat_target::store_registers): Likewise.
8644
8645 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8646
8647 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8648 when reg->group is empty and reggroup is not.
8649
8650 2020-01-31 Tom Tromey <tromey@adacore.com>
8651
8652 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8653 Call beneath target's mourn_inferior after unpushing.
8654
8655 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8656
8657 PR tui/9765
8658 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8659 have enough lines to fill the screen, still return the lowest
8660 address we found.
8661
8662 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8663
8664 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8665 '-', '<', and '>' commands.
8666
8667 2020-01-29 Pedro Alves <palves@redhat.com>
8668 Sergio Durigan Junior <sergiodj@redhat.com>
8669
8670 * infcmd.c (construct_inferior_arguments): Assert that
8671 'argc' is greater than 0.
8672
8673 2020-01-29 Luis Machado <luis.machado@linaro.org>
8674
8675 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8676 (BRK_INSN_MASK): Define to 0xd4200000.
8677 (aarch64_program_breakpoint_here_p): New function.
8678 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8679 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8680 breakpoint.c.
8681 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8682 breakpoint.h
8683 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8684 call gdbarch_program_breakpoint_here_p.
8685 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8686 default_program_breakpoint_here_p, changed return type to bool and
8687 simplified.
8688 * breakpoint.h (program_breakpoint_here): Moved prototype to
8689 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8690 return type to bool.
8691 * gdbarch.c: Regenerate.
8692 * gdbarch.h: Regenerate.
8693 * gdbarch.sh (program_breakpoint_here_p): New method.
8694 * infrun.c (handle_signal_stop): Call
8695 gdbarch_program_breakpoint_here_p.
8696
8697 2020-01-26 Tom Tromey <tom@tromey.com>
8698
8699 * ctfread.c (struct ctf_fp_info): Reindent.
8700 (_initialize_ctfread): Remove.
8701
8702 2020-01-26 Tom Tromey <tom@tromey.com>
8703
8704 * psymtab.c (partial_map_expand_apply)
8705 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8706 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8707 (psym_print_stats, psym_expand_symtabs_for_function)
8708 (psym_map_symbol_filenames, psym_map_matching_symbols)
8709 (psym_expand_symtabs_matching)
8710 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8711 (maintenance_check_psymtabs): Use new methods.
8712 * psympriv.h (struct partial_symtab) <readin_p,
8713 get_compunit_symtab>: New methods.
8714 <readin, compunit_symtab>: Remove members.
8715 (struct standard_psymtab): New.
8716 (struct legacy_psymtab): Derive from standard_psymtab.
8717 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8718 standard_psymtab.
8719 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8720
8721 2020-01-26 Tom Tromey <tom@tromey.com>
8722
8723 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8724 read_dependencies. Add assert.
8725 * psymtab.c (partial_symtab::read_dependencies): New method.
8726 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8727 method.
8728 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8729 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8730 read_dependencies.
8731 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8732 Add assert.
8733
8734 2020-01-26 Tom Tromey <tom@tromey.com>
8735
8736 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8737 Call expand_psymtab.
8738 (xcoff_read_symtab): Call expand_psymtab.
8739 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8740 legacy_expand_psymtab.
8741 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8742 method.
8743 (struct legacy_psymtab) <expand_psymtab>: Implement.
8744 <legacy_expand_psymtab>: New member.
8745 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8746 (parse_partial_symbols): Set legacy_expand_psymtab.
8747 (psymtab_to_symtab_1): Change argument order. Call
8748 expand_psymtab.
8749 (new_psymtab): Set legacy_expand_psymtab.
8750 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8751 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8752 expand_psymtab.
8753 (dwarf2_psymtab::expand_psymtab): Rename from
8754 psymtab_to_symtab_1. Call expand_psymtab.
8755 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8756 (dbx_end_psymtab): Likewise.
8757 (dbx_psymtab_to_symtab_1): Change argument order. Call
8758 expand_psymtab.
8759 (dbx_read_symtab): Call expand_psymtab.
8760 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8761 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8762 (ctf_psymtab::read_symtab): Call expand_psymtab.
8763
8764 2020-01-26 Tom Tromey <tom@tromey.com>
8765
8766 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8767 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8768 messages.
8769 * mdebugread.c (mdebug_read_symtab): Remove prints.
8770 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8771 assert.
8772 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8773
8774 2020-01-26 Tom Tromey <tom@tromey.com>
8775
8776 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8777 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8778 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8779 legacy_symtab.
8780 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8781 * psymtab.c (psymtab_to_symtab): Call method.
8782 (dump_psymtab): Update.
8783 * psympriv.h (struct partial_symtab): Add virtual destructor.
8784 <read_symtab>: New method.
8785 (struct legacy_symtab): New.
8786 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8787 (struct pst_map) <pst>: Now a legacy_psymtab.
8788 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8789 (new_psymtab): Use legacy_psymtab.
8790 * dwarf2read.h (struct dwarf2_psymtab): New.
8791 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8792 * dwarf2read.c (dwarf2_create_include_psymtab)
8793 (dwarf2_build_include_psymtabs, create_type_unit_group)
8794 (create_partial_symtab, process_psymtab_comp_unit_reader)
8795 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8796 (set_partial_user): Use dwarf2_psymtab.
8797 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8798 (psymtab_to_symtab_1, process_full_comp_unit)
8799 (process_full_type_unit, dwarf2_ranges_read)
8800 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8801 (dwarf_decode_lines): Use dwarf2_psymtab.
8802 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8803 (add_address_entry_worker, write_one_signatured_type)
8804 (recursively_count_psymbols, recursively_write_psymbols)
8805 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8806 (write_debug_names): Likewise.
8807 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8808 <pst>: Now a legacy_psymtab.
8809 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8810 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8811 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8812 * ctfread.c (struct ctf_psymtab): New.
8813 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8814 ctf_psymtab.
8815 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8816 (create_partial_symtab): Return a ctf_psymtab.
8817 (scan_partial_symbols): Update.
8818
8819 2020-01-26 Tom Tromey <tom@tromey.com>
8820
8821 * xcoffread.c (xcoff_start_psymtab): Use new.
8822 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8823 renamed from start_psymtab_common.
8824 * psympriv.h (struct partial_symtab): Add new constructor.
8825 (start_psymtab_common): Don't declare.
8826 * mdebugread.c (parse_partial_symbols): Use new.
8827 * dwarf2read.c (create_partial_symtab): Use new.
8828 * dbxread.c (start_psymtab): Use new.
8829 * ctfread.c (create_partial_symtab): Use new.
8830
8831 2020-01-26 Tom Tromey <tom@tromey.com>
8832
8833 * xcoffread.c (xcoff_end_psymtab): Use new.
8834 * psymtab.c (start_psymtab_common): Use new.
8835 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8836 Update.
8837 * psympriv.h (struct partial_symtab): Add parameters to
8838 constructor. Don't inline.
8839 (allocate_psymtab): Don't declare.
8840 * mdebugread.c (new_psymtab): Use new.
8841 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8842 * dbxread.c (dbx_end_psymtab): Use new.
8843
8844 2020-01-26 Tom Tromey <tom@tromey.com>
8845
8846 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8847 allocate_psymtab. Update documentation.
8848 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8849 allocate_psymtab. Do not use new.
8850 (allocate_psymtab): Use new. Update.
8851
8852 2020-01-26 Tom Tromey <tom@tromey.com>
8853
8854 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8855 * psymtab.c (psym_print_stats): Update.
8856 * psympriv.h (struct partial_symtab) <readin,
8857 psymtabs_addrmap_supported, anonymous>: Now bool.
8858 * mdebugread.c (psymtab_to_symtab_1): Update.
8859 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
8860 (build_type_psymtabs_reader, psymtab_to_symtab_1)
8861 (process_full_comp_unit, process_full_type_unit): Update.
8862 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8863 * ctfread.c (psymtab_to_symtab): Update.
8864
8865 2020-01-26 Tom Tromey <tom@tromey.com>
8866
8867 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
8868 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
8869 * psymtab.c (psymtab_storage): Delete psymtabs.
8870 (psymtab_storage::allocate_psymtab): Use new.
8871 (psymtab_storage::discard_psymtab): Use delete.
8872 * psympriv.h (struct partial_symtab): Add constructor and
8873 initializers.
8874
8875 2020-01-26 Tom Tromey <tom@tromey.com>
8876
8877 * machoread.c: Do not include psympriv.h.
8878
8879 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8880
8881 * NEWS: Mention the new option and the set/show commands.
8882
8883 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8884
8885 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
8886 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
8887 (validate_exec_file): New variables, enums, functions.
8888 (exec_file_locate_attach, print_section_info): Style the filenames.
8889 (_initialize_exec): Install show_exec_file_mismatch_command and
8890 set_exec_file_mismatch_command.
8891 * gdbcore.h (validate_exec_file): Declare.
8892 * infcmd.c (attach_command): Call validate_exec_file.
8893 * remote.c ( remote_target::remote_add_inferior): Likewise.
8894
8895 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8896
8897 * frame.c (find_frame_sal): Move call to get_next_frame into more
8898 inner scope.
8899 * inline-frame.c (inilne_state) <inline_state>: Update argument
8900 types.
8901 (inilne_state) <skipped_symbol>: Rename to...
8902 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
8903 (skip_inline_frames): Build vector of skipped symbols and use this
8904 to reate the inline_state.
8905 (inline_skipped_symbol): Add a comment and some assertions, fetch
8906 skipped symbol from the list.
8907
8908 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8909
8910 * buildsym.c (lte_is_less_than): Delete.
8911 (buildsym_compunit::end_symtab_with_blockvector): Create local
8912 lambda function to sort line table entries, and use
8913 std::stable_sort instead of std::sort.
8914 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
8915 markers when looking for a previous line.
8916
8917 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8918
8919 * dwarf2read.c (lnp_state_machine::record_line): Include
8920 end_sequence parameter in debug print out. Record the line if we
8921 are at an end_sequence marker even if it's not the start of a
8922 statement.
8923 * symmisc.c (maintenance_print_one_line_table): Print end of
8924 sequence markers with 'END' not '0'.
8925
8926 2020-01-24 Pedro Alves <palves@redhat.com>
8927
8928 PR gdb/25410
8929 * thread.c (scoped_restore_current_thread::restore): Use
8930 switch_to_inferior_no_thread.
8931 * exec.c: Include "progspace-and-thread.h".
8932 (add_target_sections, remove_target_sections):
8933 scoped_restore_current_pspace_and_thread instead of
8934 scoped_restore_current_thread.
8935 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
8936 and aspace to the inferior before calling clone_program_space.
8937 Remove stale comment.
8938
8939 2020-01-24 Christian Biesinger <cbiesinger@google.com>
8940
8941 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
8942 (arm_netbsd_nat_target::fetch_registers): ...this.
8943 (arm_nbsd_nat_target::store_registers): Rename to...
8944 (arm_netbsd_nat_target::store_registers): ...this.
8945
8946 2020-01-24 Christian Biesinger <cbiesinger@google.com>
8947
8948 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8949 register_t.
8950
8951 2020-01-24 Christian Biesinger <cbiesinger@google.com>
8952
8953 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
8954 Update comment.
8955 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
8956 Likewise.
8957 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
8958 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
8959 the correct replacement (iterate_over_regset_sections).
8960 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
8961 Update comment.
8962
8963 2020-01-24 Graham Markall <graham.markall@embecosm.com>
8964
8965 PR gdb/23718
8966 * gdb/python/python.c (execute_gdb_command): Call
8967 async_enable_stdin in catch block.
8968
8969 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8970
8971 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
8972 SWITCH_THRU_ALL_UIS.
8973
8974 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8975
8976 PR tui/9765
8977 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
8978 comment, add extra parameter, and update to store previous symbol
8979 when appropriate.
8980 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
8981 add extra parameter.
8982 * tui/tui-disasm.c (tui_disassemble): Update header comment,
8983 remove unneeded parameter, add try/catch around gdb_print_insn,
8984 rewrite to add items to asm_lines vector.
8985 (tui_find_backward_disassembly_start_address): New function.
8986 (tui_find_disassembly_address): Updated throughout.
8987 (tui_disasm_window::set_contents): Update for changes to
8988 tui_disassemble.
8989 (tui_disasm_window::do_scroll_vertical): No need to adjust the
8990 number of lines to scroll.
8991
8992 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
8993
8994 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
8995 (SECT_OFF_DATA): Likewise.
8996 (SECT_OFF_RODATA): Likewise.
8997 (SECT_OFF_TEXT): Likewise.
8998 (SECT_OFF_BSS): Likewise.
8999 (struct objfile) <text_section_offset, data_section_offset>: New
9000 methods.
9001 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9002 objfile::text_section_offset.
9003 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9004 * coffread.c (coff_symtab_read): Likewise.
9005 (enter_linenos): Likewise.
9006 (process_coff_symbol): Likewise.
9007 * ctfread.c (get_objfile_text_range): Likewise.
9008 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9009 Use objfile::data_section_offset.
9010 * dwarf2-frame.c (execute_cfa_program): Use
9011 objfile::text_section_offset.
9012 (dwarf2_frame_find_fde): Likewise.
9013 * dwarf2read.c (create_addrmap_from_index): Likewise.
9014 (create_addrmap_from_aranges): Likewise.
9015 (dw2_find_pc_sect_compunit_symtab): Likewise.
9016 (process_psymtab_comp_unit_reader): Likewise.
9017 (add_partial_symbol): Likewise.
9018 (add_partial_subprogram): Likewise.
9019 (process_full_comp_unit): Likewise.
9020 (read_file_scope): Likewise.
9021 (read_func_scope): Likewise.
9022 (read_lexical_block_scope): Likewise.
9023 (read_call_site_scope): Likewise.
9024 (dwarf2_rnglists_process): Likewise.
9025 (dwarf2_ranges_process): Likewise.
9026 (dwarf2_ranges_read): Likewise.
9027 (dwarf_decode_lines_1): Likewise.
9028 (new_symbol): Likewise.
9029 (dwarf2_fetch_die_loc_sect_off): Likewise.
9030 (dwarf2_per_cu_text_offset): Likewise.
9031 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9032 * hppa-tdep.c (read_unwind_info): Likewise.
9033 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9034 * psympriv.h (struct partial_symtab): Likewise.
9035 * psymtab.c (find_pc_sect_psymtab): Likewise.
9036 * solib-svr4.c (enable_break): Likewise.
9037 * stap-probe.c (relocate_address): Use
9038 objfile::data_section_offset.
9039 * xcoffread.c (enter_line_range): Use
9040 objfile::text_section_offset.
9041 (read_xcoff_symtab): Likewise.
9042
9043 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9044
9045 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9046 declaration to narrower scopes.
9047
9048 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9049
9050 * darwin-nat.h (struct darwin_exception_msg, enum
9051 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9052 Move up.
9053 (class darwin_nat_target) <wait_1, check_new_threads,
9054 decode_exception_message, decode_message, stop_inferior,
9055 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9056 * darwin-nat.c (darwin_check_new_threads): Rename to...
9057 (darwin_nat_target::check_new_threads): ... this.
9058 (darwin_suspend_inferior_it): Remove.
9059 (darwin_decode_exception_message): Rename to...
9060 (darwin_nat_target::decode_exception_message): ... this.
9061 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9062 (darwin_decode_message): Rename to...
9063 (darwin_nat_target::decode_message): ... this.
9064 (cancel_breakpoint): Rename to...
9065 (darwin_nat_target::cancel_breakpoint): ... this.
9066 (darwin_wait): Rename to...
9067 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9068 instead of iterate_over_inferiors.
9069 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9070 (darwin_stop_inferior): Rename to...
9071 (darwin_nat_target::stop_inferior): ... this.
9072 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9073 (darwin_init_thread_list): Rename to...
9074 (darwin_nat_target::init_thread_list): ... this.
9075 (darwin_ptrace_him): Rename to...
9076 (darwin_nat_target::ptrace_him): ... this.
9077 (darwin_nat_target::create_inferior): Pass lambda function to
9078 fork_inferior.
9079 (darwin_nat_target::detach): Call stop_inferior instead of
9080 darwin_stop_inferior.
9081 * fork-inferior.h (fork_inferior): Change init_trace_fun
9082 parameter to gdb::function_view.
9083 * fork-inferior.c (fork_inferior): Likewise.
9084
9085 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
9086
9087 * i386-cygwin-tdep.c (core_process_module_section): Update.
9088 * windows-nat.c (struct lm_info_windows): Add text_offset.
9089 (windows_xfer_shared_libraries): Update.
9090 * windows-tdep.c (windows_xfer_shared_library):
9091 Add text_offset_cached argument.
9092 * windows-tdep.h (windows_xfer_shared_library): Update.
9093
9094 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9095
9096 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9097
9098 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9099
9100 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9101 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9102 replace with range-based for.
9103 (gdbsim_interrupt_inferior): Remove.
9104 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9105 with a range-based for. Inline code from
9106 gdbsim_interrupt_inferior.
9107
9108 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9109
9110 * infrun.c (proceed): Fix indentation.
9111
9112 2020-01-21 Tom Tromey <tromey@adacore.com>
9113
9114 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9115 * python/python.c (python_extension_ops): Update.
9116 (gdbpy_colorize): New function.
9117 * python/lib/gdb/__init__.py (colorize): New function.
9118 * extension.h (ext_lang_colorize): Declare.
9119 * extension.c (ext_lang_colorize): New function.
9120 * extension-priv.h (struct extension_language_ops) <colorize>: New
9121 member.
9122 * cli/cli-style.c (_initialize_cli_style): Update help text.
9123
9124 2020-01-21 Luis Machado <luis.machado@linaro.org>
9125
9126 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9127 <cond>: Change type to bool.
9128 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9129 (aarch64_displaced_step_cb): Likewise.
9130 (aarch64_displaced_step_tb): Likewise.
9131
9132 2020-01-21 Luis Machado <luis.machado@linaro.org>
9133
9134 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9135 output.
9136
9137 2020-01-21 Luis Machado <luis.machado@linaro.org>
9138
9139 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9140 <pc_adjust>: Adjust the documentation.
9141 (aarch64_displaced_step_fixup): Check if PC really moved before
9142 adjusting it.
9143
9144 2020-01-19 Tom Tromey <tom@tromey.com>
9145
9146 * disasm.c (~gdb_disassembler): New destructor.
9147 (gdb_buffered_insn_length): Call disassemble_free_target.
9148 * disasm.h (class gdb_disassembler): Declare destructor. Use
9149 DISABLE_COPY_AND_ASSIGN.
9150
9151 2020-01-19 Tom Tromey <tom@tromey.com>
9152
9153 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9154 (die_reader_func_ftype): Remove.
9155 (cutu_reader): New class.
9156 (dw2_get_file_names_reader): Remove "data" parameter.
9157 (dw2_get_file_names): Use cutu_reader.
9158 (create_debug_type_hash_table): Update.
9159 (read_cutu_die_from_dwo): Update comment.
9160 (lookup_dwo_unit): Add dwo_name parameter.
9161 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9162 die_reader_func_ftype and data parameters.
9163 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9164 Remove die_reader_func_ftype and data parameters.
9165 (~cutu_reader): New; from init_cutu_and_read_dies.
9166 (cutu_reader::cutu_reader): Rename from
9167 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9168 and data parameters.
9169 (init_cutu_and_read_dies_simple): Remove.
9170 (struct process_psymtab_comp_unit_data): Remove.
9171 (process_psymtab_comp_unit_reader): Remove data parameter; add
9172 want_partial_unit and pretend_language parameters.
9173 (process_psymtab_comp_unit): Use cutu_reader.
9174 (build_type_psymtabs_reader): Remove data parameter.
9175 (build_type_psymtabs_1): Use cutu_reader.
9176 (process_skeletonless_type_unit): Likewise.
9177 (load_partial_comp_unit_reader): Remove.
9178 (load_partial_comp_unit): Use cutu_reader.
9179 (load_full_comp_unit_reader): Remove.
9180 (load_full_comp_unit): Use cutu_reader.
9181 (struct create_dwo_cu_data): Remove.
9182 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9183 dwo_unit parameters.
9184 (create_cus_hash_table): Use cutu_reader.
9185 (struct dwarf2_read_addr_index_data): Remove.
9186 (dwarf2_read_addr_index_reader): Remove.
9187 (dwarf2_read_addr_index): Use cutu_reader.
9188 (read_signatured_type_reader): Remove.
9189 (read_signatured_type): Use cutu_reader.
9190
9191 2020-01-19 Tom Tromey <tom@tromey.com>
9192
9193 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9194 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9195 (tui_wrefresh): Declare.
9196 * tui/tui-wingeneral.c (suppress_output): New global.
9197 (tui_suppress_output, ~tui_suppress_output): New constructor and
9198 destructor.
9199 (tui_wrefresh): New function.
9200 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9201 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9202 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9203 method.
9204 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9205 tui_wrefresh.
9206 (tui_data_window::no_refresh): New method.
9207 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9208 (tui_reg_command): Use tui_suppress_output
9209 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9210 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9211 method.
9212 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9213
9214 2020-01-19 Tom Tromey <tom@tromey.com>
9215
9216 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9217 Handle case where symtab is null.
9218
9219 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9220
9221 * linux-fork.c (one_fork_p): Simplify.
9222
9223 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9224
9225 * top.c (struct qt_args): Remove.
9226 (kill_or_detach): Change return type to void, replace `void *`
9227 parameter with a proper one.
9228 (print_inferior_quit_action): Likewise.
9229 (quit_confirm): Use range-based for loop to iterate over inferiors.
9230 (quit_force): Likewise.
9231
9232 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9233
9234 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9235 `void *` parameter with proper parameters.
9236 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9237 (print_one_inferior): Change return type to void, replace `void *`
9238 parameter with proper parameters.
9239 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9240 inferiors.
9241 (get_other_inferior): Remove.
9242 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9243 inferiors.
9244
9245 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9246
9247 * mi/mi-interp.c (report_initial_inferior): Remove.
9248 (mi_interp::init): Use range-based for to iterate over inferiors.
9249
9250 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9251
9252 * python/py-inferior.c (build_inferior_list): Remove.
9253 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9254
9255 2020-01-16 Christian Biesinger <cbiesinger@google.com>
9256
9257 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9258 (btrace_stitch_trace): Likewise.
9259 * charset.c (intermediate_encoding): Likewise (vaild).
9260 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9261 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9262 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9263
9264 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
9265
9266 * windows-tdep.c (windows_get_tlb_type):
9267 Add rtl_user_process_parameters type.
9268
9269 2020-01-16 Pedro Alves <palves@redhat.com>
9270 Norbert Lange <nolange79@gmail.com>
9271
9272 PR build/24805
9273 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9274 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9275 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9276 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9277 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9278 (ps_plog): Redeclare exported functions with default visibility.
9279
9280 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9281
9282 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9283 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9284
9285 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
9286
9287 * infcmd.c (post_create_inferior): Use get_thread_regcache
9288 instead of get_current_regcache.
9289
9290 2020-01-14 Tom Tromey <tom@tromey.com>
9291
9292 PR symtab/12535:
9293 * python/python.c (gdbpy_decode_line): Treat empty string the same
9294 as no argument.
9295
9296 2020-01-14 Tom Tromey <tom@tromey.com>
9297
9298 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9299
9300 2020-01-14 Tom Tromey <tom@tromey.com>
9301
9302 * nat/linux-btrace.c: Don't include <config.h>.
9303 * nat/linux-ptrace.c: Don't include <config.h>.
9304 * nat/x86-linux-dregs.c: Don't include <config.h>.
9305
9306 2020-01-14 Tom Tromey <tom@tromey.com>
9307
9308 * configure: Rebuild.
9309 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9310
9311 2020-01-14 Tom Tromey <tom@tromey.com>
9312
9313 * nat/x86-linux-dregs.c: Include configh.h.
9314 * nat/linux-ptrace.c: Include configh.h.
9315 * nat/linux-btrace.c: Include configh.h.
9316 * defs.h: Include config.h, bfd.h.
9317 * configure.ac: Don't source common.host.
9318 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9319 * configure: Rebuild.
9320 * acinclude.m4: Update path.
9321 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9322 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9323 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9324 (CLIBS): Add LIBSUPPORT.
9325 (CDEPS): Likewise.
9326 (COMMON_SFILES): Remove gdbsupport files.
9327 (HFILES_NO_SRCDIR): Likewise.
9328 (stamp-version): Update path to create-version.sh.
9329 (ALLDEPFILES): Remove gdbsupport files.
9330
9331 2020-01-14 Tom Tromey <tom@tromey.com>
9332
9333 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9334 USE_WIN32API when needed.
9335 * configure.ac (USE_WIN32API): Don't define.
9336 (WIN32LIBS): Use WIN32APILIBS.
9337 * configure: Rebuild.
9338
9339 2020-01-14 Tom Tromey <tom@tromey.com>
9340
9341 * configure: Rebuild.
9342 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9343
9344 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9345
9346 * skip.c (skip_function_command): Make skip w/o arguments use the
9347 name of the inlined function if pc is inside any inlined function.
9348
9349 2020-01-14 Luis Machado <luis.machado@linaro.org>
9350
9351 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9352 * infrun.c (resume_1): Likewise.
9353 (handle_inferior_event): Remove stale comment.
9354 * linux-nat.c (linux_nat_target::resume): Update comments.
9355 (save_stop_reason): Likewise.
9356 (linux_nat_filter_event): Likewise.
9357 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9358
9359 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9360
9361 * elfread.c (record_minimal_symbol): Set section index to 0 for
9362 non-allocatable sections.
9363
9364
9365 2020-01-13 Ali Tamur <tamur@google.com>
9366
9367 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9368 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9369 to gdb::optional. Update comments.
9370 (dwo_file): Update comments.
9371 (read_attribute): Update API to take an additional out parameter,
9372 need_reprocess. This is used to mark attributes that need other
9373 attributes (e.g. str_offsets_base) for correct computation which may not
9374 have been read yet.
9375 (read_attribute_reprocess): New function declaration.
9376 (read_addr_index): Likewise.
9377 (read_dwo_str_index): Likewise.
9378 (read_stub_str_index): Likewise.
9379 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9380 (lookup_addr_base): New function definition.
9381 (lookup_ranges_base): Likewise.
9382 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9383 lookup_ranges_base.
9384 (init_cutu_and_read_dies): Update comments.
9385 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9386 unit. This is used to inherit parent's str_offsets_base and addr_base.
9387 Update comments.
9388 (init_cutu_and_read_dies_simple): Reflect API changes.
9389 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9390 (create_cus_hash_table): Change API to take parent compile unit.
9391 Reflect API changes.
9392 (open_and_init_dwo_file): Reflect API changes.
9393 (dwarf2_get_pc_bounds): Update comments.
9394 (dwarf2_record_block_ranges): Likewise.
9395 (read_full_die_1): Change implementation to reprocess attributes that
9396 need str_offsets_base and addr_base.
9397 (partial_die_info::read): Likewise.
9398 (read_attribute_reprocess): New function definition.
9399 (read_attribute_value): Change API to take an additional out parameter,
9400 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9401 when a non-dwo compile unit has index based attributes.
9402 (read_attribute): Reflect API changes.
9403 (read_addr_index_1): Reflect API changes. Update comments.
9404 (dwarf2_read_addr_index_data): Reflect API changes.
9405 (dwarf2_read_addr_index): Likewise.
9406 (read_str_index): Change API and implementation. This becomes a helper
9407 to be used by the new string index related methods. Update error
9408 message and comments.
9409 (read_dwo_str_index): New function definition.
9410 (read_stub_str_index): Likewise.
9411 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9412 * symfile.h (dwarf2_debug_sections): Likewise.
9413 * xcoffread.c (dwarf2_debug_sections): Likewise.
9414
9415 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9416
9417 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9418 core_reg_sect type to gdb_byte *.
9419 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9420 * cris-tdep.c (fetch_core_registers): Likewise.
9421 * corelow.c (core_target::get_core_register_section): Change
9422 type of `contents` to gdb::byte_vector.
9423
9424 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9425
9426 * tui/tui-wingeneral.c (box_win): Position the title in the center
9427 of the border.
9428
9429 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9430
9431 * corelow.c (core_target::get_core_register_section): Use
9432 std::vector instead of alloca.
9433
9434 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9435
9436 * warning.m4: Add -Wmissing-declarations to build_warnings.
9437 * configure: Re-generate.
9438
9439 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9440
9441 * python/python.c (init__gdb_module): Add declaration.
9442
9443 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9444
9445 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9446 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9447 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9448 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9449 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9450 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9451 * ada-exp.y (_initialize_ada_exp): Add declaration.
9452 * ada-lang.c (_initialize_ada_language): Add declaration.
9453 * ada-tasks.c (_initialize_tasks): Add declaration.
9454 * agent.c (_initialize_agent): Add declaration.
9455 * aix-thread.c (_initialize_aix_thread): Add declaration.
9456 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9457 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9458 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9459 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9460 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9461 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9462 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9463 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9464 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9465 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9466 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9467 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9468 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9469 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9470 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9471 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9472 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9473 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9474 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9475 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9476 * annotate.c (_initialize_annotate): Add declaration.
9477 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9478 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9479 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9480 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9481 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9482 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9483 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9484 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9485 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9486 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9487 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9488 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9489 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9490 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9491 * auto-load.c (_initialize_auto_load): Add declaration.
9492 * auxv.c (_initialize_auxv): Add declaration.
9493 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9494 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9495 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9496 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9497 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9498 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9499 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9500 * breakpoint.c (_initialize_breakpoint): Add declaration.
9501 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9502 * btrace.c (_initialize_btrace): Add declaration.
9503 * charset.c (_initialize_charset): Add declaration.
9504 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9505 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9506 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9507 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9508 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9509 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9510 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9511 * coffread.c (_initialize_coffread): Add declaration.
9512 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9513 * compile/compile.c (_initialize_compile): Add declaration.
9514 * complaints.c (_initialize_complaints): Add declaration.
9515 * completer.c (_initialize_completer): Add declaration.
9516 * copying.c (_initialize_copying): Add declaration.
9517 * corefile.c (_initialize_core): Add declaration.
9518 * corelow.c (_initialize_corelow): Add declaration.
9519 * cp-abi.c (_initialize_cp_abi): Add declaration.
9520 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9521 * cp-support.c (_initialize_cp_support): Add declaration.
9522 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9523 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9524 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9525 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9526 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9527 * ctfread.c (_initialize_ctfread): Add declaration.
9528 * d-lang.c (_initialize_d_language): Add declaration.
9529 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9530 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9531 * dbxread.c (_initialize_dbxread): Add declaration.
9532 * dcache.c (_initialize_dcache): Add declaration.
9533 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9534 * disasm.c (_initialize_disasm): Add declaration.
9535 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9536 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9537 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9538 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9539 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9540 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9541 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9542 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9543 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9544 * elfread.c (_initialize_elfread): Add declaration.
9545 * exec.c (_initialize_exec): Add declaration.
9546 * extension.c (_initialize_extension): Add declaration.
9547 * f-lang.c (_initialize_f_language): Add declaration.
9548 * f-valprint.c (_initialize_f_valprint): Add declaration.
9549 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9550 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9551 * filesystem.c (_initialize_filesystem): Add declaration.
9552 * findcmd.c (_initialize_mem_search): Add declaration.
9553 * findvar.c (_initialize_findvar): Add declaration.
9554 * fork-child.c (_initialize_fork_child): Add declaration.
9555 * frame-base.c (_initialize_frame_base): Add declaration.
9556 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9557 * frame.c (_initialize_frame): Add declaration.
9558 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9559 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9560 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9561 * gcore.c (_initialize_gcore): Add declaration.
9562 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9563 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9564 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9565 * gdbarch.c (_initialize_gdbarch): Add declaration.
9566 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9567 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9568 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9569 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9570 * go-lang.c (_initialize_go_language): Add declaration.
9571 * go32-nat.c (_initialize_go32_nat): Add declaration.
9572 * guile/guile.c (_initialize_guile): Add declaration.
9573 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9574 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9575 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9576 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9577 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9578 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9579 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9580 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9581 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9582 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9583 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9584 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9585 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9586 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9587 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9588 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9589 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9590 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9591 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9592 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9593 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9594 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9595 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9596 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9597 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9598 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9599 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9600 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9601 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9602 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9603 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9604 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9605 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9606 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9607 * infcall.c (_initialize_infcall): Add declaration.
9608 * infcmd.c (_initialize_infcmd): Add declaration.
9609 * inflow.c (_initialize_inflow): Add declaration.
9610 * infrun.c (_initialize_infrun): Add declaration.
9611 * interps.c (_initialize_interpreter): Add declaration.
9612 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9613 * jit.c (_initialize_jit): Add declaration.
9614 * language.c (_initialize_language): Add declaration.
9615 * linux-fork.c (_initialize_linux_fork): Add declaration.
9616 * linux-nat.c (_initialize_linux_nat): Add declaration.
9617 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9618 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9619 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9620 * m2-lang.c (_initialize_m2_language): Add declaration.
9621 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9622 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9623 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9624 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9625 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9626 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9627 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9628 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9629 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9630 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9631 * machoread.c (_initialize_machoread): Add declaration.
9632 * macrocmd.c (_initialize_macrocmd): Add declaration.
9633 * macroscope.c (_initialize_macroscope): Add declaration.
9634 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9635 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9636 * maint.c (_initialize_maint_cmds): Add declaration.
9637 * mdebugread.c (_initialize_mdebugread): Add declaration.
9638 * memattr.c (_initialize_mem): Add declaration.
9639 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9640 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9641 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9642 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9643 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9644 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9645 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9646 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9647 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9648 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9649 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9650 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9651 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9652 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9653 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9654 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9655 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9656 * mipsread.c (_initialize_mipsread): Add declaration.
9657 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9658 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9659 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9660 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9661 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9662 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9663 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9664 * nto-procfs.c (_initialize_procfs): Add declaration.
9665 * objc-lang.c (_initialize_objc_language): Add declaration.
9666 * observable.c (_initialize_observer): Add declaration.
9667 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9668 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9669 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9670 * osabi.c (_initialize_gdb_osabi): Add declaration.
9671 * osdata.c (_initialize_osdata): Add declaration.
9672 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9673 * parse.c (_initialize_parse): Add declaration.
9674 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9675 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9676 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9677 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9678 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9679 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9680 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9681 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9682 * printcmd.c (_initialize_printcmd): Add declaration.
9683 * probe.c (_initialize_probe): Add declaration.
9684 * proc-api.c (_initialize_proc_api): Add declaration.
9685 * proc-events.c (_initialize_proc_events): Add declaration.
9686 * proc-service.c (_initialize_proc_service): Add declaration.
9687 * procfs.c (_initialize_procfs): Add declaration.
9688 * producer.c (_initialize_producer): Add declaration.
9689 * psymtab.c (_initialize_psymtab): Add declaration.
9690 * python/python.c (_initialize_python): Add declaration.
9691 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9692 * record-btrace.c (_initialize_record_btrace): Add declaration.
9693 * record-full.c (_initialize_record_full): Add declaration.
9694 * record.c (_initialize_record): Add declaration.
9695 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9696 * regcache.c (_initialize_regcache): Add declaration.
9697 * reggroups.c (_initialize_reggroup): Add declaration.
9698 * remote-notif.c (_initialize_notif): Add declaration.
9699 * remote-sim.c (_initialize_remote_sim): Add declaration.
9700 * remote.c (_initialize_remote): Add declaration.
9701 * reverse.c (_initialize_reverse): Add declaration.
9702 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9703 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9704 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9705 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9706 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9707 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9708 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9709 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9710 Add declaration.
9711 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9712 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9713 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9714 * rust-exp.y (_initialize_rust_exp): Add declaration.
9715 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9716 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9717 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9718 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9719 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9720 * score-tdep.c (_initialize_score_tdep): Add declaration.
9721 * ser-go32.c (_initialize_ser_dos): Add declaration.
9722 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9723 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9724 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9725 * ser-uds.c (_initialize_ser_socket): Add declaration.
9726 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9727 * serial.c (_initialize_serial): Add declaration.
9728 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9729 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9730 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9731 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9732 * skip.c (_initialize_step_skip): Add declaration.
9733 * sol-thread.c (_initialize_sol_thread): Add declaration.
9734 * solib-aix.c (_initialize_solib_aix): Add declaration.
9735 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9736 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9737 * solib-frv.c (_initialize_frv_solib): Add declaration.
9738 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9739 * solib-target.c (_initialize_solib_target): Add declaration.
9740 * solib.c (_initialize_solib): Add declaration.
9741 * source-cache.c (_initialize_source_cache): Add declaration.
9742 * source.c (_initialize_source): Add declaration.
9743 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9744 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9745 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9746 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9747 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9748 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9749 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9750 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9751 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9752 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9753 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9754 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9755 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9756 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9757 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9758 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9759 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9760 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9761 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9762 * stabsread.c (_initialize_stabsread): Add declaration.
9763 * stack.c (_initialize_stack): Add declaration.
9764 * stap-probe.c (_initialize_stap_probe): Add declaration.
9765 * std-regs.c (_initialize_frame_reg): Add declaration.
9766 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9767 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9768 * symfile.c (_initialize_symfile): Add declaration.
9769 * symmisc.c (_initialize_symmisc): Add declaration.
9770 * symtab.c (_initialize_symtab): Add declaration.
9771 * target.c (_initialize_target): Add declaration.
9772 * target-connection.c (_initialize_target_connection): Add
9773 declaration.
9774 * target-dcache.c (_initialize_target_dcache): Add declaration.
9775 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9776 * thread.c (_initialize_thread): Add declaration.
9777 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9778 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9779 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9780 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9781 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9782 * tracectf.c (_initialize_ctf): Add declaration.
9783 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9784 * tracefile.c (_initialize_tracefile): Add declaration.
9785 * tracepoint.c (_initialize_tracepoint): Add declaration.
9786 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9787 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9788 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9789 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9790 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9791 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9792 * tui/tui.c (_initialize_tui): Add declaration.
9793 * typeprint.c (_initialize_typeprint): Add declaration.
9794 * ui-style.c (_initialize_ui_style): Add declaration.
9795 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9796 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9797 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9798 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9799 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9800 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9801 * unittests/filtered_iterator-selftests.c
9802 (_initialize_filtered_iterator_selftests): Add declaration.
9803 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9804 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9805 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9806 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9807 * unittests/main-thread-selftests.c
9808 (_initialize_main_thread_selftests): Add declaration.
9809 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9810 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9811 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9812 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9813 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9814 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9815 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9816 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9817 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9818 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9819 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9820 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9821 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9822 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9823 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9824 declaration.
9825 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9826 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9827 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9828 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9829 * user-regs.c (_initialize_user_regs): Add declaration.
9830 * utils.c (_initialize_utils): Add declaration.
9831 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9832 * valops.c (_initialize_valops): Add declaration.
9833 * valprint.c (_initialize_valprint): Add declaration.
9834 * value.c (_initialize_values): Add declaration.
9835 * varobj.c (_initialize_varobj): Add declaration.
9836 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9837 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9838 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9839 * windows-nat.c (_initialize_windows_nat): Add declaration.
9840 (_initialize_check_for_gdb_ini): Add declaration.
9841 (_initialize_loadable): Add declaration.
9842 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9843 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9844 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9845 * xcoffread.c (_initialize_xcoffread): Add declaration.
9846 * xml-support.c (_initialize_xml_support): Add declaration.
9847 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9848 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9849 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
9850 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
9851
9852 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9853
9854 * regformats/regdat.sh: Generate declaration for init function.
9855
9856 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9857
9858 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
9859 up.
9860 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
9861 close_one_inferior>: New methods.
9862 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
9863 pass down target to find_inferior_pid.
9864 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
9865 Pass down target to find_inferior_ptid.
9866 (gdbsim_target::create_inferior): Pass down target to
9867 add_thread_silent.
9868 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
9869 target down to find_inferior_ptid and switch_to_thread.
9870 (gdbsim_target::close): Update to call close_one_inferior.
9871 (struct resume_data): Remove.
9872 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
9873 directly, rather than through a void pointer.
9874 (gdbsim_target::resume): Update to call resume_one_inferior.
9875
9876 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
9877
9878 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
9879
9880 2020-01-12 Pedro Alves <palves@redhat.com>
9881
9882 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
9883 directly for the current inferior instead of
9884 discard_all_inferiors.
9885 (discard_all_inferiors): Delete.
9886
9887 2020-01-11 Tom Tromey <tom@tromey.com>
9888
9889 * tui/tui-wingeneral.c (box_win): Check cli_styling.
9890 * tui/tui-winsource.c (tui_source_window_base::refill): Use
9891 deprecated_safe_get_selected_frame.
9892
9893 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9894
9895 * inferior.c (print_inferior): Switch inferior before printing it.
9896
9897 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
9898 Pedro Alves <palves@redhat.com>
9899
9900 * progspace-and-thread.c (switch_to_program_space_and_thread):
9901 Assert there's an inferior for PSPACE. Use
9902 switch_to_inferior_no_thread to switch the inferior too.
9903 * progspace.c (program_space::~program_space): Call
9904 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
9905 (program_space::free_all_objfiles): Don't call clear_symtab_users
9906 here.
9907 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
9908
9909 2020-01-10 Pedro Alves <palves@redhat.com>
9910
9911 * NEWS: Mention multi-target debugging, "info connections", and
9912 "add-inferior -no-connection".
9913
9914 2020-01-10 Pedro Alves <palves@redhat.com>
9915
9916 * infrun.c: Include "target-connection.h".
9917 (check_multi_target_resumption): New.
9918 (proceed): Call it.
9919 * target-connection.c (make_target_connection_string): Make
9920 extern.
9921 * target-connection.h (make_target_connection_string): Declare.
9922
9923 2020-01-10 Pedro Alves <palves@redhat.com>
9924
9925 * Makefile.in (COMMON_SFILES): Add target-connection.c.
9926 * inferior.c (uiout_field_connection): New function.
9927 (print_inferior): Add new "connection-id" column.
9928 (add_inferior_command): Show connection number/string of added
9929 inferior.
9930 * process-stratum-target.h
9931 (process_stratum_target::connection_string): New virtual method.
9932 (process_stratum_target::connection_number): New field.
9933 * remote.c (remote_target::connection_string): New override.
9934 * target-connection.c: New file.
9935 * target-connection.h: New file.
9936 * target.c (decref_target): Remove process_stratum targets from
9937 the connection list.
9938 (target_stack::push): Add process_stratum targets to the
9939 connection list.
9940
9941 2020-01-10 Pedro Alves <palves@redhat.com>
9942
9943 Revert:
9944 2016-04-12 Pedro Alves <palves@redhat.com>
9945 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
9946 Remove references to name.
9947 * serial.h (struct serial) <name>: Delete.
9948
9949 2020-01-10 Pedro Alves <palves@redhat.com>
9950
9951 * gdbarch-selftests.c (register_to_value_test): Remove "target
9952 already pushed" check.
9953
9954 2020-01-10 Pedro Alves <palves@redhat.com>
9955 John Baldwin <jhb@FreeBSD.org>
9956
9957 * aarch64-linux-nat.c
9958 (aarch64_linux_nat_target::thread_architecture): Adjust.
9959 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
9960 (task_command_1): Likewise.
9961 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
9962 (aix_thread_target::wait, aix_thread_target::fetch_registers)
9963 (aix_thread_target::store_registers)
9964 (aix_thread_target::thread_alive): Adjust.
9965 * amd64-fbsd-tdep.c: Include "inferior.h".
9966 (amd64fbsd_get_thread_local_address): Pass down target.
9967 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
9968 thread's gdbarch instead of target_gdbarch.
9969 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
9970 get_last_target_status.
9971 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
9972 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
9973 inferiors.
9974 (update_inserted_breakpoint_locations): Skip if inferiors with no
9975 execution.
9976 (update_global_location_list): When handling moribund locations,
9977 find representative inferior for location's pspace, and use thread
9978 count of its process_stratum target.
9979 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
9980 * bsd-uthread.c (bsd_uthread_target::wait): Use
9981 as_process_stratum_target and adjust thread_change_ptid and
9982 add_thread calls.
9983 (bsd_uthread_target::update_thread_list): Use
9984 as_process_stratum_target and adjust find_thread_ptid,
9985 thread_change_ptid and add_thread calls.
9986 * btrace.c (maint_btrace_packet_history_cmd): Adjust
9987 find_thread_ptid call.
9988 * corelow.c (add_to_thread_list): Adjust add_thread call.
9989 (core_target_open): Adjust add_thread_silent and thread_count
9990 calls.
9991 (core_target::pid_to_str): Adjust find_inferior_ptid call.
9992 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
9993 * event-top.c (async_disconnect): Pop targets from all inferiors.
9994 * exec.c (add_target_sections): Push exec target on all inferiors
9995 sharing the program space.
9996 (remove_target_sections): Remove the exec target from all
9997 inferiors sharing the program space.
9998 (exec_on_vfork): New.
9999 * exec.h (exec_on_vfork): Declare.
10000 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10001 Pass it down.
10002 (fbsd_nat_target::update_thread_list): Adjust.
10003 (fbsd_nat_target::resume): Adjust.
10004 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10005 down.
10006 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10007 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10008 get_thread_arch_regcache call.
10009 * fork-child.c (gdb_startup_inferior): Pass target down to
10010 startup_inferior and set_executing.
10011 * gdbthread.h (struct process_stratum_target): Forward declare.
10012 (add_thread, add_thread_silent, add_thread_with_info)
10013 (in_thread_list): Add process_stratum_target parameter.
10014 (find_thread_ptid(inferior*, ptid_t)): New overload.
10015 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10016 parameter.
10017 (all_threads()): Delete overload.
10018 (all_threads, all_non_exited_threads): Add process_stratum_target
10019 parameter.
10020 (all_threads_safe): Use brace initialization.
10021 (thread_count): Add process_stratum_target parameter.
10022 (set_resumed, set_running, set_stop_requested, set_executing)
10023 (threads_are_executing, finish_thread_state): Add
10024 process_stratum_target parameter.
10025 (switch_to_thread): Use is_current_thread.
10026 * i386-fbsd-tdep.c: Include "inferior.h".
10027 (i386fbsd_get_thread_local_address): Pass down target.
10028 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10029 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10030 have_inferiors check.
10031 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10032 (inf_ptrace_target::attach): Adjust.
10033 * infcall.c (run_inferior_call): Adjust.
10034 * infcmd.c (run_command_1): Pass target to
10035 scoped_finish_thread_state.
10036 (proceed_thread_callback): Skip inferiors with no execution.
10037 (continue_command): Rename 'all_threads' local to avoid hiding
10038 'all_threads' function. Adjust get_last_target_status call.
10039 (prepare_one_step): Adjust set_running call.
10040 (signal_command): Use user_visible_resume_target. Compare thread
10041 pointers instead of inferior_ptid.
10042 (info_program_command): Adjust to pass down target.
10043 (attach_command): Mark target's 'thread_executing' flag.
10044 (stop_current_target_threads_ns): New, factored out from ...
10045 (interrupt_target_1): ... this. Switch inferior before making
10046 target calls.
10047 * inferior-iter.h
10048 (struct all_inferiors_iterator, struct all_inferiors_range)
10049 (struct all_inferiors_safe_range)
10050 (struct all_non_exited_inferiors_range): Filter on
10051 process_stratum_target too. Remove explicit.
10052 * inferior.c (inferior::inferior): Push dummy target on target
10053 stack.
10054 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10055 Add process_stratum_target parameter, and pass it down.
10056 (have_live_inferiors): Adjust.
10057 (switch_to_inferior_and_push_target): New.
10058 (add_inferior_command, clone_inferior_command): Handle
10059 "-no-connection" parameter. Use
10060 switch_to_inferior_and_push_target.
10061 (_initialize_inferior): Mention "-no-connection" option in
10062 the help of "add-inferior" and "clone-inferior" commands.
10063 * inferior.h: Include "process-stratum-target.h".
10064 (interrupt_target_1): Use bool.
10065 (struct inferior) <push_target, unpush_target, target_is_pushed,
10066 find_target_beneath, top_target, process_target, target_at,
10067 m_stack>: New.
10068 (discard_all_inferiors): Delete.
10069 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10070 (all_inferiors, all_non_exited_inferiors): Add
10071 process_stratum_target parameter.
10072 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10073 (target_last_proc_target): New global.
10074 (follow_fork_inferior): Push target on new inferior. Pass target
10075 to add_thread_silent. Call exec_on_vfork. Handle target's
10076 reference count.
10077 (follow_fork): Adjust get_last_target_status call. Also consider
10078 target.
10079 (follow_exec): Push target on new inferior.
10080 (struct execution_control_state) <target>: New field.
10081 (user_visible_resume_target): New.
10082 (do_target_resume): Call target_async.
10083 (resume_1): Set target's threads_executing flag. Consider resume
10084 target.
10085 (commit_resume_all_targets): New.
10086 (proceed): Also consider resume target. Skip threads of inferiors
10087 with no execution. Commit resumtion in all targets.
10088 (start_remote): Pass current inferior to wait_for_inferior.
10089 (infrun_thread_stop_requested): Consider target as well. Pass
10090 thread_info pointer to clear_inline_frame_state instead of ptid.
10091 (infrun_thread_thread_exit): Consider target as well.
10092 (random_pending_event_thread): New inferior parameter. Use it.
10093 (do_target_wait): Rename to ...
10094 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10095 down.
10096 (threads_are_resumed_pending_p, do_target_wait): New.
10097 (prepare_for_detach): Adjust calls.
10098 (wait_for_inferior): New inferior parameter. Handle it. Use
10099 do_target_wait_1 instead of do_target_wait.
10100 (fetch_inferior_event): Adjust. Switch to representative
10101 inferior. Pass target down.
10102 (set_last_target_status): Add process_stratum_target parameter.
10103 Save target in global.
10104 (get_last_target_status): Add process_stratum_target parameter and
10105 handle it.
10106 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10107 (context_switch): Check inferior_ptid == null_ptid before calling
10108 inferior_thread().
10109 (get_inferior_stop_soon): Pass down target.
10110 (wait_one): Rename to ...
10111 (poll_one_curr_target): ... this.
10112 (struct wait_one_event): New.
10113 (wait_one): New.
10114 (stop_all_threads): Adjust.
10115 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10116 event's target.
10117 (switch_back_to_stepped_thread): Also consider target.
10118 (print_stop_event): Update.
10119 (normal_stop): Update. Also consider the resume target.
10120 * infrun.h (wait_for_inferior): Remove declaration.
10121 (user_visible_resume_target): New declaration.
10122 (get_last_target_status, set_last_target_status): New
10123 process_stratum_target parameter.
10124 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10125 process_stratum_target parameter, and use it.
10126 (clear_inline_frame_state (thread_info*)): New.
10127 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10128 process_stratum_target parameter.
10129 (clear_inline_frame_state (thread_info*)): Declare.
10130 * linux-fork.c (delete_checkpoint_command): Pass target down to
10131 find_thread_ptid.
10132 (checkpoint_command): Adjust.
10133 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10134 instead of just tweaking inferior_ptid.
10135 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10136 (exit_lwp): Pass target down to find_thread_ptid.
10137 (attach_proc_task_lwp_callback): Pass target down to
10138 add_thread/set_running/set_executing.
10139 (linux_nat_target::attach): Pass target down to
10140 thread_change_ptid.
10141 (get_detach_signal): Pass target down to find_thread_ptid.
10142 Consider last target status's target.
10143 (linux_resume_one_lwp_throw, resume_lwp)
10144 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10145 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10146 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10147 (linux_nat_target::async_wait_fd): New.
10148 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10149 target down.
10150 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10151 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10152 * linux-thread-db.c (struct thread_db_info::process_target): New
10153 field.
10154 (add_thread_db_info): Save target.
10155 (get_thread_db_info): New process_stratum_target parameter. Also
10156 match target.
10157 (delete_thread_db_info): New process_stratum_target parameter.
10158 Also match target.
10159 (thread_from_lwp): Adjust to pass down target.
10160 (thread_db_notice_clone): Pass down target.
10161 (check_thread_db_callback): Pass down target.
10162 (try_thread_db_load_1): Always push the thread_db target.
10163 (try_thread_db_load, record_thread): Pass target down.
10164 (thread_db_target::detach): Pass target down. Always unpush the
10165 thread_db target.
10166 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10167 target down. Always unpush the thread_db target.
10168 (find_new_threads_callback, thread_db_find_new_threads_2)
10169 (thread_db_target::update_thread_list): Pass target down.
10170 (thread_db_target::pid_to_str): Pass current inferior down.
10171 (thread_db_target::get_thread_local_address): Pass target down.
10172 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10173 target down.
10174 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10175 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10176 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10177 (procfs_init_inferior): Rename to ...
10178 (procfs_target::procfs_init_inferior): ... this and adjust.
10179 (procfs_target::create_inferior, procfs_notice_thread)
10180 (procfs_do_thread_registers): Adjust.
10181 * ppc-fbsd-tdep.c: Include "inferior.h".
10182 (ppcfbsd_get_thread_local_address): Pass down target.
10183 * proc-service.c (ps_xfer_memory): Switch current inferior and
10184 program space as well.
10185 (get_ps_regcache): Pass target down.
10186 * process-stratum-target.c
10187 (process_stratum_target::thread_address_space)
10188 (process_stratum_target::thread_architecture): Pass target down.
10189 * process-stratum-target.h
10190 (process_stratum_target::threads_executing): New field.
10191 (as_process_stratum_target): New.
10192 * ravenscar-thread.c
10193 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10194 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10195 down.
10196 * record-btrace.c (record_btrace_target::info_record): Adjust.
10197 (record_btrace_target::record_method)
10198 (record_btrace_target::record_is_replaying)
10199 (record_btrace_target::fetch_registers)
10200 (get_thread_current_frame_id, record_btrace_target::resume)
10201 (record_btrace_target::wait, record_btrace_target::stop): Pass
10202 target down.
10203 * record-full.c (record_full_wait_1): Switch to event thread.
10204 Pass target down.
10205 * regcache.c (regcache::regcache)
10206 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10207 process_stratum_target parameter and handle it.
10208 (current_thread_target): New global.
10209 (get_thread_regcache): Add process_stratum_target parameter and
10210 handle it. Switch inferior before calling target method.
10211 (get_thread_regcache): Pass target down.
10212 (get_thread_regcache_for_ptid): Pass target down.
10213 (registers_changed_ptid): Add process_stratum_target parameter and
10214 handle it.
10215 (registers_changed_thread, registers_changed): Pass target down.
10216 (test_get_thread_arch_aspace_regcache): New.
10217 (current_regcache_test): Define a couple local test_target_ops
10218 instances and use them for testing.
10219 (readwrite_regcache): Pass process_stratum_target parameter.
10220 (cooked_read_test, cooked_write_test): Pass mock_target down.
10221 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10222 (get_thread_arch_aspace_regcache): Add process_stratum_target
10223 parameter.
10224 (regcache::target): New method.
10225 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10226 (regcache::registers_changed_ptid): Add process_stratum_target
10227 parameter.
10228 (regcache::m_target): New field.
10229 (registers_changed_ptid): Add process_stratum_target parameter.
10230 * remote.c (remote_state::supports_vCont_probed): New field.
10231 (remote_target::async_wait_fd): New method.
10232 (remote_unpush_and_throw): Add remote_target parameter.
10233 (get_current_remote_target): Adjust.
10234 (remote_target::remote_add_inferior): Push target.
10235 (remote_target::remote_add_thread)
10236 (remote_target::remote_notice_new_inferior)
10237 (get_remote_thread_info): Pass target down.
10238 (remote_target::update_thread_list): Skip threads of inferiors
10239 bound to other targets. (remote_target::close): Don't discard
10240 inferiors. (remote_target::add_current_inferior_and_thread)
10241 (remote_target::process_initial_stop_replies)
10242 (remote_target::start_remote)
10243 (remote_target::remote_serial_quit_handler): Pass down target.
10244 (remote_target::remote_unpush_target): New remote_target
10245 parameter. Unpush the target from all inferiors.
10246 (remote_target::remote_unpush_and_throw): New remote_target
10247 parameter. Pass it down.
10248 (remote_target::open_1): Check whether the current inferior has
10249 execution instead of checking whether any inferior is live. Pass
10250 target down.
10251 (remote_target::remote_detach_1): Pass down target. Use
10252 remote_unpush_target.
10253 (extended_remote_target::attach): Pass down target.
10254 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10255 (remote_target::append_resumption): Pass down target.
10256 (remote_target::append_pending_thread_resumptions)
10257 (remote_target::remote_resume_with_hc, remote_target::resume)
10258 (remote_target::commit_resume): Pass down target.
10259 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10260 (remote_target::interrupt_query)
10261 (remote_target::remove_new_fork_children)
10262 (remote_target::check_pending_events_prevent_wildcard_vcont)
10263 (remote_target::remote_parse_stop_reply)
10264 (remote_target::process_stop_reply): Pass down target.
10265 (first_remote_resumed_thread): New remote_target parameter. Pass
10266 it down.
10267 (remote_target::wait_as): Pass down target.
10268 (unpush_and_perror): New remote_target parameter. Pass it down.
10269 (remote_target::readchar, remote_target::remote_serial_write)
10270 (remote_target::getpkt_or_notif_sane_1)
10271 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10272 down target.
10273 (remote_target::mourn_inferior): Pass down target. Use
10274 remote_unpush_target.
10275 (remote_target::core_of_thread)
10276 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10277 (remote_target::pid_to_exec_file)
10278 (remote_target::thread_handle_to_thread_info): Pass down target.
10279 (remote_target::async_wait_fd): New.
10280 * riscv-fbsd-tdep.c: Include "inferior.h".
10281 (riscv_fbsd_get_thread_local_address): Pass down target.
10282 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10283 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10284 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10285 Adjust.
10286 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10287 * solib-svr4.c (enable_break): Pass down target.
10288 * spu-multiarch.c (parse_spufs_run): Pass down target.
10289 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10290 * target-delegates.c: Regenerate.
10291 * target.c (g_target_stack): Delete.
10292 (current_top_target): Return the current inferior's top target.
10293 (target_has_execution_1): Refer to the passed-in inferior's top
10294 target.
10295 (target_supports_terminal_ours): Check whether the initial
10296 inferior was already created.
10297 (decref_target): New.
10298 (target_stack::push): Incref/decref the target.
10299 (push_target, push_target, unpush_target): Adjust.
10300 (target_stack::unpush): Defref target.
10301 (target_is_pushed): Return bool. Adjust to refer to the current
10302 inferior's target stack.
10303 (dispose_inferior): Delete, and inline parts ...
10304 (target_preopen): ... here. Only dispose of the current inferior.
10305 (target_detach): Hold strong target reference while detaching.
10306 Pass target down.
10307 (target_thread_name): Add assertion.
10308 (target_resume): Pass down target.
10309 (target_ops::beneath, find_target_at): Adjust to refer to the
10310 current inferior's target stack.
10311 (get_dummy_target): New.
10312 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10313 has a thread running.
10314 (initialize_targets): Rename to ...
10315 (_initialize_target): ... this.
10316 * target.h: Include "gdbsupport/refcounted-object.h".
10317 (struct target_ops): Inherit refcounted_object.
10318 (target_ops::shortname, target_ops::longname): Make const.
10319 (target_ops::async_wait_fd): New method.
10320 (decref_target): Declare.
10321 (struct target_ops_ref_policy): New.
10322 (target_ops_ref): New typedef.
10323 (get_dummy_target): Declare function.
10324 (target_is_pushed): Return bool.
10325 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10326 (all_matching_threads_iterator::all_matching_threads_iterator):
10327 Handle filter target.
10328 * thread-iter.h (struct all_matching_threads_iterator, struct
10329 all_matching_threads_range, class all_non_exited_threads_range):
10330 Filter by target too. Remove explicit.
10331 * thread.c (threads_executing): Delete.
10332 (inferior_thread): Pass down current inferior.
10333 (clear_thread_inferior_resources): Pass down thread pointer
10334 instead of ptid_t.
10335 (add_thread_silent, add_thread_with_info, add_thread): Add
10336 process_stratum_target parameter. Use it for thread and inferior
10337 searches.
10338 (is_current_thread): New.
10339 (thread_info::deletable): Use it.
10340 (find_thread_ptid, thread_count, in_thread_list)
10341 (thread_change_ptid, set_resumed, set_running): New
10342 process_stratum_target parameter. Pass it down.
10343 (set_executing): New process_stratum_target parameter. Pass it
10344 down. Adjust reference to 'threads_executing'.
10345 (threads_are_executing): New process_stratum_target parameter.
10346 Adjust reference to 'threads_executing'.
10347 (set_stop_requested, finish_thread_state): New
10348 process_stratum_target parameter. Pass it down.
10349 (switch_to_thread): Also match inferior.
10350 (switch_to_thread): New process_stratum_target parameter. Pass it
10351 down.
10352 (update_threads_executing): Reimplement.
10353 * top.c (quit_force): Pop targets from all inferior.
10354 (gdb_init): Don't call initialize_targets.
10355 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10356 Declare.
10357 (windows_add_thread, windows_delete_thread): Adjust.
10358 (get_windows_debug_event): Rename to ...
10359 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10360 * tracefile-tfile.c (tfile_target_open): Pass down target.
10361 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10362 Forward declare.
10363 (switch_to_thread): Add process_stratum_target parameter.
10364 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10365 parameter. Use it.
10366 (mi_on_resume): Pass target down.
10367 * nat/fork-inferior.c (startup_inferior): Add
10368 process_stratum_target parameter. Pass it down.
10369 * nat/fork-inferior.h (startup_inferior): Add
10370 process_stratum_target parameter.
10371 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10372
10373 2020-01-10 Pedro Alves <palves@redhat.com>
10374
10375 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10376 directly. Instead find the first thread in the thread list and
10377 use switch_to_thread.
10378
10379 2020-01-10 Pedro Alves <palves@redhat.com>
10380
10381 * remote.c (remote_target::remote_add_inferior): Don't bind a
10382 process to the current inferior if the current inferior is already
10383 bound to a process.
10384
10385 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10386 Pedro Alves <palves@redhat.com>
10387
10388 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10389 If no process is specified, return null_ptid instead of
10390 inferior_ptid.
10391 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10392 TARGET_WAITKIND_SIGNALLED with no pid.
10393
10394 2020-01-10 Pedro Alves <palves@redhat.com>
10395
10396 * remote.c (first_remote_resumed_thread): New.
10397 (remote_target::wait_as): Use it as default event_ptid instead of
10398 inferior_ptid.
10399
10400 2020-01-10 Pedro Alves <palves@redhat.com>
10401
10402 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10403
10404 2020-01-10 Pedro Alves <palves@redhat.com>
10405
10406 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10407 not -1.
10408
10409 2020-01-10 Pedro Alves <palves@redhat.com>
10410
10411 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10412 ptid to get_last_target_status.
10413 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10414 ptid to get_last_target_status.
10415 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10416 get_last_target_status.
10417 (info_program_command): Don't pass a target_waitstatus to
10418 get_last_target_status.
10419 * infrun.c (init_wait_for_inferior): Use
10420 nullify_last_target_wait_ptid.
10421 (get_last_target_status): Handle nullptr arguments.
10422 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10423 (print_stop_event): Don't pass a ptid to get_last_target_status.
10424 (normal_stop): Don't pass a ptid to get_last_target_status.
10425 * infrun.h (get_last_target_status, set_last_target_status): Move
10426 comments here and update.
10427 (nullify_last_target_wait_ptid): Declare.
10428 * linux-fork.c (fork_load_infrun_state): Remove local extern
10429 declaration of nullify_last_target_wait_ptid.
10430 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10431 to get_last_target_status.
10432
10433 2020-01-10 Pedro Alves <palves@redhat.com>
10434
10435 * gdbthread.h (scoped_restore_current_thread)
10436 <dont_restore, restore, m_dont_restore>: Declare.
10437 * thread.c (thread_alive): Add assertion. Return bool.
10438 (switch_to_thread_if_alive): New.
10439 (prune_threads): Switch inferior/thread.
10440 (print_thread_info_1): Switch thread before calling target methods.
10441 (scoped_restore_current_thread::restore): New, factored out from
10442 ...
10443 (scoped_restore_current_thread::~scoped_restore_current_thread):
10444 ... this.
10445 (scoped_restore_current_thread::scoped_restore_current_thread):
10446 Add assertion.
10447 (thread_apply_all_command, thread_select): Use
10448 switch_to_thread_if_alive.
10449 * infrun.c (proceed, restart_threads, handle_signal_stop)
10450 (switch_back_to_stepped_thread): Switch current thread before
10451 calling target methods.
10452
10453 2020-01-10 Pedro Alves <palves@redhat.com>
10454
10455 * inferior.c (switch_to_inferior_no_thread): New function,
10456 factored out from ...
10457 (inferior_command): ... here.
10458 * inferior.h (switch_to_inferior_no_thread): Declare.
10459 * mi/mi-main.c (run_one_inferior): Use
10460 switch_to_inferior_no_thread.
10461
10462 2020-01-10 Pedro Alves <palves@redhat.com>
10463
10464 * infcmd.c (kill_command): Remove dead code.
10465
10466 2020-01-10 Pedro Alves <palves@redhat.com>
10467
10468 * remote.c (remote_target::mourn_inferior): No longer check
10469 whether the target is running.
10470
10471 2020-01-10 Pedro Alves <palves@redhat.com>
10472
10473 * corelow.c (core_target::has_execution): Change parameter type to
10474 inferior pointer.
10475 * inferior.c (number_of_live_inferiors): Use
10476 inferior::has_execution instead of target_has_execution_1.
10477 * inferior.h (inferior::has_execution): New.
10478 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10479 inferior::has_execution instead of target_has_execution_1.
10480 * process-stratum-target.c
10481 (process_stratum_target::has_execution): Change parameter type to
10482 inferior pointer. Check the inferior's PID instead of
10483 inferior_ptid.
10484 * process-stratum-target.h
10485 (process_stratum_target::has_execution): Change parameter type to
10486 inferior pointer.
10487 * record-full.c (record_full_core_target::has_execution): Change
10488 parameter type to inferior pointer.
10489 * target.c (target_has_execution_1): Change parameter type to
10490 inferior pointer.
10491 (target_has_execution_current): Adjust.
10492 * target.h (target_ops::has_execution): Change parameter type to
10493 inferior pointer.
10494 (target_has_execution_1): Change parameter type to inferior
10495 pointer. Change return type to bool.
10496 * tracefile.h (tracefile_target::has_execution): Change parameter
10497 type to inferior pointer.
10498
10499 2020-01-10 Pedro Alves <palves@redhat.com>
10500
10501 * exceptions.c (print_flush): Remove current_top_target() check.
10502
10503 2020-01-10 Pedro Alves <palves@redhat.com>
10504
10505 * remote.c (show_remote_exec_file): Show the current inferior's
10506 exec-file instead of the command variable's value.
10507
10508 2020-01-10 Pedro Alves <palves@redhat.com>
10509
10510 * record-full.c (record_full_resume_ptid): New global.
10511 (record_full_target::resume): Set it.
10512 (record_full_wait_1): Use record_full_resume_ptid instead of
10513 inferior_ptid.
10514
10515 2020-01-10 Pedro Alves <palves@redhat.com>
10516
10517 * gdbthread.h (scoped_restore_current_thread)
10518 <dont_restore, restore, m_dont_restore>: Declare.
10519 * thread.c (thread_alive): Add assertion. Return bool.
10520 (switch_to_thread_if_alive): New.
10521 (prune_threads): Switch inferior/thread.
10522 (print_thread_info_1): Switch thread before calling target methods.
10523 (scoped_restore_current_thread::restore): New, factored out from
10524 ...
10525 (scoped_restore_current_thread::~scoped_restore_current_thread):
10526 ... this.
10527 (scoped_restore_current_thread::scoped_restore_current_thread):
10528 Add assertion.
10529 (thread_apply_all_command, thread_select): Use
10530 switch_to_thread_if_alive.
10531
10532 2020-01-10 George Barrett <bob@bob131.so>
10533
10534 * stap-probe.c (stap_modify_semaphore): Don't check for null
10535 semaphores.
10536 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10537 for null semaphores.
10538
10539 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10540
10541 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10542 all source windows, and maintain horizontal scroll status while
10543 doing so.
10544
10545 2020-01-09 Tom Tromey <tom@tromey.com>
10546
10547 PR tui/18932:
10548 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10549 update_source_window, not print_source_lines.
10550
10551 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10552
10553 * tui/tui.c (tui_enable): Register tui hooks after calling
10554 tui_display_main.
10555
10556 2020-01-09 Christian Biesinger <cbiesinger@google.com>
10557
10558 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10559
10560 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
10561
10562 * thread.c (print_thread_info_1): Fix indentation.
10563
10564 2020-01-09 Christian Biesinger <cbiesinger@google.com>
10565
10566 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10567 unique_xmalloc_ptr outside the if to always free the demangled name.
10568
10569 2020-01-08 Tom Tromey <tromey@adacore.com>
10570
10571 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10572 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10573 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10574 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10575 Remove.
10576 (section_offsets): New typedef.
10577 * symtab.c (fixup_section, get_msymbol_address): Update.
10578 * symmisc.c (dump_msymbols): Update.
10579 * symfile.h (relative_addr_info_to_section_offsets)
10580 (symfile_map_offsets_to_segments): Update.
10581 * symfile.c (build_section_addr_info_from_objfile)
10582 (init_objfile_sect_indices): Update.
10583 (struct place_section_arg): Change type of "offsets".
10584 (place_section): Update.
10585 (relative_addr_info_to_section_offsets): Change type of
10586 "section_offsets". Remove "num_sections" parameter.
10587 (default_symfile_offsets, syms_from_objfile_1)
10588 (set_objfile_default_section_offset): Update.
10589 (reread_symbols): No need to preserve section offsets by hand.
10590 (symfile_map_offsets_to_segments): Change type of "offsets".
10591 * stap-probe.c (relocate_address): Update.
10592 * stabsread.h (process_one_symbol): Update.
10593 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10594 (solib_target_relocate_section_addresses): Update.
10595 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10596 Update.
10597 * solib-frv.c (frv_relocate_main_executable): Update.
10598 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10599 * solib-aix.c (solib_aix_get_section_offsets): Change return
10600 type.
10601 (solib_aix_solib_create_inferior_hook): Update.
10602 * remote.c (remote_target::get_offsets): Update.
10603 * psymtab.c (find_pc_sect_psymtab): Update.
10604 * psympriv.h (struct partial_symbol) <address, text_low,
10605 text_high>: Update.
10606 * objfiles.h (obj_section_offset): Update.
10607 (struct objfile) <section_offsets>: Change type.
10608 <num_sections>: Remove.
10609 (objfile_relocate): Update.
10610 * objfiles.c (entry_point_address_query): Update
10611 (relocate_one_symbol): Change type of "section_offsets".
10612 (objfile_relocate1, objfile_relocate1): Change type of
10613 "new_offsets".
10614 (objfile_rebase1): Update.
10615 * mipsread.c (mipscoff_symfile_read): Update.
10616 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10617 parameter.
10618 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10619 (parse_external, psymtab_to_symtab_1): Update.
10620 * machoread.c (macho_symfile_offsets): Update.
10621 * ia64-tdep.c (ia64_find_unwind_table): Update.
10622 * hppa-tdep.c (read_unwind_info): Update.
10623 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10624 * dwarf2read.c (create_addrmap_from_index)
10625 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10626 (process_psymtab_comp_unit_reader, add_partial_symbol)
10627 (add_partial_subprogram, process_full_comp_unit)
10628 (read_file_scope, read_func_scope, read_lexical_block_scope)
10629 (read_call_site_scope, dwarf2_rnglists_process)
10630 (dwarf2_ranges_process, dwarf2_ranges_read)
10631 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10632 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10633 Update.
10634 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10635 Update.
10636 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10637 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10638 (process_one_symbol): Change type of "section_offsets".
10639 * ctfread.c (get_objfile_text_range): Update.
10640 * coffread.c (coff_symtab_read, enter_linenos)
10641 (process_coff_symbol): Update.
10642 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10643 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10644
10645 2020-01-08 Tom Tromey <tromey@adacore.com>
10646
10647 * dwarf2read.c (parse_macro_definition): Use std::string.
10648 (parse_macro_definition): Likewise.
10649
10650 2020-01-08 Tom Tromey <tromey@adacore.com>
10651
10652 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10653 (ATTR_ALLOC_CHUNK): Remove.
10654
10655 2020-01-08 Tom Tromey <tromey@adacore.com>
10656
10657 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10658
10659 2020-01-08 Tom Tromey <tromey@adacore.com>
10660
10661 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10662 (dwarf2_compute_name, open_dwo_file): Likewise.
10663 (process_enumeration_scope): Use std::vector.
10664 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10665 (partial_die_info::fixup, dwarf2_start_subfile)
10666 (guess_full_die_structure_name, dwarf2_name): Likewise.
10667 (determine_prefix): Update.
10668 (guess_full_die_structure_name): Make return type const.
10669 (partial_die_full_name): Return unique_xmalloc_ptr.
10670 (DW_FIELD_ALLOC_CHUNK): Remove.
10671
10672 2020-01-07 Tom Tromey <tromey@adacore.com>
10673
10674 PR build/24937:
10675 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10676
10677 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10678
10679 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10680
10681 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10682
10683 * stack.c (print_frame_info): Move disassemble_next_line code
10684 inside source_print block.
10685
10686 2020-01-06 Eli Zaretskii <eliz@gnu.org>
10687
10688 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10689 gdb/signals.h, as we are now using native signal symbols.
10690
10691 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
10692
10693 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10694 overflow by an early check of content vs threshold.
10695 * tui/tui-source.c (tui_source_window::line_is_displayed):
10696 Likewise.
10697
10698 2020-01-06 Eli Zaretskii <eliz@gnu.org>
10699
10700 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10701
10702 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10703
10704 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10705 export table if no section contains it's RVA.
10706
10707 2020-01-06 Eli Zaretskii <eliz@gnu.org>
10708
10709 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10710
10711 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
10712
10713 * source.c (print_source_lines_base): Set last_line_listed.
10714
10715 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
10716
10717 * tui/tui-disasm.c: Remove trailing spaces.
10718
10719 2020-01-06 Eli Zaretskii <eliz@gnu.org>
10720 Pedro Alves <palves@redhat.com>
10721
10722 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10723 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10724 (windows_gdb_signal_to_target): New function, uses the above
10725 enumeration to convert GDB internal signal codes to equivalent
10726 Windows codes.
10727 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10728 * windows-nat.c: Include "gdb_wait.h".
10729 (get_windows_debug_event): Extract the fatal exception from the
10730 exit status and convert to the equivalent Posix signal number.
10731 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10732 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10733 * gdbsupport/gdb_wait.c: New file, implements
10734 windows_status_to_termsig.
10735 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10736 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10737
10738 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10739
10740 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10741 show_layout.
10742
10743 2020-01-05 Luis Machado <luis.machado@linaro.org>
10744
10745 * aarch64-linux-nat.c
10746 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10747 and bfd_mach_aarch64.
10748
10749 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10750
10751 * ui-file.c (stdio_file::can_emit_style_escape)
10752 (tee_file::can_emit_style_escape): Ensure style is used also on
10753 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10754 to gdb_stdout.
10755 * main.c (set_gdb_data_directory): Use file style to output the
10756 warning that the given pathname is not a directory.
10757 * top.c (show_history_filename, gdb_safe_append_history)
10758 (show_gdb_datadir): Use file style.
10759
10760 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
10761
10762 * solib-target.c (struct lm_info_target):
10763 Change offsets to be a unique_xmalloc_ptr.
10764 (solib_target_relocate_section_addresses): Update.
10765
10766 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
10767
10768 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10769
10770 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10771
10772 * MAINTAINERS (Write After Approval): Add myself.
10773
10774 2020-01-02 Luis Machado <luis.machado@linaro.org>
10775
10776 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10777 Cell BE architecture.
10778 * target.h (struct target_ops) <thread_architecture>: Likewise.
10779
10780 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
10781
10782 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10783
10784 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
10785
10786 * MAINTAINERS (Write After Approval): Add myself.
10787
10788 2020-01-01 Joel Brobecker <brobecker@adacore.com>
10789
10790 * gdbarch.sh: Update copyright year range of generated files.
10791
10792 2020-01-01 Joel Brobecker <brobecker@adacore.com>
10793
10794 Update copyright year range in all GDB files.
10795
10796 2020-01-01 Joel Brobecker <brobecker@adacore.com>
10797
10798 * copyright.py: Convert to Python 3.
10799
10800 2020-01-01 Joel Brobecker <brobecker@adacore.com>
10801
10802 * copyright.py: Adapt after move of gnulib directory from gdb
10803 directory to toplevel directory.
10804
10805 2020-01-01 Joel Brobecker <brobecker@adacore.com>
10806
10807 * copyright.py (main): Exit if run from the wrong directory.
10808
10809 2020-01-01 Joel Brobecker <brobecker@adacore.com>
10810
10811 * top.c (print_gdb_version): Change copyright year to 2020.
10812
10813 2020-01-01 Joel Brobecker <brobecker@adacore.com>
10814
10815 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
10816
10817 For older changes see ChangeLog-2019.
10818 \f
10819 Local Variables:
10820 mode: change-log
10821 left-margin: 8
10822 fill-column: 74
10823 version-control: never
10824 coding: utf-8
10825 End:
This page took 0.25992 seconds and 4 git commands to generate.