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