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