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