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