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