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