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