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