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