]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Change exec_close to be a method on program_space
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8a4f1402
TT
12020-10-29 Tom Tromey <tom@tromey.com>
2
3 * progspace.c (program_space::exec_close): New method, from
4 exec_close in exec.c.
5 * exec.c (exec_close): Move to progspace.c.
6 (exec_target::close, exec_file_attach): Update.
7 * progspace.h (struct program_space) <exec_close>: Declare
8 method.
9
c20cb686
TT
102020-10-29 Tom Tromey <tom@tromey.com>
11
12 * progspace.h (struct program_space) <exec_filename>: Rename from
13 pspace_exec_filename. Now a unique_xmalloc_ptr.
14 * inferior.c (print_selected_inferior): Update.
15 (print_inferior): Update.
16 * mi/mi-main.c (print_one_inferior): Update.
17 * exec.h (exec_filename): Remove macro.
18 * corefile.c (get_exec_file): Update.
19 * exec.c (exec_close): Update.
20 (exec_file_attach): Update.
21 * progspace.c (clone_program_space): Update.
22 (print_program_space): Update.
23
6be2a9ab
TT
242020-10-29 Tom Tromey <tom@tromey.com>
25
26 * target-section.h (struct target_section): Add constructor.
27 * exec.c (build_section_table, add_target_sections_of_objfile):
28 Update.
29 * corelow.c (core_target::build_file_mappings): Update.
30
cfaa8f76
TBA
312020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
32
33 PR gdb/19318
34 * inferior.c (detach_inferior_command): Restore the current thread.
35 (kill_inferior_command): Ditto.
36
1b00ef06
TV
372020-10-28 Tom de Vries <tdevries@suse.de>
38
39 PR symtab/26772
40 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
41 map, check it in the "best match" loop.
42
7f40ce1a
SM
432020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
44
45 * m32c-tdep.c: Remove unused includes.
46
5eb9e3f5
SM
472020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
48
49 * xtensa-tdep.c: Remove includes.
50
b1d4d8d1
TBA
512020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
52
53 * breakpoint.c (struct condition_command_opts): New struct.
54 (condition_command_option_defs): New static global.
55 (make_condition_command_options_def_group): New function.
56 (condition_completer): Update to consider the '-force' flag.
57 (condition_command): Use gdb::option for the '-force' flag.
58
bd24c5d6
TV
592020-10-27 Tom de Vries <tdevries@suse.de>
60
61 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
62 symbols in section check.
63
61eb46a4
TV
642020-10-27 Tom de Vries <tdevries@suse.de>
65
66 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
67
733d554a
TBA
682020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
69
70 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
71 * breakpoint.c: Update the help text of the 'condition' and 'break'
72 commands.
73 (set_breakpoint_condition): Take a new bool parameter
74 to control whether condition definition should be forced even when
75 the condition expression is invalid in all of the current locations.
76 (condition_command): Update the call to 'set_breakpoint_condition'.
77 (find_condition_and_thread): Take the "-force-condition" flag into
78 account.
79 * linespec.c (linespec_keywords): Add "-force-condition" as an
80 element.
81 (FORCE_KEYWORD_INDEX): New #define.
82 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
83 as a keyword.
84 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
85 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
86 * python/py-breakpoint.c (bppy_set_condition): Ditto.
87 * NEWS: Mention the changes to the 'break' and 'condition' commands.
88
b5fa468f
TBA
892020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
90
91 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
92 * breakpoint.c (set_breakpoint_location_condition): New function.
93 (set_breakpoint_condition): Disable a breakpoint location if parsing
94 the condition string gives an error.
95 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
96 (build_target_condition_list): Ditto.
97 (build_target_command_list): Ditto.
98 (build_bpstat_chain): Ditto.
99 (print_one_breakpoint_location): Ditto.
100 (print_one_breakpoint): Ditto.
101 (breakpoint_1): Ditto.
102 (bp_location::bp_location): Ditto.
103 (locations_are_equal): Ditto.
104 (update_breakpoint_locations): Ditto.
105 (enable_disable_bp_num_loc): Ditto.
106 (init_breakpoint_sal): Use set_breakpoint_location_condition.
107 (find_condition_and_thread_for_sals): New static function.
108 (create_breakpoint): Call find_condition_and_thread_for_sals.
109 (location_to_sals): Call find_condition_and_thread_for_sals instead
110 of find_condition_and_thread.
111
1c47ec3e
TV
1122020-10-26 Tom de Vries <tdevries@suse.de>
113
114 * dwarf2/read.c (process_full_comp_unit): Call
115 dwarf2_find_base_address.
116
6390859c
TT
1172020-10-26 Tom Tromey <tromey@adacore.com>
118
119 * gdbtypes.c (create_range_type): Revert previous patch. Add
120 comment.
121
d744f0f9
PA
1222020-10-26 Pedro Alves <pedro@palves.net>
123
124 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
125 (my_waitpid): Use gdb::handle_eintr.
126
006811bc
SM
1272020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
128
129 * acinclude.m4: Update ptrace.m4 path.
130 * ptrace.m4: Moved to gdbsupport.
131
c75e31a1
SM
1322020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
133
134 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
135 instead of target_gdbarch.
136
32495661
SM
1372020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
138
139 * jit.c (jit_reader_load_command): Pass current inferior.
140 (jit_inferior_init): Change parameter type to inferior, use it.
141 (jit_inferior_created): Remove.
142 (jit_inferior_created_hook): Pass inferior parameter down.
143 (_initialize_jit): Use jit_inferior_created_hook instead of
144 jit_inferior_created.
145 * jit.h (jit_inferior_created_hook): Add inferior parameter.
146 * infrun.c (follow_exec): Pass inferior to
147 jit_inferior_created_hook.
148
3f66685e
SM
1492020-10-24 Simon Marchi <simon.marchi@efficios.com>
150
151 * linux-thread-db.c (check_pid_namespace_match): Add inferior
152 parameter and use it.
153 (thread_db_inferior_created): Pass inferior argument.
154
a0ff652f
SM
1552020-10-24 Simon Marchi <simon.marchi@efficios.com>
156
157 * aix-thread.c (aix_thread_inferior_created): Add inferior
158 parameter.
159 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
160 * dummy-frame.c (cleanup_dummy_frames): Likewise.
161 * jit.c (jit_inferior_created): Likewise.
162 * linux-thread-db.c (thread_db_inferior_created): Likewise.
163 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
164 * observable.h (inferior_created): Likewise.
165 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
166 * symfile-mem.c (add_vsyscall_page): Likewise.
167 * infcmd.c (post_create_inferior): Pass inferior argument.
168
3c67532c
JB
1692020-10-24 Joel Brobecker <brobecker@adacore.com>
170
171 GDB 10.1 released.
172
8747316e
JB
1732020-10-23 Joel Brobecker <brobecker@adacore.com>
174
175 * ada-typeprint.c (ada_print_type): Remove superfluous second call
176 to ada_check_typedef.
177
1a0ea399
AB
1782020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
179
180 * f-exp.y (f_parse): Rename to...
181 (f_language::parser): ...this.
182 * f-lang.c (f_get_encoding): Rename to...
183 (f_language::get_encoding): ...this.
184 (f_op_print_tab): Rename to...
185 (f_language::op_print_tab): ...this.
186 (exp_descriptor_f): Rename to...
187 (f_language::exp_descriptor_tab): ...this.
188 (class f_language): Moved to f-lang.h.
189 (f_language::language_arch_info): New function, moved out of class
190 declaration.
191 (f_language::search_name_hash): Likewise.
192 (f_language::lookup_symbol_nonlocal): Likewise.
193 (f_language::get_symbol_name_matcher_inner): Likewise.
194 * f-lang.h: Add 'valprint.h' include.
195 (class f_language): Moved here from f-lang.c.
196 * f-typeprint.c (f_type_print_args): Delete commented out
197 declaration.
198 (f_print_typedef): Rename to...
199 (f_language::print_typedef): ...this.
200 (f_print_type): Rename to...
201 (f_language::print_type): ...this.
202 (f_type_print_varspec_prefix): Delete declaration and rename to...
203 (f_language::f_type_print_varspec_prefix): ...this.
204 (f_type_print_varspec_suffix): Delete declaration and rename to...
205 (f_language::f_type_print_varspec_suffix): ...this.
206 (f_type_print_base): Delete declaration and rename to...
207 (f_language::f_type_print_base): ...this.
208 * f-valprint.c (f_value_print_inner): Rename to...
209 (f_language::value_print_inner): ...this.
210 * parse.c: Delete 'f-lang.h' include.
211
88cefd9b
AB
2122020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
213
214 * language.h (language_defn::print_type): Add variable names in
215 declaration, and update header comment.
216
5399db93
AB
2172020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
218
219 * ada-lang.c (ada_language::demangle): Rename to...
220 (ada_language::demangle_symbol): ...this.
221 * c-lang.c (cplus_language::demangle): Rename to...
222 (cplus_language::demangle_symbol): ...this.
223 * d-lang.c (d_language::demangle): Rename to...
224 (d_language::demangle_symbol): ...this.
225 * f-lang.c (f_language::demangle): Rename to...
226 (f_language::demangle_symbol): ...this.
227 * go-lang.c (go_language::demangle): Rename to...
228 (go_language::demangle_symbol): ...this.
229 * language.c (language_demangle): Update call to demangle_symbol.
230 (auto_or_unknown_language::demangle): Rename to...
231 (auto_or_unknown_language::demangle_symbol): ...this.
232 * language.h (language_defn::demangle): Rename to...
233 (language_defn::demangle_symbol): ...this.
234 * objc-lang.c (objc_language::demangle): Rename to...
235 (objc_language::demangle_symbol): ...this.
236 * rust-lang.c (rust_language::demangle): Rename to...
237 (rust_language::demangle_symbol): ...this.
238
4b2f86ef
AB
2392020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
240
241 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
242 (iterate_over_file_blocks): Replace use of macro with the macros
243 definition.
244
e74b39de
AB
2452020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
246
247 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
248 * valprint.c (maybe_print_array_index): Replace use of macro with
249 the macros definition.
250
00c696a6
AB
2512020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
252
253 * ada-lang.c (ada_language::print_array_index): Call value_print
254 directly.
255 * language.c (language_defn::print_array_index): Likewise.
256 * language.h (LA_VALUE_PRINT): Delete.
257 * valprint.c (value_print): Call value_print on the
258 current_language directly.
259
d3b67c56
AB
2602020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
261
262 * language.h (LA_PRINT_TYPEDEF): Delete.
263 * typeprint.c (typedef_print): Call print_typedef directly on the
264 current_language object.
265
790e2a12
AB
2662020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
267
268 * m2-exp.y (m2_parse): Rename to...
269 (m2_language::parser): ...this. Update function signature.
270 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
271 (m2_op_print): Rename to...
272 (m2_language::op_print_tab): ...this, and make const.
273 (exp_descriptor_modula2): Rename to...
274 (m2_language::exp_descriptor_modula2): ...this.
275 (class m2_language): Move to m2-lang.h.
276 (m2_language::language_arch_info): New function, moved out of
277 class declaration.
278 (m2_language::printchar): New function, body from m2_printchar.
279 (m2_language::printstr): New function, moved out of class
280 declaration.
281 (m2_language::emitchar): Likewise.
282 * m2-lang.h (m2_parse): Delete declaration.
283 (m2_print_typedef): Delete declaration.
284 (m2_value_print_inner): Delete declaration.
285 (class m2_language): Class declaration moved from m2-lang.c,
286 larger functions are left in m2-lang.c.
287 * m2-typeprint.c (m2_print_typedef): Rename to...
288 (m2_language::print_typedef): ...this, and update function
289 signature.
290 * m2-valprint.c (m2_value_print_inner): Rename to...
291 (m2_language::value_print_inner): ...this, replace use of
292 LA_PRINT_STRING with a direct call to printstr member function,
293 and update recursive call.
294
b01175fc
AB
2952020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
296
297 * language.c (default_is_string_type_p): Delete, implementation
298 moved into auto_or_unknown_language::is_string_type_p.
299 (unk_op_print_tab): Moved into
300 auto_or_unknown_language::opcode_print_table.
301 (unknown_language_arch_info): Delete, implementation moved into
302 auto_or_unknown_language::language_arch_info.
303 (class auto_or_unknown_language): New class, member functions
304 copied from unknown_language class, with some updates.
305 (class unknown_language): Most member functions moved into
306 auto_or_unknown_language class. Inherit from
307 auto_or_unknown_language class.
308 (class auto_language): Inherit from auto_or_unknown_language.
309 Delete most member functions.
310
1a97fe8c
HD
3112020-10-22 Hannes Domani <ssbssa@yahoo.de>
312
313 * stabsread.c (read_member_functions): Remove gdb_assert.
314
6b9d0dfd
HD
3152020-10-22 Hannes Domani <ssbssa@yahoo.de>
316
317 * gdbtypes.c (init_complex_type): Check target type name.
318
4b4bb603
SM
3192020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
320
321 * target-debug.h (target_debug_print_struct_target_ops_p):
322 Remove.
323 (target_debug_print_async_callback_ftype_p): Remove.
324 (target_debug_print_struct_trace_state_variable_p): Remove.
325 (target_debug_print_struct_traceframe_info_p): Remove.
326 (target_debug_print_VEC__btrace_block_s__pp): Remove.
327 (target_debug_print_enum_btrace_format): Remove.
328 (target_debug_print_enum_info_proc_what): Remove.
329 (target_debug_print_thread_info_pp): Remove.
330
24f5300a
SM
3312020-10-22 Simon Marchi <simon.marchi@efficios.com>
332
333 * target.h (struct target_ops) <make_corefile_notes>:
334 Change return type to unique pointer.
335 * target.c (dummy_make_corefile_notes): Likewise.
336 * exec.c (struct exec_target) <make_corefile_notes>:
337 Likewise.
338 (exec_target::make_corefile_notes): Likewise.
339 * procfs.c (class procfs_target) <make_corefile_notes>:
340 Likewise.
341 (procfs_do_thread_registers): Adjust to unique pointer.
342 (struct procfs_corefile_thread_data): Add constructor.
343 <note_data>: Change type to unique pointer.
344 (procfs_corefile_thread_callback): Adjust to unique pointer.
345 (procfs_target::make_corefile_notes): Change return type to
346 unique pointer.
347 * target-delegates.c: Re-generate.
348 * gcore.c (write_gcore_file_1): Adjust.
349 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
350 New.
351
5fb4027f
TV
3522020-10-22 Tom de Vries <tdevries@suse.de>
353
354 * block.c (find_block_in_blockvector): Make sure the returned block
355 contains pc.
356
4a636814
SM
3572020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
358
359 PR gdb/26693
360 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
361 parameter.
362 (load_cu): Pass existing CU.
363 (process_imported_unit_die): Likewise.
364 (follow_die_offset): Likewise.
365
1bd57575
LM
3662020-10-22 Luis Machado <luis.machado@linaro.org>
367
368 * corelow.c (core_target::xfer_partial): Also check for an empty
369 m_core_unavailable_mappings vector.
370
6b4c676c
AB
3712020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
372
373 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
374 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
375 * f-exp.y (arglist): Allow for a series of subranges.
376 (subrange): Add cases for subranges with strides.
377 * f-lang.c (value_f90_subarray): Catch use of array strides and
378 throw an error.
379 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
380
f2d8e4c5
AB
3812020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
382
383 * expprint.c (print_subexp_standard): Change enum range_type to
384 range_flag and rename variables to match.
385 (dump_subexp_body_standard): Likewise.
386 * expression.h (enum range_type): Rename to...
387 (enum range_flag): ...this.
388 (range_types): Rename to...
389 (range_flags): ...this.
390 * f-lang.c (value_f90_subarray): Change enum range_type to
391 range_flag and rename variables to match.
392 * parse.c (operator_length_standard): Likewise.
393 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
394 range_type to range_flag.
395 * rust-lang.c (rust_evaluate_funcall): Likewise.
396 (rust_range): Likewise.
397 (rust_compute_range): Likewise.
398 (rust_subscript): Likewise.
399
2f1b18db
AB
4002020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
401
402 * expprint.c (print_subexp_standard): Update to reflect changes to
403 enum range_type.
404 (dump_subexp_body_standard): Likewise.
405 * expression.h (enum range_type): Convert to a bit field enum, and
406 make the enum unsigned.
407 * f-exp.y (subrange): Update to reflect changes to enum
408 range_type.
409 * f-lang.c (value_f90_subarray): Likewise.
410 * parse.c (operator_length_standard): Likewise.
411 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
412 * rust-lang.c (rust_range): Likewise.
413 (rust_compute_range): Likewise.
414 (rust_subscript): Likewise.
415
a46d1843
SM
4162020-10-21 Simon Marchi <simon.marchi@efficios.com>
417
418 * infrun.c (displaced_step_in_progress_thread): Fix comment.
419 (displaced_step_in_progress): Fix comment.
420
c21f37a8
SM
4212020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
422
423 * gdbarch.sh (make_corefile_notes): Return unique pointer.
424 * gdbarch.c: Re-generate.
425 * gdbarch.h: Re-generate.
426 * gcore.c (write_gcore_file_1): Adjust.
427 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
428 constructor.
429 <note_data>: Change type to unique pointer.
430 <abort_iteration>: Change type to bool.
431 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
432 (fbsd_collect_thread_registers): Return void, adjust.
433 (struct fbsd_corefile_thread_data): Add construtor.
434 <note_data>: Change type to unique pointer.
435 (fbsd_corefile_thread): Adjust.
436 (fbsd_make_corefile_notes): Return unique pointer, adjust.
437 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
438 to unique pointer, adjust.
439 (struct linux_collect_regset_section_cb_data): Add constructor.
440 <note_data>: Change type to unique pointer.
441 <abort_iteration>: Change type to bool.
442 (linux_collect_thread_registers): Return void, adjust.
443 (struct linux_corefile_thread_data): Add constructor.
444 <note_data>: Change type to unique pointer.
445 (linux_corefile_thread): Adjust.
446 (linux_make_corefile_notes): Return unique pointer, adjust.
447
07fbbd01
SM
4482020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
449
450 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
451 * gdbarch.c: Re-generate.
452 * gdbarch.h: Re-generate.
453 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
454 bool.
455 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
456 Likewise.
457 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
458 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
459 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
460 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
461
39535193
SM
4622020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
463
464 * gdbarch.sh: Make generated predicates return bool.
465 * gdbarch.c: Re-generate.
466 * gdbarch.h: Re-generate.
467
ad523d01
TT
4682020-10-20 Tom Tromey <tom@tromey.com>
469
470 * varobj-iter.h (struct varobj_item): Remove typedef.
471
c4464ade
SM
4722020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
473
474 * infrun.c (currently_stepping): Change int to bool
475 (maybe_software_singlestep): Likewise.
476 (show_stop_on_solib_events): Likewise.
477 (stepping_past_nonsteppable_watchpoint): Likewise.
478 (displaced_step_in_progress_any_inferior): Likewise.
479 (displaced_step_in_progress_thread): Likewise.
480 (keep_going_stepped_thread): Likewise.
481 (thread_still_needs_step_over): Likewise.
482 (start_step_over): Likewise.
483 (do_target_resume): Likewise.
484 (resume_1): Likewise.
485 (clear_proceed_status): Likewise.
486 (thread_still_needs_step_over_bp): Likewise.
487 (proceed): Likewise.
488 (switch_back_to_stepped_thread): Likewise.
489 (adjust_pc_after_break): Likewise.
490 (stepped_in_from): Likewise.
491 (handle_stop_requested): Likewise.
492 (handle_syscall_event): Likewise.
493 (handle_no_resumed): Likewise.
494 (handle_inferior_event): Likewise.
495 (finish_step_over): Likewise.
496 (handle_signal_stop): Likewise.
497 (process_event_stop_test): Likewise.
498
2eb20436
SM
4992020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
500
501 * infrun.c (get_displaced_stepping_state): Fix comment.
502
e0c45ded
AS
5032020-10-20 Andreas Schwab <schwab@linux-m68k.org>
504
505 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
506
22cc388e
TT
5072020-10-19 Tom Tromey <tromey@adacore.com>
508
509 PR tui/26719
510 * tui/tui-winsource.h (struct tui_source_window_base)
511 <refresh_window>: Rename from refresh_pad.
512 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
513 Rename from refresh_pad.
514 (tui_source_window_base::show_source_content)
515 (tui_source_window_base::do_scroll_horizontal): Update.
516
3c6eb4d4
TBA
5172020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
518
519 * thread.c (_initialize_thread): Fine-tune the help text of
520 'info threads'.
521
26703721
TBA
5222020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
523
524 * frame.c: Remove the unused 'uinteger_option_def' type alias.
525
61c26be8
MS
5262020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
527
528 * breakpoint.c (handle_jit_event): Add an argument, change how
529 `jit_event_handler` is called.
530
932539d7
TT
5312020-10-17 Tom Tromey <tom@tromey.com>
532
533 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
534 (scan_xcoff_symtab): Update.
535 * psymtab.h (class psymtab_storage) <global_psymbols,
536 static_psymbols, current_global_psymbols,
537 current_static_psymbols>: Remove.
538 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
539 (match_partial_symbol, lookup_partial_symbol): Update.
540 (print_partial_symbols): Change parameters.
541 (dump_psymtab, recursively_search_psymtabs)
542 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
543 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
544 (concat): Remove.
545 (end_psymtab_common): Simplify.
546 (append_psymbol_to_list): Change parameters.
547 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
548 (init_psymbol_list): Simplify.
549 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
550 * psympriv.h (struct partial_symtab) <empty>: New method.
551 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
552 Remove.
553 <global_psymbols, static_psymbols>: New members.
554 <add_psymbol>: New methods.
555 (add_psymbol_to_list): Don't declare.
556 (psymbol_placement): Move earlier.
557 * mdebugread.c (parse_partial_symbols): Update.
558 (handle_psymbol_enumerators): Change parameters.
559 (mdebug_expand_psymtab): Update.
560 * dwarf2/read.c (process_psymtab_comp_unit_reader)
561 (add_partial_symbol): Update.
562 * dwarf2/index-write.c (write_psymbols): Change parameters.
563 (write_one_signatured_type): Update.
564 (recursively_count_psymbols): Update.
565 (recursively_write_psymbols): Update.
566 (class debug_names) <recursively_write_psymbols>: Update.
567 <write_psymbols>: Change parameters.
568 <write_one_signatured_type>: Update.
569 * dbxread.c (read_dbx_symtab): Update.
570 (dbx_end_psymtab): Use partial_symtab::empty.
571 * ctfread.c (struct ctf_context) <pst>: New member.
572 (create_partial_symtab): Set it.
573 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
574 (scan_partial_symbols): Use the psymtab's context. Update.
575
cfabbd35
TT
5762020-10-17 Tom Tromey <tom@tromey.com>
577
578 * valprint.c (generic_value_print): Remove comment.
579 * m2-valprint.c (m2_value_print_inner): Remove comment.
580 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
581 type.
582
520596f2
TV
5832020-10-17 Tom de Vries <tdevries@suse.de>
584
585 PR symtab/26317
586 * source.c (select_source_symtab): Handling sal.symtab == NULL for
587 symbol main.
588
76547ab3
TV
5892020-10-14 Tom de Vries <tdevries@suse.de>
590
591 PR gdb/26733
592 * solib.c (solib_contains_address_p): Handle
593 'solib->sections == nullptr'.
594
d3a07122
SM
5952020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
596
597 PR gdb/26642
598 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
599 target can't do async.
600 * target.c (target_wait): Assert that we don't pass
601 TARGET_WNOHANG to a target that can't async.
602
1b71cfcf
KR
6032020-10-13 Kamil Rytarowski <n54@gmx.com>
604
605 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
606 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
607 * alpha-bsd-nat.c: Adjust include.
608 * alpha-bsd-tdep.h: Adjust comment.
609 * alpha-nbsd-tdep.c: Rename to ...
610 * alpha-netbsd-tdep.c: ... this, adjust include.
611 * amd64-nbsd-nat.c: Rename to ...
612 * amd64-netbsd-nat.c: ... this, adjust include.
613 * amd64-nbsd-tdep.c: Rename to ...
614 * amd64-netbsd-tdep.c: ... this, adjust include.
615 * amd64-tdep.h: Adjust include.
616 * arm-nbsd-nat.c: Rename to ...
617 * arm-netbsd-nat.c: ... this, adjust include.
618 * arm-nbsd-tdep.c: Rename to ...
619 * arm-netbsd-tdep.c: ... this, adjust include.
620 * arm-nbsd-tdep.h: Rename to ...
621 * arm-netbsd-tdep.h: ... this, adjust include.
622 * configure.nat: Adjust file lists.
623 * configure.tgt: Likewise.
624 * hppa-nbsd-nat.c: Rename to ...
625 * hppa-netbsd-nat.c: ... this, adjust include.
626 * hppa-nbsd-tdep.c: Rename to ...
627 * hppa-netbsd-tdep.c: ... this, adjust include.
628 * i386-nbsd-nat.c: Rename to ...
629 * i386-netbsd-nat.c: ... this, adjust include.
630 * i386-nbsd-tdep.c: Rename to ...
631 * i386-netbsd-tdep.c: ... this, adjust include.
632 * m68k-bsd-nat.c: Adjust include.
633 * mips-nbsd-nat.c: Rename to ...
634 * mips-netbsd-nat.c: ... this, adjust include.
635 * mips-nbsd-tdep.c: Rename to ...
636 * mips-netbsd-tdep.c: ... this, adjust include.
637 * mips-nbsd-tdep.h: Rename to ...
638 * mips-netbsd-tdep.h: ... this.
639 * nbsd-nat.c: Rename to ...
640 * netbsd-nat.c: ... this, adjust include.
641 * nbsd-nat.h: Rename to ...
642 * netbsd-nat.h: ... this, adjust include.
643 * nbsd-tdep.c: Rename to ...
644 * netbsd-tdep.c: ... this, adjust include.
645 * nbsd-tdep.h: Rename to ...
646 * netbsd-tdep.h: ... this.
647 * ppc-nbsd-nat.c: Rename to ...
648 * ppc-netbsd-nat.c: ... this, adjust include.
649 * ppc-nbsd-tdep.c: Rename to ...
650 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
651 * ppc-nbsd-tdep.h: Rename to ...
652 * ppc-netbsd-tdep.h: ... this.
653 * sh-nbsd-nat.c: Rename to ...
654 * sh-netbsd-nat.c: ... this, adjust include.
655 * sh-nbsd-tdep.c: Rename to ...
656 * sh-netbsd-tdep.c: ... this, adjust include.
657 * sparc-nbsd-nat.c: Rename to ...
658 * sparc-netbsd-nat.c: ... this.
659 * sparc-nbsd-tdep.c: Rename to ...
660 * sparc-netbsd-tdep.c: ... this, adjust include.
661 * sparc64-nbsd-nat.c: Rename to ...
662 * sparc64-netbsd-nat.c: ... this.
663 * sparc64-nbsd-tdep.c: Rename to ...
664 * sparc64-netbsd-tdep.c: ... this, adjust include.
665 * sparc64-tdep.h: Adjust comment.
666 * vax-bsd-nat.c: Adjust include.
667 * vax-nbsd-tdep.c: Rename to ...
668 * vax-netbsd-tdep.c: ... this, adjust include.
669
d7a78e5c
TT
6702020-10-12 Tom Tromey <tom@tromey.com>
671
672 * target.h (struct target_ops) <get_section_table>: Update.
673 (target_get_section_table): Update.
674 * target.c (target_get_section_table, target_section_by_addr)
675 (memory_xfer_partial_1): Update.
676 * target-section.h (target_section_table): Now an alias.
677 * target-delegates.c: Rebuild.
678 * target-debug.h (target_debug_print_target_section_table_p):
679 Rename from target_debug_print_struct_target_section_table_p.
680 * symfile.c (build_section_addr_info_from_section_table): Update.
681 * solib.c (solib_map_sections, solib_contains_address_p): Update.
682 * solib-svr4.c (scan_dyntag): Update.
683 * solib-dsbt.c (scan_dyntag): Update.
684 * remote.c (remote_target::remote_xfer_live_readonly_partial):
685 Update.
686 * record-full.c (record_full_core_target::xfer_partial): Update.
687 * progspace.h (struct program_space) <target_sections>: Update.
688 * exec.h (print_section_info): Update.
689 * exec.c (exec_target::close, build_section_table)
690 (add_target_sections, add_target_sections_of_objfile)
691 (remove_target_sections, exec_on_vfork)
692 (section_table_available_memory)
693 (section_table_xfer_memory_partial)
694 (exec_target::get_section_table, exec_target::xfer_partial)
695 (print_section_info, set_section_command)
696 (exec_set_section_address, exec_target::has_memory): Update.
697 * corelow.c (core_target::build_file_mappings)
698 (core_target::xfer_partial, core_target::info_proc_mappings)
699 (core_target::info_proc_mappings): Update.
700 * bfd-target.c (class target_bfd): Update
701
eda214ce
TT
7022020-10-12 Tom Tromey <tom@tromey.com>
703
704 * progspace.c (program_space::~program_space): Don't call
705 clear_section_table.
706 * exec.h (clear_section_table): Don't declare.
707 * exec.c (exec_target::close): Update.
708 (clear_section_table): Remove.
709
91840ee3
TT
7102020-10-12 Tom Tromey <tom@tromey.com>
711
712 * exec.c (add_target_sections_of_objfile): Simplify.
713
2d128614
TT
7142020-10-12 Tom Tromey <tom@tromey.com>
715
716 * solib.c (solib_map_sections): Update.
717 * record-full.c (record_full_core_open_1): Update.
718 * exec.h (build_section_table): Return a target_section_table.
719 * exec.c (exec_file_attach): Update.
720 (build_section_table): Return a target_section_table.
721 * corelow.c (core_target::core_target): Update.
722 * bfd-target.c (target_bfd::target_bfd): Update.
723
bb2a6777
TT
7242020-10-12 Tom Tromey <tom@tromey.com>
725
726 * target.c (target_section_by_addr, memory_xfer_partial_1):
727 Update.
728 * target-section.h (struct target_section_table): Use
729 std::vector.
730 * symfile.h (build_section_addr_info_from_section_table): Take a
731 target_section_table.
732 * symfile.c (build_section_addr_info_from_section_table): Take a
733 target_section_table.
734 * solist.h (struct so_list) <sections>: Change type.
735 <sections_end>: Remove.
736 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
737 (solib_contains_address_p): Update.
738 * solib-svr4.c (scan_dyntag): Update.
739 * solib-dsbt.c (scan_dyntag): Update.
740 * remote.c (remote_target::remote_xfer_live_readonly_partial):
741 Update.
742 * record-full.c (record_full_core_start, record_full_core_end):
743 Remove.
744 (record_full_core_sections): New global.
745 (record_full_core_open_1, record_full_core_target::xfer_partial):
746 Update.
747 * exec.h (build_section_table, section_table_xfer_memory_partial)
748 (add_target_sections): Take a target_section_table.
749 * exec.c (exec_file_attach, clear_section_table): Update.
750 (resize_section_table): Remove.
751 (build_section_table, add_target_sections): Take a
752 target_section_table.
753 (add_target_sections_of_objfile, remove_target_sections)
754 (exec_on_vfork): Update.
755 (section_table_available_memory): Take a target_section_table.
756 (section_table_read_available_memory): Update.
757 (section_table_xfer_memory_partial): Take a target_section_table.
758 (print_section_info, set_section_command)
759 (exec_set_section_address, exec_target::has_memory): Update.
760 * corelow.c (class core_target) <m_core_section_table,
761 m_core_file_mappings>: Remove braces.
762 <~core_target>: Remove.
763 (core_target::core_target): Update.
764 (core_target::~core_target): Remove.
765 (core_target::build_file_mappings)
766 (core_target::xfer_memory_via_mappings)
767 (core_target::xfer_partial, core_target::info_proc_mappings):
768 Update.
769 * bfd-target.c (target_bfd::xfer_partial): Update.
770 (target_bfd::target_bfd): Update.
771 (target_bfd::~target_bfd): Remove.
772
7b466b10
TT
7732020-10-12 Tom Tromey <tom@tromey.com>
774
775 * target.h (struct target_section, struct target_section_table):
776 Move to target-section.h.
777 * target-section.h: New file.
778
87a37e5e
PA
7792020-10-12 Pedro Alves <pedro@palves.net>
780
781 PR exp/26602
782 * valops.c (struct struct_field_searcher): New.
783 (update_search_result): Rename to ...
784 (struct_field_searcher::update_result): ... this. Simplify
785 prototype. Record all found fields.
786 (do_search_struct_field): Rename to ...
787 (struct_field_searcher::search): ... this. Simplify prototype.
788 Maintain stack of visited baseclass path. Call update_result for
789 fields too. Keep searching fields in baseclasses instead of
790 stopping at the first found field.
791 (search_struct_field): Use struct_field_searcher. When looking
792 for fields, report ambiguous access attempts.
793
9370fd51
AB
7942020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
795
796 * frame.c (inside_main_func): Check full symbols as well as
797 minimal symbols.
798
59c8a30b
JB
7992020-10-09 Joel Brobecker <brobecker@adacore.com>
800
801 * ada-lang.c (advance_wild_match): Rewrite the function's
802 description. Change the type of target0, t0 and t1 to char.
803
7c184d33
TT
8042020-10-09 Tom Tromey <tromey@adacore.com>
805
806 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
807
5c4258f4
TT
8082020-10-09 Tom Tromey <tromey@adacore.com>
809
810 * ada-lang.h (ada_encode): Return std::string.
811 * ada-lang.c (ada_encode_1): Return std::string.
812 (ada_encode): Likewise.
813 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
814 Update.
815 * ada-exp.y (block_lookup, write_var_or_type): Update.
816
3d87245c
HD
8172020-10-09 Hannes Domani <ssbssa@yahoo.de>
818
819 PR exp/26714
820 * printcmd.c (print_formatted): Handle void results as
821 unformatted prints.
822
bbb826f5
AB
8232020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
824
825 * arch/aarch32.c (aarch32_create_target_description): Release the
826 target_desc_up as late as possible.
827 * arch/aarch64.c (aarch64_create_target_description): Likewise.
828 * arch/amd64.c (amd64_create_target_description): Likewise.
829 * arch/arc.c (arc_create_target_description): Return a
830 target_desc_up, don't release it.
831 * arch/arc.h (arc_create_target_description): Update declaration.
832 (arc_lookup_target_description): Move target_desc_up into the
833 cache, and return a borrowed pointer.
834 * arch/arm.c (arm_create_target_description): Release the
835 target_desc_up as late as possible.
836 * arch/i386.c (i386_create_target_description): Likewise.
837 * arch/riscv.h (riscv_create_target_description): Update
838 declaration to match definition.
839 * arch/tic6x.c (tic6x_create_target_description): Release the
840 target_desc_up as late as possible.
841
361cb219
AB
8422020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
843
844 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
845 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
846
f5c4b229
JV
8472020-10-09 Jan Vrany <jan.vrany@labware.com>
848
849 * source.c (directory_command): Notify observers that "directories"
850 parameter has changed.
851
b2701685
TT
8522020-10-08 Tom Tromey <tom@tromey.com>
853
854 * cli/cli-cmds.c (print_disassembly): Style function name and
855 addresses. Add _() wrappers.
856
ada508b6
SV
8572020-10-08 Shahab Vahedi <shahab@synopsys.com>
858
859 * NEWS: Mention ARC support in GDBserver.
860
51a948fd
AB
8612020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
862
863 * arch/aarch32.c (aarch32_create_target_description): Release
864 unique_ptr returned from allocate_target_description.
865 * arch/aarch64.c (aarch64_create_target_description): Likewise.
866 * arch/amd64.c (amd64_create_target_description): Likewise.
867 * arch/arc.c (arc_create_target_description): Likewise.
868 * arch/arm.c (arm_create_target_description): Likewise.
869 * arch/i386.c (i386_create_target_description): Likewise.
870 * arch/riscv.c (riscv_create_target_description): Update return
871 type. Handle allocate_target_description returning a unique_ptr.
872 (riscv_lookup_target_description): Update to handle unique_ptr.
873 * arch/tic6x.c (tic6x_create_target_description): Release
874 unique_ptr returned from allocate_target_description.
875 * features/microblaze-with-stack-protect.c: Regenerate.
876 * features/microblaze.c: Regenerate.
877 * features/mips-dsp-linux.c: Regenerate.
878 * features/mips-linux.c: Regenerate.
879 * features/mips64-dsp-linux.c: Regenerate.
880 * features/mips64-linux.c: Regenerate.
881 * features/nds32.c: Regenerate.
882 * features/nios2.c: Regenerate.
883 * features/or1k.c: Regenerate.
884 * features/rs6000/powerpc-32.c: Regenerate.
885 * features/rs6000/powerpc-32l.c: Regenerate.
886 * features/rs6000/powerpc-403.c: Regenerate.
887 * features/rs6000/powerpc-403gc.c: Regenerate.
888 * features/rs6000/powerpc-405.c: Regenerate.
889 * features/rs6000/powerpc-505.c: Regenerate.
890 * features/rs6000/powerpc-601.c: Regenerate.
891 * features/rs6000/powerpc-602.c: Regenerate.
892 * features/rs6000/powerpc-603.c: Regenerate.
893 * features/rs6000/powerpc-604.c: Regenerate.
894 * features/rs6000/powerpc-64.c: Regenerate.
895 * features/rs6000/powerpc-64l.c: Regenerate.
896 * features/rs6000/powerpc-7400.c: Regenerate.
897 * features/rs6000/powerpc-750.c: Regenerate.
898 * features/rs6000/powerpc-860.c: Regenerate.
899 * features/rs6000/powerpc-altivec32.c: Regenerate.
900 * features/rs6000/powerpc-altivec32l.c: Regenerate.
901 * features/rs6000/powerpc-altivec64.c: Regenerate.
902 * features/rs6000/powerpc-altivec64l.c: Regenerate.
903 * features/rs6000/powerpc-e500.c: Regenerate.
904 * features/rs6000/powerpc-e500l.c: Regenerate.
905 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
906 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
907 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
908 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
909 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
910 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
911 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
912 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
913 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
914 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
915 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
916 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
917 * features/rs6000/powerpc-vsx32.c: Regenerate.
918 * features/rs6000/powerpc-vsx32l.c: Regenerate.
919 * features/rs6000/powerpc-vsx64.c: Regenerate.
920 * features/rs6000/powerpc-vsx64l.c: Regenerate.
921 * features/rs6000/rs6000.c: Regenerate.
922 * features/rx.c: Regenerate.
923 * features/s390-gs-linux64.c: Regenerate.
924 * features/s390-linux32.c: Regenerate.
925 * features/s390-linux32v1.c: Regenerate.
926 * features/s390-linux32v2.c: Regenerate.
927 * features/s390-linux64.c: Regenerate.
928 * features/s390-linux64v1.c: Regenerate.
929 * features/s390-linux64v2.c: Regenerate.
930 * features/s390-te-linux64.c: Regenerate.
931 * features/s390-tevx-linux64.c: Regenerate.
932 * features/s390-vx-linux64.c: Regenerate.
933 * features/s390x-gs-linux64.c: Regenerate.
934 * features/s390x-linux64.c: Regenerate.
935 * features/s390x-linux64v1.c: Regenerate.
936 * features/s390x-linux64v2.c: Regenerate.
937 * features/s390x-te-linux64.c: Regenerate.
938 * features/s390x-tevx-linux64.c: Regenerate.
939 * features/s390x-vx-linux64.c: Regenerate.
940 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
941 from allocate_target_description.
942 * target-descriptions.c (allocate_target_description): Update
943 return type.
944 (print_c_tdesc::visit_pre): Release unique_ptr returned from
945 allocate_target_description.
946
485c47e5
TT
9472020-10-07 Tom Tromey <tromey@adacore.com>
948
949 * unittests/search-memory-selftests.c: New file.
950 * Makefile.in (SELFTESTS_SRCS): Add
951 unittests/search-memory-selftests.c.
952
3a135a91
TT
9532020-10-07 Tom Tromey <tromey@adacore.com>
954
955 PR gdb/16930:
956 * findcmd.c (_initialize_mem_search): Mention that the range is
957 inclusive.
958
4a72de73
TT
9592020-10-07 Tom Tromey <tromey@adacore.com>
960
961 * target.h (simple_search_memory): Don't declare.
962 * target.c (simple_search_memory): Move to gdbsupport.
963 (default_search_memory): Update.
964 * remote.c (remote_target::search_memory): Update.
965
a038ffd8
SM
9662020-10-07 Simon Marchi <simon.marchi@efficios.com>
967
968 * Makefile.in (COMPILE): Add CXXFLAGS.
969 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
970 (check-headers): Add CXXFLAGS.
971
cc463201
AK
9722020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
973
974 * arc-linux-tdep.h: New file.
975 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
976 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
977 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
978 arc_linux_gregset, arc_linux_v2_regset,
979 arc_linux_iterate_over_regset_sections,
980 arc_linux_core_read_description): Implement.
981 (arc_linux_init_osabi): Set iterate_over_regset_sections.
982 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
983 (arc_gdbarch_features_create): Add.
984 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
985
e4bd363f
SV
9862020-10-07 Shahab Vahedi <shahab@synopsys.com>
987
988 * arch/arc.h: Rename "arc_gdbarch_features" to
989 "arc_arch_features".
990 * arc-tdep.h: Likewise.
991 * arc-tdep.c: Likewise.
992
b68bef99
TBA
9932020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
994
995 * infcmd.c (attach_command): Remove the redundant call to
996 `clear_proceed_status`.
997
4641551a
KR
9982020-10-07 Kamil Rytarowski <n54@gmx.com>
999
1000 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1001
91e5e8db
KR
10022020-10-07 Kamil Rytarowski <n54@gmx.com>
1003
1004 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1005 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1006 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1007
64c03bdb
SM
10082020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1009
1010 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1011 (_initialize_break_catch_sig): Don't allocate array.
1012
31a8f60f
AB
10132020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1014
1015 * symtab.c (find_pc_line): Return unmapped addresses when the
1016 requested address is also unmapped.
1017
9e6dbd8b
SM
10182020-10-05 Simon Marchi <simon.marchi@efficios.com>
1019
1020 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1021 tui/tui-out.h.
1022
a1d217e8
SM
10232020-10-05 Simon Marchi <simon.marchi@efficios.com>
1024
1025 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1026 type::is_vector instead of TYPE_VECTOR.
1027
7d144117
SM
10282020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1029
1030 * auto-load.c (auto_load_objfile_script_1): Don't use
1031 debugfile_holder as temporary variable when stripping drive
1032 letter.
1033
cd096ec8
HD
10342020-10-05 Hannes Domani <ssbssa@yahoo.de>
1035
1036 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1037 Add TYPE_CODE_COMPLEX.
1038 (amd64_windows_return_value): Fix types returned via XMM0.
1039
b58e7f72
AH
10402020-10-05 Alan Hayward <alan.hayward@arm.com>
1041
1042 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1043 AArch64/ARM maintainers.
1044
8d378f27
SM
10452020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1046
1047 * NEWS: Mention set/show debug event-loop.
1048
d5519913
TT
10492020-10-02 Tom Tromey <tromey@adacore.com>
1050
1051 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1052 REG_EXTENDED.
1053
18b67edc
SM
10542020-10-02 Simon Marchi <simon.marchi@efficios.com>
1055
1056 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1057 * procfs.c (procfs_inferior_created): Remove.
1058 (_initialize_procfs): Don't register procfs_inferior_created.
1059
6b01403b
SM
10602020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1061
1062 * async-event.c (invoke_async_signal_handlers): Add debug
1063 print.
1064 (check_async_event_handlers): Likewise.
1065 * event-top.c (show_debug_event_loop): New function.
1066 (_initialize_event_top): Register "set debug event-loop"
1067 setting.
1068
ba988419
SM
10692020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1070
1071 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1072 * debug.h: Remove.
1073 * infrun.c: Include gdbsupport/common-debug.h.
1074 * linux-nat.c: Likewise.
1075
db20ebdf
SM
10762020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1077
1078 * async-event.h (create_async_signal_handler): Add name
1079 parameter.
1080 (create_async_event_handler): Likewise.
1081 * async-event.c (struct async_signal_handler) <name>: New field.
1082 (struct async_event_handler) <name>: New field.
1083 (create_async_signal_handler): Assign name.
1084 (create_async_event_handler): Assign name.
1085 * event-top.c (async_init_signals): Pass name when creating
1086 handler.
1087 * infrun.c (_initialize_infrun): Likewise.
1088 * record-btrace.c (record_btrace_push_target): Likewise.
1089 * record-full.c (record_full_open): Likewise.
1090 * remote-notif.c (remote_notif_state_allocate): Likewise.
1091 * remote.c (remote_target::open_1): Likewise.
1092 * tui/tui-win.c (tui_initialize_win): Likewise.
1093
2554f6f5
SM
10942020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1095
1096 * async-event.c (initialize_async_signal_handlers): Pass name to
1097 add_file_handler
1098 * event-top.c (ui_register_input_event_handler): Likewise.
1099 * linux-nat.c (linux_nat_target::async): Likewise.
1100 * run-on-main-thread.c (_initialize_run_on_main_thread):
1101 Likewise
1102 * ser-base.c (reschedule): Likewise.
1103 (ser_base_async): Likewise.
1104 * tui/tui-io.c: Likewise.
1105 * top.h (struct ui) <num>: New field.
1106 * top.c (highest_ui_num): New variable.
1107 (ui::ui): Initialize num.
1108
a7aba266
SM
11092020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1110
1111 * observable.h <inferior_created>: Remove parameters. Update all
1112 listeners.
1113 * inferior.h (post_create_inferior): Remove target parameter.
1114 Update all callers.
1115
048fde1e 11162020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1117
1118 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1119 and DW_MACRO_undef_strx.
1120 (dwarf_decode_macros): Likewise
1121 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1122 which is the value of DW_AT_str_offsets_base.
1123 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1124 str_offsets_base.
1125
064280be
KR
11262020-10-01 Kamil Rytarowski <n54@gmx.com>
1127
1128 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1129
6ff33035
KR
11302020-10-01 Kamil Rytarowski <n54@gmx.com>
1131
1132 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1133 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1134
1eb6eb79
KR
11352020-10-01 Kamil Rytarowski <n54@gmx.com>
1136
1137 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1138
95eb9e54
TV
11392020-09-30 Tom de Vries <tdevries@suse.de>
1140
1141 PR symtab/26683
1142 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1143
cae21f8e
TT
11442020-09-30 Tom Tromey <tromey@adacore.com>
1145
1146 * dwarf2/read.c (handle_variant): Use constant_value.
1147
529908cb
TT
11482020-09-29 Tom Tromey <tom@tromey.com>
1149
1150 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1151 (read_file_scope, dwarf2_get_pc_bounds)
1152 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1153 (read_structure_type, handle_struct_member_die)
1154 (read_enumeration_type, read_array_type, read_set_type)
1155 (read_tag_pointer_type, read_tag_reference_type)
1156 (read_subroutine_type, read_base_type, read_subrange_type)
1157 (read_full_die_1, partial_die_info::read)
1158 (partial_die_info::read, by, new_symbol)
1159 (dwarf2_const_value_data, dwarf2_const_value_attr)
1160 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1161 (prepare_one_comp_unit): Update.
1162 * dwarf2/attribute.h (DW_UNSND): Remove.
1163
c45bc3f8
TT
11642020-09-29 Tom Tromey <tom@tromey.com>
1165
1166 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1167 (read_subroutine_type, partial_die_info::read)
1168 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1169 (dwarf2_add_member_fn): Update.
1170 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1171 * dwarf2/attribute.c (attribute::as_boolean): New method.
1172
23dca5c3
TT
11732020-09-29 Tom Tromey <tom@tromey.com>
1174
1175 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1176 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1177 method.
1178 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1179
52c14d11
TT
11802020-09-29 Tom Tromey <tom@tromey.com>
1181
1182 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1183 the attribute's form.
1184
e8e5c158
TT
11852020-09-29 Tom Tromey <tom@tromey.com>
1186
1187 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1188 (dwarf2_add_member_fn): Update.
1189 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1190 * dwarf2/attribute.c (attribute::defaulted): New method, from
1191 is_valid_DW_AT_defaulted.
1192
d4df075e
TT
11932020-09-29 Tom Tromey <tom@tromey.com>
1194
1195 * dwarf2/read.c (dw2_get_file_names_reader)
1196 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1197 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1198 (dwarf2_symbol_mark_computed): Use as_unsigned.
1199 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1200 method.
1201 <form_is_section_offset>: Update comment.
1202
bf23a268
TT
12032020-09-29 Tom Tromey <tom@tromey.com>
1204
1205 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1206 dwarf2_default_access_attribute. Look up attribute.
1207 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1208 Update.
1209
7a5f294d
TT
12102020-09-29 Tom Tromey <tom@tromey.com>
1211
1212 * dwarf2/read.c (skip_one_die): Update.
1213 (read_full_die_1): Change how reprocessing is done.
1214 (partial_die_info::read): Update.
1215 (read_attribute_value): Remove need_reprocess parameter.
1216 (read_attribute): Likewise.
1217 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1218 New method.
1219
36d378cf
TT
12202020-09-29 Tom Tromey <tom@tromey.com>
1221
1222 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1223 (dwarf2_const_value_attr, dump_die_shallow)
1224 (dwarf2_fetch_constant_bytes): Update.
1225 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1226 comment.
1227 <set_address>: New method.
1228 (DW_ADDR): Remove.
1229 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1230 (attribute::as_string, attribute::as_address): Add assert.
1231
fe56917a
TT
12322020-09-29 Tom Tromey <tom@tromey.com>
1233
1234 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1235 (read_attribute_reprocess, read_attribute_value): Update.
1236 (read_attribute): Clear requires_reprocessing.
1237 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1238 form_requires_reprocessing>: New methods.
1239 <string_init>: Clear requires_reprocessing.
1240 <set_unsigned_reprocess>: New method.
1241 <name>: Shrink by one bit.
1242 <requires_reprocessing>: New member.
1243 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1244 method.
1245
414ad644
TT
12462020-09-29 Tom Tromey <tom@tromey.com>
1247
1248 * dwarf2/read.c (read_attribute_value): Update.
1249 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1250 set_unsigned>: New methods.
1251 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1252
1bc397c5
TT
12532020-09-29 Tom Tromey <tom@tromey.com>
1254
1255 * dwarf2/read.c (get_alignment, read_array_order)
1256 (read_attribute_value, dwarf2_const_value_attr)
1257 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1258 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1259 New methods.
1260 (DW_SND): Remove.
1261
630ed6b9
TT
12622020-09-29 Tom Tromey <tom@tromey.com>
1263
1264 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1265 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1266 Update.
1267 * dwarf2/attribute.h (struct attribute) <as_signature,
1268 set_signature>: New methods.
1269 (DW_SIGNATURE): Remove.
1270
9d2246fc
TT
12712020-09-29 Tom Tromey <tom@tromey.com>
1272
1273 * dwarf2/read.c (read_call_site_scope)
1274 (handle_data_member_location, dwarf2_add_member_fn)
1275 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1276 (partial_die_info::read, read_attribute_value)
1277 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1278 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1279 (dwarf2_symbol_mark_computed): Update.
1280 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1281 methods.
1282 (DW_BLOCK): Remove.
1283 * dwarf2/attribute.c (attribute::form_is_block): Add
1284 DW_FORM_data16.
1285
c6481205
TT
12862020-09-29 Tom Tromey <tom@tromey.com>
1287
1288 * dwarf2/read.c (read_cutu_die_from_dwo)
1289 (read_attribute_reprocess, read_attribute_value, read_attribute)
1290 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1291 (dwarf2_fetch_constant_bytes): Update.
1292 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1293 <set_string_noncanonical, set_string_canonical>: New methods.
1294 <string_is_canonical>: Update comment.
1295 <canonical_string_p>: Add assert.
1296 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1297 * dwarf2/attribute.c (attribute::form_is_string): New method.
1298 (attribute::string): Use it.
1299
3b64bf15
TT
13002020-09-29 Tom Tromey <tom@tromey.com>
1301
1302 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1303 (dump_die_shallow): Use canonical_string_p.
1304 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1305 method.
1306
2c830f54
TT
13072020-09-29 Tom Tromey <tom@tromey.com>
1308
1309 * dwarf2/read.c (partial_die_info::read)
1310 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1311 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1312 attribute::as_string.
1313
6c412691
TT
13142020-09-29 Tom Tromey <tom@tromey.com>
1315
1316 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1317 DW_ADDR.
1318 (attribute::string): Don't use DW_STRING.
1319 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1320 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1321
95f982e5
TT
13222020-09-29 Tom Tromey <tom@tromey.com>
1323
1324 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1325 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1326 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1327 * dwarf2/attribute.h (struct attribute): Rename methods.
1328 * dwarf2/attribute.c (attribute::as_address): Rename from
1329 value_as_address.
1330 (attribute::as_string): Rename from value_as_string.
1331
f800b00e
TT
13322020-09-29 Tom Tromey <tom@tromey.com>
1333
1334 * dwarf2/read.c (partial_die_info::read) <case
1335 DW_AT_linkage_name>: Use value_as_string.
1336 (dwarf2_string_attr): Use value_as_string.
1337 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1338 method.
1339 * dwarf2/attribute.c (attribute::value_as_string): New method.
1340
de38d64a
PA
13412020-09-29 Pedro Alves <pedro@palves.net>
1342
1343 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1344 defined before using '#pragma GCC diagnostic' instead of checking
1345 __clang__.
1346
9aed480c
TT
13472020-09-28 Tom Tromey <tom@tromey.com>
1348
1349 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1350 (handle_signal_stop): Update.
1351 * procfs.c (procfs_target::insert_watchpoint): Update.
1352 * target.h (target_have_steppable_watchpoint): Now a function.
1353
8a3ecb79
TT
13542020-09-28 Tom Tromey <tom@tromey.com>
1355
1356 * infrun.c (set_schedlock_func): Update.
1357 * target.h (target_can_lock_scheduler): Now a function.
1358
55f6301a
TT
13592020-09-28 Tom Tromey <tom@tromey.com>
1360
1361 * inferior.h (class inferior) <has_execution>: Update.
1362 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1363 * valops.c (find_function_in_inferior)
1364 (value_allocate_space_in_inferior): Update.
1365 * top.c (kill_or_detach): Update.
1366 * target.c (target_preopen, set_target_permissions): Update.
1367 (target_has_execution_current): Remove.
1368 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1369 Update.
1370 * solib.c (update_solib_list, reload_shared_libraries): Update.
1371 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1372 * solib-dsbt.c (enable_break): Update.
1373 * score-tdep.c (score7_fetch_inst): Update.
1374 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1375 Update.
1376 * remote.c (remote_target::start_remote)
1377 (remote_target::remote_check_symbols, remote_target::open_1)
1378 (remote_target::remote_detach_1, remote_target::verify_memory)
1379 (remote_target::xfer_partial, remote_target::read_description)
1380 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1381 * record-full.c (record_full_open_1): Update.
1382 * record-btrace.c (record_btrace_target_open): Update.
1383 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1384 (value_nsstring): Update.
1385 * linux-thread-db.c (add_thread_db_info)
1386 (thread_db_find_new_threads_silently, check_thread_db_callback)
1387 (try_thread_db_load_1, record_thread): Update.
1388 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1389 Update.
1390 * linux-fork.c (checkpoint_command): Update.
1391 * infrun.c (set_non_stop, set_observer_mode)
1392 (check_multi_target_resumption, for_each_just_stopped_thread)
1393 (maybe_remove_breakpoints, normal_stop)
1394 (class infcall_suspend_state): Update.
1395 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1396 (info_program_command, attach_command): Update.
1397 * infcall.c (call_function_by_hand_dummy): Update.
1398 * inf-loop.c (inferior_event_handler): Update.
1399 * gcore.c (gcore_command, derive_heap_segment): Update.
1400 * exec.c (exec_file_command): Update.
1401 * eval.c (evaluate_subexp): Update.
1402 * compile/compile.c (compile_to_object): Update.
1403 * cli/cli-dump.c (restore_command): Update.
1404 * breakpoint.c (update_watchpoint)
1405 (update_inserted_breakpoint_locations)
1406 (insert_breakpoint_locations, get_bpstat_thread): Update.
1407 * target.h (target_has_execution): Remove macro.
1408 (target_has_execution_current): Don't declare.
1409 (target_has_execution): Rename from target_has_execution_1. Add
1410 argument default.
1411
05374cfd
TT
14122020-09-28 Tom Tromey <tom@tromey.com>
1413
1414 * mi/mi-main.c (exec_reverse_continue)
1415 (mi_cmd_list_target_features): Update.
1416 * infrun.c (set_exec_direction_func): Update.
1417 * target.c (default_execution_direction): Update.
1418 * reverse.c (exec_reverse_once): Update.
1419 * target.h (target_can_execute_reverse): Now a function.
1420
9dccd06e
TT
14212020-09-28 Tom Tromey <tom@tromey.com>
1422
1423 * tui/tui-regs.c (tui_get_register)
1424 (tui_data_window::show_registers): Update.
1425 * thread.c (scoped_restore_current_thread::restore)
1426 (scoped_restore_current_thread::scoped_restore_current_thread):
1427 Update.
1428 * regcache-dump.c (regcache_print): Update.
1429 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1430 Update.
1431 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1432 * mep-tdep.c (current_me_module, current_options): Update.
1433 * linux-thread-db.c (thread_db_load): Update.
1434 * infcmd.c (registers_info, info_vector_command)
1435 (info_float_command): Update.
1436 * ia64-tdep.c (ia64_frame_prev_register)
1437 (ia64_sigtramp_frame_prev_register): Update.
1438 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1439 * gcore.c (derive_stack_segment): Update.
1440 * frame.c (get_current_frame, has_stack_frames): Update.
1441 * findvar.c (language_defn::read_var_value): Update.
1442 * arm-tdep.c (arm_pc_is_thumb): Update.
1443 * target.c (target_has_registers): Rename from
1444 target_has_registers_1.
1445 * target.h (target_has_registers): Remove macro.
1446 (target_has_registers): Rename from target_has_registers_1.
1447
841de120
TT
14482020-09-28 Tom Tromey <tom@tromey.com>
1449
1450 * windows-tdep.c (tlb_make_value): Update.
1451 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1452 * thread.c (scoped_restore_current_thread::restore)
1453 (scoped_restore_current_thread::scoped_restore_current_thread)
1454 (thread_command): Update.
1455 * stack.c (backtrace_command_1, frame_apply_level_command)
1456 (frame_apply_all_command, frame_apply_command): Update.
1457 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1458 Update.
1459 * gcore.c (derive_stack_segment): Update.
1460 * frame.c (get_current_frame, has_stack_frames): Update.
1461 * auxv.c (info_auxv_command): Update.
1462 * ada-tasks.c (ada_build_task_list): Update.
1463 * target.c (target_has_stack): Rename from target_has_stack_1.
1464 * target.h (target_has_stack): Remove macro.
1465 (target_has_stack): Rename from target_has_stack_1.
1466
a739972c
TT
14672020-09-28 Tom Tromey <tom@tromey.com>
1468
1469 * target.c (target_has_memory): Rename from target_has_memory_1.
1470 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1471 * thread.c (scoped_restore_current_thread::restore)
1472 (scoped_restore_current_thread::scoped_restore_current_thread):
1473 Update.
1474 * frame.c (get_current_frame, has_stack_frames): Update.
1475 * target.h (target_has_memory): Remove macro.
1476 (target_has_memory): Rename from target_has_memory_1.
1477
5b8a4776
TT
14782020-09-28 Tom Tromey <tom@tromey.com>
1479
1480 * target.c (target_has_all_memory_1): Remove.
1481 * target.h (target_has_all_memory): Remove define.
1482 (target_has_all_memory_1): Don't declare.
1483
bd356ec6
SM
14842020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1485
1486 * ser-base.c: Adjust comments formatting.
1487
2c72d5e5
TT
14882020-09-27 Tom Tromey <tom@tromey.com>
1489
1490 PR tui/25342:
1491 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1492
35a98237
TT
14932020-09-27 Tom Tromey <tom@tromey.com>
1494
1495 PR tui/25342:
1496 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1497
9e820dec
TT
14982020-09-27 Tom Tromey <tom@tromey.com>
1499
1500 * unittests/tui-selftests.c: Update.
1501 * tui/tui-winsource.h (struct tui_source_window_base)
1502 <extra_margin, show_line_number, refresh_pad>: New methods.
1503 <m_max_length, m_pad>: New members.
1504 (tui_copy_source_line): Update.
1505 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1506 first_col, line_width, ndigits parameters. Add length.
1507 (tui_source_window_base::show_source_line): Write to pad. Line
1508 number now 0-based.
1509 (tui_source_window_base::refresh_pad): New method.
1510 (tui_source_window_base::show_source_content): Write to pad. Call
1511 refresh_pad.
1512 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1513 not refill.
1514 (tui_source_window_base::update_exec_info): Call
1515 show_line_number.
1516 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1517 method.
1518 <m_digits>: New member.
1519 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1520 and m_max_length.
1521 (tui_source_window::show_line_number): New method.
1522 * tui/tui-io.h (tui_puts): Fix comment.
1523 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1524 m_max_length.
1525
c15c15c8
TT
15262020-09-27 Tom Tromey <tom@tromey.com>
1527
1528 * tui/tui-winsource.c
1529 (tui_source_window_base::set_is_exec_point_at): Don't call
1530 show_source_line.
1531
149830c1
TT
15322020-09-27 Tom Tromey <tom@tromey.com>
1533
1534 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1535 method.
1536 <erase>: Update.
1537 <cursor_x, cursor_y>: Remove.
1538 <m_inner_window>: New member.
1539 (tui_py_window::rerender): Create inner window.
1540 (tui_py_window::output): Write to inner window.
1541
8f9929bb
GR
15422020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1543
1544 PR python/26586
1545 * cli/cli-script.c (execute_control_commands): don't set
1546 instream to nullptr here as this breaks the from_tty argument
1547 to gdb.execute in Python.
1548 (execute_user_command): set instream to nullptr here instead.
1549
956bdb59
SM
15502020-09-25 Simon Marchi <simon.marchi@efficios.com>
1551
1552 * infrun.h (infrun_debug_printf): Fix formatting.
1553 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1554
3b93626b
SJ
15552020-09-25 Saagar Jha <saagar@saagarjha.com>
1556
1557 * compile/compile-object-load.h (struct munmap_list): Add
1558 explicitly-defined move constructor.
1559
b551a89f
TT
15602020-09-24 Tom Tromey <tromey@adacore.com>
1561
1562 PR tui/26638:
1563 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1564 method.
1565 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1566 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1567 (tui_prev_win): Rewrite.
1568
99bb393f
HD
15692020-09-23 Hannes Domani <ssbssa@yahoo.de>
1570
1571 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1572 in WOW64 processes as SIGINT.
1573 * nat/windows-nat.h: Make wow64_process a shared variable.
1574 * windows-nat.c: Remove static wow64_process variable.
1575
20a5fcbd
TT
15762020-09-23 Tom Tromey <tom@tromey.com>
1577
1578 PR symtab/25470:
1579 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1580 offset and bit size.
1581 * printcmd.c (print_scalar_formatted): Handle zero-length
1582 integer.
1583 (print_scalar_formatted): Use bit_size_differs_p.
1584 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1585 constant.
1586 (union type_specific): <int_stuff>: New member.
1587 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1588 methods.
1589 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1590 TYPE_SPECIFIC_FIELD.
1591 (recursive_dump_type, copy_type_recursive): Update.
1592 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1593 DW_AT_data_bit_offset.
1594
bac51ab7
TT
15952020-09-23 Tom Tromey <tom@tromey.com>
1596
1597 * utils.h (class gdb_argv): Add move operators.
1598 <append>: New methods.
1599 * compile/compile.c (build_argc_argv): Remove.
1600 (compile_args_argc): Remove.
1601 (compile_args_argv): Change type.
1602 (set_compile_args): Simplify.
1603 (append_args): Remove.
1604 (filter_args): Remove argcp parameter.
1605 (get_args): Return gdb_argv. Simplify.
1606 (compile_to_object): Update.
1607
92677124
TT
16082020-09-23 Tom Tromey <tom@tromey.com>
1609
1610 * compile/compile-object-run.c (do_module_cleanup)
1611 <~do_module_cleanup> :Remove.
1612 (do_module_cleanup): Update.
1613 * compile/compile-object-load.h (struct munmap_list): Add move
1614 assignment operator.
1615 <source_file>: Now a std::string.
1616 <munmap_list>: Rename. No longer a pointer.
1617 * compile/compile-object-load.c (struct setup_sections_data): Add
1618 constructor.
1619 <setup_one_section>: Declare.
1620 <munmap_list>: Move earlier.
1621 <m_bfd>: New member.
1622 <m_last_size, m_last_section_first, m_last_prot,
1623 m_last_max_alignment>: Rename, add initializers where needed.
1624 (setup_sections_data::setup_one_section): Rename from
1625 setup_sections. Update.
1626 (compile_object_load): Update. Don't use bfd_map_over_sections.
1627
e616f60a
TT
16282020-09-23 Tom Tromey <tom@tromey.com>
1629
1630 * compile/compile-object-run.c (struct do_module_cleanup): Add
1631 parameters to constructor. Update destructor.
1632 <source_file, scope, scope_data, out_value_type, out_value_addr,
1633 munmap_list_head, objfile_name_string>: Remove.
1634 <module>: New member.
1635 (do_module_cleanup): Update.
1636 (compile_object_run): Update.
1637
e947a848
TT
16382020-09-23 Tom Tromey <tom@tromey.com>
1639
1640 * compile/compile.c (eval_compile_command): Update.
1641 * compile/compile-object-run.h (compile_object_run): Take a
1642 compile_module_up.
1643 * compile/compile-object-run.c (compile_object_run): Take a
1644 compile_module_up.
1645 * compile/compile-object-load.h (struct compile_module): Add
1646 constructor, destructor.
1647 (compile_module_up): New typedef.
1648 (compile_object_load): Return compile_object_up.
1649 * compile/compile-object-load.c (compile_object_load): Return
1650 compile_module_up.
1651
0dbf6ee6
TT
16522020-09-23 Tom Tromey <tom@tromey.com>
1653
1654 * compile/compile-object-run.c (struct do_module_cleanup): Add
1655 constructor, destructor.
1656 <objfile_name_string>: Don't use struct hack.
1657 (do_module_cleanup): Use delete.
1658 (compile_object_run): Use new.
1659
ebe824f5
TT
16602020-09-23 Tom Tromey <tom@tromey.com>
1661
1662 * compile/compile-cplus-types.c
1663 (compile_cplus_convert_struct_or_union): Use std::vector.
1664 (compile_cplus_convert_func): Likewise.
1665 * compile/compile-c-types.c (convert_func): Use std::vector.
1666
5dd918d9
TT
16672020-09-21 Tom Tromey <tromey@adacore.com>
1668
1669 * sparc-tdep.c (sparc32_skip_prologue): Use
1670 skip_prologue_using_sal.
1671
5486c517
TT
16722020-09-19 Tom Tromey <tom@tromey.com>
1673
1674 * symfile.c (add_section_size_callback): Remove.
1675 (load_one_section): Rename from load_section_callback. Change
1676 parameters.
1677 (generic_load): Use foreach.
1678
8a6bb1d1
TT
16792020-09-19 Tom Tromey <tom@tromey.com>
1680
1681 * exec.c (add_to_section_table): Remove.
1682 (build_section_table): Use foreach.
1683
08f93a1a
TT
16842020-09-19 Tom Tromey <tom@tromey.com>
1685
1686 * elfread.c (elf_locate_sections): Change parameters.
1687 (elf_symfile_read): Use foreach.
1688
03cd72b8
TT
16892020-09-19 Tom Tromey <tom@tromey.com>
1690
1691 * cli/cli-dump.c (struct callback_data): Remove.
1692 (restore_one_section): Rename from restore_section_callback.
1693 Change parameters.
1694 (restore_binary_file): Change parameters.
1695 (restore_command): Use foreach.
1696
f4f2b85f
TT
16972020-09-19 Tom Tromey <tom@tromey.com>
1698
1699 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1700 (gcore_copy_callback): Likewise.
1701 (gcore_memory_sections): Use foreach.
1702
b35c1d1c
TT
17032020-09-19 Tom Tromey <tom@tromey.com>
1704
1705 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1706 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1707 parameters.
1708 (generic_elf_osabi_sniffer): Use foreach.
1709 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1710 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1711
5bb6e9dd
TT
17122020-09-19 Tom Tromey <tom@tromey.com>
1713
1714 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1715 (dwarf2_get_dwz_file): Use foreach.
1716 (dwarf2_locate_dwo_sections): Change parameters.
1717 (open_and_init_dwo_file): Use foreach.
1718 (dwarf2_locate_common_dwp_sections): Change parameters.
1719 (open_and_init_dwp_file): Use foreach.
1720
ad7277da
TT
17212020-09-19 Tom Tromey <tom@tromey.com>
1722
1723 * symfile.h: (find_lowest_section): Don't declare.
1724 * symfile.c (find_lowest_section): Now static. Change
1725 parameters.
1726 (struct place_section_arg): Remove.
1727 (place_section): Change parameters.
1728 (addr_info_make_relative): Use foreach.
1729 (symfile_dummy_outputs): Remove.
1730 (default_symfile_relocate): Use foreach.
1731
cb814f2e
TT
17322020-09-19 Tom Tromey <tom@tromey.com>
1733
1734 * objfiles.c (add_to_objfile_sections): Rename from
1735 add_to_objfile_sections_full.
1736 (add_to_objfile_sections): Remove.
1737 (build_objfile_section_table): Use foreach.
1738
3cabfd26
TT
17392020-09-19 Tom Tromey <tom@tromey.com>
1740
1741 * stap-probe.c (get_stap_base_address_1): Remove.
1742 (get_stap_base_address): Use foreach.
1743
1ce51eb5
TT
17442020-09-19 Tom Tromey <tom@tromey.com>
1745
1746 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1747 parameters.
1748 (gdb_bfd_close_or_warn): Use foreach.
1749
a190fabb
TT
17502020-09-19 Tom Tromey <tom@tromey.com>
1751
1752 * corelow.c (add_to_thread_list): Change parameters.
1753 (core_target_open): Use foreach.
1754
cafb0d81
TT
17552020-09-19 Tom Tromey <tom@tromey.com>
1756
1757 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1758 existing function.
1759
c8d5abea
AB
17602020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1761
1762 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1763 for arrays.
1764
6d816919
AB
17652020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1766
1767 * eval.c: Remove 'f-lang.h' include.
1768 (value_f90_subarray): Moved to f-lang.c.
1769 (eval_call): Renamed to...
1770 (evaluate_subexp_do_call): ...this, is no longer static, header
1771 comment moved into header file.
1772 (evaluate_funcall): Update call to eval_call.
1773 (skip_undetermined_arglist): Moved to f-lang.c.
1774 (fortran_value_subarray): Likewise.
1775 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1776 moved to evaluate_subexp_f.
1777 (calc_f77_array_dims): Moved to f-lang.c
1778 * expprint.c (print_subexp_funcall): New function.
1779 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1780 moved to print_subexp_f, OP_FUNCALL uses new function.
1781 (dump_subexp_body_funcall): New function.
1782 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1783 moved to dump_subexp_f, OP_FUNCALL uses new function.
1784 * expression.h (evaluate_subexp_do_call): Declare.
1785 * f-lang.c (value_f90_subarray): Moved from eval.c.
1786 (skip_undetermined_arglist): Likewise.
1787 (calc_f77_array_dims): Likewise.
1788 (fortran_value_subarray): Likewise.
1789 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1790 (operator_length_f): Likewise.
1791 (print_subexp_f): Likewise.
1792 (dump_subexp_body_f): Likewise.
1793 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1794 declaration of this operation to here.
1795 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1796 support moved to operator_length_f.
1797 * parser-defs.h (dump_subexp_body_funcall): Declare.
1798 (print_subexp_funcall): Declare.
1799 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1800 fortran-operator.def.
1801
8c37706a
AB
18022020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1803
1804 * eval.c (fortran_value_subarray): New function, content is taken
1805 from...
1806 (evaluate_subexp_standard): ...here, in two places. Now arrays
1807 and strings both call the new function.
1808 (calc_f77_array_dims): Add header comment, handle strings.
1809
14f9473c
VC
18102020-09-18 Victor Collod <vcollod@nvidia.com>
1811
1812 PR gdb/26635
1813 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1814 (i386_analyze_prologue): Call i386_skip_endbr.
1815
b60cea74
TT
18162020-09-18 Tom Tromey <tromey@adacore.com>
1817
1818 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1819 (windows_nat_target::wait): Update.
1820 * target/wait.h (enum target_wait_flag): New. Use
1821 DEF_ENUM_FLAGS_TYPE.
1822 * target/target.h (target_wait): Change type of options.
1823 * target.h (target_options_to_string, default_target_wait):
1824 Update.
1825 (struct target_ops) <wait>: Change type of options.
1826 * target.c (target_wait, default_target_wait, do_option): Change
1827 type of "options".
1828 (target_options_to_string): Likewise.
1829 * target-delegates.c: Rebuild.
1830 * target-debug.h (target_debug_print_target_wait_flags): Rename
1831 from target_debug_print_options.
1832 * sol-thread.c (class sol_thread_target) <wait>: Update.
1833 (sol_thread_target::wait): Update.
1834 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1835 (rs6000_nat_target::wait): Update.
1836 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1837 Update.
1838 (remote_target::wait_ns, remote_target::wait_as): Change type of
1839 "options".
1840 (remote_target::wait): Update.
1841 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1842 (gdbsim_target::wait): Update.
1843 * record-full.c (class record_full_base_target) <wait>: Update.
1844 (record_full_wait_1): Change type of "options".
1845 (record_full_base_target::wait): Update.
1846 * record-btrace.c (class record_btrace_target) <wait>: Update.
1847 (record_btrace_target::wait): Update.
1848 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1849 Update.
1850 (ravenscar_thread_target::wait): Update.
1851 * procfs.c (class procfs_target) <wait>: Update.
1852 (procfs_target::wait): Update.
1853 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1854 * obsd-nat.c (obsd_nat_target::wait): Update.
1855 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1856 (nto_procfs_target::wait): Update.
1857 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1858 * nbsd-nat.c (nbsd_wait): Change type of "options".
1859 (nbsd_nat_target::wait): Update.
1860 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1861 (thread_db_target::wait): Update.
1862 * linux-nat.h (class linux_nat_target) <wait>: Update.
1863 * linux-nat.c (linux_nat_target::wait): Update.
1864 (linux_nat_wait_1): Update.
1865 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1866 "options".
1867 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1868 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1869 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1870 (go32_nat_target::wait): Update.
1871 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1872 * gnu-nat.c (gnu_nat_target::wait): Update.
1873 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1874 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1875 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1876 * darwin-nat.c (darwin_nat_target::wait): Update.
1877 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1878 (bsd_uthread_target::wait): Update.
1879 * aix-thread.c (class aix_thread_target) <wait>: Update.
1880 (aix_thread_target::wait): Update.
1881
0295dde6
AB
18822020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1883
1884 * compile/compile-object-run.c (create_copied_type_recursive): New
1885 function.
1886 (compile_object_run): Use new function.
1887
d3483b43
JT
18882020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1889
1890 * NEWS: Mention x86_64 Cygwin core file support.
1891
e7d612ad
JT
18922020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1893
1894 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1895 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1896
aff9d387
JT
18972020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1898
62a5151b
JT
1899 * windows-tdep.h: Add prototypes.
1900 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1901 (i386_windows_core_pid_to_str): Move and rename ...
1902 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1903 (windows_core_pid_to_str): ... and here.
1904 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1905
19062020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1907 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1908 (amd64_windows_init_abi_common): ... and register.
1909
7d155da3
JT
19102020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1911
1912 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1913 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1914
e8ef12b9
PA
19152020-09-18 Pedro Alves <pedro@palves.net>
1916
1917 PR gdb/26631
1918 * thread.c (thread_find_command): Switch inferior before calling
1919 target methods.
1920
c1e1314d
TT
19212020-09-17 Tom Tromey <tromey@adacore.com>
1922
1923 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1924 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1925 (tdesc_arch_data_up): New typedef.
1926 (tdesc_use_registers, tdesc_data_alloc): Update.
1927 (tdesc_data_cleanup): Don't declare.
1928 * target-descriptions.c (tdesc_data_alloc): Return a
1929 tdesc_arch_data_up.
1930 (tdesc_arch_data_deleter::operator()): Rename from
1931 tdesc_data_cleanup. Change argument type.
1932 (tdesc_use_registers): Change early_data to an rvalue reference.
1933 (tdesc_use_registers): Don't use delete.
1934 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1935 * s390-tdep.c (s390_gdbarch_init): Update.
1936 * rx-tdep.c (rx_gdbarch_init): Update.
1937 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1938 * riscv-tdep.c (riscv_gdbarch_init): Update.
1939 * or1k-tdep.c (or1k_gdbarch_init): Update.
1940 * nios2-tdep.c (nios2_gdbarch_init): Update.
1941 * nds32-tdep.c (nds32_gdbarch_init): Update.
1942 * mips-tdep.c (mips_gdbarch_init): Update.
1943 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1944 * m68k-tdep.c (m68k_gdbarch_init): Update.
1945 * i386-tdep.c (i386_gdbarch_init): Update.
1946 * arm-tdep.c (arm_gdbarch_init): Update.
1947 * arc-tdep.c (arc_tdesc_init): Update.
1948 (arc_gdbarch_init): Update.
1949 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1950
0363df3d
HD
19512020-09-17 Hannes Domani <ssbssa@yahoo.de>
1952
1953 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1954 for WOW64 processes.
1955
280a9412
TT
19562020-09-17 Tom Tromey <tom@tromey.com>
1957
1958 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1959
6108fd18
TT
19602020-09-17 Tom Tromey <tom@tromey.com>
1961
1962 * value.c (preserve_values): Update.
1963 * python/py-type.c (save_objfile_types): Update.
1964 * guile/scm-type.c (save_objfile_types): Update.
1965 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1966 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1967 * compile/compile-object-run.c (compile_object_run): Update.
1968
fa9b1164
TT
19692020-09-17 Tom Tromey <tom@tromey.com>
1970
1971 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1972 Remove.
1973 <m_table>: Now htab_up.
1974 * typeprint.c (typedef_hash_table::recursively_update)
1975 (typedef_hash_table::add_template_parameters)
1976 (typedef_hash_table::typedef_hash_table): Update.
1977 (typedef_hash_table::~typedef_hash_table): Remove.
1978 (typedef_hash_table::typedef_hash_table)
1979 (typedef_hash_table::find_global_typedef)
1980 (typedef_hash_table::find_typedef): Update.
1981
eb53f105
TT
19822020-09-17 Tom Tromey <tom@tromey.com>
1983
1984 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1985
7a8a5d47
TT
19862020-09-17 Tom Tromey <tom@tromey.com>
1987
1988 * linespec.c (class decode_compound_collector)
1989 <~decode_compound_collector>: Remove.
1990 <m_unique_syms>: Now htab_up.
1991 (decode_compound_collector::operator ()): Update.
1992 (class symtab_collector) <~symtab_collector>: Remove.
1993 <m_symtab_table>: Now htab_up.
1994 (symtab_collector::operator ()): Update.
1995
99032cfc
TT
19962020-09-17 Tom Tromey <tom@tromey.com>
1997
1998 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1999 (filename_seen_cache::clear): Update.
2000 (~filename_seen_cache): Remove.
2001 (filename_seen_cache::seen): Update.
2002 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2003 htab_up.
2004 <~filename_seen_cache>: Remove.
2005 <traverse>: Update.
2006
32580f6d
TT
20072020-09-17 Tom Tromey <tom@tromey.com>
2008
2009 * completer.c (completion_tracker::discard_completions)
2010 (completion_tracker::~completion_tracker)
2011 (completion_tracker::maybe_add_completion)
2012 (completion_tracker::remove_completion)
2013 (completion_tracker::recompute_lowest_common_denominator)
2014 (completion_tracker::build_completion_result): Update.
2015 * completer.h (class completion_tracker) <have_completions>:
2016 Update.
2017 <m_entries_hash>: Now htab_up.
2018
c1fb9836
TT
20192020-09-17 Tom Tromey <tom@tromey.com>
2020
2021 * breakpoint.c (ambiguous_names_p): Use htab_up.
2022
88f07206
TT
20232020-09-17 Tom Tromey <tom@tromey.com>
2024
2025 * auto-load.c (struct auto_load_pspace_info)
2026 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2027 <loaded_script_files, loaded_script_texts>: Change type to
2028 htab_up.
2029 (~auto_load_pspace_info) Remove.
2030 (init_loaded_scripts_info, maybe_add_script_file)
2031 (maybe_add_script_text, auto_load_info_scripts): Update.
2032
9519b2ee
TT
20332020-09-17 Tom Tromey <tromey@adacore.com>
2034
2035 * c-exp.y (name_obstack): Now static.
2036
d2cd4113
CC
20372020-09-17 Chungyi Chi <demonic@csie.io>
2038
2039 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2040
b650a282
SM
20412020-09-16 Simon Marchi <simon.marchi@efficios.com>
2042
2043 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2044 (add_solib_catchpoint): Likewise.
2045 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2046 to bool.
2047 (add_solib_catchpoint): Change int parameter/variable to bool.
2048 (catch_load_or_unload): Likewise.
2049 (init_catchpoint): Likewise.
2050 (create_fork_vfork_event_catchpoint): Likewise.
2051 (catch_fork_command_1): Likewise.
2052 (catch_exec_command_1): Likewise.
2053
4d0bcfcf
SM
20542020-09-16 Simon Marchi <simon.marchi@efficios.com>
2055
2056 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2057 Change instance_flags to m_instance_flags.
2058
fe830662
TT
20592020-09-16 Tom Tromey <tromey@adacore.com>
2060
2061 PR gdb/26598:
2062 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2063
fe5ddfc3
JB
20642020-09-16 John Baldwin <jhb@FreeBSD.org>
2065
2066 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2067 PL_FLAG_EXEC.
2068 (fbsd_nat_target::insert_exec_catchpoint)
2069 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2070 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2071 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2072
e911c666
JB
20732020-09-16 John Baldwin <jhb@FreeBSD.org>
2074
2075 * configure.ac: Remove check for kinfo_getvmmap().
2076 * configure, config.in: Regenerate.
2077 * fbsd-nat.c (fbsd_read_mapping): Remove
2078 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2079 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2080 kinfo_get_vmmap() are always present.
2081
1f17d372
JB
20822020-09-16 John Baldwin <jhb@FreeBSD.org>
2083
2084 * fbsd-nat.c: Always include support for
2085 TARGET_OBJECT_SIGNAL_INFO.
2086
bcb1da7f
JB
20872020-09-16 John Baldwin <jhb@FreeBSD.org>
2088
2089 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2090 sysctl and remove procfs fallback.
2091
5515f729
JB
20922020-09-16 John Baldwin <jhb@FreeBSD.org>
2093
2094 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2095 * fbsd-nat.h: Likewise.
2096
da1df1db
TBA
20972020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2098
2099 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2100 argument.
2101
0e25e767
AB
21022020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2103
2104 * ada-lang.c (ada_language_data): Delete.
2105 (ada_language): Remove references to ada_language_data.
2106 * c-lang.c (c_language_data): Delete.
2107 (c_language): Remove references to c_language_data.
2108 (cplus_language_data): Delete.
2109 (cplus_language): Remove references to cplus_language_data.
2110 (asm_language_data): Delete.
2111 (asm_language): Remove references to asm_language_data.
2112 (minimal_language_data): Delete.
2113 (minimal_language): Remove references to minimal_language_data.
2114 * d-lang.c (d_language_data): Delete.
2115 (d_language): Remove references to d_language_data.
2116 * f-lang.c (f_language_data): Delete.
2117 (f_language): Remove references to f_language_data.
2118 * go-lang.c (go_language_data): Delete.
2119 (go_language): Remove references to go_language_data.
2120 * language.c (unknown_language_data): Delete.
2121 (unknown_language): Remove references to unknown_language_data.
2122 (auto_language_data): Delete.
2123 (auto_language): Remove references to auto_language_data.
2124 * language.h (language_data): Delete struct.
2125 (language_defn): No longer inherit from language_data.
2126 * m2-lang.c (m2_language_data): Delete.
2127 (m2_language): Remove references to m2_language_data.
2128 * objc-lang.c (objc_language_data): Delete.
2129 (objc_language): Remove references to objc_language_data.
2130 * opencl-lang.c (opencl_language_data): Delete.
2131 (opencl_language): Remove references to opencl_language_data.
2132 * p-lang.c (pascal_language_data): Delete.
2133 (pascal_language): Remove references to pascal_language_data.
2134 * rust-lang.c (rust_language_data): Delete.
2135 (rust_language): Remove references to rust_language_data.
2136
b7c6e27d
AB
21372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2138
2139 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2140 initializer.
2141 (ada_language::opcode_print_table): New member function.
2142 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2143 (c_language::opcode_print_table): New member function.
2144 (cplus_language_data): Remove la_op_print_tab initializer.
2145 (cplus_language::opcode_print_table): New member function.
2146 (asm_language_data): Remove la_op_print_tab initializer.
2147 (asm_language::opcode_print_table): New member function.
2148 (minimal_language_data): Remove la_op_print_tab initializer.
2149 (minimal_language::opcode_print_table): New member function.
2150 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2151 (d_language::opcode_print_table): New member function.
2152 * expprint.c (print_subexp_standard): Update call to
2153 opcode_print_table.
2154 (op_string): Likewise.
2155 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2156 (f_language::opcode_print_table): New member function.
2157 * go-lang.c (go_language_data): Remove la_op_print_tab
2158 initializer.
2159 (go_language::opcode_print_table): New member function.
2160 * language.c (unknown_language_data): Remove la_op_print_tab
2161 initializer.
2162 (unknown_language::opcode_print_table): New member function.
2163 (auto_language_data): Remove la_op_print_tab initializer.
2164 (auto_language::opcode_print_table): New member function.
2165 * language.h (language_data): Remove la_op_print_tab field.
2166 (language_defn::opcode_print_table): Declare new member function.
2167 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2168 initializer.
2169 (m2_language::opcode_print_table): New member function.
2170 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2171 initializer.
2172 (objc_language::opcode_print_table): New member function.
2173 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2174 initializer.
2175 (opencl_language::opcode_print_table): New member function.
2176 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2177 initializer.
2178 (pascal_language::opcode_print_table): New member function.
2179 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2180 initializer.
2181 (rust_language::opcode_print_table): New member function.
2182
5aba6ebe
AB
21832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2184
2185 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2186 (ada_language::expression_ops): New member function.
2187 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2188 (c_language::expression_ops): New member function.
2189 (cplus_language_data): Remove la_exp_desc initializer.
2190 (cplus_language::expression_ops): New member function.
2191 (asm_language_data): Remove la_exp_desc initializer.
2192 (asm_language::expression_ops): New member function.
2193 (minimal_language_data): Remove la_exp_desc initializer.
2194 (minimal_language::expression_ops): New member function.
2195 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2196 (d_language::expression_ops): New member function.
2197 * eval.c (evaluate_subexp): Update call to expression_ops.
2198 * expprint.c (print_subexp): Likewise.
2199 (op_name): Likewise.
2200 (dump_subexp_body): Likewise.
2201 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2202 (f_language::expression_ops): New member function.
2203 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2204 (go_language::expression_ops): New member function.
2205 * language.c (language_defn::expression_ops): New function.
2206 (unknown_language_data): Remove la_exp_desc initializer.
2207 (auto_language_data): Likewise.
2208 * language.h (language_data): Remove la_exp_desc field.
2209 (language_defn::expression_ops): Declare new member function.
2210 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2211 (m2_language::expression_ops): New member function.
2212 * objc-lang.c (objc_language_data): Remove la_exp_desc
2213 initializer.
2214 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2215 initializer.
2216 (opencl_language::expression_ops): New member function.
2217 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2218 * parse.c (operator_length): Update call to expression_ops.
2219 (exp_iterate): Likewise.
2220 * rust-lang.c (rust_language_data): Remove la_exp_desc
2221 initializer.
2222 (ruse_language::expression_ops): New member function.
2223
b63a3f3f
AB
22242020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2225
2226 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2227 initializer.
2228 (ada_language::varobj_ops): New member function.
2229 * c-lang.c (c_language_data): Remove la_varobj_ops
2230 initializer.
2231 (cplus_language_data): Likewise.
2232 (cplus_language::varobj_ops): New member function.
2233 (asm_language_data): Remove la_varobj_ops initializer.
2234 (minimal_language_data): Likewise.
2235 * d-lang.c (d_language_data): Likewise.
2236 * f-lang.c (f_language_data): Likewise.
2237 * go-lang.c (go_language_data): Likewise.
2238 * language.c (language_defn::varobj_ops): New function.
2239 (unknown_language_data): Remove la_varobj_ops
2240 initializer.
2241 (auto_language_data): Likewise.
2242 * language.h (language_data): Remove la_varobj_ops field.
2243 (language_defn::varobj_ops): Declare new member function.
2244 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2245 * objc-lang.c (objc_language_data): Likewise.
2246 * opencl-lang.c (opencl_language_data): Likewise.
2247 * p-lang.c (pascal_language_data): Likewise.
2248 * rust-lang.c (rust_language_data): Likewise.
2249 * varobj.c (varobj_create): Update call to varobj_ops.
2250 * varobj.h (default_varobj_ops): Delete define.
2251
1ac14a04
AB
22522020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2253
2254 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2255 initializer.
2256 * c-lang.c (c_language_data): Likewise.
2257 (c_language::macro_expansion): New member function.
2258 (cplus_language_data): Likewise.
2259 (cplus_language::macro_expansion): New member function.
2260 (asm_language_data): Likewise.
2261 (asm_language::macro_expansion): New member function.
2262 (minimal_language_data): Likewise.
2263 (minimal_language::macro_expansion): New member function.
2264 * d-lang.c (d_language_data): Remove la_macro_expansion
2265 initializer.
2266 * f-lang.c (f_language_data): Likewise.
2267 * go-lang.c (go_language_data): Likewise.
2268 * language.c (unknown_language_data): Likewise.
2269 (auto_language_data): Likewise.
2270 * language.h (language_data): Remove la_macro_expansion field.
2271 (language_defn::macro_expansion): New member function.
2272 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2273 initializer.
2274 * objc-lang.c (objc_language_data): Likewise.
2275 (objc_language::macro_expansion): New member function.
2276 * opencl-lang.c (opencl_language_data): Likewise.
2277 (opencl_language::macro_expansion): New member function.
2278 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2279 initializer.
2280 * rust-lang.c (rust_language_data): Likewise.
2281 * symtab.c (default_collect_symbol_completion_matches_break_on):
2282 Update call to macro_expansion.
2283
3a3440fb
AB
22842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2285
2286 * ada-lang.c (ada_language_data): Remove la_array_ordering
2287 initializer.
2288 * c-lang.c (c_language_data): Likewise.
2289 (cplus_language_data): Likewise.
2290 (asm_language_data): Likewise.
2291 (minimal_language_data): Likewise.
2292 * d-lang.c (d_language_data): Likewise.
2293 * dwarf2/read.c (read_array_order): Update for call to
2294 array_ordering.
2295 * f-lang.c (f_language_data): Remove la_array_ordering
2296 initializer.
2297 (f_language::array_ordering): New member function.
2298 * go-lang.c (go_language_data): Remove la_array_ordering
2299 initializer.
2300 * language.c (unknown_language_data): Likewise.
2301 (auto_language_data): Likewise.
2302 * language.h (language_data): Delete la_array_ordering field.
2303 (language_defn::array_ordering): New member function.
2304 * m2-lang.c (m2_language_data): Remove la_array_ordering
2305 initializer.
2306 * objc-lang.c (objc_language_data): Likewise.
2307 * opencl-lang.c (opencl_language_data): Likewise.
2308 * p-lang.c (pascal_language_data): Likewise.
2309 * rust-lang.c (rust_language_data): Likewise.
2310
0d201fa4
AB
23112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2312
2313 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2314 initializer.
2315 * c-lang.c (c_language_data): Likewise.
2316 (cplus_language_data): Likewise.
2317 (asm_language_data): Likewise.
2318 (minimal_language_data): Likewise.
2319 * d-lang.c (d_language_data): Likewise.
2320 * f-lang.c (f_language_data): Likewise.
2321 (f_language::case_sensitivity): New member function.
2322 * go-lang.c (go_language_data): Remove la_case_sensitivity
2323 initializer.
2324 * language.c (enum case_mode): Moved here from language.h.
2325 (case_mode): Make static.
2326 (show_case_command): Update for case_sensitivity being a method.
2327 (set_case_command): Likewise.
2328 (set_range_case): Likewise.
2329 (unknown_language_data): Remove la_case_sensitivity initializer.
2330 (auto_language_data): Likewise.
2331 * language.h (case_mode): Delete, move enum declaration to
2332 language.c.
2333 (language_data): Delete la_case_sensitivity field.
2334 (language_defn::case_sensitivity): New member function.
2335 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2336 initializer.
2337 * objc-lang.c (objc_language_data): Likewise.
2338 * opencl-lang.c (opencl_language_data): Likewise.
2339 * p-lang.c (pascal_language_data): Likewise.
2340 * rust-lang.c (rust_language_data): Likewise.
2341
efdf6a73
AB
23422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2343
2344 * ada-lang.c (ada_language_data): Remove la_range_check
2345 initializer.
2346 * c-lang.c (c_language_data): Likewise.
2347 (cplus_language_data): Likewise.
2348 (asm_language_data): Likewise.
2349 (minimal_language_data): Likewise.
2350 * d-lang.c (d_language_data): Likewise.
2351 * f-lang.c (f_language_data): Likewise.
2352 (f_language::range_checking_on_by_default): New member function.
2353 * go-lang.c (go_language_data): Remove la_range_check initializer.
2354 * language.c (enum range_mode): Moved here from language.h.
2355 (range_mode): Made static.
2356 (show_range_command): Update to use
2357 range_checking_on_by_default.
2358 (set_range_command): Likewise.
2359 (set_range_case): Likewise.
2360 (unknown_language_data): Remove la_range_check initializer.
2361 (auto_language_data): Likewise.
2362 * language.h (range_mode): Delete. Enum definition moved to
2363 language.c.
2364 (language_data): Remove la_range_check field.
2365 (language_defn::range_checking_on_by_default): New member
2366 function.
2367 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2368 (m2_language::range_checking_on_by_default): New member function.
2369 * objc-lang.c (objc_language_data): Remove la_range_check
2370 initializer.
2371 * opencl-lang.c (opencl_language_data): Likewise.
2372 * p-lang.c (pascal_language_data): Likewise.
2373 (pascal_language::range_checking_on_by_default): New member
2374 function.
2375 * rust-lang.c (rust_language_data): Remove la_range_check
2376 initializer.
2377 (rust_language::range_checking_on_by_default): New member
2378 function.
2379
bf92aec5
AB
23802020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2381
2382 * dwarf2/read.c (dwarf2_physname): Remove special case for
2383 language_go.
2384 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2385 member function.
2386
d3355e4d
AB
23872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2388
2389 * ada-lang.c (ada_language_data): Remove
2390 la_store_sym_names_in_linkage_form_p initializer.
2391 (ada_language::store_sym_names_in_linkage_form_p): New member
2392 function.
2393 * c-lang.c (c_language_data): Remove
2394 la_store_sym_names_in_linkage_form_p initializer.
2395 (c_language::store_sym_names_in_linkage_form_p): New member
2396 function.
2397 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2398 initializer.
2399 (asm_language_data): Likewise.
2400 (asm_language::store_sym_names_in_linkage_form_p): New member
2401 function.
2402 (minimal_language_data): Remove
2403 la_store_sym_names_in_linkage_form_p initializer.
2404 (minimal_language::store_sym_names_in_linkage_form_p): New member
2405 function.
2406 * d-lang.c (d_language_data): Remove
2407 la_store_sym_names_in_linkage_form_p initializer.
2408 * dwarf2/read.c (dwarf2_physname): Update call to
2409 store_sym_names_in_linkage_form_p.
2410 * f-lang.c (f_language_data): Remove
2411 la_store_sym_names_in_linkage_form_p initializer.
2412 * go-lang.c (go_language_data): Remove
2413 la_store_sym_names_in_linkage_form_p initializer.
2414 * language.c (unknown_language_data): Remove
2415 la_store_sym_names_in_linkage_form_p initializer.
2416 (unknown_language::store_sym_names_in_linkage_form_p): New member
2417 function.
2418 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2419 initializer.
2420 (auto_language::store_sym_names_in_linkage_form_p): New member
2421 function.
2422 * language.h (language_data): Remove
2423 la_store_sym_names_in_linkage_form_p member variable.
2424 (language_defn::store_sym_names_in_linkage_form_p): New member
2425 function.
2426 * m2-lang.c (m2_language_data): Remove
2427 la_store_sym_names_in_linkage_form_p initializer.
2428 * objc-lang.c (objc_language_data): Likewise.
2429 * opencl-lang.c (opencl_language_data): Likewise.
2430 * p-lang.c (pascal_language_data): Likewise.
2431 * rust-lang.c (rust_language_data): Likewise.
2432
22c12a6c
AB
24332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2434
2435 * ada-lang.c (ada_language_data): Remove string_lower_bound
2436 initializer.
2437 * c-lang.c (c_language_data): Likewise.
2438 (cplus_language_data): Likewise.
2439 (asm_language_data): Likewise.
2440 (minimal_language_data): Likewise.
2441 * d-lang.c (d_language_data): Likewise.
2442 * f-lang.c (f_language_data): Likewise.
2443 * go-lang.c (go_language_data): Likewise.
2444 * language.c (unknown_language_data): Likewise.
2445 (auto_language_data): Likewise.
2446 * language.h (language_data): Remove string_lower_bound field.
2447 (language_defn::string_lower_bound): New member function.
2448 * m2-lang.c (m2_language_data): Remove string_lower_bound
2449 initializer.
2450 (m2_language::string_lower_bound): New member function.
2451 * objc-lang.c (objc_language_data): Remove string_lower_bound
2452 initializer.
2453 * opencl-lang.c (opencl_language_data): Likewise.
2454 * p-lang.c (pascal_language_data): Likewise.
2455 * rust-lang.c (rust_language_data): Likewise.
2456 * valops.c (value_cstring): Update call to string_lower_bound.
2457 (value_string): Likewise.
2458 * value.c (allocate_repeated_value): Likewise.
2459
1c236ddd
AB
24602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2461
2462 * valops.c (value_repeat): Fix incorrect argument name in comment.
2463
67bd3fd5
AB
24642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2465
2466 * ada-lang.c (ada_language_data): Remove c_style_arrays
2467 initializer.
2468 (ada_language::c_style_arrays_p): New member fuction.
2469 * c-lang.c (c_language_data): Remove c_style_arrays
2470 initializer.
2471 (cplus_language_data): Likewise.
2472 (asm_language_data): Likewise.
2473 (minimal_language_data): Likewise.
2474 * d-lang.c (d_language_data): Likewise.
2475 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2476 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2477 (f_language::c_style_arrays_p): New member function.
2478 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2479 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2480 * language.c (unknown_language_data): Remove c_style_arrays
2481 initializer.
2482 (auto_language_data): Likewise.
2483 * language.h (language_data): Remove c_style_arrays field.
2484 (language_defn::c_style_arrays_p): New member function.
2485 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2486 (m2_language::c_style_arrays_p): New member function.
2487 * objc-lang.c (objc_language_data): Remove c_style_arrays
2488 initializer.
2489 * opencl-lang.c (opencl_language_data): Likewise.
2490 * p-lang.c (pascal_language_data): Likewise.
2491 * rust-lang.c (rust_language_data): Likewise.
2492 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2493 and update local variable to a bool.
2494 * valops.c (value_cast): Update call to c_style_arrays_p.
2495 (value_array): Likewise.
2496 * value.c (coerce_array): Likewise.
2497
85967615
AB
24982020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2499
2500 * ada-lang.c (ada_language_data): Remove la_language initializer.
2501 * c-lang.c (c_language_data): Likewise.
2502 (cplus_language_data): Likewise.
2503 (asm_language_data): Likewise.
2504 (minimal_language_data): Likewise.
2505 * d-lang.c (d_language_data): Likewise.
2506 * f-lang.c (f_language_data): Likewise.
2507 * go-lang.c (go_language_data): Likewise.
2508 * language.c (unknown_language_data): Likewise.
2509 (auto_language_data): Likewise.
2510 * language.h (language_data): Remove la_language field.
2511 (language_defn::language_defn): Initialise la_language field.
2512 (language_defn::la_language): New member variable.
2513 * m2-lang.c (m2_language_data): Remove la_language field.
2514 * objc-lang.c (objc_language_data): Likewise.
2515 * opencl-lang.c (opencl_language_data): Likewise.
2516 * p-lang.c (pascal_language_data): Likewise.
2517 * rust-lang.c (rust_language_data): Likewise.
2518
e171d6f1
AB
25192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2520
2521 * ada-lang.c (ada_extensions): Delete, moved into
2522 ada_language::filename_extensions.
2523 (ada_language_data): Remove la_filename_extensions initializer.
2524 (ada_language::filename_extensions): New member function.
2525 * c-lang.c (c_extensions): Delete, moved into
2526 c_language::filename_extensions.
2527 (c_language_data): Remove la_filename_extensions initializer.
2528 (c_language::filename_extensions): New member function.
2529 (cplus_extensions): Delete, moved into
2530 cplus_language::filename_extensions.
2531 (cplus_language_data): Remove la_filename_extensions initializer.
2532 (cplus_language::filename_extensions): New member function.
2533 (asm_extensions): Delete, moved into
2534 asm_language::filename_extensions.
2535 (asm_language_data): Remove la_filename_extensions initializer.
2536 (asm_language::filename_extensions): New member function.
2537 (minimal_language_data): Remove la_filename_extensions
2538 initializer.
2539 * d-lang.c (d_extensions): Delete, moved into
2540 d_language::filename_extensions.
2541 (d_language_data): Remove la_filename_extensions initializer.
2542 (d_language::filename_extensions): New member function.
2543 * f-lang.c (f_extensions): Delete, moved into
2544 f_language::filename_extensions.
2545 (f_language_data): Remove la_filename_extensions initializer.
2546 (f_language::filename_extensions): New member function.
2547 * go-lang.c (go_language_data): Remove la_filename_extensions
2548 initializer.
2549 * language.c (add_set_language_command): Update now that
2550 filename_extensions returns a vector.
2551 (unknown_language_data): Remove la_filename_extensions
2552 initializer.
2553 (auto_language_data): Likewise.
2554 * language.h (language_data): Remove la_filename_extensions field.
2555 (language_defn::filename_extensions): New member function.
2556 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2557 initializer.
2558 * objc-lang.c (objc_extensions): Delete, moved into
2559 objc_language::filename_extensions.
2560 (objc_language_data): Remove la_filename_extensions initializer.
2561 (objc_language::filename_extensions): New member function.
2562 * opencl-lang.c (opencl_language_data): Remove
2563 la_filename_extensions initializer.
2564 * p-lang.c (pascal_extensions): Delete, moved into
2565 pascal_language::filename_extensions.
2566 (pascal_language_data): Remove la_filename_extensions initializer.
2567 (pascal_language::filename_extensions): New member function.
2568 * rust-lang.c (rust_extensions): Delete, moved into
2569 rust_language::filename_extensions.
2570 (rust_language_data): Remove la_filename_extensions initializer.
2571 (rust_language::filename_extensions): New member function.
2572 * symfile.c (add_filename_language): Add new assert.
2573
6f7664a9
AB
25742020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2575
2576 * ada-lang.c (ada_language_data): Remove la_name and
2577 la_natural_name initializers.
2578 (ada_language::name): New member function.
2579 (ada_language::natural_name): New member function.
2580 * c-lang.c (c_language_data): Remove la_name and
2581 la_natural_name initializers.
2582 (c_language::name): New member function.
2583 (c_language::natural_name): New member function.
2584 (cplus_language_data): Remove la_name and
2585 la_natural_name initializers.
2586 (cplus_language::name): New member function.
2587 (cplus_language::natural_name): New member function.
2588 (asm_language_data): Remove la_name and
2589 la_natural_name initializers.
2590 (asm_language::name): New member function.
2591 (asm_language::natural_name): New member function.
2592 (minimal_language_data): Remove la_name and
2593 la_natural_name initializers.
2594 (minimal_language::name): New member function.
2595 (minimal_language::natural_name): New member function.
2596 * compile/compile.c (compile_to_object): Update call to
2597 lanugage_defn::name.
2598 * d-lang.c (d_language_data): Remove la_name and
2599 la_natural_name initializers.
2600 (d_language::name): New member function.
2601 (d_language::natural_name): New member function.
2602 * expprint.c (print_subexp_standard): Update call to
2603 language_defn::name.
2604 (dump_raw_expression): Likewise
2605 (dump_prefix_expression): Likewise.
2606 * f-lang.c (f_language_data): Remove la_name and
2607 la_natural_name initializers.
2608 (f_language::name): New member function.
2609 (f_language::natural_name): New member function.
2610 * go-lang.c (go_language_data): Remove la_name and
2611 la_natural_name initializers.
2612 (go_language::name): New member function.
2613 (go_language::natural_name): New member function.
2614 * language.c (show_language_command): Update call to
2615 language_defn::name.
2616 (set_language_command): Likewise.
2617 (language_enum): Likewise.
2618 (language_str): Likewise.
2619 (add_set_language_command): Likewise, use
2620 language_defn::natural_name in the doc string.
2621 (unknown_language_data): Remove la_name and
2622 la_natural_name initializers.
2623 (unknown_language::name): New member function.
2624 (unknown_language::natural_name): New member function.
2625 (auto_language_data): Remove la_name and
2626 la_natural_name initializers.
2627 (auto_language::name): New member function.
2628 (auto_language::natural_name): New member function.
2629 (language_lookup_primitive_type_as_symbol): Update call to
2630 language_defn::name.
2631 * language.h (language_data): Remove la_name and la_natural_name
2632 member variables.
2633 (language_defn::name): New member function.
2634 (language_defn::natural_name): New member function.
2635 * m2-lang.c (m2_language_data): Remove la_name and
2636 la_natural_name initializers.
2637 (m2_language::name): New member function.
2638 (m2_language::natural_name): New member function.
2639 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2640 language_defn::natural_name.
2641 * objc-lang.c (objc_language_data): Remove la_name and
2642 la_natural_name initializers.
2643 (objc_language::name): New member function.
2644 (objc_language::natural_name): New member function.
2645 * opencl-lang.c (opencl_language_data): Remove la_name and
2646 la_natural_name initializers.
2647 (opencl_language::name): New member function.
2648 (opencl_language::natural_name): New member function.
2649 * p-lang.c (pascal_language_data): Remove la_name and
2650 la_natural_name initializers.
2651 (pascal_language::name): New member function.
2652 (pascal_language::natural_name): New member function.
2653 * rust-lang.c (rust_language_data): Remove la_name and
2654 la_natural_name initializers.
2655 (rust_language::name): New member function.
2656 (rust_language::natural_name): New member function.
2657 * symtab.c (lookup_language_this): Update call to
2658 language_defn::name.
2659
5bae7c4e
AB
26602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2661
2662 * ada-lang.c (ada_language_data): Remove la_name_of_this
2663 initializer.
2664 * ax-gdb.c (gen_expr): Update call to name_of_this.
2665 * c-exp.y (classify_name): Likewise.
2666 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2667 (cplus_language_data): Likewise.
2668 (cplus_language::name_of_this): New member function.
2669 (asm_language_data): Remove la_name_of_this initializer.
2670 (minimal_language_data): Likewise.
2671 * d-lang.c (d_language_data): Likewise.
2672 (d_language::name_of_this): New member function.
2673 * expprint.c (print_subexp_standard): Update call to name_of_this.
2674 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2675 * go-lang.c (go_language_data): Likewise.
2676 * language.c (unknown_language_data): Likewise.
2677 (unknown_language::name_of_this): New member function.
2678 (auto_language_data): Remove la_name_of_this initializer.
2679 (auto_language::name_of_this): New member function.
2680 * language.h (language_data): Delete la_name_of_this member
2681 variable.
2682 (language_defn::name_of_this): New member function.
2683 * m2-lang.c (m2_language_data): Remove la_name_of_this
2684 initializer.
2685 * objc-lang.c (objc_language_data): Likewise.
2686 (objc_language::name_of_this): New member function.
2687 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2688 initializer.
2689 * p-lang.c (pascal_language_data): Likewise.
2690 (pascal_language::name_of_this): New member function.
2691 * rust-lang.c (rust_language_data): Remove la_name_of_this
2692 initializer.
2693 * symtab.c (lookup_language_this): Update call to name_of_this.
2694 (lookup_symbol_aux): Likewise.
2695 * valops.c (value_of_this): Likewise.
2696
22e3f3ed
AB
26972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2698
2699 * ada-lang.c (ada_language_data): Remove
2700 la_struct_too_deep_ellipsis initializer.
2701 (ada_language::struct_too_deep_ellipsis): New member function.
2702 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2703 initializer.
2704 (cplus_language_data): Likewise.
2705 (asm_language_data): Likewise.
2706 (minimal_language_data): Likewise.
2707 * cp-valprint.c (cp_print_value): Update call to
2708 struct_too_deep_ellipsis.
2709 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2710 initializer.
2711 * f-lang.c (f_language_data): Likewise.
2712 (f_language::struct_too_deep_ellipsis): New member function.
2713 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2714 initializer.
2715 * language.c (unknown_language_data): Likewise.
2716 (auto_language_data): Likewise.
2717 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2718 member variable.
2719 (language_defn::struct_too_deep_ellipsis): New member function.
2720 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2721 initializer.Q
2722 * objc-lang.c (objc_language_data): Likewise.
2723 * opencl-lang.c (opencl_language_data): Likewise.
2724 * p-lang.c (pascal_language_data): Likewise.
2725 * rust-lang.c (rust_language_data): Likewise.
2726 * valprint.c (val_print_check_max_depth): Update call to
2727 struct_too_deep_ellipsis.
2728
ed29e1c7
FW
27292020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2730
2731 * MAINTAINERS (Write After Approval): Add myself.
2732
12d8f940
TT
27332020-09-15 Tom Tromey <tom@tromey.com>
2734
2735 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2736 Remove.
2737
6b5a7bc7
TT
27382020-09-15 Tom Tromey <tom@tromey.com>
2739
2740 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2741 and TYPE_CODE_METHODPTR cases.
2742 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2743 (c_value_print_inner): Update.
2744 * valprint.c (generic_value_print_memberptr): New function, from
2745 c_value_print_memberptr.
2746 (generic_value_print): Use it. Call cplus_print_method_ptr.
2747
47f0e2ff
TT
27482020-09-15 Tom Tromey <tromey@adacore.com>
2749
2750 * python/python-internal.h (PyInt_FromLong): Remove define.
2751 * python/py-value.c (convert_value_from_python): Use
2752 gdb_py_object_from_longest.
2753 * python/py-type.c (typy_get_code): Use
2754 gdb_py_object_from_longest.
2755 * python/py-symtab.c (salpy_get_line): Use
2756 gdb_py_object_from_longest.
2757 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2758 gdb_py_object_from_longest.
2759 * python/py-record.c (recpy_gap_reason_code): Use
2760 gdb_py_object_from_longest.
2761 * python/py-record-btrace.c (recpy_bt_insn_size)
2762 (recpy_bt_func_level, btpy_list_count): Use
2763 gdb_py_object_from_longest.
2764 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2765 gdb_py_object_from_longest. Fix error handling.
2766 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2767 gdb_py_object_from_longest.
2768 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2769 gdb_py_object_from_longest.
2770 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2771 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2772 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2773
512116ce
TT
27742020-09-15 Tom Tromey <tromey@adacore.com>
2775
2776 * python/python.c (gdbpy_parameter_value): Use
2777 gdb_py_object_from_ulongest.
2778
4ab1029c
TT
27792020-09-15 Tom Tromey <tromey@adacore.com>
2780
2781 * python/py-infevents.c (create_register_changed_event_object):
2782 Use gdb_py_object_from_longest.
2783 * python/py-exitedevent.c (create_exited_event_object): Use
2784 gdb_py_object_from_longest.
2785
062534d4
TT
27862020-09-15 Tom Tromey <tromey@adacore.com>
2787
2788 * python/python.c (gdbpy_parameter_value): Use
2789 gdb_py_object_from_longest.
2790 * python/py-type.c (convert_field, typy_range): Use
2791 gdb_py_object_from_longest.
2792 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2793 gdb_py_object_from_longest.
2794 * python/py-lazy-string.c (stpy_get_length): Use
2795 gdb_py_object_from_longest.
2796 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2797 gdb_py_object_from_longest.
2798 * python/py-infevents.c (create_memory_changed_event_object): Use
2799 gdb_py_object_from_longest.
2800 * python/py-inferior.c (infpy_get_num): Use
2801 gdb_py_object_from_longest.
2802 (infpy_get_pid): Likewise.
2803
d1cab987
TT
28042020-09-15 Tom Tromey <tromey@adacore.com>
2805
2806 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2807 defines.
2808 * python/py-value.c (valpy_long): Use
2809 gdb_py_object_from_ulongest.
2810 * python/py-symtab.c (salpy_get_pc): Use
2811 gdb_py_object_from_ulongest.
2812 (salpy_get_last): Likewise.
2813 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2814 gdb_py_object_from_ulongest.
2815 * python/py-lazy-string.c (stpy_get_address): Use
2816 gdb_py_object_from_ulongest.
2817 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2818 * python/py-arch.c (archpy_disassemble): Use
2819 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2820 error handling.
2821
4bde49dc
TT
28222020-09-15 Tom Tromey <tromey@adacore.com>
2823
2824 * python/python-internal.h (gdb_py_long_from_longest): Remove
2825 defines.
2826 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2827 * python/py-type.c (convert_field, typy_get_sizeof): Use
2828 gdb_py_object_from_longest.
2829 * python/py-record-btrace.c (btpy_list_index): Use
2830 gdb_py_object_from_longest.
2831
37431074
TT
28322020-09-15 Tom Tromey <tromey@adacore.com>
2833
2834 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2835 * python/py-record.c (recpy_element_number): Use
2836 gdb_py_object_from_longest.
2837 (recpy_gap_number): Likewise.
2838
cbe25684
TT
28392020-09-15 Tom Tromey <tromey@adacore.com>
2840
2841 * top.c (ui::ui): Update.
2842 (highest_ui_num): Remove.
2843 * top.h (struct ui) <num>: Remove.
2844
db92ac45
TT
28452020-09-15 Tom Tromey <tromey@adacore.com>
2846
2847 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2848 * ui-style.c (ansi_regex_text): Now array.
2849 * rust-exp.y (number_regex_text): Now array.
2850 * linespec.c (linespec_quote_characters): Now array.
2851 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2852 Now arrays.
2853
d2b31b67
SM
28542020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2855
2856 * debuginfod-support.c (debuginfod_client_deleter): New.
2857 (debuginfod_client_up): New.
2858 (debuginfod_init): Return debuginfod_client_up.
2859 (debuginfod_source_query): Adjust.
2860 (debuginfod_debuginfo_query): Adjust.
2861
3246bd8e
SM
28622020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2863
2864 * debuginfod-support.c (debuginfod_source_query): Use
2865 make_unique_xstrdup.
2866
10242f36
SM
28672020-09-14 Simon Marchi <simon.marchi@efficios.com>
2868
2869 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2870 with `type::instance_flags`.
2871
e1044e6a
MM
28722020-09-14 Michael Mullin <masmullin@gmail.com>
2873
2874 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2875 Remove baton parameter.
2876
04902b09
PA
28772020-09-14 Pedro Alves <pedro@palves.net>
2878
2879 * Makefile.in (SELFTESTS_SRCS): Add
2880 unittests/enum-flags-selftests.c.
2881 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2882 btrace_function_flags instead of enum btrace_function_flag.
2883 * compile/compile-c-types.c (convert_qualified): Use
2884 enum_flags::raw.
2885 * compile/compile-cplus-symbols.c (convert_one_symbol)
2886 (convert_symbol_bmsym):
2887 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2888 (compile_cplus_convert_struct_or_union_methods)
2889 (compile_cplus_instance::convert_qualified_base):
2890 * go-exp.y (parse_string_or_char): Add cast to int.
2891 * unittests/enum-flags-selftests.c: New file.
2892 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2893 type to btrace_thread_flags from btrace_thread_flag.
2894 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2895 local's type to btrace_thread_flags from btrace_thread_flag. Add
2896 cast in DEBUG call.
2897
69896a2c
PA
28982020-09-14 Pedro Alves <pedro@palves.net>
2899
2900 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2901 * gdbtypes.c (address_space_name_to_int): Rename to ...
2902 (address_space_name_to_type_instance_flags): ... this.
2903 (address_space_int_to_name): Rename to ...
2904 (address_space_type_instance_flags_to_name): ... this.
2905 * gdbtypes.h (address_space_name_to_int): Rename to ...
2906 (address_space_name_to_type_instance_flags): ... this.
2907 (address_space_int_to_name): Rename to ...
2908 (address_space_type_instance_flags_to_name): ... this.
2909 * type-stack.c (type_stack::insert): Adjust to rename.
2910 * type-stack.h (type_stack::insert): Likewise.
2911
314ad88d
PA
29122020-09-14 Pedro Alves <pedro@palves.net>
2913 Andrew Burgess <andrew.burgess@embecosm.com>
2914
2915 * avr-tdep.c (avr_address_class_type_flags): Return
2916 type_instance_flags.
2917 (avr_address_class_type_flags_to_name): Take a
2918 type_instance_flags.
2919 (avr_address_class_name_to_type_flags): Return bool and take a
2920 type_instance_flags.
2921 * d-lang.c (build_d_types): Use type::set_instance_flags.
2922 * ft32-tdep.c (ft32_address_class_type_flags): Return
2923 type_instance_flags.
2924 (ft32_address_class_type_flags_to_name): Take a
2925 type_instance_flags.
2926 (ft32_address_class_name_to_type_flags): Return bool and take a
2927 type_instance_flags.
2928 (ft32_gdbarch_init): Use type::set_instance_flags.
2929 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2930 * gdbarch.h, gdbarch.c: Regenerate.
2931 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2932 (address_class_name_to_type_flags): Use type_instance_flags and
2933 bool.
2934 * gdbtypes.c (address_space_name_to_int)
2935 (address_space_int_to_name, make_qualified_type): Use
2936 type_instance_flags.
2937 (make_qualified_type): Use type_instance_flags and
2938 type::set_instance_flags.
2939 (make_type_with_address_space, make_cv_type, make_vector_type)
2940 (check_typedef): Use type_instance_flags.
2941 (recursive_dump_type): Cast type_instance_flags to unsigned for
2942 printing.
2943 (copy_type_recursive): Use type::set_instance_flags.
2944 (gdbtypes_post_init): Use type::set_instance_flags.
2945 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2946 <m_instance_flags>: ... this.
2947 <instance_flags, set_instance_flags>: New methods.
2948 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2949 (SET_TYPE_INSTANCE_FLAGS): New.
2950 (address_space_name_to_int, address_space_int_to_name)
2951 (make_type_with_address_space): Pass flags using
2952 type_instance_flags instead of int.
2953 * stabsread.c (cleanup_undefined_types_noname): Use
2954 type::set_instance_flags.
2955 * s390-tdep.c (s390_address_class_type_flags): Return
2956 type_instance_flags.
2957 (s390_address_class_type_flags_to_name): Take a
2958 type_instance_flags.
2959 (s390_address_class_name_to_type_flags): Return bool and take a
2960 type_instance_flags.
2961 * type-stack.c (type_stack::follow_types): Use
2962 type_instance_flags.
2963 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2964
27087b7f
TT
29652020-09-14 Tom Tromey <tromey@adacore.com>
2966
2967 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2968 * x86-tdep.c (x86_is_thunk_register_name)
2969 (x86_in_indirect_branch_thunk): Update.
2970 * sparc64-tdep.c (sparc64_fpu_register_names)
2971 (sparc64_cp0_register_names, sparc64_register_names)
2972 (sparc64_pseudo_register_names): Now const.
2973 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2974 cp0_registers_num>: Now const.
2975 * sparc-tdep.c (sparc_core_register_names)
2976 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2977 (sparc32_pseudo_register_names): Now const.
2978 (validate_tdesc_registers): Update.
2979 * rust-lang.c (rust_extensions): Now const.
2980 * p-lang.c (p_extensions): Now const.
2981 * objc-lang.c (objc_extensions): Now const.
2982 * nto-tdep.c (nto_thread_state_str): Now const.
2983 * moxie-tdep.c (moxie_register_names): Now const.
2984 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2985 Now const.
2986 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2987 (mips_linux_reg_names): Now const.
2988 (mips_gdbarch_init): Update.
2989 * microblaze-tdep.c (microblaze_register_names): Now const.
2990 * m68k-tdep.c (m68k_register_names): Now const.
2991 * m32r-tdep.c (m32r_register_names): Now const.
2992 * ia64-tdep.c (ia64_register_names): Now const.
2993 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2994 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2995 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2996 ymm_avx512_register_names, pkeys_register_names>: Now const.
2997 * i386-tdep.c (i386_register_names, i386_zmm_names)
2998 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2999 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3000 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3001 * f-lang.c (f_extensions): Now const.
3002 * d-lang.c (d_extensions): Now const.
3003 * csky-tdep.c (csky_register_names): Now const.
3004 * charset.c (default_charset_names, charset_enum): Now const.
3005 (_initialize_charset): Update.
3006 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3007 const.
3008 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3009 (bsd_uthread_solib_loaded): Update.
3010 (bsd_uthread_state): Now const.
3011 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3012 (amd64_ymm_avx512_names, amd64_ymmh_names)
3013 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3014 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3015 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3016 (amd64_dword_names): Now const.
3017 * agent.c (can_use_agent_enum): Now const.
3018 * ada-tasks.c (task_states, long_task_states): Now const.
3019 * ada-lang.c (known_runtime_file_name_patterns)
3020 (known_auxiliary_function_name_patterns, attribute_names)
3021 (standard_exc, ada_extensions): Now const.
3022
89806626
SM
30232020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3024
3025 * bcache.h (struct bcache) <bcache>: Remove constructor.
3026 <m_hash_function, m_compare_function>: Remove.
3027 <~bcache>: Make virtual.
3028 <compare>: Remove static method, introduce virtual method.
3029 <default_hash>: Remove.
3030 <hash>: New virtual method.
3031 * bcache.c (bcache::expand_hash_table): Update.
3032 (bcache::insert): Update.
3033 (bcache::hash): New.
3034 (bcache::compare): Update comment and parameter names.
3035 * gdbtypes.c (types_deeply_equal): Update.
3036 * psymtab.h (struct psymbol_bcache): New struct.
3037 (class psymtab_storage) <psymtab_storage>: Make default.
3038 <psymbol_cache>: Change type to psymbol_bcache.
3039 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3040 (psymbol_hash): Change to...
3041 (psymbol_bcache::hash): ... this.
3042 (psymbol_compare): Change to...
3043 (psymbol_bcache::compare): ... this.
3044
677c92fe
SM
30452020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3046
3047 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3048 checking for initial lwp.
3049
3eba3a01
TT
30502020-09-14 Tom Tromey <tromey@adacore.com>
3051
3052 * m68k-tdep.c (m68k_extract_return_value): Use
3053 pointer_result_regnum.
3054 (m68k_store_return_value): Likewise.
3055 (m68k_reg_struct_return_p): Handle vectors and arrays.
3056 (m68k_return_value): Handle arrays.
3057 (m68k_svr4_return_value): Fix single-element aggregate handling.
3058 Handle long double. Adjust for embedded ABI.
3059 (m68k_svr4_init_abi): Set pointer_result_regnum.
3060 (m68k_embedded_init_abi): New function.
3061 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3062 (m68k_osabi_sniffer): New function.
3063 (_initialize_m68k_tdep): Register osabi sniffer.
3064 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3065 member.
3066
33f4dd48
SM
30672020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3068
3069 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3070 with gdb::unique_xmalloc_ptr<char>.
3071
8400a90d
SM
30722020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3073
3074 * xml-support.h (xml_fetch_another): Change type to be a
3075 function_view.
3076 (xml_process_xincludes): Remove baton parameter.
3077 (xml_fetch_content_from_file): Change baton parameter to
3078 dirname.
3079 * xml-support.c (struct xinclude_parsing_data)
3080 <xinclude_parsing_data>: Remove baton parameter.
3081 <fetcher_baton>: Remove.
3082 (xinclude_start_include): Adjust.
3083 (xml_process_xincludes): Adjust.
3084 (xml_fetch_content_from_file): Replace baton parameter with
3085 dirname.
3086 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3087 (xml_init_syscalls_info): Use a lambda.
3088 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3089 (file_read_description_xml): Use a lambda.
3090 (fetch_available_features_from_target): Change baton parameter
3091 to target_ops.
3092 (target_read_description_xml): Use a lambda.
3093 (target_fetch_description_xml): Use a lambda.
3094 (string_read_description_xml): Update.
3095
04f5bab2
SM
30962020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3097
3098 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3099 uses with type::endianity_is_not_default.
3100
db558e34
SM
31012020-09-14 Simon Marchi <simon.marchi@efficios.com>
3102
3103 * gdbtypes.h (struct type) <endianity_is_not_default,
3104 set_endianity_is_not_default>: New methods.
3105 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3106 type::endianity_is_not_default, change all write call sites to
3107 use type::set_endianity_is_not_default.
3108
22c4c60c
SM
31092020-09-14 Simon Marchi <simon.marchi@efficios.com>
3110
3111 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3112 uses with type::is_fixed_instance.
3113
9cdd0d12
SM
31142020-09-14 Simon Marchi <simon.marchi@efficios.com>
3115
3116 * gdbtypes.h (struct type) <is_fixed_instance,
3117 set_is_fixed_instance>: New methods.
3118 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3119 write call sites to use type::set_is_fixed_instance.
3120
0becda7a
SM
31212020-09-14 Simon Marchi <simon.marchi@efficios.com>
3122
3123 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3124 uses with type::is_gnu_ifunc.
3125
03cc7249
SM
31262020-09-14 Simon Marchi <simon.marchi@efficios.com>
3127
3128 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3129 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3130 use type::set_is_gnu_ifunc.
3131
3f46044c
SM
31322020-09-14 Simon Marchi <simon.marchi@efficios.com>
3133
3134 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3135 uses with type::stub_is_supported.
3136
9baccff6
SM
31372020-09-14 Simon Marchi <simon.marchi@efficios.com>
3138
3139 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3140 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3141 use type::set_stub_is_supported.
3142
bd63c870
SM
31432020-09-14 Simon Marchi <simon.marchi@efficios.com>
3144
3145 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3146 uses with type::is_vector.
3147
2062087b
SM
31482020-09-14 Simon Marchi <simon.marchi@efficios.com>
3149
3150 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3151 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3152 use type::set_is_vector.
3153
a409645d
SM
31542020-09-14 Simon Marchi <simon.marchi@efficios.com>
3155
3156 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3157 uses with type::has_varargs.
3158
1d6286ed
SM
31592020-09-14 Simon Marchi <simon.marchi@efficios.com>
3160
3161 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3162 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3163 use type::set_has_varargs.
3164
7f9f399b
SM
31652020-09-14 Simon Marchi <simon.marchi@efficios.com>
3166
3167 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3168 uses with type::is_prototyped.
3169
27e69b7a
SM
31702020-09-14 Simon Marchi <simon.marchi@efficios.com>
3171
3172 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3173 New methods.
3174 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3175 call sites to use type::set_is_prototyped.
3176
d2183968
SM
31772020-09-14 Simon Marchi <simon.marchi@efficios.com>
3178
3179 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3180 uses with type::target_is_stub.
3181
8f53807e
SM
31822020-09-14 Simon Marchi <simon.marchi@efficios.com>
3183
3184 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3185 New methods.
3186 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3187 sites to use type::set_target_is_stub.
3188
e46d3488
SM
31892020-09-14 Simon Marchi <simon.marchi@efficios.com>
3190
3191 * gdbtypes.h (TYPE_STUB): Remove, replace all
3192 uses with type::is_stub.
3193
b4b73759
SM
31942020-09-14 Simon Marchi <simon.marchi@efficios.com>
3195
3196 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3197 (TYPE_STUB): Use type::is_stub, change all write call sites to
3198 use type::set_is_stub.
3199
20ce4123
SM
32002020-09-14 Simon Marchi <simon.marchi@efficios.com>
3201
3202 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3203 type::has_no_signedness.
3204
15152a54
SM
32052020-09-14 Simon Marchi <simon.marchi@efficios.com>
3206
3207 * gdbtypes.h (struct type) <has_no_signedness,
3208 set_has_no_signedness>: New methods.
3209 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3210 call sites to use type::set_has_no_signedness.
3211
c6d940a9
SM
32122020-09-14 Simon Marchi <simon.marchi@efficios.com>
3213
3214 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3215 type::is_unsigned.
3216
653223d3
SM
32172020-09-14 Simon Marchi <simon.marchi@efficios.com>
3218
3219 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3220 methods.
3221 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3222 sites to use type::set_is_unsigned.
3223
55ea94da 32242020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 3225 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 3226
e851246a
SM
3227 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3228 pointer and stack frame offset when unwinding.
55ea94da 3229
6791b117
PA
32302020-09-13 Pedro Alves <pedro@palves.net>
3231
3232 * NEWS: Document "-break-insert --qualified".
3233 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3234
77f2120b
PA
32352020-09-13 Pedro Alves <pedro@palves.net>
3236
3237 * linespec.c (classify_mtype, compare_msyms): Delete.
3238 (search_minsyms_for_name): Remove classification logic. Instead
3239 filter out trampoline symbols if we also found an external
3240 function of the same name.
3241
ed6a896c
JB
32422020-09-13 Joel Brobecker <brobecker@adacore.com>
3243
3244 * NEWS: Create a new section for the next release branch.
3245 Rename the section of the current branch, now that it has
3246 been cut.
3247
32aea73e
JB
32482020-09-13 Joel Brobecker <brobecker@adacore.com>
3249
3250 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3251 * version.in: Bump version to 11.0.50.DATE-git.
3252
8087c3fa
JB
32532020-09-12 Joel Brobecker <brobecker@adacore.com>
3254
3255 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3256
2a67f09d
FW
32572020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3258 Felix Willgerodt <Felix.Willgerodt@intel.com>
3259
3260 * gdbarch.sh: Added bfloat16 type.
3261 * gdbarch.c: Regenerated.
3262 * gdbarch.h: Regenerated.
3263 * gdbtypes.c (floatformats_bfloat16): New struct.
3264 (gdbtypes_post_init): Add builtin_bfloat16.
3265 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3266 (floatformats_bfloat16): New struct.
3267 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3268 (i386_ymm_type): Add field "v16_bfloat16"
3269 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3270 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3271 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3272 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3273 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3274 * features/i386/64bit-avx512.c: Regenerated.
3275 * features/i386/64bit-sse.xml: Add bfloat16 type.
3276 * features/i386/64bit-sse.c: Regenerated.
3277
1347d111
FW
32782020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3279
3280 * i386-tdep.c (i386_zmm_type): Fix field names.
3281 (i386_ymm_type): Fix field names.
3282
7a4e8e7d
TBA
32832020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3284
3285 * breakpoint.c: Fix typo in the help message of the
3286 "set breakpoint condition-evaluation" command.
3287
cf4ac4be
KR
32882020-09-10 Kamil Rytarowski <n54@gmx.com>
3289
3290 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3291 * (nbsd_nat_target::pid_to_exec_file)
3292 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3293 (nbsd_nat_target::post_startup_inferior)
3294 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3295 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3296 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3297 * (nbsd_thread_lister): Remove.
3298
f404573e
KR
32992020-09-10 Kamil Rytarowski <n54@gmx.com>
3300
3301 * fork-inferior.c (startup_inferior): Avoid double free.
3302
1ccb2c17
KR
33032020-09-10 Kamil Rytarowski <n54@gmx.com>
3304
3305 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3306 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3307
feedfcc7
KR
33082020-09-10 Kamil Rytarowski <n54@gmx.com>
3309
3310 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3311 * netbsd-nat.c: Include <sys/ptrace.h>.
3312 * (netbsd_nat::enable_proc_events): Add.
3313
c489f8c6
KR
33142020-09-10 Kamil Rytarowski <n54@gmx.com>
3315
3316 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3317 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3318 (netbsd_nat::for_each_thread): Add.
3319 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3320 "gdbsupport/common-debug.h".
3321 * (netbsd_nat::netbsd_thread_lister)
3322 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3323 (netbsd_nat::for_each_thread): Add.
3324
330662f6
KR
33252020-09-10 Kamil Rytarowski <n54@gmx.com>
3326
3327 * netbsd-nat.h: Include <unistd.h>.
3328 * (netbsd_nat::pid_to_exec_file): Add.
3329 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3330 * (netbsd_nat::pid_to_exec_file) Add.
3331
70b67307
KR
33322020-09-10 Kamil Rytarowski <n54@gmx.com>
3333
3334 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3335
99cf6da6
KR
33362020-09-10 Kamil Rytarowski <n54@gmx.com>
3337
3338 * netbsd-nat.h: New file.
3339 * netbsd-nat.c: Likewise.
3340
1b788fb6
TT
33412020-09-09 Tom Tromey <tromey@adacore.com>
3342
3343 * ada-lang.c (remove_extra_symbols): Do not increment when
3344 removing an element
3345
03b0a45f
TT
33462020-09-08 Tom Tromey <tromey@adacore.com>
3347
3348 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3349
3cae4447
TT
33502020-09-08 Tom Tromey <tromey@adacore.com>
3351
3352 PR win32/25302:
3353 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3354 (gdb_bfd_init_data): New function.
3355 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3356
7f08fd51
TBA
33572020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3358
3359 * infrun.c (fetch_inferior_event): Use
3360 `switch_to_target_no_thread` to switch the target.
3361
3e6ff933
TT
33622020-09-06 Tom Tromey <tom@tromey.com>
3363
3364 * symfile.h (dwarf2_free_objfile): Don't declare.
3365
e56798df
AKS
33662020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3367
3368 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3369 to match 16 byte real/complex type generated by Flang compiler.
3370
8f5c6526
TV
33712020-09-03 Tom de Vries <tdevries@suse.de>
3372
3373 PR breakpoint/26546
3374 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3375 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3376
c5065df0
SM
33772020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3378
3379 * maint.c (index_digits): New function.
3380 (struct maint_print_section_data): Remove.
3381 (print_bfd_section_info): Remove print_data parameter, add arg
3382 and index_digits.
3383 (print_objfile_section_info): Likewise.
3384 (print_bfd_section_info_maybe_relocated): Likewise (plus
3385 objfile).
3386 (maintenance_info_sections): Adjust calls.
3387
02c6f3f1
TT
33882020-09-02 Tom Tromey <tromey@adacore.com>
3389
3390 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3391 for null pointers.
3392 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3393
ef5e5b0b
SM
33942020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3395
3396 * bcache.h (struct bcache) <insert>: Change type of `added` to
3397 pointer to bool.
3398 * bcache.c (bcache::insert): Likewise.
3399 * gdbtypes.c (check_types_worklist): Adjust.
3400 * psymtab.c (add_psymbol_to_bcache): Adjust.
3401
973695d6
KB
34022020-08-31 Kevin Buettner <kevinb@redhat.com>
3403
3404 * corelow.c (unordered_set): Include.
3405 (class core_target): Add field 'm_core_unavailable_mappings'.
3406 (core_target::build_file_mappings): Print only one warning
3407 per inaccessible file. Add unavailable/broken mappings
3408 to m_core_unavailable_mappings.
3409 (core_target::xfer_partial): Call...
3410 (core_target::xfer_memory_via_mappings): New method.
3411
264fc0e2
SM
34122020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3413
3414 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3415 type to bool.
3416
2de01bdb
SM
34172020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3418
3419 * dwarf2/read.c (struct field_info): Fix indentation.
3420
f3bd50f1
SM
34212020-08-31 Simon Marchi <simon.marchi@efficios.com>
3422
3423 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3424 ordering in comment.
3425 * frame.c (frame_id_eq): Fix indentation.
3426
22b9b4b0
SL
34272020-08-31 Scott Linder <scott@scottlinder.com>
3428 Simon Marchi <simon.marchi@efficios.com>
3429
3430 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3431 inline frame ids in outer frame.
3432
84154d16
SM
34332020-08-31 Simon Marchi <simon.marchi@efficios.com>
3434
3435 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3436 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3437 (outer_frame_id): Use FID_STACK_OUTER instead of
3438 FID_STACK_INVALID.
3439 (frame_id_p): Don't check for outer_frame_id.
3440
8efaf6b3
SM
34412020-08-31 Simon Marchi <simon.marchi@efficios.com>
3442
3443 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3444 regnum/frame in value. Call allocate_value_lazy.
3445 * frame.c (frame_unwind_register_value): Use
3446 val_print_not_saved.
3447
fe1fe7ea
SM
34482020-08-31 Simon Marchi <simon.marchi@efficios.com>
3449
3450 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3451
f7c7700d
PA
34522020-08-29 Pedro Alves <pedro@palves.net>
3453
3454 * progspace.c (print_program_space): Use all_inferiors. Switch to
3455 the inferior before calling target_pid_to_str.
3456
e0814aae
TT
34572020-08-28 Tom Tromey <tom@tromey.com>
3458
3459 * xcoffread.c (xcoff_end_psymtab): Update comment.
3460 * dbxread.c (dbx_end_psymtab): Update comment.
3461
626d2320
TV
34622020-08-28 Tom de Vries <tdevries@suse.de>
3463
3464 PR breakpoint/26544
3465 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3466 event_location.
3467 (create_breakpoint): Same.
3468 (base_breakpoint_decode_location): Same.
3469 (bkpt_create_sals_from_location): Same.
3470 (bkpt_decode_location): Same.
3471 (bkpt_probe_create_sals_from_location): Same.
3472 (bkpt_probe_decode_location): Same.
3473 (tracepoint_create_sals_from_location): Same.
3474 (tracepoint_decode_location): Same.
3475 (tracepoint_probe_decode_location): Same.
3476 (strace_marker_create_sals_from_location): Same.
3477 (strace_marker_decode_location): Same.
3478 (create_sals_from_location_default): Same.
3479 (decode_location_default): Same.
3480 * breakpoint.h (struct breakpoint_ops): Same.
3481 (create_breakpoint): Same.
3482 * linespec.h (decode_line_full): Same.
3483 * linespec.c (decode_line_full): Same. Throw error if
3484 result.size () == 0.
3485
df631783
PA
34862020-08-27 Pedro Alves <pedro@palves.net>
3487
3488 PR gdb/26524
3489 * breakpoint.c (until_break_fsm) <location_breakpoint,
3490 caller_breakpoint>: Delete fields.
3491 <breakpoints>: New field.
3492 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3493 two individual breakpoints.
3494 (until_break_fsm::should_stop): Loop over breakpoints in the
3495 breakpoint vector.
3496 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3497 vector.
3498 (until_break_command): Handle location expanding into multiple
3499 sals.
3500
b2b38aa4
PA
35012020-08-27 Pedro Alves <pedro@palves.net>
3502
3503 PR gdb/26523
3504 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3505 bp_until breakpoints user-specified locations. Update intro
3506 comment.
3507
b886559f
SM
35082020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3509
3510 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3511 gdb_bfd_sections): New.
3512 * maint.c (print_bfd_section_info): Change param type to
3513 maint_print_section_data.
3514 (print_objfile_section_info): Likewise.
3515 (print_bfd_section_info_maybe_relocated): Likewise.
3516 (maintenance_info_sections): Use gdb_bfd_sections.
3517
4c6e63bf
SV
35182020-08-25 Shahab Vahedi <shahab@synopsys.com>
3519
3520 * MAINTAINERS: Add ARC target and maintainer.
3521
8d7f0635
AK
35222020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3523
3524 * configure.tgt: ARC support for GNU/Linux.
3525 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3526 * arc-linux-tdep.c: New file.
3527 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3528 * arc-tdep.c (arc_write_pc): Use it.
3529
fdd8731b
SV
35302020-08-25 Shahab Vahedi <shahab@synopsys.com>
3531
3532 * arc-tdep.c (arc_check_for_hardware_loop): New.
3533 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3534
22459524
SV
35352020-08-25 Shahab Vahedi <shahab@synopsys.com>
3536
3537 * arc-tdep.h: Include "gdbarch.h".
3538
995d3a19
SV
35392020-08-25 Shahab Vahedi <shahab@synopsys.com>
3540
3541 * arch/arc.h
3542 (arc_gdbarch_features): New class to stir the selection of target XML.
3543 (arc_create_target_description): Use FEATURES to choose XML target.
3544 (arc_lookup_target_description): Use arc_create_target_description
3545 to create _new_ target descriptions or return the already created
3546 ones if the FEATURES is the same.
3547 * arch/arc.c: Implementation of prototypes described above.
3548 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3549 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3550 * arc-tdep.c (*_feature_name): Make feature names consistent.
3551 (arc_register_feature): A new struct to hold information about
3552 registers of a particular target/feature.
3553 (arc_check_tdesc_feature): Check if XML provides registers in
3554 compliance with ARC_REGISTER_FEATURE structs.
3555 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3556 (determine_*_reg_feature_set): Which feature name to look for.
3557 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3558 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3559 to expected ISA enums to be used in arc_gdbarch_features structs.
3560 * features/Makefile (FEATURE_XMLFILES): Add new files.
3561 * gdb/features/arc/v1-aux.c: New file.
3562 * gdb/features/arc/v1-aux.xml: Likewise.
3563 * gdb/features/arc/v1-core.c: Likewise.
3564 * gdb/features/arc/v1-core.xml: Likewise.
3565 * gdb/features/arc/v2-aux.c: Likewise.
3566 * gdb/features/arc/v2-aux.xml: Likewise.
3567 * gdb/features/arc/v2-core.c: Likewise.
3568 * gdb/features/arc/v2-core.xml: Likewise.
3569 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3570
3945d2d7
GM
35712020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3572 Andrew Burgess <andrew.burgess@embecosm.com>
3573
3574 PR m2/26372
fc5d6901 3575 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3576 an assert. Remove single element array indexing pattern as the
3577 MULTI_SUBSCRIPT support will handle this case too.
3578
2677f2d3
SM
35792020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3580
3581 * value.h (valprint_check_validity): Move declaration from
3582 here...
3583 * valprint.h (valprint_check_validity): ... to here.
3584
c426fddb
SM
35852020-08-24 Simon Marchi <simon.marchi@efficios.com>
3586
3587 * debug.h: New file.
3588 * debug.c (debug_prefixed_vprintf): New function.
3589 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3590 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3591
1eb8556f
SM
35922020-08-24 Simon Marchi <simon.marchi@efficios.com>
3593
3594 * infrun.h (infrun_debug_printf_1): New function declaration.
3595 (infrun_debug_printf): New macro.
3596 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3597 throughout.
3598 (infrun_debug_printf): New function.
3599 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3600 (handle_jit_event): Likewise.
3601
b8fff44e
MW
36022020-08-21 Mark Wielaard <mark@klomp.org>
3603
3604 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3605
d19c3068
SM
36062020-08-22 Simon Marchi <simon.marchi@efficios.com>
3607
3608 * frame.c (enum class frame_id_status): New.
3609 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3610 (fprintf_frame): Update.
3611 (compute_frame_id): Set frame id status to "computing" on entry.
3612 Set it back to "not_computed" on failure and to "computed" on
3613 success.
3614 (get_frame_id): Assert the frame id is not being computed.
3615 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3616 (create_new_frame): Likewise.
3617 (frame_cleanup_after_sniffer): Update assert.
3618
b70e516e
SM
36192020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3620
3621 * regcache.c (pid_ptid_regcache_map): New type.
3622 (target_ptid_regcache_map): Remove.
3623 (target_pid_ptid_regcache_map): New type.
3624 (regcaches): Change type to target_pid_ptid_regcache_map.
3625 (get_thread_arch_aspace_regcache): Update.
3626 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3627 case.
3628 (regcaches_size): Update.
3629 (regcache_count): Update.
3630 (registers_changed_ptid_target_pid_test): New.
3631 (_initialize_regcache): Register new test.
3632
cdd9148a
SM
36332020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3634
3635 * regcache.c (regcache_count): New.
3636 (struct regcache_test_data): New.
3637 (regcache_test_data_up): New.
3638 (populate_regcaches_for_test): New.
3639 (regcaches_test): Remove.
3640 (get_thread_arch_aspace_regcache_test): New.
3641 (registers_changed_ptid_all_test): New.
3642 (registers_changed_ptid_target_test): New.
3643 (registers_changed_ptid_target_ptid_test): New.
3644 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3645 (_initialize_regcache): Register new tests.
3646
dd125343
SM
36472020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3648
3649 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3650 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3651 gdbarch and aspace parameter. Use current inferior's aspace.
3652 Validate regcache's arch value.
3653 (regcaches_test): Update.
3654
3ee93972
SM
36552020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3656
3657 * regcache.c (regcaches_test): Call registers_changed.
3658
33bf4c5c
TBA
36592020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3660
3661 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3662
c2fd7fae
AKS
36632020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3664
3665 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3666 to find the end of prologue for flang compiled binaries.
3667 * arm-tdep.c (arm_skip_prologue): Likewise.
3668 * i386-tdep.c (i386_skip_prologue): Likewise.
3669 * producer.c (producer_is_llvm): New function.
3670 (producer_parsing_tests): Added new tests for clang/flang.
3671 * producer.h (producer_is_llvm): New declaration.
3672
9327494e
SM
36732020-08-18 Simon Marchi <simon.marchi@efficios.com>
3674
3675 * linux-nat.c (linux_nat_debug_printf): New function.
3676 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3677
d138725a
AM
36782020-08-18 Aaron Merey <amerey@redhat.com>
3679
3680 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3681 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3682 (CLIBS): Add DEBUGINFOD_LIBS.
3683
f9b11e6b
ST
36842020-08-17 Sergei Trofimovich <siarheit@google.com>
3685
3686 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3687 'gdbarch_num_regs'.
3688
3ae7ab99
TT
36892020-08-17 Tom Tromey <tromey@adacore.com>
3690
3691 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3692 ada_get_decoded_value returns NULL.
3693
b017825f
TT
36942020-08-17 Tom Tromey <tromey@adacore.com>
3695
3696 * python/py-inferior.c (infpy_search_memory): Use
3697 gdb_py_object_from_ulongest.
3698 * python/py-infevents.c (create_inferior_call_event_object)
3699 (create_memory_changed_event_object): Use
3700 gdb_py_object_from_ulongest.
3701 * python/py-linetable.c (ltpy_entry_get_pc): Use
3702 gdb_py_object_from_ulongest.
3703
7635cf79
SM
37042020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3705
3706 * loc.c (class symbol_needs_eval_context): Fix indentation.
3707
f54be24b
SM
37082020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3709
3710 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3711 bool.
3712
53d5a2a5
TV
37132020-08-17 Tom de Vries <tdevries@suse.de>
3714
3715 PR gdb/26393
3716 * gdbtypes.c (dump_dynamic_prop): New function.
3717 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3718
547ce8f0
TV
37192020-08-15 Tom de Vries <tdevries@suse.de>
3720
3721 PR backtrace/26390
3722 * stack.c (print_frame_args): Temporarily set the selected
3723 frame to FRAME while printing the frame's arguments.
3724
6ea815e7
PFC
37252020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3726
3727 PR breakpoints/26385
3728 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3729 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3730
6e562fa3
PFC
37312020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3732
3733 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3734 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3735 and >= to check return value instead of == -1 and != -1.
3736
d369b608
SM
37372020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3738
3739 * utils.h (class gdb_argv) <as_array_view>: New method.
3740 * utils.c (gdb_argv_as_array_view_test): New.
3741 (_initialize_utils): Register selftest.
3742 * maint.c (maintenance_selftest): Use the new method.
3743
b31488a3
KR
37442020-08-13 Kamil Rytarowski <n54@gmx.com>
3745
3746 * target.h (supports_dumpcore, dumpcore): New
3747 function declarations.
3748 * target.c (supports_dumpcore, dumpcore): New
3749 functions.
3750 * target-delegates.c: Rebuild.
3751 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3752 and target_dumpcore ().
3753
002a3166
AM
37542020-08-13 Aaron Merey <amerey@redhat.com>
3755
3756 * debuginfod-support.c: Replace global variables with user_data.
3757
ece5bc8a
SM
37582020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3759
3760 * maint.c (maintenance_selftest): Split args and pass array_view
3761 to run_tests.
3762
6d8a0a5e
LM
37632020-08-12 Luis Machado <luis.machado@linaro.org>
3764
3765 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3766 type's length.
3767 Use %s and pulongest to print the length.
3768
7cf663a9
PA
37692020-08-12 Pedro Alves <palves@redhat.com>
3770
3771 * NEWS: Move "Multi-target debugging support" item to the
3772 "Changes since GDB 9" section.
3773
27c7b875
PA
37742020-08-12 Pedro Alves <palves@redhat.com>
3775
3776 PR gdb/26336
3777 * progspace.c (program_space::remove_objfile): Invalidate the
3778 frame cache.
3779
1796a2a1
TV
37802020-08-11 Tom de Vries <tdevries@suse.de>
3781
3782 * MAINTAINERS: Mark ms1 as deleted.
3783
f8e3fe0d
LM
37842020-08-10 Luis Machado <luis.machado@linaro.org>
3785
3786 PR gdb/26310
3787
3788 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3789 act accordingly.
3790 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3791 movz/str/stur/stp skipping behavior.
3792
cc308722
LM
37932020-08-10 Luis Machado <luis.machado@linaro.org>
3794
3795 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3796 struct user_sve_header instead of struct sve_context.
3797
041d9819
SM
37982020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3799
3800 * read.h (dwarf2_fetch_die_loc_sect_off,
3801 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3802 `void *` parameter with function_view.
3803 * read.c (dwarf2_fetch_die_loc_sect_off,
3804 dwarf2_fetch_die_loc_cu_off): Likewise.
3805 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3806 (per_cu_dwarf_call): Adjust.
3807 (get_frame_address_in_block_wrapper): Remove.
3808 (indirect_synthetic_pointer): Adjust.
3809 (get_ax_pc): Remove.
3810 (dwarf2_compile_expr_to_ax): Adjust.
3811
38f8aa06
TV
38122020-08-08 Tom de Vries <tdevries@suse.de>
3813
3814 PR build/26344
3815 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3816 constructor.
3817 * regcache.c (get_thread_arch_aspace_regcache): Same.
3818
a52b3ae2
TT
38192020-08-07 Tom Tromey <tromey@adacore.com>
3820
3821 * ravenscar-thread.c
3822 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3823 New method.
3824 (ravenscar_thread_target::wait): Check
3825 runtime_initialized.
3826 (ravenscar_thread_target::prepare_to_store)
3827 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3828 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3829 (ravenscar_thread_target::stopped_by_watchpoint)
3830 (ravenscar_thread_target::stopped_data_address)
3831 (ravenscar_thread_target::core_of_thread): Use
3832 scoped_restore_current_thread and
3833 set_base_thread_from_ravenscar_task.
3834
0e29517d
TT
38352020-08-07 Tom Tromey <tromey@adacore.com>
3836
3837 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3838
592f9bd7
TT
38392020-08-07 Tom Tromey <tromey@adacore.com>
3840
3841 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3842 update_inferior_ptid before update_thread_list.
3843 (temporarily_change_regcache_ptid): New class.
3844 (ravenscar_thread_target::fetch_registers)
3845 (ravenscar_thread_target::store_registers)
3846 (ravenscar_thread_target::prepare_to_store): Use base thread when
3847 forwarding operation.
3848
39e2018a
TT
38492020-08-07 Tom Tromey <tromey@adacore.com>
3850
3851 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3852 "is_pid" case.
3853
2080266b
TT
38542020-08-07 Tom Tromey <tromey@adacore.com>
3855
3856 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3857 New methods.
3858 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3859 first.
3860 (ravenscar_thread_target::add_thread): Rename from
3861 ravenscar_add_thread.
3862 (ravenscar_thread_target::update_thread_list): Use a lambda.
3863 (ravenscar_thread_target::xfer_partial): New method.
3864
78c02f21
TT
38652020-08-07 Tom Tromey <tromey@adacore.com>
3866
3867 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3868 gdb::function_view.
3869 (iterate_over_live_ada_tasks): Change type of argument.
3870 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3871 of argument.
3872
d5d833af
TT
38732020-08-07 Tom Tromey <tromey@adacore.com>
3874
3875 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3876 Remove.
3877 (ravenscar_thread_target::extra_thread_info): Remove.
3878 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3879 defer to target beneath for non-Ravenscar threads.
3880
a8ac85bb
TT
38812020-08-07 Tom Tromey <tromey@adacore.com>
3882
3883 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3884 get_base_thread_from_ravenscar_task>: Now methods.
3885 <m_cpu_map>: New member.
3886 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3887 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3888 (ravenscar_thread_target::task_is_currently_active): Update.
3889 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3890 Now a method.
3891 (ravenscar_thread_target::add_active_thread): Put initial thread
3892 into the m_cpu_map.
3893
550ab58d
TT
38942020-08-07 Tom Tromey <tromey@adacore.com>
3895
3896 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3897 event_ptid.
3898
e9546579
TT
38992020-08-07 Tom Tromey <tromey@adacore.com>
3900
3901 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3902 runtime_initialized.
3903
3d4470e5
TT
39042020-08-07 Tom Tromey <tromey@adacore.com>
3905
3906 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3907 add_active_thread.
3908 (ravenscar_thread_target::add_active_thread): Now public.
3909 (ravenscar_inferior_created): Call add_active_thread after pushing
3910 the target.
3911
888bdb2b
SM
39122020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3913
3914 * regcache.c (ptid_regcache_map): New type.
3915 (target_ptid_regcache_map): New type.
3916 (regcaches): Change type to target_ptid_regcache_map.
3917 (get_thread_arch_aspace_regcache): Update to regcaches' new
3918 type.
3919 (regcache_thread_ptid_changed): Likewise.
3920 (registers_changed_ptid): Likewise.
3921 (regcaches_size): Likewise.
3922 (regcaches_test): Update.
3923 (regcache_thread_ptid_changed): Update.
3924 * regcache.h (regcache_up): New type.
3925 * gdbsupport/ptid.h (hash_ptid): New struct.
3926
b161a60d
SM
39272020-08-07 Simon Marchi <simon.marchi@efficios.com>
3928
3929 * observable.h (thread_ptid_changed): Add parameter
3930 `process_stratum_target *`.
3931 * infrun.c (infrun_thread_ptid_changed): Add parameter
3932 `process_stratum_target *` and use it.
3933 (selftests): New namespace.
3934 (infrun_thread_ptid_changed): New function.
3935 (_initialize_infrun): Register selftest.
3936 * regcache.c (regcache_thread_ptid_changed): Add parameter
3937 `process_stratum_target *` and use it.
3938 (regcache_thread_ptid_changed): New function.
3939 (_initialize_regcache): Register selftest.
3940 * thread.c (thread_change_ptid): Pass target to
3941 thread_ptid_changed observable.
3942
d2854d8d
CT
39432020-08-06 Caroline Tice <cmtice@google.com>
3944
fe4c3d43
SM
3945 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3946 (struct dwp_sections): Update field comments. Add loclists and
3947 rnglists fields.
3948 (struct virtual_v2_dwo_sections): Rename struct to
3949 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3950 size & offset fields for loclists and rnglists.
3951 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3952 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3953 skipping dummy type units.
3954 (create_dwp_hash_table): Update the large comment above the function to
3955 discuss Version 5 DWP files as well, with references. Update all the
3956 version checks in the function to check for version 5 as well. Add new
3957 section at the end to create dwp hash table for version 5.
3958 (create_dwp_v2_section): Rename function to
3959 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3960 Add V5 to error message text.
3961 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3962 into calls to create_dwp_v2_or_v5_section.
3963 (create_dwo_unit_in_dwp_v5): New function.
3964 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3965 check for version2; add else clause to handle version 5.
3966 (open_and_init_dwo_file): Add code to check dwarf version & only call
3967 create_debug_types_hash_table (with sections.types) if version is not 5;
3968 else call create_debug_type_hash_table, with sections.info.
3969 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3970 version 5.
3971 (dwarf2_locate_v5_dwp_sections): New function.
3972 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3973 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3974
159ed7d9
SM
39752020-08-06 Simon Marchi <simon.marchi@efficios.com>
3976
3977 * regcache.h (class regcache): Remove friend
3978 registers_changed_ptid.
3979 <regcache_thread_ptid_changed>: Remove.
3980 <regcaches>: Remove.
3981 * regcache.c (regcache::regcaches): Rename to...
3982 (regcaches): ... this. Make static.
3983 (get_thread_arch_aspace_regcache): Update.
3984 (regcache::regcache_thread_ptid_changed): Rename to...
3985 (regcache_thread_ptid_changed): ... this. Update.
3986 (class regcache_access): Remove.
3987 (regcaches_test): Update.
3988 (_initialize_regcache): Update.
3989 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3990 <forward_list>.
3991
174981ae
SM
39922020-08-06 Simon Marchi <simon.marchi@efficios.com>
3993
3994 * regcache.h (class regcache) <current_regcache>: Rename to...
3995 <regcaches>: ... this. Move doc here.
3996 * regcache.c (regcache::current_regcache) Rename to...
3997 (regcache::regcaches): ... this. Move doc to header.
3998 (get_thread_arch_aspace_regcache): Update.
3999 (regcache::regcache_thread_ptid_changed): Update.
4000 (registers_changed_ptid): Update.
4001 (class regcache_access) <current_regcache_size>: Rename to...
4002 <regcaches_size>: ... this.
4003 (current_regcache_test): Rename to...
4004 (regcaches_test): ... this.
4005 (_initialize_regcache): Update.
4006
ed908db6
VC
40072020-08-06 Victor Collod <vcollod@nvidia.com>
4008
4009 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4010
b5582ab7
KB
40112020-08-05 Kevin Buettner <kevinb@redhat.com>
4012
4013 * corelow.c (core_target::build_file_mappings): Don't output
4014 null pathname in warning.
4015
ea946b86
SM
40162020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4017
4018 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4019 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4020 gdb.dwarf2/dw2-single-line-discriminators.exp,
4021 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4022
57d02173
TT
40232020-08-05 Tom Tromey <tromey@adacore.com>
4024
4025 PR rust/26197:
4026 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4027 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4028 Fix off-by-one and type size errors in ordinary case.
4029
5555c86d
TV
40302020-08-05 Tom de Vries <tdevries@suse.de>
4031
4032 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4033 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4034
97916bfe
SM
40352020-08-04 Simon Marchi <simon.marchi@efficios.com>
4036
4037 * frame.h (frame_id_p): Return bool.
4038 (frame_id_artificial_p): Return bool.
4039 (frame_id_eq): Return bool.
4040 (has_stack_frames): Return bool.
4041 (get_selected_frame): Fix typo in comment.
4042 (get_frame_pc_if_available): Return bool.
4043 (get_frame_address_in_block_if_available): Return bool.
4044 (get_frame_func_if_available): Return bool.
4045 (read_frame_register_unsigned): Return bool.
4046 (get_frame_register_bytes): Return bool.
4047 (safe_frame_unwind_memory): Return bool.
4048 (deprecated_frame_register_read): Return bool.
4049 (frame_unwinder_is): Return bool.
4050 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4051 bool.
4052 <this_id::p>: Likewise.
4053 <prev_p>: Likewise.
4054 (frame_stash_add): Return bool.
4055 (get_frame_id): Use bool.
4056 (frame_id_build_special) Use bool.
4057 (frame_id_build_unavailable_stack): Use bool.
4058 (frame_id_build): Use bool.
4059 (frame_id_p): Return bool, use true/false instead of 1/0.
4060 (frame_id_artificial_p): Likewise.
4061 (frame_id_eq): Likewise.
4062 (frame_id_inner): Likewise.
4063 (get_frame_func_if_available): Likewise.
4064 (read_frame_register_unsigned): Likewise.
4065 (deprecated_frame_register_read): Likewise.
4066 (get_frame_register_bytes): Likewise.
4067 (has_stack_frames): Likewise.
4068 (inside_main_func): Likewise.
4069 (inside_entry_func): Likewise.
4070 (get_frame_pc_if_available): Likewise.
4071 (get_frame_address_in_block_if_available): Likewise.
4072 (frame_unwinder_is): Likewise.
4073 (safe_frame_unwind_memory): Likewise.
4074 (frame_unwind_arch): Likewise.
4075
fedfee88
SM
40762020-08-04 Simon Marchi <simon.marchi@efficios.com>
4077
4078 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4079 type to cached_copy_status.
4080 (fprintf_frame): Adjust.
4081 (get_frame_func_if_available): Adjust.
4082 (frame_cleanup_after_sniffer): Adjust.
4083
6cfa9b59
MW
40842020-08-04 Mark Wielaard <mark@klomp.org>
4085
4086 * MAINTAINERS (Write After Approval): Update email address.
4087
66d6346b
SM
40882020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4089
4090 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4091 dynamic_prop::const_val.
4092
8a6d5e35
SM
40932020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4094
4095 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4096 dynamic_prop::kind.
4097
51d6067d
SM
40982020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4099
4100 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4101
b26e2ae7
JM
41022020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4103
4104 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4105
39791af2
JM
41062020-08-04 Weimin Pan <weimin.pan@oracle.com>
4107 Jose E. Marchesi <jose.marchesi@oracle.com>
4108
4109 * configure.tgt: Add entry for bpf-*-*.
4110 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4111 (ALLDEPFILES): Add bpf-tdep.c.
4112 * bpf-tdep.c: New file.
4113 * MAINTAINERS: Add bpf target and maintainer.
4114 * NEWS: Mention the support for the new target.
4115
521894aa
TV
41162020-08-04 Tom de Vries <tdevries@suse.de>
4117
4118 PR symtab/23270
4119 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4120 Error.
4121
5d6356e9
JB
41222020-08-03 John Baldwin <jhb@FreeBSD.org>
4123
4124 * syscalls/freebsd.xml: Regenerate.
4125
0cf82b81
JB
41262020-08-03 John Baldwin <jhb@FreeBSD.org>
4127
4128 * syscalls/update-freebsd.sh: Fix usage and year range.
4129
8f34b746
TV
41302020-08-03 Tom de Vries <tdevries@suse.de>
4131
4132 PR symtab/26333
4133 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4134 DW_LNE_lo_user/DW_LNE_hi_user range.
4135
5e500d33
SM
41362020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4137
4138 PR ada/26318
4139 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4140 kind.
4141
78319c15
TBA
41422020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4143
4144 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4145
4c55e970
TBA
41462020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4147
4148 * breakpoint.c (set_breakpoint_condition): Update the condition
4149 expressions after checking that the input condition string parses
4150 successfully and does not contain junk at the end.
4151
1e620590
TBA
41522020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4153
4154 * breakpoint.c (set_breakpoint_condition): Update the
4155 condition string after parsing the new condition successfully.
4156
c8693053
RO
41572020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4158
4159 * proc-api.c (_STRUCTURED_PROC): Don't define.
4160 * proc-events.c: Likewise.
4161 * proc-flags.c: Likewise.
4162 * proc-why.c: Likewise.
4163 * procfs.c: Likewise.
4164
4165 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4166 * configure, config.in: Regenerate.
4167
5a99adb8
TV
41682020-07-30 Tom de Vries <tdevries@suse.de>
4169
4170 PR build/26320
4171 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4172 m_red/m_green/m_blue in a union.
4173
8ba83e91
TV
41742020-07-29 Tom de Vries <tdevries@suse.de>
4175
4176 PR tdep/26280
4177 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4178
f75a0693
AB
41792020-07-28 Tom Tromey <tromey@adacore.com>
4180
4181 PR symtab/26270:
4182 * symtab.h (find_pc_partial_function_sym): Declare.
4183 * cli/cli-cmds.c (disassemble_command): Use
4184 find_pc_partial_function_sym. Check asm_demangle.
4185 * blockframe.c (cache_pc_function_sym): New global.
4186 (cache_pc_function_name): Remove.
4187 (clear_pc_function_cache): Update.
4188 (find_pc_partial_function_sym): New function, from
4189 find_pc_partial_function.
4190 (find_pc_partial_function): Rewrite using
4191 find_pc_partial_function_sym.
4192
16f3242c
TT
41932020-07-28 Tom Tromey <tromey@adacore.com>
4194
4195 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4196 help. Add usage.
4197
4888741a
TT
41982020-07-28 Tom Tromey <tromey@adacore.com>
4199
4200 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4201 <DW_OP_GNU_variable_value>: Cast to address type.
4202
4d46f402
KR
42032020-07-28 Kamil Rytarowski <n54@gmx.com>
4204
4205 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4206 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4207 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4208 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4209 (nbsd_get_siginfo_type): New.
4210 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4211 (_initialize_nbsd_tdep): New.
4212
d70f978b
L
42132020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4214
4215 PR binutils/26301
4216 * configure: Regenerated.
4217
377170fa
L
42182020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4219
4220 PR binutils/26301
4221 * configure: Regenerated.
4222
43d5901d
AB
42232020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4224
4225 * python/py-frame.c: Remove 'user-regs.h' include.
4226 (frapy_read_register): Rewrite to make use of
4227 gdbpy_parse_register_id.
4228 * python/py-registers.c (gdbpy_parse_register_id): New function,
4229 moved here from python/py-unwind.c. Updated the return type, and
4230 also accepts register descriptor objects.
4231 * python/py-unwind.c: Remove 'user-regs.h' include.
4232 (pyuw_parse_register_id): Moved to python/py-registers.c.
4233 (unwind_infopy_add_saved_register): Update to use
4234 gdbpy_parse_register_id.
4235 (pending_framepy_read_register): Likewise.
4236 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4237
14fa8fb3
AB
42382020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4239
4240 * python/py-registers.c: Add 'user-regs.h' include.
4241 (register_descriptor_iter_find): New function.
4242 (register_descriptor_iterator_object_methods): New static global
4243 methods array.
4244 (register_descriptor_iterator_object_type): Add pointer to methods
4245 array.
4246
ddce1758
JB
42472020-07-27 John Baldwin <jhb@FreeBSD.org>
4248
4249 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4250 for all architectures on FreeBSD 11.3 and later.
4251
a4089f52
TT
42522020-07-27 Tom Tromey <tromey@adacore.com>
4253
4254 * gcore.h (load_corefile): Don't declare.
4255
95420d30
TV
42562020-07-27 Tom de Vries <tdevries@suse.de>
4257
4258 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4259 * config.in: Regenerate.
4260 * configure: Regenerate.
4261
05a6b8c2
EZ
42622020-07-26 Eli Zaretskii <eliz@gnu.org>
4263
4264 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4265 ws2tcpip.h. When checking whether socklen_t type is defined, use
4266 ws2tcpip.h if it is available and sys/socket.h isn't.
4267 * configure: Regenerate.
4268 * config.in: Regenerate.
4269
e79eb02f
AB
42702020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4271
4272 PR fortran/23051
4273 PR fortran/26139
4274 * valops.c (value_ind): Pass address to
4275 readjust_indirect_value_type.
4276 * value.c (readjust_indirect_value_type): Make parameter
4277 non-const, and add extra address parameter. Resolve original type
4278 before using it.
4279 * value.h (readjust_indirect_value_type): Update function
4280 signature and comment.
4281
876518dd
TV
42822020-07-25 Tom de Vries <tdevries@suse.de>
4283
4284 PR symtab/26243
4285 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4286 entries.
4287
f6720b1c
AM
42882020-07-24 Aaron Merey <amerey@redhat.com>
4289
4290 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4291 * configure: Rebuild.
4292
513487e1
KB
42932020-07-23 Kevin Buettner <kevinb@redhat.com>
4294
4295 PR corefiles/26294
4296 * corelow.c (_initialize_corelow): Add period to help text
4297 for "maintenance print core-file-backed-mappings".
4298
e7bc9db8
PA
42992020-07-23 Pedro Alves <pedro@palves.net>
4300
4301 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4302 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4303 meanwhile.
4304 * frame.c (frame_cache_generation, get_frame_cache_generation):
4305 New.
4306 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4307 (get_prev_frame_if_no_cycle): On exception, don't touch
4308 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4309 * frame.h (get_frame_cache_generation): Declare.
4310
90fcc466
TV
43112020-07-23 Tom de Vries <tdevries@suse.de>
4312
4313 PR tui/26282
4314 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4315 New default constructor.
4316
78344df7
AB
43172020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4318
4319 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4320 exclude non-statement entries.
4321
b089853a
KB
43222020-07-22 Kevin Buettner <kevinb@redhat.com>
4323
4324 * NEWS (New commands): Mention new command
4325 "maintenance print core-file-backed-mappings".
4326
09c2f5d4
KB
43272020-07-22 Kevin Buettner <kevinb@redhat.com>
4328
4329 * corelow.c (gdbcmd.h): Include.
4330 (core_target::info_proc_mappings): New method.
4331 (get_current_core_target): New function.
4332 (maintenance_print_core_file_backed_mappings): New function.
4333 (_initialize_corelow): Add core-file-backed-mappings to
4334 "maint print" commands.
4335
9c5ec5c2 43362020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 4337
9c5ec5c2
KB
4338 * linux-tdep.c (dump_note_entry_p): New function.
4339 (linux_dump_mapping_p_ftype): New typedef.
4340 (linux_find_memory_regions_full): Add new parameter,
4341 should_dump_mapping_p.
4342 (linux_find_memory_regions): Adjust call to
4343 linux_find_memory_regions_full.
4344 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4345 call to linux_find_memory_regions_full.
4346
db082f59
KB
43472020-07-22 Kevin Buettner <kevinb@redhat.com>
4348
4349 * corelow.c (solist.h, unordered_map): Include.
4350 (class core_target): Add field m_core_file_mappings and
4351 method build_file_mappings.
4352 (core_target::core_target): Call build_file_mappings.
4353 (core_target::~core_target): Free memory associated with
4354 m_core_file_mappings.
4355 (core_target::build_file_mappings): New method.
4356 (core_target::xfer_partial): Use m_core_file_mappings
4357 for memory transfers.
4358 * linux-tdep.c (linux_read_core_file_mappings): New
4359 function.
4360 (linux_core_info_proc_mappings): Rewrite to use
4361 linux_read_core_file_mappings.
4362 (linux_init_abi): Register linux_read_core_file_mappings.
4363
7e183d27
KB
43642020-07-22 Kevin Buettner <kevinb@redhat.com>
4365
4366 * arch-utils.c (default_read_core_file_mappings): New function.
4367 * arch-utils.c (default_read_core_file_mappings): Declare.
4368 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4369 * gdbarch.h, gdbarch.c: Regenerate.
4370
2735d421
KB
43712020-07-22 Kevin Buettner <kevinb@redhat.com>
4372
4373 PR corefiles/25631
4374 * corelow.c (core_target:xfer_partial): Revise
4375 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4376 case after first checking the stratum beneath the core
4377 target.
4378 (has_all_memory): Return true.
4379 * target.c (raw_memory_xfer_partial): Revise comment
4380 regarding use of has_all_memory.
4381
e56cb451
KB
43822020-07-22 Kevin Buettner <kevinb@redhat.com>
4383
4384 * exec.h (section_table_xfer_memory): Revise declaration,
4385 replacing section name parameter with an optional callback
4386 predicate.
4387 * exec.c (section_table_xfer_memory): Likewise.
4388 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4389 of section_table_xfer_memory.
4390
32fa152e
TT
43912020-07-22 Tom Tromey <tromey@adacore.com>
4392
4393 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4394 lookup_symbol_search_name.
4395
a67a1c41
AB
43962020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4397
4398 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4399 redundant local variable.
4400 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4401 reference, not pointer, update code accordingly.
4402
a7b4ff4f
SM
44032020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4404 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4405
4406 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4407 * jit.c (jit_breakpoint_re_set_internal): Use the
4408 `skip_jit_symbol_lookup` field.
4409
2340e834
SM
44102020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4411 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4412
4413 * jit.c (jit_read_descriptor): Define the descriptor address once,
4414 use twice.
4415 (jit_breakpoint_deleted): Move the declaration of the loop variable
4416 `iter` into the loop header.
4417 (jit_breakpoint_re_set_internal): Move the declaration of the local
4418 variable `objf_data` to the first point of definition.
4419 (jit_event_handler): Move the declaration of local variables
4420 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4421 Rename `objf` to `jited`.
4422
c1072906
SM
44232020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4424
4425 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4426 Remove.
4427 * jit.c (get_jiter_objfile_data): Update.
4428
c8474dc3
TBA
44292020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4430 Simon Marchi <simon.marchi@polymtl.ca>
4431
4432 * jit.c (struct jit_program_space_data): Remove.
4433 (jit_program_space_key): Remove.
4434 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4435 stuff.
4436 (get_jit_program_space_data): Remove.
4437 (jit_breakpoint_deleted): Iterate on all of the program space's
4438 objfiles.
4439 (jit_inferior_init): Likewise.
4440 (jit_breakpoint_re_set_internal): Likewise. Also change return
4441 type to void.
4442 (jit_breakpoint_re_set): Pass current_program_space to
4443 jit_breakpoint_re_set_internal.
4444
77208eb7
SM
44452020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4446
4447 * jit.h (struct jiter_objfile_data) <cached_code_address,
4448 jit_breakpoint>: Move to here from ...
4449 * jit.c (jit_program_space_data): ... here.
4450 (jiter_objfile_data::~jiter_objfile_data): Update.
4451 (jit_breakpoint_deleted): Update.
4452 (jit_breakpoint_re_set_internal): Update.
4453
8c1c720f
SM
44542020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4455
4456 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4457 checks.
4458 (jit_read_descriptor): Remove NULL check.
4459 (jit_event_handler): Add an assertion.
4460
0e74a041
SM
44612020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4462
4463 * jit.h (struct jit_objfile_data): Split into...
4464 (struct jiter_objfile_data): ... this ...
4465 (struct jited_objfile_data): ... and this.
4466 * objfiles.h (struct objfile) <jit_data>: Remove.
4467 <jiter_data, jited_data>: New fields.
4468 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4469 (jiter_objfile_data::~jiter_objfile_data): ... this.
4470 (get_jit_objfile_data): Rename to ...
4471 (get_jiter_objfile_data): ... this.
4472 (add_objfile_entry): Update.
4473 (jit_read_descriptor): Use get_jiter_objfile_data.
4474 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4475 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4476 (jit_inferior_exit_hook): Use objfile's jited_data field.
4477
238b5c9f
SM
44782020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4479
4480 * jit.h: Forward-declare `struct minimal_symbol`.
4481 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4482 constructor, destructor, and an objfile* field.
4483 * jit.c (jit_objfile_data): Remove.
4484 (struct jit_objfile_data): Migrate from here to jit.h.
4485 (jit_objfile_data::~jit_objfile_data): New destructor
4486 implementation with code moved from free_objfile_data.
4487 (free_objfile_data): Delete.
4488 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4489 (jit_find_objf_with_entry_addr): Ditto.
4490 (jit_inferior_exit_hook): Ditto.
4491 (_initialize_jit): Remove the call to
4492 register_objfile_data_with_cleanup.
4493 * objfiles.h (struct objfile) <jit_data>: New field.
4494
fe053b9e
TBA
44952020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4496
4497 * jit.h: Forward-declare `struct objfile`.
4498 (jit_event_handler): Add a second parameter, the JITer objfile.
4499 * jit.c (jit_read_descriptor): Change the signature to take the
4500 JITer objfile as an argument instead of the jit_program_space_data.
4501 (jit_inferior_init): Update the call to jit_read_descriptor.
4502 (jit_event_handler): Use the new JITer objfile argument when calling
4503 jit_read_descriptor.
4504 * breakpoint.c (handle_jit_event): Update the call to
4505 jit_event_handler to pass the JITer objfile.
4506
4cec0c66
JB
45072020-07-21 John Baldwin <jhb@FreeBSD.org>
4508
4509 * gdbarch.c: Regenerate.
4510 * gdbarch.h: Regenerate.
4511 * gdbarch.sh (handle_segmentation_fault): Remove method.
4512 * infrun.c (handle_segmentation_fault): Remove.
4513 (print_signal_received_reason): Remove call to
4514 handle_segmentation_fault.
4515
0e42f66a
JB
45162020-07-21 John Baldwin <jhb@FreeBSD.org>
4517
4518 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4519 Rename to sparc64_linux_report_signal_info and add siggnal
4520 argument.
4521 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4522 instead of sparc64_linux_handle_segmentation_fault.
4523
77bdfeb2
JB
45242020-07-21 John Baldwin <jhb@FreeBSD.org>
4525
4526 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4527 i386_linux_report_signal_info instead of
4528 i386_linux_handle_segmentation_fault.
4529 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4530 to i386_linux_report_signal_info and add siggnal argument.
4531 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4532 of i386_linux_handle_segmentation_fault.
4533 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4534 to i386_linux_report_signal_info and add siggnal argument.
4535
ad97bfc5
JB
45362020-07-21 John Baldwin <jhb@FreeBSD.org>
4537
4538 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4539 hook if present.
4540
272bb05c
JB
45412020-07-21 John Baldwin <jhb@FreeBSD.org>
4542
4543 * gdbarch.c: Regenerate.
4544 * gdbarch.h: Regenerate.
4545 * gdbarch.sh (report_signal_info): New method.
4546 * infrun.c (print_signal_received_reason): Invoke gdbarch
4547 report_signal_info hook if present.
4548
baf8791e
AB
45492020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4550
4551 * python/py-registers.c : Add 'unordered_map' include.
4552 (gdbpy_new_reggroup): Renamed to...
4553 (gdbpy_get_reggroup): ...this. Update to only create register
4554 group descriptors when needed.
4555 (gdbpy_reggroup_iter_next): Update.
4556
f7306dac
AB
45572020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4558
4559 * python/py-registers.c (gdbpy_register_object_data): New static
4560 global.
4561 (gdbpy_register_object_data_init): New function.
4562 (gdbpy_new_register_descriptor): Renamed to...
4563 (gdbpy_get_register_descriptor): ...this, and update to reuse
4564 existing register descriptors where possible.
4565 (gdbpy_register_descriptor_iter_next): Update.
4566 (gdbpy_initialize_registers): Register new gdbarch data.
4567
05c309a8
SM
45682020-07-21 Simon Marchi <simon.marchi@efficios.com>
4569
4570 * linux-nat.c (stopped_pids): Make static.
4571
d1fd641e
SM
45722020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4573
4574 PR ada/26235
4575 * gdbtypes.c (ada_discrete_type_low_bound,
4576 ada_discrete_type_high_bound): Handle undefined bounds.
4577
1de14d77
KR
45782020-07-21 Kamil Rytarowski <n54@gmx.com>
4579
4580 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4581 declaration.
4582 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4583 function.
4584
ed810cc7
JB
45852020-07-20 John Baldwin <jhb@FreeBSD.org>
4586
4587 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4588 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4589 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4590 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4591 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4592 method.
4593
ae5369e7
LC
45942020-07-20 Ludovic Courtès <ludo@gnu.org>
4595
4596 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4597 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4598 which are deprecated in Guile 3.0.
4599 * configure.ac (try_guile_versions): Add "guile-3.0".
4600 * configure (try_guile_versions): Regenerate.
4601 * NEWS: Update entry.
4602
68cf161c
LC
46032020-07-20 Ludovic Courtès <ludo@gnu.org>
4604 Doug Evans <dje@google.com>
4605
4606 PR gdb/21104
4607 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4608 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4609 USING_GUILE_BEFORE_2_2.
4610 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4611 Change type to 'scm_t_port_type *'.
4612 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4613 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4614 parameter and honor it. Update callers.
4615 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4616 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4617 functions.
4618 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4619 USING_GUILE_BEFORE_2_2.
4620 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4621 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4622 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4623 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4624 and 'SCM_PORT_TYPE'.
4625 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4626 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4627 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4628 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4629 [!USING_GUILE_BEFORE_2_2]: New functions.
4630 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4631 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4632 'gdbscm_memory_port_read'.
4633 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4634 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4635 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4636 function.
4637 (ioscm_init_memory_port): Remove.
4638 (ioscm_init_memory_port_stream): New function
4639 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4640 function.
4641 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4642 Return scm_from_uint (0).
4643 (gdbscm_set_memory_port_read_buffer_size_x)
4644 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4645 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4646 Return scm_from_uint (0).
4647 (gdbscm_set_memory_port_write_buffer_size_x)
4648 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4649 * configure.ac (try_guile_versions): Add "guile-2.2".
4650 * configure: Regenerate.
4651 * NEWS: Add entry.
4652
aee91db3
TT
46532020-07-18 Tom Tromey <tom@tromey.com>
4654
4655 * linux-nat.c (linux_multi_process): Remove.
4656 (linux_nat_target::supports_multi_process): Return true.
4657
0e267416
AB
46582020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4659
4660 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4661 (riscv_lookup_target_description): Return pointer out of
4662 unique_ptr.
4663 * target-descriptions.c (allocate_target_description): Add
4664 comment.
4665 (target_desc_deleter::operator()): Likewise.
4666 * target-descriptions.h (struct target_desc_deleter): Moved to
4667 gdbsupport/tdesc.h.
4668 (target_desc_up): Likewise.
4669
f80c8ec4
TT
46702020-07-17 Tom Tromey <tromey@adacore.com>
4671
4672 * linux-nat.c (linux_nat_target::supports_non_stop)
4673 (linux_nat_target::always_non_stop_p): Use "true".
4674 (linux_nat_target::supports_disable_randomization): Use "true" and
4675 "false".
4676
d0ce17d8
CT
46772020-07-16 Caroline Tice <cmtice@google.com>
4678
4679 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4680 (RNGLIST_HEADER_SIZE64): New constant definition.
4681 (struct dwop_section_names): Add rnglists_dwo.
4682 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4683 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4684 (struct dwo_sections): Add rnglists field.
4685 (read_attribut_reprocess): Add tag parameter.
4686 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4687 (cu_debug_rnglists_section): New function (decl & definition).
4688 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4689 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4690 die whose range is being checked; get rnglist section from
4691 cu_debug_rnglists_section, to get from either objfile or dwo file as
4692 appropriate. Add cases for DW_RLE_base_addressx,
4693 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4694 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4695 test inside if-condition and updating complaint message.
4696 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4697 dwarf2_rnglists_process.
4698 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4699 dwarf2_ranges_process.
4700 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4701 need_ranges_base and update comment appropriately. Also pass die tag
4702 to dwarf2_ranges_read.
4703 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4704 need_ranges_base and update comment appropriately. Also pass die tag
4705 to dwarf2_ranges_process.
4706 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4707 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4708 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4709 need_ranges_base and update comment appropriately. Also pass die tag
4710 to read_attribute_reprocess and dwarf2_ranges_read.
4711 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4712 and update function comment appropriately.
4713 (read_loclist_index): Call read_loclists_rnglists_header instead of
4714 read_loclist_header.
4715 (read_rnglist_index): New function.
4716 (read_attribute_reprocess): Add tag parameter. Add code for
4717 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4718 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4719
3dcc261c
AB
47202020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4721
4722 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4723 being resolved.
4724
ccb9eba6
AB
47252020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4726
4727 * arch-utils.c (show_architecture): Update formatting of messages.
4728
cf88be68
SM
47292020-07-12 Simon Marchi <simon.marchi@efficios.com>
4730
4731 * gdbtypes.h (struct type) <bounds>: Handle array and string
4732 types.
4733 * ada-lang.c (assign_aggregate): Use type::bounds on
4734 array/string type.
4735 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4736 * c-varobj.c (c_number_of_children): Likewise.
4737 (c_describe_child): Likewise.
4738 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4739 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4740 (f_type_print_base): Likewise.
4741 * f-valprint.c (f77_array_offset_tbl): Likewise.
4742 (f77_get_upperbound): Likewise.
4743 (f77_print_array_1): Likewise.
4744 * guile/scm-type.c (gdbscm_type_range): Likewise.
4745 * m2-typeprint.c (m2_array): Likewise.
4746 (m2_is_long_set_of_type): Likewise.
4747 * m2-valprint.c (get_long_set_bounds): Likewise.
4748 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4749 * python/py-type.c (typy_range): Likewise.
4750 * rust-lang.c (rust_internal_print_type): Likewise.
4751 * type-stack.c (type_stack::follow_types): Likewise.
4752 * valarith.c (value_subscripted_rvalue): Likewise.
4753 * valops.c (value_cast): Likewise.
4754
509971ae
SM
47552020-07-12 Simon Marchi <simon.marchi@efficios.com>
4756
4757 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4758 callers to use the equivalent accessor methods.
4759
107406b7
SM
47602020-07-12 Simon Marchi <simon.marchi@efficios.com>
4761
4762 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4763 (struct type) <bit_stride>: New method.
4764 (TYPE_BIT_STRIDE): Remove.
4765 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4766
bb789949
SM
47672020-07-12 Simon Marchi <simon.marchi@efficios.com>
4768
4769 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4770 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4771 callers to use the equivalent accessor methods instead.
4772
39498edb
SM
47732020-07-12 Simon Marchi <simon.marchi@efficios.com>
4774
4775 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4776 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4777 callers to use the equivalent accessor methods instead.
4778
3b606f38
SM
47792020-07-12 Simon Marchi <simon.marchi@efficios.com>
4780
4781 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4782 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4783 to use dynamic_prop::kind.
4784
064d9cb9
SM
47852020-07-12 Simon Marchi <simon.marchi@efficios.com>
4786
4787 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4788 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4789 to get the bound property's kind and check against
4790 PROP_UNDEFINED.
4791
5537ddd0
SM
47922020-07-12 Simon Marchi <simon.marchi@efficios.com>
4793
4794 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4795 all callers to use type::range_bounds followed by
4796 dynamic_prop::{low,high}.
4797
8c2e4e06
SM
47982020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4799
4800 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4801 const_val, set_const_val, baton, set_locexpr, set_loclist,
4802 set_addr_offset, variant_parts, set_variant_parts,
4803 original_type, set_original_type>: New methods.
4804 <kind>: Rename to...
4805 <m_kind>: ... this. Update all users to use the new methods
4806 instead.
4807 <data>: Rename to...
4808 <m_data>: ... this. Update all users to use the new methods
4809 instead.
4810
7c6f2712
SM
48112020-07-12 Simon Marchi <simon.marchi@efficios.com>
4812
4813 * gdbtypes.c (get_discrete_bounds): Return failure if
4814 the range type's bounds are not both defined and constant
4815 values.
4816 (get_array_bounds): Update comment. Remove undefined bound check.
4817
599088e3
SM
48182020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4819
4820 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4821 the type::bounds method directly.
4822
c4dfcb36
SM
48232020-07-12 Simon Marchi <simon.marchi@efficios.com>
4824
4825 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4826 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4827 are used to set the range type's bounds to use set_bounds.
4828
0a278aa7
PW
48292020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4830
4831 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4832
cce20f10
PA
48332020-07-10 Pedro Alves <pedro@palves.net>
4834
4835 * gdbthread.h (inferior_ref): Define.
4836 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4837 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4838 * thread.c
4839 (scoped_restore_current_thread::restore):
4840 Adjust to gdb::ref_ptr.
4841 (scoped_restore_current_thread::~scoped_restore_current_thread):
4842 Remove manual decref handling.
4843 (scoped_restore_current_thread::scoped_restore_current_thread):
4844 Adjust to use
4845 inferior_ref::new_reference/thread_info_ref::new_reference.
4846 Incref the thread before calling get_frame_id instead of after.
4847 Let TARGET_CLOSE_ERROR propagate.
4848
6d7aa592
PA
48492020-07-10 Pedro Alves <pedro@palves.net>
4850
4851 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4852 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4853 NOT_AVAILABLE_ERROR.
4854 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4855 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4856
b3e3a4c1
SM
48572020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4858 Pedro Alves <pedro@palves.net>
4859
4860 PR gdb/26199
4861 * infrun.c (threads_are_resumed_pending_p): Delete.
4862 (do_target_wait): Remove threads_are_executing and
4863 threads_are_resumed_pending_p checks from the inferior_matches
4864 lambda. Update comments.
4865
d6cc5d98
PA
48662020-07-10 Pedro Alves <pedro@palves.net>
4867
4868 PR gdb/26199
4869 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4870 executing threads.
4871
7d3badc6
PA
48722020-07-10 Pedro Alves <pedro@palves.net>
4873
4874 PR gdb/26199
4875 * infrun.c (handle_no_resumed): Handle multiple targets.
4876
42bd97a6
PA
48772020-07-10 Pedro Alves <pedro@palves.net>
4878
4879 PR gdb/26199
4880 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4881 target_is_async_p.
4882
43667cc6
PA
48832020-07-10 Pedro Alves <pedro@palves.net>
4884
4885 PR gdb/26199
4886 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4887 threads, not all threads.
4888
96118d11
PA
48892020-07-10 Pedro Alves <pedro@palves.net>
4890
4891 PR gdb/26199
4892 * remote.c (remote_target::open_1): Pass remote target pointer as
4893 data to create_async_event_handler.
4894 (remote_async_inferior_event_handler): Mark async event handler
4895 before returning if the remote target still has either pending
4896 events or unacknowledged notifications.
4897
54904d81
JB
48982020-07-10 John Baldwin <jhb@FreeBSD.org>
4899
4900 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4901 declaration.
4902 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4903 function.
4904
f37e5866
JB
49052020-07-09 John Baldwin <jhb@FreeBSD.org>
4906
4907 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4908 inferior_ptid.
4909
fc238d4a
JB
49102020-07-09 John Baldwin <jhb@FreeBSD.org>
4911
4912 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4913 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4914 AT_FREEBSD_PS_STRINGS.
4915
6e2469ff
HD
49162020-07-08 Hannes Domani <ssbssa@yahoo.de>
4917
4918 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4919 of debugfile path on Windows.
4920
d1076c41
JB
49212020-07-08 John Baldwin <jhb@FreeBSD.org>
4922
4923 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4924 argument to 'data'.
4925
15f3b077
TT
49262020-07-08 Tom Tromey <tromey@adacore.com>
4927
4928 * ada-lang.c (ada_exception_message_1): Use read_memory.
4929
9fc501fd
AB
49302020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4931
4932 PR python/22748
4933 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4934 special handling for inline frames.
4935 * findvar.c (value_of_register_lazy): Skip inline frames when
4936 creating lazy register values.
4937 * frame.c (frame_id_computed_p): Delete definition.
4938 * frame.h (frame_id_computed_p): Delete declaration.
4939
64cb3757
AB
49402020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4941
4942 * NEWS: Mention additions to Python API.
4943 * python/py-arch.c (archpy_register_groups): New function.
4944 (arch_object_methods): Add 'register_groups' method.
4945 * python/py-registers.c (reggroup_iterator_object): New struct.
4946 (reggroup_object): New struct.
4947 (gdbpy_new_reggroup): New function.
4948 (gdbpy_reggroup_to_string): New function.
4949 (gdbpy_reggroup_name): New function.
4950 (gdbpy_reggroup_iter): New function.
4951 (gdbpy_reggroup_iter_next): New function.
4952 (gdbpy_new_reggroup_iterator): New function
4953 (gdbpy_initialize_registers): Register new types.
4954 (reggroup_iterator_object_type): Define new Python type.
4955 (gdbpy_reggroup_getset): New static global.
4956 (reggroup_object_type): Define new Python type.
4957 * python/python-internal.h
4958
0f767f94
AB
49592020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4960
4961 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4962 * python/py-arch.c (archpy_registers): New function.
4963 (arch_object_methods): Add 'registers' method.
4964 * python/py-registers.c: New file.
4965 * python/python-internal.h
4966 (gdbpy_new_register_descriptor_iterator): Declare.
4967 (gdbpy_initialize_registers): Declare.
4968 * python/python.c (do_start_initialization): Call
4969 gdbpy_initialize_registers.
4970 * NEWS: Mention additions to the Python API.
4971
87dbc774
AB
49722020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4973
4974 * NEWS: Mention new Python API method.
4975 * python/py-unwind.c (pending_framepy_architecture): New function.
4976 (pending_frame_object_methods): Add architecture method.
4977
3bc98c0c
AB
49782020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4979
4980 * gdbarch.c: Regenerate.
4981 * gdbarch.h: Regenerate.
4982 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4983 (gdbarch_data): Use internal_error for the case where
4984 deprecated_set_gdbarch_data was originally needed.
4985 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4986 and use passed in obstack.
4987 (libunwind_frame_set_descr): Should no longer get back NULL from
4988 gdbarch_data.
4989 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4990 type.
4991 * user-regs.c (user_regs_init): Update parameters, and use passed
4992 in obstack.
4993 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4994 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4995
d8cc8af6
TV
49962020-07-06 Tom de Vries <tdevries@suse.de>
4997
4998 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4999 End-Of-Sequence in lte_is_less_than.
5000 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5001 "gdb: Don't reorder line table entries too much when sorting".
5002
947f7597
TV
50032020-07-06 Tom de Vries <tdevries@suse.de>
5004
5005 PR tui/26205
5006 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5007
1e7c1b22
TV
50082020-07-05 Tom de Vries <tdevries@suse.de>
5009
5010 PR build/26187
5011 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5012 std::uncaught_exceptions instead of deprecated
5013 std::uncaught_exception.
5014
a36158ec
SM
50152020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5016
5017 * macroexp.h (macro_stringify): Return
5018 gdb::unique_xmalloc_ptr<char>.
5019 * macroexp.c (macro_stringify): Likewise.
5020 * macrotab.c (fixup_definition): Update.
5021
14d960c8
SM
50222020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5023
5024 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5025 (lex_one_token): Update.
5026 * macroexp.c (struct macro_buffer) <release>: Return
5027 gdb::unique_xmalloc_ptr<char>.
5028 (macro_stringify): Update.
5029 (macro_expand): Update.
5030 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5031 * macroexp.h (macro_expand_next): Likewise.
5032
211d5b1c
SM
50332020-07-02 Simon Marchi <simon.marchi@efficios.com>
5034
5035 * macroexp.h (macro_lookup_ftype): Remove.
5036 (macro_expand, macro_expand_once, macro_expand_next): Remove
5037 lookup function parameters, add scope parameter.
5038 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5039 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5040 * macroscope.h (standard_macro_lookup): Change parameter type
5041 to macro_scope.
5042 * macroscope.c (standard_macro_lookup): Likewise.
5043 * c-exp.y (lex_one_token): Update.
5044 * macrocmd.c (macro_expand_command): Likewise.
5045 (macro_expand_once_command): Likewise.
5046
b1a35af2
SM
50472020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5048
5049 * inf-loop.c (inferior_event_handler): Remove client_data param.
5050 * inf-loop.h (inferior_event_handler): Likewise.
5051 * infcmd.c (step_1): Adjust.
5052 * infrun.c (proceed): Adjust.
5053 (fetch_inferior_event): Remove client_data param.
5054 (infrun_async_inferior_event_handler): Adjust.
5055 * infrun.h (fetch_inferior_event): Remove `void *` param.
5056 * linux-nat.c (handle_target_event): Adjust.
5057 * record-btrace.c (record_btrace_handle_async_inferior_event):
5058 Adjust.
5059 * record-full.c (record_full_async_inferior_event_handler):
5060 Adjust.
5061 * remote.c (remote_async_inferior_event_handler): Adjust.
5062
1cdf9e33
TT
50632020-07-01 Tom Tromey <tom@tromey.com>
5064
5065 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5066 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5067
32c1e210
TT
50682020-07-01 Tom Tromey <tom@tromey.com>
5069
5070 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5071 tui_gen_win_info.
5072 (tui_win_info::make_window): Merge with
5073 tui_gen_win_info::make_window.
5074 (tui_win_info::make_visible): Move from tui_gen_win_info.
5075 * tui/tui-win.c (tui_win_info::max_width): Move from
5076 tui_gen_win_info.
5077 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5078 type.
5079 <window_factory>: Likewise.
5080 * tui/tui-layout.c (tui_win_info::resize): Move from
5081 tui_gen_win_info.
5082 (make_standard_window): Change return type.
5083 (get_locator_window, tui_get_window_by_name): Likewise.
5084 (tui_layout_window::apply): Remove a cast.
5085 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5086 (struct tui_win_info): Merge with tui_gen_win_info.
5087 (struct tui_gen_win_info): Remove.
5088
a30cb6da
TT
50892020-07-01 Tom Tromey <tom@tromey.com>
5090
5091 * tui/tui-stack.h (struct tui_locator_window): Derive from
5092 tui_win_info.
5093 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5094 <can_box>: New method.
5095
1eb2161f
TT
50962020-07-01 Tom Tromey <tom@tromey.com>
5097
5098 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5099
7134f2eb
TT
51002020-07-01 Tom Tromey <tom@tromey.com>
5101
5102 * tui/tui-regs.c (tui_data_window::display_registers_from)
5103 (tui_data_window::display_registers_from)
5104 (tui_data_window::first_data_item_displayed)
5105 (tui_data_window::delete_data_content_windows): Update.
5106 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5107 Remove.
5108 (tui_data_window::check_register_values): Update.
5109 (tui_data_item_window::rerender): Add parameters. Update.
5110 (tui_data_item_window::refresh_window): Remove.
5111 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5112 virtual.
5113 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5114 tui_gen_win_info.
5115 <refresh_window, max_height, min_height>: Remove.
5116 <rerender>: Add parameters.
5117 <x, y, visible>: New members.
5118 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5119 <m_item_width>: New member.
5120
22b7b041
TT
51212020-07-01 Tom Tromey <tom@tromey.com>
5122
5123 * tui/tui-regs.c (tui_data_window::show_register_group)
5124 (tui_data_window::check_register_values): Update.
5125 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5126 from item_no.
5127
c9753adb
TT
51282020-07-01 Tom Tromey <tom@tromey.com>
5129
5130 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5131 useless "if".
5132
9ab26b4a
TT
51332020-07-01 Tom Tromey <tom@tromey.com>
5134
5135 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5136 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5137
e555083f
TT
51382020-07-01 Tom Tromey <tom@tromey.com>
5139
5140 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5141 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5142 (struct tui_line_or_address): Move from tui-data.h.
5143 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5144 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5145 (tui_cmd_window, tui_source_window_base, tui_source_window)
5146 (tui_disasm_window): Don't declare.
5147 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5148 to tui-winsource.h.
5149 (SINGLE_KEY): Move to tui-stack.c.
5150
7a02bab7
TT
51512020-07-01 Tom Tromey <tom@tromey.com>
5152
5153 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5154 std::string.
5155 * tui/tui-regs.c (class tab_expansion_file): New.
5156 (tab_expansion_file::write): New method.
5157 (tui_register_format): Change return type. Use
5158 tab_expansion_file.
5159 (tui_get_register, tui_data_window::display_registers_from)
5160 (tui_data_item_window::rerender): Update.
5161 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5162 * tui/tui-io.c (tui_expand_tabs): Remove.
5163
ea68593b
TT
51642020-07-01 Tom Tromey <tom@tromey.com>
5165
5166 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5167
a8caed5d
FS
51682020-07-01 Fangrui Song <maskray@google.com>
5169
5170 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5171
9cdf9820
AKS
51722020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5173
5174 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5175 forms for DW_AT_associated and DW_AT_allocated attributes,
5176 which is already checked in function attr_to_dynamic_prop.
5177
a1520ad8
TT
51782020-06-30 Tom Tromey <tromey@adacore.com>
5179
5180 * dwarf2/read.c (quirk_rust_enum): Correctly call
5181 alloc_rust_variant for default-less enum.
5182
5ac58899
TT
51832020-06-30 Tom Tromey <tromey@adacore.com>
5184
5185 PR build/26183:
5186 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5187 gdb::to_string.
5188
19b187a9
SM
51892020-06-29 Simon Marchi <simon.marchi@efficios.com>
5190
5191 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5192 * gdbarch.h: Re-generate.
5193
cd4c4c07
TT
51942020-06-28 Tom Tromey <tom@tromey.com>
5195
5196 * command.h (cmd_types): Remove.
5197 (cmd_type): Don't declare.
5198 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5199 typedef.
5200 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5201 * cli/cli-decode.c (cmd_type): Remove.
5202
05779d57
PA
52032020-06-27 Pedro Alves <palves@redhat.com>
5204
5205 * fork-child.c (prefork_hook): Adjust.
5206 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5207 Delete.
5208 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5209 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5210 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5211 Remove declarations.
5212 (struct inferior) <set_tty, tty>: New methods.
5213 (struct inferior) <terminal>: Rename to ...
5214 (struct inferior) <m_terminal>: ... this and make private.
5215 * main.c (captured_main_1): Adjust.
5216 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5217 (mi_cmd_inferior_tty_show): Adjust.
5218 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5219 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5220
1776e3e5
NA
52212020-06-26 Nick Alcock <nick.alcock@oracle.com>
5222
5223 * configure.ac: Add --enable-libctf: handle --disable-static
5224 properly.
5225 * acinclude.m4: sinclude ../config/enable.m4.
5226 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5227 (LIBCTF): Substitute in.
5228 (CTF_DEPS): New, likewise.
5229 (CLIBS): libctf needs symbols from libbfd: move earlier.
5230 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5231 flags.
5232 * ctfread.c: Surround in ENABLE_LIBCTF.
5233 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5234 * configure: Regenerate.
5235 * config.in: Likewise.
5236
58373b80
SM
52372020-06-25 Simon Marchi <simon.marchi@efficios.com>
5238
5239 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5240
277474ee
SM
52412020-06-25 Simon Marchi <simon.marchi@efficios.com>
5242
5243 * inferior.h (struct inferior) <terminal>: Change type to
5244 gdb::unique_xmalloc_ptr<char>.
5245 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5246 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5247 field, adjust to unique pointer.
5248 (get_inferior_io_terminal): Adjust to unique pointer.
5249
6d74da72
AB
52502020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5251
5252 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5253 registers, not just the known core set of registers.
5254
2e52d038
AB
52552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5256
5257 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5258 fflags, frm, and fcsr registers.
5259 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5260 restore groups.
5261 (riscv_tdesc_unknown_reg): New function.
5262 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5263 tdesc_use_registers.
5264 * riscv-tdep.h (struct gdbarch_tdep): Add
5265 unknown_csrs_first_regnum, unknown_csrs_count,
5266 duplicate_fflags_regnum, duplicate_frm_regnum, and
5267 duplicate_fcsr_regnum fields.
5268
be64fd07
AB
52692020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5270
5271 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5272 callback, use the callback (when not null) to help number unknown
5273 registers.
5274 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5275 (tdesc_use_registers): Add extra parameter to declaration.
5276
3b9fce96
AB
52772020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5278
5279 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5280 in the file.
5281 (class riscv_pending_register_alias): Likewise.
5282 (riscv_register_feature::register_info): Change 'required_p' field
5283 to 'required', and change its type. Add 'check' member function.
5284 (riscv_register_feature::register_info::check): Define new member
5285 function.
5286 (riscv_xreg_feature): Change initialisation of 'required' field.
5287 (riscv_freg_feature): Likewise.
5288 (riscv_virtual_feature): Likewise.
5289 (riscv_csr_feature): Likewise.
5290 (riscv_check_tdesc_feature): Take extra parameter, the csr
5291 tdesc_feature, rewrite the function to use the new
5292 riscv_register_feature::register_info::check function.
5293 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5294
865bad26
AB
52952020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5296
5297 * features/Makefile: Remove all references to the deleted files
5298 below.
5299 * features/riscv/32bit-csr.c: Deleted.
5300 * features/riscv/32bit-csr.xml: Deleted.
5301 * features/riscv/64bit-csr.c: Deleted.
5302 * features/riscv/64bit-csr.xml: Deleted.
5303 * features/riscv/rebuild-csr-xml.sh: Deleted.
5304
ed69cbc8
AB
53052020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5306
5307 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5308 whitespace error for declaration of names member variable.
5309 (struct riscv_register_feature): Add new prefer_first_name member
5310 variable, and fix whitespace error in declaration of registers.
5311 (riscv_xreg_feature): Initialize prefer_first_name field.
5312 (riscv_freg_feature): Likewise.
5313 (riscv_virtual_feature): Likewise.
5314 (riscv_csr_feature): Likewise.
5315 (riscv_register_name): Expand on comments. Remove register name
5316 modifications for CSR and virtual registers.
5317
4445e8f5
AB
53182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5319
5320 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5321 errors.
5322
767a879e
AB
53232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5324
5325 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5326 riscv-opc.h.
5327 (class riscv_pending_register_alias): New class.
5328 (riscv_check_tdesc_feature): Take vector of pending aliases and
5329 populate it as appropriate.
5330 (riscv_setup_register_aliases): Delete.
5331 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5332 to riscv_check_tdesc_feature in all cases. Use the vector to
5333 create the register aliases.
5334
bb6e55f3
RO
53352020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5336
5337 * sol2-tdep.c (sol2_static_transform_name): Remove.
5338 (sol2_init_abi): Don't register it.
5339 * gdbarch.sh (static_transform_name): Remove.
5340 * gdbarch.c, gdbarch.h: Regenerate.
5341
5342 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5343 gdbarch_static_transform_name.
5344 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5345 * stabsread.c (define_symbol) <'X'>: Remove.
5346 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5347 handling.
5348 <'V'>: Likewise.
5349 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5350 <'S'>: Remove call to gdbarch_static_transform_name.
5351
c6d36836
RO
53522020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5353
5354 * procfs.c (procfs_pre_trace): New function.
5355 (procfs_target::create_inferior): Pass it to fork_inferior.
5356
a7e6196b
RO
53572020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5358
5359 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5360 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5361 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5362 sol2-tdep.o, sparc-sol2-tdep.o.
5363 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5364 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5365 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5366 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5367
d412e696
RO
53682020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5369
5370 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5371 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5372 Call sol2_init_abi.
5373 Remove calls to set_gdbarch_skip_solib_resolver,
5374 set_gdbarch_core_pid_to_str.
5375 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5376 (i386_sol2_static_transform_name): Remove.
5377 (i386_sol2_init_abi): Call sol2_init_abi.
5378 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5379 set_gdbarch_static_transform_name,
5380 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5381 Use sol2_sigtramp_p.
5382 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5383 (sol2_sigtramp_p): New function.
5384 (sol2_static_transform_name): New function.
5385 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5386 (sol2_init_abi): New function.
5387 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5388 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5389 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5390 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5391 (sparc_sol2_static_transform_name): Remove.
5392 (sparc32_sol2_init_abi): Call sol2_init_abi.
5393 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5394 set_gdbarch_static_transform_name,
5395 set_gdbarch_skip_solib_resolver,
5396 set_gdbarch_core_pid_to_str.
5397 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5398 (sparc_sol2_static_transform_name): Remove
5399 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5400 call sol2_sigtramp_p.
5401 (sparc64_sol2_init_abi): Call sol2_init_abi.
5402 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5403 set_gdbarch_static_transform_name,
5404 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5405
a8654e7d
PW
54062020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5407
5408 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5409 * exec.c (validate_exec_file): If from_tty, set both
5410 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5411 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5412 and from_tty, unconditionally ask a confirmation.
5413
caa7fd04
AB
54142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5415
5416 * target-descriptions.c (tdesc_architecture_name): Protect against
5417 NULL pointer dereference.
5418 (maint_print_xml_tdesc_cmd): New function.
5419 (_initialize_target_descriptions): Register new 'maint print
5420 xml-tdesc' command and give it the filename completer.
5421 * NEWS: Mention new 'maint print xml-tdesc' command.
5422
fbf42f4e
AB
54232020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5424
5425 * target-descriptions.c (class tdesc_compatible_info): New class.
5426 (struct target_desc): Change type of compatible vector.
5427 (tdesc_compatible_p): Update for change in type of
5428 target_desc::compatible.
5429 (tdesc_compatible_info_list): New function.
5430 (tdesc_compatible_info_arch_name): New function.
5431 (tdesc_add_compatible): Update for change in type of
5432 target_desc::compatible.
5433 (print_c_tdesc::visit_pre): Likewise.
5434
20821f4e
AB
54352020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5436
5437 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5438 whitespace to underscore.
5439 (maint_print_c_tdesc_cmd): Use fake filename for target
5440 descriptions that came from the target.
5441 (_initialize_target_descriptions): Add filename command completion
5442 for 'maint print c-tdesc'.
5443
1fb5ee62
SM
54442020-06-23 Simon Marchi <simon.marchi@efficios.com>
5445
5446 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5447 lines.
5448
fc3ecb3e
SM
54492020-06-23 Simon Marchi <simon.marchi@efficios.com>
5450
5451 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5452 lines.
5453 (dwarf2_find_location_expression): Likewise.
5454 (call_site_parameter_matches): Likewise.
5455 (dwarf2_compile_expr_to_ax): Likewise.
5456 (disassemble_dwarf_expression): Likewise.
5457 (loclist_describe_location): Likewise.
5458
236ef034
PA
54592020-06-23 Pedro Alves <palves@redhat.com>
5460
5461 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5462 progspace-and-thread.h. Include scoped-mock-context.h instead.
5463 (register_to_value_test): Use scoped_mock_context.
5464 * regcache.c: Include "scoped-mock-context.h".
5465 (cooked_read_test): Don't error out if a target is already pushed.
5466 Use scoped_mock_context. Adjust.
5467 * scoped-mock-context.h: New file.
5468
39e7ecca
AB
54692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5470
5471 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5472 initializer.
5473 (ada_language::is_string_type_p): New member function.
5474 * c-lang.c (c_language_data): Delete la_is_string_type_p
5475 initializer.
5476 (cplus_language_data): Likewise.
5477 (asm_language_data): Likewise.
5478 (minimal_language_data): Likewise.
5479 * d-lang.c (d_language_data): Likewise.
5480 * f-lang.c (f_is_string_type_p): Delete function, implementation
5481 moved to f_language::is_string_type_p.
5482 (f_language_data): Delete la_is_string_type_p initializer.
5483 (f_language::is_string_type_p): New member function,
5484 implementation from f_is_string_type_p.
5485 * go-lang.c (go_is_string_type_p): Delete function, implementation
5486 moved to go_language::is_string_type_p.
5487 (go_language_data): Delete la_is_string_type_p initializer.
5488 (go_language::is_string_type_p): New member function,
5489 implementation from go_is_string_type_p.
5490 * language.c (language_defn::is_string_type_p): Define new member
5491 function.
5492 (default_is_string_type_p): Make static, add comment copied from
5493 header file.
5494 (unknown_language_data): Delete la_is_string_type_p initializer.
5495 (unknown_language::is_string_type_p): New member function.
5496 (auto_language_data): Delete la_is_string_type_p initializer.
5497 (auto_language::is_string_type_p): New member function.
5498 * language.h (language_data): Delete la_is_string_type_p field.
5499 (language_defn::is_string_type_p): Declare new function.
5500 (default_is_string_type_p): Delete desclaration, move comment to
5501 definition.
5502 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5503 moved to m2_language::is_string_type_p.
5504 (m2_language_data): Delete la_is_string_type_p initializer.
5505 (m2_language::is_string_type_p): New member function,
5506 implementation from m2_is_string_type_p.
5507 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5508 initializer.
5509 * opencl-lang.c (opencl_language_data): Likewise.
5510 * p-lang.c (pascal_is_string_type_p): Delete function,
5511 implementation moved to pascal_language::is_string_type_p.
5512 (pascal_language_data): Delete la_is_string_type_p initializer.
5513 (pascal_language::is_string_type_p): New member function,
5514 implementation from pascal_is_string_type_p.
5515 * rust-lang.c (rust_is_string_type_p): Delete function,
5516 implementation moved to rust_language::is_string_type_p.
5517 (rust_language_data): Delete la_is_string_type_p initializer.
5518 (rust_language::is_string_type_p): New member function,
5519 implementation from rust_is_string_type_p.
5520 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5521 is_string_type_p.
5522
4ffc13fb
AB
55232020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5524
5525 * ada-lang.c (ada_language_data): Delete la_print_typedef
5526 initializer.
5527 (ada_language::print_typedef): New member function.
5528 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5529 (cplus_language_data): Likewise.
5530 (asm_language_data): Likewise.
5531 (minimal_language_data): Likewise.
5532 * d-lang.c (d_language_data): Likewise.
5533 * f-lang.c (f_language_data): Likewise.
5534 (f_language::print_typedef): New member function.
5535 * go-lang.c (go_language_data): Delete la_print_typedef
5536 initializer.
5537 * language.c (language_defn::print_typedef): Define member
5538 function.
5539 (unknown_language_data): Delete la_print_typedef initializer.
5540 (unknown_language::print_typedef): New member function.
5541 (auto_language_data): Delete la_print_typedef initializer.
5542 (auto_language::print_typedef): New member function.
5543 * language.h (language_data): Delete la_print_typedef field.
5544 (language_defn::print_typedef): Declare new member function.
5545 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5546 (default_print_typedef): Delete declaration.
5547 * m2-lang.c (m2_language_data): Delete la_print_typedef
5548 initializer.
5549 (m2_language::print_typedef): New member function.
5550 * objc-lang.c (objc_language_data): Delete la_print_typedef
5551 initializer.
5552 * opencl-lang.c (opencl_language_data): Likewise.
5553 * p-lang.c (pascal_language_data): Likewise.
5554 (pascal_language::print_typedef): New member function.
5555 * rust-lang.c (rust_print_typedef): Delete function,
5556 implementation moved to rust_language::print_typedef.
5557 (rust_language): Delete la_print_typedef initializer.
5558 (rust_language::print_typedef): New member function,
5559 implementation from rust_print_typedef.
5560 * typeprint.c (default_print_typedef): Delete.
5561
d711ee67
AB
55622020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5563
5564 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5565 (ada_language::printstr): New member function.
5566 * c-lang.c (c_language_data): Delete la_printstr initializer.
5567 (cplus_language_data): Likewise.
5568 (asm_language_data): Likewise.
5569 (minimal_language_data): Likewise.
5570 * d-lang.c (d_language_data): Likewise.
5571 * f-lang.c (f_printstr): Rename to f_language::printstr.
5572 (f_language_data): Delete la_printstr initializer.
5573 (f_language::printstr): New member function, implementation from
5574 f_printstr.
5575 * go-lang.c (go_language_data): Delete la_printstr initializer.
5576 * language.c (language_defn::printstr): Define new member
5577 function.
5578 (unk_lang_printstr): Delete.
5579 (unknown_language_data): Delete la_printstr initializer.
5580 (unknown_language::printstr): New member function.
5581 (auto_language_data): Delete la_printstr initializer.
5582 (auto_language::printstr): New member function.
5583 * language.h (language_data): Delete la_printstr field.
5584 (language_defn::printstr): Declare new member function.
5585 (LA_PRINT_STRING): Update call to printstr.
5586 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5587 (m2_language_data): Delete la_printstr initializer.
5588 (m2_language::printstr): New member function, implementation from
5589 m2_printstr.
5590 * objc-lang.c (objc_language_data): Delete la_printstr
5591 initializer.
5592 * opencl-lang.c (opencl_language_data): Likewise.
5593 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5594 (pascal_language_data): Delete la_printstr initializer.
5595 (pascal_language::printstr): New member function, implementation
5596 from pascal_printstr.
5597 * p-lang.h (pascal_printstr): Delete declaration.
5598 * rust-lang.c (rust_printstr): Update header comment.
5599 (rust_language_data): Delete la_printstr initializer.
5600 (rust_language::printstr): New member function.
5601
52b50f2c
AB
56022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5603
5604 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5605 (ada_language::printchar): New member function.
5606 * c-lang.c (c_language_data): Delete la_printchar initializer.
5607 (cplus_language_data): Likewise.
5608 (asm_language_data): Likewise.
5609 (minimal_language_data): Likewise.
5610 * d-lang.c (d_language_data): Likewise.
5611 * f-lang.c (f_printchar): Rename to f_language::printchar.
5612 (f_language_data): Delete la_printchar initializer.
5613 (f_language::printchar): New member function, implementation from
5614 f_printchar.
5615 * go-lang.c (go_language_data): Delete la_printchar initializer.
5616 * language.c (unk_lang_printchar): Delete.
5617 (language_defn::printchar): Define new member function.
5618 (unknown_language_data): Delete la_printchar initializer.
5619 (unknown_language::printchar): New member function.
5620 (auto_language_data): Delete la_printchar initializer.
5621 (auto_language::printchar): New member function.
5622 * language.h (language_data): Delete la_printchar field.
5623 (language_defn::printchar): Declare new member function.
5624 (LA_PRINT_CHAR): Update call to printchar.
5625 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5626 (m2_language::printchar): New member function.
5627 * objc-lang.c (objc_language_data): Delete la_printchar
5628 initializer.
5629 * opencl-lang.c (opencl_language_data): Likewise.
5630 * p-lang.c (pascal_language_data): Delete la_printchar
5631 initializer.
5632 (pascal_language::printchar): New member function.
5633 * rust-lang.c (rust_printchar): Rename to
5634 rust_language::printchar.
5635 (rust_language_data): Delete la_printchar initializer.
5636 (rust_language::printchar): New member function, implementation
5637 from rust_printchar.
5638
ec8cec5b
AB
56392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5640
5641 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5642 (ada_language_data): Delete la_emitchar initializer.
5643 (ada_language::emitchar): New member function, implementation from
5644 emit_char.
5645 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5646 (cplus_language_data): Likewise.
5647 (asm_language_data): Likewise.
5648 (minimal_language_data): Likewise.
5649 * d-lang.c (d_language_data): Likewise.
5650 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5651 (f_language_data): Delete la_emitchar initializer.
5652 (f_language::emitchar): New member function, implementation from
5653 f_emit_char.
5654 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5655 * language.c (unk_lang_emit_char): Delete.
5656 (language_defn::emitchar): New member function definition.
5657 (unknown_language_data): Delete la_emitchar initializer.
5658 (unknown_language::emitchar): New member function.
5659 (auto_language_data): Delete la_emitchar initializer.
5660 (auto_language::emitchar): New member function.
5661 * language.h (language_data): Delete la_emitchar field.
5662 (language_defn::emitchar): New member field declaration.
5663 (LA_EMIT_CHAR): Update call to emitchar.
5664 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5665 (m2_language_data): Delete la_emitchar initializer.
5666 (m2_language::emitchar): New member function, implementation from
5667 m2_emit_char.
5668 * objc-lang.c (objc_language_data): Delete la_emitchar
5669 initializer.
5670 * opencl-lang.c (opencl_language_data): Likewise.
5671 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5672 (pascal_language_data): Delete la_emitchar initializer.
5673 (pascal_language::emitchar): New member function, implementation
5674 from pascal_emit_char.
5675 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5676 (rust_language_data): Delete la_emitchar initializer.
5677 (rust_language::emitchar): New member function, implementation
5678 from rust_emitchar.
5679
1bf9c363
AB
56802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5681
5682 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5683 (ada_language_data): Delete la_post_parser initializer.
5684 (ada_language::post_parser): New member function.
5685 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5686 (cplus_language_data): Likewise.
5687 (asm_language_data): Likewise.
5688 (minimal_language_data): Likewise.
5689 * d-lang.c (d_language_data): Likewise.
5690 * f-lang.c (f_language_data): Likewise.
5691 * go-lang.c (go_language_data): Likewise.
5692 * language.c (unknown_language_data): Likewise.
5693 (auto_language_data): Likewise.
5694 * language.h (language_data): Delete la_post_parser field.
5695 (language_defn::post_parser): New member function.
5696 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5697 * objc-lang.c (objc_language_data): Likewise.
5698 * opencl-lang.c (opencl_language_data): Likewise.
5699 * p-lang.c (pascal_language_data): Likewise.
5700 * parse.c (parse_exp_in_context): Update call to post_parser.
5701 (null_post_parser): Delete definition.
5702 * parser-defs.h (null_post_parser): Delete declaration.
5703 * rust-lang.c (rust_language_data): Delete la_post_parser
5704 initializer.
5705
87afa652
AB
57062020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5707
5708 * ada-lang.c (parse): Rename to ada_language::parser.
5709 (ada_language_data): Delete la_parser initializer.
5710 (ada_language::parser): New member function, implementation from
5711 parse.
5712 * c-lang.c (c_language_data): Delete la_parser initializer.
5713 (cplus_language_data): Likewise.
5714 (asm_language_data): Likewise.
5715 (minimal_language_data): Likewise.
5716 * d-lang.c (d_language_data): Likewise.
5717 (d_language::parser): New member function.
5718 * f-lang.c (f_language_data): Delete la_parser initializer.
5719 (f_language::parser): New member function.
5720 * go-lang.c (go_language_data): Delete la_parser initializer.
5721 (go_language::parser): New member function.
5722 * language.c (unk_lang_parser): Delete.
5723 (language_defn::parser): Define new member function.
5724 (unknown_language_data): Delete la_parser initializer.
5725 (unknown_language::parser): New member function.
5726 (auto_language_data): Delete la_parser initializer.
5727 (auto_language::parser): New member function.
5728 * language.h (language_data): Delete la_parser field.
5729 (language_defn::parser): Declare new member function.
5730 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5731 (m2_language::parser): New member function.
5732 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5733 * opencl-lang.c (opencl_language_data): Likewise.
5734 * p-lang.c (pascal_language_data): Likewise.
5735 (pascal_language::parser): New member function.
5736 * parse.c (parse_exp_in_context): Update call to parser.
5737 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5738 (rust_language::parser): New member function.
5739
37825800
AB
57402020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5741
5742 * top.c (print_gdb_configuration): Print --with-python-libdir
5743 configuration value.
5744
5b860c93
PW
57452020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5746
5747 * NEWS: Mention change to the alias command.
5748
cf00cd6f
PW
57492020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5750
5751 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5752 (alias_command_completer)
5753 (make_alias_options_def_group): New functions.
5754 (alias_opts, alias_option_defs): New struct and array.
5755 (alias_usage_error): Update usage.
5756 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5757 Use option framework.
5758 (_initialize_cli_cmds): Update alias command help.
5759 Update aliases command help.
5760 (show_user):
5761 Add NULL for new default_args lookup_cmd argument.
5762 (valid_command_p): Rename to validate_aliased_command.
5763 Add NULL for new default_args lookup_cmd argument. Verify that the
5764 aliased_command has no default args.
5765 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5766 (lookup_cmd_1, lookup_cmd): New argument default_args.
5767 (add_alias_cmd):
5768 Add NULL for new default_args lookup_cmd argument.
5769 (print_help_for_command): Show default args under the layout
5770 alias some_alias = some_aliased_cmd some_alias_default_arg.
5771 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5772 xfree default_args in destructor.
5773 * cli/cli-script.c (process_next_line, do_define_command):
5774 Add NULL for new default_args lookup_cmd argument.
5775 * command.h: Declare new default_args argument in lookup_cmd
5776 and lookup_cmd_1.
5777 * completer.c (complete_line_internal_1):
5778 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5779 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5780 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5781 Likewise.
5782 * infcmd.c (_initialize_infcmd): Likewise.
5783 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5784 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5785 * python/py-param.c (add_setshow_generic): Likewise.
5786 * remote.c (_initialize_remote): Likewise.
5787 * top.c (execute_command): Prepend default_args if command has some.
5788 (set_verbose):
5789 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5790 * tracepoint.c (validate_actionline, encode_actions_1):
5791 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5792
bd920864
TBA
57932020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5794
5795 * jit.c (jit_read_descriptor): Use bool as the return type.
5796 (jit_breakpoint_re_set_internal): Use bool as the return type.
5797 Invert the return value logic; return true if the jit breakpoint
5798 has been successfully initialized.
5799 (jit_inferior_init): Update the call to
5800 jit_breakpoint_re_set_internal.
5801
f8098322
PA
58022020-06-22 Pedro Alves <palves@redhat.com>
5803
5804 PR gdb/25939
5805 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5806 Use the current inferior instead. Don't return
5807 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5808 wait again.
5809 * sol-thread.c (sol_thread_target::wait): Don't reference
5810 inferior_ptid.
5811 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5812 (sol_update_thread_list_callback): Use the current inferior's pid
5813 instead of inferior_ptid.
5814
196535a6
RO
58152020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5816
5817 * procfs.c: Cleanup many comments.
5818
5819 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5820 (AFTER_WATCHFLAG): Replace by value.
5821
5822 (MAIN_PROC_NAME_FORMAT): Inline ...
5823 (create_procinfo): ... here.
5824
5825 (procfs_debug_inferior): Remove SYS_exec handling.
5826 (syscall_is_exec): Likewise.
5827 (procfs_set_exec_trap): Likewise.
5828
5829 (syscall_is_lwp_exit): Inline in callers.
5830 (syscall_is_exit): Likewise.
5831 (syscall_is_exec): Likewise.
5832 (syscall_is_lwp_create): Likewise.
5833
5834 (invalidate_cache): Remove #if 0 code.
5835
5836 (make_signal_thread_runnable): Remove.
5837 (procfs_target::resume): Remove #if 0 code.
5838
cf6f3e86
RO
58392020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5840
5841 PR gdb/25939
5842 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5843 call ...
5844 (procfs_target::create_inferior): ... here.
5845
48e9cc84
PW
58462020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5847
5848 * exec.c (validate_exec_file): Ensure the build-id is up to
5849 date by calling reopen_exec_file (that checks file timestamp
5850 to decide to re-read the file).
5851
3922b302
PA
58522020-06-18 Pedro Alves <palves@redhat.com>
5853
5854 PR gdb/25412
5855 * gdbthread.h (delete_thread, delete_thread_silent)
5856 (find_thread_ptid): Update comments.
5857 * thread.c (current_thread_): New global.
5858 (is_current_thread): Move higher, and reimplement.
5859 (inferior_thread): Reimplement.
5860 (set_thread_exited): Use bool. Add assertions.
5861 (add_thread_silent): Simplify thread-reuse handling by always
5862 calling delete_thread.
5863 (delete_thread): Remove intro comment.
5864 (find_thread_ptid): Skip exited threads.
5865 (switch_to_thread_no_regs): Write to current_thread_.
5866 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5867 INFERIOR_PTID. Clear current_thread_.
5868
6dbdab44
PA
58692020-06-18 Pedro Alves <palves@redhat.com>
5870
5871 * aix-thread.c (pd_update): Use switch_to_thread.
5872
2da4b788
PA
58732020-06-18 Pedro Alves <palves@redhat.com>
5874
5875 * ravenscar-thread.c (ravenscar_thread_target): Update.
5876 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5877 (ravenscar_thread_target::add_active_thread): ... this. Don't
5878 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5879 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5880
50838d1b
PA
58812020-06-18 Pedro Alves <palves@redhat.com>
5882
5883 * nat/windows-nat.c (current_windows_thread): Remove.
5884 * nat/windows-nat.h (current_windows_thread): Remove.
5885 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5886 Adjust.
5887 (display_selectors): Adjust to fetch the current
5888 windows_thread_info based on inferior_ptid.
5889 (fake_create_process): No longer write to current_windows_thread.
5890 (windows_nat_target::get_windows_debug_event):
5891 Don't set inferior_ptid or current_windows_thread.
5892 (windows_nat_target::wait): Adjust to not rely on
5893 current_windows_thread.
5894 (do_initial_windows_stuff): Now a method of windows_nat_target.
5895 Switch to the last_ptid thread.
5896 (windows_nat_target::attach): Adjust.
5897 (windows_nat_target::detach): Use switch_to_no_thread instead of
5898 writing to inferior_ptid directly.
5899 (windows_nat_target::create_inferior): Adjust.
5900
31ce04e9
PA
59012020-06-18 Pedro Alves <palves@redhat.com>
5902
5903 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5904
1ee1a363
PA
59052020-06-18 Pedro Alves <palves@redhat.com>
5906
5907 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5908 after creating it, instead of writing to inferior_ptid. Don't
5909 write to inferior_ptid.
5910
6d350754
PA
59112020-06-18 Pedro Alves <palves@redhat.com>
5912
5913 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5914
5d971d48
PA
59152020-06-18 Pedro Alves <palves@redhat.com>
5916
5917 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5918 it, instead of writing to inferior_ptid.
5919
86e57d1b
PA
59202020-06-18 Pedro Alves <palves@redhat.com>
5921
5922 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5923 to inferior_ptid.
5924
f2e1c129
PA
59252020-06-18 Pedro Alves <palves@redhat.com>
5926
5927 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5928 instead of writing to inferior_ptid directly.
5929
60db1b85
PA
59302020-06-18 Pedro Alves <palves@redhat.com>
5931
5932 * corelow.c (core_target::close): Use switch_to_no_thread instead
5933 of writing to inferior_ptid directly.
5934 (add_to_thread_list, core_target_open): Use switch_to_thread
5935 instead of writing to inferior_ptid directly.
5936
fe7d6a8d
PA
59372020-06-18 Pedro Alves <palves@redhat.com>
5938
5939 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5940 inferior_ptid.
5941 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5942 inferior_ptid.
5943 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5944 inferior_ptid directly.
5945 (darwin_nat_target::init_thread_list): Switch to thread, instead
5946 of writing to inferior_ptid.
5947 (darwin_nat_target::attach): Don't write to inferior_ptid.
5948 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5949
975f8708
PA
59502020-06-18 Pedro Alves <palves@redhat.com>
5951
5952 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5953 thread.
5954 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5955 Instead use switch_to_thread.
5956 (gnu_nat_target::detach): Use switch_to_no_thread
5957 instead of writing to inferior_ptid directly. Used passed-in
5958 inferior instead of looking up the inferior by pid.
5959
1a204730
PA
59602020-06-18 Pedro Alves <palves@redhat.com>
5961
5962 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5963 inferior_ptid.
5964
ebe84f23
PA
59652020-06-18 Pedro Alves <palves@redhat.com>
5966
5967 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5968 inferior_ptid.
5969 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5970 thread.
5971 (nto_procfs_target::detach): Avoid referencing
5972 inferior_ptid. Use switch_to_no_thread instead of writing to
5973 inferior_ptid directly.
5974 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5975 instead of writing to inferior_ptid directly.
5976 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5977 to thread.
5978
191f02e5
PA
59792020-06-18 Pedro Alves <palves@redhat.com>
5980
5981 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5982 after creating it, instead of writing to inferior_ptid.
5983 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5984 to inferior_ptid directly.
5985 (gdbsim_target::wait): Don't write to inferior_ptid.
5986
0ac55310
PA
59872020-06-18 Pedro Alves <palves@redhat.com>
5988
5989 * remote.c (remote_target::remote_notice_new_inferior): Use
5990 switch_to_thread instead of writing to inferior_ptid directly.
5991 (remote_target::add_current_inferior_and_thread): Use
5992 switch_to_no_thread instead of writing to inferior_ptid directly.
5993 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5994 and switch_to_thread instead of using set_current_inferior or
5995 writing to inferior_ptid directly.
5996
5233f39b
PA
59972020-06-18 Pedro Alves <palves@redhat.com>
5998
5999 * tracectf.c (ctf_target_open): Switch to added thread instead of
6000 writing to inferior_ptid directly.
6001 (ctf_target::close): Use switch_to_no_thread instead of writing to
6002 inferior_ptid directly.
6003
087e161b
PA
60042020-06-18 Pedro Alves <palves@redhat.com>
6005
6006 * tracefile-tfile.c (tfile_target_open): Don't write to
6007 inferior_ptid directly, instead switch to added thread.
6008 (tfile_target::close): Use switch_to_no_thread instead of writing
6009 to inferior_ptid directly.
6010
7fb43e53
PA
60112020-06-18 Pedro Alves <palves@redhat.com>
6012
6013 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6014 (procfs_target::detach): Use switch_to_no_thread
6015 instead of writing to inferior_ptid directly.
6016 (do_attach): Change return type to void. Switch to the added
6017 thread.
6018 (procfs_target::create_inferior): Switch to the added thread.
6019 (procfs_do_thread_registers): Don't write to inferior_ptid.
6020
18493a00
PA
60212020-06-18 Pedro Alves <palves@redhat.com>
6022
6023 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6024 of writing to inferior_ptid.
6025 (scoped_restore_exited_inferior): Delete.
6026 (handle_vfork_child_exec_or_exit): Simplify using
6027 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6028 instead of writing to inferior_ptid.
6029 (THREAD_STOPPED_BY): Delete.
6030 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6031 (thread_stopped_by_hw_breakpoint): Delete.
6032 (save_waitstatus): Use
6033 scoped_restore_current_thread+switch_to_thread, and call
6034 target_stopped_by_watchpoint instead of
6035 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6036 instead of thread_stopped_by_sw_breakpoint, and
6037 target_stopped_by_hw_breakpoint instead of
6038 thread_stopped_by_hw_breakpoint.
6039 (handle_inferior_event)
6040 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6041 inferior_ptid directly, nor
6042 set_current_inferior/set_current_program_space. Use
6043 switch_to_thread / switch_to_inferior_no_thread instead.
6044
a0776b13
PA
60452020-06-18 Pedro Alves <palves@redhat.com>
6046
6047 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6048 instead of writing to inferior_ptid.
6049
6155c136
PA
60502020-06-18 Pedro Alves <palves@redhat.com>
6051
6052 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6053 added thread.
6054 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6055 to the added thread.
6056 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6057 instead of writing to inferior_ptid.
6058
c5316fc6
PA
60592020-06-18 Pedro Alves <palves@redhat.com>
6060
6061 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6062 (register_to_value_test): Mock a program_space too. Heap-allocate
6063 the address space. Don't write to inferior_ptid. Use
6064 switch_to_thread instead.
6065
8df01799
PA
60662020-06-18 Pedro Alves <palves@redhat.com>
6067
6068 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6069 Delete.
6070 (find_signalled_thread()): New, factored out from
6071 linux_make_corefile_notes and adjusted to handle exited threads.
6072 (linux_make_corefile_notes): Adjust to use the new
6073 find_signalled_thread.
6074
41792d68
PA
60752020-06-18 Pedro Alves <palves@redhat.com>
6076
6077 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6078 of saving/restoring inferior_ptid.
6079
612f258a
TT
60802020-06-17 Tom Tromey <tom@tromey.com>
6081
6082 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6083 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6084 declare.
6085 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6086
efb763a5
SM
60872020-06-15 Simon Marchi <simon.marchi@efficios.com>
6088
6089 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6090 of partial symtabs.
6091
2951f6c0
SM
60922020-06-17 Simon Marchi <simon.marchi@efficios.com>
6093
6094 * regformats/reg-arm.dat: Remove.
6095 * regformats/reg-bfin.dat: Remove.
6096 * regformats/reg-cris.dat: Remove.
6097 * regformats/reg-crisv32.dat: Remove.
6098 * regformats/reg-m32r.dat: Remove.
6099 * regformats/reg-tilegx.dat: Remove.
6100 * regformats/reg-tilegx32.dat: Remove.
6101
7d458ea5
SM
61022020-06-17 Simon Marchi <simon.marchi@efficios.com>
6103
6104 * features/Makefile (WHICH): Remove arm files.
6105 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6106 * regformats/arm/arm-with-neon.dat: Remove.
6107 * regformats/arm/arm-with-vfpv2.dat: Remove.
6108 * regformats/arm/arm-with-vfpv3.dat: Remove.
6109
3af96c0d
SM
61102020-06-17 Simon Marchi <simon.marchi@efficios.com>
6111
6112 * features/Makefile (XMLTOC): Remove rx.xml.
6113
b25e22fd
PA
61142020-06-17 Pedro Alves <palves@redhat.com>
6115
6116 * gdbthread.h (thread_control_state) <trap_expected> Update
6117 comments.
6118
a78a19b1
AB
61192020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6120
6121 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6122 ada_language::lookup_symbol_nonlocal.
6123 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6124 (ada_language::lookup_symbol_nonlocal): New member function,
6125 implementation from ada_lookup_symbol_nonlocal.
6126 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6127 initializer.
6128 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6129 initializer.
6130 (cplus_language::lookup_symbol_nonlocal): New member function.
6131 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6132 (minimal_language_data) Likewise.
6133 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6134 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6135 initializer.
6136 (d_language::lookup_symbol_nonlocal): New member function.
6137 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6138 initializer.
6139 (f_language::lookup_symbol_nonlocal): New member function.
6140 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6141 initializer.
6142 * language.c (unknown_language_data): Likewise.
6143 (auto_language_data): Likewise.
6144 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6145 field.
6146 (language_defn::lookup_symbol_nonlocal): New member function.
6147 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6148 initializer.
6149 * objc-lang.c (objc_language_data): Likewise.
6150 * opencl-lang.c (opencl_language_data): Likewise.
6151 * p-lang.c (pascal_language_data): Likewise.
6152 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6153 rust_language::lookup_symbol_nonlocal.
6154 (rust_language_data): Delete la_lookup_symbol_nonlocal
6155 initializer.
6156 (rust_language::lookup_symbol_nonlocal): New member function,
6157 implementation from rust_lookup_symbol_nonlocal.
6158 * symtab.c (lookup_symbol_aux): Update call to
6159 lookup_symbol_nonlocal.
6160 (basic_lookup_symbol_nonlocal): Rename to...
6161 (language_defn::lookup_symbol_nonlocal): ...this, and update
6162 header comment. Remove language_defn parameter, and replace with
6163 uses of `this'.
6164 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6165
ebe2334e
AB
61662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6167
6168 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6169 initializer.
6170 (ada_language::value_print_inner): New member function.
6171 * c-lang.c (c_language_data): Delete la_value_print_inner
6172 initializer.
6173 (cplus_language_data): Likewise.
6174 (asm_language_data): Likewise.
6175 (minimal_language_data): Likewise.
6176 * d-lang.c (d_language_data): Likewise.
6177 (d_language::value_print_inner): New member function.
6178 * f-lang.c (f_language_data): Delete la_value_print_inner
6179 initializer.
6180 (f_language::value_print_inner): New member function.
6181 * f-lang.h (f_value_print_innner): Rename to...
6182 (f_value_print_inner): ...this (note spelling of 'inner').
6183 * f-valprint.c (f_value_print_innner): Rename to...
6184 (f_value_print_inner): ...this (note spelling of 'inner').
6185 * go-lang.c (go_language_data): Delete la_value_print_inner
6186 initializer.
6187 (go_language::value_print_inner): New member function.
6188 * language.c (language_defn::value_print_inner): Define new member
6189 function.
6190 (unk_lang_value_print_inner): Delete.
6191 (unknown_language_data): Delete la_value_print_inner initializer.
6192 (unknown_language::value_print_inner): New member function.
6193 (auto_language_data): Delete la_value_print_inner initializer.
6194 (auto_language::value_print_inner): New member function.
6195 * language.h (language_data): Delete la_value_print_inner field.
6196 (language_defn::value_print_inner): Delcare new member function.
6197 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6198 initializer.
6199 (m2_language::value_print_inner): New member function.
6200 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6201 initializer.
6202 * opencl-lang.c (opencl_language_data): Likewise.
6203 * p-lang.c (pascal_language_data): Likewise.
6204 (pascal_language::value_print_inner): New member function.
6205 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6206 initializer.
6207 (rust_language::value_print_inner): New member function.
6208 * valprint.c (do_val_print): Update call to value_print_inner.
6209
a1d1fa3e
AB
62102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6211
6212 * ada-lang.c (ada_language_data): Delete la_value_print
6213 initializer.
6214 (ada_language::value_print): New member function.
6215 * c-lang.c (c_language_data): Delete la_value_print initializer.
6216 (cplus_language_data): Likewise.
6217 (asm_language_data): Likewise.
6218 (minimal_language_data): Likewise.
6219 * d-lang.c (d_language_data): Likewise.
6220 * f-lang.c (f_language_data): Likewise.
6221 * go-lang.c (go_language_data): Likewise.
6222 * language.c (unk_lang_value_print): Delete.
6223 (language_defn::value_print): Define new member function.
6224 (unknown_language_data): Delete la_value_print initializer.
6225 (unknown_language::value_print): New member function.
6226 (auto_language_data): Delete la_value_print initializer.
6227 (auto_language::value_print): New member function.
6228 * language.h (language_data): Delete la_value_print field.
6229 (language_defn::value_print): Declare new member function.
6230 (LA_VALUE_PRINT): Update call to value_print.
6231 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6232 * objc-lang.c (objc_language_data): Likewise.
6233 * opencl-lang.c (opencl_language_data): Likewise.
6234 * p-lang.c (pascal_language_data): Likewise.
6235 (pascal_language::value_print): New member function.
6236 * rust-lang.c (rust_language_data): Delete la_value_print
6237 initializer.
6238
f16a9f57
AB
62392020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6240
6241 * ada-lang.c (ada_watch_location_expression): Rename to
6242 ada_language::watch_location_expression.
6243 (ada_language_data): Delete la_watch_location_expression
6244 initializer.
6245 (ada_language::watch_location_expression): New member function,
6246 implementation from ada_watch_location_expression.
6247 * breakpoint.c (watch_command_1): Update call to
6248 watch_location_expression.
6249 * c-lang.c (c_watch_location_expression): Rename to
6250 language_defn::watch_location_expression.
6251 (c_language_data): Delete la_watch_location_expression
6252 initializer.
6253 (cplus_language_data): Likewise.
6254 (asm_language_data): Likewise.
6255 (minimal_language_data): Likewise.
6256 * c-lang.h (c_watch_location_expression): Delete declaration.
6257 * d-lang.c (d_language_data): Delete la_watch_location_expression
6258 initializer.
6259 * f-lang.c (f_language_data): Likewise.
6260 * go-lang.c (go_language_data): Likewise.
6261 * language.c (language_defn::watch_location_expression): Member
6262 function implementation from c_watch_location_expression.
6263 (unknown_language_data): Delete la_watch_location_expression
6264 initializer.
6265 (auto_language_data): Likewise.
6266 * language.h (language_data): Delete la_watch_location_expression
6267 field.
6268 (language_defn::watch_location_expression): Declare new member
6269 function.
6270 * m2-lang.c (m2_language_data): Delete
6271 la_watch_location_expression initializer.
6272 * objc-lang.c (objc_language_data): Likewise.
6273 * opencl-lang.c (opencl_language_data): Likewise.
6274 * p-lang.c (pascal_language_data): Likewise.
6275 * rust-lang.c (rust_watch_location_expression): Rename to
6276 rust_language::watch_location_expression.
6277 (rust_language_data): Delete la_watch_location_expression
6278 initializer.
6279 (rust_language::watch_location_expression): New member function,
6280 implementation from rust_watch_location_expression.
6281
7e56227d
AB
62822020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6283
6284 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6285 ada_language::collect_symbol_completion_matches.
6286 (ada_language_data): Delete la_collect_symbol_completion_matches
6287 initializer.
6288 (ada_language::collect_symbol_completion_matches): New member
6289 function, implementation from
6290 ada_collect_symbol_completion_matches.
6291 * c-lang.c (c_language_data): Delete
6292 la_collect_symbol_completion_matches initializer.
6293 (cplus_language_data): Likewise.
6294 (asm_language_data): Likewise.
6295 (minimal_language_data): Likewise.
6296 * d-lang.c (d_language_data): Likewise.
6297 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6298 f_language::collect_symbol_completion_matches.
6299 (f_language_data): Delete la_collect_symbol_completion_matches
6300 initializer.
6301 (f_language::collect_symbol_completion_matches) New member
6302 function, implementation from f_collect_symbol_completion_matches.
6303 * go-lang.c (go_language_data): Delete
6304 la_collect_symbol_completion_matches initializer.
6305 * language.c (unknown_language_data): Likewise.
6306 (auto_language_data): Likewise.
6307 * language.h (language_data): Delete
6308 la_collect_symbol_completion_matches field.
6309 (language_defn::collect_symbol_completion_matches): New member
6310 function.
6311 * m2-lang.c (m2_language_data): Delete
6312 la_collect_symbol_completion_matches initializer.
6313 * objc-lang.c (objc_language_data): Likewise.
6314 * opencl-lang.c (opencl_language_data): Likewise.
6315 * p-lang.c (pascal_language_data): Likewise.
6316 * rust-lang.c (rust_language_data): Likewise.
6317 * symtab.c (default_collect_symbol_completion_matches): Delete.
6318 (collect_symbol_completion_matches): Update call to
6319 collect_symbol_completion_matches.
6320 (collect_symbol_completion_matches_type): Likewise.
6321 * symtab.h (default_collect_symbol_completion_matches): Delete
6322 declaration.
6323
53fc67f8
AB
63242020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6325
6326 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6327 (ada_language_data): Delete la_word_break_characters initializer.
6328 (ada_language::word_break_characters): New member function.
6329 * c-lang.c (c_language_data): Delete la_word_break_characters
6330 initializer.
6331 (cplus_language_data): Likewise.
6332 (asm_language_data): Likewise.
6333 (minimal_language_data): Likewise.
6334 * completer.c: Update global comment.
6335 (advance_to_expression_complete_word_point): Update call to
6336 word_break_characters.
6337 (complete_files_symbols): Likewise.
6338 (complete_line_internal_1): Likewise.
6339 (default_completer_handle_brkchars): Likewise.
6340 (skip_quoted_chars): Likewise.
6341 * d-lang.c (d_language_data): Delete la_word_break_characters
6342 initializer.
6343 * f-lang.c (f_word_break_characters): Delete.
6344 (f_language_data): Delete la_word_break_characters initializer.
6345 (f_language::word_break_characters): New member function.
6346 * go-lang.c (go_language_data): Delete la_word_break_characters
6347 initializer.
6348 * language.c (unknown_language_data): Likewise.
6349 (auto_language_data): Likewise.
6350 * language.h (default_word_break_characters): Move declaration to
6351 earlier in the file.
6352 (language_data): Delete la_word_break_characters field.
6353 (language_defn::word_break_characters): New member function.
6354 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6355 initializer.
6356 * objc-lang.c (objc_language_data): Likewise.
6357 * opencl-lang.c (opencl_language_data): Likewise.
6358 * p-lang.c (pascal_language_data): Likewise.
6359 * rust-lang.c (rust_language_data): Likewise.
6360
c9debfb9
AB
63612020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6362
6363 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6364 (ada_language_data): Delete la_get_symbol_name_matcher
6365 initializer.
6366 (language_defn::get_symbol_name_matcher_inner): New member
6367 function.
6368 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6369 initializer.
6370 (cplus_language_data): Likewise.
6371 (cplus_language::get_symbol_name_matcher_inner): New member
6372 function.
6373 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6374 (minimal_language_data): Likewise.
6375 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6376 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6377 initializer.
6378 * dictionary.c (iter_match_first_hashed): Update call to
6379 get_symbol_name_matcher.
6380 (iter_match_next_hashed): Likewise.
6381 (iter_match_next_linear): Likewise.
6382 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6383 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6384 initializer.
6385 (f_language::get_symbol_name_matcher_inner): New member function.
6386 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6387 initializer.
6388 * language.c (default_symbol_name_matcher): Update header comment,
6389 make static.
6390 (language_defn::get_symbol_name_matcher): New definition.
6391 (language_defn::get_symbol_name_matcher_inner): Likewise.
6392 (get_symbol_name_matcher): Delete.
6393 (unknown_language_data): Delete la_get_symbol_name_matcher
6394 initializer.
6395 (auto_language_data): Likewise.
6396 * language.h (language_data): Delete la_get_symbol_name_matcher
6397 field.
6398 (language_defn::get_symbol_name_matcher): New member function.
6399 (language_defn::get_symbol_name_matcher_inner): Likewise.
6400 (default_symbol_name_matcher): Delete declaration.
6401 * linespec.c (find_methods): Update call to
6402 get_symbol_name_matcher.
6403 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6404 initializer.
6405 * minsyms.c (lookup_minimal_symbol): Update call to
6406 get_symbol_name_matcher.
6407 (iterate_over_minimal_symbols): Likewise.
6408 * objc-lang.c (objc_language_data): Delete
6409 la_get_symbol_name_matcher initializer.
6410 * opencl-lang.c (opencl_language_data): Likewise.
6411 * p-lang.c (pascal_language_data): Likewise.
6412 * psymtab.c (psymbol_name_matches): Update call to
6413 get_symbol_name_matcher.
6414 * rust-lang.c (rust_language_data): Delete
6415 la_get_symbol_name_matcher initializer.
6416 * symtab.c (symbol_matches_search_name): Update call to
6417 get_symbol_name_matcher.
6418 (compare_symbol_name): Likewise.
6419
9a49ad8c
AB
64202020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6421
6422 * ada-lang.c (ada_language_data): Delete la_compute_program
6423 initializer.
6424 * c-lang.c (c_language_data): Likewise.
6425 (c_language::compute_program): New member function.
6426 (cplus_language_data): Delete la_compute_program initializer.
6427 (cplus_language::compute_program): New member function.
6428 (asm_language_data): Delete la_compute_program initializer.
6429 (minimal_language_data): Likewise.
6430 * c-lang.h (c_compute_program): Update comment.
6431 (cplus_compute_program): Likewise.
6432 * compile/compile-c-support.c (c_compute_program): Likewise.
6433 (cplus_compute_program): Likewise.
6434 * compile/compile.c (compile_to_object): Update call to
6435 la_compute_program.
6436 * d-lang.c (d_language_data): Delete la_compute_program
6437 initializer.
6438 * f-lang.c (f_language_data): Likewise.
6439 * go-lang.c (go_language_data): Likewise.
6440 * language.c (unknown_language_data): Likewise.
6441 (auto_language_data): Likewise.
6442 * language.h (language_data): Delete la_compute_program field.
6443 (language_defn::compute_program): New member function.
6444 * m2-lang.c (m2_language_data): Delete la_compute_program
6445 initializer.
6446 * objc-lang.c (objc_language_data): Likewise.
6447 * opencl-lang.c (opencl_language_data): Likewise.
6448 * p-lang.c (pascal_language_data): Likewise.
6449 * rust-lang.c (rust_language_data): Likewise.
6450
eff93b4d
AB
64512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6452
6453 * ada-lang.c (ada_language_data) Delete
6454 la_class_name_from_physname initializer.
6455 * c-lang.c (c_language_data): Likewise.
6456 (cplus_language_data): Likewise.
6457 (cplus_language::class_name_from_physname): New member function.
6458 (asm_language_data): Delete la_class_name_from_physname
6459 initializer.
6460 (minimal_language_data): Likewise.
6461 * d-lang.c (d_language_data): Likewise.
6462 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6463 method on language_defn class.
6464 (guess_full_die_structure_name): Likewise.
6465 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6466 initializer.
6467 * go-lang.c (go_language_data): Likewise.
6468 * language.c (language_class_name_from_physname): Delete.
6469 (unk_lang_class_name): Delete.
6470 (unknown_language_data): Delete la_class_name_from_physname
6471 initializer.
6472 (auto_language_data): Likewise.
6473 * language.h (language_data): Delete la_class_name_from_physname
6474 field.
6475 (language_defn::class_name_from_physname): New function.
6476 (language_class_name_from_physname): Delete declaration.
6477 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6478 initializer.
6479 * objc-lang.c (objc_language_data): Likewise.
6480 * opencl-lang.c (opencl_language_data): Likewise.
6481 * p-lang.c (pascal_language_data): Likewise.
6482 * rust-lang.c (rust_language_data): Likewise.
6483
de543742
TT
64842020-06-16 Tom Tromey <tom@tromey.com>
6485
6486 * tui/tui-data.h (STATUS_NAME): New macro.
6487 * tui/tui-layout.c (tui_remove_some_windows)
6488 (initialize_known_windows, tui_register_window)
6489 (tui_layout_split::remove_windows, initialize_layouts)
6490 (tui_new_layout_command): Don't use hard-coded window names.
6491
a350efd4
TT
64922020-06-16 Tom Tromey <tom@tromey.com>
6493
6494 PR tui/25348:
6495 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6496 tui_initialize_readline. Only run once. Call rl_initialize.
6497 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6498 tui_initialize_readline.
6499 * tui/tui-io.c (tui_setup_io): Call
6500 tui_ensure_readline_initialized.
6501 * tui/tui-interp.c (tui_interp::init): Update.
6502
39ec0490
TT
65032020-06-16 Tom Tromey <tom@tromey.com>
6504
6505 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6506 Also preserve the status window.
6507
d2d1ea20
TT
65082020-06-16 Tom Tromey <tom@tromey.com>
6509
6510 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6511 where m_window==nullptr.
6512
66920317
TT
65132020-06-15 Tom Tromey <tromey@adacore.com>
6514
6515 * windows-nat.c (windows_nat::handle_output_debug_string):
6516 Update.
6517 (windows_nat::handle_ms_vc_exception): Update.
6518 * target.h (target_read_string): Change API.
6519 * target.c (target_read_string): Change API.
6520 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6521 Update.
6522 * solib-frv.c (frv_current_sos): Update.
6523 * solib-dsbt.c (dsbt_current_sos): Update.
6524 * solib-darwin.c (darwin_current_sos): Update.
6525 * linux-thread-db.c (inferior_has_bug): Update.
6526 * expprint.c (print_subexp_standard): Update.
6527 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6528 (ada_exception_message_1): Update.
6529
a5d871dd
TT
65302020-06-15 Tom Tromey <tromey@adacore.com>
6531
6532 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6533
670e35fa
TT
65342020-06-15 Tom Tromey <tromey@adacore.com>
6535
6536 * valprint.c (read_string): Update comment.
6537 * target.c (MIN): Remove.
6538 (target_read_string): Rewrite.
6539
f5272a3b
TT
65402020-06-15 Tom Tromey <tromey@adacore.com>
6541
6542 * corefile.c (read_memory_string): Remove.
6543 * ada-valprint.c (ada_value_print_ptr): Update.
6544 * ada-lang.h (ada_tag_name): Change return type.
6545 * ada-lang.c (type_from_tag): Update.
6546 (ada_tag_name_from_tsd): Change return type. Use
6547 target_read_string.
6548 (ada_tag_name): Likewise.
6549 * gdbcore.h (read_memory_string): Don't declare.
6550
2c074f49
HD
65512020-06-14 Hannes Domani <ssbssa@yahoo.de>
6552
6553 * symtab.c (rbreak_command): Ignore Windows drive colon.
6554
6a17d503
SM
65552020-06-12 Simon Marchi <simon.marchi@efficios.com>
6556
6557 * NEWS: Mention removed GDBserver host support.
6558
453c733f
NC
65592020-06-12 Nelson Chu <nelson.chu@sifive.com>
6560
6561 * features/riscv/rebuild-csr-xml.sh: Updated.
6562
2b4e6a3f
TT
65632020-06-11 Tom Tromey <tom@tromey.com>
6564
6565 PR gdb/18318:
6566 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6567
4412332f
JG
65682020-06-09 Jonny Grant <jg@jguk.org>
65692020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6570
6571 * main.c (captured_main_1): Don't print new line after help.
6572 (print_gdb_help): add mailing list and IRC channel information
6573 to --help. Add new lines between items in the footer. Remove
6574 quotes around bug url.
6575
2f33032a
KS
65762020-06-11 Keith Seitz <keiths@redhat.com>
6577
6578 PR gdb/21356
6579 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6580 Resolve typedefs for type length calculations.
6581
7ab96794
TV
65822020-06-10 Tom de Vries <tdevries@suse.de>
6583
6584 PR ada/24713
6585 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6586 (write_psymbols): Enable .gdb_index for ada.
6587 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6588 ada.
6589
e5f3ece2
TV
65902020-06-10 Tom de Vries <tdevries@suse.de>
6591
6592 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6593 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6594 namei" instead of "const char *name" argument.
6595 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6596 dw2_symtab_iter_init.
6597
940da03e
SM
65982020-06-08 Simon Marchi <simon.marchi@efficios.com>
6599
6600 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6601 to use type::field and field::type instead.
6602
b6cdac4b
SM
66032020-06-08 Simon Marchi <simon.marchi@efficios.com>
6604
6605 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6606 to use field::type instead.
6607
5d14b6e5
SM
66082020-06-08 Simon Marchi <simon.marchi@efficios.com>
6609
6610 * gdbtypes.h (struct field) <type, set_type>: New methods.
6611 Rename `type` field to...
6612 <m_type>: ... this. Change references throughout to use type or
6613 set_type methods.
6614 (FIELD_TYPE): Use field::type. Change call sites that modify
6615 the field's type to use field::set_type instead.
6616
3d967001
SM
66172020-06-08 Simon Marchi <simon.marchi@efficios.com>
6618
6619 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6620 to use type::index_type instead.
6621
262abc0d
SM
66222020-06-08 Simon Marchi <simon.marchi@efficios.com>
6623
6624 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6625 methods.
6626 (TYPE_INDEX_TYPE): Use type::index_type.
6627 * gdbtypes.c (create_array_type_with_stride): Likewise.
6628
82836c92
TT
66292020-06-07 Tom Tromey <tom@tromey.com>
6630
6631 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6632 parameter.
6633 (generic_value_print): Update.
6634
940dace9
AB
66352020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6636
6637 Revert commit 982a38f60b0.
6638 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6639
982a38f6
AB
66402020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6641
6642 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6643 avoid use after free.
6644
82f06518
TV
66452020-06-05 Tom de Vries <tdevries@suse.de>
6646
6647 * NEWS: Fix typos.
6648
f8c41851
SM
66492020-06-04 Simon Marchi <simon.marchi@efficios.com>
6650
6651 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6652 the per_bfd object.
6653 (dwarf2_read_debug_names): Likewise.
6654 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6655 object when re-using a per_bfd object with an index.
6656
f9b5d5ea
TV
66572020-06-03 Tom de Vries <tdevries@suse.de>
6658
6659 PR symtab/26046
6660 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6661 children for C++.
6662 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6663 DW_TAG_subprogram.
6664
f6eee2d0
AB
66652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6666
6667 * ada-lang.c (ada_language_data): Delete skip_trampoline
6668 initializer.
6669 * c-lang.c (c_language_data): Likewise.
6670 (cplus_language_data): Likewise.
6671 (cplus_language::skip_trampoline): New member function.
6672 (asm_language_data): Delete skip_trampoline initializer.
6673 (minimal_language_data): Likewise.
6674 * d-lang.c (d_language_data): Likewise.
6675 * f-lang.c (f_language_data): Likewise.
6676 * go-lang.c (go_language_data): Likewise.
6677 * language.c (unk_lang_trampoline): Delete function.
6678 (skip_language_trampoline): Update.
6679 (unknown_language_data): Delete skip_trampoline initializer.
6680 (auto_language_data): Likewise.
6681 * language.h (language_data): Delete skip_trampoline field.
6682 (language_defn::skip_trampoline): New function.
6683 * m2-lang.c (m2_language_data): Delete skip_trampoline
6684 initializer.
6685 * objc-lang.c (objc_skip_trampoline): Delete function, move
6686 implementation to objc_language::skip_trampoline.
6687 (objc_language_data): Delete skip_trampoline initializer.
6688 (objc_language::skip_trampoline): New member function with
6689 implementation from objc_skip_trampoline.
6690 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6691 initializer.
6692 * p-lang.c (pascal_language_data): Likewise.
6693 * rust-lang.c (rust_language_data): Likewise.
6694
0a50df5d
AB
66952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6696
6697 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6698 (ada_language::demangle): New member function.
6699 * c-lang.c (c_language_data): Delete la_demangle initializer.
6700 (cplus_language_data): Delete la_demangle initializer.
6701 (cplus_language::demangle): New member function.
6702 (asm_language_data): Delete la_demangle initializer.
6703 (minimal_language_data): Delete la_demangle initializer.
6704 * d-lang.c (d_language_data): Delete la_demangle initializer.
6705 (d_language::demangle): New member function.
6706 * f-lang.c (f_language_data): Delete la_demangle initializer.
6707 (f_language::demangle): New member function.
6708 * go-lang.c (go_language_data): Delete la_demangle initializer.
6709 (go_language::demangle): New member function.
6710 * language.c (language_demangle): Update.
6711 (unk_lang_demangle): Delete.
6712 (unknown_language_data): Delete la_demangle initializer.
6713 (unknown_language::demangle): New member function.
6714 (auto_language_data): Delete la_demangle initializer.
6715 (auto_language::demangle): New member function.
6716 * language.h (language_data): Delete la_demangle field.
6717 (language_defn::demangle): New function.
6718 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6719 * objc-lang.c (objc_language_data): Delete la_demangle
6720 initializer.
6721 (objc_language::demangle): New member function.
6722 * opencl-lang.c (opencl_language_data): Delete la_demangle
6723 initializer.
6724 * p-lang.c (pascal_language_data): Likewise.
6725 * rust-lang.c (rust_language_data): Likewise.
6726 (rust_language::demangle): New member function.
6727
fbfb0a46
AB
67282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6729
6730 * ada-lang.c (ada_language_data): Delete la_print_type
6731 initializer.
6732 (ada_language::print_type): New member function.
6733 * c-lang.c (c_language_data): Delete la_print_type initializer.
6734 (c_language::print_type): New member function.
6735 (cplus_language_data): Delete la_print_type initializer.
6736 (cplus_language::print_type): New member function.
6737 (asm_language_data): Delete la_print_type initializer.
6738 (asm_language::print_type): New member function.
6739 (minimal_language_data): Delete la_print_type initializer.
6740 (minimal_language::print_type): New member function.
6741 * d-lang.c (d_language_data): Delete la_print_type initializer.
6742 (d_language::print_type): New member function.
6743 * f-lang.c (f_language_data): Delete la_print_type initializer.
6744 (f_language::print_type): New member function.
6745 * go-lang.c (go_language_data): Delete la_print_type initializer.
6746 (go_language::print_type): New member function.
6747 * language.c (unk_lang_print_type): Delete.
6748 (unknown_language_data): Delete la_print_type initializer.
6749 (unknown_language::print_type): New member function.
6750 (auto_language_data): Delete la_print_type initializer.
6751 (auto_language::print_type): New member function.
6752 * language.h (language_data): Delete la_print_type field.
6753 (language_defn::print_type): New function.
6754 (LA_PRINT_TYPE): Update.
6755 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6756 (m2_language::print_type): New member function.
6757 * objc-lang.c (objc_language_data): Delete la_print_type
6758 initializer.
6759 (objc_language::print_type): New member function.
6760 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6761 to opencl_language::print_type.
6762 (opencl_language_data): Delete la_print_type initializer.
6763 (opencl_language::print_type): New member function, implementation
6764 from opencl_print_type.
6765 * p-lang.c (pascal_language_data): Delete la_print_type
6766 initializer.
6767 (pascal_language::print_type): New member function.
6768 * rust-lang.c (rust_print_type): Delete, implementation moved to
6769 rust_language::print_type.
6770 (rust_language_data): Delete la_print_type initializer.
6771 (rust_language::print_type): New member function, implementation
6772 from rust_print_type.
6773
6f827019
AB
67742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6775
6776 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6777 implementation moves to...
6778 (ada_language::sniff_from_mangled_name): ...here. Update return
6779 type.
6780 (ada_language_data): Delete la_sniff_from_mangled_name
6781 initializer.
6782 * c-lang.c (c_language_data): Likewise.
6783 (cplus_language_data): Likewise.
6784 (cplus_language::sniff_from_mangled_name): New member function,
6785 implementation taken from gdb_sniff_from_mangled_name.
6786 (asm_language_data): Delete la_sniff_from_mangled_name
6787 initializer.
6788 (minimal_language_data): Likewise.
6789 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6790 implementation moves to cplus_language::sniff_from_mangled_name.
6791 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6792 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6793 moves to...
6794 (d_language::sniff_from_mangled_name): ...here.
6795 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6796 * f-lang.c (f_language_data): Likewise.
6797 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6798 moves to...
6799 (go_language::sniff_from_mangled_name): ...here.
6800 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6801 * language.c (language_sniff_from_mangled_name): Delete.
6802 (unknown_language_data): Delete la_sniff_from_mangled_name
6803 initializer.
6804 (auto_language_data): Likewise.
6805 * language.h (language_data): Delete la_sniff_from_mangled_name
6806 field.
6807 (language_defn::sniff_from_mangled_name): New function.
6808 (language_sniff_from_mangled_name): Delete declaration.
6809 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6810 field.
6811 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6812 implementation moves to...
6813 (objc_language::sniff_from_mangled_name): ...here.
6814 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6815 * opencl-lang.c (opencl_language_data): Likewise.
6816 * p-lang.c (pascal_language_data): Likewise.
6817 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6818 implementation moves to...
6819 (rust_language::sniff_from_mangled_name): ...here.
6820 (rust_language_data): Delete la_sniff_from_mangled_name
6821 initializer.
6822 * symtab.c (symbol_find_demangled_name): Call
6823 sniff_from_mangled_name member function.
6824
fb8006fd
AB
68252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6826
6827 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6828 initializer.
6829 * c-lang.c (c_language_data): Likewise.
6830 (cplus_language_data): Likewise.
6831 (cplus_language::search_name_hash): New member function.
6832 (asm_language_data): Delete la_search_name_hash initializer.
6833 (minimal_language_data): Likewise.
6834 * d-lang.c (d_language_data): Likewise.
6835 * dictionary.c (default_search_name_hash): Rename to...
6836 (language_defn::search_name_hash): ...this.
6837 * f-lang.c (f_language_data): Likewise.
6838 (f_language::search_name_hash): New member function.
6839 * go-lang.c (go_language_data): Delete la_search_name_hash
6840 initializer.
6841 * language.c (unknown_language_data): Likewise.
6842 (auto_language_data): Likewise.
6843 * language.h (struct language_data): Delete la_search_name_hash
6844 field.
6845 (language_defn::search_name_hash): Declare new member function.
6846 (default_search_name_hash): Delete declaration.
6847 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6848 initializer.
6849 * objc-lang.c (objc_language_data): Likewise.
6850 * opencl-lang.c (opencl_language_data): Likewise.
6851 * p-lang.c (pascal_language_data): Likewise.
6852 * rust-lang.c (rust_language_data): Likewise.
6853 * symtab.c (search_name_hash): Update call.
6854
8e25bafe
AB
68552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6856
6857 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6858 initializer.
6859 * c-lang.c (class compile_instance): Declare.
6860 (c_language_data): Delete la_get_compile_instance initializer.
6861 (c_language::get_compile_instance): New member function.
6862 (cplus_language_data): Delete la_get_compile_instance initializer.
6863 (cplus_language::get_compile_instance): New member function.
6864 (asm_language_data): Delete la_get_compile_instance initializer.
6865 (minimal_language_data): Likewise.
6866 * c-lang.h (c_get_compile_context): Update comment.
6867 (cplus_get_compile_context): Update comment.
6868 * compile/compile.c (compile_to_object): Update calls, don't rely
6869 on function pointer being NULL.
6870 * d-lang.c (d_language_data): Delete la_get_compile_instance
6871 initializer.
6872 * f-lang.c (f_language_data): Likewise.
6873 * go-lang.c (go_language_data): Likewise.
6874 * language.c (unknown_language_data): Likewise.
6875 (auto_language_data): Likewise.
6876 * language.h (language_data): Delete la_get_compile_instance field.
6877 (language_defn::get_compile_instance): New member function.
6878 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6879 initializer.
6880 * objc-lang.c (objc_language_data): Likewise.
6881 * opencl-lang.c (opencl_language_data): Likewise.
6882 * p-lang.c (pascal_language_data): Likewise.
6883 * rust-lang.c (rust_language_data): Likewise.
6884
4009ee92
AB
68852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6886
6887 * ada-lang.c (ada_add_all_symbols): Update comment.
6888 (ada_iterate_over_symbols): Delete, move implementation to...
6889 (ada_language::iterate_over_symbols): ...here, a new member
6890 function, rewrite to use range based for loop.
6891 (ada_language_data): Delete la_iterate_over_symbols initializer.
6892 * c-lang.c (c_language_data): Likewise.
6893 (cplus_language_data): Likewise.
6894 (asm_language_data): Likewise.
6895 (minimal_language_data): Likewise.
6896 * d-lang.c (d_language_data): Likewise.
6897 * f-lang.c (f_language_data): Likewise.
6898 * go-lang.c (go_language_data): Likewise.
6899 * language.c (unknown_language_data): Likewise.
6900 (auto_language_data): Likewise.
6901 * language.h (language_data): Delete la_iterate_over_symbols field.
6902 (language_defn::iterate_over_symbols): New member function.
6903 (LA_ITERATE_OVER_SYMBOLS): Update.
6904 * linespec.c (iterate_over_all_matching_symtabs): Update.
6905 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6906 initializer.
6907 * objc-lang.c (objc_language_data): Likewise.
6908 * opencl-lang.c (opencl_language_data): Likewise.
6909 * p-lang.c (pascal_language_data): Likewise.
6910 * rust-lang.c (rust_language_data): Likewise.
6911
54f4ca46
AB
69122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6913
6914 * ada-lang.c (ada_language_data): Delete
6915 la_lookup_transparent_type initializer.
6916 * c-lang.c (c_language_data): Likewise.
6917 (cplus_language_data): Likewise.
6918 (cplus_language::lookup_transparent_type): New member function.
6919 (asm_language_data): Delete la_lookup_transparent_type
6920 initializer.
6921 (minimal_language_data): Likewise.
6922 * d-lang.c (d_language_data): Likewise.
6923 * f-lang.c (f_language_data): Likewise.
6924 * go-lang.c (go_language_data): Likewise.
6925 * language.c (unknown_language_data): Likewise.
6926 (auto_language_data): Likewise.
6927 * language.h (struct language_data): Delete
6928 la_lookup_transparent_type field.
6929 (language_defn::lookup_transparent_type): New member function.
6930 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6931 initializer.
6932 * objc-lang.c (objc_language_data): Likewise.
6933 * opencl-lang.c (opencl_language_data): Likewise.
6934 * p-lang.c (pascal_language_data): Likewise.
6935 * rust-lang.c (rust_language_data): Likewise.
6936 * symtab.c (symbol_matches_domain): Update call.
6937
1fb314aa
AB
69382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6939
6940 * ada-lang.c (ada_language_arch_info): Delete function, move
6941 implementation to...
6942 (ada_language::language_arch_info): ...here, a new member
6943 function.
6944 (ada_language_data): Delete la_language_arch_info.
6945 * c-lang.c (c_language_data): Likewise.
6946 (c_language::language_arch_info): New member function.
6947 (cplus_language_arch_info): Delete function, move
6948 implementation to...
6949 (cplus_language::language_arch_info): ...here, a new member
6950 function.
6951 (cplus_language_data): Delete la_language_arch_info.
6952 (asm_language_data): Likewise.
6953 (asm_language::language_arch_info): New member function.
6954 (minimal_language_data): Delete la_language_arch_info.
6955 (minimal_language::language_arch_info): New member function.
6956 * d-lang.c (d_language_arch_info): Delete function, move
6957 implementation to...
6958 (d_language::language_arch_info): ...here, a new member
6959 function.
6960 (d_language_data): Delete la_language_arch_info.
6961 * f-lang.c (f_language_arch_info): Delete function, move
6962 implementation to...
6963 (f_language::language_arch_info): ...here, a new member
6964 function.
6965 (f_language_data): Delete la_language_arch_info.
6966 * go-lang.c (go_language_arch_info): Delete function, move
6967 implementation to...
6968 (go_language::language_arch_info): ...here, a new member
6969 function.
6970 (go_language_data): Delete la_language_arch_info.
6971 * language.c (unknown_language_data): Likewise.
6972 (unknown_language::language_arch_info): New member function.
6973 (auto_language_data): Delete la_language_arch_info.
6974 (auto_language::language_arch_info): New member function.
6975 (language_gdbarch_post_init): Update call to
6976 la_language_arch_info.
6977 * language.h (language_data): Delete la_language_arch_info
6978 function pointer.
6979 (language_defn::language_arch_info): New function.
6980 * m2-lang.c (m2_language_arch_info): Delete function, move
6981 implementation to...
6982 (m2_language::language_arch_info): ...here, a new member
6983 function.
6984 (m2_language_data): Delete la_language_arch_info.
6985 * objc-lang.c (objc_language_arch_info): Delete function, move
6986 implementation to...
6987 (objc_language::language_arch_info): ...here, a new member
6988 function.
6989 (objc_language_data): Delete la_language_arch_info.
6990 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6991 implementation to...
6992 (opencl_language::language_arch_info): ...here, a new member
6993 function.
6994 (opencl_language_data): Delete la_language_arch_info.
6995 * p-lang.c (pascal_language_arch_info): Delete function, move
6996 implementation to...
6997 (pascal_language::language_arch_info): ...here, a new member
6998 function.
6999 (pascal_language_data): Delete la_language_arch_info.
7000 * rust-lang.c (rust_language_arch_info): Delete function, move
7001 implementation to...
7002 (rust_language::language_arch_info): ...here, a new member
7003 function.
7004 (rust_language_data): Delete la_language_arch_info.
7005
48448202
AB
70062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7007
7008 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7009 initializer.
7010 * c-lang.c (c_language_data): Likewise.
7011 (cplus_language_data): Likewise.
7012 (cplus_language::pass_by_reference_info): New method.
7013 (asm_language_data): Delete la_pass_by_reference initializer.
7014 (minimal_language_data): Likewise.
7015 * cp-abi.c (cp_pass_by_reference): Remove use of
7016 default_pass_by_reference.
7017 * d-lang.c (d_language_data): Likewise.
7018 * f-lang.c (f_language_data): Likewise.
7019 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7020 default_pass_by_reference.
7021 * go-lang.c (go_language_data): Likewise.
7022 * language.c (language_pass_by_reference): Update.
7023 (default_pass_by_reference): Delete.
7024 (unknown_language_data): Delete la_pass_by_reference
7025 initializer.
7026 (auto_language_data): Likewise.
7027 * language.h (struct language_data): Delete la_pass_by_reference
7028 field.
7029 (language_defn::pass_by_reference_info): New member function.
7030 (default_pass_by_reference): Delete declaration.
7031 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7032 initializer.
7033 * objc-lang.c (objc_language_data): Likewise.
7034 * opencl-lang.c (opencl_language_data): Likewise.
7035 * p-lang.c (pascal_language_data): Likewise.
7036 * rust-lang.c (rust_language_data): Likewise.
7037
15e5fd35
AB
70382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7039
7040 * ada-lang.c (ada_read_var_value): Delete function, move
7041 implementation to...
7042 (ada_language::read_var_value): ...here.
7043 (ada_language_data): Delete la_read_var_value initializer.
7044 * c-lang.c (c_language_data): Likewise.
7045 (cplus_language_data): Likewise.
7046 (minimal_language_data): Likewise.
7047 * d-lang.c (d_language_data): Likewise.
7048 * f-lang.c (f_language_data): Likewise.
7049 * findvar.c (default_read_var_value): Rename to...
7050 (language_defn::read_var_value): ...this.
7051 * findvar.c (read_var_value): Update header comment, and change to
7052 call member function instead of function pointer.
7053 * go-lang.c (go_language_data): Likewise.
7054 * language.c (unknown_language_data): Delete la_read_var_value
7055 initializer.
7056 (auto_language_data): Likewise.
7057 * language.h (struct language_data): Delete la_read_var_value
7058 field.
7059 (language_defn::read_var_value): New member function.
7060 (default_read_var_value): Delete declaration.
7061 * m2-lang.c (m2_language_data): Delete la_read_var_value
7062 initializer.
7063 * objc-lang.c (objc_language_data): Likewise.
7064 * opencl-lang.c (opencl_language_data): Likewise.
7065 * p-lang.c (pascal_language_data): Likewise.
7066 * rust-lang.c (rust_language_data): Likewise.
7067 * value.h (default_read_var_value): Delete declaration.
7068
5bd40f2a
AB
70692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7070
7071 * ada-lang.c (ada_print_array_index): Delete function, move
7072 implementation to...
7073 (ada_language::print_array_index): ...here.
7074 (ada_language_data): Delete la_print_array_index initializer.
7075 * c-lang.c (c_language_data): Likewise.
7076 (cplus_language_data): Likewise.
7077 (minimal_language_data): Likewise.
7078 * d-lang.c (d_language_data): Likewise.
7079 * f-lang.c (f_language_data): Likewise.
7080 * go-lang.c (go_language_data): Likewise.
7081 * language.c (default_print_array_index): Delete function, move
7082 implementation to...
7083 (language_defn::print_array_index): ...here.
7084 (unknown_language_data): Delete la_print_array_index initializer.
7085 (auto_language_data): Likewise.
7086 * language.h (struct language_data): Delete la_print_array_index
7087 field.
7088 (language_defn::print_array_index): New member function.
7089 (LA_PRINT_ARRAY_INDEX): Update.
7090 (default_print_array_index): Delete declaration.
7091 * m2-lang.c (m2_language_data): Delete la_print_array_index
7092 initializer.
7093 * objc-lang.c (objc_language_data): Likewise.
7094 * opencl-lang.c (opencl_language_data): Likewise.
7095 * p-lang.c (pascal_language_data): Likewise.
7096 * rust-lang.c (rust_language_data): Likewise.
7097
0874fd07
AB
70982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7099
7100 * gdb/ada-lang.c (ada_language_defn): Convert to...
7101 (ada_language_data): ...this.
7102 (class ada_language): New class.
7103 (ada_language_defn): New static global.
7104 * gdb/c-lang.c (c_language_defn): Convert to...
7105 (c_language_data): ...this.
7106 (class c_language): New class.
7107 (c_language_defn): New static global.
7108 (cplus_language_defn): Convert to...
7109 (cplus_language_data): ...this.
7110 (class cplus_language): New class.
7111 (cplus_language_defn): New static global.
7112 (asm_language_defn): Convert to...
7113 (asm_language_data): ...this.
7114 (class asm_language): New class.
7115 (asm_language_defn): New static global.
7116 (minimal_language_defn): Convert to...
7117 (minimal_language_data): ...this.
7118 (class minimal_language): New class.
7119 (minimal_language_defn): New static global.
7120 * gdb/d-lang.c (d_language_defn): Convert to...
7121 (d_language_data): ...this.
7122 (class d_language): New class.
7123 (d_language_defn): New static global.
7124 * gdb/f-lang.c (f_language_defn): Convert to...
7125 (f_language_data): ...this.
7126 (class f_language): New class.
7127 (f_language_defn): New static global.
7128 * gdb/go-lang.c (go_language_defn): Convert to...
7129 (go_language_data): ...this.
7130 (class go_language): New class.
7131 (go_language_defn): New static global.
7132 * gdb/language.c (unknown_language_defn): Remove declaration.
7133 (current_language): Initialize to nullptr, real initialization is
7134 moved to _initialize_language.
7135 (languages): Delete global.
7136 (language_defn::languages): Define.
7137 (set_language_command): Use language_defn::languages.
7138 (set_language): Likewise.
7139 (range_error): Likewise.
7140 (language_enum): Likewise.
7141 (language_def): Likewise.
7142 (add_set_language_command): Use language_def::languages for the
7143 language list, and language_def to lookup language pointers.
7144 (skip_language_trampoline): Use language_defn::languages.
7145 (unknown_language_defn): Convert to...
7146 (unknown_language_data): ...this.
7147 (class unknown_language): New class.
7148 (unknown_language_defn): New static global.
7149 (auto_language_defn): Convert to...
7150 (auto_language_data): ...this.
7151 (class auto_language): New class.
7152 (auto_language_defn): New static global.
7153 (language_gdbarch_post_init): Use language_defn::languages.
7154 (_initialize_language): Initialize current_language.
7155 * gdb/language.h (struct language_defn): Rename to...
7156 (struct language_data): ...this.
7157 (struct language_defn): New.
7158 (auto_language_defn): Delete.
7159 (unknown_language_defn): Delete.
7160 (minimal_language_defn): Delete.
7161 (ada_language_defn): Delete.
7162 (asm_language_defn): Delete.
7163 (c_language_defn): Delete.
7164 (cplus_language_defn): Delete.
7165 (d_language_defn): Delete.
7166 (f_language_defn): Delete.
7167 (go_language_defn): Delete.
7168 (m2_language_defn): Delete.
7169 (objc_language_defn): Delete.
7170 (opencl_language_defn): Delete.
7171 (pascal_language_defn): Delete.
7172 (rust_language_defn): Delete.
7173 * gdb/m2-lang.c (m2_language_defn): Convert to...
7174 (m2_language_data): ...this.
7175 (class m2_language): New class.
7176 (m2_language_defn): New static global.
7177 * gdb/objc-lang.c (objc_language_defn): Convert to...
7178 (objc_language_data): ...this.
7179 (class objc_language): New class.
7180 (objc_language_defn): New static global.
7181 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7182 (opencl_language_data): ...this.
7183 (class opencl_language): New class.
7184 (opencl_language_defn): New static global.
7185 * gdb/p-lang.c (pascal_language_defn): Convert to...
7186 (pascal_language_data): ...this.
7187 (class pascal_language): New class.
7188 (pascal_language_defn): New static global.
7189 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7190 language pointer, update comment format.
7191 * gdb/rust-lang.c (rust_language_defn): Convert to...
7192 (rust_language_data): ...this.
7193 (class rust_language): New class.
7194 (rust_language_defn): New static global.
7195
1313c56e
AB
71962020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7197
7198 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7199 member variable.
7200 <m_stmt_at_address>: New member variable.
7201 (lnp_state_machine::record_line): Don't record some lines, update
7202 tracking of is_stmt at the same address.
7203 (lnp_state_machine::lnp_state_machine): Initialise new member
7204 variables.
7205
b7ed9f3d
ST
72062020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7207
7208 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7209 "-include gnu-nat-mig.h".
7210 * gnu-nat-mig.h: New file.
7211 * gnu-nat.c: Include "gnu-nat-mig.h".
7212 (exc_server, msg_reply_server, notify_server,
7213 process_reply_server): Remove declarations.
7214
14a8ad62
ST
72152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7216
7217 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7218 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7219 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7220 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7221 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7222 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7223 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7224 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7225 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7226 to gnu_nat_target class.
7227 * gnu-nat.c: Likewise.
7228 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7229 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7230 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7231 object.
7232 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7233 instead of `gnu_target'.
7234
0af5e106
ST
72352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7236
7237 * i386-gnu-tdep.c: Include "gdbcore.h"
7238 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7239 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7240 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7241 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7242 i386_gnu_sigcontext_addr): New functions
7243 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7244 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7245 tdep.
7246
078f2fc9
ST
72472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7248
7249 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7250 before fork_inferior call. Avoid calling it if target_is_pushed returns
7251 true.
7252
53dff92c
ST
72532020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7254
7255 * gnu-nat.h (gnu_target): New variable declaration.
7256 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7257 gnu_target.
7258 * gnu-nat.c (gnu_target): New variable.
7259 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7260 add_thread_silent, and add_thread calls.
7261 (gnu_nat_target::create_inferior): Pass gnu_target to
7262 add_thread_silent, thread_change_ptid call.
7263 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7264 call.
7265
5a8b8627
ST
72662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7267
7268 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7269 (gnu_nat_target::find_memory_regions): Remove unused
7270 `old_address' variable.
7271
366f550a
ST
72722020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7273
7274 * gnu-nat.c: Include "gdbarch.h".
7275
f14871bf
ST
72762020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7277
7278 * reply_mig_hack.awk (Error return): Cast function through
7279 void *, to bypass compiler function call check.
7280
c6887cfb
ST
72812020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7282
7283 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7284 $(srcdir)/reply_mig_hack.awk.
7285
6930bffe
ST
72862020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7287
7288 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7289
112c22ed
JG
72902020-05-30 Jonny Grant <jg@jguk.org>
7291
7292 * configure.ac (ACX_BUGURL): change bug URL to https.
7293
f68f85b5
PA
72942020-05-30 Pedro Alves <palves@redhat.com>
7295
7296 * cp-support.c (replace_typedefs_template): New.
7297 (replace_typedefs_qualified_name): Handle
7298 DEMANGLE_COMPONENT_TEMPLATE.
7299
976ca316
SM
73002020-05-29 Simon Marchi <simon.marchi@efficios.com>
7301
7302 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7303 dwarf2/index-cache.h, dwarf2/index-write.c,
7304 dwarf2/index-write.h, dwarf2/line-header.c,
7305 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7306 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7307 variables and fields from `dwarf2_per_objfile` to just
7308 `per_objfile` throughout.
7309
989ade05
SM
73102020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7311
7312 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7313 <push_dwarf_reg_entry_value>: Add comment.
7314
c47bae85
KB
73152020-05-28 Kevin Buettner <kevinb@redhat.com>
7316 Keith Seitz <keiths@redhat.com>
7317
7318 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7319 instead of PyEval_ReleaseLock.
7320 (class gdbpy_gil): Move to earlier in file.
7321 (finalize_python): Set gdb_python_initialized.
7322 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7323 when not initialized.
7324
44486dcf
SM
73252020-05-28 Simon Marchi <simon.marchi@efficios.com>
7326
7327 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7328 <push_dwarf_reg_entry_value>: Remove assert. Override
7329 per_objfile with caller_per_objfile.
7330
f030440d
TV
73312020-05-28 Tom de Vries <tdevries@suse.de>
7332
7333 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7334 PR gold/15646 workaround to symbol kind "type".
7335
f0fbb768
TT
73362020-05-27 Tom Tromey <tromey@adacore.com>
7337
7338 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7339
af0b2a3e
TT
73402020-05-27 Tom Tromey <tromey@adacore.com>
7341
7342 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7343 Use htab_find_with_hash.
7344 <add_abbrev>: Remove "abbrev_number" parameter.
7345 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7346 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7347 (hash_abbrev): Add comment.
7348 (abbrev_table::lookup_abbrev): Move to header file.
7349 (abbrev_table::read): Update.
7350
7d00ffec
TT
73512020-05-27 Tom Tromey <tromey@adacore.com>
7352
7353 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7354 method.
7355 <canonical_name>: New member.
7356 <raw_name>: Rename from "name".
7357 (partial_die_info): Initialize canonical_name.
7358 (scan_partial_symbols): Check raw_name.
7359 (partial_die_parent_scope, partial_die_full_name)
7360 (add_partial_symbol, add_partial_subprogram)
7361 (add_partial_enumeration, load_partial_dies): Use "name" method.
7362 (partial_die_info::name): New method.
7363 (partial_die_info::read, guess_partial_die_structure_name)
7364 (partial_die_info::fixup): Update.
7365
697bba18
TT
73662020-05-27 Tom Tromey <tromey@adacore.com>
7367
7368 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7369 <get_ref_die_offset>: Inline.
7370 <get_ref_die_offset_complaint>: New method.
7371 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7372 (attribute::get_ref_die_offset_complaint): Rename from
7373 get_ref_die_offset. Just issue complaint.
7374
c17ace43
HD
73752020-05-27 Hannes Domani <ssbssa@yahoo.de>
7376
7377 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7378
96445f0b
HD
73792020-05-27 Hannes Domani <ssbssa@yahoo.de>
7380
7381 * exec.c (exec_file_attach): Use errno value of first openp failure.
7382
ac637ec3
HD
73832020-05-27 Hannes Domani <ssbssa@yahoo.de>
7384
7385 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7386 Don't close thread handle.
7387
17ee85fc
TT
73882020-05-27 Tom Tromey <tom@tromey.com>
7389 Simon Marchi <simon.marchi@efficios.com>
7390
7391 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7392 shared_ptr.
7393 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7394 member.
7395 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7396 dwarf2_per_bfd_objfile_data_key>: New globals.
7397 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7398 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7399 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7400 shared.
7401 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7402 short-circuit when sharing.
7403 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7404 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7405
39b16f87
SM
74062020-05-27 Simon Marchi <simon.marchi@efficios.com>
7407
7408 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7409 to...
7410 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7411 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7412
fcf23d5b
SM
74132020-05-27 Simon Marchi <simon.marchi@efficios.com>
7414
7415 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7416 build_name_components, find_name_components_bounds>:
7417 Add per_objfile parameter.
7418 (struct mapped_index) <symbol_name_at>: Likewise.
7419 (struct mapped_debug_names): Remove constructor.
7420 <dwarf2_per_objfile>: Remove field.
7421 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7422 (mapped_index_base::find_name_components_bounds,
7423 mapped_index_base::build_name_components,
7424 dw2_expand_symtabs_matching_symbol): Likewise.
7425 (class mock_mapped_index) <symbol_name_at>: Likewise.
7426 (check_match): Likewise.
7427 (check_find_bounds_finds): Likewise.
7428 (test_mapped_index_find_name_component_bounds): Update.
7429 (CHECK_MATCH): Update.
7430 (dw2_expand_symtabs_matching): Update.
7431 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7432 per_objfile parameter.
7433 <find_vec_in_debug_names>: Likewise.
7434 <m_per_objfile>: New field.
7435 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7436 parameter.
7437 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7438 (dw2_debug_names_iterator::next): Update.
7439 (dw2_debug_names_lookup_symbol): Update.
7440 (dw2_debug_names_expand_symtabs_for_function): Update.
7441 (dw2_debug_names_map_matching_symbols): Update.
7442 (dw2_debug_names_expand_symtabs_matching): Update.
7443 (dwarf2_read_debug_names): Update.
7444
7188ed02
SM
74452020-05-27 Simon Marchi <simon.marchi@efficios.com>
7446
7447 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7448 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7449 move to dwarf2_per_objfile.
7450 <read_in_chain>: Remove.
7451 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7452 remove_all_cus, age_comp_units>: New methods.
7453 <m_dwarf2_cus>: New member.
7454 (struct dwarf2_per_cu_data) <cu>: Remove.
7455 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7456 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7457 moved to methods of dwarf2_per_objfile.
7458 (dwarf2_clear_marks): Remove.
7459 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7460 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7461 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7462 (dwarf2_per_objfile::remove_all_cus): New.
7463 (class free_cached_comp_units) <~free_cached_comp_units>:
7464 Update.
7465 (load_cu): Update.
7466 (dw2_do_instantiate_symtab): Adjust.
7467 (fill_in_sig_entry_from_dwo_entry): Adjust.
7468 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7469 (cutu_reader::cutu_reader): Likewise.
7470 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7471 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7472 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7473 and dwarf2_per_objfile::age_comp_units.
7474 (load_partial_comp_unit): Update.
7475 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7476 (process_queue): Likewise.
7477 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7478 backlink.
7479 (dwarf2_read_addr_index): Likewise.
7480 (follow_die_offset): Likewise.
7481 (dwarf2_fetch_die_loc_sect_off): Likewise.
7482 (dwarf2_fetch_constant_bytes): Likewise.
7483 (dwarf2_fetch_die_type_sect_off): Likewise.
7484 (follow_die_sig_1): Likewise.
7485 (load_full_type_unit): Likewise.
7486 (read_signatured_type): Likewise.
7487 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7488 (dwarf2_cu::~dwarf2_cu): Remove.
7489 (dwarf2_per_objfile::get_cu): New.
7490 (dwarf2_per_objfile::set_cu): New.
7491 (age_cached_comp_units): Rename to...
7492 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7493 to std::unordered_map.
7494 (free_one_cached_comp_unit): Rename to...
7495 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7496 to std::unordered_map.
7497 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7498 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7499 a dwarf2_per_objfile in data.
7500 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7501 (dwarf2_clear_marks): Remove.
7502
2e671100
SM
75032020-05-27 Simon Marchi <simon.marchi@efficios.com>
7504
7505 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7506 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7507 (init_tu_and_read_dwo_dies): Likewise.
7508 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7509 (cutu_reader::cutu_reader): Likewise.
7510 (load_partial_comp_unit): Likewise.
7511 (process_psymtab_comp_unit): Update.
7512 (build_type_psymtabs_1): Update.
7513 (process_skeletonless_type_unit): Update.
7514 (load_full_comp_unit): Update.
7515 (find_partial_die): Update.
7516 (dwarf2_read_addr_index): Update.
7517 (read_signatured_type): Update.
7518
2e6a9f79
SM
75192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7520
7521 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7522 m_header_read_in>: New fields.
7523 <get_header>: New method.
7524 * dwarf2/read.c (per_cu_header_read_in): Remove.
7525 (dwarf2_per_cu_data::get_header): New.
7526 (dwarf2_per_cu_data::addr_size): Update.
7527 (dwarf2_per_cu_data::offset_size): Update.
7528 (dwarf2_per_cu_data::ref_addr_size): Update.
7529
1b555f17
SM
75302020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7531
7532 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7533 (dw2_do_instantiate_symtab): Update.
7534 (queue_and_load_all_dwo_tus): Change parameter from
7535 dwarf2_per_cu_data to dwarf2_cu.
7536 (dwarf2_fetch_die_loc_sect_off): Update.
7537 (dwarf2_fetch_constant_bytes): Update.
7538 (dwarf2_fetch_die_type_sect_off): Update.
7539
8fc0b21d
SM
75402020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7541
7542 * dwarf2/read.c (process_full_comp_unit,
7543 process_full_type_unit): Remove per_cu, per_objfile paramters.
7544 Add dwarf2_cu parameter.
7545 (process_queue): Update.
7546
168c9250
SM
75472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7548
7549 * dwarf2/read.c (create_cu_from_index_list): Replace
7550 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7551 (create_cus_from_index_list): Likewise.
7552 (create_cus_from_index): Likewise.
7553 (create_signatured_type_table_from_index): Likewise.
7554 (create_cus_from_debug_names_list): Likewise.
7555 (create_cus_from_debug_names): Likewise.
7556 (dwarf2_read_gdb_index): Update.
7557 (dwarf2_read_debug_names): Update.
7558
e286671b
TT
75592020-05-27 Tom Tromey <tom@tromey.com>
7560 Simon Marchi <simon.marchi@efficios.com>
7561
7562 * dwarf2/read.h (struct dwarf2_per_objfile)
7563 <get_type_for_signatured_type, set_type_for_signatured_type>:
7564 New methods.
7565 <m_type_map>: New member.
7566 (struct signatured_type) <type>: Remove.
7567 * dwarf2/read.c
7568 (dwarf2_per_objfile::get_type_for_signatured_type,
7569 dwarf2_per_objfile::set_type_for_signatured_type): New.
7570 (get_signatured_type): Use new methods.
7571
8adb8487
TT
75722020-05-27 Tom Tromey <tom@tromey.com>
7573 Simon Marchi <simon.marchi@efficios.com>
7574
7575 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7576 (struct dwarf2_per_objfile) <type_units>: New member.
7577 <get_type_unit_group_unshareable>: New method.
7578 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7579 num_symtabs, symtabs>: Remove; move to
7580 type_unit_group_unshareable.
7581 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7582 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7583 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7584
127bbf4b
SM
75852020-05-27 Simon Marchi <simon.marchi@efficios.com>
7586
7587 * dwarf2/read.h (struct dwarf2_per_cu_data):
7588 <dwarf2_per_objfile>: Remove.
7589 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7590 dwarf2_per_objfile.
7591 (create_signatured_type_table_from_index): Likewise.
7592 (create_signatured_type_table_from_debug_names): Likewise.
7593 (create_debug_type_hash_table): Likewise.
7594 (fill_in_sig_entry_from_dwo_entry): Likewise.
7595 (create_type_unit_group): Likewise.
7596 (read_comp_units_from_section): Likewise.
7597 (create_cus_hash_table): Likewise.
7598
f6e649dd
SM
75992020-05-27 Simon Marchi <simon.marchi@efficios.com>
7600
7601 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7602 dwarf2_per_cu_data::dwarf2_per_objfile.
7603 (compute_compunit_symtab_includes): Likewise.
7604 (dwarf2_cu::start_symtab): Likewise.
7605
aa66c379
SM
76062020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7607
7608 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7609 parameter.
7610 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7611 (read_namespace_alias): Update.
7612 (lookup_die_type): Update.
7613 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7614 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7615 Update.
7616 (disassemble_dwarf_expression): Update.
7617
120ce1b5
SM
76182020-05-27 Simon Marchi <simon.marchi@efficios.com>
7619
7620 * dwarf2/read.h (struct dwarf2_queue_item): Add
7621 dwarf2_per_objfile parameter, assign new parameter.
7622 <per_objfile>: New field.
7623 * dwarf2/read.c (free_one_cached_comp_unit): Add
7624 dwarf2_per_objfile parameter.
7625 (queue_comp_unit): Likewise.
7626 (dw2_do_instantiate_symtab): Update.
7627 (process_psymtab_comp_unit): Update.
7628 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7629 (process_imported_unit_die): Update.
7630 (queue_and_load_dwo_tu): Update.
7631 (follow_die_offset): Update.
7632 (follow_die_sig_1): Update.
7633
9f47c707
SM
76342020-05-27 Simon Marchi <simon.marchi@efficios.com>
7635
7636 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7637 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7638 (read_call_site_scope): Assign per_objfile.
7639 (dwarf2_per_cu_data::objfile): Remove.
7640 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7641 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7642 dwarf2_per_objfile parameter.
7643 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7644 dwarf2_per_objfile parameter.
7645 (dwarf_expr_reg_to_entry_parameter): Add output
7646 dwarf2_per_objfile parameter.
7647 (locexpr_get_frame_base): Update.
7648 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7649 <push_dwarf_reg_entry_value>: Update.
7650 <call_site_to_target_addr>: Update.
7651 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7652 parameter.
7653 (value_of_dwarf_reg_entry): Update.
7654 (rw_pieced_value): Update.
7655 (indirect_synthetic_pointer): Update.
7656 (dwarf2_evaluate_property): Update.
7657 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7658 parameter.
7659 (locexpr_read_variable): Update.
7660 (locexpr_get_symbol_read_needs): Update.
7661 (loclist_read_variable): Update.
7662
14095eb3
SM
76632020-05-27 Simon Marchi <simon.marchi@efficios.com>
7664
7665 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7666 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7667 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7668 parameter.
7669 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7670 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7671 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7672 parameter.
7673 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7674 sect_variable_value): Add dwarf2_per_objfile parameter.
7675 (class dwarf_evaluate_loc_desc) <dwarf_call,
7676 dwarf_variable_value>: Update.
7677 (fetch_const_value_from_synthetic_pointer): Add
7678 dwarf2_per_objfile parameter.
7679 (fetch_const_value_from_synthetic_pointer): Update.
7680 (coerced_pieced_ref): Update.
7681 (class symbol_needs_eval_context) <dwarf_call,
7682 dwarf_variable_value>: Update.
7683 (dwarf2_compile_expr_to_ax): Update.
7684
3c3cd3d4
SM
76852020-05-27 Simon Marchi <simon.marchi@efficios.com>
7686
7687 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7688 parameter.
7689 (dwarf2_evaluate_loc_desc_full): Update.
7690
82ca3f51
SM
76912020-05-27 Simon Marchi <simon.marchi@efficios.com>
7692
7693 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7694 parameter.
7695 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7696 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7697 dwarf2_per_objfile parameter.
7698 (decode_debug_loc_dwo_addresses): Likewise.
7699 (dwarf2_find_location_expression): Update.
7700 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7701 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7702 parameter.
7703 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7704 parameter.
7705 (locexpr_describe_location_1): Likewise.
7706 (locexpr_describe_location): Update.
7707
4b167ea1
SM
77082020-05-27 Simon Marchi <simon.marchi@efficios.com>
7709
7710 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7711 Remove.
7712 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7713 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7714 (dwarf2_compile_property_to_c): Update.
7715 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7716 use text offset from objfile.
7717 (locexpr_tracepoint_var_ref): Update.
7718 (locexpr_generate_c_location): Update.
7719 (loclist_describe_location): Update.
7720 (loclist_tracepoint_var_ref): Update.
7721 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7722 dwarf2_per_objfile parameter.
7723 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7724 use text offset from objfile.
7725 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7726
89b07335
SM
77272020-05-27 Simon Marchi <simon.marchi@efficios.com>
7728
7729 * dwarf2/expr.h (struct dwarf_expr_context)
7730 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7731 <offset>: Remove.
7732 <per_objfile>: New member.
7733 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7734 dwarf2_per_objfile parameter. Don't set offset, set
7735 per_objfile.
7736 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7737 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7738 a dwarf2_per_objfile object instead of an offset.
7739 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7740 constructor.
7741 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7742 to dwarf2_expr_executor constructor. Don't set offset.
7743 (dwarf2_fetch_cfa_info): Update.
7744 (struct dwarf2_frame_cache) <text_offset>: Remove.
7745 <per_objfile>: New field.
7746 (dwarf2_frame_cache): Update.
7747 (dwarf2_frame_prev_register): Update.
7748 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7749 <dwarf_evaluate_loc_desc>: Add constructor.
7750 (dwarf2_evaluate_loc_desc_full): Update.
7751 (dwarf2_locexpr_baton_eval): Update.
7752 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7753 Add constructor.
7754 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7755
293e7e51
SM
77562020-05-27 Simon Marchi <simon.marchi@efficios.com>
7757
7758 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7759 addr_sized_int_type>: Move to dwarf2_cu.
7760 <int_type>: Move to dwarf2_per_objfile.
7761 (struct dwarf2_per_objfile) <int_type>: Move here.
7762 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7763 addr_sized_int_type>: Move here.
7764 (read_func_scope): Update.
7765 (read_array_type): Update.
7766 (read_tag_string_type): Update.
7767 (attr_to_dynamic_prop): Update.
7768 (dwarf2_per_cu_data::int_type): Rename to...
7769 (dwarf2_per_objfile::int_type): ... this.
7770 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7771 (dwarf2_cu::addr_sized_int_type): ... this.
7772 (read_subrange_type): Update.
7773 (dwarf2_per_cu_data::addr_type): Rename to...
7774 (dwarf2_cu::addr_type): ... this.
7775 (set_die_type): Update.
7776
64874a40
SM
77772020-05-27 Simon Marchi <simon.marchi@efficios.com>
7778
7779 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7780 data through per_cu->cu.
7781
4ab09049
SM
77822020-05-27 Simon Marchi <simon.marchi@efficios.com>
7783
7784 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7785 dwarf2_per_cu_data parameter fo dwarf2_cu.
7786 (lookup_dwo_type_unit): Likewise.
7787 (read_cutu_die_from_dwo): Likewise.
7788 (lookup_dwo_unit): Likewise.
7789 (open_and_init_dwo_file): Likewise.
7790 (lookup_dwo_cutu): Likewise.
7791 (lookup_dwo_comp_unit): Likewise.
7792 (lookup_dwo_type_unit): Likewise.
7793 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7794 (cutu_reader::cutu_reader): Update.
7795
47b14e86
SM
77962020-05-27 Simon Marchi <simon.marchi@efficios.com>
7797
7798 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7799 parameter.
7800 (process_full_type_unit): Likewise.
7801 (process_queue): Update.
7802
43182c09
SM
78032020-05-27 Simon Marchi <simon.marchi@efficios.com>
7804
7805 * dwarf2/read.c (recursively_compute_inclusions): Add
7806 dwarf2_per_objfile parameter.
7807 (compute_compunit_symtab_includes): Likewise.
7808 (process_cu_includes): Update.
7809
7aa104c4
SM
78102020-05-27 Simon Marchi <simon.marchi@efficios.com>
7811
7812 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7813 parameter.
7814 (create_type_unit_group): Update.
7815 (process_psymtab_comp_unit_reader): Update.
7816 (build_type_psymtabs_reader): Update.
7817
e3beb21d
SM
78182020-05-27 Simon Marchi <simon.marchi@efficios.com>
7819
7820 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7821 object through m_this_cu->cu.
7822
d460f660
SM
78232020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7824
7825 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7826 the info parameter.
7827 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7828
ab432490
SM
78292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7830
7831 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7832 per_objfile parameter.
7833 (load_full_type_unit): Add per_objfile parameter.
7834 (read_signatured_type): Likewise.
7835 (load_full_comp_unit): Likewise.
7836 (load_cu): Likewise.
7837 (dw2_do_instantiate_symtab): Likewise.
7838 (dw2_get_file_names): Likewise.
7839 (dw2_map_symtabs_matching_filename): Update.
7840 (dw_expand_symtabs_matching_file_matcher): Update.
7841 (dw2_map_symbol_filenames): Update.
7842 (process_psymtab_comp_unit): Add per_objfile parameter.
7843 (build_type_psymtabs_1): Update.
7844 (process_skeletonless_type_unit): Update.
7845 (dwarf2_build_psymtabs_hard): Update.
7846 (load_partial_comp_unit): Add per_objfile parameter.
7847 (scan_partial_symbols): Update.
7848 (load_full_comp_unit): Add per_objfile parameter.
7849 (process_imported_unit_die): Update.
7850 (create_cus_hash_table): Update.
7851 (find_partial_die): Update.
7852 (dwarf2_read_addr_index): Update.
7853 (follow_die_offset): Update.
7854 (dwarf2_fetch_die_loc_sect_off): Update.
7855 (dwarf2_fetch_constant_bytes): Update.
7856 (dwarf2_fetch_die_type_sect_off): Update.
7857 (follow_die_sig_1): Update.
7858 (load_full_type_unit): Add per_objfile parameter.
7859 (read_signatured_type): Likewise.
7860
313bad1b
SM
78612020-05-27 Simon Marchi <simon.marchi@efficios.com>
7862
7863 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7864 of objfile_name.
7865
c3699833
SM
78662020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7867
7868 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7869 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7870 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7871 field.
7872 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7873 (create_cus_from_index): Update.
7874 (dwarf2_read_gdb_index): Update.
7875 (create_cus_from_debug_names): Update.
7876 (dwarf2_read_debug_names): Update.
7877 (get_abbrev_section_for_cu): Update.
7878 (create_all_comp_units): Update.
7879 (read_attribute_value): Update.
7880 (get_debug_line_section): Update.
7881 * dwarf2/index-cache.c (index_cache::store): Update.
7882 * dwarf2/index-write.c (save_gdb_index_command): Update.
7883 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7884
1859c670
SM
78852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7886
7887 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7888 member.
7889 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7890 dwarf2_per_cu_data::per_bfd.
7891 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7892 (create_type_unit_group): Likewise.
7893 (queue_comp_unit): Remove reference to
7894 per_cu->dwarf2_per_objfile.
7895 (maybe_queue_comp_unit): Likewise.
7896 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7897 (create_cus_hash_table): Assign new field.
7898
5e22e966
SM
78992020-05-27 Simon Marchi <simon.marchi@efficios.com>
7900
7901 * dwarf2/read.c: Replace
7902 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7903 dwarf2_cu->per_objfile throughout.
7904
97a1449a
SM
79052020-05-27 Simon Marchi <simon.marchi@efficios.com>
7906
7907 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7908 parameter, don't use per_cu->dwarf2_per_objfile.
7909 (dw2_instantiate_symtab): Likewise.
7910 (dw2_find_last_source_symtab): Update.
7911 (dw2_map_expand_apply): Update.
7912 (dw2_lookup_symbol): Update.
7913 (dw2_expand_symtabs_for_function): Update.
7914 (dw2_expand_all_symtabs): Update.
7915 (dw2_expand_symtabs_with_fullname): Update.
7916 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7917 don't use per_cu->dwarf2_per_objfile.
7918 (dw2_expand_marked_cus): Update.
7919 (dw2_find_pc_sect_compunit_symtab): Update.
7920 (dw2_debug_names_lookup_symbol): Update.
7921 (dw2_debug_names_expand_symtabs_for_function): Update.
7922 (dw2_debug_names_map_matching_symbols): Update.
7923 (dwarf2_psymtab::expand_psymtab): Update.
7924
9e021579
SM
79252020-05-27 Simon Marchi <simon.marchi@efficios.com>
7926
7927 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7928 <per_objfile>: New member.
7929 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7930 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7931 call to dwarf2_cu.
7932 (cutu_reader::cutu_reader): Update.
7933 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7934
ae090bdb
SM
79352020-05-27 Simon Marchi <simon.marchi@efficios.com>
7936
7937 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7938 struct dwarf2_per_objfile.
7939 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7940 dwarf2_per_bfd.
7941 * dwarf2/read.c (set_die_type): Update.
7942 (get_die_type_at_offset): Update.
7943
af758d11
SM
79442020-05-27 Tom Tromey <tom@tromey.com>
7945 Simon Marchi <simon.marchi@efficios.com>
7946
7947 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7948 method.
7949 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7950 get_symtab, set_symtab>: New methods.
7951 <m_symtabs>: New field.
7952 (struct dwarf2_psymtab): Derive from partial_symtab.
7953 <readin_p, get_compunit_symtab>: Declare methods.
7954 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7955 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7956 New methods.
7957 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7958 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7959 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7960 (dw2_symtab_iter_next, dw2_print_stats)
7961 (dw2_expand_symtabs_with_fullname)
7962 (dw2_expand_symtabs_matching_one)
7963 (dw_expand_symtabs_matching_file_matcher)
7964 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7965 (dw2_debug_names_iterator::next)
7966 (dw2_debug_names_map_matching_symbols)
7967 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7968 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7969 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7970 New methods.
7971 (get_compunit_symtab, process_full_comp_unit)
7972 (process_full_type_unit): Update.
7973 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7974
5989a64e
SM
79752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7976
7977 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7978 then introduce a new dwarf2_per_objfile type.
7979 <read_line_string>: Move to the new dwarf2_per_objfile type.
7980 <objfile>: Likewise.
7981 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7982 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7983 dwarf2_per_objfile->per_bfd.
7984 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7985 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7986 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7987 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7988 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7989 (dwarf2_per_objfile::locate_sections): Rename to...
7990 (dwarf2_per_bfd::locate_sections): ... this.
7991 (dwarf2_per_objfile::get_cutu): Rename to...
7992 (dwarf2_per_bfd::get_cutu): ... this.
7993 (dwarf2_per_objfile::get_cu): Rename to...
7994 (dwarf2_per_bfd::get_cu): ... this.
7995 (dwarf2_per_objfile::get_tu): Rename to...
7996 (dwarf2_per_bfd::get_tu): ... this.
7997 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7998 (dwarf2_per_bfd::allocate_per_cu): ... this.
7999 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8000 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8001 (get_gdb_index_contents_ftype): Change parameter from
8002 dwarf2_per_objfile to dwarf2_per_bfd.
8003 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8004 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8005
a50264ba
TT
80062020-05-27 Tom Tromey <tom@tromey.com>
8007 Simon Marchi <simon.marchi@efficios.com>
8008
8009 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8010 (allocate_piece_closure): Set "per_objfile" member.
8011 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8012 (locexpr_describe_location, loclist_describe_location): Use new
8013 member.
8014 * dwarf2/read.c (read_call_site_scope)
8015 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8016 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8017 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8018 handle_data_member_location): Set per_objfile member.
8019 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8020 member.
8021 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8022
d3473f0c
TT
80232020-05-27 Tom Tromey <tom@tromey.com>
8024
8025 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8026 allocate_signatured_type>: Declare new methods.
8027 <m_num_psymtabs>: New member.
8028 (struct dwarf2_per_cu_data) <index>: New member.
8029 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8030 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8031 (create_cu_from_index_list): Use allocate_per_cu.
8032 (create_signatured_type_table_from_index)
8033 (create_signatured_type_table_from_debug_names)
8034 (create_debug_type_hash_table, add_type_unit)
8035 (read_comp_units_from_section): Use allocate_signatured_type.
8036
5717c425
TT
80372020-05-27 Tom Tromey <tom@tromey.com>
8038
8039 * psymtab.c (partial_map_expand_apply)
8040 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8041 (psym_lookup_global_symbol_language)
8042 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8043 (psym_print_stats, psym_expand_symtabs_for_function)
8044 (psym_map_symbol_filenames, psym_map_matching_symbols)
8045 (psym_expand_symtabs_matching)
8046 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8047 (maintenance_check_psymtabs): Update.
8048 * psympriv.h (struct partial_symtab) <readin_p,
8049 get_compunit_symtab>: Add objfile parameter.
8050 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8051 Likewise.
8052 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8053 get_compunit_symtab>: Likewise.
8054 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8055
45940949
TT
80562020-05-27 Tom Tromey <tom@tromey.com>
8057
8058 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8059 member.
8060 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8061 (create_cu_from_index_list)
8062 (create_signatured_type_table_from_index)
8063 (create_signatured_type_table_from_debug_names)
8064 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8065 (dwarf2_create_include_psymtab)
8066 (create_debug_type_hash_table, add_type_unit)
8067 (create_type_unit_group, read_comp_units_from_section)
8068 (dwarf2_compute_name, create_cus_hash_table)
8069 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8070 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8071 obstack.
8072 (dw2_get_real_path): Likewise. Change argument to
8073 dwarf2_per_objfile.
8074
f8c6d152
LM
80752020-05-27 Luis Machado <luis.machado@linaro.org>
8076
8077 PR tdep/26000
8078 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8079 for ldrd (immediate).
8080
e98d2e6d
PW
80812020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8082
8083 * command.h: Add comment giving the name of class_tui.
8084 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8085 create the fake command for the help for class_tui.
8086
53a47a3e
TT
80872020-05-26 Tom Tromey <tromey@adacore.com>
8088
8089 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8090 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8091 (val_atr): New function.
8092 (value_val_atr): Use it.
8093 * ada-valprint.c (print_optional_low_bound): Change low bound
8094 handling for enums.
8095 (val_print_packed_array_elements): Don't call discrete_position.
8096 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8097 discrete_position for enum types.
8098 * language.c (default_print_array_index): Change type.
8099 * language.h (struct language_defn) <la_print_array_index>: Add
8100 index_type parameter, change type of index_value.
8101 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8102 (default_print_array_index): Update.
8103 * valprint.c (maybe_print_array_index): Don't call
8104 value_from_longest. Update.
8105 (value_print_array_elements): Don't call discrete_position.
8106
0bc2354b
TT
81072020-05-26 Tom Tromey <tromey@adacore.com>
8108
8109 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8110 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8111
1218a4bf
CDA
81122020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8113
8114 PR gdb/13519
8115 * avr-tdep.c (avr_integer_to_address): Return data or code
8116 address accordingly to the second 'type' argument of the
8117 function.
8118
92651b1d
MW
81192020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8120
8121 * infcmd.c, inferior.h: (construct_inferior_arguments):
8122 Moved function from here to gdbsupport/common-inferior.{h,cc}
8123
0a4f5f8c
TT
81242020-05-23 Tom Tromey <tom@tromey.com>
8125
8126 Revert commit eca1f90c:
8127 * NEWS: Remove entry for completion styling.
8128 * completer.c (_rl_completion_prefix_display_length): Move
8129 declaration later.
8130 (gdb_fnprint): Revert.
8131 (gdb_display_match_list_1): Likewise.
8132 * cli/cli-style.c (completion_prefix_style)
8133 (completion_difference_style, completion_suffix_style): Remove.
8134 (_initialize_cli_style): Revert.
8135 * cli/cli-style.h (completion_prefix_style)
8136 (completion_difference_style, completion_suffix_style): Don't
8137 declare.
8138
e08bd6c5
PA
81392020-05-24 Pedro Alves <palves@redhat.com>
8140
8141 * symtab.c (completion_list_add_name): Return boolean indication
8142 of whether the symbol matched.
8143 (completion_list_add_symbol): Don't try to remove C++ aliases if
8144 the symbol didn't match in the first place.
8145 * symtab.h (completion_list_add_name): Return bool.
8146
ceacbf6e
SM
81472020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8148
8149 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8150 type::field.
8151
26f16254
JB
81522020-05-23 Joel Brobecker <brobecker@adacore.com>
8153
8154 GDB 9.2 released.
8155
eca1f90c
TT
81562020-05-23 Tom Tromey <tom@tromey.com>
8157
8158 * NEWS: Add entry for completion styling.
8159 * completer.c (_rl_completion_prefix_display_length): Move
8160 declaration earlier.
8161 (gdb_fnprint): Use completion_style.
8162 (gdb_display_match_list_1): Likewise.
8163 * cli/cli-style.c (completion_prefix_style)
8164 (completion_difference_style, completion_suffix_style): New
8165 globals.
8166 (_initialize_cli_style): Register new globals.
8167 * cli/cli-style.h (completion_prefix_style)
8168 (completion_difference_style, completion_suffix_style): Declare.
8169
51e2cfa2
PA
81702020-05-23 Pedro Alves <palves@redhat.com>
8171
8172 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8173 (parse_escape): Use ISDIGIT instead of isdigit.
8174 (puts_debug): Use gdb_isprint instead of isprint.
8175 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8176 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8177 ISSPACE instead of isspace.
8178 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8179 instead of isspace.
8180 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8181 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8182 instead of isxdigit and ISDIGIT instead of isdigit.
8183
80fc5e77
SM
81842020-05-22 Simon Marchi <simon.marchi@efficios.com>
8185
8186 * gdbtypes.h (struct type) <field>: New method.
8187 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8188 or type::field.
8189
3cabb6b0
SM
81902020-05-22 Simon Marchi <simon.marchi@efficios.com>
8191
8192 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8193 (TYPE_FIELDS): Use type::fields. Change all call sites that
8194 modify the propery to use type::set_fields instead.
8195
1f704f76
SM
81962020-05-22 Simon Marchi <simon.marchi@efficios.com>
8197
8198 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8199 type::num_fields instead.
8200
5e33d5f4
SM
82012020-05-22 Simon Marchi <simon.marchi@efficios.com>
8202
8203 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8204 methods.
8205 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8206 that modify the number of fields to use type::set_num_fields
8207 instead.
8208
9392ebb3
TT
82092020-05-22 Tom Tromey <tromey@adacore.com>
8210
8211 * compile/compile-object-load.h (munmap_list_free): Don't
8212 declare.
8213
7c13f4e8
AB
82142020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8215
8216 * annotate.c (annotate_source_line): Update return type, add call
8217 to update current symtab and line.
8218 * annotate.h (annotate_source_line): Update return type, and
8219 extend header comment.
8220 * source.c (info_line_command): Check annotation_level before
8221 calling annotate_source_line.
8222 * stack.c (print_frame_info): If calling annotate_source_line
8223 returns true, then don't print any other source line information.
8224
aa370940
SM
82252020-05-21 Simon Marchi <simon.marchi@efficios.com>
8226
8227 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8228
84d53fa9
SM
82292020-05-21 Simon Marchi <simon.marchi@efficios.com>
8230
8231 * coffread.c (patch_type): Remove NULL check before xfree.
8232 * corefile.c (set_gnutarget): Likewise.
8233 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8234 * exec.c (build_section_table): Likewise.
8235 * remote.c (remote_target::pass_signals): Likewise.
8236 * utils.c (n_spaces): Likewise.
8237 * cli/cli-script.c (document_command): Likewise.
8238 * i386-windows-tdep.c (core_process_module_section): Likewise.
8239 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8240
9d428aae
SM
82412020-05-20 Simon Marchi <simon.marchi@efficios.com>
8242
8243 * symfile.c (reread_symbols): Clear objfile's section_offsets
8244 vector and section indices, re-compute them by calling
8245 sym_offsets.
8246
250106a7
TT
82472020-05-20 Tom Tromey <tromey@adacore.com>
8248
8249 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 8250 (desc_one_bound, desc_index_type): Compute field name.
250106a7 8251
9a0bacfb
TV
82522020-05-20 Tom de Vries <tdevries@suse.de>
8253
8254 PR symtab/25833
8255 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8256
7b958a48
AM
82572020-05-20 Alan Modra <amodra@gmail.com>
8258
8259 PR 25993
8260 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8261 bfd_set_filename.
8262 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8263 passed to bfd_set_filename.
8264 * symfile-mem.c (add_vsyscall_page): Likewise for string
8265 passed to symbol_file_add_from_memory.
8266 (symbol_file_add_from_memory): Make name param a const char* and
8267 don't strdup.
8268
c7e97679
AM
82692020-05-20 Alan Modra <amodra@gmail.com>
8270
8271 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8272 rather than accessing bfd->filename directly.
8273 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8274 and use bfd_section_name.
8275 * dwarf2/frame.c (decode_frame_entry): Likewise.
8276 * exec.c (exec_set_section_address): Likewise.
8277 * solib-aix.c (solib_aix_bfd_open): Likewise.
8278 * stap-probe.c (get_stap_base_address): Likewise.
8279 * symfile.c (reread_symbols): Likewise.
8280
563c591b
TT
82812020-05-19 Tom Tromey <tromey@adacore.com>
8282
8283 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8284
f408d82c
SM
82852020-05-19 Simon Marchi <simon.marchi@efficios.com>
8286
8287 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8288
98c59b52
PA
82892020-05-19 Pedro Alves <palves@redhat.com>
8290
8291 * NEWS (set exec-file-mismatch): Adjust entry.
8292 * exec.c: Include "build-id.h".
8293 (validate_exec_file): Try to match build IDs instead of filenames.
8294 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8295 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8296 and pass down 'warn_if_slow'.
8297 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8298 gdb_bfd_open_closure to pass it down.
8299 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8300
4111f652
PA
83012020-05-19 Pedro Alves <palves@redhat.com>
8302
8303 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8304 * target.c (target_fileio_open_1): Rename to target_fileio_open
8305 and make extern. Use bool.
8306 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8307 (target_fileio_read_alloc_1): Adjust.
8308 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8309 (target_fileio_open_warn_if_slow): Delete declaration.
8310
ad80db5b
PA
83112020-05-19 Pedro Alves <palves@redhat.com>
8312
8313 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8314 Adjust all callers.
8315
1d6ce4d3
YS
83162020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8317
8318 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8319 whether disp is negative.
8320
9005fbbb
SM
83212020-05-19 Simon Marchi <simon.marchi@efficios.com>
8322
8323 * symfile.h (struct symfile_segment_data)
8324 <~symfile_segment_data>: Remove.
8325 <segment_info>: Change to std::vector.
8326 * symfile.c (default_symfile_segments): Update.
8327 * elfread.c (elf_symfile_segments): Update.
8328
68b888ff
SM
83292020-05-19 Simon Marchi <simon.marchi@efficios.com>
8330
8331 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8332 <segments>: New.
8333 <segment_bases, segment_sizes>: Remove.
8334 * symfile.c (default_symfile_segments): Update.
8335 * elfread.c (elf_symfile_segments): Update.
8336 * remote.c (remote_target::get_offsets): Update.
8337 * solib-target.c (solib_target_relocate_section_addresses):
8338 Update.
8339
62982abd
SM
83402020-05-19 Simon Marchi <simon.marchi@efficios.com>
8341
8342 * symfile.h (struct symfile_segment_data): Initialize fields.
8343 <~symfile_segment_data>: Add.
8344 (symfile_segment_data_up): New.
8345 (struct sym_fns) <sym_segments>: Return a
8346 symfile_segment_data_up.
8347 (default_symfile_segments): Return a symfile_segment_data_up.
8348 (free_symfile_segment_data): Remove.
8349 (get_symfile_segment_data): Return a symfile_segment_data_up.
8350 * symfile.c (default_symfile_segments): Likewise.
8351 (get_symfile_segment_data): Likewise.
8352 (free_symfile_segment_data): Remove.
8353 (symfile_find_segment_sections): Update.
8354 * elfread.c (elf_symfile_segments): Return a
8355 symfile_segment_data_up.
8356 * remote.c (remote_target::get_offsets): Update.
8357 * solib-target.c (solib_target_relocate_section_addresses):
8358 Update.
8359 * symfile-debug.c (debug_sym_segments): Return a
8360 symfile_segment_data_up.
8361
7f204339
RO
83622020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8363
e52a0f1b
RO
8364 PR build/25981
8365 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8366 Hardcode register numbers.
8367
7f204339
RO
8368 PR build/25981
8369 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8370 procfs_find_LDT_entry): Remove.
8371 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8372 procfs_find_LDT_entry): Remove.
8373 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8374 Remove.
8375
7f32a4d5
PA
83762020-05-17 Pedro Alves <palves@redhat.com>
8377 Andrew Burgess <andrew.burgess@embecosm.com>
8378 Keno Fischer <keno@juliacomputing.com>
8379
8380 PR gdb/25741
8381 * breakpoint.c (build_target_condition_list): Update comments.
8382 (build_target_command_list): Update comments and skip matching
8383 locations.
8384 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8385 a separate function. Simplify "set breakpoint auto-hw off"
8386 handling.
8387 (insert_breakpoints): Update comment.
8388 (tracepoint_locations_match): New parameter. For breakpoints,
8389 compare location types too, if the caller wants to.
8390 (handle_automatic_hardware_breakpoints): New functions.
8391 (bp_location_is_less_than): Also sort by location type and
8392 hardware breakpoint length.
8393 (update_global_location_list): Handle "set breakpoint auto-hw on"
8394 here.
8395 (update_breakpoint_locations): Ask breakpoint_locations_match to
8396 ignore location types.
8397
7d93a1e0
SM
83982020-05-16 Simon Marchi <simon.marchi@efficios.com>
8399
8400 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8401 type::name instead.
8402
d0e39ea2
SM
84032020-05-16 Simon Marchi <simon.marchi@efficios.com>
8404
8405 * gdbtypes.h (struct type) <name, set_name>: New methods.
8406 (TYPE_CODE): Use type::name. Change all call sites used to set
8407 the name to use type::set_name instead.
8408
2dab0c7b
TT
84092020-05-16 Tom Tromey <tom@tromey.com>
8410
8411 * top.c (quit_force): Update.
8412 * infrun.c (handle_no_resumed): Update.
8413 * top.h (all_uis): New function.
8414 (ALL_UIS): Remove.
8415
59f7bd8d
SM
84162020-05-16 Simon Marchi <simon.marchi@efficios.com>
8417
8418 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8419
9bf058f0
PA
84202020-05-16 Pedro Alves <palves@redhat.com>
8421
8422 * ia64-linux-nat.c
8423 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8424 Declare method.
8425 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8426
8f86ae1a
SM
84272020-05-15 Simon Marchi <simon.marchi@efficios.com>
8428
8429 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8430 (sparc64_adi_info): Likewise.
8431
d6bc0792
TT
84322020-05-15 Tom Tromey <tom@tromey.com>
8433
8434 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8435 block_objfile.
8436 (lookup_objfile_from_block): Remove.
8437 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8438 (lookup_global_symbol): Use block_objfile.
8439 * symtab.h (lookup_objfile_from_block): Don't declare.
8440 * printcmd.c (clear_dangling_display_expressions): Use
8441 block_objfile.
8442 * parse.c (operator_check_standard): Use block_objfile.
8443
8c14c3a3
TT
84442020-05-15 Tom Tromey <tom@tromey.com>
8445
8446 * language.c (language_alloc_type_symbol): Set
8447 SYMBOL_SECTION.
8448 * symtab.c (initialize_objfile_symbol): Remove.
8449 (allocate_symbol): Remove.
8450 (allocate_template_symbol): Remove.
8451 * dwarf2/read.c (fixup_go_packaging): Use "new".
8452 (new_symbol): Use "new".
8453 (read_variable): Don't call initialize_objfile_symbol. Use
8454 "new".
8455 (read_func_scope): Use "new".
8456 * xcoffread.c (process_xcoff_symbol): Don't call
8457 initialize_objfile_symbol.
8458 (SYMBOL_DUP): Remove.
8459 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8460 "new".
8461 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8462 (allocate_template_symbol): Don't declare.
8463 (struct symbol): Add copy constructor. Change defaults.
8464 * jit.c (finalize_symtab): Use "new".
8465 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8466 Use "new".
8467 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8468 (common_block_end): Use "new".
8469 * mdebugread.c (parse_symbol): Use "new".
8470 (new_symbol): Likewise.
8471
5b4a1a8d
PW
84722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8473
8474 * NEWS: Mention changes to help and apropos.
8475
57b4f16e
PW
84762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8477
8478 * command.h (enum command_class): Improve comments, document
8479 that class_alias is for user-defined aliases, give the class
8480 name for each class, remove unused class_xdb.
8481 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8482 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8483 by a precise class.
8484 * infcmd.c (_initialize_infcmd): Likewise.
8485 * reverse.c (_initialize_reverse): Likewise.
8486 * stack.c (_initialize_stack): Likewise.
8487 * symfile.c (_initialize_symfile): Likewise.
8488 * tracepoint.c (_initialize_tracepoint): Likewise.
8489
7c05caf7
PW
84902020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8491
8492 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8493 when their aliased command is traversed.
8494 (help_cmd): Add fput_command_names_styled call to
8495 output command name and aliases when command has an alias.
8496
3b3aaacb
PW
84972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8498
8499 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8500 * cli/cli-decode.c (help_cmd_list): Declare as static,
8501 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8502 a command together with the command.
8503 (fput_command_name_styled, fput_command_names_styled): New functions.
8504 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8505 fput_command_name_styled.
8506 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8507 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8508
7aa1b46f
PW
85092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8510
8511 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8512 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8513 * command.h (cmd_show_list): Likewise.
8514 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8515 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8516
89bcba74
PW
85172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8518
8519 * unittests/command-def-selftests.c (traverse_command_structure):
8520 Verify all commands of a list have the same prefix command and
8521 that only the top cmdlist commands have a null prefix.
8522
3f4d92eb
PW
85232020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8524
8525 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8526 as prefix, not one of its aliases.
8527 (set_cmd_prefix): Remove.
8528 (do_add_cmd): Centralize the setting of the prefix of a command, when
8529 command is defined after its full chain of prefix commands.
8530 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8531 (add_setshow_cmd_full): Likewise.
8532 (update_prefix_field_of_prefixed_commands): New function.
8533 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8534 update_prefix_field_of_prefixed_commands.
8535 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8536 addresses of remote_set_cmdlist and remote_show_cmdlist given
8537 as argument, not the address of an argument.
8538 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8539 * gdb/remote.c (_initialize_remote): Likewise.
8540
0605465f
PW
85412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8542
8543 * cli/cli-cmds.c (alias_command): Check for an existing alias
8544 using lookup_cmd_composition, as valid_command_p is too strict
8545 and forbids aliases that are the prefix of an existing alias
8546 or command.
8547 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8548 command is properly recognised as a valid command.
8549
58e6ac70
PW
85502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8551
8552 * unittests/help-doc-selftests.c: Rename to
8553 unittests/command-def-selftests.c
8554 * unittests/command-def-selftests.c (help_doc_tests): Update some
8555 comments.
8556 (command_structure_tests, traverse_command_structure): New namespace
8557 and function.
8558 (command_structure_invariants_tests): New function.
8559 (_initialize_command_def_selftests) Renamed from
8560 _initialize_help_doc_selftests, register command_structure_invariants
8561 selftest.
8562
a7b9ceb8
PW
85632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8564
8565 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8566 an alias of 'show'.
8567
b2188a06
JB
85682020-05-15 Joel Brobecker <brobecker@adacore.com>
8569
8570 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8571 ada_is_fixed_point_type. Update all callers.
8572 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8573 all callers.
8574 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8575 Update all callers.
8576 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8577 print_fixed_point_type. Update all callers.
8578 * ada-valprint.c (ada_value_print_num): Replace call to
8579 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8580
a51951c2
KB
85812020-05-14 Kevin Buettner <kevinb@redhat.com>
8582
8583 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8584 processors.
8585 (cpu_supports_bts): Add CV_AMD case.
8586
29d6859f
LM
85872020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8588 Simon Marchi <simon.marchi@efficios.com>
8589
8590 * infrun.c (stop_all_threads): Collect multiple wait events at
8591 each pass.
8592
78134374
SM
85932020-05-14 Simon Marchi <simon.marchi@efficios.com>
8594
8595 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8596 type::code instead.
8597
67607e24
SM
85982020-05-14 Simon Marchi <simon.marchi@efficios.com>
8599
8600 * gdbtypes.h (struct type) <code, set_code>: New methods.
8601 (TYPE_CODE): Use type::code. Change all call sites used to set
8602 the code to use type::set_code instead.
8603
a05575d3
TBA
86042020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8605 Tom de Vries <tdevries@suse.de>
8606 Pedro Alves <palves@redhat.com>
8607
8608 PR threads/25478
8609 * infrun.c (stop_all_threads): Do NOT ignore
8610 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8611 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8612 received.
8613 (handle_no_resumed): Remove code handling a live inferior with no
8614 threads.
8615 * remote.c (has_single_non_exited_thread): New.
8616 (remote_target::update_thread_list): Do not delete a thread if is
8617 the last thread of the process.
8618 * thread.c (thread_select): Call delete_exited_threads instead of
8619 prune_threads.
8620
6ad82919
TBA
86212020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8622
8623 * infrun.c (stop_all_threads): Enable/disable thread events of all
8624 targets. Move a debug message denoting the end of the function
8625 into the SCOPED_EXIT block.
8626
d890404b
TBA
86272020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8628
8629 * process-stratum-target.h: Include <set>.
8630 (all_non_exited_process_targets, switch_to_target_no_thread): New
8631 function declarations.
8632 * process-stratum-target.c (all_non_exited_process_targets)
8633 (switch_to_target_no_thread): New function implementations.
8634
293b3ebc
TBA
86352020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8636
8637 * infrun.c (handle_inferior_event): Extract out a piece of code
8638 into...
8639 (mark_non_executing_threads): ...this new function.
8640
7ca9b62a
TBA
86412020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8642
8643 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8644 use.
8645
fc75c28b
TBA
86462020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8647
8648 * regcache.c (regcache_read_pc_protected): New function
8649 implementation that returns 0 if the PC cannot read via
8650 'regcache_read_pc'.
8651 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8652 instead of 'regcache_read_pc'.
8653 (keep_going_pass_signal): Ditto.
8654
a89febbd
TT
86552020-05-13 Tom Tromey <tromey@adacore.com>
8656
8657 * ada-lang.c (align_value): Remove.
8658 (ada_template_to_fixed_record_type_1): Use align_up.
8659
f7e23710
TBA
86602020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8661
8662 * async-event.c: Update the copyright year.
8663 * async-event.h: Update the copyright year.
8664
02ff80c2
SM
86652020-05-12 Simon Marchi <simon.marchi@efficios.com>
8666
8667 * objfiles.h (is_addr_in_objfile,
8668 shared_objfile_contains_address_p): Return bool.
8669 * objfile.c (is_addr_in_objfile,
8670 shared_objfile_contains_address_p): Return bool.
8671
4fd6c7e8
TT
86722020-05-11 Tom Tromey <tromey@adacore.com>
8673
8674 * cli/cli-cmds.c (info_command): Restore.
8675 (_initialize_cli_cmds): Use add_prefix_command for "info".
8676 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8677
5eb68a39
TT
86782020-05-11 Tom Tromey <tromey@adacore.com>
8679
8680 * ada-lang.c (ada_value_primitive_field): Now public.
8681 * ada-lang.h (ada_value_primitive_field): Declare.
8682 * ada-valprint.c (print_field_values): Use
8683 ada_value_primitive_field for wrapper fields.
8684
7666722f
TV
86852020-05-11 Tom de Vries <tdevries@suse.de>
8686
8687 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8688 MODULE_DOMAIN.
8689
3ee6bb11
TV
86902020-05-11 Tom de Vries <tdevries@suse.de>
8691
8692 PR symtab/25941
8693 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8694 with length 0, if not gdb-produced.
8695 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8696
43434996
TV
86972020-05-09 Tom de Vries <tdevries@suse.de>
8698
8699 PR gdb/25955
8700 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8701 calculation.
8702
2f78cffc
TT
87032020-05-09 Tom Tromey <tom@tromey.com>
8704
8705 * top.c (server_command): Now bool.
8706 * top.h (server_command): Now bool.
8707
4f7bc5ed
TT
87082020-05-08 Tom Tromey <tromey@adacore.com>
8709
8710 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8711 already being processed.
8712
8be4b118
TT
87132020-05-08 Tom Tromey <tom@tromey.com>
8714
8715 * printcmd.c (struct display) <next>: Remove.
8716 <display>: New constructor.
8717 <exp_string>: Now a std::string.
8718 <enabled_p>: Now a bool.
8719 (display_number): Move definition earlier.
8720 (displays): Rename from display_chain. Now a std::vector.
8721 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8722 (display_command): Update.
8723 (do_one_display, disable_display)
8724 (enable_disable_display_command, do_enable_disable_display):
8725 Update.
8726 (free_display): Remove.
8727 (clear_displays): Rewrite.
8728 (delete_display): Update.
8729 (map_display_numbers): Use function_view. Remove "data"
8730 parameter. Update.
8731 (do_delete_display): Remove.
8732 (undisplay_command): Update.
8733 (do_one_display, do_displays, disable_display)
8734 (info_display_command): Update.
8735 (do_enable_disable_display): Remove.
8736 (enable_disable_display_command)
8737 (clear_dangling_display_expressions): Update.
8738
94c93c35
TT
87392020-05-08 Tom Tromey <tom@tromey.com>
8740
8741 * symtab.c (set_symbol_cache_size)
8742 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8743 (maintenance_print_symbol_cache_statistics): Update.
8744 * symmisc.c (print_symbol_bcache_statistics)
8745 (print_objfile_statistics, maintenance_print_objfiles)
8746 (maintenance_info_symtabs, maintenance_check_symtabs)
8747 (maintenance_expand_symtabs, maintenance_info_line_tables):
8748 Update.
8749 * symfile-debug.c (set_debug_symfile): Update.
8750 * source.c (forget_cached_source_info): Update.
8751 * python/python.c (gdbpy_progspaces): Update.
8752 * psymtab.c (maintenance_info_psymtabs): Update.
8753 * probe.c (parse_probes): Update.
8754 * linespec.c (iterate_over_all_matching_symtabs)
8755 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8756 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8757 * exec.c (exec_target::close): Update.
8758 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8759 * breakpoint.c (print_one_breakpoint_location)
8760 (create_longjmp_master_breakpoint)
8761 (create_std_terminate_master_breakpoint): Update.
8762 * progspace.c (program_spaces): Now a std::vector.
8763 (maybe_new_address_space): Update.
8764 (add_program_space): Remove.
8765 (program_space::program_space): Update.
8766 (remove_program_space): Update.
8767 (number_of_program_spaces): Remove.
8768 (print_program_space, update_address_spaces): Update.
8769 * progspace.h (program_spaces): Change type.
8770 (ALL_PSPACES): Remove.
8771 (number_of_program_spaces): Don't declare.
8772 (struct program_space) <next>: Remove.
8773
a1fd1ac9
TT
87742020-05-08 Tom Tromey <tom@tromey.com>
8775
8776 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8777 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8778 (enable_break): Update.
8779 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8780 (frv_fdpic_find_canonical_descriptor): Update.
8781 (frv_fetch_objfile_link_map): Update.
8782 * progspace.c (program_space::free_all_objfiles): Update.
8783 (program_space::solibs): New method.
8784 * progspace.h (struct program_space) <solibs>: New method.
8785 * solist.h (master_so_list): Don't declare.
8786 (ALL_SO_LIBS): Remove.
8787 * solib.h (so_list_head): Remove.
8788 (update_solib_list): Update comment.
8789 * solib.c (master_so_list): Remove.
8790 (solib_used, update_solib_list, solib_add)
8791 (info_sharedlibrary_command, clear_solib)
8792 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8793
38eae084
TT
87942020-05-08 Tom Tromey <tom@tromey.com>
8795
8796 * extension.c (extension_languages): Now a std::array.
8797 (ALL_EXTENSION_LANGUAGES): Remove.
8798 (get_ext_lang_defn, get_ext_lang_of_file)
8799 (eval_ext_lang_from_control_command): Update.
8800 (finish_ext_lang_initialization)
8801 (auto_load_ext_lang_scripts_for_objfile)
8802 (ext_lang_type_printers::ext_lang_type_printers)
8803 (apply_ext_lang_type_printers)
8804 (ext_lang_type_printers::~ext_lang_type_printers)
8805 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8806 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8807 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8808 (get_matching_xmethod_workers, ext_lang_colorize)
8809 (ext_lang_before_prompt): Update.
8810 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8811
596dc4ad
TT
88122020-05-08 Tom Tromey <tom@tromey.com>
8813
8814 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8815 overload.
8816 <swap_string, m_string>: Remove.
8817 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8818 Update.
8819 * stabsread.c (define_symbol, read_type): Update.
8820 * linespec.c (find_linespec_symbols): Update.
8821 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8822 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8823 * dbxread.c (read_dbx_symtab): Update.
8824 * cp-support.h (cp_canonicalize_string_full)
8825 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8826 Return unique_xmalloc_ptr.
8827 * cp-support.c (inspect_type): Update.
8828 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8829 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8830 Likewise.
8831 * c-typeprint.c (print_name_maybe_canonical): Update.
8832 * break-catch-throw.c (check_status_exception_catchpoint):
8833 Update.
8834
bf4cb9be
TV
88352020-05-08 Tom de Vries <tdevries@suse.de>
8836
8837 * infrun.c (follow_fork): Copy current_line and current_symtab to
8838 child thread.
8839
a1b68f28
SM
88402020-05-07 Simon Marchi <simon.marchi@efficios.com>
8841
8842 * async-event.c (struct async_signal_handler, struct
8843 async_event_handler): Reformat, remove typedef.
8844
98d48915
SM
88452020-05-07 Simon Marchi <simon.marchi@efficios.com>
8846
8847 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8848 access thistype->main_type->dyn_prop_list directly.
8849
7aa91313
SM
88502020-05-07 Simon Marchi <simon.marchi@efficios.com>
8851
8852 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8853 (remove_dyn_prop): Remove. Update all users to use
8854 type::remove_dyn_prop.
8855 * gdbtypes.c (remove_dyn_prop): Rename to...
8856 (type::remove_dyn_prop): ... this.
8857
5c54719c
SM
88582020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8859
8860 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8861 (add_dyn_prop): Remove. Update all users to use
8862 type::add_dyn_prop.
8863 * gdbtypes.c (add_dyn_prop): Rename to...
8864 (type::add_dyn_prop): ... this.
8865
24e99c6c
SM
88662020-05-07 Simon Marchi <simon.marchi@efficios.com>
8867
8868 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8869 (get_dyn_prop): Remove. Update all users to use
8870 type::dyn_prop.
8871 * gdbtypes.c (get_dyn_prop): Rename to...
8872 (type::dyn_prop): ... this.
8873
0d4bf016
SM
88742020-05-06 Simon Marchi <simon.marchi@efficios.com>
8875
8876 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8877
ac4a4f1c
SM
88782020-05-06 Simon Marchi <simon.marchi@efficios.com>
8879
8880 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8881 instruction, skip it if it's there.
8882
a3bbacc1
SM
88832020-05-05 Simon Marchi <simon.marchi@efficios.com>
8884
8885 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8886
c3236f84
SM
88872020-05-04 Simon Marchi <simon.marchi@efficios.com>
8888
8889 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8890 * gdbtypes.c (recursive_dump_type): Remove use of
8891 TYPE_INCOMPLETE.
8892
3b6acaee
TT
88932020-05-03 Tom Tromey <tom@tromey.com>
8894
8895 * breakpoint.c (catch_command, tcatch_command): Remove.
8896 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8897 add_show_prefix_cmd.
8898 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8899 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8900 Remove.
8901 (add_internal_problem_command): Use add_basic_prefix_cmd,
8902 add_show_prefix_cmd.
8903 * mips-tdep.c (set_mipsfpu_command): Remove.
8904 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8905 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8906 (_initialize_index_cache): Use add_basic_prefix_cmd.
8907 * memattr.c (dummy_cmd): Remove.
8908 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8909 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8910 (_initialize_tui_win): Use add_basic_prefix_cmd,
8911 add_show_prefix_cmd.
8912 * cli/cli-logging.c (set_logging_command): Remove.
8913 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8914 add_show_prefix_cmd.
8915 (show_logging_command): Remove.
8916 * target.c (target_command): Remove.
8917 (add_target): Use add_basic_prefix_cmd.
8918
a51119cd
HD
89192020-05-02 Hannes Domani <ssbssa@yahoo.de>
8920
8921 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8922
652fc23a 89232020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8924
652fc23a
PW
8925 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8926 info_command.
8927
117539e6
KR
89282020-04-30 Kamil Rytarowski <n54@gmx.com>
8929
8930 * nbsd-nat.c (nbsd_enable_proc_events)
8931 (nbsd_nat_target::post_startup_inferior): Add.
8932 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8933 (nbsd_nat_target::update_thread_list): Rewrite.
8934 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8935 "PTRACE_LWP_CREATE".
8936 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8937
102e38eb 89382020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8939
102e38eb
PW
8940 * stack.c (_initialize_stack): Remove duplicated creation
8941 of "frame" command and "f" alias.
8942
ee9d1e5f
HD
89432020-04-30 Hannes Domani <ssbssa@yahoo.de>
8944
8945 PR gdb/18706
8946 * gdbtypes.c (check_typedef): Calculate size of array of
8947 stubbed type.
8948
627c7fb8
HD
89492020-04-30 Hannes Domani <ssbssa@yahoo.de>
8950
8951 PR gdb/15559
8952 * i386-tdep.c (i386_push_dummy_call): Call
8953 i386_thiscall_push_dummy_call.
8954 (i386_thiscall_push_dummy_call): New function.
8955 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8956 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8957 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8958
ffc2844e
SM
89592020-04-29 Simon Marchi <simon.marchi@efficios.com>
8960
8961 * gdbarch.sh (do_read): Add shellcheck disable directive for
8962 warning SC2162.
8963
1207375d
SM
89642020-04-29 Simon Marchi <simon.marchi@efficios.com>
8965
8966 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8967 "referenced but not assigned" warning.
8968
9fdb2916
SM
89692020-04-29 Simon Marchi <simon.marchi@efficios.com>
8970
8971 * gdbarch.sh: Remove code that sets fallbackdefault.
8972
759cea5e
SM
89732020-04-29 Simon Marchi <simon.marchi@efficios.com>
8974
8975 * gdbarch.sh: Use shell operators && and || instead of
8976 -a and -o.
8977
cb02ab24
SM
89782020-04-29 Simon Marchi <simon.marchi@efficios.com>
8979
8980 * gdbarch.sh: Use $(...) instead of `...`.
8981
a6fc5ffc
SM
89822020-04-29 Simon Marchi <simon.marchi@efficios.com>
8983
8984 * gdbarch.sh: Use double quotes around variables.
8985
8d113d13
SM
89862020-04-29 Simon Marchi <simon.marchi@efficios.com>
8987
8988 * gdbarch.sh: Use %s with printf, instead of variables in the
8989 format string.
8990
ed6acedd
TT
89912020-04-29 Tom Tromey <tromey@adacore.com>
8992
8993 PR ada/25875:
8994 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8995 type fields here.
8996 (read_enumeration_type): Call
8997 update_enumeration_type_from_children later. Update comments.
8998 (process_enumeration_scope): Don't create type fields.
8999
b68b1b58
KR
90002020-04-29 Kamil Rytarowski <n54@gmx.com>
9001
9002 * nbsd-tdep.c: Include "xml-syscall.h".
9003 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9004
f94b2e03
KR
90052020-04-29 Kamil Rytarowski <n54@gmx.com>
9006
9007 * nbsd-nat.c: Include "sys/wait.h".
9008 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9009 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9010 (nbsd_nat_target::remove_exec_catchpoint)
9011 (nbsd_nat_target::set_syscall_catchpoint): Add.
9012 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9013 (nbsd_nat_target::insert_exec_catchpoint)
9014 (nbsd_nat_target::remove_exec_catchpoint)
9015 (nbsd_nat_target::set_syscall_catchpoint): Add.
9016 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9017 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9018 `nbsd_get_syscall_number'.
9019
fc49bc72
TT
90202020-04-29 Tom Tromey <tom@tromey.com>
9021
9022 * stack.c (print_block_frame_labels): Remove.
9023
d642b692
HD
90242020-04-29 Hannes Domani <ssbssa@yahoo.de>
9025
9026 PR gdb/17320
9027 * ada-valprint.c (val_print_packed_array_elements): Move array
9028 end bracket to new line.
9029 (ada_val_print_string): Remove extra spaces before first array
9030 element.
9031 * c-valprint.c (c_value_print_array): Likewise.
9032 * m2-valprint.c (m2_print_array_contents): Likewise.
9033 (m2_value_print_inner): Likewise.
9034 * p-valprint.c (pascal_value_print_inner): Likewise.
9035 * valprint.c (generic_val_print_array): Likewise.
9036 (value_print_array_elements): Move first array element and array
9037 end bracket to new line.
9038
ea90f227
TV
90392020-04-29 Tom de Vries <tdevries@suse.de>
9040
9041 PR symtab/25889
9042 * linespec.c (find_method): Fix ix calculation.
9043
4498ef4f
KR
90442020-04-28 Kamil Rytarowski <n54@gmx.com>
9045
9046 * syscalls/update-netbsd.sh: New file.
9047 * syscalls/netbsd.xml: Regenerate.
9048 * data-directory/Makefile.in: Register `netbsd.xml' in
9049 `SYSCALLS_FILES'.
9050
a55e30b5
SM
90512020-04-28 Simon Marchi <simon.marchi@efficios.com>
9052
9053 * syscalls/update-freebsd.sh: Add double quotes.
9054
2b2fbab8
TT
90552020-04-28 Tom Tromey <tom@tromey.com>
9056
9057 * NEWS: Update.
9058 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9059 (cmdpy_init): Allow class_tui.
9060
a65189c9
TV
90612020-04-28 Mark Williams <mark@myosotissp.com>
9062
9063 PR gdb/24480
9064 * dwarf2read.c: Add missing assingments to list_in_scope when
9065 start_symtab was already called.
9066
1b95cdb7
SM
90672020-04-28 Simon Marchi <simon.marchi@efficios.com>
9068
9069 PR gdb/25881
9070 * dwarf2/read.c (offset_map_type): Use
9071 gdb:hash_enum<sect_offset> as hash function.
9072
15cd93d0
TV
90732020-04-28 Tom de Vries <tdevries@suse.de>
9074
9075 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9076 with DW_AT_signature.
9077
1eb39914
SM
90782020-04-27 Simon Marchi <simon.marchi@efficios.com>
9079
9080 * configure.ac: Remove check for fs_base/gs_base in
9081 user_regs_struct.
9082 * configure: Re-generate.
9083 * config.in: Re-generate.
9084 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9085 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9086 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9087
991a3e2e
LM
90882020-04-27 Luis Machado <luis.machado@linaro.org>
9089
9090 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9091 problematic inline frame unwinding situation.
9092 * frame.c (frame_id_computed_p): New function.
9093 * frame.h (frame_id_computed_p): New prototype.
9094
361ba0e8
TT
90952020-04-26 Tom Tromey <tom@tromey.com>
9096
9097 * command.h (enum command_class) <class_pseudo>: Remove.
9098
bc3609fd
PW
90992020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9100
9101 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9102 and whitespace.
9103
b9771db7
KR
91042020-04-25 Kamil Rytarowski <n54@gmx.com>
9105
ec16513e
SM
9106 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9107 `PT_GET_PROCESS_STATE' block.
b9771db7 9108
7151c1af
TT
91092020-04-24 Tom Tromey <tom@tromey.com>
9110
9111 * symtab.h (symbol_get_demangled_name): Don't declare.
9112 * symtab.c (symbol_get_demangled_name): Remove.
9113 (general_symbol_info::natural_name)
9114 (general_symbol_info::demangled_name): Update.
9115
906bb4c5
TT
91162020-04-24 Tom Tromey <tom@tromey.com>
9117
9118 PR rust/25025:
9119 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9120
bcfe6157
TT
91212020-04-24 Tom Tromey <tom@tromey.com>
9122
9123 PR symtab/12707:
9124 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9125 exists.
9126 (new_symbol): Likewise.
9127 * compile/compile-object-load.c (get_out_value_type): Use
9128 symbol_matches_search_name.
9129
f049a313
TT
91302020-04-24 Tom Tromey <tom@tromey.com>
9131
9132 * dwarf2/read.c (add_partial_symbol): Do not call
9133 compute_and_set_names.
9134
76e288d1
TT
91352020-04-24 Tom Tromey <tom@tromey.com>
9136
9137 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9138 overload.
9139
2467f4f6
TT
91402020-04-24 Tom Tromey <tom@tromey.com>
9141
9142 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9143 (add_psymbol_to_list): New overload. Make old overload call new
9144 one.
9145 * psympriv.h (add_psymbol_to_list): New overload.
9146
e61108c9
TT
91472020-04-24 Tom Tromey <tom@tromey.com>
9148
9149 * dwarf2/read.c (partial_die_info::read) <case
9150 DW_AT_linkage_name>: Use value_as_string.
9151 (dwarf2_string_attr): Use value_as_string.
9152 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9153 method.
9154 * dwarf2/attribute.c (attribute::value_as_string): New method.
9155
8c87a452
TT
91562020-04-24 Tom Tromey <tom@tromey.com>
9157
9158 * symtab.c (general_symbol_info::natural_name)
9159 (general_symbol_info::demangled_name): Check for language_rust.
9160
787de330
TT
91612020-04-24 Tom Tromey <tom@tromey.com>
9162
9163 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9164 (dwarf2_physname): ... from here.
9165 (partial_die_info::read): Add Rust "{" hack.
9166
ff985671
TT
91672020-04-24 Tom Tromey <tom@tromey.com>
9168
9169 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9170 method.
9171 (symbol_set_demangled_name): Don't declare.
9172 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9173 symbol_set_demangled_name.
9174 (general_symbol_info::set_language)
9175 (general_symbol_info::compute_and_set_names): Update.
9176 * minsyms.c (minimal_symbol_reader::install): Update.
9177 * dwarf2/read.c (new_symbol): Update.
9178
1acda803
TT
91792020-04-24 Tom Tromey <tromey@adacore.com>
9180
9181 PR python/23662:
9182 * python/py-type.c (convert_field): Handle
9183 FIELD_LOC_KIND_DWARF_BLOCK.
9184 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9185 (typy_get_dynamic): Nw function.
9186 (type_object_getset): Add "dynamic".
9187 * NEWS: Add entry.
9188
d656f129
TT
91892020-04-24 Tom Tromey <tromey@adacore.com>
9190
9191 * ada-typeprint.c (print_choices, print_variant_part)
9192 (print_record_field_types_dynamic): New functions.
9193 (print_record_field_types): Use print_record_field_types_dynamic.
9194
7d79de9a
TT
91952020-04-24 Tom Tromey <tromey@adacore.com>
9196
9197 * dwarf2/read.c (handle_data_member_location): New overload.
9198 (dwarf2_add_field): Use it.
9199 (decode_locdesc): Add "computed" parameter. Update comment.
9200 * gdbtypes.c (is_dynamic_type_internal): Also look for
9201 FIELD_LOC_KIND_DWARF_BLOCK.
9202 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9203 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9204 virtual base classes.
9205 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9206 FIELD_LOC_KIND_DWARF_BLOCK.
9207
f8e89861
TT
92082020-04-24 Tom Tromey <tromey@adacore.com>
9209
9210 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9211 * gdbtypes.c (is_dynamic_type_internal): Check
9212 TYPE_HAS_DYNAMIC_LENGTH.
9213 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9214 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9215 New macros.
9216 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9217 constant.
9218
9c6a1327
TT
92192020-04-24 Tom Tromey <tromey@adacore.com>
9220
9221 * dwarf2/read.c (struct variant_field): Rewrite.
9222 (struct variant_part_builder): New.
9223 (struct nextfield): Remove "variant" field. Add "offset".
9224 (struct field_info): Add "current_variant_part" and
9225 "variant_parts".
9226 (alloc_discriminant_info): Remove.
9227 (alloc_rust_variant): New function.
9228 (quirk_rust_enum): Update.
9229 (dwarf2_add_field): Set "offset" member. Don't handle
9230 DW_TAG_variant_part.
9231 (offset_map_type): New typedef.
9232 (convert_variant_range, create_one_variant)
9233 (create_one_variant_part, create_variant_parts)
9234 (add_variant_property): New functions.
9235 (dwarf2_attach_fields_to_type): Call add_variant_property.
9236 (read_structure_type): Don't handle DW_TAG_variant_part.
9237 (handle_variant_part, handle_variant): New functions.
9238 (handle_struct_member_die): Use them.
9239 (process_structure_scope): Don't handle variant parts.
9240 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9241 (struct discriminant_info): Remove.
9242 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9243 (struct main_type) <flag_discriminated_union>: Remove.
9244 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9245 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9246 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9247 Update.
9248 * valops.c (value_union_variant): Remove.
9249 * value.h (value_union_variant): Don't declare.
9250
b249d2c2
TT
92512020-04-24 Tom Tromey <tromey@adacore.com>
9252
9253 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9254 (ada_value_primitive_packed_val): Update.
9255 * ada-valprint.c (ada_value_print_1): Update.
9256 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9257 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9258 just an address. Use evaluate_for_locexpr_baton.
9259 (dwarf2_evaluate_property): Update.
9260 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9261 array_view.
9262 * findvar.c (default_read_var_value): Update.
9263 * gdbtypes.c (compute_variant_fields_inner)
9264 (resolve_dynamic_type_internal): Update.
9265 (resolve_dynamic_type): Change type of valaddr parameter.
9266 * gdbtypes.h (resolve_dynamic_type): Update.
9267 * valarith.c (value_subscripted_rvalue): Update.
9268 * value.c (value_from_contents_and_address): Update.
9269
61122aa9
TT
92702020-04-24 Tom Tromey <tromey@adacore.com>
9271
9272 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9273 "push_initial_value" parameter.
9274 (dwarf2_evaluate_property): Likewise.
9275 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9276
ef83a141
TT
92772020-04-24 Tom Tromey <tromey@adacore.com>
9278
9279 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9280 (variant::matches, compute_variant_fields_recurse)
9281 (compute_variant_fields_inner, compute_variant_fields): New
9282 functions.
9283 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9284 Use resolved_type after type is made.
9285 (operator==): Add new cases.
9286 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9287 (struct discriminant_range, struct variant, struct variant_part):
9288 New.
9289 (union dynamic_prop_data) <variant_parts, original_type>: New
9290 members.
9291 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9292 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9293 constants.
9294 * value.c (unpack_bits_as_long): Now public.
9295 * value.h (unpack_bits_as_long): Declare.
9296
675127ec
TT
92972020-04-24 Tom Tromey <tromey@adacore.com>
9298
9299 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9300 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9301
9852ceef
HD
93022020-04-24 Hannes Domani <ssbssa@yahoo.de>
9303
9304 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9305
7632c6ce
KR
93062020-04-24 Kamil Rytarowski <n54@gmx.com>
9307
9308 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9309 (remove_fork_catchpoint, post_startup_inferior)
9310 (post_attach): Move...
9311 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9312 (remove_fork_catchpoint, post_startup_inferior)
9313 (post_attach): ...here.
9314 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9315 (remove_fork_catchpoint, post_startup_inferior)
9316 (post_attach): Move...
9317 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9318 (remove_fork_catchpoint, post_startup_inferior)
9319 (post_attach): ...here.
9320
7be2bb4f
TT
93212020-04-24 Tom Tromey <tromey@adacore.com>
9322
9323 * nat/windows-nat.h (struct windows_thread_info)
9324 <pc_adjusted>: New member.
9325 * windows-nat.c (windows_fetch_one_register): Check
9326 pc_adjusted.
9327 (windows_nat_target::get_windows_debug_event)
9328 (windows_nat_target::wait): Set pc_adjusted.
9329
f80cb3b4
TV
93302020-04-24 Tom de Vries <tdevries@suse.de>
9331
9332 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9333 Run gdb-add-index inside temp dir.
9334
29514b87
TT
93352020-04-23 Tom Tromey <tromey@adacore.com>
9336
9337 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9338 in loop.
9339
5939967b
LM
93402020-04-23 Luis Machado <luis.machado@linaro.org>
9341
9342 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9343 get_frame_register instead of gdbarch_unwind_pc.
9344
70bc38f5
TV
93452020-04-23 Tom de Vries <tdevries@suse.de>
9346
9347 * symtab.c (lookup_global_symbol): Prefer def over decl.
9348
de82891c
TV
93492020-04-23 Tom de Vries <tdevries@suse.de>
9350
9351 PR symtab/25807
9352 * block.c (best_symbol, better_symbol): Promote to external.
9353 * block.h (best_symbol, better_symbol): Declare.
9354 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9355 decl.
9356
ecc6c606
TT
93572020-04-23 Tom Tromey <tromey@adacore.com>
9358
9359 PR ada/25837:
9360 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9361 "const char *", not a "const std::string &".
9362 <name_and_matcher::operator==>: Update.
9363 * unittests/lookup_name_info-selftests.c: Change type of
9364 "result".
9365
740480b8
TT
93662020-04-23 Tom Tromey <tom@tromey.com>
9367
9368 * inferior.h (iterate_over_inferiors): Don't declare.
9369 * inferior.c (iterate_over_inferiors): Remove.
9370 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9371 Remove.
9372 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9373 use iterate_over_inferiors.
9374 (darwin_resume_inferior_it)
9375 (struct resume_inferior_threads_param)
9376 (darwin_resume_inferior_threads_it): Remove.
9377 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9378
ae3ab1f0
TV
93792020-04-23 Tom de Vries <tdevries@suse.de>
9380
9381 * blockframe.c (find_pc_partial_function): Use
9382 find_pc_sect_compunit_symtab rather than
9383 objfile->sf->qf->find_pc_sect_compunit_symtab.
9384
317d2668
TV
93852020-04-22 Tom de Vries <tdevries@suse.de>
9386
9387 PR symtab/25764
9388 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9389 in psymtabs.
9390
eea9e357
TV
93912020-04-22 Tom de Vries <tdevries@suse.de>
9392
9393 PR symtab/25801
9394 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9395 symtabs.
9396
3d5afab3
TV
93972020-04-22 Tom de Vries <tdevries@suse.de>
9398
9399 PR symtab/25700
9400 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9401 CU if already created.
9402
d43b7a2d
TBA
94032020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9404
9405 * infrun.c (displaced_step_fixup): Switch to the event_thread
9406 before calling displaced_step_restore, not after.
9407
d89edf9b
MM
94082020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9409
9410 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9411 its inferior is not recorded by us.
9412 (record_btrace_target_open): Replace call to
9413 all_non_exited_threads () with call to current_inferior
9414 ()->non_exited_threads ().
9415 (record_btrace_target::stop_recording): Likewise.
9416 (record_btrace_target::close): Likewise.
9417 (record_btrace_target::wait): Likewise.
9418 (record_btrace_target::record_stop_replaying): Likewise.
9419
5897fd49
MM
94202020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9421
9422 * btrace.c (btrace_enable): Throw an error on double enables and
9423 when enabling recording fails.
9424 (btrace_disable): Throw an error if the thread is not recorded.
9425
1a476b6d
MM
94262020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9427
9428 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9429 request if we do not have a thread_info.
9430
4778a5f8
TV
94312020-04-21 Tom de Vries <tdevries@suse.de>
9432
9433 PR gdb/25471
9434 * thread.c
9435 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9436 exception in get_frame_id.
9437
0fa7617d
TT
94382020-04-20 Tom Tromey <tromey@adacore.com>
9439
9440 * python/python.c (struct gdbpy_event): Mark move constructor as
9441 noexcept.
9442 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9443 constructor as noexcept.
9444 * completer.h (struct completion_result): Mark move constructor as
9445 noexcept.
9446 * completer.c (completion_result::completion_result): Use
9447 initialization style. Don't call reset_match_list.
9448
ad23bda0
MS
94492020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9450
9451 * MAINTAINERS (Write After Approval): Add myself.
9452
45e1f031
TT
94532020-04-18 Tom Tromey <tom@tromey.com>
9454
9455 * windows-tdep.c (init_w32_command_list)
9456 (w32_prefix_command_valid): Restore.
9457 (_initialize_windows_tdep): Call init_w32_command_list.
9458
08feed99
TT
94592020-04-18 Tom Tromey <tom@tromey.com>
9460
9461 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9462 * value.c (value_fn_field): Update.
9463 * valops.c (find_function_in_inferior)
9464 (value_allocate_space_in_inferior): Update.
9465 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9466 Update.
9467 * tui/tui-source.c (tui_source_window::set_contents): Update.
9468 * symtab.c (lookup_global_or_static_symbol)
9469 (find_function_start_sal_1, skip_prologue_sal)
9470 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9471 * symmisc.c (dump_msymbols, dump_symtab_1)
9472 (maintenance_print_one_line_table): Update.
9473 * symfile.c (init_entry_point_info, section_is_mapped)
9474 (list_overlays_command, simple_read_overlay_table)
9475 (simple_overlay_update_1): Update.
9476 * stap-probe.c (handle_stap_probe): Update.
9477 * stabsread.c (dbx_init_float_type, define_symbol)
9478 (read_one_struct_field, read_enum_type, read_range_type): Update.
9479 * source.c (info_line_command): Update.
9480 * python/python.c (gdbpy_source_objfile_script)
9481 (gdbpy_execute_objfile_script): Update.
9482 * python/py-type.c (save_objfile_types): Update.
9483 * python/py-objfile.c (py_free_objfile): Update.
9484 * python/py-inferior.c (python_new_objfile): Update.
9485 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9486 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9487 (maintenance_check_psymtabs): Update.
9488 * printcmd.c (info_address_command): Update.
9489 * objfiles.h (struct objfile) <arch>: New method, from
9490 get_objfile_arch.
9491 (get_objfile_arch): Don't declare.
9492 * objfiles.c (get_objfile_arch): Remove.
9493 (filter_overlapping_sections): Update.
9494 * minsyms.c (msymbol_is_function): Update.
9495 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9496 (output_nondebug_symbol): Update.
9497 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9498 (mdebug_expand_psymtab): Update.
9499 * machoread.c (macho_add_oso_symfile): Update.
9500 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9501 Update.
9502 * linux-fork.c (checkpoint_command): Update.
9503 * linespec.c (convert_linespec_to_sals): Update.
9504 * jit.c (finalize_symtab): Update.
9505 * infrun.c (insert_exception_resume_from_probe): Update.
9506 * ia64-tdep.c (ia64_find_unwind_table): Update.
9507 * hppa-tdep.c (internalize_unwinds): Update.
9508 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9509 Update.
9510 * gcore.c (call_target_sbrk): Update.
9511 * elfread.c (record_minimal_symbol, elf_symtab_read)
9512 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9513 (elf_gnu_ifunc_resolve_by_got): Update.
9514 * dwarf2/read.c (create_addrmap_from_index)
9515 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9516 (read_debug_names_from_section)
9517 (process_psymtab_comp_unit_reader, add_partial_symbol)
9518 (add_partial_subprogram, process_full_comp_unit)
9519 (read_file_scope, read_func_scope, read_lexical_block_scope)
9520 (read_call_site_scope, dwarf2_ranges_read)
9521 (dwarf2_record_block_ranges, dwarf2_add_field)
9522 (mark_common_block_symbol_computed, read_tag_pointer_type)
9523 (read_tag_string_type, dwarf2_init_float_type)
9524 (dwarf2_init_complex_target_type, read_base_type)
9525 (partial_die_info::read, partial_die_info::read)
9526 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9527 (dwarf2_fetch_die_loc_sect_off): Update.
9528 * dwarf2/loc.c (dwarf2_find_location_expression)
9529 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9530 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9531 (dwarf2_loc_desc_get_symbol_read_needs)
9532 (locexpr_describe_location_piece, locexpr_describe_location_1)
9533 (loclist_describe_location): Update.
9534 * dwarf2/index-write.c (write_debug_names): Update.
9535 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9536 * dtrace-probe.c (dtrace_process_dof): Update.
9537 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9538 (process_one_symbol): Update.
9539 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9540 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9541 (coff_read_enum_type): Update.
9542 * cli/cli-cmds.c (edit_command, list_command): Update.
9543 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9544 * breakpoint.c (create_overlay_event_breakpoint)
9545 (create_longjmp_master_breakpoint)
9546 (create_std_terminate_master_breakpoint)
9547 (create_exception_master_breakpoint, get_sal_arch): Update.
9548 * block.c (block_gdbarch): Update.
9549 * annotate.c (annotate_source_line): Update.
9550
0743fc83
TT
95512020-04-17 Tom Tromey <tromey@adacore.com>
9552
9553 * auto-load.c (show_auto_load_cmd): Remove.
9554 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9555 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9556 (maintenance_print_arc_command): Remove.
9557 * tui/tui-win.c (tui_command): Remove.
9558 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9559 * tui/tui-layout.c (tui_layout_command): Remove.
9560 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9561 * python/python.c (user_set_python, user_show_python): Remove.
9562 (_initialize_python): Use add_basic_prefix_cmd,
9563 add_show_prefix_cmd.
9564 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9565 (install_gdb_commands): Use add_basic_prefix_cmd,
9566 add_show_prefix_cmd.
9567 (info_guile_command): Remove.
9568 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9569 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9570 add_show_prefix_cmd.
9571 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9572 Remove do_set and do_show parameters.
9573 * cli/cli-style.c (set_style, show_style): Remove.
9574 (_initialize_cli_style): Use add_basic_prefix_cmd,
9575 add_show_prefix_cmd.
9576 (cli_style_option::add_setshow_commands): Remove do_set and
9577 do_show parameters.
9578 (cli_style_option::add_setshow_commands): Use
9579 add_basic_prefix_cmd, add_show_prefix_cmd.
9580 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9581 (set_style_name): Remove.
9582 * cli/cli-dump.c (dump_command, append_command): Remove.
9583 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9584 (tekhex_dump_command, binary_dump_command)
9585 (binary_append_command): Remove.
9586 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9587 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9588 (init_w32_command_list): Remove; move into ...
9589 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9590 * valprint.c (set_print, show_print, set_print_raw)
9591 (show_print_raw): Remove.
9592 (_initialize_valprint): Use add_basic_prefix_cmd,
9593 add_show_prefix_cmd.
9594 * typeprint.c (set_print_type, show_print_type): Remove.
9595 (_initialize_typeprint): Use add_basic_prefix_cmd,
9596 add_show_prefix_cmd.
9597 * record.c (set_record_command, show_record_command): Remove.
9598 (_initialize_record): Use add_basic_prefix_cmd,
9599 add_show_prefix_cmd.
9600 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9601 add_show_prefix_cmd.
9602 (info_command, show_command, set_debug, show_debug): Remove.
9603 * top.h (set_history, show_history): Don't declare.
9604 * top.c (set_history, show_history): Remove.
9605 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9606 (unset_tdesc_cmd): Remove.
9607 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9608 add_show_prefix_cmd.
9609 * symtab.c (info_module_command): Remove.
9610 (_initialize_symtab): Use add_basic_prefix_cmd.
9611 * symfile.c (overlay_command): Remove.
9612 (_initialize_symfile): Use add_basic_prefix_cmd.
9613 * sparc64-tdep.c (info_adi_command): Remove.
9614 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9615 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9616 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9617 add_show_prefix_cmd.
9618 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9619 (_initialize_serial): Use add_basic_prefix_cmd,
9620 add_show_prefix_cmd.
9621 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9622 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9623 add_show_prefix_cmd.
9624 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9625 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9626 add_show_prefix_cmd.
9627 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9628 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9629 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9630 add_show_prefix_cmd.
9631 * remote.c (remote_command, set_remote_cmd): Remove.
9632 (_initialize_remote): Use add_basic_prefix_cmd.
9633 * record-full.c (set_record_full_command)
9634 (show_record_full_command): Remove.
9635 (_initialize_record_full): Use add_basic_prefix_cmd,
9636 add_show_prefix_cmd.
9637 * record-btrace.c (cmd_set_record_btrace)
9638 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9639 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9640 (cmd_show_record_btrace_pt): Remove.
9641 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9642 add_show_prefix_cmd.
9643 * ravenscar-thread.c (set_ravenscar_command)
9644 (show_ravenscar_command): Remove.
9645 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9646 add_show_prefix_cmd.
9647 * mips-tdep.c (show_mips_command, set_mips_command)
9648 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9649 add_show_prefix_cmd.
9650 * maint.c (maintenance_command, maintenance_info_command)
9651 (maintenance_check_command, maintenance_print_command)
9652 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9653 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9654 add_show_prefix_cmd.
9655 (show_per_command_cmd): Remove.
9656 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9657 Remove.
9658 (maintenance_show_test_settings_cmd): Remove.
9659 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9660 add_show_prefix_cmd.
9661 * maint-test-options.c (maintenance_test_options_command):
9662 Remove.
9663 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9664 * macrocmd.c (macro_command): Remove
9665 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9666 * language.c (set_check, show_check): Remove.
9667 (_initialize_language): Use add_basic_prefix_cmd,
9668 add_show_prefix_cmd.
9669 * infcmd.c (unset_command): Remove.
9670 (_initialize_infcmd): Use add_basic_prefix_cmd.
9671 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9672 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9673 add_show_prefix_cmd.
9674 * go32-nat.c (go32_info_dos_command): Remove.
9675 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9676 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9677 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9678 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9679 (_initialize_frame): Use add_basic_prefix_cmd,
9680 add_show_prefix_cmd.
9681 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9682 (_initialize_dcache): Use add_basic_prefix_cmd,
9683 add_show_prefix_cmd.
9684 * cp-support.c (maint_cplus_command): Remove.
9685 (_initialize_cp_support): Use add_basic_prefix_cmd.
9686 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9687 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9688 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9689 add_basic_prefix_cmd, add_show_prefix_cmd.
9690 * breakpoint.c (save_command): Remove.
9691 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9692 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9693 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9694 add_show_prefix_cmd.
9695 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9696 (set_ada_command, show_ada_command): Remove.
9697 (_initialize_ada_language): Use add_basic_prefix_cmd,
9698 add_show_prefix_cmd.
9699 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9700
3557f442
KR
97012020-04-16 Kamil Rytarowski <n54@gmx.com>
9702
9703 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9704 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9705
16197208
SM
97062020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9707
9708 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9709 warning messages.
9710
00ac85d3
SM
97112020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9712
9713 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9714 import table is not at beginning of .idata section.
9715
381ce63f
PA
97162020-04-16 Pedro Alves <palves@redhat.com>
9717
9718 * inferior.c (delete_inferior): Use delete operator directly
9719 instead of delete_program_space.
9720 * progspace.c (add_program_space): New, factored out from
9721 program_space::program_space.
9722 (remove_program_space): New, factored out from
9723 delete_program_space.
9724 (program_space::program_space): Remove intro comment. Rewrite.
9725 (program_space::~program_space): Remove intro comment. Call
9726 remove_program_space.
9727 (delete_program_space): Delete.
9728 * progspace.h (program_space::program_space): Make explicit. Move
9729 intro comment here, adjusted.
9730 (program_space::~program_space): Move intro comment here,
9731 adjusted.
9732 (delete_program_space): Remove.
9733
a010605f
TT
97342020-04-16 Tom Tromey <tromey@adacore.com>
9735
9736 * windows-nat.c (windows_nat::handle_access_violation): New
9737 function.
9738 * nat/windows-nat.h (handle_access_violation): Declare.
9739 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9740 windows-nat.c. Call handle_access_violation.
9741
efba5c23
TV
97422020-04-16 Tom de Vries <tdevries@suse.de>
9743
9744 PR symtab/25791
9745 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9746 CUs without psymtab.
9747
97ed802d
KB
97482020-04-16 Kevin Buettner <kevinb@redhat.com>
9749
9750 * python/python.c (do_start_initialization): Don't call
9751 PyEval_InitThreads for Python 3.9 and beyond.
9752
c7d64809
KR
97532020-04-15 Kamil Rytarowski <n54@gmx.com>
9754
9755 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9756 thread functions.
9757 (obsd_nat_target::wait): Likewise.
9758
ce127a96
TT
97592020-04-15 Tom Tromey <tromey@adacore.com>
9760
9761 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9762 (DEBUG_EXCEPT): Use debug_printf.
9763
99f1bc6a
AB
97642020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9765
9766 * completer.c (class completion_tracker::completion_hash_entry)
9767 <hash_name>: New member function.
9768 (completion_tracker::discard_completions): New callback to hash a
9769 completion_hash_entry, pass this to htab_create_alloc.
9770
a0e9b532
JT
97712016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9772
9773 * windows-nat.c (windows_make_so): Warn rather than stopping with
9774 an error if realpath() fails.
9775
06ca5dd4
KR
97762020-04-14 Kamil Rytarowski <n54@gmx.com>
9777
9778 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9779 (nbsd_nat_target::info_proc): Add do_status.
9780
194d088f
TV
97812020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9782 Tom de Vries <tdevries@suse.de>
9783
9784 PR symtab/25718
9785 * psympriv.h (struct partial_symtab::read_symtab)
9786 (struct partial_symtab::expand_psymtab)
9787 (struct partial_symtab::read_dependencies): Update comments.
9788 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9789 read_symtab for includer.
9790 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9791 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9792 (struct dwarf2_include_psymtab::m_readin): Remove.
9793 (struct dwarf2_include_psymtab::includer): New member function.
9794 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9795
c1a66c06
TV
97962020-04-14 Tom de Vries <tdevries@suse.de>
9797
9798 PR symtab/25720
9799 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9800 with NULL symbol_matcher and lookup_name.
9801 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9802 and lookup_name.
9803 * dwarf2/read.c (dw2_expand_symtabs_matching)
9804 (dw2_debug_names_expand_symtabs_matching): Same.
9805 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9806 Make lookup_name a pointer. Update comment.
9807 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9808 lookup_name being a pointer.
9809 * symfile.c (expand_symtabs_matching): Same.
9810 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9811 * linespec.c (iterate_over_all_matching_symtabs): Same.
9812
400b5eca
TT
98132020-04-13 Tom Tromey <tom@tromey.com>
9814
9815 * run-on-main-thread.c: Update include.
9816 * unittests/main-thread-selftests.c: Update include.
9817 * tui/tui-win.c: Update include.
9818 * tui/tui-io.c: Update include.
9819 * tui/tui-interp.c: Update include.
9820 * tui/tui-hooks.c: Update include.
9821 * top.h: Update include.
9822 * top.c: Update include.
9823 * ser-base.c: Update include.
9824 * remote.c: Update include.
9825 * remote-notif.c: Update include.
9826 * remote-fileio.c: Update include.
9827 * record-full.c: Update include.
9828 * record-btrace.c: Update include.
9829 * python/python.c: Update include.
9830 * posix-hdep.c: Update include.
9831 * mingw-hdep.c: Update include.
9832 * mi/mi-main.c: Update include.
9833 * mi/mi-interp.c: Update include.
9834 * main.c: Update include.
9835 * linux-nat.c: Update include.
9836 * interps.c: Update include.
9837 * infrun.c: Update include.
9838 * inf-loop.c: Update include.
9839 * event-top.c: Update include.
9840 * event-loop.c: Move to ../gdbsupport/.
9841 * event-loop.h: Move to ../gdbsupport/.
9842 * async-event.h: Update include.
9843 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9844
93b54c8e
TT
98452020-04-13 Tom Tromey <tom@tromey.com>
9846
9847 * tui/tui-win.c: Include async-event.h.
9848 * remote.c: Include async-event.h.
9849 * remote-notif.c: Include async-event.h.
9850 * record-full.c: Include async-event.h.
9851 * record-btrace.c: Include async-event.h.
9852 * infrun.c: Include async-event.h.
9853 * event-top.c: Include async-event.h.
9854 * event-loop.h: Move some declarations to async-event.h.
9855 * event-loop.c: Don't include ser-event.h or top.h. Move some
9856 code to async-event.c.
9857 * async-event.h: New file.
9858 * async-event.c: New file.
9859 * Makefile.in (COMMON_SFILES): Add async-event.c.
9860 (HFILES_NO_SRCDIR): Add async-event.h.
9861
c1cd3163
TT
98622020-04-13 Tom Tromey <tom@tromey.com>
9863
9864 * utils.c (flush_streams): New function.
9865 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9866
29f2bf4f
TT
98672020-04-13 Tom Tromey <tom@tromey.com>
9868
9869 * event-loop.c (handle_file_event): Use warning, not
9870 printf_unfiltered.
9871
98029d02
TT
98722020-04-13 Tom Tromey <tom@tromey.com>
9873
9874 * event-loop.c: Include <chrono>.
9875
06cc9596
TT
98762020-04-13 Tom Tromey <tom@tromey.com>
9877
9878 * gdb_select.h: Move to ../gdbsupport/.
9879 * event-loop.c: Update include path.
9880 * top.c: Update include path.
9881 * ser-base.c: Update include path.
9882 * ui-file.c: Update include path.
9883 * ser-tcp.c: Update include path.
9884 * guile/scm-ports.c: Update include path.
9885 * posix-hdep.c: Update include path.
9886 * ser-unix.c: Update include path.
9887 * gdb_usleep.c: Update include path.
9888 * mingw-hdep.c: Update include path.
9889 * inflow.c: Update include path.
9890 * infrun.c: Update include path.
9891 * event-top.c: Update include path.
9892
8ae8e197
TT
98932020-04-13 Tom Tromey <tom@tromey.com>
9894
9895 * configure: Rebuild.
9896 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9897
58cf28e8
TT
98982020-04-13 Tom Tromey <tom@tromey.com>
9899
9900 * event-loop.h (start_event_loop): Don't declare.
9901 * event-loop.c (start_event_loop): Move...
9902 * main.c (start_event_loop): ...here. Now static.
9903
b7f999ae
SDJ
99042020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9905
9906 * MAINTAINERS: Update my email address.
9907
1085dfd4
KR
99082020-04-12 Kamil Rytarowski <n54@gmx.com>
9909
9910 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9911 IP_ALL.
9912
49d1d1f5
KR
99132020-04-12 Kamil Rytarowski <n54@gmx.com>
9914
9915 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9916 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9917
b4848d2a
KR
99182020-04-12 Kamil Rytarowski <n54@gmx.com>
9919
9920 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9921 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9922
51c133d5
KR
99232020-04-12 Kamil Rytarowski <n54@gmx.com>
9924
9925 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9926
54b8cbd0
KR
99272020-04-11 Kamil Rytarowski <n54@gmx.com>
9928
9929 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9930 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9931 (nbsd_nat_target::info_proc): New functions.
9932 * nbsd-nat.c (kinfo_get_vmmap): New function.
9933 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9934 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9935 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9936 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9937 functions.
9938 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9939 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9940 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9941 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9942 (KINFO_VME_FLAG_GROWS_DOWN): New.
9943
cf83625d
AS
99442020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9945
9946 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9947 bit shift.
9948
0c4311ab
TT
99492020-04-10 Tom Tromey <tromey@adacore.com>
9950
9951 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9952
3e65b3e9
TT
99532020-04-10 Tom Tromey <tromey@adacore.com>
9954
9955 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9956 separate debug files.
9957
13302e95
HD
99582020-04-10 Hannes Domani <ssbssa@yahoo.de>
9959
9960 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9961 Move to...
9962 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9963 ... here.
9964 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9965 Check for STATUS_WX86_BREAKPOINT.
9966 (windows_nat_target::wait): Same.
9967
bdfc1e8a
TV
99682020-04-10 Tom de Vries <tdevries@suse.de>
9969
9970 PR cli/25808
9971 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9972
f4460aec
SM
99732020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9974
9975 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9976 (Write After Approval): Remove Tom de Vries.
9977
a25198bb
BE
99782020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9979
9980 revert partially:
9981 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9982
aac66a4c
SM
9983 * buildsym.c (record_line): Fix undefined behavior and preserve
9984 lines at eof.
a25198bb 9985
206c98a6
KR
99862020-04-09 Kamil Rytarowski <n54@gmx.com>
9987
9988 * auxv.h (svr4_auxv_parse): New.
9989 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9990 and generic_auxv_parse.
9991 (svr4_auxv_parse): Add.
9992 * obsd-tdep.c: Include "auxv.h".
9993 (obsd_auxv_parse): Remove.
9994 (obsd_init_abi): Remove comment.
9995 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9996 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9997 * nbsd-tdep.c: Include "auxv.h".
9998 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9999
71fbdbaf
TT
100002020-04-08 Tom Tromey <tromey@adacore.com>
10001
10002 * nat/windows-nat.h (last_wait_event): Don't declare.
10003 (wait_for_debug_event): Update comment.
10004 * nat/windows-nat.c (last_wait_event): Now static.
10005
2c1d95e8
TT
100062020-04-08 Tom Tromey <tromey@adacore.com>
10007
10008 * windows-nat.c (wait_for_debug_event): Move to
10009 nat/windows-nat.c.
10010 * nat/windows-nat.h (wait_for_debug_event): Declare.
10011 * nat/windows-nat.c (wait_for_debug_event): Move from
10012 windows-nat.c. No longer static.
10013
d2977bc4
TT
100142020-04-08 Tom Tromey <tromey@adacore.com>
10015
10016 * windows-nat.c (get_windows_debug_event): Use
10017 fetch_pending_stop.
10018 * nat/windows-nat.h (fetch_pending_stop): Declare.
10019 * nat/windows-nat.c (fetch_pending_stop): New function.
10020
e758e19c
TT
100212020-04-08 Tom Tromey <tromey@adacore.com>
10022
10023 * windows-nat.c (windows_continue): Use matching_pending_stop and
10024 continue_last_debug_event.
10025 * nat/windows-nat.h (matching_pending_stop)
10026 (continue_last_debug_event): Declare.
10027 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10028 (matching_pending_stop, continue_last_debug_event): New
10029 functions.
10030
8d30e395
TT
100312020-04-08 Tom Tromey <tromey@adacore.com>
10032
10033 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10034 (handle_exception_result): Move to nat/windows-nat.h.
10035 (DEBUG_EXCEPTION_SIMPLE): Remove.
10036 (windows_nat::handle_ms_vc_exception): New function.
10037 (handle_exception): Move to nat/windows-nat.c.
10038 (get_windows_debug_event): Update.
10039 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10040 nat/windows-nat.c.
10041 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10042 (handle_exception_result): Move from windows-nat.c.
10043 (handle_exception): Declare.
10044 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10045 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10046 windows-nat.c.
10047
29de418d
TT
100482020-04-08 Tom Tromey <tromey@adacore.com>
10049
10050 * windows-nat.c (exception_count, event_count): Remove.
10051 (handle_exception, get_windows_debug_event)
10052 (do_initial_windows_stuff): Update.
10053
a816ba18
TT
100542020-04-08 Tom Tromey <tromey@adacore.com>
10055
10056 * windows-nat.c (windows_nat::handle_load_dll)
10057 (windows_nat::handle_unload_dll): Rename. No longer static.
10058 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10059 Declare.
10060
a00caa12
TT
100612020-04-08 Tom Tromey <tromey@adacore.com>
10062
10063 * complaints.h (stop_whining): Declare at top-level.
10064 (complaint): Don't declare stop_whining.
10065
d41b524f
TT
100662020-04-08 Tom Tromey <tromey@adacore.com>
10067
10068 * windows-nat.c (windows_nat::handle_output_debug_string):
10069 Rename. No longer static.
10070 * nat/windows-nat.h (handle_output_debug_string): Declare.
10071
3c76026d
TT
100722020-04-08 Tom Tromey <tromey@adacore.com>
10073
10074 * windows-nat.c (current_process_handle, current_process_id)
10075 (main_thread_id, last_sig, current_event, last_wait_event)
10076 (current_windows_thread, desired_stop_thread_id, pending_stops)
10077 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10078 (display_selectors, fake_create_process)
10079 (get_windows_debug_event): Update.
10080 * nat/windows-nat.h (current_process_handle, current_process_id)
10081 (main_thread_id, last_sig, current_event, last_wait_event)
10082 (current_windows_thread, desired_stop_thread_id, pending_stops)
10083 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10084 * nat/windows-nat.c (current_process_handle, current_process_id)
10085 (main_thread_id, last_sig, current_event, last_wait_event)
10086 (current_windows_thread, desired_stop_thread_id, pending_stops)
10087 (siginfo_er): New globals. Move from windows-nat.c.
10088
9d8679cc
TT
100892020-04-08 Tom Tromey <tromey@adacore.com>
10090
10091 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10092 (handle_load_dll): Update.
10093 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10094
28688adf
TT
100952020-04-08 Tom Tromey <tromey@adacore.com>
10096
10097 * windows-nat.c (enum thread_disposition_type): Move to
10098 nat/windows-nat.h.
10099 (windows_nat::thread_rec): Rename from thread_rec. No longer
10100 static.
10101 (windows_add_thread, windows_nat_target::fetch_registers)
10102 (windows_nat_target::store_registers, handle_exception)
10103 (windows_nat_target::resume, get_windows_debug_event)
10104 (windows_nat_target::get_tib_address)
10105 (windows_nat_target::thread_name)
10106 (windows_nat_target::thread_alive): Update.
10107 * nat/windows-nat.h (enum thread_disposition_type): Move from
10108 windows-nat.c.
10109 (thread_rec): Declare.
10110
4834dad0
TT
101112020-04-08 Tom Tromey <tromey@adacore.com>
10112
10113 * windows-nat.c: Add "using namespace".
10114 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10115 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10116
65bafd5b
TT
101172020-04-08 Tom Tromey <tromey@adacore.com>
10118
10119 * nat/windows-nat.h (struct windows_thread_info): Declare
10120 destructor.
10121 * nat/windows-nat.c (~windows_thread_info): New.
10122
0a4afda3
TT
101232020-04-08 Tom Tromey <tromey@adacore.com>
10124
10125 PR gdb/22992
10126 * windows-nat.c (current_event): Update comment.
10127 (last_wait_event, desired_stop_thread_id): New globals.
10128 (struct pending_stop): New.
10129 (pending_stops): New global.
10130 (windows_nat_target) <stopped_by_sw_breakpoint>
10131 <supports_stopped_by_sw_breakpoint>: New methods.
10132 (windows_fetch_one_register): Add assertions. Adjust PC.
10133 (windows_continue): Handle pending stops. Suspend other threads
10134 when stepping. Use last_wait_event
10135 (wait_for_debug_event): New function.
10136 (get_windows_debug_event): Use wait_for_debug_event. Handle
10137 pending stops. Queue spurious stops.
10138 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10139 (windows_nat_target::kill): Use wait_for_debug_event.
10140 * nat/windows-nat.h (struct windows_thread_info)
10141 <stopped_at_software_breakpoint>: New field.
10142 * nat/windows-nat.c (windows_thread_info::resume): Clear
10143 stopped_at_software_breakpoint.
10144
8e61ebec
TT
101452020-04-08 Tom Tromey <tromey@adacore.com>
10146
10147 * windows-nat.c (enum thread_disposition_type): New.
10148 (thread_rec): Replace "get_context" parameter with "disposition";
10149 change type.
10150 (windows_add_thread, windows_nat_target::fetch_registers)
10151 (windows_nat_target::store_registers, handle_exception)
10152 (windows_nat_target::resume, get_windows_debug_event)
10153 (windows_nat_target::get_tib_address)
10154 (windows_nat_target::thread_name)
10155 (windows_nat_target::thread_alive): Update.
10156
98a03287
TT
101572020-04-08 Tom Tromey <tromey@adacore.com>
10158
10159 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10160 (windows_continue): Use windows_continue::resume.
10161 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10162 resume>: Declare new methods.
10163 * nat/windows-nat.c: New file.
10164 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10165
7c7411bc
TT
101662020-04-08 Tom Tromey <tromey@adacore.com>
10167
10168 * windows-nat.c (windows_add_thread, windows_delete_thread)
10169 (windows_nat_target::fetch_registers)
10170 (windows_nat_target::store_registers, fake_create_process)
10171 (windows_nat_target::resume, windows_nat_target::resume)
10172 (get_windows_debug_event, windows_nat_target::wait)
10173 (windows_nat_target::pid_to_str)
10174 (windows_nat_target::get_tib_address)
10175 (windows_nat_target::get_ada_task_ptid)
10176 (windows_nat_target::thread_name)
10177 (windows_nat_target::thread_alive): Use lwp, not tid.
10178
2950fdf7
TT
101792020-04-08 Tom Tromey <tromey@adacore.com>
10180
10181 * windows-nat.c (handle_exception)
10182 (windows_nat_target::thread_name): Update.
10183 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10184 <name>: Now unique_xmalloc_ptr.
10185
62fe396b
TT
101862020-04-08 Tom Tromey <tromey@adacore.com>
10187
10188 * windows-nat.c (thread_rec)
10189 (windows_nat_target::fetch_registers): Update.
10190 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10191 Update comment.
10192 <debug_registers_changed, reload_context>: Now bool.
10193
e9534bd2
TT
101942020-04-08 Tom Tromey <tromey@adacore.com>
10195
10196 * windows-nat.c (windows_add_thread): Use new.
10197 (windows_init_thread_list, windows_delete_thread): Use delete.
10198 (get_windows_debug_event): Update.
10199 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10200 destructor, and initializers.
10201
ae1f8880
TT
102022020-04-08 Tom Tromey <tromey@adacore.com>
10203
10204 * windows-nat.c (struct windows_thread_info): Remove.
10205 * nat/windows-nat.h: New file.
10206
55a1e039
TT
102072020-04-08 Tom Tromey <tromey@adacore.com>
10208
10209 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10210 (thread_rec, windows_add_thread, windows_delete_thread)
10211 (windows_continue): Update.
10212
93366324
TT
102132020-04-08 Tom Tromey <tromey@adacore.com>
10214
10215 * windows-nat.c (struct windows_thread_info): Remove typedef.
10216 (thread_head): Remove.
10217 (thread_list): New global.
10218 (thread_rec, windows_add_thread, windows_init_thread_list)
10219 (windows_delete_thread, windows_continue): Update.
10220
0f2265e2
SM
102212020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10222
10223 * windows-tdep.h (windows_init_abi): Add comment.
10224 (cygwin_init_abi): New declaration.
10225 * windows-tdep.c: Split signal enumeration in two, one for
10226 Windows and one for Cygwin.
10227 (windows_gdb_signal_to_target): Only deal with signal of the
10228 Windows OS ABI.
10229 (cygwin_gdb_signal_to_target): New function.
10230 (windows_init_abi): Rename to windows_init_abi_common, don't set
10231 gdb_signal_to_target gdbarch method. Add new new function with
10232 this name.
10233 (cygwin_init_abi): New function.
10234 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10235 comment. Don't call windows_init_abi.
10236 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10237 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10238 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10239 i386_windows_init_abi_common, don't call windows_init_abi. Add
10240 a new function of this name.
10241 (i386_cygwin_init_abi): New function.
10242 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10243 OS ABI Cygwin.
10244
3810f182
SM
102452020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10246
10247 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10248 parameter.c.
10249 (dwarf2_read_gdb_index): Update.
10250
063f8e80
KR
102512020-04-07 Kamil Rytarowski <n54@gmx.com>
10252
10253 * nbsd-tdep.c: Include "objfiles.h".
10254 (nbsd_skip_solib_resolver): New.
10255 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10256
85a9510c 102572020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10258
10259 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10260 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10261 with DW_LLE_base_addressx are being emitted in DWARFv5.
10262 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10263 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10264 unsigned integer.
10265
9fc3eaae 102662020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10267
10268 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10269 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10270 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10271 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10272 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10273 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10274 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10275
10276
41144253 102772020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10278
10279 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10280 (read_loclist_index): New function definition.
10281 (lookup_loclist_base): New function definition.
10282 (read_loclist_header): New function definition.
10283 (dwarf2_cu): Add loclist_base and loclist_header field.
10284 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10285 (read_full_die_1): Read the value of DW_AT_loclists_base.
10286 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10287 (read_attribute_value): Handle DW_FORM_loclistx.
10288 (skip_one_die): Handle DW_FORM_loclistx.
10289 (loclist_header): New structure declaration.
10290 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10291
9f4e76a4
SM
102922020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10293
10294 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10295 constructor. Remove `addr` parameter from other constructor and
10296 add `per_cu` parameter.
10297 * dwarf2/read.c (create_partial_symtab): Update.
10298
25c11aca
TV
102992020-04-07 Tom de Vries <tdevries@suse.de>
10300
10301 PR symtab/25796
10302 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10303 (partial_die_info::fixup): Inherit has_const_value.
10304
5707e24b
TV
103052020-04-07 Tom de Vries <tdevries@suse.de>
10306
10307 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10308 symbols without address.
10309
05f00e22
KR
103102020-04-06 Kamil Rytarowski <n54@gmx.com>
10311
10312 * nbsd-nat.h (struct thread_info): Add forward declaration.
10313 (nbsd_nat_target::thread_alive): Add.
10314 (nbsd_nat_target::thread_name): Likewise.
10315 (nbsd_nat_target::update_thread_list): Likewise.
10316 (update_thread_list::post_attach): Likewise.
10317 (post_attach::pid_to_str): Likewise.
10318 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10319 (nbsd_thread_lister): Add.
10320 (nbsd_nat_target::thread_alive): Likewise.
10321 (nbsd_nat_target::thread_name): Likewise.
10322 (nbsd_add_threads): Likewise.
10323 (update_thread_list::post_attach): Likewise.
10324 (nbsd_nat_target::update_thread_list): Likewise.
10325 (post_attach::pid_to_str): Likewise.
10326
6ee448cc
TT
103272020-04-06 Tom Tromey <tromey@adacore.com>
10328
10329 * ada-valprint.c (print_variant_part): Extract the variant field.
10330 (print_field_values): Use the field as the outer value when
10331 recursing.
10332
dea34e8c
TT
103332020-04-06 Tom Tromey <tromey@adacore.com>
10334
10335 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10336 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10337 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10338 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10339 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10340
93689ce9
TT
103412020-04-06 Tom Tromey <tromey@adacore.com>
10342
10343 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10344 TYPE_CODE_ERROR.
10345
79743962
KR
103462020-04-06 Kamil Rytarowski <n54@gmx.com>
10347
10348 * nbsd-tdep.c: Include "gdbarch.h".
10349 Define enum with NetBSD signal numbers.
10350 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10351 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10352 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10353 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10354 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10355 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10356 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10357 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10358 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10359 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10360 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10361 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10362
9e7c9a03
HD
103632020-04-03 Hannes Domani <ssbssa@yahoo.de>
10364
10365 PR gdb/25325
10366 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10367
d9e49b61
TT
103682020-04-03 Tom Tromey <tromey@adacore.com>
10369
10370 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10371 Read constant block.
10372
e0fc5c3f
SM
103732020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10374
10375 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10376 (gdb_bfd_get_full_section_contents): New declaration.
10377 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10378 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10379 gdb_bfd_get_full_section_contents.
10380
e2ff18a0
SM
103812020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10382
10383 * exec.c (build_section_table): Replace internal_error with
10384 gdb_assert.
10385 (section_table_xfer_memory_partial): Likewise.
10386 * mdebugread.c (parse_partial_symbols): Likewise.
10387 * psymtab.c (lookup_partial_symbol): Likewise.
10388 * utils.c (wrap_here): Likewise.
10389
0830d301
TT
103902020-04-02 Tom Tromey <tromey@adacore.com>
10391
10392 * f-lang.c (build_fortran_types): Use arch_type to initialize
10393 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10394
e7da7f8f
TT
103952020-04-02 Tom Tromey <tromey@adacore.com>
10396
10397 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10398 of attributes.
10399
c90d28ac
AB
104002020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10401 Bernd Edlinger <bernd.edlinger@hotmail.de>
10402 Tom Tromey <tromey@adacore.com>
10403
10404 * buildsym.c (buildsym_compunit::record_line): Remove
10405 deduplication code.
10406
1aa98955
TV
104072020-04-02 Tom de Vries <tdevries@suse.de>
10408
10409 PR ada/24671
10410 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10411
d3214198
TV
104122020-04-02 Tom de Vries <tdevries@suse.de>
10413
10414 * dwarf2/read.c (dwarf2_gdb_index_functions,
10415 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10416 NULL.
10417 * psymtab.c (psym_lookup_global_symbol_language): New function.
10418 (psym_functions): Init psym_lookup_global_symbol_language with
10419 psym_lookup_global_symbol_language.
10420 * symfile-debug.c (debug_sym_quick_functions): Init
10421 lookup_global_symbol_language with NULL.
10422 * symfile.c (set_initial_language): Remove fixme comment.
10423 * symfile.h (struct quick_symbol_functions): Add
10424 lookup_global_symbol_language.
10425 * symtab.c (find_quick_global_symbol_language): New function.
10426 (find_main_name): Use find_quick_global_symbol_language.
10427
2836752f
SM
104282020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10429
10430 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10431
64dc2d4b
BE
104322020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10433
10434 * buildsym.c (record_line): Fix undefined behavior and preserve
10435 lines at eof.
10436
bbe3dc41
BE
104372020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10438
10439 * buildsym.c (record_line): Fix the resizing condition.
10440
6b4a335b
TT
104412020-04-01 Tom Tromey <tom@tromey.com>
10442
10443 * value.h (value_literal_complex): Add comment.
10444 * valops.c (value_literal_complex): Refer to value.h.
10445
3638a098
TT
104462020-04-01 Tom Tromey <tom@tromey.com>
10447
10448 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10449 (scalar_type): New rule, from typebase.
10450 (typebase): Use scalar_type. Recognize complex types.
10451 (field_name): Handle FLOAT_KEYWORD.
10452 (ident_tokens): Add _Complex and __complex__.
10453
c34e8714
TT
104542020-04-01 Tom Tromey <tom@tromey.com>
10455
10456 PR exp/25299:
10457 * valarith.c (promotion_type, complex_binop): New functions.
10458 (scalar_binop): Handle complex numbers. Use promotion_type.
10459 (value_pos, value_neg, value_complement): Handle complex numbers.
10460
fa649bb7
TT
104612020-04-01 Tom Tromey <tom@tromey.com>
10462
10463 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10464 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10465 (parse_number): Handle complex numbers.
10466
981c08ce
TT
104672020-04-01 Tom Tromey <tom@tromey.com>
10468
10469 * c-valprint.c (c_decorations): Change complex suffix to "i".
10470
4c99290d
TT
104712020-04-01 Tom Tromey <tom@tromey.com>
10472
10473 * valprint.c (generic_value_print_complex): Use accessors.
10474 * value.h (value_real_part, value_imaginary_part): Declare.
10475 * valops.c (value_real_part, value_imaginary_part): New
10476 functions.
10477 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10478
5b930b45
TT
104792020-04-01 Tom Tromey <tom@tromey.com>
10480
10481 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10482 (read_range_type): Update.
10483 * mdebugread.c (basic_type): Update.
10484 * go-lang.c (build_go_types): Use init_complex_type.
10485 * gdbtypes.h (struct main_type) <complex_type>: New member.
10486 (init_complex_type): Update.
10487 (arch_complex_type): Don't declare.
10488 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10489 Make name if none given. Use alloc_type_copy. Look for cached
10490 complex type.
10491 (arch_complex_type): Remove.
10492 (gdbtypes_post_init): Use init_complex_type.
10493 * f-lang.c (build_fortran_types): Use init_complex_type.
10494 * dwarf2/read.c (read_base_type): Update.
10495 * d-lang.c (build_d_types): Use init_complex_type.
10496 * ctfread.c (read_base_type): Update.
10497
53cccef1
TBA
104982020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10499
10500 * infrun.c (stop_all_threads): Update assertion, plus when
10501 stopping threads, take into account that we might be trying
10502 to stop an all-stop target.
10503 (stop_waiting): Call 'stop_all_threads' if there exists a
10504 non-stop target.
10505
a0714d30
TBA
105062020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10507
10508 * target.h (exists_non_stop_target): New function declaration.
10509 * target.c (exists_non_stop_target): New function.
10510
60e22c1e
HD
105112020-04-01 Hannes Domani <ssbssa@yahoo.de>
10512
10513 PR gdb/24789
10514 * eval.c (is_integral_or_integral_reference): New function.
10515 (evaluate_subexp_standard): Allow integer references in
10516 pointer arithmetic.
10517
e139a727
TBA
105182020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10519
10520 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10521 check for no ptid in the stop reply when the target is non-stop.
10522
e0802d59
TT
105232020-04-01 Tom Tromey <tromey@adacore.com>
10524
10525 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10526 "name" parameter to rvalue reference. Initialize m_name_holder.
10527 <lookup_name_info>: New overloads.
10528 <name>: Return gdb::string_view.
10529 <c_str>: New method.
10530 <make_ignore_params>: Update.
10531 <search_name_hash>: Update.
10532 <language_lookup_name>: Return const char *.
10533 <m_name>: Change type.
10534 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10535 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10536 (lookup_name_info::match_any): Update.
10537 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10538 Update.
10539 * minsyms.c (linkage_name_str): Update.
10540 * language.c (default_symbol_name_matcher): Update.
10541 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10542 Update.
10543 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10544 (ada_lookup_name_info::ada_lookup_name_info): Update.
10545 (literal_symbol_name_matcher): Update.
10546
8c072cb6
TT
105472020-04-01 Tom Tromey <tromey@adacore.com>
10548
10549 * psymtab.c (psymtab_search_name): Remove function.
10550 (psym_lookup_symbol): Create search name and lookup name here.
10551 (lookup_partial_symbol): Remove "name" parameter; add
10552 lookup_name.
10553 (psym_expand_symtabs_for_function): Update.
10554
6f29a534
TT
105552020-03-31 Joel Jones <joelkevinjones@gmail.com>
10556
10557 PR tui/25597:
10558 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10559
af62665e
TT
105602020-03-31 Tom Tromey <tromey@adacore.com>
10561
10562 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10563 memcpy.
10564
d1a89da5
NC
105652020-03-30 Nelson Chu <nelson.chu@sifive.com>
10566
10567 * features/riscv/32bit-csr.xml: Regenerated.
10568 * features/riscv/64bit-csr.xml: Regenerated.
10569
d8af9068
TT
105702020-03-30 Tom Tromey <tromey@adacore.com>
10571
10572 * ada-valprint.c (print_variant_part): Update.
10573 * ada-lang.h (ada_which_variant_applies): Update.
10574 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10575 outer_valaddr parameters; replace with "outer" value parameter.
10576 (to_fixed_variant_branch_type): Update.
10577
227c0bf4
PFC
105782020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10579
10580 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10581 <list>. Remove inclusion of observable.h.
10582 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10583 (struct arch_lwp_info): New struct.
10584 (class ppc_linux_dreg_interface): New class.
10585 (struct ppc_linux_process_info): New struct.
10586 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10587 <low_new_clone, low_forget_process, low_prepare_to_resume>
10588 <copy_thread_dreg_state, mark_thread_stale>
10589 <mark_debug_registers_changed, register_hw_breakpoint>
10590 <clear_hw_breakpoint, register_wp, clear_wp>
10591 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10592 <num_memory_accesses, get_trigger_type>
10593 <create_watchpoint_request, hwdebug_point_cmp>
10594 <init_arch_lwp_info, get_arch_lwp_info>
10595 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10596 methods.
10597 <struct ptid_hash>: New inner struct.
10598 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10599 members.
10600 (saved_dabr_value, hwdebug_info, max_slots_number)
10601 (struct hw_break_tuple, struct thread_points, ppc_threads)
10602 (have_ptrace_hwdebug_interface)
10603 (hwdebug_find_thread_points_by_tid)
10604 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10605 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10606 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10607 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10608 use m_dreg_interface.
10609 (hwdebug_point_cmp): Change to...
10610 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10611 reference arguments instead of pointers.
10612 (ppc_linux_nat_target::ranged_break_num_registers): Use
10613 m_dreg_interface.
10614 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10615 m_dreg_interface. Call register_hw_breakpoint.
10616 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10617 m_dreg_interface. Call clear_hw_breakpoint.
10618 (get_trigger_type): Change to...
10619 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10620 comment.
10621 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10622 use m_dreg_interface. Call register_hw_breakpoint.
10623 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10624 use m_dreg_interface. Call clear_hw_breakpoint.
10625 (can_use_watchpoint_cond_accel): Change to...
10626 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10627 method. Update comment, use m_dreg_interface and
10628 m_process_info.
10629 (calculate_dvc): Change to...
10630 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10631 m_dreg_interface.
10632 (num_memory_accesses): Change to...
10633 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10634 (check_condition): Change to...
10635 (ppc_linux_nat_target::check_condition): ...this method.
10636 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10637 comment, use m_dreg_interface.
10638 (create_watchpoint_request): Change to...
10639 (ppc_linux_nat_target::create_watchpoint_request): ...this
10640 method. Use m_dreg_interface.
10641 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10642 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10643 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10644 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10645 (ppc_linux_nat_target::low_forget_process)
10646 (ppc_linux_nat_target::low_new_fork)
10647 (ppc_linux_nat_target::low_new_clone)
10648 (ppc_linux_nat_target::low_delete_thread)
10649 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10650 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10651 only call mark_thread_stale.
10652 (ppc_linux_thread_exit): Remove.
10653 (ppc_linux_nat_target::stopped_data_address): Change to...
10654 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10655 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10656 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10657 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10658 comment. Call low_stopped_data_address.
10659 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10660 m_dreg_interface.
10661 (ppc_linux_nat_target::masked_watch_num_registers): Use
10662 m_dreg_interface.
10663 (ppc_linux_nat_target::copy_thread_dreg_state)
10664 (ppc_linux_nat_target::mark_thread_stale)
10665 (ppc_linux_nat_target::mark_debug_registers_changed)
10666 (ppc_linux_nat_target::register_hw_breakpoint)
10667 (ppc_linux_nat_target::clear_hw_breakpoint)
10668 (ppc_linux_nat_target::register_wp)
10669 (ppc_linux_nat_target::clear_wp)
10670 (ppc_linux_nat_target::init_arch_lwp_info)
10671 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10672 (_initialize_ppc_linux_nat): Remove observer callback.
10673
4db10d8f
PFC
106742020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10675
10676 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10677 (ppc_linux_nat_target::auxv_parse)
10678 (ppc_linux_nat_target::read_description)
10679 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10680 Move up.
10681
1310c1b0
PFC
106822020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10683
10684 * linux-nat.h (low_new_clone): New method.
10685 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10686
69b037c3
SM
106872020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10688
10689 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10690 (dbx_expand_psymtab): ... this.
10691 (start_psymtab): Update.
10692 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10693 (mdebug_expand_psymtab): ... this.
10694 (parse_partial_symbols): Update.
10695 (new_psymtab): Update.
10696 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10697 (xcoff_expand_psymtab): ... this.
10698 (xcoff_start_psymtab): Update.
10699
48993951
SM
107002020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10701
10702 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10703 <expand_dependencies>: ... this.
10704 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10705 (partial_symtab::expand_dependencies): ... this.
10706 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10707 Update.
10708 (dwarf2_psymtab::expand_psymtab): Update.
10709 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10710 * mdebugread.c (psymtab_to_symtab_1): Update.
10711 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10712
3ad83046
SM
107132020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10714
10715 * psympriv.h (discard_psymtab): Remove.
10716 * dbxread.c (dbx_end_psymtab): Update.
10717 * xcoffread.c (xcoff_end_psymtab): Update.
10718
4d1b9ab6
TT
107192020-03-28 Tom Tromey <tom@tromey.com>
10720
10721 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10722 comment.
10723
f1749218
TT
107242020-03-28 Tom Tromey <tom@tromey.com>
10725
10726 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10727
ebea7626
HD
107282020-03-27 Hannes Domani <ssbssa@yahoo.de>
10729
10730 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10731
a879b4d5
JB
107322020-03-26 John Baldwin <jhb@FreeBSD.org>
10733
10734 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10735
0826b30a
TT
107362020-03-26 Tom Tromey <tom@tromey.com>
10737
10738 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10739 (mark_common_block_symbol_computed, read_tag_string_type)
10740 (attr_to_dynamic_prop, read_subrange_type): Update.
10741 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10742 to be methods on struct attribute.
10743 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10744 (read_call_site_scope, partial_die_info::read)
10745 (partial_die_info::read, lookup_die_type, follow_die_ref):
10746 Update.
10747 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10748 from dwarf2_get_ref_die_offset.
10749 (attribute::constant_value): New method, from
10750 dwarf2_get_attr_constant_value.
10751 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10752 Declare method.
10753 <constant_value>: New method.
10754
2b2558bf
TT
107552020-03-26 Tom Tromey <tom@tromey.com>
10756
10757 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10758 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10759 (dwarf_type_encoding_name): Move to stringify.c.
10760 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10761 * dwarf2/stringify.c: New file.
10762 * dwarf2/stringify.h: New file.
10763
eeb64781
TT
107642020-03-26 Tom Tromey <tom@tromey.com>
10765
10766 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10767 Rewrite.
10768
a39fdb41
TT
107692020-03-26 Tom Tromey <tom@tromey.com>
10770
10771 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10772 methods.
10773 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10774 (lookup_ranges_base): Likewise.
10775 (read_cutu_die_from_dwo, read_full_die_1): Update.
10776
436c571c
TT
107772020-03-26 Tom Tromey <tom@tromey.com>
10778
10779 * dwarf2/read.c (read_import_statement, read_file_scope)
10780 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10781 (read_lexical_block_scope, read_call_site_scope)
10782 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10783 (handle_struct_member_die, process_structure_scope)
10784 (update_enumeration_type_from_children)
10785 (process_enumeration_scope, read_array_type, read_common_block)
10786 (read_namespace, read_module, read_subroutine_type): Update.
10787 (sibling_die): Remove.
10788
052c8bb8
TT
107892020-03-26 Tom Tromey <tom@tromey.com>
10790
10791 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10792 (build_type_psymtabs_reader, read_structure_type)
10793 (read_enumeration_type, read_full_die_1): Update.
10794 (dwarf2_attr_no_follow): Move to die.h.
10795 * dwarf2/die.h (struct die_info) <attr>: New method.
10796
2b24b6e4
TT
107972020-03-26 Tom Tromey <tom@tromey.com>
10798
10799 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10800 <base_address>: Now an optional.
10801 (dwarf2_find_base_address, dwarf2_rnglists_process)
10802 (dwarf2_ranges_process, fill_in_loclist_baton)
10803 (dwarf2_symbol_mark_computed): Update.
10804
c2d50fd0
TT
108052020-03-26 Tom Tromey <tom@tromey.com>
10806
10807 * dwarf2/read.c (struct die_info): Move to die.h.
10808 * dwarf2/die.h: New file.
10809
0df7ad3a
TT
108102020-03-26 Tom Tromey <tom@tromey.com>
10811
10812 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10813 * dwarf2/read.c
10814 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10815 Move to line-header.c.
10816 (read_checked_initial_length_and_offset, read_formatted_entries):
10817 Likewise.
10818 (dwarf_decode_line_header): Split into two.
10819 * dwarf2/line-header.c
10820 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10821 Move from read.c.
10822 (read_checked_initial_length_and_offset, read_formatted_entries):
10823 Likewise.
10824 (dwarf_decode_line_header): New function, split from read.c.
10825
86c0bb4c
TT
108262020-03-26 Tom Tromey <tom@tromey.com>
10827
10828 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10829 Declare method.
10830 * dwarf2/read.c (read_attribute_value): Update.
10831 (dwarf2_per_objfile::read_line_string): Rename from
10832 read_indirect_line_string.
10833 (read_formatted_entries): Update.
10834
2ef46c2f
TT
108352020-03-26 Tom Tromey <tom@tromey.com>
10836
10837 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10838 variable.
10839
4f9c1eda
TT
108402020-03-26 Tom Tromey <tom@tromey.com>
10841
10842 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10843 const.
10844 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10845 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10846 parameter const.
10847
5a0e026f
TT
108482020-03-26 Tom Tromey <tom@tromey.com>
10849
10850 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10851 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10852 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10853 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10854
8844c11b
TT
108552020-03-26 Tom Tromey <tom@tromey.com>
10856
10857 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10858 file_names_size, file_full_name, file_file_name>: Use const.
10859 <file_name_at, file_names>: Add const overload.
10860 * dwarf2/line-header.c (line_header::file_file_name)
10861 (line_header::file_full_name): Update.
10862
c90ec28a
TT
108632020-03-26 Tom Tromey <tom@tromey.com>
10864
10865 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10866 (macro_start_file, consume_improper_spaces)
10867 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10868 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10869 (dwarf_decode_macros): Move to macro.c.
10870 * dwarf2/macro.c: New file.
10871 * dwarf2/macro.h: New file.
10872 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10873
4f44ae6c
TT
108742020-03-26 Tom Tromey <tom@tromey.com>
10875
10876 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10877 method.
10878 * dwarf2/section.c: New method. From
10879 read_indirect_string_at_offset_from.
10880 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10881 (read_indirect_string_at_offset_from): Move to section.c.
10882 (read_indirect_string_at_offset): Rewrite.
10883 (read_indirect_line_string_at_offset): Remove.
10884 (read_indirect_string, read_indirect_line_string)
10885 (dwarf_decode_macro_bytes): Update.
10886
a0194fa8
TT
108872020-03-26 Tom Tromey <tom@tromey.com>
10888
10889 * dwarf2/section.h (struct dwarf2_section_info)
10890 <overload_complaint>: Declare.
10891 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10892 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10893 Rename from dwarf2_section_buffer_overflow_complaint.
10894 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10895 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10896
3d27bbdb
TT
108972020-03-26 Tom Tromey <tom@tromey.com>
10898
10899 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10900 Declare.
10901 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10902 Move from read.c.
10903 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10904 to section.c.
10905
9eac9650
TT
109062020-03-26 Tom Tromey <tom@tromey.com>
10907
10908 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10909
bf80d710
TT
109102020-03-26 Tom Tromey <tom@tromey.com>
10911
10912 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10913 "builder".
10914 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10915 parameter.
10916 (dwarf_decode_macros): Update.
10917
0314b390
TT
109182020-03-26 Tom Tromey <tom@tromey.com>
10919
10920 * dwarf2/read.c (read_attribute_value): Update.
10921 (read_indirect_string_from_dwz): Move to dwz.c; change into
10922 method.
10923 (dwarf_decode_macro_bytes): Update.
10924 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10925 * dwarf2/dwz.c: New file.
10926 * Makefile.in (COMMON_SFILES): Add dwz.c.
10927
9fda78b6
TT
109282020-03-26 Tom Tromey <tom@tromey.com>
10929
10930 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10931 * dwarf2/read.c: Add include.
10932 * dwarf2/index-write.c: Add include.
10933 * dwarf2/index-cache.c: Add include.
10934 * dwarf2/dwz.h: New file.
10935
33aa3c10
TT
109362020-03-25 Tom Tromey <tom@tromey.com>
10937
10938 * compile/compile-object-load.c (get_out_value_type): Mention
10939 correct symbol name in error message.
10940
d503b685
HD
109412020-03-25 Hannes Domani <ssbssa@yahoo.de>
10942
10943 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10944
7b1eff95
TV
109452020-03-25 Tom de Vries <tdevries@suse.de>
10946
10947 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10948 * symmisc.c (dump_symtab_1): Print user and includes fields.
10949 (maintenance_info_symtabs): Same.
10950
dd895392
AB
109512020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10952
10953 PR gdb/25534
10954 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10955 (riscv_regcache_cooked_write): New function.
10956 (riscv_push_dummy_call): Use new function.
10957 (riscv_return_value): Likewise.
10958
5ab2fbf1
SM
109592020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10960
10961 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10962 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10963 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10964 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10965 * infrun.c (follow_fork): Likewise.
10966 (follow_fork_inferior): Likewise.
10967 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10968 * linux-nat.h (class linux_nat_target): Likewise.
10969 * remote.c (class remote_target) <follow_fork>: Likewise.
10970 (remote_target::follow_fork): Likewise.
10971 * target-delegates.c: Re-generate.
10972 * target.c (default_follow_fork): Likewise.
10973 (target_follow_fork): Likewise.
10974 * target.h (struct target_ops) <follow_fork>: Likewise.
10975 (target_follow_fork): Likewise.
10976
a64fafb5
TV
109772020-03-24 Tom de Vries <tdevries@suse.de>
10978
10979 * psymtab.c (maintenance_info_psymtabs): Print user field.
10980
fe26d3a3
TT
109812020-03-20 Tom Tromey <tromey@adacore.com>
10982
10983 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10984 const.
10985 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10986 const.
10987
c884cc46
SM
109882020-03-20 Simon Marchi <simon.marchi@efficios.com>
10989
10990 * ptrace.m4: Don't check for ptrace declaration.
10991 * config.in: Re-generate.
10992 * configure: Re-generate.
10993 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10994 not defined.
10995
1ff700c2
KR
109962020-03-20 Kamil Rytarowski <n54@gmx.com>
10997
10998 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10999 `PTRACE_TYPE_RET'.
11000 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11001 * sparc-nat.c (gdb_ptrace): Likewise.
11002 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11003
f7d4f0b1
TT
110042020-03-20 Tom Tromey <tromey@adacore.com>
11005
11006 * c-exp.y (lex_one_token): Fix assert.
11007
f67210ff
TT
110082020-03-20 Tom Tromey <tromey@adacore.com>
11009
11010 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11011 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11012 strncpy call.
11013
1773be9e
TT
110142020-03-20 Tom Tromey <tromey@adacore.com>
11015
11016 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11017
70304be9
TT
110182020-03-20 Tom Tromey <tromey@adacore.com>
11019
11020 * ada-valprint.c (print_variant_part): Remove parameters; switch
11021 to value-based API.
11022 (print_field_values): Likewise.
11023 (ada_val_print_struct_union): Likewise.
11024 (ada_value_print_1): Update.
11025
9faa006d
KR
110262020-03-20 Kamil Rytarowski <n54@gmx.com>
11027
11028 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11029 nbsd_nat_target instead of inf_ptrace_target.
11030 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11031 nbsd_nat_target.
11032
4a90f062
KR
110332020-03-20 Kamil Rytarowski <n54@gmx.com>
11034
11035 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11036 it to the ptrace call.
11037 * (store_registers): Likewise.
11038
110392020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
11040
11041 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11042 it to the ptrace call.
11043 * (store_registers): Likewise.
11044
2d07da27
LM
110452020-03-19 Luis Machado <luis.machado@linaro.org>
11046
11047 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11048 valid, fetch vg value from ptrace.
11049
f09db380
KR
110502020-03-19 Kamil Rytarowski <n54@gmx.com>
11051 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11052 * inf-ptrace.c: Likewise.
11053 * (gdb_ptrace): Add.
11054 * (inf_ptrace_target::resume): Update.
11055 * (inf_ptrace_target::xfer_partial): Likewise.
11056 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11057 * (inf_ptrace_peek_poke): Update.
11058
fcc7376e
KR
110592020-03-19 Kamil Rytarowski <n54@gmx.com>
11060
11061 * x86-bsd-nat.c (gdb_ptrace): New.
11062 * (x86bsd_dr_set): Add new argument `ptid'.
11063 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11064 x86bsd_dr_set_addr): Update.
11065
cada5fc9
AB
110662020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11067
11068 * remote.c (remote_target::process_stop_reply): Handle events for
11069 all threads differently.
11070
19a2740f
AB
110712020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11072
11073 * completer.c (completion_tracker::remove_completion): Define new
11074 function.
11075 * completer.h (completion_tracker::remove_completion): Declare new
11076 function.
11077 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11078 when adding a C++ function symbol.
11079
724fd9ba
AB
110802020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11081
11082 * completer.c (completion_tracker::completion_hash_entry): Define
11083 new class.
11084 (advance_to_filename_complete_word_point): Call
11085 recompute_lowest_common_denominator.
11086 (completion_tracker::completion_tracker): Call discard_completions
11087 to setup the hash table.
11088 (completion_tracker::discard_completions): Allow for being called
11089 from the constructor, pass new equal function, and element deleter
11090 when constructing the hash table. Initialise new class member
11091 variables.
11092 (completion_tracker::maybe_add_completion): Remove use of
11093 m_entries_vec, and store more information into m_entries_hash.
11094 (completion_tracker::recompute_lcd_visitor): New function, most
11095 content taken from...
11096 (completion_tracker::recompute_lowest_common_denominator):
11097 ...here, this now just visits each item in the hash calling the
11098 above visitor.
11099 (completion_tracker::build_completion_result): Remove use of
11100 m_entries_vec, call recompute_lowest_common_denominator.
11101 * completer.h (completion_tracker::have_completions): Remove use
11102 of m_entries_vec.
11103 (completion_tracker::completion_hash_entry): Declare new class.
11104 (completion_tracker::recompute_lowest_common_denominator): Change
11105 function signature.
11106 (completion_tracker::recompute_lcd_visitor): Declare new function.
11107 (completion_tracker::m_entries_vec): Delete.
11108 (completion_tracker::m_entries_hash): Initialize to NULL.
11109 (completion_tracker::m_lowest_common_denominator_valid): New
11110 member variable.
11111 (completion_tracker::m_lowest_common_denominator_max_length): New
11112 member variable.
11113
5a82b8a1
KR
111142020-03-17 Kamil Rytarowski <n54@gmx.com>
11115
11116 * regformats/regdef.h: Put reg in gdb namespace.
11117
fb516a69
KR
111182020-03-17 Kamil Rytarowski <n54@gmx.com>
11119
11120 * i386-bsd-nat.c (gdb_ptrace): New.
11121 * (i386bsd_fetch_inferior_registers,
11122 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11123 * (i386bsd_fetch_inferior_registers,
11124 i386bsd_store_inferior_registers) Use gdb_ptrace.
11125
1c0aa1fb
KR
111262020-03-17 Kamil Rytarowski <n54@gmx.com>
11127
11128 * amd64-bsd-nat.c (gdb_ptrace): New.
11129 * (amd64bsd_fetch_inferior_registers,
11130 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11131 * (amd64bsd_fetch_inferior_registers,
11132 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11133
5ccd2fb7
KR
111342020-03-17 Kamil Rytarowski <n54@gmx.com>
11135
11136 * user-regs.c (user_reg::read): Rename to...
11137 (user_reg::xread): ...this.
11138 * (append_user_reg): Rename argument `read' to `xread'.
11139 * (user_reg_add_builtin): Likewise.
11140 * (user_reg_add): Likewise.
11141 * (value_of_user_reg): Likewise.
11142
2108a63a
KR
111432020-03-17 Kamil Rytarowski <n54@gmx.com>
11144
11145 * sparc-nat.c (gdb_ptrace): New.
11146 * sparc-nat.c (sparc_fetch_inferior_registers)
11147 (sparc_store_inferior_registers) Remove obsolete comment.
11148 * sparc-nat.c (sparc_fetch_inferior_registers)
11149 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11150 * sparc-nat.c (sparc_fetch_inferior_registers)
11151 (sparc_store_inferior_registers) Use gdb_ptrace.
11152
a225c9a8
KR
111532020-03-17 Kamil Rytarowski <n54@gmx.com>
11154
11155 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11156 it to the ptrace call.
11157 * sh-nbsd-nat.c (store_registers): Likewise.
11158
98097623
KR
111592020-03-17 Kamil Rytarowski <n54@gmx.com>
11160
11161 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11162 nbsd_nat_target instead of inf_ptrace_target.
11163 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11164 nbsd_nat_target.
11165
9e38d619
KR
111662020-03-17 Kamil Rytarowski <n54@gmx.com>
11167
11168 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11169
a2ecbe9f
KR
111702020-03-17 Kamil Rytarowski <n54@gmx.com>
11171
11172 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11173 <sys/sysctl.h>.
11174 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11175
58990295
TV
111762020-03-17 Tom de Vries <tdevries@suse.de>
11177
11178 PR gdb/23710
11179 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11180 fields.
11181 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11182 fields.
11183 (process_imported_unit_die): Skip import of c++ CUs.
11184
771dd3a8
TT
111852020-03-16 Tom Tromey <tom@tromey.com>
11186
11187 * p-valprint.c (pascal_object_print_value): Initialize
11188 base_value.
11189
817a7585
AK
111902020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11191 Shahab Vahedi <shahab@synopsys.com>
11192
11193 * Makefile.in: Add arch/arc.o
11194 * configure.tgt: Likewise.
11195 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11196 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 11197 (arc_read_description): New function to cache target descriptions.
817a7585
AK
11198 * arc-tdep.h (arc_read_description): Add proto type.
11199 * arch/arc.c: New file.
11200 * arch/arc.h: Likewise.
11201 * features/Makefile: Replace old target descriptions with new.
11202 * features/arc-arcompact.c: Remove.
11203 * features/arc-arcompact.xml: Likewise.
11204 * features/arc-v2.c: Likewise
11205 * features/arc-v2.xml: Likewise
11206 * features/arc/aux-arcompact.xml: New file.
11207 * features/arc/aux-v2.xml: Likewise.
11208 * features/arc/core-arcompact.xml: Likewise.
11209 * features/arc/core-v2.xml: Likewise.
11210 * features/arc/aux-arcompact.c: Generate.
11211 * features/arc/aux-v2.c: Likewise.
11212 * features/arc/core-arcompact.c: Likewise.
11213 * features/arc/core-v2.c: Likewise.
11214 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11215
67430cd0
TT
112162020-03-16 Tom Tromey <tromey@adacore.com>
11217
11218 PR gdb/25663:
11219 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11220 putting value into bcache.
11221
30efb6c7
SM
112222020-03-16 Simon Marchi <simon.marchi@efficios.com>
11223
11224 PR gdb/21500
11225 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11226 to...
11227 (amd64_windows_init_abi_common): ... this. Don't set size of
11228 long type.
11229 (amd64_windows_init_abi): New function.
11230 (amd64_cygwin_init_abi): New function.
11231 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11232 the Cygwin OS ABI.
11233 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11234 comment.
11235
8db52437
SM
112362020-03-16 Simon Marchi <simon.marchi@efficios.com>
11237
11238 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11239 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11240 (pe_import_directory_entry): New struct type.
11241 (is_linked_with_cygwin_dll): New function.
11242 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11243 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11244 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11245
5982a56a
SM
112462020-03-16 Simon Marchi <simon.marchi@efficios.com>
11247
11248 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11249 i386_cygwin_core_osabi_sniffer.
11250
7a1998df
SM
112512020-03-16 Simon Marchi <simon.marchi@efficios.com>
11252
11253 * i386-cygwin-tdep.c: Rename to...
11254 * i386-windows-tdep.c: ... this.
11255 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11256 i386-windows-tdep.c.
11257 * configure.tgt: Likewise.
11258
053205cc
SM
112592020-03-16 Simon Marchi <simon.marchi@efficios.com>
11260
11261 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11262 * osabi.c (gdb_osabi_names): Add "Windows".
11263 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11264 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11265 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11266 i386_cygwin_osabi_sniffer.
11267 (_initialize_i386_cygwin_tdep): Register OS ABI
11268 GDB_OSABI_WINDOWS for i386.
11269 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11270 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11271 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11272 for x86-64.
11273 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11274 when the target matches '*-*-mingw*'.
11275
fe4b2ee6
SM
112762020-03-16 Simon Marchi <simon.marchi@efficios.com>
11277
11278 * defs.h (enum gdb_osabi): Move to...
11279 * osabi.h (enum gdb_osabi): ... here.
11280 * gdbarch.sh: Include osabi.h in gdbarch.h.
11281 * gdbarch.h: Re-generate.
11282
cb9b645d
SM
112832020-03-16 Simon Marchi <simon.marchi@efficios.com>
11284
11285 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11286 function.
11287 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11288
3293bbaf
TT
112892020-03-14 Tom Tromey <tom@tromey.com>
11290
11291 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11292 for C++.
11293 (c_type_print_modifier): Likewise. Add "language" parameter.
11294 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11295 (c_type_print_base_1): Update.
11296 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11297 constants.
11298 * type-stack.c (type_stack::insert): Handle tp_atomic and
11299 tp_restrict.
11300 (type_stack::follow_type_instance_flags): Likewise.
11301 (type_stack::follow_types): Likewise. Merge type-following code.
11302 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11303 (space_identifier, cv_with_space_id)
11304 (const_or_volatile_or_space_identifier_noopt)
11305 (const_or_volatile_or_space_identifier): Remove.
11306 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11307 rules.
11308 (ptr_operator, typebase): Update.
11309 (enum token_flag) <FLAG_C>: New constant.
11310 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11311 "_Atomic".
11312 (lex_one_token): Handle FLAG_C.
11313
154151a6
KR
113142020-03-14 Kamil Rytarowski <n54@gmx.com>
11315
11316 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11317 it to the ptrace call.
11318 * m68k-bsd-nat.c (store_registers): Likewise.
11319
bc107784
KR
113202020-03-14 Kamil Rytarowski <n54@gmx.com>
11321
11322 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11323 gdb_byte *.
11324 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11325 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11326 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11327
01a80117
KR
113282020-03-14 Kamil Rytarowski <n54@gmx.com>
11329
11330 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11331 nbsd_nat_target instead of inf_ptrace_target.
11332 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11333 nbsd_nat_target.
11334
f90280ca
KR
113352020-03-14 Kamil Rytarowski <n54@gmx.com>
11336
11337 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11338 register_t.
11339
6def66f1
KR
113402020-03-14 Kamil Rytarowski <n54@gmx.com>
11341
11342 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11343 it to the ptrace call.
11344 * alpha-bsd-nat.c (store_registers): Likewise.
11345
66eaca97
KR
113462020-03-14 Kamil Rytarowski <n54@gmx.com>
11347
11348 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11349 includes.
11350 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11351 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11352 fill_fpregset): Likewise.
11353
4fed520b
KR
113542020-03-14 Kamil Rytarowski <n54@gmx.com>
11355
11356 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11357 nbsd_nat_target instead of inf_ptrace_target.
11358 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11359 nbsd_nat_target.
11360
2190cf06
KR
113612020-03-14 Kamil Rytarowski <n54@gmx.com>
11362
11363 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11364 register_t.
11365
75c56d3d
KR
113662020-03-14 Kamil Rytarowski <n54@gmx.com>
11367
11368 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11369 it to the ptrace call.
11370 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11371 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11372 * arm-nbsd-nat.c (store_register): Likewise.
11373 * arm-nbsd-nat.c (store_regs): Likewise.
11374 * arm-nbsd-nat.c (store_fp_register): Likewise.
11375 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11376
6018d381
KR
113772020-03-14 Kamil Rytarowski <n54@gmx.com>
11378
11379 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11380 nbsd_nat_target instead of inf_ptrace_target.
11381 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11382 nbsd_nat_target.
11383
013f99f0
KR
113842020-03-14 Kamil Rytarowski <n54@gmx.com>
11385
11386 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11387 it to the ptrace call.
11388 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11389
12753073
KR
113902020-03-14 Kamil Rytarowski <n54@gmx.com>
11391
6227b330
KR
11392 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11393 it to the ptrace call.
11394 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11395
113962020-03-14 Kamil Rytarowski <n54@gmx.com>
11397
11398 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11399 gdb_byte *.
12753073
KR
11400 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11401
d5be5fa4
KR
114022020-03-14 Kamil Rytarowski <n54@gmx.com>
11403
11404 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11405 instead of inf_ptrace_target.
11406 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11407 nbsd_nat_target.
11408
8110f842
KR
114092020-03-14 Kamil Rytarowski <n54@gmx.com>
11410
11411 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11412 register_t.
11413
52feded7
KR
114142020-03-14 Kamil Rytarowski <n54@gmx.com>
11415
11416 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11417 register_t.
11418
25567eee
KR
114192020-03-14 Kamil Rytarowski <n54@gmx.com>
11420
11421 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11422 register_t.
11423
426a9c18
TT
114242020-03-13 Tom Tromey <tom@tromey.com>
11425
11426 * value.h (val_print): Don't declare.
11427 * valprint.h (val_print_array_elements)
11428 (val_print_scalar_formatted, generic_val_print): Don't declare.
11429 * valprint.c (generic_val_print_array): Take a struct value.
11430 (generic_val_print_ptr, generic_val_print_memberptr)
11431 (generic_val_print_bool, generic_val_print_int)
11432 (generic_val_print_char, generic_val_print_complex)
11433 (generic_val_print): Remove.
11434 (generic_value_print): Update.
11435 (do_val_print): Remove unused parameters. Don't call
11436 la_val_print.
11437 (val_print): Remove.
11438 (common_val_print): Update. Don't call value_check_printable.
11439 (val_print_scalar_formatted, val_print_array_elements): Remove.
11440 * rust-lang.c (rust_val_print): Remove.
11441 (rust_language_defn): Update.
11442 * p-valprint.c (pascal_val_print): Remove.
11443 (pascal_value_print_inner): Update.
11444 (pascal_object_print_val_fields, pascal_object_print_val):
11445 Remove.
11446 (pascal_object_print_static_field): Update.
11447 * p-lang.h (pascal_val_print): Don't declare.
11448 * p-lang.c (pascal_language_defn): Update.
11449 * opencl-lang.c (opencl_language_defn): Update.
11450 * objc-lang.c (objc_language_defn): Update.
11451 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11452 * m2-lang.h (m2_val_print): Don't declare.
11453 * m2-lang.c (m2_language_defn): Update.
11454 * language.h (struct language_defn) <la_val_print>: Remove.
11455 * language.c (unk_lang_value_print_inner): Rename. Change
11456 argument types.
11457 (unknown_language_defn, auto_language_defn): Update.
11458 * go-valprint.c (go_val_print): Remove.
11459 * go-lang.h (go_val_print): Don't declare.
11460 * go-lang.c (go_language_defn): Update.
11461 * f-valprint.c (f_val_print): Remove.
11462 * f-lang.h (f_value_print): Don't declare.
11463 * f-lang.c (f_language_defn): Update.
11464 * d-valprint.c (d_val_print): Remove.
11465 * d-lang.h (d_value_print): Don't declare.
11466 * d-lang.c (d_language_defn): Update.
11467 * cp-valprint.c (cp_print_value_fields)
11468 (cp_print_value_fields_rtti, cp_print_value): Remove.
11469 (cp_print_static_field): Update.
11470 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11471 (c_val_print_struct, c_val_print_union, c_val_print_int)
11472 (c_val_print_memberptr, c_val_print): Remove.
11473 * c-lang.h (c_val_print_array, cp_print_value_fields)
11474 (cp_print_value_fields_rtti): Don't declare.
11475 * c-lang.c (c_language_defn, cplus_language_defn)
11476 (asm_language_defn, minimal_language_defn): Update.
11477 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11478 (ada_val_print_enum): Take a struct value.
11479 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11480 (ada_val_print): Remove.
11481 (ada_value_print_1): Update.
11482 (printable_val_type): Remove.
11483 * ada-lang.h (ada_val_print): Don't declare.
11484 * ada-lang.c (ada_language_defn): Update.
11485
42331a1e
TT
114862020-03-13 Tom Tromey <tom@tromey.com>
11487
11488 * valprint.c (do_val_print): Update.
11489 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11490 a struct value.
11491 (value_to_value_object_no_release): Declare.
11492 * python/py-value.c (value_to_value_object_no_release): New
11493 function.
11494 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11495 struct value.
11496 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11497 function.
11498 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11499 a struct value.
11500 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11501 Declare.
11502 (gdbscm_apply_val_pretty_printer): Take a struct value.
11503 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11504 value.
11505 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11506 value.
11507 * extension-priv.h (struct extension_language_ops)
11508 <apply_val_pretty_printer>: Take a struct value.
11509 * cp-valprint.c (cp_print_value): Create a struct value.
11510 (cp_print_value): Update.
11511
3a916a97
TT
115122020-03-13 Tom Tromey <tom@tromey.com>
11513
11514 * ada-valprint.c (print_field_values): Call common_val_print.
11515
b59eac37
TT
115162020-03-13 Tom Tromey <tom@tromey.com>
11517
11518 * ada-valprint.c (val_print_packed_array_elements): Remove
11519 bitoffset and val parameters. Call common_val_print.
11520 (ada_val_print_string): Remove offset, address, and original_value
11521 parameters.
11522 (ada_val_print_array): Update.
11523 (ada_value_print_array): New function.
11524 (ada_value_print_1): Call it.
11525
03371129
TT
115262020-03-13 Tom Tromey <tom@tromey.com>
11527
11528 * ada-valprint.c (ada_value_print): Use common_val_print.
11529
2e088f8b
TT
115302020-03-13 Tom Tromey <tom@tromey.com>
11531
11532 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11533
39ef85a8
TT
115342020-03-13 Tom Tromey <tom@tromey.com>
11535
11536 * ada-valprint.c (ada_value_print_num): New function.
11537 (ada_value_print_1): Use it.
11538
b9fa6e07
TT
115392020-03-13 Tom Tromey <tom@tromey.com>
11540
11541 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11542
416595d6
TT
115432020-03-13 Tom Tromey <tom@tromey.com>
11544
11545 * ada-valprint.c (ada_value_print_ptr): New function.
11546 (ada_value_print_1): Use it.
11547
5b5e15ec
TT
115482020-03-13 Tom Tromey <tom@tromey.com>
11549
11550 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11551 call common_val_print.
11552 (ada_val_print_1): Update.
11553 (ada_value_print_1): New function.
11554 (ada_value_print_inner): Rewrite.
11555
fbf54e75
TT
115562020-03-13 Tom Tromey <tom@tromey.com>
11557
11558 * cp-valprint.c (cp_print_value_fields): Update.
11559 (cp_print_value): New function.
11560
64b653ca
TT
115612020-03-13 Tom Tromey <tom@tromey.com>
11562
11563 * m2-valprint.c (m2_value_print_inner): Use
11564 cp_print_value_fields.
11565 * cp-valprint.c (cp_print_value_fields): New function.
11566 * c-valprint.c (c_value_print_struct): New function.
11567 (c_value_print_inner): Use c_value_print_struct.
11568 * c-lang.h (cp_print_value_fields): Declare.
11569
6999f067
TT
115702020-03-13 Tom Tromey <tom@tromey.com>
11571
11572 * c-valprint.c (c_value_print_array): New function.
11573 (c_value_print_inner): Use it.
11574
ce80b8bd
TT
115752020-03-13 Tom Tromey <tom@tromey.com>
11576
11577 * c-valprint.c (c_value_print_memberptr): New function.
11578 (c_value_print_inner): Use it.
11579
2faac269
TT
115802020-03-13 Tom Tromey <tom@tromey.com>
11581
11582 * c-valprint.c (c_value_print_int): New function.
11583 (c_value_print_inner): Use it.
11584
da3e2c29
TT
115852020-03-13 Tom Tromey <tom@tromey.com>
11586
11587 * c-valprint.c (c_value_print_ptr): New function.
11588 (c_value_print_inner): Use it.
11589
50836231
TT
115902020-03-13 Tom Tromey <tom@tromey.com>
11591
11592 * c-valprint.c (c_value_print_inner): Rewrite.
11593
4f412b6e
TT
115942020-03-13 Tom Tromey <tom@tromey.com>
11595
11596 * valprint.c (generic_value_print_complex): New function.
11597 (generic_value_print): Use it.
11598
f5354008
TT
115992020-03-13 Tom Tromey <tom@tromey.com>
11600
11601 * valprint.c (generic_val_print_float): Don't call
11602 val_print_scalar_formatted.
11603 (generic_val_print, generic_value_print): Update.
11604
3eec3b05
TT
116052020-03-13 Tom Tromey <tom@tromey.com>
11606
11607 * valprint.c (generic_value_print_char): New function
11608 (generic_value_print): Use it.
11609
fdddfccb
TT
116102020-03-13 Tom Tromey <tom@tromey.com>
11611
11612 * valprint.c (generic_value_print_int): New function.
11613 (generic_value_print): Use it.
11614
6dde7521
TT
116152020-03-13 Tom Tromey <tom@tromey.com>
11616
11617 * valprint.c (generic_value_print_bool): New function.
11618 (generic_value_print): Use it.
11619
4112d2e6
TT
116202020-03-13 Tom Tromey <tom@tromey.com>
11621
11622 * valprint.c (generic_val_print_func): Simplify.
11623 (generic_val_print, generic_value_print): Update.
11624
65786af6
TT
116252020-03-13 Tom Tromey <tom@tromey.com>
11626
11627 * valprint.c (generic_val_print_flags): Remove.
11628 (generic_val_print, generic_value_print): Update.
11629 (val_print_type_code_flags): Add original_value parameter.
11630
40f3ce18
TT
116312020-03-13 Tom Tromey <tom@tromey.com>
11632
11633 * valprint.c (generic_val_print): Update.
11634 (generic_value_print): Update.
11635 * valprint.c (generic_val_print_enum): Don't call
11636 val_print_scalar_formatted.
11637
2a5b130b
TT
116382020-03-13 Tom Tromey <tom@tromey.com>
11639
11640 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11641 * valprint.c (generic_value_print_ptr): New function.
11642
abc66ce9
TT
116432020-03-13 Tom Tromey <tom@tromey.com>
11644
11645 * valprint.c (generic_value_print): Rewrite.
11646
07a32858
TT
116472020-03-13 Tom Tromey <tom@tromey.com>
11648
11649 * p-valprint.c (pascal_object_print_value_fields)
11650 (pascal_object_print_value): New functions.
11651
64d64d3a
TT
116522020-03-13 Tom Tromey <tom@tromey.com>
11653
11654 * p-valprint.c (pascal_value_print_inner): Rewrite.
11655
6a95a1f5
TT
116562020-03-13 Tom Tromey <tom@tromey.com>
11657
11658 * f-valprint.c (f_value_print_innner): Rewrite.
11659
59fcdac6
TT
116602020-03-13 Tom Tromey <tom@tromey.com>
11661
11662 * m2-valprint.c (m2_print_unbounded_array): New overload.
11663 (m2_print_unbounded_array): Update.
11664 (m2_print_array_contents): Take a struct value.
11665 (m2_value_print_inner): Rewrite.
11666
d133c3e1
TT
116672020-03-13 Tom Tromey <tom@tromey.com>
11668
11669 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11670 (d_value_print_inner): New function.
11671 * d-lang.h (d_value_print_inner): Declare.
11672 * d-lang.c (d_language_defn): Use d_value_print_inner.
11673
23b0f06b
TT
116742020-03-13 Tom Tromey <tom@tromey.com>
11675
11676 * go-valprint.c (go_value_print_inner): New function.
11677 * go-lang.h (go_value_print_inner): Declare.
11678 * go-lang.c (go_language_defn): Use go_value_print_inner.
11679
5f56f7cb
TT
116802020-03-13 Tom Tromey <tom@tromey.com>
11681
11682 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11683 API.
11684 (rust_val_print): Rewrite.
11685 (rust_value_print_inner): New function, from rust_val_print.
11686 (rust_language_defn): Use rust_value_print_inner.
11687
26792ee0
TT
116882020-03-13 Tom Tromey <tom@tromey.com>
11689
11690 * ada-valprint.c (ada_value_print_inner): New function.
11691 * ada-lang.h (ada_value_print_inner): Declare.
11692 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11693
24051bbe
TT
116942020-03-13 Tom Tromey <tom@tromey.com>
11695
11696 * f-valprint.c (f_value_print_innner): New function.
11697 * f-lang.h (f_value_print_innner): Declare.
11698 * f-lang.c (f_language_defn): Use f_value_print_innner.
11699
c0941be6
TT
117002020-03-13 Tom Tromey <tom@tromey.com>
11701
11702 * p-valprint.c (pascal_value_print_inner): New function.
11703 * p-lang.h (pascal_value_print_inner): Declare.
11704 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11705
62c4663d
TT
117062020-03-13 Tom Tromey <tom@tromey.com>
11707
11708 * m2-valprint.c (m2_value_print_inner): New function.
11709 * m2-lang.h (m2_value_print_inner): Declare.
11710 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11711
62182190
TT
117122020-03-13 Tom Tromey <tom@tromey.com>
11713
11714 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11715 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11716 * c-valprint.c (c_value_print_inner): New function.
11717 * c-lang.h (c_value_print_inner): Declare.
11718 * c-lang.c (c_language_defn, cplus_language_defn)
11719 (asm_language_defn, minimal_language_defn): Use
11720 c_value_print_inner.
11721
1e592a8a
TT
117222020-03-13 Tom Tromey <tom@tromey.com>
11723
11724 * p-valprint.c (pascal_object_print_value_fields): Now static.
11725 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11726
7fe471e9
TT
117272020-03-13 Tom Tromey <tom@tromey.com>
11728
11729 * c-valprint.c (c_val_print_array): Simplify.
11730
d121c6ce
TT
117312020-03-13 Tom Tromey <tom@tromey.com>
11732
11733 * valprint.c (value_print_array_elements): New function.
11734 * valprint.h (value_print_array_elements): Declare.
11735
4dba70ee
TT
117362020-03-13 Tom Tromey <tom@tromey.com>
11737
11738 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11739 * mips-tdep.c (mips_print_register): Use
11740 value_print_scalar_formatted.
11741
4f9ae810
TT
117422020-03-13 Tom Tromey <tom@tromey.com>
11743
11744 * valprint.h (value_print_scalar_formatted): Declare.
11745 * valprint.c (value_print_scalar_formatted): New function.
11746
156bfec9
TT
117472020-03-13 Tom Tromey <tom@tromey.com>
11748
11749 * valprint.h (generic_value_print): Declare.
11750 * valprint.c (generic_value_print): New function.
11751
2b4e573d
TT
117522020-03-13 Tom Tromey <tom@tromey.com>
11753
11754 * valprint.c (do_val_print): Call la_value_print_inner, if
11755 available.
11756 * rust-lang.c (rust_language_defn): Update.
11757 * p-lang.c (pascal_language_defn): Update.
11758 * opencl-lang.c (opencl_language_defn): Update.
11759 * objc-lang.c (objc_language_defn): Update.
11760 * m2-lang.c (m2_language_defn): Update.
11761 * language.h (struct language_defn) <la_value_print_inner>: New
11762 member.
11763 * language.c (unknown_language_defn, auto_language_defn): Update.
11764 * go-lang.c (go_language_defn): Update.
11765 * f-lang.c (f_language_defn): Update.
11766 * d-lang.c (d_language_defn): Update.
11767 * c-lang.c (c_language_defn, cplus_language_defn)
11768 (asm_language_defn, minimal_language_defn): Update.
11769 * ada-lang.c (ada_language_defn): Update.
11770
a1f6a07c
TT
117712020-03-13 Tom Tromey <tom@tromey.com>
11772
11773 * c-valprint.c (c_value_print): Use common_val_print.
11774
410cf315
TT
117752020-03-13 Tom Tromey <tom@tromey.com>
11776
11777 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11778
72a45c93
TT
117792020-03-13 Tom Tromey <tom@tromey.com>
11780
11781 * f-valprint.c (f77_print_array_1, f_val_print): Use
11782 common_val_print.
11783
040f66bd
TT
117842020-03-13 Tom Tromey <tom@tromey.com>
11785
11786 * riscv-tdep.c (riscv_print_one_register_info): Use
11787 common_val_print.
11788
a6e05a6c
TT
117892020-03-13 Tom Tromey <tom@tromey.com>
11790
11791 * mi/mi-main.c (output_register): Use common_val_print.
11792
3444c526
TT
117932020-03-13 Tom Tromey <tom@tromey.com>
11794
11795 * infcmd.c (default_print_one_register_info): Use
11796 common_val_print.
11797
c2a44efe
TT
117982020-03-13 Tom Tromey <tom@tromey.com>
11799
11800 * valprint.h (common_val_print_checked): Declare.
11801 * valprint.c (common_val_print_checked): New function.
11802 * stack.c (print_frame_arg): Use common_val_print_checked.
11803
b0c26e99
TT
118042020-03-13 Tom Tromey <tom@tromey.com>
11805
11806 * valprint.c (do_val_print): New function, from val_print.
11807 (val_print): Use do_val_print.
11808 (common_val_print): Use do_val_print.
11809
ce3acbe9
TT
118102020-03-13 Tom Tromey <tom@tromey.com>
11811
11812 * valprint.c (value_print): Use scoped_value_mark.
11813
96c7f873
TV
118142020-03-13 Tom de Vries <tdevries@suse.de>
11815
11816 PR symtab/25646
11817 * psymtab.c (partial_symtab::partial_symtab): Don't set
11818 globals_offset and statics_offset. Push element onto
11819 current_global_psymbols and current_static_psymbols stacks.
11820 (concat): New function.
11821 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11822 element from current_global_psymbols and current_static_psymbols
11823 stacks. Concat popped elements to global_psymbols and
11824 static_symbols.
11825 (add_psymbol_to_list): Use current_global_psymbols and
11826 current_static_psymbols stacks.
11827 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11828 current_static_psymbols fields.
11829
6ba0a321
CB
118302020-03-12 Christian Biesinger <cbiesinger@google.com>
11831
11832 * corelow.c (sniff_core_bfd): Remove.
11833 (class core_target) <m_core_vec>: Remove.
11834 (core_target::core_target): Update.
11835 (core_file_fns): Remove.
11836 (deprecated_add_core_fns): Remove.
11837 (default_core_sniffer): Remove.
11838 (sniff_core_bfd): Remove.
11839 (default_check_format): Remove.
11840 (gdb_check_format): Remove.
11841 (core_target_open): Update.
11842 (core_target::get_core_register_section): Update.
11843 (get_core_registers_cb): Update.
11844 (core_target::fetch_registers): Update.
11845 * gdbcore.h (struct core_fns): Remove.
11846 (deprecated_add_core_fns): Remove.
11847 (default_core_sniffer): Remove.
11848 (default_check_format): Remove.
11849
227031b2
TT
118502020-03-12 Tom Tromey <tom@tromey.com>
11851
11852 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11853 CORE_ADDR.
11854 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11855
53807e9f
TT
118562020-03-12 Tom Tromey <tom@tromey.com>
11857
11858 * remote.c (remote_target::download_tracepoint)
11859 (remote_target::enable_tracepoint)
11860 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11861 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11862 sprintf_vma.
11863
64f25102
TT
118642020-03-12 Tom Tromey <tom@tromey.com>
11865
11866 * symfile-mem.c: Update CORE_ADDR size assert.
11867
272cd5a3
SM
118682020-03-12 Simon Marchi <simon.marchi@efficios.com>
11869
11870 * selftest.m4: Move to gdbsupport/.
11871 * acinclude.m4: Update path to selftest.m4.
11872
74cd3f9d
SM
118732020-03-12 Simon Marchi <simon.marchi@efficios.com>
11874
11875 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11876 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11877 gdbarch-selfselftests.c and selftest-arch.c.
11878 (SUBDIR_UNITTESTS_OBS): Rename to...
11879 (SELFTESTS_OBS): ... this.
11880 (COMMON_SFILES): Remove disasm-selftests.c and
11881 gdbarch-selftests.c.
11882 * configure.ac: Don't add selftest-arch.{c,o} to
11883 CONFIG_{SRCS,OBS}.
11884 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11885 preprocessor conditions.
11886
db6878ac
SM
118872020-03-12 Simon Marchi <simon.marchi@efficios.com>
11888
11889 * configure.ac: Don't source bfd/development.sh.
11890 * selftest.m4: Modify comment.
11891 * configure: Re-generate.
11892
4d696a5c
SM
118932020-03-12 Simon Marchi <simon.marchi@efficios.com>
11894
11895 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11896 not "true" or "false".
11897 * configure: Re-generate.
11898
8dd8e1c7
CB
118992020-03-12 Christian Biesinger <cbiesinger@google.com>
11900
11901 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11902 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11903 renamed to arm_nbsd_supply_gregset.
11904 (fetch_register): Update to call arm_nbsd_supply_gregset.
11905 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11906 (arm_netbsd_nat_target::fetch_registers): Update.
11907 (fetch_elfcore_registers): Removed.
11908 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11909 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11910 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11911 not require NetBSD system headers.
11912 (arm_nbsd_regset): New struct.
11913 (arm_nbsd_iterate_over_regset_sections): New function.
11914 (arm_netbsd_init_abi_common): Updated to call
11915 set_gdbarch_iterate_over_regset_sections.
11916 * arm-nbsd-tdep.h: New file.
11917
dd69bf7a
KB
119182020-03-11 Kevin Buettner <kevinb@redhat.com>
11919
11920 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11921 recursion.
11922
a0761e34
SM
119232020-03-11 Simon Marchi <simon.marchi@efficios.com>
11924
11925 * configure: Re-generate.
11926
e7a82140
TT
119272020-03-11 Tom Tromey <tromey@adacore.com>
11928
11929 * ada-typeprint.c (print_choices): Fix comment.
11930
dcc050c8
AB
119312020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11932
11933 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11934 previous item in the list, when the list has no items.
11935
1c33af77
TV
119362020-03-11 Tom de Vries <tdevries@suse.de>
11937
11938 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11939 PROP_LOCLIST handling code.
11940
8c95582d
AB
119412020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11942
11943 * buildsym-legacy.c (record_line): Pass extra parameter to
11944 record_line.
11945 * buildsym.c (buildsym_compunit::record_line): Take an extra
11946 parameter, reduce duplication in the line table, and record the
11947 is_stmt flag in the line table.
11948 * buildsym.h (buildsym_compunit::record_line): Add extra
11949 parameter.
11950 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11951 non-statement lines.
11952 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11953 this to the symtab builder.
11954 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11955 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11956 through to dwarf_record_line_1.
11957 * infrun.c (process_event_stop_test): When stepping, don't stop at
11958 a non-statement instruction, and only refresh the step info when
11959 we land in the middle of a line's range. Also add an extra
11960 comment.
11961 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11962 field.
11963 * record-btrace.c (btrace_find_line_range): Only record lines
11964 marked as is-statement.
11965 * stack.c (frame_show_address): Show the frame address if we are
11966 in a non-statement sal.
11967 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11968 (maintenance_print_one_line_table): Print a header for the is_stmt
11969 column, and include is_stmt information in the output.
11970 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11971 preference to non-statements.
11972 (find_pcs_for_symtab_line): Prefer is-statement entries.
11973 (find_line_common): Likewise.
11974 * symtab.h (struct linetable_entry): Add is_stmt field.
11975 (struct symtab_and_line): Likewise.
11976 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11977 arranging the line table.
11978
e4003a34
TV
119792020-03-07 Tom de Vries <tdevries@suse.de>
11980
11981 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11982 DIE.
11983
e8932576
TT
119842020-03-07 Tom Tromey <tom@tromey.com>
11985
11986 * valops.c (value_literal_complex): Remove obsolete comment.
11987 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11988 comment.
11989
29734269
SM
119902020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11991
11992 * infrun.h: Forward-declare thread_info.
11993 (set_step_info): Add thread_info parameter, add doc.
11994 * infrun.c (set_step_info): Add thread_info parameter, move doc
11995 to header.
11996 * infrun.c (process_event_stop_test): Pass thread to
11997 set_step_info call.
11998 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11999 set_step_info.
12000 (prepare_one_step): Add thread_info parameter, pass it to
12001 set_step_frame and prepare_one_step (recursive) call.
12002 (step_1): Pass thread to prepare_one_step call.
12003 (step_command_fsm::should_stop): Pass thread to
12004 prepare_one_step.
12005 (until_next_fsm): Pass thread to set_step_frame call.
12006 (finish_command): Pass thread to set_step_info call.
12007
b7d64b29
HD
120082020-03-06 Hannes Domani <ssbssa@yahoo.de>
12009
12010 * windows-tdep.c (windows_solib_create_inferior_hook):
12011 Check if inferior is running.
12012
09f2921c
TV
120132020-03-06 Tom de Vries <tdevries@suse.de>
12014
12015 * NEWS: Fix "the the".
12016 * ctfread.c: Same.
12017
fd760e79
TV
120182020-03-06 Tom de Vries <tdevries@suse.de>
12019
12020 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12021
20ea4a60
AB
120222020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12023
12024 * .dir-locals.el: Add a comment referencing the other copies of
12025 this file.
12026
0afbabf0
JB
120272020-03-05 John Baldwin <jhb@FreeBSD.org>
12028
12029 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12030 psargs.
12031
842806cb
TBA
120322020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12033
12034 * .gitattributes: New file.
12035
be1e3d3e
TT
120362020-03-04 Tom Tromey <tom@tromey.com>
12037
12038 * symmisc.c (print_symbol_bcache_statistics)
12039 (print_objfile_statistics): Update.
12040 * symfile.c (allocate_symtab): Use intern.
12041 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12042 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12043 macro_cache>: Remove.
12044 <string_cache>: New member.
12045 (struct objfile) <intern>: New methods.
12046 * elfread.c (elf_symtab_read): Use intern.
12047 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12048 (dwarf2_compute_name, dwarf2_physname)
12049 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12050 names.
12051 (guess_partial_die_structure_name): Update.
12052 (partial_die_info::fixup): Intern name.
12053 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12054 name.
12055 (dwarf2_name): Intern name. Update.
12056 * buildsym.c (buildsym_compunit::get_macro_table): Use
12057 string_cache.
12058
4e7625fd
TT
120592020-03-04 Tom Tromey <tom@tromey.com>
12060
12061 * jit.c (bfd_open_from_target_memory): Make "target" const.
12062 * corefile.c (gnutarget): Now const.
12063 * gdbcore.h (gnutarget): Now const.
12064
46f9f931
HD
120652020-03-04 Hannes Domani <ssbssa@yahoo.de>
12066
12067 * NEWS: Mention support for WOW64 processes.
12068 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12069 (amd64_windows_segment_register_p): Remove static.
12070 (_initialize_amd64_windows_nat): Update.
12071 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12072 * i386-windows-nat.c (context_offset): Update.
12073 (i386_mappings): Rename and remove static.
12074 (i386_windows_segment_register_p): Remove static.
12075 (_initialize_i386_windows_nat): Update.
12076 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12077 (STATUS_WX86_SINGLE_STEP): New macro.
12078 (EnumProcessModulesEx): New macro.
12079 (Wow64SuspendThread): New macro.
12080 (Wow64GetThreadContext): New macro.
12081 (Wow64SetThreadContext): New macro.
12082 (Wow64GetThreadSelectorEntry): New macro.
12083 (windows_set_context_register_offsets): Add static.
12084 (windows_set_segment_register_p): Likewise.
12085 (windows_add_thread): Adapt for WOW64 processes.
12086 (windows_fetch_one_register): Likewise.
12087 (windows_nat_target::fetch_registers): Likewise.
12088 (windows_store_one_register): Likewise.
12089 (display_selector): Likewise.
12090 (display_selectors): Likewise.
12091 (handle_exception): Likewise.
12092 (windows_continue): Likewise.
12093 (windows_nat_target::resume): Likewise.
12094 (windows_add_all_dlls): Likewise.
12095 (do_initial_windows_stuff): Likewise.
12096 (windows_nat_target::attach): Likewise.
12097 (windows_get_exec_module_filename): Likewise.
12098 (windows_nat_target::create_inferior): Likewise.
12099 (windows_xfer_siginfo): Likewise.
12100 (_initialize_loadable): Initialize Wow64SuspendThread,
12101 Wow64GetThreadContext, Wow64SetThreadContext,
12102 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12103 * windows-nat.h (windows_set_context_register_offsets):
12104 Remove declaration.
12105 (windows_set_segment_register_p): Likewise.
12106 (i386_windows_segment_register_p): Add declaration.
12107 (amd64_windows_segment_register_p): Likewise.
12108
440cf44e
LM
121092020-03-04 Luis Machado <luis.machado@linaro.org>
12110
12111 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12112 in "info registers" for AArch64/ARM.
12113
12114 The change caused "info registers" to not print GPR's.
12115
12116 gdb/ChangeLog:
12117
12118 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12119
12120 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12121 when reg->group is empty and reggroup is not.
12122
1009d92f
TT
121232020-03-03 Tom Tromey <tromey@adacore.com>
12124
12125 * dwarf2/frame.c (struct dwarf2_frame_cache)
12126 <checked_tailcall_bottom, entry_cfa_sp_offset,
12127 entry_cfa_sp_offset_p>: Remove members.
12128 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12129 (dwarf2_frame_prev_register): Don't call
12130 dwarf2_tailcall_sniffer_first.
12131 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12132 * frame-unwind.c (add_unwinder): New fuction.
12133 (frame_unwind_init): Use it. Add tailcall unwinder.
12134
5e5d66b6
AB
121352020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12136 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12137
12138 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12139 value should be printed as true.
12140
584cf46d
HD
121412020-03-03 Hannes Domani <ssbssa@yahoo.de>
12142
12143 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12144 (windows_init_abi): Set and use windows_so_ops.
12145
7b973adc
SDJ
121462020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12147
12148 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12149 when verifying if dealing with a convenience variable.
12150
bb7b70ab
LM
121512020-03-03 Luis Machado <luis.machado@linaro.org>
12152
12153 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12154
9822cb57
SM
121552020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12156
12157 * infrun.c (gdbarch_supports_displaced_stepping): New.
12158 (use_displaced_stepping): Break up conditions in smaller pieces.
12159 Use gdbarch_supports_displaced_stepping.
12160 (displaced_step_prepare_throw): Use
12161 gdbarch_supports_displaced_stepping.
12162
63e163f2
AB
121632020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12164
12165 * NEWS: Mention new behaviour of the history filename.
12166 * top.c (write_history_p): Add comment.
12167 (show_write_history_p): Add header comment, give a different
12168 message when history writing is on, but the history filename is
12169 empty.
12170 (history_filename): Add comment.
12171 (history_filename_empty): New function.
12172 (show_history_filename): Add header comment, give a different
12173 message when the filename is empty.
12174 (init_history): Compare history_filename against nullptr, and only
12175 read history if the filename is not empty.
12176 (set_history_filename): Add header comment, and only make
12177 non-empty filenames absolute.
12178 (init_main): Make the filename argument to 'set history filename'
12179 optional.
12180
81b86b97
CB
121812020-03-02 Christian Biesinger <cbiesinger@google.com>
12182
12183 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12184 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12185 (fetch_fp_register): Update.
12186 (fetch_fp_regs): Update.
12187 (store_fp_register): Update.
12188 (store_fp_regs): Update.
12189 (arm_netbsd_nat_target::read_description): New function.
12190 (fetch_elfcore_registers): Update.
12191
24ed6739
AB
121922020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12193
12194 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12195 general_thread if the stop reply is missing a thread-id.
12196 (remote_target::process_stop_reply): Use the first non-exited
12197 thread if the target didn't pass a thread-id.
12198 * infrun.c (do_target_wait): Move call to
12199 switch_to_inferior_no_thread to ....
12200 (do_target_wait_1): ... here.
12201
a84bb2a0
JT
122022020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12203
12204 * debuginfod-support.c: Include defs.h first.
12205
658dadf0
TV
122062020-02-28 Tom de Vries <tdevries@suse.de>
12207
12208 * symfile.c (set_initial_language): Use default language for lookup.
12209
4ebe4877
SM
122102020-02-28 Simon Marchi <simon.marchi@efficios.com>
12211
12212 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12213 reader variable, pass `this` to read_cutu_die_from_dwo.
12214
e5da1139
AM
122152020-02-27 Aaron Merey <amerey@redhat.com>
12216
12217 * source.c (open_source_file): Check for nullptr when computing
12218 srcpath.
12219
317f7127
TT
122202020-02-27 Tom Tromey <tromey@adacore.com>
12221
12222 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12223 member.
12224 (dwarf2_add_field): Don't update nfields.
12225 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12226
3104d9ee
AB
122272020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12228
12229 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12230 abs.
12231
b83470bf
TT
122322020-02-26 Tom Tromey <tom@tromey.com>
12233
12234 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12235 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12236 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12237 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12238 per_cu_data.
12239
edfe0a0c
TT
122402020-02-26 Tom Tromey <tom@tromey.com>
12241
12242 * dwarf2/index-write.c (psym_index_map): Change type.
12243 (add_address_entry_worker, write_one_signatured_type)
12244 (recursively_count_psymbols, recursively_write_psymbols)
12245 (class debug_names, psyms_seen_size, write_gdbindex)
12246 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12247
0d79cdc4
AM
122482020-02-26 Aaron Merey <amerey@redhat.com>
12249
12250 * Makefile.in: Handle optional debuginfod support.
12251 * NEWS: Update.
12252 * README: Add --with-debuginfod summary.
12253 * config.in: Regenerate.
12254 * configure: Regenerate.
12255 * configure.ac: Handle optional debuginfod support.
12256 * debuginfod-support.c: debuginfod helper functions.
12257 * debuginfod-support.h: Ditto.
12258 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12259 summary.
12260 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12261 when a dwz file cannot be found.
12262 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12263 debuginfo file cannot be found.
12264 * source.c (open_source_file): Query debuginfod servers when a
12265 source file cannot be found.
12266 * top.c (print_gdb_configuration): Include
12267 --{with,without}-debuginfod in the output.
12268
b65ce565
JG
122692020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12270
12271 * thread.c (thr_try_catch_cmd): Print thread name.
12272
d4c9a4f8
SM
122732020-02-26 Simon Marchi <simon.marchi@efficios.com>
12274
12275 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12276 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12277 dwarf2_fetch_die_type_sect_off): Move to...
12278 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12279 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12280 dwarf2_fetch_die_type_sect_off): ... here.
12281 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12282 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12283 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12284
0dce4280
TV
122852020-02-26 Tom de Vries <tdevries@suse.de>
12286
12287 PR gdb/25603
12288 * symfile.c (set_initial_language): Exit-early if
12289 language_mode == language_mode_manual.
12290
450a1bfc
SM
122912020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12292
12293 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12294 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12295 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12296
9e80cfa1
AB
122972020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12298
12299 * gdbtypes.c (create_array_type_with_stride): Handle negative
12300 array strides.
12301 * valarith.c (value_subscripted_rvalue): Likewise.
12302
09624f1f
LM
123032020-02-25 Luis Machado <luis.machado@linaro.org>
12304
12305 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12306
8cb5117c
SM
123072020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12308
12309 * loc.h (dwarf2_get_die_type): Move to...
12310 * read.h (dwarf2_get_die_type): ... here.
12311 * read.c (dwarf2_get_die_type): Move doc to header.
12312
c325c44e
JB
123132020-02-25 Joel Brobecker <brobecker@adacore.com>
12314
12315 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12316 'gnulib/Makefile.in' to the list.
12317
4ac93832
TT
123182020-02-24 Tom Tromey <tom@tromey.com>
12319
12320 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12321 Remove.
12322 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12323 XOBNEWVEC.
12324
197400e8
TT
123252020-02-24 Tom Tromey <tom@tromey.com>
12326
12327 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12328 New method.
12329 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12330 (dw2_do_instantiate_symtab, dw2_get_file_names)
12331 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12332
76935768
TT
123332020-02-24 Tom Tromey <tom@tromey.com>
12334
12335 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12336 make_scoped_restore.
12337 (dwarf2_psymtab::read_symtab): Don't clear
12338 reading_partial_symbols.
12339
a88ef40d
TV
123402020-02-24 Tom de Vries <tdevries@suse.de>
12341
12342 PR gdb/25592
12343 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12344
c9af6521
TV
123452020-02-24 Tom de Vries <tdevries@suse.de>
12346
12347 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12348 commands layout next/prev/regs.
12349
5707a07a
TT
123502020-02-22 Tom Tromey <tom@tromey.com>
12351
12352 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12353 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12354
3b0fb49e
TT
123552020-02-22 Tom Tromey <tom@tromey.com>
12356
12357 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12358
283be8bf
TT
123592020-02-22 Tom Tromey <tom@tromey.com>
12360
12361 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12362 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12363 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12364 * tui/tui.c (_initialize_tui): Add usage text.
12365
ca793b96
TT
123662020-02-22 Tom Tromey <tom@tromey.com>
12367
12368 * tui/tui-win.c (tui_set_focus_command)
12369 (tui_set_win_height_command): Use error_no_arg.
12370 (_initialize_tui_win): Update help text.
12371 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12372
432b5c40
TT
123732020-02-22 Tom Tromey <tom@tromey.com>
12374
12375 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12376 * tui/tui-disasm.h (struct tui_disasm_window)
12377 <display_start_addr>: Declare.
12378 * tui/tui-source.h (struct tui_source_window)
12379 <display_start_addr>: Declare.
12380 * tui/tui-winsource.h (struct tui_source_window_base)
12381 <show_source_line, display_start_addr>: New methods.
12382 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12383 Rename and move to protected section.
12384 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12385 (tui_source_window_base::do_erase_source_content): Update.
12386 (tui_source_window_base::show_source_line): Now a method.
12387 (tui_source_window_base::show_source_content)
12388 (tui_source_window_base::tui_source_window_base)
12389 (tui_source_window_base::rerender)
12390 (tui_source_window_base::refill)
12391 (tui_source_window_base::do_scroll_horizontal)
12392 (tui_source_window_base::set_is_exec_point_at)
12393 (tui_source_window_base::update_breakpoint_info)
12394 (tui_source_window_base::update_exec_info): Update.
12395 * tui/tui-source.c (tui_source_window::set_contents)
12396 (tui_source_window::showing_source_p)
12397 (tui_source_window::do_scroll_vertical)
12398 (tui_source_window::location_matches_p)
12399 (tui_source_window::line_is_displayed): Update.
12400 (tui_source_window::display_start_addr): New method.
12401 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12402 (tui_disasm_window::do_scroll_vertical)
12403 (tui_disasm_window::location_matches_p): Update.
12404 (tui_disasm_window::display_start_addr): New method.
12405
01b1af32
TT
124062020-02-22 Tom Tromey <tom@tromey.com>
12407
12408 * NEWS: Add entry for gdb.register_window_type.
12409 * tui/tui-layout.h (window_factory): New typedef.
12410 (tui_register_window): Declare.
12411 * tui/tui-layout.c (saved_tui_windows): New global.
12412 (tui_apply_current_layout): Use it.
12413 (tui_register_window): New function.
12414 * python/python.c (do_start_initialization): Call
12415 gdbpy_initialize_tui.
12416 (python_GdbMethods): Add "register_window_type" function.
12417 * python/python-internal.h (gdbpy_register_tui_window)
12418 (gdbpy_initialize_tui): Declare.
12419 * python/py-tui.c: New file.
12420 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12421
fc96d20b
TT
124222020-02-22 Tom Tromey <tom@tromey.com>
12423
12424 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12425
935c78c0
TT
124262020-02-22 Tom Tromey <tom@tromey.com>
12427
12428 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12429 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12430 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12431 (tui_set_win_focus_to): Move from tui-win.c.
12432
0240c8f1
TT
124332020-02-22 Tom Tromey <tom@tromey.com>
12434
12435 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12436 functions.
12437 (known_window_types): New global.
12438 (tui_get_window_by_name): Reimplement.
12439 (initialize_known_windows): New function.
12440 (validate_window_name): Rewrite.
12441 (_initialize_tui_layout): Call initialize_known_windows.
12442
fdb01f0c
TT
124432020-02-22 Tom Tromey <tom@tromey.com>
12444
12445 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12446 Remove constants.
12447 * tui/tui-winsource.h (struct tui_source_window_base)
12448 <tui_source_window_base>: Remove parameter.
12449 * tui/tui-winsource.c
12450 (tui_source_window_base::tui_source_window_base): Remove
12451 parameter.
12452 (tui_source_window_base::refill): Update.
12453 * tui/tui-stack.h (struct tui_locator_window)
12454 <tui_locator_window>: Update.
12455 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12456 Default the constructor.
12457 * tui/tui-regs.h (struct tui_data_item_window)
12458 <tui_data_item_window>: Default the constructor.
12459 (struct tui_data_window) <tui_data_window>: Likewise.
12460 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12461 Default the constructor.
12462 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12463 Default the constructor.
12464 <type>: Remove.
12465 (struct tui_win_info) <tui_win_info>: Default the constructor.
12466 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12467 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12468 Default the constructor.
12469
865a5aec
TT
124702020-02-22 Tom Tromey <tom@tromey.com>
12471
12472 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12473 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12474 * tui/tui-win.c (tui_resize_all): Don't call
12475 tui_delete_invisible_windows.
12476 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12477 done.
12478 (tui_set_layout): Update.
12479 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12480 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12481 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12482
e098d18c
TT
124832020-02-22 Tom Tromey <tom@tromey.com>
12484
12485 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12486 correctly.
12487
eb9c8874
TT
124882020-02-22 Tom Tromey <tom@tromey.com>
12489
12490 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12491
7eed1a8e
TT
124922020-02-22 Tom Tromey <tom@tromey.com>
12493
12494 * tui/tui-winsource.h (struct tui_source_window_iterator)
12495 <inner_iterator>: New etytypedef.
12496 <tui_source_window_iterator>: Take "end" parameter.
12497 <tui_source_window_iterator>: Take iterator.
12498 <operator*, advance>: Update.
12499 <m_iter>: Change type.
12500 <m_end>: New field.
12501 (struct tui_source_windows) <begin, end>: Update.
12502 * tui/tui-layout.c (tui_windows): New global.
12503 (tui_apply_current_layout): Clear tui_windows.
12504 (tui_layout_window::apply): Update tui_windows.
12505 * tui/tui-data.h (tui_windows): Declare.
12506 (all_tui_windows): Now inline function.
12507 (class tui_window_iterator, struct all_tui_windows): Remove.
12508
7c043ba6
TT
125092020-02-22 Tom Tromey <tom@tromey.com>
12510
12511 PR tui/17850:
12512 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12513 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12514 "height" argument.
12515 (class tui_layout_window) <get_sizes>: Likewise.
12516 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12517 argument.
12518 <get_sizes>: Add "height" argument.
12519 <m_vertical>: New field.
12520 * tui/tui-layout.c (tui_layout_split::clone): Update.
12521 (tui_layout_split::get_sizes): Add "height" argument.
12522 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12523 (tui_new_layout_command): Parse "-horizontal".
12524 (_initialize_tui_layout): Update help string.
12525 (tui_layout_split::specification): Add "-horizontal" when needed.
12526 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12527 argument.
12528 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12529 New methods.
12530
6bc56648
TT
125312020-02-22 Tom Tromey <tom@tromey.com>
12532
12533 * tui/tui-layout.h (enum tui_adjust_result): New.
12534 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12535 (class tui_layout_window) <adjust_size>: Return
12536 tui_adjust_result. Rewrite.
12537 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12538 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12539
c22fef7e
TT
125402020-02-22 Tom Tromey <tom@tromey.com>
12541
12542 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12543 parameter and return types.
12544 (class tui_layout_base) <specification>: Add "depth".
12545 (class tui_layout_window) <specification>: Add "depth".
12546 (class tui_layout_split) <specification>: Add "depth".
12547 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12548 and return types.
12549 (tui_new_layout_command): Parse sub-layouts.
12550 (_initialize_tui_layout): Update help string.
12551 (tui_layout_window::specification): Add "depth".
12552 (add_layout_command): Update.
12553
ee325b61
TT
125542020-02-22 Tom Tromey <tom@tromey.com>
12555
12556 * NEWS: Add "tui new-layout" item.
12557 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12558 Add new-layout command to help text.
12559 (validate_window_name): New function.
12560 (tui_new_layout_command): New function.
12561 (_initialize_tui_layout): Register "new-layout".
12562 (tui_layout_window::specification): New method.
12563 (tui_layout_window::specification): New method.
12564 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12565 method.
12566 (class tui_layout_window) <specification>: New method.
12567 (class tui_layout_split) <specification>: New method.
12568
416eb92d
TT
125692020-02-22 Tom Tromey <tom@tromey.com>
12570
12571 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12572 * tui/tui-win.c (window_name_completer): Update comment.
12573 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12574 Declare method.
12575 (class tui_layout_window) <replace_window>: Likewise.
12576 (class tui_layout_split) <replace_window>: Likewise.
12577 (tui_set_layout): Don't declare.
12578 (tui_set_initial_layout): Declare function.
12579 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12580 (asm_regs_layout): New globals.
12581 (tui_current_layout, show_layout): Remove.
12582 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12583 (find_layout, tui_apply_layout): New function.
12584 (layout_completer): Remove.
12585 (tui_next_layout): Reimplement.
12586 (tui_next_layout_command): New function.
12587 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12588 (tui_regs_layout): Reimplement.
12589 (tui_regs_layout_command): New function.
12590 (extract_display_start_addr): Rewrite.
12591 (next_layout, prev_layout): Remove.
12592 (tui_layout_window::replace_window): New method.
12593 (tui_layout_split::replace_window): New method.
12594 (destroy_layout): New function.
12595 (layout_list): New global.
12596 (add_layout_command): New function.
12597 (initialize_layouts): Update.
12598 (tui_layout_command): New function.
12599 (_initialize_tui_layout): Install "layout" commands.
12600 * tui/tui-data.h (enum tui_layout_type): Remove.
12601 (tui_current_layout): Don't declare.
12602
0dbc2fc7
TT
126032020-02-22 Tom Tromey <tom@tromey.com>
12604
12605 * tui/tui-regs.c (tui_reg_layout): Remove.
12606 (tui_reg_command): Use tui_regs_layout.
12607 * tui/tui-layout.h (tui_reg_command): Declare.
12608 * tui/tui-layout.c (tui_reg_command): New function.
12609
5afe342e
TT
126102020-02-22 Tom Tromey <tom@tromey.com>
12611
12612 * tui/tui.c (tui_rl_delete_other_windows): Call
12613 tui_remove_some_windows.
12614 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12615 Declare method.
12616 (class tui_layout_window) <remove_windows>: New method.
12617 (class tui_layout_split) <remove_windows>: Declare.
12618 (tui_remove_some_windows): Declare.
12619 * tui/tui-layout.c (tui_remove_some_windows): New function.
12620 (tui_layout_split::remove_windows): New method.
12621
427326a8
TT
126222020-02-22 Tom Tromey <tom@tromey.com>
12623
12624 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12625 * tui/tui-layout.h (tui_next_layout): Declare.
12626 * tui/tui-layout.c (tui_next_layout): New function.
12627
3fe12b6d
TT
126282020-02-22 Tom Tromey <tom@tromey.com>
12629
12630 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12631 correct coordinates.
12632
59b8b5d2
TT
126332020-02-22 Tom Tromey <tom@tromey.com>
12634
12635 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12636 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12637 DATA_WIN case.
12638
2a3d458b
TT
126392020-02-22 Tom Tromey <tom@tromey.com>
12640
12641 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12642 TUI_DISASM_WIN, not tui_win_list.
12643
3f0cbb04
TT
126442020-02-22 Tom Tromey <tom@tromey.com>
12645
12646 * valprint.c (generic_val_print_enum_1)
12647 (val_print_type_code_flags): Style member names.
12648 * rust-lang.c (val_print_struct, rust_print_enum)
12649 (rust_print_struct_def, rust_internal_print_type): Style member
12650 names.
12651 * p-valprint.c (pascal_object_print_value_fields): Style member
12652 names. Only call fprintf_symbol_filtered for static members.
12653 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12654 * f-valprint.c (f_val_print): Style member names.
12655 * f-typeprint.c (f_type_print_base): Style member names.
12656 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12657 call fprintf_symbol_filtered for static members.
12658 (cp_print_class_member): Style member names.
12659 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12660 member names.
12661 * ada-valprint.c (ada_print_scalar): Style enum names.
12662 (ada_val_print_enum): Likewise.
12663 * ada-typeprint.c (print_enum_type): Style enum names.
12664
d4d947ae
TT
126652020-02-21 Tom Tromey <tom@tromey.com>
12666
12667 * psympriv.h (struct partial_symtab): Update comment.
12668
e94e944b
TT
126692020-02-21 Tom Tromey <tromey@adacore.com>
12670
12671 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12672 type is CORE_ADDR.
12673
1eb73179
TV
126742020-02-21 Tom de Vries <tdevries@suse.de>
12675
12676 PR gdb/25534
12677 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12678 if dependencies[i]->user != NULL.
12679
4f180d53
AT
126802020-02-21 Ali Tamur <tamur@google.com>
12681
12682 * dwarf2/read.c (dwarf2_name): Add null check.
12683
22b6cd70
TT
126842020-02-20 Tom Tromey <tom@tromey.com>
12685
12686 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12687 ">=", in binary search.
12688 (dwarf2_find_containing_comp_unit): New overload.
12689 (run_test): New self-test.
12690 (_initialize_dwarf2_read): Register new test.
12691
bd0cf5a6
NC
126922020-02-20 Nelson Chu <nelson.chu@sifive.com>
12693
12694 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12695 * riscv-tdep.h: Likewise.
12696 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12697 rv32-only CSR.
12698 * features/riscv/64bit-csr.xml: Regenerated.
12699
3f702acd
SDJ
127002020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12701 Tom Tromey <tom@tromey.com>
12702
12703 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12704 of 'fputc_unfiltered'.
12705 (putchar_unfiltered): Call 'fputc_unfiltered'.
12706 (fputc_unfiltered): Call 'fputs_unfiltered'.
12707
d13c7322
AB
127082020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12709
12710 * config.in: Regenerate.
12711 * configure: Regenerate.
12712 * configure.ac: Add --with-python-libdir option.
12713 * main.c: Use WITH_PYTHON_LIBDIR.
12714
869d8950
TT
127152020-02-19 Tom Tromey <tom@tromey.com>
12716
12717 * symtab.c (general_symbol_info::compute_and_set_names): Use
12718 obstack_strndup. Simplify call to symbol_set_demangled_name.
12719
298e9637
SM
127202020-02-19 Simon Marchi <simon.marchi@efficios.com>
12721
12722 * dwarf2/read.c (allocate_signatured_type_table,
12723 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12724 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12725 Remove objfile parameter, update all callers.
12726
08410482
DE
127272020-02-19 Doug Evans <dje@google.com>
12728
12729 PR rust/25535
12730 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12731 rust_enum_variant calculation.
12732
dfdeeca1
TT
127332020-02-19 Tom Tromey <tromey@adacore.com>
12734
12735 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12736
2ef5453b
TT
127372020-02-19 Tom Tromey <tromey@adacore.com>
12738
12739 * ada-lang.c (cache_symbol): Use obstack_strdup.
12740
9f1528a1
AB
127412020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12742
12743 * configure: Regenerate.
12744
d3c22fa8
TT
127452020-02-19 Tom Tromey <tromey@adacore.com>
12746
12747 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12748 NULL check.
12749
bf84f706
MR
127502020-02-19 Maciej W. Rozycki <macro@wdc.com>
12751
12752 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12753
d1c9b20f
AB
127542020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12755
12756 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12757 if GDBSERVER is not defined.
12758 (riscv_tdesc_cache): Likewise, also store const target_desc.
12759 (STATIC_IN_GDB): Define.
12760 (riscv_create_target_description): Update declaration with
12761 STATIC_IN_GDB.
12762 (riscv_lookup_target_description): New function, only define if
12763 GDBSERVER is not defined.
12764 * arch/riscv.h (riscv_create_target_description): Declare only
12765 when GDBSERVER is defined.
12766 (riscv_lookup_target_description): New declaration when GDBSERVER
12767 is not defined.
12768 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12769 (riscv_linux_read_features): ...this, and return
12770 riscv_gdbarch_features instead of target_desc.
12771 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12772 (riscv_linux_read_description): Rename to...
12773 (riscv_linux_read_features): ...this.
12774 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12775 Update to use riscv_gdbarch_features and
12776 riscv_lookup_target_description.
12777 * riscv-tdep.c (riscv_find_default_target_description): Use
12778 riscv_lookup_target_description instead of
12779 riscv_create_target_description.
12780
373d7ac0
SM
127812020-02-18 Simon Marchi <simon.marchi@efficios.com>
12782
12783 * valprint.c (generic_val_print_enum_1): When printing a flag
12784 enum with value 0 and there is no enumerator with value 0, print
12785 just "0" instead of "(unknown: 0x0)".
12786
b29a2df0
SM
127872020-02-18 Simon Marchi <simon.marchi@efficios.com>
12788
12789 * valprint.c (generic_val_print_enum_1): Print unknown part of
12790 flag enum in hex.
12791
6740f0cc
SM
127922020-02-18 Simon Marchi <simon.marchi@efficios.com>
12793
12794 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12795 flag enums to contain duplicate enumerators.
12796 * valprint.c (generic_val_print_enum_1): Update comment.
12797
edd45eb0
SM
127982020-02-18 Simon Marchi <simon.marchi@efficios.com>
12799
12800 * dwarf2/read.c: Include "count-one-bits.h".
12801 (update_enumeration_type_from_children): If an enumerator has
12802 multiple bits set, don't treat the enumeration as a "flag enum".
12803 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12804 of flag enums have 0 or 1 bit set.
12805
6d0cf446
BE
128062020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12807
12808 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12809 conversion.
12810 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12811 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12812 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12813 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12814 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12815
7001c1b7
SM
128162020-02-18 Simon Marchi <simon.marchi@efficios.com>
12817
12818 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12819
fdb61c6c
SM
128202020-02-14 Simon Marchi <simon.marchi@efficios.com>
12821
12822 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12823 displaced_step_closure_up.
12824 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12825 (struct displaced_step_closure_up):
12826 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12827 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12828 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12829 Likewise.
12830 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12831 * gdbarch.c, gdbarch.h: Re-generate.
12832 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12833 displaced_step_closure_up.
12834 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12835 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12836 * infrun.h (displaced_step_closure_up): New type alias.
12837 (struct displaced_step_inferior_state) <step_closure>: Change
12838 type to displaced_step_closure_up.
12839 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12840 displaced_step_closure_up.
12841 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12842
a4a38eb4
TT
128432020-02-14 Tom Tromey <tom@tromey.com>
12844
12845 * minidebug.c (gnu_debug_key): New global.
12846 (find_separate_debug_file_in_section): Use it.
12847
e8217e61
SM
128482020-02-14 Simon Marchi <simon.marchi@efficios.com>
12849
12850 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12851 std::unique_ptr.
12852 * gdbarch.c: Re-generate.
12853 * gdbarch.h: Re-generate.
12854 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12855 change.
12856 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12857 type to std::unique_ptr.
12858 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12859 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12860 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12861 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12862 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12863 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12864 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12865 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12866 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12867
d8d83535
SM
128682020-02-14 Simon Marchi <simon.marchi@efficios.com>
12869
12870 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12871 std::unique_ptr.
12872 (displaced_step_clear): Rename to...
12873 (displaced_step_reset): ... this. Just call displaced->reset ().
12874 (displaced_step_clear_cleanup): Rename to...
12875 (displaced_step_reset_cleanup): ... this.
12876 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12877 (displaced_step_fixup): Likewise.
12878 (resume_1): Likewise.
12879 (handle_inferior_event): Restore child's memory before calling
12880 displaced_step_fixup on the parent.
12881 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12882 to std::unique_ptr.
12883 <step_closure>: Change type to std::unique_ptr.
12884
5f661e03
SM
128852020-02-14 Simon Marchi <simon.marchi@efficios.com>
12886
12887 * arm-tdep.c: Include count-one-bits.h.
12888 (cleanup_block_store_pc): Use count_one_bits.
12889 (cleanup_block_load_pc): Use count_one_bits.
12890 (arm_copy_block_xfer): Use count_one_bits.
12891 (thumb2_copy_block_xfer): Use count_one_bits.
12892 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12893 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12894 (thumb_get_next_pcs_raw): Use count_one_bits.
12895 (arm_get_next_pcs_raw): Use count_one_bits_l.
12896 * arch/arm.c (bitcount): Remove.
12897 * arch/arm.h (bitcount): Remove.
12898
8084e579
TT
128992020-02-14 Tom Tromey <tromey@adacore.com>
12900
12901 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12902 Update.
12903 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12904 * dwarf2/loc.c (call_site_find_chain_1): Return
12905 unique_xmalloc_ptr.
12906 (call_site_find_chain): Likewise.
12907
258bf0ee
RB
129082020-02-14 Richard Biener <rguenther@suse.de>
12909
12910 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12911 on expression with division operators.
12912
f98a8458
AKS
129132020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12914
12915 * MAINTAINERS (Write After Approval): Adding myself.
12916
d1437c0e
TT
129172020-02-12 Tom Tromey <tom@tromey.com>
12918
12919 * event-loop.c (event_data, gdb_event, event_handler_func):
12920 Remove.
12921
3d4560f7
TT
129222020-02-12 Tom Tromey <tom@tromey.com>
12923
12924 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12925 (dwarf2_frame_objfile_data): Add comment.
12926 (find_comp_unit, set_comp_unit): New functions.
12927 (dwarf2_frame_find_fde): Use find_comp_unit.
12928 (dwarf2_build_frame_info): Use set_comp_unit.
12929
21982304
TT
129302020-02-12 Tom Tromey <tom@tromey.com>
12931
12932 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12933 (comp_unit): Don't initialize objfile.
12934 (execute_cfa_program): Add text_offset parameter.
12935 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12936 (dwarf2_frame_cache): Update.
12937 (dwarf2_build_frame_info): Don't set "objfile" member.
12938
4debb237
TT
129392020-02-12 Tom Tromey <tom@tromey.com>
12940
12941 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12942 (decode_frame_entry): Likewise.
12943 (dwarf2_build_frame_info): Update.
12944
0d404d44
TT
129452020-02-12 Tom Tromey <tom@tromey.com>
12946
12947 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12948 (decode_frame_entry_1): Use the comp_unit obstack.
12949
a7a3ae5c
TT
129502020-02-12 Tom Tromey <tom@tromey.com>
12951
12952 * dwarf2/frame.c (struct comp_unit): Add initializers and
12953 constructor.
12954 (dwarf2_frame_objfile_data): Store a comp_unit.
12955 (dwarf2_frame_find_fde): Update.
12956 (dwarf2_build_frame_info): Use "new".
12957
a9d65418
TT
129582020-02-12 Tom Tromey <tom@tromey.com>
12959
12960 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12961 (dwarf2_fde_table): Typedef for std::vector.
12962 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12963 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12964 (decode_frame_entry): Update.
12965 (dwarf2_build_frame_info): Use "new".
12966
7559c217
CB
129672020-02-12 Christian Biesinger <cbiesinger@google.com>
12968
12969 * arm-tdep.c (arm_gdbarch_init): Update.
12970 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12971 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12972 have_neon, is_m>: Change to bool.
12973
aeefc73c
CB
129742020-02-12 Christian Biesinger <cbiesinger@google.com>
12975
12976 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12977
d27b8e5f
TT
129782020-02-12 Tom Tromey <tom@tromey.com>
12979
12980 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12981
cd5900f3
HD
129822020-02-12 Hannes Domani <ssbssa@yahoo.de>
12983
12984 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12985 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12986
f056b22b
TT
129872020-02-11 Tom Tromey <tom@tromey.com>
12988
12989 * psymtab.h: Update comment.
12990
f92ff6b5
TT
129912020-02-11 Tom Tromey <tom@tromey.com>
12992
12993 * gdb_obstack.h (struct auto_obstack): Use
12994 DISABLE_COPY_AND_ASSIGN.
12995
3fd6912b
TT
129962020-02-11 Tom Tromey <tom@tromey.com>
12997
12998 * dwarf2/frame.h (struct objfile): Don't forward declare.
12999
69ed9b74
CB
130002020-02-11 Christian Biesinger <cbiesinger@google.com>
13001
13002 * cris-tdep.c (cris_supply_gregset): Change signature to match
13003 what struct regset expects.
13004 (cris_regset): New struct.
13005 (fetch_core_registers): Remove.
13006 (cris_iterate_over_regset_sections): New function.
13007 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13008 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13009
bda874f6
CB
130102020-02-11 Christian Biesinger <cbiesinger@google.com>
13011
13012 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13013 registers.
13014
754e1564
CB
130152020-02-11 Christian Biesinger <cbiesinger@google.com>
13016
13017 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13018
8ddd8e0e
SM
130192020-02-11 Simon Marchi <simon.marchi@efficios.com>
13020
13021 * configure: Re-generate.
13022
898e7f60
SM
130232020-02-11 Simon Marchi <simon.marchi@efficios.com>
13024
13025 * configure: Re-generate.
13026
58df732b
SM
130272020-02-11 Simon Marchi <simon.marchi@efficios.com>
13028
13029 * acinclude: Update warning.m4 path.
13030 * warning.m4: Move to gdbsupport.
13031
da5bd37e
TT
130322020-02-11 Tom Tromey <tromey@adacore.com>
13033
13034 * remote.c (remote_console_output): Update.
13035 * printcmd.c (printf_command): Update.
13036 * event-loop.c (gdb_wait_for_event): Update.
13037 * linux-nat.c (sigchld_handler): Update.
13038 * remote-sim.c (gdb_os_write_stdout): Update.
13039 (gdb_os_flush_stdout): Update.
13040 (gdb_os_flush_stderr): Update.
13041 (gdb_os_write_stderr): Update.
13042 * exceptions.c (print_exception): Update.
13043 * remote-fileio.c (remote_fileio_func_read): Update.
13044 (remote_fileio_func_write): Update.
13045 * tui/tui.c (tui_enable): Update.
13046 * tui/tui-interp.c (tui_interp::init): Update.
13047 * utils.c (init_page_info): Update.
13048 (putchar_unfiltered, fputc_unfiltered): Update.
13049 (gdb_flush): Update.
13050 (emit_style_escape): Update.
13051 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13052 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13053 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13054 (stderr_file::write): Update.
13055 (stderr_file::puts): Update.
13056 * ui-file.h (ui_file_isatty, ui_file_write)
13057 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13058 (ui_file_puts): Don't declare.
13059
85f0dd3c
TV
130602020-02-10 Tom de Vries <tdevries@suse.de>
13061
13062 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13063 sentinel to char *.
13064
2e927613
TV
130652020-02-09 Tom de Vries <tdevries@suse.de>
13066
13067 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13068 filename if it matches "<artificial>".
13069
6bafc845
HD
130702020-02-09 Hannes Domani <ssbssa@yahoo.de>
13071
13072 * windows-tdep.c (struct enum_value_name): New struct.
13073 (create_enum): New function.
13074 (windows_get_siginfo_type): Create and use enum types.
13075
7928d571
HD
130762020-02-09 Hannes Domani <ssbssa@yahoo.de>
13077
13078 * NEWS: Mention $_siginfo support for Windows.
13079 * windows-nat.c (handle_exception): Set siginfo_er.
13080 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13081 (windows_xfer_siginfo): New function.
13082 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13083 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13084 (init_windows_gdbarch_data): New function.
13085 (get_windows_gdbarch_data): New function.
13086 (windows_get_siginfo_type): New function.
13087 (windows_init_abi): Register windows_get_siginfo_type.
13088 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13089
6751ebae
TT
130902020-02-08 Tom Tromey <tom@tromey.com>
13091
13092 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13093 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13094 <keep>: Declare method.
13095 <m_keep>: Remove member.
13096 <~cutu_reader>: Remove.
13097 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13098 (cutu_reader::cutu_reader): Update.
13099 (cutu_reader::keep): Rename from ~cutu_reader.
13100 (process_psymtab_comp_unit, build_type_psymtabs_1)
13101 (process_skeletonless_type_unit, load_partial_comp_unit)
13102 (load_full_comp_unit, dwarf2_read_addr_index)
13103 (read_signatured_type): Update.
13104
135f5437
TT
131052020-02-08 Tom Tromey <tom@tromey.com>
13106
13107 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13108 "want_partial_unit" parameter.
13109 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13110 Inline check for DW_TAG_partial_unit.
13111 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13112
9f66ff1c
TT
131132020-02-08 Tom Tromey <tom@tromey.com>
13114
13115 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13116 read.c.
13117 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13118 read.c.
13119
c8a7a66f
TT
131202020-02-08 Tom Tromey <tom@tromey.com>
13121
13122 * dwarf2/read.c (read_address): Move to comp-unit.c.
13123 (dwarf2_rnglists_process, dwarf2_ranges_process)
13124 (read_attribute_value, dwarf_decode_lines_1)
13125 (var_decode_location, decode_locdesc): Update.
13126 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13127 read.c. Remove "cu" parameter.
13128 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13129 method.
13130
8266302d
TT
131312020-02-08 Tom Tromey <tom@tromey.com>
13132
13133 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13134 (read_indirect_line_string): Update.
13135 * dwarf2/comp-unit.c (read_offset): Remove.
13136 (read_comp_unit_head): Update.
13137 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13138 method.
13139 (read_offset): Don't declare.
13140
4057dfde
TT
131412020-02-08 Tom Tromey <tom@tromey.com>
13142
13143 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13144 * dwarf2/read.c (struct comp_unit_head): Move to
13145 dwarf2/comp-unit.h.
13146 (enum class rcuh_kind): Move to comp-unit.h.
13147 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13148 (read_comp_unit_head, error_check_comp_unit_head)
13149 (read_and_check_comp_unit_head): Move to comp-unit.c.
13150 (read_offset, dwarf_unit_type_name): Likewise.
13151 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13152 (cutu_reader::cutu_reader, read_call_site_scope)
13153 (find_partial_die, follow_die_offset): Update.
13154 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13155
24aa364d
TT
131562020-02-08 Tom Tromey <tom@tromey.com>
13157
13158 * dwarf2/read.c (read_offset_1): Move to leb.c.
13159 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13160 (dwarf_decode_macro_bytes): Update.
13161 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13162 * dwarf2/leb.h (read_offset): Declare.
13163
2c7d5afc
TT
131642020-02-08 Tom Tromey <tom@tromey.com>
13165
13166 * dwarf2/read.c (dwarf2_section_size): Remove.
13167 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13168 Update.
13169 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13170
4075cb26
TT
131712020-02-08 Tom Tromey <tom@tromey.com>
13172
13173 * dwarf2/read.c (read_initial_length): Move to leb.c.
13174 * dwarf2/leb.h (read_initial_length): Declare.
13175 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13176 handle_nonstd parameter.
13177 * dwarf2/frame.c (read_initial_length): Remove.
13178 (decode_frame_entry_1): Update.
13179
09ba997f
TT
131802020-02-08 Tom Tromey <tom@tromey.com>
13181
13182 * dwarf2/loc.c (dwarf2_find_location_expression)
13183 (dwarf_evaluate_loc_desc::get_tls_address)
13184 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13185 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13186 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13187 (dwarf2_compile_property_to_c)
13188 (dwarf2_loc_desc_get_symbol_read_needs)
13189 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13190 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13191 (loclist_describe_location, loclist_tracepoint_var_ref)
13192 (loclist_generate_c_location): Update.
13193 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13194 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13195 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13196 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13197 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13198 (dwarf2_per_cu_data::addr_size)
13199 (dwarf2_per_cu_data::ref_addr_size)
13200 (dwarf2_per_cu_data::text_offset)
13201 (dwarf2_per_cu_data::addr_type): Now methods.
13202 (per_cu_header_read_in): Make per_cu "const".
13203 (dwarf2_version): Remove.
13204 (dwarf2_per_cu_data::int_type): Now a method.
13205 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13206 (set_die_type, read_array_type, read_subrange_index_type)
13207 (read_tag_string_type, read_subrange_type): Update.
13208 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13209 offset_size, ref_addr_size, text_offset, addr_type, version,
13210 objfile, int_type, addr_sized_int_type>: Declare methods.
13211
96c738c0
TT
132122020-02-08 Tom Tromey <tom@tromey.com>
13213
13214 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13215 Move earlier.
13216
8fdd972c
TT
132172020-02-08 Tom Tromey <tom@tromey.com>
13218
13219 * dwarf2/read.h (dwarf_line_debug): Declare.
13220 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13221 * dwarf2/read.c: Move line_header code to new files.
13222 (dwarf_line_debug): No longer static.
13223 * dwarf2/line-header.c: New file.
13224 * dwarf2/line-header.h: New file.
13225
03075812
TT
132262020-02-08 Tom Tromey <tom@tromey.com>
13227
13228 * dwarf2/read.c (struct line_header) <file_full_name,
13229 file_file_name>: Return unique_xmalloc_ptr.
13230 (line_header::file_file_name): Update.
13231 (line_header::file_full_name): Update.
13232 (dw2_get_file_names_reader): Update.
13233 (macro_start_file): Update.
13234
bb822404
TT
132352020-02-08 Tom Tromey <tom@tromey.com>
13236
13237 * dwarf2/read.c (struct line_header) <file_full_name,
13238 file_file_name>: Declare methods.
13239 (dw2_get_file_names_reader): Update.
13240 (file_file_name): Now a method.
13241 (file_full_name): Likewise.
13242 (macro_start_file): Update.
13243
009b64fc
TT
132442020-02-08 Tom Tromey <tom@tromey.com>
13245
13246 * dwarf2/read.c (dwarf_always_disassemble)
13247 (show_dwarf_always_disassemble): Move to loc.c.
13248 (_initialize_dwarf2_read): Move "always-disassemble" registration
13249 to loc.c.
13250 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13251 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13252 static.
13253 (show_dwarf_always_disassemble): Move from read.c.
13254 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13255
5895093f
TT
132562020-02-08 Tom Tromey <tom@tromey.com>
13257
13258 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13259 (create_quick_file_names_table): Return htab_up.
13260 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13261 Update.
13262 * dwarf2/read.h (struct dwarf2_per_objfile)
13263 <quick_file_names_table>: Now htab_up.
13264
b3b32279
TT
132652020-02-08 Tom Tromey <tom@tromey.com>
13266
13267 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13268
1d33d811
TT
132692020-02-08 Tom Tromey <tom@tromey.com>
13270
13271 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13272 Rewrite.
13273 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13274 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13275 (abbrev_table::abbrev_table): No longer inline.
13276 (ABBREV_HASH_SIZE): Remove.
13277 (abbrev_table::m_abbrevs): Now an htab_up.
13278
86de1d91
TT
132792020-02-08 Tom Tromey <tom@tromey.com>
13280
13281 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13282 (cutu_reader): Update.
13283 (build_type_psymtabs_1): Update.
13284 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13285 (abbrev_table::alloc_abbrev): Update.
13286 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13287 (abbrev_table::read): New static method, renamed from
13288 abbrev_table_read_table.
13289 (abbrev_table::alloc_abbrev)
13290 (abbrev_table::add_abbrev): Now private.
13291 (abbrev_table::abbrev_table): Now private.
13292 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13293
0335378b
TT
132942020-02-08 Tom Tromey <tom@tromey.com>
13295
13296 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13297 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13298 htab_up.
13299
48b490f2
TT
133002020-02-08 Tom Tromey <tom@tromey.com>
13301
13302 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13303 htab_up.
13304 (lookup_dwo_unit_in_dwp): Update.
13305 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13306 on obstack.
13307
bc68fb19
TT
133082020-02-08 Tom Tromey <tom@tromey.com>
13309
13310 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13311 obstack.
13312
d15acc42
TT
133132020-02-08 Tom Tromey <tom@tromey.com>
13314
13315 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13316 line_header_hash.
13317 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13318 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13319 Change type to htab_up.
13320
eaa5fa8b
TT
133212020-02-08 Tom Tromey <tom@tromey.com>
13322
13323 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13324 htab_up. Don't allocate on obstack.
13325 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13326 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13327 Change type to htab_up.
13328
b0b6a987
TT
133292020-02-08 Tom Tromey <tom@tromey.com>
13330
13331 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13332 Change type to htab_up.
13333 * dwarf2/read.c (create_signatured_type_table_from_index)
13334 (create_signatured_type_table_from_debug_names)
13335 (create_all_type_units, add_type_unit)
13336 (lookup_dwo_signatured_type, lookup_signatured_type)
13337 (process_skeletonless_type_unit): Update.
13338 (create_debug_type_hash_table, create_debug_types_hash_table):
13339 Change type of types_htab.
13340 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13341 htab_up. Don't allocate on obstack.
13342 (create_cus_hash_table): Change type of cus_htab parameter.
13343 (struct dwo_file) <cus, tus>: Now htab_up.
13344 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13345 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13346 (queue_and_load_all_dwo_tus): Update.
13347 * dwarf2/index-write.c (write_gdbindex): Update.
13348 (write_debug_names): Update.
13349
39856def
TT
133502020-02-08 Tom Tromey <tom@tromey.com>
13351
13352 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13353 dwarf2/read.c. Remove "next" member. Add constructor ntad
13354 destructor.
13355 (struct dwarf2_per_objfile) <queue>: New member.
13356 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13357 dwarf2/read.h.
13358 (dwarf2_queue, dwarf2_queue_tail): Remove.
13359 (class dwarf2_queue_guard): Add parameter to constructor. Use
13360 DISABLE_COPY_AND_ASSIGN.
13361 <m_per_objfile>: New member.
13362 <~dwarf2_queue_guard>: Rewrite.
13363 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13364 Update.
13365 (~dwarf2_queue_item): New.
13366
3e225074
TT
133672020-02-08 Tom Tromey <tom@tromey.com>
13368
13369 * dwarf2/read.c (struct die_info) <has_children>: New member.
13370 (dw2_get_file_names_reader): Remove has_children.
13371 (dw2_get_file_names): Update.
13372 (read_cutu_die_from_dwo): Remove has_children.
13373 (cutu_reader::init_tu_and_read_dwo_dies)
13374 (cutu_reader::cutu_reader): Update.
13375 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13376 Remove has_children.
13377 (build_type_psymtabs_1, process_skeletonless_type_unit)
13378 (load_partial_comp_unit, load_full_comp_unit): Update.
13379 (create_dwo_cu_reader): Remove has_children.
13380 (create_cus_hash_table, read_die_and_children): Update.
13381 (read_full_die_1,read_full_die): Remove has_children.
13382 (read_signatured_type): Update.
13383 (class cutu_reader) <has_children>: Remove.
13384
82ca8957
TT
133852020-02-08 Tom Tromey <tom@tromey.com>
13386
13387 * dwarf2/expr.c: Rename from dwarf2expr.c.
13388 * dwarf2/expr.h: Rename from dwarf2expr.h.
13389 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13390 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13391 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13392 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13393 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13394 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13395 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13396 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13397 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13398 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13399 * dwarf2/loc.c: Rename from dwarf2loc.c.
13400 * dwarf2/loc.h: Rename from dwarf2loc.h.
13401 * dwarf2/read.c: Rename from dwarf2read.c.
13402 * dwarf2/read.h: Rename from dwarf2read.h.
13403 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13404 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13405 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13406 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13407 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13408 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13409 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13410 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13411 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13412 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13413 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13414 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13415 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13416 Update.
13417 * Makefile.in (COMMON_SFILES): Update.
13418 (HFILES_NO_SRCDIR): Update.
13419
9e35d499
TT
134202020-02-08 Tom Tromey <tom@tromey.com>
13421
13422 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13423 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13424
1eba2311
TT
134252020-02-08 Tom Tromey <tom@tromey.com>
13426
13427 * dwarf2read.h (struct die_info): Don't declare.
13428
e41c2da2
TT
134292020-02-08 Tom Tromey <tom@tromey.com>
13430
13431 * dwarf2read.h (die_info_ptr): Remove typedef.
13432
4fc6c0d5
TT
134332020-02-08 Tom Tromey <tom@tromey.com>
13434
13435 * dwarf2read.c (read_call_site_scope)
13436 (handle_data_member_location, dwarf2_add_member_fn)
13437 (mark_common_block_symbol_computed, read_common_block)
13438 (attr_to_dynamic_prop, partial_die_info::read)
13439 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13440 (dwarf2_symbol_mark_computed, set_die_type): Update.
13441 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13442 method.
13443 (attr_form_is_block): Don't declare.
13444 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13445
cd6c91b4
TT
134462020-02-08 Tom Tromey <tom@tromey.com>
13447
13448 * dwarf2read.c (dwarf2_find_base_address, )
13449 (read_call_site_scope, rust_containing_type)
13450 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13451 (handle_data_member_location, dwarf2_add_member_fn)
13452 (get_alignment, read_structure_type, process_structure_scope)
13453 (mark_common_block_symbol_computed, read_common_block)
13454 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13455 (partial_die_info::read, read_attribute_value, new_symbol)
13456 (lookup_die_type, dwarf2_get_ref_die_offset)
13457 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13458 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13459 (dwarf2_symbol_mark_computed): Update.
13460 * dwarf2/attribute.h (struct attribute) <value_as_address,
13461 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13462 methods.
13463 (value_as_address, attr_form_is_section_offset)
13464 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13465 * dwarf2/attribute.c (attribute::value_as_address)
13466 (attribute::form_is_section_offset, attribute::form_is_constant)
13467 (attribute::form_is_ref): Now methods.
13468
162dce55
TT
134692020-02-08 Tom Tromey <tom@tromey.com>
13470
13471 * dwarf2read.c (struct attribute, DW_STRING)
13472 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13473 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13474 (attr_form_is_block, attr_form_is_section_offset)
13475 (attr_form_is_constant, attr_form_is_ref): Move.
13476 * dwarf2/attribute.h: New file.
13477 * dwarf2/attribute.c: New file, from dwarf2read.c.
13478 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13479
3054dd54
TT
134802020-02-08 Tom Tromey <tom@tromey.com>
13481
13482 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13483 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13484 Move.
13485 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13486 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13487 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13488 abbrev.c.
13489 * dwarf2/abbrev.h: New file.
13490 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13491 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13492
96b79293
TT
134932020-02-08 Tom Tromey <tom@tromey.com>
13494
13495 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13496 (dwarf2_section_size, dwarf2_get_section_info)
13497 (create_signatured_type_table_from_debug_names)
13498 (create_addrmap_from_aranges, read_debug_names_from_section)
13499 (get_gdb_index_contents_from_section, read_comp_unit_head)
13500 (error_check_comp_unit_head, read_abbrev_offset)
13501 (create_debug_type_hash_table, init_cu_die_reader)
13502 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13503 (read_comp_units_from_section, create_cus_hash_table)
13504 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13505 (create_dwp_v2_section, dwarf2_rnglists_process)
13506 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13507 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13508 (read_indirect_string_from_dwz, read_addr_index_1)
13509 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13510 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13511 (fill_in_loclist_baton): Update.
13512 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13513 get_containing_section, get_bfd_owner, get_bfd_section,
13514 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13515 (dwarf2_read_section, get_section_name, get_section_file_name)
13516 (get_containing_section, get_section_bfd_owner)
13517 (get_section_bfd_section, get_section_name, get_section_file_name)
13518 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13519 declare.
13520 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13521 (dwarf2_section_info::get_bfd_owner)
13522 (dwarf2_section_info::get_bfd_section)
13523 (dwarf2_section_info::get_name)
13524 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13525 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13526 (dwarf2_section_info::read): Now methods.
13527 * dwarf-index-write.c (class debug_names): Update.
13528
2c86cff9
TT
135292020-02-08 Tom Tromey <tom@tromey.com>
13530
13531 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13532 Move to dwarf2/section.h.
13533 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13534 (get_section_bfd_section, get_section_name)
13535 (get_section_file_name, get_section_id, get_section_flags)
13536 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13537 dwarf2/section.c.
13538 * dwarf2/section.h: New file.
13539 * dwarf2/section.c: New file, from dwarf2read.c.
13540 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13541
f4382c45
TT
135422020-02-08 Tom Tromey <tom@tromey.com>
13543
13544 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13545 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13546 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13547 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13548 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13549 * dwarf2/leb.h: New file, from dwarf2read.c.
13550 * dwarf2/leb.c: New file, from dwarf2read.c.
13551 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13552 Remove.
13553 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13554 (COMMON_SFILES): Add dwarf2/leb.c.
13555
01840b7a
JB
135562020-02-08 Joel Brobecker <brobecker@adacore.com>
13557
13558 GDB 9.1 released.
13559
dfcb27e4
IB
135602020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13561
13562 PR gdb/25190:
aac66a4c
SM
13563 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13564 * gdb/remote.c (remote_console_output): Update.
13565 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13566 (ui_file_puts): ...this.
13567 * gdb/ui-file.h (ui_file_puts): Add declaration.
13568 * gdb/utils.c (emit_style_escape): Update.
13569 (flush_wrap_buffer): Update.
13570 (fputs_maybe_filtered): Update.
13571 (fputs_unfiltered): Add function.
dfcb27e4 13572
faa17681
IB
135732020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13574
aac66a4c
SM
13575 * gdb/event-loop.c (gdb_wait_for_event): Update.
13576 * gdb/printcmd.c (printf_command): Update.
13577 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13578 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13579 (gdb_os_flush_stderr): Update.
13580 * gdb/remote.c (remote_console_output): Update.
13581 * gdb/ui-file.c (gdb_flush): Rename to...
13582 (ui_file_flush): ...this.
13583 (stderr_file::write): Update.
13584 (stderr_file::puts): Update.
13585 * gdb/ui-file.h (gdb_flush): Rename to...
13586 (ui_file_flush): ...this.
13587 * gdb/utils.c (gdb_flush): Add function.
13588 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13589
5abbbe1d
TT
135902020-02-07 Tom Tromey <tromey@adacore.com>
13591
13592 PR breakpoints/24915:
13593 * source.c (find_and_open_source): Do not check basenames_may_differ.
13594
919adfe8
TT
135952020-02-07 Tom Tromey <tom@tromey.com>
13596
13597 * README: Update gdbserver documentation.
13598 * gdbserver: Move to top level.
13599 * configure.tgt (build_gdbserver): Remove.
13600 * configure.ac: Remove --enable-gdbserver.
13601 * configure: Rebuild.
13602 * Makefile.in (distclean): Don't mention gdbserver.
13603
1d5d29e7
SV
136042020-02-06 Shahab Vahedi <shahab@synopsys.com>
13605
13606 * source-cache.c (source_cache::ensure): Surround
13607 get_plain_source_lines with a try/catch.
13608 (source_cache::get_line_charpos): Get rid of try/catch
13609 and only check for the return value of "ensure".
13610 * tui/tui-source.c (tui_source_window::set_contents):
13611 Simplify "nlines" calculation.
13612
6eb1129c
SV
136132020-02-06 Shahab Vahedi <shahab@synopsys.com>
13614
13615 * MAINTAINERS (Write After Approval): Add myself.
13616
c6a42d11
CB
136172020-02-05 Christian Biesinger <cbiesinger@google.com>
13618
13619 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13620 function call.
13621
c8ecdda6
CB
136222020-02-05 Christian Biesinger <cbiesinger@google.com>
13623
13624 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13625
f6480e70
MR
136262020-02-05 Maciej W. Rozycki <macro@wdc.com>
13627
13628 * nat/riscv-linux-tdesc.h: New file.
13629 * nat/riscv-linux-tdesc.c: New file, taking code from...
13630 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13631 ... here.
13632 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13633 NATDEPFILES.
13634
dcc9fbc6
AB
136352020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13636
13637 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13638 we don't set the fake simulator ptid to the null_ptid.
13639
719546c4
SM
136402020-02-03 Simon Marchi <simon.marchi@efficios.com>
13641
13642 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13643 * gdbthread.h (class thread_info) <resumed>: Likewise.
13644 * infrun.c (resume_1): Likewise.
13645 (proceed): Likewise.
13646 (infrun_thread_stop_requested): Likewise.
13647 (stop_all_threads): Likewise.
13648 (handle_inferior_event): Likewise.
13649 (restart_threads): Likewise.
13650 (finish_step_over): Likewise.
13651 (keep_going_stepped_thread): Likewise.
13652 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13653 (linux_handle_extended_wait): Likewise.
13654 * record-btrace.c (get_thread_current_frame_id): Likewise.
13655 * record-full.c (record_full_wait_1): Likewise.
13656 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13657 * target.c (target_resume): Likewise.
13658 * thread.c (set_running_thread): Likewise.
13659
e409c542
AKS
136602020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13661
13662 * f-valprint.c (f77_print_array_1): Changed datatype of index
13663 variable to LONGEST from int to enable it to contain bound
13664 values correctly.
13665
ee98c0da
MR
136662020-02-03 Maciej W. Rozycki <macro@wdc.com>
13667
13668 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13669 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13670 offsets according to FLEN determined.
13671 (riscv_linux_nat_target::read_description): Determine FLEN
13672 dynamically.
13673 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13674 according to FLEN determined.
13675 (riscv_linux_nat_target::store_registers): Likewise.
13676
aa66aac4
SV
136772020-02-01 Shahab Vahedi <shahab@synopsys.com>
13678
13679 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13680 when reg->group is empty and reggroup is not.
13681
fd9faca8
TT
136822020-01-31 Tom Tromey <tromey@adacore.com>
13683
13684 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13685 Call beneath target's mourn_inferior after unpushing.
13686
42330a68
AB
136872020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13688
13689 PR tui/9765
13690 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13691 have enough lines to fill the screen, still return the lowest
13692 address we found.
13693
7a27a45b
AB
136942020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13695
13696 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13697 '-', '<', and '>' commands.
13698
c47f70e2
PA
136992020-01-29 Pedro Alves <palves@redhat.com>
13700 Sergio Durigan Junior <sergiodj@redhat.com>
13701
13702 * infcmd.c (construct_inferior_arguments): Assert that
13703 'argc' is greater than 0.
13704
5133a315
LM
137052020-01-29 Luis Machado <luis.machado@linaro.org>
13706
13707 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13708 (BRK_INSN_MASK): Define to 0xd4200000.
13709 (aarch64_program_breakpoint_here_p): New function.
13710 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13711 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13712 breakpoint.c.
13713 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13714 breakpoint.h
13715 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13716 call gdbarch_program_breakpoint_here_p.
13717 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13718 default_program_breakpoint_here_p, changed return type to bool and
13719 simplified.
13720 * breakpoint.h (program_breakpoint_here): Moved prototype to
13721 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13722 return type to bool.
13723 * gdbarch.c: Regenerate.
13724 * gdbarch.h: Regenerate.
13725 * gdbarch.sh (program_breakpoint_here_p): New method.
13726 * infrun.c (handle_signal_stop): Call
13727 gdbarch_program_breakpoint_here_p.
13728
168f8c6b
TT
137292020-01-26 Tom Tromey <tom@tromey.com>
13730
13731 * ctfread.c (struct ctf_fp_info): Reindent.
13732 (_initialize_ctfread): Remove.
13733
128a391f
TT
137342020-01-26 Tom Tromey <tom@tromey.com>
13735
13736 * psymtab.c (partial_map_expand_apply)
13737 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13738 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13739 (psym_print_stats, psym_expand_symtabs_for_function)
13740 (psym_map_symbol_filenames, psym_map_matching_symbols)
13741 (psym_expand_symtabs_matching)
13742 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13743 (maintenance_check_psymtabs): Use new methods.
13744 * psympriv.h (struct partial_symtab) <readin_p,
13745 get_compunit_symtab>: New methods.
13746 <readin, compunit_symtab>: Remove members.
13747 (struct standard_psymtab): New.
13748 (struct legacy_psymtab): Derive from standard_psymtab.
13749 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13750 standard_psymtab.
13751 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13752
0494dbec
TT
137532020-01-26 Tom Tromey <tom@tromey.com>
13754
13755 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13756 read_dependencies. Add assert.
13757 * psymtab.c (partial_symtab::read_dependencies): New method.
13758 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13759 method.
13760 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13761 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13762 read_dependencies.
13763 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13764 Add assert.
13765
8566b89b
TT
137662020-01-26 Tom Tromey <tom@tromey.com>
13767
13768 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13769 Call expand_psymtab.
13770 (xcoff_read_symtab): Call expand_psymtab.
13771 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13772 legacy_expand_psymtab.
13773 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13774 method.
13775 (struct legacy_psymtab) <expand_psymtab>: Implement.
13776 <legacy_expand_psymtab>: New member.
13777 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13778 (parse_partial_symbols): Set legacy_expand_psymtab.
13779 (psymtab_to_symtab_1): Change argument order. Call
13780 expand_psymtab.
13781 (new_psymtab): Set legacy_expand_psymtab.
13782 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13783 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13784 expand_psymtab.
13785 (dwarf2_psymtab::expand_psymtab): Rename from
13786 psymtab_to_symtab_1. Call expand_psymtab.
13787 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13788 (dbx_end_psymtab): Likewise.
13789 (dbx_psymtab_to_symtab_1): Change argument order. Call
13790 expand_psymtab.
13791 (dbx_read_symtab): Call expand_psymtab.
13792 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13793 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13794 (ctf_psymtab::read_symtab): Call expand_psymtab.
13795
077cbab2
TT
137962020-01-26 Tom Tromey <tom@tromey.com>
13797
13798 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13799 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13800 messages.
13801 * mdebugread.c (mdebug_read_symtab): Remove prints.
13802 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13803 assert.
13804 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13805
891813be
TT
138062020-01-26 Tom Tromey <tom@tromey.com>
13807
13808 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13809 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13810 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13811 legacy_symtab.
13812 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13813 * psymtab.c (psymtab_to_symtab): Call method.
13814 (dump_psymtab): Update.
13815 * psympriv.h (struct partial_symtab): Add virtual destructor.
13816 <read_symtab>: New method.
13817 (struct legacy_symtab): New.
13818 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13819 (struct pst_map) <pst>: Now a legacy_psymtab.
13820 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13821 (new_psymtab): Use legacy_psymtab.
13822 * dwarf2read.h (struct dwarf2_psymtab): New.
13823 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13824 * dwarf2read.c (dwarf2_create_include_psymtab)
13825 (dwarf2_build_include_psymtabs, create_type_unit_group)
13826 (create_partial_symtab, process_psymtab_comp_unit_reader)
13827 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13828 (set_partial_user): Use dwarf2_psymtab.
13829 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13830 (psymtab_to_symtab_1, process_full_comp_unit)
13831 (process_full_type_unit, dwarf2_ranges_read)
13832 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13833 (dwarf_decode_lines): Use dwarf2_psymtab.
13834 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13835 (add_address_entry_worker, write_one_signatured_type)
13836 (recursively_count_psymbols, recursively_write_psymbols)
13837 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13838 (write_debug_names): Likewise.
13839 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13840 <pst>: Now a legacy_psymtab.
13841 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13842 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13843 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13844 * ctfread.c (struct ctf_psymtab): New.
13845 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13846 ctf_psymtab.
13847 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13848 (create_partial_symtab): Return a ctf_psymtab.
13849 (scan_partial_symbols): Update.
13850
c3693a1d
TT
138512020-01-26 Tom Tromey <tom@tromey.com>
13852
13853 * xcoffread.c (xcoff_start_psymtab): Use new.
13854 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13855 renamed from start_psymtab_common.
13856 * psympriv.h (struct partial_symtab): Add new constructor.
13857 (start_psymtab_common): Don't declare.
13858 * mdebugread.c (parse_partial_symbols): Use new.
13859 * dwarf2read.c (create_partial_symtab): Use new.
13860 * dbxread.c (start_psymtab): Use new.
13861 * ctfread.c (create_partial_symtab): Use new.
13862
32caafd0
TT
138632020-01-26 Tom Tromey <tom@tromey.com>
13864
13865 * xcoffread.c (xcoff_end_psymtab): Use new.
13866 * psymtab.c (start_psymtab_common): Use new.
13867 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13868 Update.
13869 * psympriv.h (struct partial_symtab): Add parameters to
13870 constructor. Don't inline.
13871 (allocate_psymtab): Don't declare.
13872 * mdebugread.c (new_psymtab): Use new.
13873 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13874 * dbxread.c (dbx_end_psymtab): Use new.
13875
abaa2f23
TT
138762020-01-26 Tom Tromey <tom@tromey.com>
13877
13878 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13879 allocate_psymtab. Update documentation.
13880 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13881 allocate_psymtab. Do not use new.
13882 (allocate_psymtab): Use new. Update.
13883
6d94535f
TT
138842020-01-26 Tom Tromey <tom@tromey.com>
13885
13886 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13887 * psymtab.c (psym_print_stats): Update.
13888 * psympriv.h (struct partial_symtab) <readin,
13889 psymtabs_addrmap_supported, anonymous>: Now bool.
13890 * mdebugread.c (psymtab_to_symtab_1): Update.
13891 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13892 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13893 (process_full_comp_unit, process_full_type_unit): Update.
13894 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13895 * ctfread.c (psymtab_to_symtab): Update.
13896
6f17252b
TT
138972020-01-26 Tom Tromey <tom@tromey.com>
13898
13899 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13900 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13901 * psymtab.c (psymtab_storage): Delete psymtabs.
13902 (psymtab_storage::allocate_psymtab): Use new.
13903 (psymtab_storage::discard_psymtab): Use delete.
13904 * psympriv.h (struct partial_symtab): Add constructor and
13905 initializers.
13906
f6f1cebc
TT
139072020-01-26 Tom Tromey <tom@tromey.com>
13908
13909 * machoread.c: Do not include psympriv.h.
13910
e47e48f6
PW
139112020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13912
13913 * NEWS: Mention the new option and the set/show commands.
13914
a2fedca9
PW
139152020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13916
13917 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13918 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13919 (validate_exec_file): New variables, enums, functions.
13920 (exec_file_locate_attach, print_section_info): Style the filenames.
13921 (_initialize_exec): Install show_exec_file_mismatch_command and
13922 set_exec_file_mismatch_command.
13923 * gdbcore.h (validate_exec_file): Declare.
13924 * infcmd.c (attach_command): Call validate_exec_file.
13925 * remote.c ( remote_target::remote_add_inferior): Likewise.
13926
7ffa82e1
AB
139272020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13928
13929 * frame.c (find_frame_sal): Move call to get_next_frame into more
13930 inner scope.
13931 * inline-frame.c (inilne_state) <inline_state>: Update argument
13932 types.
13933 (inilne_state) <skipped_symbol>: Rename to...
13934 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13935 (skip_inline_frames): Build vector of skipped symbols and use this
13936 to reate the inline_state.
13937 (inline_skipped_symbol): Add a comment and some assertions, fetch
13938 skipped symbol from the list.
13939
3d92a3e3
AB
139402020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13941
13942 * buildsym.c (lte_is_less_than): Delete.
13943 (buildsym_compunit::end_symtab_with_blockvector): Create local
13944 lambda function to sort line table entries, and use
13945 std::stable_sort instead of std::sort.
13946 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13947 markers when looking for a previous line.
13948
94a72be7
AB
139492020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13950
13951 * dwarf2read.c (lnp_state_machine::record_line): Include
13952 end_sequence parameter in debug print out. Record the line if we
13953 are at an end_sequence marker even if it's not the start of a
13954 statement.
13955 * symmisc.c (maintenance_print_one_line_table): Print end of
13956 sequence markers with 'END' not '0'.
13957
53af73bf
PA
139582020-01-24 Pedro Alves <palves@redhat.com>
13959
13960 PR gdb/25410
13961 * thread.c (scoped_restore_current_thread::restore): Use
13962 switch_to_inferior_no_thread.
13963 * exec.c: Include "progspace-and-thread.h".
13964 (add_target_sections, remove_target_sections):
13965 scoped_restore_current_pspace_and_thread instead of
13966 scoped_restore_current_thread.
13967 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13968 and aspace to the inferior before calling clone_program_space.
13969 Remove stale comment.
13970
3050c6f4
CB
139712020-01-24 Christian Biesinger <cbiesinger@google.com>
13972
13973 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13974 (arm_netbsd_nat_target::fetch_registers): ...this.
13975 (arm_nbsd_nat_target::store_registers): Rename to...
13976 (arm_netbsd_nat_target::store_registers): ...this.
13977
73685c7e
CB
139782020-01-24 Christian Biesinger <cbiesinger@google.com>
13979
13980 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13981 register_t.
13982
89203d40
CB
139832020-01-24 Christian Biesinger <cbiesinger@google.com>
13984
13985 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13986 Update comment.
13987 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13988 Likewise.
13989 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13990 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13991 the correct replacement (iterate_over_regset_sections).
13992 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13993 Update comment.
13994
1ba1ac88
AB
139952020-01-24 Graham Markall <graham.markall@embecosm.com>
13996
13997 PR gdb/23718
13998 * gdb/python/python.c (execute_gdb_command): Call
13999 async_enable_stdin in catch block.
14000
f3364a6d
AB
140012020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14002
14003 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14004 SWITCH_THRU_ALL_UIS.
14005
733d0a67
AB
140062020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14007
14008 PR tui/9765
14009 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14010 comment, add extra parameter, and update to store previous symbol
14011 when appropriate.
14012 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14013 add extra parameter.
14014 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14015 remove unneeded parameter, add try/catch around gdb_print_insn,
14016 rewrite to add items to asm_lines vector.
14017 (tui_find_backward_disassembly_start_address): New function.
14018 (tui_find_disassembly_address): Updated throughout.
14019 (tui_disasm_window::set_contents): Update for changes to
14020 tui_disassemble.
14021 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14022 number of lines to scroll.
14023
b3b3bada
SM
140242020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14025
14026 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14027 (SECT_OFF_DATA): Likewise.
14028 (SECT_OFF_RODATA): Likewise.
14029 (SECT_OFF_TEXT): Likewise.
14030 (SECT_OFF_BSS): Likewise.
14031 (struct objfile) <text_section_offset, data_section_offset>: New
14032 methods.
14033 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14034 objfile::text_section_offset.
14035 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14036 * coffread.c (coff_symtab_read): Likewise.
14037 (enter_linenos): Likewise.
14038 (process_coff_symbol): Likewise.
14039 * ctfread.c (get_objfile_text_range): Likewise.
14040 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14041 Use objfile::data_section_offset.
14042 * dwarf2-frame.c (execute_cfa_program): Use
14043 objfile::text_section_offset.
14044 (dwarf2_frame_find_fde): Likewise.
14045 * dwarf2read.c (create_addrmap_from_index): Likewise.
14046 (create_addrmap_from_aranges): Likewise.
14047 (dw2_find_pc_sect_compunit_symtab): Likewise.
14048 (process_psymtab_comp_unit_reader): Likewise.
14049 (add_partial_symbol): Likewise.
14050 (add_partial_subprogram): Likewise.
14051 (process_full_comp_unit): Likewise.
14052 (read_file_scope): Likewise.
14053 (read_func_scope): Likewise.
14054 (read_lexical_block_scope): Likewise.
14055 (read_call_site_scope): Likewise.
14056 (dwarf2_rnglists_process): Likewise.
14057 (dwarf2_ranges_process): Likewise.
14058 (dwarf2_ranges_read): Likewise.
14059 (dwarf_decode_lines_1): Likewise.
14060 (new_symbol): Likewise.
14061 (dwarf2_fetch_die_loc_sect_off): Likewise.
14062 (dwarf2_per_cu_text_offset): Likewise.
14063 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14064 * hppa-tdep.c (read_unwind_info): Likewise.
14065 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14066 * psympriv.h (struct partial_symtab): Likewise.
14067 * psymtab.c (find_pc_sect_psymtab): Likewise.
14068 * solib-svr4.c (enable_break): Likewise.
14069 * stap-probe.c (relocate_address): Use
14070 objfile::data_section_offset.
14071 * xcoffread.c (enter_line_range): Use
14072 objfile::text_section_offset.
14073 (read_xcoff_symtab): Likewise.
14074
ab53f382
SM
140752020-01-23 Simon Marchi <simon.marchi@efficios.com>
14076
14077 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14078 declaration to narrower scopes.
14079
e7eee665
SM
140802020-01-23 Simon Marchi <simon.marchi@efficios.com>
14081
14082 * darwin-nat.h (struct darwin_exception_msg, enum
14083 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14084 Move up.
14085 (class darwin_nat_target) <wait_1, check_new_threads,
14086 decode_exception_message, decode_message, stop_inferior,
14087 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14088 * darwin-nat.c (darwin_check_new_threads): Rename to...
14089 (darwin_nat_target::check_new_threads): ... this.
14090 (darwin_suspend_inferior_it): Remove.
14091 (darwin_decode_exception_message): Rename to...
14092 (darwin_nat_target::decode_exception_message): ... this.
14093 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14094 (darwin_decode_message): Rename to...
14095 (darwin_nat_target::decode_message): ... this.
14096 (cancel_breakpoint): Rename to...
14097 (darwin_nat_target::cancel_breakpoint): ... this.
14098 (darwin_wait): Rename to...
14099 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14100 instead of iterate_over_inferiors.
14101 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14102 (darwin_stop_inferior): Rename to...
14103 (darwin_nat_target::stop_inferior): ... this.
14104 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14105 (darwin_init_thread_list): Rename to...
14106 (darwin_nat_target::init_thread_list): ... this.
14107 (darwin_ptrace_him): Rename to...
14108 (darwin_nat_target::ptrace_him): ... this.
14109 (darwin_nat_target::create_inferior): Pass lambda function to
14110 fork_inferior.
14111 (darwin_nat_target::detach): Call stop_inferior instead of
14112 darwin_stop_inferior.
14113 * fork-inferior.h (fork_inferior): Change init_trace_fun
14114 parameter to gdb::function_view.
14115 * fork-inferior.c (fork_inferior): Likewise.
14116
c162ed3e
HD
141172020-01-23 Hannes Domani <ssbssa@yahoo.de>
14118
14119 * i386-cygwin-tdep.c (core_process_module_section): Update.
14120 * windows-nat.c (struct lm_info_windows): Add text_offset.
14121 (windows_xfer_shared_libraries): Update.
14122 * windows-tdep.c (windows_xfer_shared_library):
14123 Add text_offset_cached argument.
14124 * windows-tdep.h (windows_xfer_shared_library): Update.
14125
a1237872
SM
141262020-01-21 Simon Marchi <simon.marchi@efficios.com>
14127
14128 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14129
b3ee6dd9
SM
141302020-01-21 Simon Marchi <simon.marchi@efficios.com>
14131
14132 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14133 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14134 replace with range-based for.
14135 (gdbsim_interrupt_inferior): Remove.
14136 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14137 with a range-based for. Inline code from
14138 gdbsim_interrupt_inferior.
14139
f9fac3c8
SM
141402020-01-21 Simon Marchi <simon.marchi@efficios.com>
14141
14142 * infrun.c (proceed): Fix indentation.
14143
f6474de9
TT
141442020-01-21 Tom Tromey <tromey@adacore.com>
14145
14146 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14147 * python/python.c (python_extension_ops): Update.
14148 (gdbpy_colorize): New function.
14149 * python/lib/gdb/__init__.py (colorize): New function.
14150 * extension.h (ext_lang_colorize): Declare.
14151 * extension.c (ext_lang_colorize): New function.
14152 * extension-priv.h (struct extension_language_ops) <colorize>: New
14153 member.
14154 * cli/cli-style.c (_initialize_cli_style): Update help text.
14155
f0c702d4
LM
141562020-01-21 Luis Machado <luis.machado@linaro.org>
14157
14158 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14159 <cond>: Change type to bool.
14160 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14161 (aarch64_displaced_step_cb): Likewise.
14162 (aarch64_displaced_step_tb): Likewise.
14163
1ab139e5
LM
141642020-01-21 Luis Machado <luis.machado@linaro.org>
14165
14166 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14167 output.
14168
0c271889
LM
141692020-01-21 Luis Machado <luis.machado@linaro.org>
14170
14171 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14172 <pc_adjust>: Adjust the documentation.
14173 (aarch64_displaced_step_fixup): Check if PC really moved before
14174 adjusting it.
14175
4d89c1c7
TT
141762020-01-19 Tom Tromey <tom@tromey.com>
14177
14178 * disasm.c (~gdb_disassembler): New destructor.
14179 (gdb_buffered_insn_length): Call disassemble_free_target.
14180 * disasm.h (class gdb_disassembler): Declare destructor. Use
14181 DISABLE_COPY_AND_ASSIGN.
14182
c0ab21c2
TT
141832020-01-19 Tom Tromey <tom@tromey.com>
14184
14185 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14186 (die_reader_func_ftype): Remove.
14187 (cutu_reader): New class.
14188 (dw2_get_file_names_reader): Remove "data" parameter.
14189 (dw2_get_file_names): Use cutu_reader.
14190 (create_debug_type_hash_table): Update.
14191 (read_cutu_die_from_dwo): Update comment.
14192 (lookup_dwo_unit): Add dwo_name parameter.
14193 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14194 die_reader_func_ftype and data parameters.
14195 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14196 Remove die_reader_func_ftype and data parameters.
14197 (~cutu_reader): New; from init_cutu_and_read_dies.
14198 (cutu_reader::cutu_reader): Rename from
14199 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14200 and data parameters.
14201 (init_cutu_and_read_dies_simple): Remove.
14202 (struct process_psymtab_comp_unit_data): Remove.
14203 (process_psymtab_comp_unit_reader): Remove data parameter; add
14204 want_partial_unit and pretend_language parameters.
14205 (process_psymtab_comp_unit): Use cutu_reader.
14206 (build_type_psymtabs_reader): Remove data parameter.
14207 (build_type_psymtabs_1): Use cutu_reader.
14208 (process_skeletonless_type_unit): Likewise.
14209 (load_partial_comp_unit_reader): Remove.
14210 (load_partial_comp_unit): Use cutu_reader.
14211 (load_full_comp_unit_reader): Remove.
14212 (load_full_comp_unit): Use cutu_reader.
14213 (struct create_dwo_cu_data): Remove.
14214 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14215 dwo_unit parameters.
14216 (create_cus_hash_table): Use cutu_reader.
14217 (struct dwarf2_read_addr_index_data): Remove.
14218 (dwarf2_read_addr_index_reader): Remove.
14219 (dwarf2_read_addr_index): Use cutu_reader.
14220 (read_signatured_type_reader): Remove.
14221 (read_signatured_type): Use cutu_reader.
14222
45bbae5c
TT
142232020-01-19 Tom Tromey <tom@tromey.com>
14224
14225 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14226 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14227 (tui_wrefresh): Declare.
14228 * tui/tui-wingeneral.c (suppress_output): New global.
14229 (tui_suppress_output, ~tui_suppress_output): New constructor and
14230 destructor.
14231 (tui_wrefresh): New function.
14232 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14233 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14234 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14235 method.
14236 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14237 tui_wrefresh.
14238 (tui_data_window::no_refresh): New method.
14239 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14240 (tui_reg_command): Use tui_suppress_output
14241 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14242 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14243 method.
14244 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14245
4f13c1c0
TT
142462020-01-19 Tom Tromey <tom@tromey.com>
14247
14248 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14249 Handle case where symtab is null.
14250
fa47e446
SM
142512020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14252
14253 * linux-fork.c (one_fork_p): Simplify.
14254
26f42329
SM
142552020-01-17 Simon Marchi <simon.marchi@efficios.com>
14256
14257 * top.c (struct qt_args): Remove.
14258 (kill_or_detach): Change return type to void, replace `void *`
14259 parameter with a proper one.
14260 (print_inferior_quit_action): Likewise.
14261 (quit_confirm): Use range-based for loop to iterate over inferiors.
14262 (quit_force): Likewise.
14263
a9ac81b1
SM
142642020-01-17 Simon Marchi <simon.marchi@efficios.com>
14265
14266 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14267 `void *` parameter with proper parameters.
14268 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14269 (print_one_inferior): Change return type to void, replace `void *`
14270 parameter with proper parameters.
14271 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14272 inferiors.
14273 (get_other_inferior): Remove.
14274 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14275 inferiors.
14276
788eca49
SM
142772020-01-17 Simon Marchi <simon.marchi@efficios.com>
14278
14279 * mi/mi-interp.c (report_initial_inferior): Remove.
14280 (mi_interp::init): Use range-based for to iterate over inferiors.
14281
d9bc85b6
SM
142822020-01-17 Simon Marchi <simon.marchi@efficios.com>
14283
14284 * python/py-inferior.c (build_inferior_list): Remove.
14285 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14286
40c94099
CB
142872020-01-16 Christian Biesinger <cbiesinger@google.com>
14288
14289 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14290 (btrace_stitch_trace): Likewise.
14291 * charset.c (intermediate_encoding): Likewise (vaild).
14292 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14293 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14294 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14295
e0cdfe3c
HD
142962020-01-16 Hannes Domani <ssbssa@yahoo.de>
14297
14298 * windows-tdep.c (windows_get_tlb_type):
14299 Add rtl_user_process_parameters type.
14300
790f1718 143012020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 14302 Norbert Lange <nolange79@gmail.com>
790f1718
PA
14303
14304 PR build/24805
14305 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14306 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14307 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14308 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14309 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14310 (ps_plog): Redeclare exported functions with default visibility.
14311
3112ed97
NA
143122020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14313
14314 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14315 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14316
8dc3273e
SM
143172020-01-15 Simon Marchi <simon.marchi@efficios.com>
14318
14319 * infcmd.c (post_create_inferior): Use get_thread_regcache
14320 instead of get_current_regcache.
14321
ff47f4f0
TT
143222020-01-14 Tom Tromey <tom@tromey.com>
14323
14324 PR symtab/12535:
14325 * python/python.c (gdbpy_decode_line): Treat empty string the same
14326 as no argument.
14327
975f45b7
TT
143282020-01-14 Tom Tromey <tom@tromey.com>
14329
14330 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14331
25e57356
TT
143322020-01-14 Tom Tromey <tom@tromey.com>
14333
14334 * nat/linux-btrace.c: Don't include <config.h>.
14335 * nat/linux-ptrace.c: Don't include <config.h>.
14336 * nat/x86-linux-dregs.c: Don't include <config.h>.
14337
05ea2a05
TT
143382020-01-14 Tom Tromey <tom@tromey.com>
14339
14340 * configure: Rebuild.
14341 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14342
01027315
TT
143432020-01-14 Tom Tromey <tom@tromey.com>
14344
14345 * nat/x86-linux-dregs.c: Include configh.h.
14346 * nat/linux-ptrace.c: Include configh.h.
14347 * nat/linux-btrace.c: Include configh.h.
14348 * defs.h: Include config.h, bfd.h.
14349 * configure.ac: Don't source common.host.
14350 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14351 * configure: Rebuild.
14352 * acinclude.m4: Update path.
14353 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14354 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14355 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14356 (CLIBS): Add LIBSUPPORT.
14357 (CDEPS): Likewise.
14358 (COMMON_SFILES): Remove gdbsupport files.
14359 (HFILES_NO_SRCDIR): Likewise.
14360 (stamp-version): Update path to create-version.sh.
14361 (ALLDEPFILES): Remove gdbsupport files.
14362
b2ceabe8
TT
143632020-01-14 Tom Tromey <tom@tromey.com>
14364
14365 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14366 USE_WIN32API when needed.
14367 * configure.ac (USE_WIN32API): Don't define.
14368 (WIN32LIBS): Use WIN32APILIBS.
14369 * configure: Rebuild.
14370
25c51f71
TT
143712020-01-14 Tom Tromey <tom@tromey.com>
14372
14373 * configure: Rebuild.
14374 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14375
717c684d
BE
143762020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14377
14378 * skip.c (skip_function_command): Make skip w/o arguments use the
14379 name of the inlined function if pc is inside any inlined function.
14380
7da6a5b9
LM
143812020-01-14 Luis Machado <luis.machado@linaro.org>
14382
14383 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14384 * infrun.c (resume_1): Likewise.
14385 (handle_inferior_event): Remove stale comment.
14386 * linux-nat.c (linux_nat_target::resume): Update comments.
14387 (save_stop_reason): Likewise.
14388 (linux_nat_filter_event): Likewise.
14389 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14390
44e4c775
AB
143912020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14392
14393 * elfread.c (record_minimal_symbol): Set section index to 0 for
14394 non-allocatable sections.
14395
18a8505e
AT
14396
143972020-01-13 Ali Tamur <tamur@google.com>
14398
14399 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14400 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14401 to gdb::optional. Update comments.
14402 (dwo_file): Update comments.
14403 (read_attribute): Update API to take an additional out parameter,
14404 need_reprocess. This is used to mark attributes that need other
14405 attributes (e.g. str_offsets_base) for correct computation which may not
14406 have been read yet.
14407 (read_attribute_reprocess): New function declaration.
14408 (read_addr_index): Likewise.
14409 (read_dwo_str_index): Likewise.
14410 (read_stub_str_index): Likewise.
14411 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14412 (lookup_addr_base): New function definition.
14413 (lookup_ranges_base): Likewise.
14414 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14415 lookup_ranges_base.
14416 (init_cutu_and_read_dies): Update comments.
14417 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14418 unit. This is used to inherit parent's str_offsets_base and addr_base.
14419 Update comments.
14420 (init_cutu_and_read_dies_simple): Reflect API changes.
14421 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14422 (create_cus_hash_table): Change API to take parent compile unit.
14423 Reflect API changes.
14424 (open_and_init_dwo_file): Reflect API changes.
14425 (dwarf2_get_pc_bounds): Update comments.
14426 (dwarf2_record_block_ranges): Likewise.
14427 (read_full_die_1): Change implementation to reprocess attributes that
14428 need str_offsets_base and addr_base.
14429 (partial_die_info::read): Likewise.
14430 (read_attribute_reprocess): New function definition.
14431 (read_attribute_value): Change API to take an additional out parameter,
14432 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14433 when a non-dwo compile unit has index based attributes.
14434 (read_attribute): Reflect API changes.
14435 (read_addr_index_1): Reflect API changes. Update comments.
14436 (dwarf2_read_addr_index_data): Reflect API changes.
14437 (dwarf2_read_addr_index): Likewise.
14438 (read_str_index): Change API and implementation. This becomes a helper
14439 to be used by the new string index related methods. Update error
14440 message and comments.
14441 (read_dwo_str_index): New function definition.
14442 (read_stub_str_index): Likewise.
14443 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14444 * symfile.h (dwarf2_debug_sections): Likewise.
14445 * xcoffread.c (dwarf2_debug_sections): Likewise.
14446
0cac9354
SM
144472020-01-13 Simon Marchi <simon.marchi@efficios.com>
14448
14449 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14450 core_reg_sect type to gdb_byte *.
14451 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14452 * cris-tdep.c (fetch_core_registers): Likewise.
14453 * corelow.c (core_target::get_core_register_section): Change
14454 type of `contents` to gdb::byte_vector.
14455
9a6d629c
AB
144562020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14457
14458 * tui/tui-wingeneral.c (box_win): Position the title in the center
14459 of the border.
14460
d8b2f9e3
SM
144612020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14462
14463 * corelow.c (core_target::get_core_register_section): Use
14464 std::vector instead of alloca.
14465
bb564c58
SM
144662020-01-13 Simon Marchi <simon.marchi@efficios.com>
14467
14468 * warning.m4: Add -Wmissing-declarations to build_warnings.
14469 * configure: Re-generate.
14470
6b366111
SM
144712020-01-13 Simon Marchi <simon.marchi@efficios.com>
14472
14473 * python/python.c (init__gdb_module): Add declaration.
14474
6c265988
SM
144752020-01-13 Simon Marchi <simon.marchi@efficios.com>
14476
14477 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14478 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14479 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14480 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14481 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14482 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14483 * ada-exp.y (_initialize_ada_exp): Add declaration.
14484 * ada-lang.c (_initialize_ada_language): Add declaration.
14485 * ada-tasks.c (_initialize_tasks): Add declaration.
14486 * agent.c (_initialize_agent): Add declaration.
14487 * aix-thread.c (_initialize_aix_thread): Add declaration.
14488 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14489 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14490 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14491 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14492 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14493 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14494 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14495 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14496 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14497 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14498 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14499 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14500 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14501 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14502 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14503 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14504 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14505 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14506 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14507 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14508 * annotate.c (_initialize_annotate): Add declaration.
14509 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14510 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14511 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14512 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14513 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14514 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14515 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14516 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14517 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14518 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14519 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14520 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14521 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14522 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14523 * auto-load.c (_initialize_auto_load): Add declaration.
14524 * auxv.c (_initialize_auxv): Add declaration.
14525 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14526 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14527 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14528 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14529 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14530 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14531 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14532 * breakpoint.c (_initialize_breakpoint): Add declaration.
14533 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14534 * btrace.c (_initialize_btrace): Add declaration.
14535 * charset.c (_initialize_charset): Add declaration.
14536 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14537 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14538 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14539 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14540 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14541 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14542 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14543 * coffread.c (_initialize_coffread): Add declaration.
14544 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14545 * compile/compile.c (_initialize_compile): Add declaration.
14546 * complaints.c (_initialize_complaints): Add declaration.
14547 * completer.c (_initialize_completer): Add declaration.
14548 * copying.c (_initialize_copying): Add declaration.
14549 * corefile.c (_initialize_core): Add declaration.
14550 * corelow.c (_initialize_corelow): Add declaration.
14551 * cp-abi.c (_initialize_cp_abi): Add declaration.
14552 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14553 * cp-support.c (_initialize_cp_support): Add declaration.
14554 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14555 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14556 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14557 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14558 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14559 * ctfread.c (_initialize_ctfread): Add declaration.
14560 * d-lang.c (_initialize_d_language): Add declaration.
14561 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14562 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14563 * dbxread.c (_initialize_dbxread): Add declaration.
14564 * dcache.c (_initialize_dcache): Add declaration.
14565 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14566 * disasm.c (_initialize_disasm): Add declaration.
14567 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14568 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14569 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14570 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14571 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14572 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14573 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14574 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14575 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14576 * elfread.c (_initialize_elfread): Add declaration.
14577 * exec.c (_initialize_exec): Add declaration.
14578 * extension.c (_initialize_extension): Add declaration.
14579 * f-lang.c (_initialize_f_language): Add declaration.
14580 * f-valprint.c (_initialize_f_valprint): Add declaration.
14581 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14582 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14583 * filesystem.c (_initialize_filesystem): Add declaration.
14584 * findcmd.c (_initialize_mem_search): Add declaration.
14585 * findvar.c (_initialize_findvar): Add declaration.
14586 * fork-child.c (_initialize_fork_child): Add declaration.
14587 * frame-base.c (_initialize_frame_base): Add declaration.
14588 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14589 * frame.c (_initialize_frame): Add declaration.
14590 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14591 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14592 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14593 * gcore.c (_initialize_gcore): Add declaration.
14594 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14595 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14596 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14597 * gdbarch.c (_initialize_gdbarch): Add declaration.
14598 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14599 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14600 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14601 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14602 * go-lang.c (_initialize_go_language): Add declaration.
14603 * go32-nat.c (_initialize_go32_nat): Add declaration.
14604 * guile/guile.c (_initialize_guile): Add declaration.
14605 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14606 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14607 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14608 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14609 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14610 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14611 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14612 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14613 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14614 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14615 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14616 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14617 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14618 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14619 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14620 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14621 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14622 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14623 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14624 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14625 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14626 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14627 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14628 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14629 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14630 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14631 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14632 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14633 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14634 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14635 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14636 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14637 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14638 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14639 * infcall.c (_initialize_infcall): Add declaration.
14640 * infcmd.c (_initialize_infcmd): Add declaration.
14641 * inflow.c (_initialize_inflow): Add declaration.
14642 * infrun.c (_initialize_infrun): Add declaration.
14643 * interps.c (_initialize_interpreter): Add declaration.
14644 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14645 * jit.c (_initialize_jit): Add declaration.
14646 * language.c (_initialize_language): Add declaration.
14647 * linux-fork.c (_initialize_linux_fork): Add declaration.
14648 * linux-nat.c (_initialize_linux_nat): Add declaration.
14649 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14650 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14651 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14652 * m2-lang.c (_initialize_m2_language): Add declaration.
14653 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14654 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14655 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14656 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14657 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14658 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14659 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14660 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14661 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14662 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14663 * machoread.c (_initialize_machoread): Add declaration.
14664 * macrocmd.c (_initialize_macrocmd): Add declaration.
14665 * macroscope.c (_initialize_macroscope): Add declaration.
14666 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14667 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14668 * maint.c (_initialize_maint_cmds): Add declaration.
14669 * mdebugread.c (_initialize_mdebugread): Add declaration.
14670 * memattr.c (_initialize_mem): Add declaration.
14671 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14672 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14673 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14674 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14675 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14676 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14677 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14678 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14679 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14680 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14681 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14682 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14683 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14684 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14685 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14686 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14687 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14688 * mipsread.c (_initialize_mipsread): Add declaration.
14689 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14690 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14691 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14692 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14693 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14694 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14695 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14696 * nto-procfs.c (_initialize_procfs): Add declaration.
14697 * objc-lang.c (_initialize_objc_language): Add declaration.
14698 * observable.c (_initialize_observer): Add declaration.
14699 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14700 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14701 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14702 * osabi.c (_initialize_gdb_osabi): Add declaration.
14703 * osdata.c (_initialize_osdata): Add declaration.
14704 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14705 * parse.c (_initialize_parse): Add declaration.
14706 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14707 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14708 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14709 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14710 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14711 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14712 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14713 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14714 * printcmd.c (_initialize_printcmd): Add declaration.
14715 * probe.c (_initialize_probe): Add declaration.
14716 * proc-api.c (_initialize_proc_api): Add declaration.
14717 * proc-events.c (_initialize_proc_events): Add declaration.
14718 * proc-service.c (_initialize_proc_service): Add declaration.
14719 * procfs.c (_initialize_procfs): Add declaration.
14720 * producer.c (_initialize_producer): Add declaration.
14721 * psymtab.c (_initialize_psymtab): Add declaration.
14722 * python/python.c (_initialize_python): Add declaration.
14723 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14724 * record-btrace.c (_initialize_record_btrace): Add declaration.
14725 * record-full.c (_initialize_record_full): Add declaration.
14726 * record.c (_initialize_record): Add declaration.
14727 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14728 * regcache.c (_initialize_regcache): Add declaration.
14729 * reggroups.c (_initialize_reggroup): Add declaration.
14730 * remote-notif.c (_initialize_notif): Add declaration.
14731 * remote-sim.c (_initialize_remote_sim): Add declaration.
14732 * remote.c (_initialize_remote): Add declaration.
14733 * reverse.c (_initialize_reverse): Add declaration.
14734 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14735 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14736 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14737 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14738 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14739 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14740 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14741 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14742 Add declaration.
14743 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14744 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14745 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14746 * rust-exp.y (_initialize_rust_exp): Add declaration.
14747 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14748 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14749 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14750 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14751 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14752 * score-tdep.c (_initialize_score_tdep): Add declaration.
14753 * ser-go32.c (_initialize_ser_dos): Add declaration.
14754 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14755 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14756 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14757 * ser-uds.c (_initialize_ser_socket): Add declaration.
14758 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14759 * serial.c (_initialize_serial): Add declaration.
14760 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14761 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14762 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14763 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14764 * skip.c (_initialize_step_skip): Add declaration.
14765 * sol-thread.c (_initialize_sol_thread): Add declaration.
14766 * solib-aix.c (_initialize_solib_aix): Add declaration.
14767 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14768 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14769 * solib-frv.c (_initialize_frv_solib): Add declaration.
14770 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14771 * solib-target.c (_initialize_solib_target): Add declaration.
14772 * solib.c (_initialize_solib): Add declaration.
14773 * source-cache.c (_initialize_source_cache): Add declaration.
14774 * source.c (_initialize_source): Add declaration.
14775 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14776 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14777 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14778 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14779 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14780 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14781 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14782 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14783 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14784 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14785 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14786 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14787 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14788 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14789 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14790 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14791 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14792 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14793 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14794 * stabsread.c (_initialize_stabsread): Add declaration.
14795 * stack.c (_initialize_stack): Add declaration.
14796 * stap-probe.c (_initialize_stap_probe): Add declaration.
14797 * std-regs.c (_initialize_frame_reg): Add declaration.
14798 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14799 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14800 * symfile.c (_initialize_symfile): Add declaration.
14801 * symmisc.c (_initialize_symmisc): Add declaration.
14802 * symtab.c (_initialize_symtab): Add declaration.
14803 * target.c (_initialize_target): Add declaration.
14804 * target-connection.c (_initialize_target_connection): Add
14805 declaration.
14806 * target-dcache.c (_initialize_target_dcache): Add declaration.
14807 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14808 * thread.c (_initialize_thread): Add declaration.
14809 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14810 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14811 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14812 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14813 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14814 * tracectf.c (_initialize_ctf): Add declaration.
14815 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14816 * tracefile.c (_initialize_tracefile): Add declaration.
14817 * tracepoint.c (_initialize_tracepoint): Add declaration.
14818 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14819 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14820 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14821 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14822 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14823 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14824 * tui/tui.c (_initialize_tui): Add declaration.
14825 * typeprint.c (_initialize_typeprint): Add declaration.
14826 * ui-style.c (_initialize_ui_style): Add declaration.
14827 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14828 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14829 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14830 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14831 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14832 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14833 * unittests/filtered_iterator-selftests.c
14834 (_initialize_filtered_iterator_selftests): Add declaration.
14835 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14836 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14837 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14838 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14839 * unittests/main-thread-selftests.c
14840 (_initialize_main_thread_selftests): Add declaration.
14841 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14842 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14843 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14844 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14845 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14846 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14847 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14848 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14849 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14850 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14851 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14852 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14853 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14854 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14855 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14856 declaration.
14857 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14858 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14859 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14860 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14861 * user-regs.c (_initialize_user_regs): Add declaration.
14862 * utils.c (_initialize_utils): Add declaration.
14863 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14864 * valops.c (_initialize_valops): Add declaration.
14865 * valprint.c (_initialize_valprint): Add declaration.
14866 * value.c (_initialize_values): Add declaration.
14867 * varobj.c (_initialize_varobj): Add declaration.
14868 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14869 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14870 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14871 * windows-nat.c (_initialize_windows_nat): Add declaration.
14872 (_initialize_check_for_gdb_ini): Add declaration.
14873 (_initialize_loadable): Add declaration.
14874 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14875 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14876 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14877 * xcoffread.c (_initialize_xcoffread): Add declaration.
14878 * xml-support.c (_initialize_xml_support): Add declaration.
14879 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14880 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14881 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14882 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14883
e2de1eec
SM
148842020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14885
14886 * regformats/regdat.sh: Generate declaration for init function.
14887
e0037b4c
SM
148882020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14889
14890 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14891 up.
14892 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14893 close_one_inferior>: New methods.
14894 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14895 pass down target to find_inferior_pid.
14896 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14897 Pass down target to find_inferior_ptid.
14898 (gdbsim_target::create_inferior): Pass down target to
14899 add_thread_silent.
14900 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14901 target down to find_inferior_ptid and switch_to_thread.
14902 (gdbsim_target::close): Update to call close_one_inferior.
14903 (struct resume_data): Remove.
14904 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14905 directly, rather than through a void pointer.
14906 (gdbsim_target::resume): Update to call resume_one_inferior.
14907
58920b5b
SM
149082020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14909
14910 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14911
4ec89149
PA
149122020-01-12 Pedro Alves <palves@redhat.com>
14913
14914 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14915 directly for the current inferior instead of
14916 discard_all_inferiors.
14917 (discard_all_inferiors): Delete.
14918
7c392d1d
TT
149192020-01-11 Tom Tromey <tom@tromey.com>
14920
14921 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14922 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14923 deprecated_safe_get_selected_frame.
14924
d9ebdab7
TBA
149252020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14926
14927 * inferior.c (print_inferior): Switch inferior before printing it.
14928
f3c469b9
PA
149292020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14930 Pedro Alves <palves@redhat.com>
14931
14932 * progspace-and-thread.c (switch_to_program_space_and_thread):
14933 Assert there's an inferior for PSPACE. Use
14934 switch_to_inferior_no_thread to switch the inferior too.
14935 * progspace.c (program_space::~program_space): Call
14936 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14937 (program_space::free_all_objfiles): Don't call clear_symtab_users
14938 here.
14939 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14940
65c574f6
PA
149412020-01-10 Pedro Alves <palves@redhat.com>
14942
14943 * NEWS: Mention multi-target debugging, "info connections", and
14944 "add-inferior -no-connection".
14945
2f4fcf00
PA
149462020-01-10 Pedro Alves <palves@redhat.com>
14947
14948 * infrun.c: Include "target-connection.h".
14949 (check_multi_target_resumption): New.
14950 (proceed): Call it.
14951 * target-connection.c (make_target_connection_string): Make
14952 extern.
14953 * target-connection.h (make_target_connection_string): Declare.
14954
121b3efd
PA
149552020-01-10 Pedro Alves <palves@redhat.com>
14956
14957 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14958 * inferior.c (uiout_field_connection): New function.
14959 (print_inferior): Add new "connection-id" column.
14960 (add_inferior_command): Show connection number/string of added
14961 inferior.
14962 * process-stratum-target.h
14963 (process_stratum_target::connection_string): New virtual method.
14964 (process_stratum_target::connection_number): New field.
14965 * remote.c (remote_target::connection_string): New override.
14966 * target-connection.c: New file.
14967 * target-connection.h: New file.
14968 * target.c (decref_target): Remove process_stratum targets from
14969 the connection list.
14970 (target_stack::push): Add process_stratum targets to the
14971 connection list.
14972
4f837581
PA
149732020-01-10 Pedro Alves <palves@redhat.com>
14974
14975 Revert:
14976 2016-04-12 Pedro Alves <palves@redhat.com>
14977 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14978 Remove references to name.
14979 * serial.h (struct serial) <name>: Delete.
14980
f4ec508e
PA
149812020-01-10 Pedro Alves <palves@redhat.com>
14982
14983 * gdbarch-selftests.c (register_to_value_test): Remove "target
14984 already pushed" check.
14985
5b6d1e4f
PA
149862020-01-10 Pedro Alves <palves@redhat.com>
14987 John Baldwin <jhb@FreeBSD.org>
14988
14989 * aarch64-linux-nat.c
14990 (aarch64_linux_nat_target::thread_architecture): Adjust.
14991 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14992 (task_command_1): Likewise.
14993 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14994 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14995 (aix_thread_target::store_registers)
14996 (aix_thread_target::thread_alive): Adjust.
14997 * amd64-fbsd-tdep.c: Include "inferior.h".
14998 (amd64fbsd_get_thread_local_address): Pass down target.
14999 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15000 thread's gdbarch instead of target_gdbarch.
15001 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15002 get_last_target_status.
15003 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15004 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15005 inferiors.
15006 (update_inserted_breakpoint_locations): Skip if inferiors with no
15007 execution.
15008 (update_global_location_list): When handling moribund locations,
15009 find representative inferior for location's pspace, and use thread
15010 count of its process_stratum target.
15011 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15012 * bsd-uthread.c (bsd_uthread_target::wait): Use
15013 as_process_stratum_target and adjust thread_change_ptid and
15014 add_thread calls.
15015 (bsd_uthread_target::update_thread_list): Use
15016 as_process_stratum_target and adjust find_thread_ptid,
15017 thread_change_ptid and add_thread calls.
15018 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15019 find_thread_ptid call.
15020 * corelow.c (add_to_thread_list): Adjust add_thread call.
15021 (core_target_open): Adjust add_thread_silent and thread_count
15022 calls.
15023 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15024 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15025 * event-top.c (async_disconnect): Pop targets from all inferiors.
15026 * exec.c (add_target_sections): Push exec target on all inferiors
15027 sharing the program space.
15028 (remove_target_sections): Remove the exec target from all
15029 inferiors sharing the program space.
15030 (exec_on_vfork): New.
15031 * exec.h (exec_on_vfork): Declare.
15032 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15033 Pass it down.
15034 (fbsd_nat_target::update_thread_list): Adjust.
15035 (fbsd_nat_target::resume): Adjust.
15036 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15037 down.
15038 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15039 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15040 get_thread_arch_regcache call.
15041 * fork-child.c (gdb_startup_inferior): Pass target down to
15042 startup_inferior and set_executing.
15043 * gdbthread.h (struct process_stratum_target): Forward declare.
15044 (add_thread, add_thread_silent, add_thread_with_info)
15045 (in_thread_list): Add process_stratum_target parameter.
15046 (find_thread_ptid(inferior*, ptid_t)): New overload.
15047 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15048 parameter.
15049 (all_threads()): Delete overload.
15050 (all_threads, all_non_exited_threads): Add process_stratum_target
15051 parameter.
15052 (all_threads_safe): Use brace initialization.
15053 (thread_count): Add process_stratum_target parameter.
15054 (set_resumed, set_running, set_stop_requested, set_executing)
15055 (threads_are_executing, finish_thread_state): Add
15056 process_stratum_target parameter.
15057 (switch_to_thread): Use is_current_thread.
15058 * i386-fbsd-tdep.c: Include "inferior.h".
15059 (i386fbsd_get_thread_local_address): Pass down target.
15060 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15061 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15062 have_inferiors check.
15063 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15064 (inf_ptrace_target::attach): Adjust.
15065 * infcall.c (run_inferior_call): Adjust.
15066 * infcmd.c (run_command_1): Pass target to
15067 scoped_finish_thread_state.
15068 (proceed_thread_callback): Skip inferiors with no execution.
15069 (continue_command): Rename 'all_threads' local to avoid hiding
15070 'all_threads' function. Adjust get_last_target_status call.
15071 (prepare_one_step): Adjust set_running call.
15072 (signal_command): Use user_visible_resume_target. Compare thread
15073 pointers instead of inferior_ptid.
15074 (info_program_command): Adjust to pass down target.
15075 (attach_command): Mark target's 'thread_executing' flag.
15076 (stop_current_target_threads_ns): New, factored out from ...
15077 (interrupt_target_1): ... this. Switch inferior before making
15078 target calls.
15079 * inferior-iter.h
15080 (struct all_inferiors_iterator, struct all_inferiors_range)
15081 (struct all_inferiors_safe_range)
15082 (struct all_non_exited_inferiors_range): Filter on
15083 process_stratum_target too. Remove explicit.
15084 * inferior.c (inferior::inferior): Push dummy target on target
15085 stack.
15086 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15087 Add process_stratum_target parameter, and pass it down.
15088 (have_live_inferiors): Adjust.
15089 (switch_to_inferior_and_push_target): New.
15090 (add_inferior_command, clone_inferior_command): Handle
15091 "-no-connection" parameter. Use
15092 switch_to_inferior_and_push_target.
15093 (_initialize_inferior): Mention "-no-connection" option in
15094 the help of "add-inferior" and "clone-inferior" commands.
15095 * inferior.h: Include "process-stratum-target.h".
15096 (interrupt_target_1): Use bool.
15097 (struct inferior) <push_target, unpush_target, target_is_pushed,
15098 find_target_beneath, top_target, process_target, target_at,
15099 m_stack>: New.
15100 (discard_all_inferiors): Delete.
15101 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15102 (all_inferiors, all_non_exited_inferiors): Add
15103 process_stratum_target parameter.
15104 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15105 (target_last_proc_target): New global.
15106 (follow_fork_inferior): Push target on new inferior. Pass target
15107 to add_thread_silent. Call exec_on_vfork. Handle target's
15108 reference count.
15109 (follow_fork): Adjust get_last_target_status call. Also consider
15110 target.
15111 (follow_exec): Push target on new inferior.
15112 (struct execution_control_state) <target>: New field.
15113 (user_visible_resume_target): New.
15114 (do_target_resume): Call target_async.
15115 (resume_1): Set target's threads_executing flag. Consider resume
15116 target.
15117 (commit_resume_all_targets): New.
15118 (proceed): Also consider resume target. Skip threads of inferiors
15119 with no execution. Commit resumtion in all targets.
15120 (start_remote): Pass current inferior to wait_for_inferior.
15121 (infrun_thread_stop_requested): Consider target as well. Pass
15122 thread_info pointer to clear_inline_frame_state instead of ptid.
15123 (infrun_thread_thread_exit): Consider target as well.
15124 (random_pending_event_thread): New inferior parameter. Use it.
15125 (do_target_wait): Rename to ...
15126 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15127 down.
15128 (threads_are_resumed_pending_p, do_target_wait): New.
15129 (prepare_for_detach): Adjust calls.
15130 (wait_for_inferior): New inferior parameter. Handle it. Use
15131 do_target_wait_1 instead of do_target_wait.
15132 (fetch_inferior_event): Adjust. Switch to representative
15133 inferior. Pass target down.
15134 (set_last_target_status): Add process_stratum_target parameter.
15135 Save target in global.
15136 (get_last_target_status): Add process_stratum_target parameter and
15137 handle it.
15138 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15139 (context_switch): Check inferior_ptid == null_ptid before calling
15140 inferior_thread().
15141 (get_inferior_stop_soon): Pass down target.
15142 (wait_one): Rename to ...
15143 (poll_one_curr_target): ... this.
15144 (struct wait_one_event): New.
15145 (wait_one): New.
15146 (stop_all_threads): Adjust.
15147 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15148 event's target.
15149 (switch_back_to_stepped_thread): Also consider target.
15150 (print_stop_event): Update.
15151 (normal_stop): Update. Also consider the resume target.
15152 * infrun.h (wait_for_inferior): Remove declaration.
15153 (user_visible_resume_target): New declaration.
15154 (get_last_target_status, set_last_target_status): New
15155 process_stratum_target parameter.
15156 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15157 process_stratum_target parameter, and use it.
15158 (clear_inline_frame_state (thread_info*)): New.
15159 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15160 process_stratum_target parameter.
15161 (clear_inline_frame_state (thread_info*)): Declare.
15162 * linux-fork.c (delete_checkpoint_command): Pass target down to
15163 find_thread_ptid.
15164 (checkpoint_command): Adjust.
15165 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15166 instead of just tweaking inferior_ptid.
15167 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15168 (exit_lwp): Pass target down to find_thread_ptid.
15169 (attach_proc_task_lwp_callback): Pass target down to
15170 add_thread/set_running/set_executing.
15171 (linux_nat_target::attach): Pass target down to
15172 thread_change_ptid.
15173 (get_detach_signal): Pass target down to find_thread_ptid.
15174 Consider last target status's target.
15175 (linux_resume_one_lwp_throw, resume_lwp)
15176 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15177 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15178 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15179 (linux_nat_target::async_wait_fd): New.
15180 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15181 target down.
15182 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15183 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15184 * linux-thread-db.c (struct thread_db_info::process_target): New
15185 field.
15186 (add_thread_db_info): Save target.
15187 (get_thread_db_info): New process_stratum_target parameter. Also
15188 match target.
15189 (delete_thread_db_info): New process_stratum_target parameter.
15190 Also match target.
15191 (thread_from_lwp): Adjust to pass down target.
15192 (thread_db_notice_clone): Pass down target.
15193 (check_thread_db_callback): Pass down target.
15194 (try_thread_db_load_1): Always push the thread_db target.
15195 (try_thread_db_load, record_thread): Pass target down.
15196 (thread_db_target::detach): Pass target down. Always unpush the
15197 thread_db target.
15198 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15199 target down. Always unpush the thread_db target.
15200 (find_new_threads_callback, thread_db_find_new_threads_2)
15201 (thread_db_target::update_thread_list): Pass target down.
15202 (thread_db_target::pid_to_str): Pass current inferior down.
15203 (thread_db_target::get_thread_local_address): Pass target down.
15204 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15205 target down.
15206 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15207 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15208 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15209 (procfs_init_inferior): Rename to ...
15210 (procfs_target::procfs_init_inferior): ... this and adjust.
15211 (procfs_target::create_inferior, procfs_notice_thread)
15212 (procfs_do_thread_registers): Adjust.
15213 * ppc-fbsd-tdep.c: Include "inferior.h".
15214 (ppcfbsd_get_thread_local_address): Pass down target.
15215 * proc-service.c (ps_xfer_memory): Switch current inferior and
15216 program space as well.
15217 (get_ps_regcache): Pass target down.
15218 * process-stratum-target.c
15219 (process_stratum_target::thread_address_space)
15220 (process_stratum_target::thread_architecture): Pass target down.
15221 * process-stratum-target.h
15222 (process_stratum_target::threads_executing): New field.
15223 (as_process_stratum_target): New.
15224 * ravenscar-thread.c
15225 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15226 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15227 down.
15228 * record-btrace.c (record_btrace_target::info_record): Adjust.
15229 (record_btrace_target::record_method)
15230 (record_btrace_target::record_is_replaying)
15231 (record_btrace_target::fetch_registers)
15232 (get_thread_current_frame_id, record_btrace_target::resume)
15233 (record_btrace_target::wait, record_btrace_target::stop): Pass
15234 target down.
15235 * record-full.c (record_full_wait_1): Switch to event thread.
15236 Pass target down.
15237 * regcache.c (regcache::regcache)
15238 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15239 process_stratum_target parameter and handle it.
15240 (current_thread_target): New global.
15241 (get_thread_regcache): Add process_stratum_target parameter and
15242 handle it. Switch inferior before calling target method.
15243 (get_thread_regcache): Pass target down.
15244 (get_thread_regcache_for_ptid): Pass target down.
15245 (registers_changed_ptid): Add process_stratum_target parameter and
15246 handle it.
15247 (registers_changed_thread, registers_changed): Pass target down.
15248 (test_get_thread_arch_aspace_regcache): New.
15249 (current_regcache_test): Define a couple local test_target_ops
15250 instances and use them for testing.
15251 (readwrite_regcache): Pass process_stratum_target parameter.
15252 (cooked_read_test, cooked_write_test): Pass mock_target down.
15253 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15254 (get_thread_arch_aspace_regcache): Add process_stratum_target
15255 parameter.
15256 (regcache::target): New method.
15257 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15258 (regcache::registers_changed_ptid): Add process_stratum_target
15259 parameter.
15260 (regcache::m_target): New field.
15261 (registers_changed_ptid): Add process_stratum_target parameter.
15262 * remote.c (remote_state::supports_vCont_probed): New field.
15263 (remote_target::async_wait_fd): New method.
15264 (remote_unpush_and_throw): Add remote_target parameter.
15265 (get_current_remote_target): Adjust.
15266 (remote_target::remote_add_inferior): Push target.
15267 (remote_target::remote_add_thread)
15268 (remote_target::remote_notice_new_inferior)
15269 (get_remote_thread_info): Pass target down.
15270 (remote_target::update_thread_list): Skip threads of inferiors
15271 bound to other targets. (remote_target::close): Don't discard
15272 inferiors. (remote_target::add_current_inferior_and_thread)
15273 (remote_target::process_initial_stop_replies)
15274 (remote_target::start_remote)
15275 (remote_target::remote_serial_quit_handler): Pass down target.
15276 (remote_target::remote_unpush_target): New remote_target
15277 parameter. Unpush the target from all inferiors.
15278 (remote_target::remote_unpush_and_throw): New remote_target
15279 parameter. Pass it down.
15280 (remote_target::open_1): Check whether the current inferior has
15281 execution instead of checking whether any inferior is live. Pass
15282 target down.
15283 (remote_target::remote_detach_1): Pass down target. Use
15284 remote_unpush_target.
15285 (extended_remote_target::attach): Pass down target.
15286 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15287 (remote_target::append_resumption): Pass down target.
15288 (remote_target::append_pending_thread_resumptions)
15289 (remote_target::remote_resume_with_hc, remote_target::resume)
15290 (remote_target::commit_resume): Pass down target.
15291 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15292 (remote_target::interrupt_query)
15293 (remote_target::remove_new_fork_children)
15294 (remote_target::check_pending_events_prevent_wildcard_vcont)
15295 (remote_target::remote_parse_stop_reply)
15296 (remote_target::process_stop_reply): Pass down target.
15297 (first_remote_resumed_thread): New remote_target parameter. Pass
15298 it down.
15299 (remote_target::wait_as): Pass down target.
15300 (unpush_and_perror): New remote_target parameter. Pass it down.
15301 (remote_target::readchar, remote_target::remote_serial_write)
15302 (remote_target::getpkt_or_notif_sane_1)
15303 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15304 down target.
15305 (remote_target::mourn_inferior): Pass down target. Use
15306 remote_unpush_target.
15307 (remote_target::core_of_thread)
15308 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15309 (remote_target::pid_to_exec_file)
15310 (remote_target::thread_handle_to_thread_info): Pass down target.
15311 (remote_target::async_wait_fd): New.
15312 * riscv-fbsd-tdep.c: Include "inferior.h".
15313 (riscv_fbsd_get_thread_local_address): Pass down target.
15314 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15315 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15316 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15317 Adjust.
15318 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15319 * solib-svr4.c (enable_break): Pass down target.
15320 * spu-multiarch.c (parse_spufs_run): Pass down target.
15321 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15322 * target-delegates.c: Regenerate.
15323 * target.c (g_target_stack): Delete.
15324 (current_top_target): Return the current inferior's top target.
15325 (target_has_execution_1): Refer to the passed-in inferior's top
15326 target.
15327 (target_supports_terminal_ours): Check whether the initial
15328 inferior was already created.
15329 (decref_target): New.
15330 (target_stack::push): Incref/decref the target.
15331 (push_target, push_target, unpush_target): Adjust.
15332 (target_stack::unpush): Defref target.
15333 (target_is_pushed): Return bool. Adjust to refer to the current
15334 inferior's target stack.
15335 (dispose_inferior): Delete, and inline parts ...
15336 (target_preopen): ... here. Only dispose of the current inferior.
15337 (target_detach): Hold strong target reference while detaching.
15338 Pass target down.
15339 (target_thread_name): Add assertion.
15340 (target_resume): Pass down target.
15341 (target_ops::beneath, find_target_at): Adjust to refer to the
15342 current inferior's target stack.
15343 (get_dummy_target): New.
15344 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15345 has a thread running.
15346 (initialize_targets): Rename to ...
15347 (_initialize_target): ... this.
15348 * target.h: Include "gdbsupport/refcounted-object.h".
15349 (struct target_ops): Inherit refcounted_object.
15350 (target_ops::shortname, target_ops::longname): Make const.
15351 (target_ops::async_wait_fd): New method.
15352 (decref_target): Declare.
15353 (struct target_ops_ref_policy): New.
15354 (target_ops_ref): New typedef.
15355 (get_dummy_target): Declare function.
15356 (target_is_pushed): Return bool.
15357 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15358 (all_matching_threads_iterator::all_matching_threads_iterator):
15359 Handle filter target.
15360 * thread-iter.h (struct all_matching_threads_iterator, struct
15361 all_matching_threads_range, class all_non_exited_threads_range):
15362 Filter by target too. Remove explicit.
15363 * thread.c (threads_executing): Delete.
15364 (inferior_thread): Pass down current inferior.
15365 (clear_thread_inferior_resources): Pass down thread pointer
15366 instead of ptid_t.
15367 (add_thread_silent, add_thread_with_info, add_thread): Add
15368 process_stratum_target parameter. Use it for thread and inferior
15369 searches.
15370 (is_current_thread): New.
15371 (thread_info::deletable): Use it.
15372 (find_thread_ptid, thread_count, in_thread_list)
15373 (thread_change_ptid, set_resumed, set_running): New
15374 process_stratum_target parameter. Pass it down.
15375 (set_executing): New process_stratum_target parameter. Pass it
15376 down. Adjust reference to 'threads_executing'.
15377 (threads_are_executing): New process_stratum_target parameter.
15378 Adjust reference to 'threads_executing'.
15379 (set_stop_requested, finish_thread_state): New
15380 process_stratum_target parameter. Pass it down.
15381 (switch_to_thread): Also match inferior.
15382 (switch_to_thread): New process_stratum_target parameter. Pass it
15383 down.
15384 (update_threads_executing): Reimplement.
15385 * top.c (quit_force): Pop targets from all inferior.
15386 (gdb_init): Don't call initialize_targets.
15387 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15388 Declare.
15389 (windows_add_thread, windows_delete_thread): Adjust.
15390 (get_windows_debug_event): Rename to ...
15391 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15392 * tracefile-tfile.c (tfile_target_open): Pass down target.
15393 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15394 Forward declare.
15395 (switch_to_thread): Add process_stratum_target parameter.
15396 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15397 parameter. Use it.
15398 (mi_on_resume): Pass target down.
15399 * nat/fork-inferior.c (startup_inferior): Add
15400 process_stratum_target parameter. Pass it down.
15401 * nat/fork-inferior.h (startup_inferior): Add
15402 process_stratum_target parameter.
15403 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15404
75c6c844
PA
154052020-01-10 Pedro Alves <palves@redhat.com>
15406
15407 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15408 directly. Instead find the first thread in the thread list and
15409 use switch_to_thread.
15410
78f2c40a
PA
154112020-01-10 Pedro Alves <palves@redhat.com>
15412
15413 * remote.c (remote_target::remote_add_inferior): Don't bind a
15414 process to the current inferior if the current inferior is already
15415 bound to a process.
15416
e7af6c70
TBA
154172020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15418 Pedro Alves <palves@redhat.com>
15419
15420 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15421 If no process is specified, return null_ptid instead of
15422 inferior_ptid.
15423 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15424 TARGET_WAITKIND_SIGNALLED with no pid.
15425
31ba933e
PA
154262020-01-10 Pedro Alves <palves@redhat.com>
15427
15428 * remote.c (first_remote_resumed_thread): New.
15429 (remote_target::wait_as): Use it as default event_ptid instead of
15430 inferior_ptid.
15431
735fc2ca
PA
154322020-01-10 Pedro Alves <palves@redhat.com>
15433
15434 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15435
c17e02e1
PA
154362020-01-10 Pedro Alves <palves@redhat.com>
15437
15438 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15439 not -1.
15440
ab1ddbcf
PA
154412020-01-10 Pedro Alves <palves@redhat.com>
15442
15443 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15444 ptid to get_last_target_status.
15445 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15446 ptid to get_last_target_status.
15447 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15448 get_last_target_status.
15449 (info_program_command): Don't pass a target_waitstatus to
15450 get_last_target_status.
15451 * infrun.c (init_wait_for_inferior): Use
15452 nullify_last_target_wait_ptid.
15453 (get_last_target_status): Handle nullptr arguments.
15454 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15455 (print_stop_event): Don't pass a ptid to get_last_target_status.
15456 (normal_stop): Don't pass a ptid to get_last_target_status.
15457 * infrun.h (get_last_target_status, set_last_target_status): Move
15458 comments here and update.
15459 (nullify_last_target_wait_ptid): Declare.
15460 * linux-fork.c (fork_load_infrun_state): Remove local extern
15461 declaration of nullify_last_target_wait_ptid.
15462 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15463 to get_last_target_status.
15464
f3f8ece4
PA
154652020-01-10 Pedro Alves <palves@redhat.com>
15466
15467 * gdbthread.h (scoped_restore_current_thread)
15468 <dont_restore, restore, m_dont_restore>: Declare.
15469 * thread.c (thread_alive): Add assertion. Return bool.
15470 (switch_to_thread_if_alive): New.
15471 (prune_threads): Switch inferior/thread.
15472 (print_thread_info_1): Switch thread before calling target methods.
15473 (scoped_restore_current_thread::restore): New, factored out from
15474 ...
15475 (scoped_restore_current_thread::~scoped_restore_current_thread):
15476 ... this.
15477 (scoped_restore_current_thread::scoped_restore_current_thread):
15478 Add assertion.
15479 (thread_apply_all_command, thread_select): Use
15480 switch_to_thread_if_alive.
15481 * infrun.c (proceed, restart_threads, handle_signal_stop)
15482 (switch_back_to_stepped_thread): Switch current thread before
15483 calling target methods.
15484
db2d40f7
PA
154852020-01-10 Pedro Alves <palves@redhat.com>
15486
15487 * inferior.c (switch_to_inferior_no_thread): New function,
15488 factored out from ...
15489 (inferior_command): ... here.
15490 * inferior.h (switch_to_inferior_no_thread): Declare.
15491 * mi/mi-main.c (run_one_inferior): Use
15492 switch_to_inferior_no_thread.
15493
bd420a2d
PA
154942020-01-10 Pedro Alves <palves@redhat.com>
15495
15496 * infcmd.c (kill_command): Remove dead code.
15497
ddf5db90
PA
154982020-01-10 Pedro Alves <palves@redhat.com>
15499
15500 * remote.c (remote_target::mourn_inferior): No longer check
15501 whether the target is running.
15502
5018ce90
PA
155032020-01-10 Pedro Alves <palves@redhat.com>
15504
15505 * corelow.c (core_target::has_execution): Change parameter type to
15506 inferior pointer.
15507 * inferior.c (number_of_live_inferiors): Use
15508 inferior::has_execution instead of target_has_execution_1.
15509 * inferior.h (inferior::has_execution): New.
15510 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15511 inferior::has_execution instead of target_has_execution_1.
15512 * process-stratum-target.c
15513 (process_stratum_target::has_execution): Change parameter type to
15514 inferior pointer. Check the inferior's PID instead of
15515 inferior_ptid.
15516 * process-stratum-target.h
15517 (process_stratum_target::has_execution): Change parameter type to
15518 inferior pointer.
15519 * record-full.c (record_full_core_target::has_execution): Change
15520 parameter type to inferior pointer.
15521 * target.c (target_has_execution_1): Change parameter type to
15522 inferior pointer.
15523 (target_has_execution_current): Adjust.
15524 * target.h (target_ops::has_execution): Change parameter type to
15525 inferior pointer.
15526 (target_has_execution_1): Change parameter type to inferior
15527 pointer. Change return type to bool.
15528 * tracefile.h (tracefile_target::has_execution): Change parameter
15529 type to inferior pointer.
15530
74375d18
PA
155312020-01-10 Pedro Alves <palves@redhat.com>
15532
15533 * exceptions.c (print_flush): Remove current_top_target() check.
15534
acdf84a6
PA
155352020-01-10 Pedro Alves <palves@redhat.com>
15536
15537 * remote.c (show_remote_exec_file): Show the current inferior's
15538 exec-file instead of the command variable's value.
15539
ec506636
PA
155402020-01-10 Pedro Alves <palves@redhat.com>
15541
15542 * record-full.c (record_full_resume_ptid): New global.
15543 (record_full_target::resume): Set it.
15544 (record_full_wait_1): Use record_full_resume_ptid instead of
15545 inferior_ptid.
15546
873657b9
PA
155472020-01-10 Pedro Alves <palves@redhat.com>
15548
15549 * gdbthread.h (scoped_restore_current_thread)
15550 <dont_restore, restore, m_dont_restore>: Declare.
15551 * thread.c (thread_alive): Add assertion. Return bool.
15552 (switch_to_thread_if_alive): New.
15553 (prune_threads): Switch inferior/thread.
15554 (print_thread_info_1): Switch thread before calling target methods.
15555 (scoped_restore_current_thread::restore): New, factored out from
15556 ...
15557 (scoped_restore_current_thread::~scoped_restore_current_thread):
15558 ... this.
15559 (scoped_restore_current_thread::scoped_restore_current_thread):
15560 Add assertion.
15561 (thread_apply_all_command, thread_select): Use
15562 switch_to_thread_if_alive.
15563
7f0ae84c
GB
155642020-01-10 George Barrett <bob@bob131.so>
15565
15566 * stap-probe.c (stap_modify_semaphore): Don't check for null
15567 semaphores.
15568 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15569 for null semaphores.
15570
f5a7c406
AB
155712020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15572
15573 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15574 all source windows, and maintain horizontal scroll status while
15575 doing so.
15576
9ae6bf64
TT
155772020-01-09 Tom Tromey <tom@tromey.com>
15578
15579 PR tui/18932:
15580 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15581 update_source_window, not print_source_lines.
15582
b2efe70c
AB
155832020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15584
15585 * tui/tui.c (tui_enable): Register tui hooks after calling
15586 tui_display_main.
15587
5f23a082
CB
155882020-01-09 Christian Biesinger <cbiesinger@google.com>
15589
15590 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15591
3061113b
SM
155922020-01-08 Simon Marchi <simon.marchi@efficios.com>
15593
15594 * thread.c (print_thread_info_1): Fix indentation.
15595
57d75002
CB
155962020-01-09 Christian Biesinger <cbiesinger@google.com>
15597
15598 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15599 unique_xmalloc_ptr outside the if to always free the demangled name.
15600
6a053cb1
TT
156012020-01-08 Tom Tromey <tromey@adacore.com>
15602
15603 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15604 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15605 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15606 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15607 Remove.
15608 (section_offsets): New typedef.
15609 * symtab.c (fixup_section, get_msymbol_address): Update.
15610 * symmisc.c (dump_msymbols): Update.
15611 * symfile.h (relative_addr_info_to_section_offsets)
15612 (symfile_map_offsets_to_segments): Update.
15613 * symfile.c (build_section_addr_info_from_objfile)
15614 (init_objfile_sect_indices): Update.
15615 (struct place_section_arg): Change type of "offsets".
15616 (place_section): Update.
15617 (relative_addr_info_to_section_offsets): Change type of
15618 "section_offsets". Remove "num_sections" parameter.
15619 (default_symfile_offsets, syms_from_objfile_1)
15620 (set_objfile_default_section_offset): Update.
15621 (reread_symbols): No need to preserve section offsets by hand.
15622 (symfile_map_offsets_to_segments): Change type of "offsets".
15623 * stap-probe.c (relocate_address): Update.
15624 * stabsread.h (process_one_symbol): Update.
15625 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15626 (solib_target_relocate_section_addresses): Update.
15627 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15628 Update.
15629 * solib-frv.c (frv_relocate_main_executable): Update.
15630 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15631 * solib-aix.c (solib_aix_get_section_offsets): Change return
15632 type.
15633 (solib_aix_solib_create_inferior_hook): Update.
15634 * remote.c (remote_target::get_offsets): Update.
15635 * psymtab.c (find_pc_sect_psymtab): Update.
15636 * psympriv.h (struct partial_symbol) <address, text_low,
15637 text_high>: Update.
15638 * objfiles.h (obj_section_offset): Update.
15639 (struct objfile) <section_offsets>: Change type.
15640 <num_sections>: Remove.
15641 (objfile_relocate): Update.
15642 * objfiles.c (entry_point_address_query): Update
15643 (relocate_one_symbol): Change type of "section_offsets".
15644 (objfile_relocate1, objfile_relocate1): Change type of
15645 "new_offsets".
15646 (objfile_rebase1): Update.
15647 * mipsread.c (mipscoff_symfile_read): Update.
15648 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15649 parameter.
15650 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15651 (parse_external, psymtab_to_symtab_1): Update.
15652 * machoread.c (macho_symfile_offsets): Update.
15653 * ia64-tdep.c (ia64_find_unwind_table): Update.
15654 * hppa-tdep.c (read_unwind_info): Update.
15655 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15656 * dwarf2read.c (create_addrmap_from_index)
15657 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15658 (process_psymtab_comp_unit_reader, add_partial_symbol)
15659 (add_partial_subprogram, process_full_comp_unit)
15660 (read_file_scope, read_func_scope, read_lexical_block_scope)
15661 (read_call_site_scope, dwarf2_rnglists_process)
15662 (dwarf2_ranges_process, dwarf2_ranges_read)
15663 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15664 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15665 Update.
15666 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15667 Update.
15668 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15669 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15670 (process_one_symbol): Change type of "section_offsets".
15671 * ctfread.c (get_objfile_text_range): Update.
15672 * coffread.c (coff_symtab_read, enter_linenos)
15673 (process_coff_symbol): Update.
15674 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15675 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15676
456e800a
TT
156772020-01-08 Tom Tromey <tromey@adacore.com>
15678
15679 * dwarf2read.c (parse_macro_definition): Use std::string.
15680 (parse_macro_definition): Likewise.
15681
6dfa2fc2
TT
156822020-01-08 Tom Tromey <tromey@adacore.com>
15683
15684 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15685 (ATTR_ALLOC_CHUNK): Remove.
15686
421d1616
TT
156872020-01-08 Tom Tromey <tromey@adacore.com>
15688
15689 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15690
43816ebc
TT
156912020-01-08 Tom Tromey <tromey@adacore.com>
15692
15693 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15694 (dwarf2_compute_name, open_dwo_file): Likewise.
15695 (process_enumeration_scope): Use std::vector.
15696 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15697 (partial_die_info::fixup, dwarf2_start_subfile)
15698 (guess_full_die_structure_name, dwarf2_name): Likewise.
15699 (determine_prefix): Update.
15700 (guess_full_die_structure_name): Make return type const.
15701 (partial_die_full_name): Return unique_xmalloc_ptr.
15702 (DW_FIELD_ALLOC_CHUNK): Remove.
15703
4212d509
TT
157042020-01-07 Tom Tromey <tromey@adacore.com>
15705
15706 PR build/24937:
15707 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15708
06a6207a
JT
157092020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15710
15711 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15712
153d79c4
AB
157132020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15714
15715 * stack.c (print_frame_info): Move disassemble_next_line code
15716 inside source_print block.
15717
66182876
EZ
157182020-01-06 Eli Zaretskii <eliz@gnu.org>
15719
15720 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15721 gdb/signals.h, as we are now using native signal symbols.
15722
cbfa8581
SV
157232020-01-06 Shahab Vahedi <shahab@synopsys.com>
15724
15725 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15726 overflow by an early check of content vs threshold.
aac66a4c 15727 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15728 Likewise.
15729
3f602821
EZ
157302020-01-06 Eli Zaretskii <eliz@gnu.org>
15731
15732 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15733
a08c904d
JT
157342020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15735
15736 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15737 export table if no section contains it's RVA.
15738
89a65580
EZ
157392020-01-06 Eli Zaretskii <eliz@gnu.org>
15740
15741 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15742
8b7fcda2
HD
157432020-01-06 Hannes Domani <ssbssa@yahoo.de>
15744
15745 * source.c (print_source_lines_base): Set last_line_listed.
15746
a61b4f69
SV
157472020-01-06 Shahab Vahedi <shahab@synopsys.com>
15748
15749 * tui/tui-disasm.c: Remove trailing spaces.
15750
559e7e50
EZ
157512020-01-06 Eli Zaretskii <eliz@gnu.org>
15752 Pedro Alves <palves@redhat.com>
15753
15754 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15755 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15756 (windows_gdb_signal_to_target): New function, uses the above
15757 enumeration to convert GDB internal signal codes to equivalent
15758 Windows codes.
15759 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15760 * windows-nat.c: Include "gdb_wait.h".
15761 (get_windows_debug_event): Extract the fatal exception from the
15762 exit status and convert to the equivalent Posix signal number.
15763 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15764 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15765 * gdbsupport/gdb_wait.c: New file, implements
15766 windows_status_to_termsig.
15767 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15768 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15769
f2302a34
AB
157702020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15771
15772 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15773 show_layout.
15774
6a5206eb
LM
157752020-01-05 Luis Machado <luis.machado@linaro.org>
15776
15777 * aarch64-linux-nat.c
15778 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15779 and bfd_mach_aarch64.
15780
6ec1d75e
PW
157812020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15782
15783 * ui-file.c (stdio_file::can_emit_style_escape)
15784 (tee_file::can_emit_style_escape): Ensure style is used also on
15785 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15786 to gdb_stdout.
15787 * main.c (set_gdb_data_directory): Use file style to output the
15788 warning that the given pathname is not a directory.
15789 * top.c (show_history_filename, gdb_safe_append_history)
15790 (show_gdb_datadir): Use file style.
15791
44f81a76
HD
157922020-01-03 Hannes Domani <ssbssa@yahoo.de>
15793
15794 * solib-target.c (struct lm_info_target):
15795 Change offsets to be a unique_xmalloc_ptr.
15796 (solib_target_relocate_section_addresses): Update.
15797
25057eb0
HD
157982020-01-03 Hannes Domani <ssbssa@yahoo.de>
15799
15800 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15801
6e2118f5
BE
158022020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15803
15804 * MAINTAINERS (Write After Approval): Add myself.
15805
8133c7dc
LM
158062020-01-02 Luis Machado <luis.machado@linaro.org>
15807
15808 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15809 Cell BE architecture.
15810 * target.h (struct target_ops) <thread_architecture>: Likewise.
15811
48189bec
HD
158122020-01-01 Hannes Domani <ssbssa@yahoo.de>
15813
15814 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15815
ead1063b
HD
158162020-01-01 Hannes Domani <ssbssa@yahoo.de>
15817
15818 * MAINTAINERS (Write After Approval): Add myself.
15819
e5d78223
JB
158202020-01-01 Joel Brobecker <brobecker@adacore.com>
15821
15822 * gdbarch.sh: Update copyright year range of generated files.
15823
b811d2c2
JB
158242020-01-01 Joel Brobecker <brobecker@adacore.com>
15825
15826 Update copyright year range in all GDB files.
15827
5f4def5c
JB
158282020-01-01 Joel Brobecker <brobecker@adacore.com>
15829
15830 * copyright.py: Convert to Python 3.
15831
51fd4002
JB
158322020-01-01 Joel Brobecker <brobecker@adacore.com>
15833
15834 * copyright.py: Adapt after move of gnulib directory from gdb
15835 directory to toplevel directory.
15836
5fb651f2
JB
158372020-01-01 Joel Brobecker <brobecker@adacore.com>
15838
15839 * copyright.py (main): Exit if run from the wrong directory.
15840
5dd8bf88
JB
158412020-01-01 Joel Brobecker <brobecker@adacore.com>
15842
15843 * top.c (print_gdb_version): Change copyright year to 2020.
15844
9f71dacb 158452020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15846
9f71dacb 15847 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15848
9f71dacb 15849For older changes see ChangeLog-2019.
c906108c
SS
15850\f
15851Local Variables:
15852mode: change-log
15853left-margin: 8
15854fill-column: 74
15855version-control: never
57da7796 15856coding: utf-8
c906108c 15857End: