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