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