]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb::handle_eintr, remove need to specify return type
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d744f0f9
PA
12020-10-26 Pedro Alves <pedro@palves.net>
2
3 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
4 (my_waitpid): Use gdb::handle_eintr.
5
006811bc
SM
62020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
7
8 * acinclude.m4: Update ptrace.m4 path.
9 * ptrace.m4: Moved to gdbsupport.
10
c75e31a1
SM
112020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
12
13 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
14 instead of target_gdbarch.
15
32495661
SM
162020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
17
18 * jit.c (jit_reader_load_command): Pass current inferior.
19 (jit_inferior_init): Change parameter type to inferior, use it.
20 (jit_inferior_created): Remove.
21 (jit_inferior_created_hook): Pass inferior parameter down.
22 (_initialize_jit): Use jit_inferior_created_hook instead of
23 jit_inferior_created.
24 * jit.h (jit_inferior_created_hook): Add inferior parameter.
25 * infrun.c (follow_exec): Pass inferior to
26 jit_inferior_created_hook.
27
3f66685e
SM
282020-10-24 Simon Marchi <simon.marchi@efficios.com>
29
30 * linux-thread-db.c (check_pid_namespace_match): Add inferior
31 parameter and use it.
32 (thread_db_inferior_created): Pass inferior argument.
33
a0ff652f
SM
342020-10-24 Simon Marchi <simon.marchi@efficios.com>
35
36 * aix-thread.c (aix_thread_inferior_created): Add inferior
37 parameter.
38 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
39 * dummy-frame.c (cleanup_dummy_frames): Likewise.
40 * jit.c (jit_inferior_created): Likewise.
41 * linux-thread-db.c (thread_db_inferior_created): Likewise.
42 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
43 * observable.h (inferior_created): Likewise.
44 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
45 * symfile-mem.c (add_vsyscall_page): Likewise.
46 * infcmd.c (post_create_inferior): Pass inferior argument.
47
3c67532c
JB
482020-10-24 Joel Brobecker <brobecker@adacore.com>
49
50 GDB 10.1 released.
51
8747316e
JB
522020-10-23 Joel Brobecker <brobecker@adacore.com>
53
54 * ada-typeprint.c (ada_print_type): Remove superfluous second call
55 to ada_check_typedef.
56
1a0ea399
AB
572020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
58
59 * f-exp.y (f_parse): Rename to...
60 (f_language::parser): ...this.
61 * f-lang.c (f_get_encoding): Rename to...
62 (f_language::get_encoding): ...this.
63 (f_op_print_tab): Rename to...
64 (f_language::op_print_tab): ...this.
65 (exp_descriptor_f): Rename to...
66 (f_language::exp_descriptor_tab): ...this.
67 (class f_language): Moved to f-lang.h.
68 (f_language::language_arch_info): New function, moved out of class
69 declaration.
70 (f_language::search_name_hash): Likewise.
71 (f_language::lookup_symbol_nonlocal): Likewise.
72 (f_language::get_symbol_name_matcher_inner): Likewise.
73 * f-lang.h: Add 'valprint.h' include.
74 (class f_language): Moved here from f-lang.c.
75 * f-typeprint.c (f_type_print_args): Delete commented out
76 declaration.
77 (f_print_typedef): Rename to...
78 (f_language::print_typedef): ...this.
79 (f_print_type): Rename to...
80 (f_language::print_type): ...this.
81 (f_type_print_varspec_prefix): Delete declaration and rename to...
82 (f_language::f_type_print_varspec_prefix): ...this.
83 (f_type_print_varspec_suffix): Delete declaration and rename to...
84 (f_language::f_type_print_varspec_suffix): ...this.
85 (f_type_print_base): Delete declaration and rename to...
86 (f_language::f_type_print_base): ...this.
87 * f-valprint.c (f_value_print_inner): Rename to...
88 (f_language::value_print_inner): ...this.
89 * parse.c: Delete 'f-lang.h' include.
90
88cefd9b
AB
912020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
92
93 * language.h (language_defn::print_type): Add variable names in
94 declaration, and update header comment.
95
5399db93
AB
962020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
97
98 * ada-lang.c (ada_language::demangle): Rename to...
99 (ada_language::demangle_symbol): ...this.
100 * c-lang.c (cplus_language::demangle): Rename to...
101 (cplus_language::demangle_symbol): ...this.
102 * d-lang.c (d_language::demangle): Rename to...
103 (d_language::demangle_symbol): ...this.
104 * f-lang.c (f_language::demangle): Rename to...
105 (f_language::demangle_symbol): ...this.
106 * go-lang.c (go_language::demangle): Rename to...
107 (go_language::demangle_symbol): ...this.
108 * language.c (language_demangle): Update call to demangle_symbol.
109 (auto_or_unknown_language::demangle): Rename to...
110 (auto_or_unknown_language::demangle_symbol): ...this.
111 * language.h (language_defn::demangle): Rename to...
112 (language_defn::demangle_symbol): ...this.
113 * objc-lang.c (objc_language::demangle): Rename to...
114 (objc_language::demangle_symbol): ...this.
115 * rust-lang.c (rust_language::demangle): Rename to...
116 (rust_language::demangle_symbol): ...this.
117
4b2f86ef
AB
1182020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
119
120 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
121 (iterate_over_file_blocks): Replace use of macro with the macros
122 definition.
123
e74b39de
AB
1242020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
125
126 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
127 * valprint.c (maybe_print_array_index): Replace use of macro with
128 the macros definition.
129
00c696a6
AB
1302020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
131
132 * ada-lang.c (ada_language::print_array_index): Call value_print
133 directly.
134 * language.c (language_defn::print_array_index): Likewise.
135 * language.h (LA_VALUE_PRINT): Delete.
136 * valprint.c (value_print): Call value_print on the
137 current_language directly.
138
d3b67c56
AB
1392020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
140
141 * language.h (LA_PRINT_TYPEDEF): Delete.
142 * typeprint.c (typedef_print): Call print_typedef directly on the
143 current_language object.
144
790e2a12
AB
1452020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
146
147 * m2-exp.y (m2_parse): Rename to...
148 (m2_language::parser): ...this. Update function signature.
149 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
150 (m2_op_print): Rename to...
151 (m2_language::op_print_tab): ...this, and make const.
152 (exp_descriptor_modula2): Rename to...
153 (m2_language::exp_descriptor_modula2): ...this.
154 (class m2_language): Move to m2-lang.h.
155 (m2_language::language_arch_info): New function, moved out of
156 class declaration.
157 (m2_language::printchar): New function, body from m2_printchar.
158 (m2_language::printstr): New function, moved out of class
159 declaration.
160 (m2_language::emitchar): Likewise.
161 * m2-lang.h (m2_parse): Delete declaration.
162 (m2_print_typedef): Delete declaration.
163 (m2_value_print_inner): Delete declaration.
164 (class m2_language): Class declaration moved from m2-lang.c,
165 larger functions are left in m2-lang.c.
166 * m2-typeprint.c (m2_print_typedef): Rename to...
167 (m2_language::print_typedef): ...this, and update function
168 signature.
169 * m2-valprint.c (m2_value_print_inner): Rename to...
170 (m2_language::value_print_inner): ...this, replace use of
171 LA_PRINT_STRING with a direct call to printstr member function,
172 and update recursive call.
173
b01175fc
AB
1742020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
175
176 * language.c (default_is_string_type_p): Delete, implementation
177 moved into auto_or_unknown_language::is_string_type_p.
178 (unk_op_print_tab): Moved into
179 auto_or_unknown_language::opcode_print_table.
180 (unknown_language_arch_info): Delete, implementation moved into
181 auto_or_unknown_language::language_arch_info.
182 (class auto_or_unknown_language): New class, member functions
183 copied from unknown_language class, with some updates.
184 (class unknown_language): Most member functions moved into
185 auto_or_unknown_language class. Inherit from
186 auto_or_unknown_language class.
187 (class auto_language): Inherit from auto_or_unknown_language.
188 Delete most member functions.
189
1a97fe8c
HD
1902020-10-22 Hannes Domani <ssbssa@yahoo.de>
191
192 * stabsread.c (read_member_functions): Remove gdb_assert.
193
6b9d0dfd
HD
1942020-10-22 Hannes Domani <ssbssa@yahoo.de>
195
196 * gdbtypes.c (init_complex_type): Check target type name.
197
4b4bb603
SM
1982020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
199
200 * target-debug.h (target_debug_print_struct_target_ops_p):
201 Remove.
202 (target_debug_print_async_callback_ftype_p): Remove.
203 (target_debug_print_struct_trace_state_variable_p): Remove.
204 (target_debug_print_struct_traceframe_info_p): Remove.
205 (target_debug_print_VEC__btrace_block_s__pp): Remove.
206 (target_debug_print_enum_btrace_format): Remove.
207 (target_debug_print_enum_info_proc_what): Remove.
208 (target_debug_print_thread_info_pp): Remove.
209
24f5300a
SM
2102020-10-22 Simon Marchi <simon.marchi@efficios.com>
211
212 * target.h (struct target_ops) <make_corefile_notes>:
213 Change return type to unique pointer.
214 * target.c (dummy_make_corefile_notes): Likewise.
215 * exec.c (struct exec_target) <make_corefile_notes>:
216 Likewise.
217 (exec_target::make_corefile_notes): Likewise.
218 * procfs.c (class procfs_target) <make_corefile_notes>:
219 Likewise.
220 (procfs_do_thread_registers): Adjust to unique pointer.
221 (struct procfs_corefile_thread_data): Add constructor.
222 <note_data>: Change type to unique pointer.
223 (procfs_corefile_thread_callback): Adjust to unique pointer.
224 (procfs_target::make_corefile_notes): Change return type to
225 unique pointer.
226 * target-delegates.c: Re-generate.
227 * gcore.c (write_gcore_file_1): Adjust.
228 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
229 New.
230
5fb4027f
TV
2312020-10-22 Tom de Vries <tdevries@suse.de>
232
233 * block.c (find_block_in_blockvector): Make sure the returned block
234 contains pc.
235
4a636814
SM
2362020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
237
238 PR gdb/26693
239 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
240 parameter.
241 (load_cu): Pass existing CU.
242 (process_imported_unit_die): Likewise.
243 (follow_die_offset): Likewise.
244
1bd57575
LM
2452020-10-22 Luis Machado <luis.machado@linaro.org>
246
247 * corelow.c (core_target::xfer_partial): Also check for an empty
248 m_core_unavailable_mappings vector.
249
6b4c676c
AB
2502020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
251
252 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
253 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
254 * f-exp.y (arglist): Allow for a series of subranges.
255 (subrange): Add cases for subranges with strides.
256 * f-lang.c (value_f90_subarray): Catch use of array strides and
257 throw an error.
258 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
259
f2d8e4c5
AB
2602020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
261
262 * expprint.c (print_subexp_standard): Change enum range_type to
263 range_flag and rename variables to match.
264 (dump_subexp_body_standard): Likewise.
265 * expression.h (enum range_type): Rename to...
266 (enum range_flag): ...this.
267 (range_types): Rename to...
268 (range_flags): ...this.
269 * f-lang.c (value_f90_subarray): Change enum range_type to
270 range_flag and rename variables to match.
271 * parse.c (operator_length_standard): Likewise.
272 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
273 range_type to range_flag.
274 * rust-lang.c (rust_evaluate_funcall): Likewise.
275 (rust_range): Likewise.
276 (rust_compute_range): Likewise.
277 (rust_subscript): Likewise.
278
2f1b18db
AB
2792020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
280
281 * expprint.c (print_subexp_standard): Update to reflect changes to
282 enum range_type.
283 (dump_subexp_body_standard): Likewise.
284 * expression.h (enum range_type): Convert to a bit field enum, and
285 make the enum unsigned.
286 * f-exp.y (subrange): Update to reflect changes to enum
287 range_type.
288 * f-lang.c (value_f90_subarray): Likewise.
289 * parse.c (operator_length_standard): Likewise.
290 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
291 * rust-lang.c (rust_range): Likewise.
292 (rust_compute_range): Likewise.
293 (rust_subscript): Likewise.
294
a46d1843
SM
2952020-10-21 Simon Marchi <simon.marchi@efficios.com>
296
297 * infrun.c (displaced_step_in_progress_thread): Fix comment.
298 (displaced_step_in_progress): Fix comment.
299
c21f37a8
SM
3002020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
301
302 * gdbarch.sh (make_corefile_notes): Return unique pointer.
303 * gdbarch.c: Re-generate.
304 * gdbarch.h: Re-generate.
305 * gcore.c (write_gcore_file_1): Adjust.
306 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
307 constructor.
308 <note_data>: Change type to unique pointer.
309 <abort_iteration>: Change type to bool.
310 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
311 (fbsd_collect_thread_registers): Return void, adjust.
312 (struct fbsd_corefile_thread_data): Add construtor.
313 <note_data>: Change type to unique pointer.
314 (fbsd_corefile_thread): Adjust.
315 (fbsd_make_corefile_notes): Return unique pointer, adjust.
316 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
317 to unique pointer, adjust.
318 (struct linux_collect_regset_section_cb_data): Add constructor.
319 <note_data>: Change type to unique pointer.
320 <abort_iteration>: Change type to bool.
321 (linux_collect_thread_registers): Return void, adjust.
322 (struct linux_corefile_thread_data): Add constructor.
323 <note_data>: Change type to unique pointer.
324 (linux_corefile_thread): Adjust.
325 (linux_make_corefile_notes): Return unique pointer, adjust.
326
07fbbd01
SM
3272020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
328
329 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
330 * gdbarch.c: Re-generate.
331 * gdbarch.h: Re-generate.
332 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
333 bool.
334 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
335 Likewise.
336 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
337 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
338 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
339 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
340
39535193
SM
3412020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
342
343 * gdbarch.sh: Make generated predicates return bool.
344 * gdbarch.c: Re-generate.
345 * gdbarch.h: Re-generate.
346
ad523d01
TT
3472020-10-20 Tom Tromey <tom@tromey.com>
348
349 * varobj-iter.h (struct varobj_item): Remove typedef.
350
c4464ade
SM
3512020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
352
353 * infrun.c (currently_stepping): Change int to bool
354 (maybe_software_singlestep): Likewise.
355 (show_stop_on_solib_events): Likewise.
356 (stepping_past_nonsteppable_watchpoint): Likewise.
357 (displaced_step_in_progress_any_inferior): Likewise.
358 (displaced_step_in_progress_thread): Likewise.
359 (keep_going_stepped_thread): Likewise.
360 (thread_still_needs_step_over): Likewise.
361 (start_step_over): Likewise.
362 (do_target_resume): Likewise.
363 (resume_1): Likewise.
364 (clear_proceed_status): Likewise.
365 (thread_still_needs_step_over_bp): Likewise.
366 (proceed): Likewise.
367 (switch_back_to_stepped_thread): Likewise.
368 (adjust_pc_after_break): Likewise.
369 (stepped_in_from): Likewise.
370 (handle_stop_requested): Likewise.
371 (handle_syscall_event): Likewise.
372 (handle_no_resumed): Likewise.
373 (handle_inferior_event): Likewise.
374 (finish_step_over): Likewise.
375 (handle_signal_stop): Likewise.
376 (process_event_stop_test): Likewise.
377
2eb20436
SM
3782020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
379
380 * infrun.c (get_displaced_stepping_state): Fix comment.
381
e0c45ded
AS
3822020-10-20 Andreas Schwab <schwab@linux-m68k.org>
383
384 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
385
22cc388e
TT
3862020-10-19 Tom Tromey <tromey@adacore.com>
387
388 PR tui/26719
389 * tui/tui-winsource.h (struct tui_source_window_base)
390 <refresh_window>: Rename from refresh_pad.
391 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
392 Rename from refresh_pad.
393 (tui_source_window_base::show_source_content)
394 (tui_source_window_base::do_scroll_horizontal): Update.
395
3c6eb4d4
TBA
3962020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
397
398 * thread.c (_initialize_thread): Fine-tune the help text of
399 'info threads'.
400
26703721
TBA
4012020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
402
403 * frame.c: Remove the unused 'uinteger_option_def' type alias.
404
61c26be8
MS
4052020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
406
407 * breakpoint.c (handle_jit_event): Add an argument, change how
408 `jit_event_handler` is called.
409
932539d7
TT
4102020-10-17 Tom Tromey <tom@tromey.com>
411
412 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
413 (scan_xcoff_symtab): Update.
414 * psymtab.h (class psymtab_storage) <global_psymbols,
415 static_psymbols, current_global_psymbols,
416 current_static_psymbols>: Remove.
417 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
418 (match_partial_symbol, lookup_partial_symbol): Update.
419 (print_partial_symbols): Change parameters.
420 (dump_psymtab, recursively_search_psymtabs)
421 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
422 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
423 (concat): Remove.
424 (end_psymtab_common): Simplify.
425 (append_psymbol_to_list): Change parameters.
426 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
427 (init_psymbol_list): Simplify.
428 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
429 * psympriv.h (struct partial_symtab) <empty>: New method.
430 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
431 Remove.
432 <global_psymbols, static_psymbols>: New members.
433 <add_psymbol>: New methods.
434 (add_psymbol_to_list): Don't declare.
435 (psymbol_placement): Move earlier.
436 * mdebugread.c (parse_partial_symbols): Update.
437 (handle_psymbol_enumerators): Change parameters.
438 (mdebug_expand_psymtab): Update.
439 * dwarf2/read.c (process_psymtab_comp_unit_reader)
440 (add_partial_symbol): Update.
441 * dwarf2/index-write.c (write_psymbols): Change parameters.
442 (write_one_signatured_type): Update.
443 (recursively_count_psymbols): Update.
444 (recursively_write_psymbols): Update.
445 (class debug_names) <recursively_write_psymbols>: Update.
446 <write_psymbols>: Change parameters.
447 <write_one_signatured_type>: Update.
448 * dbxread.c (read_dbx_symtab): Update.
449 (dbx_end_psymtab): Use partial_symtab::empty.
450 * ctfread.c (struct ctf_context) <pst>: New member.
451 (create_partial_symtab): Set it.
452 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
453 (scan_partial_symbols): Use the psymtab's context. Update.
454
cfabbd35
TT
4552020-10-17 Tom Tromey <tom@tromey.com>
456
457 * valprint.c (generic_value_print): Remove comment.
458 * m2-valprint.c (m2_value_print_inner): Remove comment.
459 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
460 type.
461
520596f2
TV
4622020-10-17 Tom de Vries <tdevries@suse.de>
463
464 PR symtab/26317
465 * source.c (select_source_symtab): Handling sal.symtab == NULL for
466 symbol main.
467
76547ab3
TV
4682020-10-14 Tom de Vries <tdevries@suse.de>
469
470 PR gdb/26733
471 * solib.c (solib_contains_address_p): Handle
472 'solib->sections == nullptr'.
473
d3a07122
SM
4742020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
475
476 PR gdb/26642
477 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
478 target can't do async.
479 * target.c (target_wait): Assert that we don't pass
480 TARGET_WNOHANG to a target that can't async.
481
1b71cfcf
KR
4822020-10-13 Kamil Rytarowski <n54@gmx.com>
483
484 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
485 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
486 * alpha-bsd-nat.c: Adjust include.
487 * alpha-bsd-tdep.h: Adjust comment.
488 * alpha-nbsd-tdep.c: Rename to ...
489 * alpha-netbsd-tdep.c: ... this, adjust include.
490 * amd64-nbsd-nat.c: Rename to ...
491 * amd64-netbsd-nat.c: ... this, adjust include.
492 * amd64-nbsd-tdep.c: Rename to ...
493 * amd64-netbsd-tdep.c: ... this, adjust include.
494 * amd64-tdep.h: Adjust include.
495 * arm-nbsd-nat.c: Rename to ...
496 * arm-netbsd-nat.c: ... this, adjust include.
497 * arm-nbsd-tdep.c: Rename to ...
498 * arm-netbsd-tdep.c: ... this, adjust include.
499 * arm-nbsd-tdep.h: Rename to ...
500 * arm-netbsd-tdep.h: ... this, adjust include.
501 * configure.nat: Adjust file lists.
502 * configure.tgt: Likewise.
503 * hppa-nbsd-nat.c: Rename to ...
504 * hppa-netbsd-nat.c: ... this, adjust include.
505 * hppa-nbsd-tdep.c: Rename to ...
506 * hppa-netbsd-tdep.c: ... this, adjust include.
507 * i386-nbsd-nat.c: Rename to ...
508 * i386-netbsd-nat.c: ... this, adjust include.
509 * i386-nbsd-tdep.c: Rename to ...
510 * i386-netbsd-tdep.c: ... this, adjust include.
511 * m68k-bsd-nat.c: Adjust include.
512 * mips-nbsd-nat.c: Rename to ...
513 * mips-netbsd-nat.c: ... this, adjust include.
514 * mips-nbsd-tdep.c: Rename to ...
515 * mips-netbsd-tdep.c: ... this, adjust include.
516 * mips-nbsd-tdep.h: Rename to ...
517 * mips-netbsd-tdep.h: ... this.
518 * nbsd-nat.c: Rename to ...
519 * netbsd-nat.c: ... this, adjust include.
520 * nbsd-nat.h: Rename to ...
521 * netbsd-nat.h: ... this, adjust include.
522 * nbsd-tdep.c: Rename to ...
523 * netbsd-tdep.c: ... this, adjust include.
524 * nbsd-tdep.h: Rename to ...
525 * netbsd-tdep.h: ... this.
526 * ppc-nbsd-nat.c: Rename to ...
527 * ppc-netbsd-nat.c: ... this, adjust include.
528 * ppc-nbsd-tdep.c: Rename to ...
529 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
530 * ppc-nbsd-tdep.h: Rename to ...
531 * ppc-netbsd-tdep.h: ... this.
532 * sh-nbsd-nat.c: Rename to ...
533 * sh-netbsd-nat.c: ... this, adjust include.
534 * sh-nbsd-tdep.c: Rename to ...
535 * sh-netbsd-tdep.c: ... this, adjust include.
536 * sparc-nbsd-nat.c: Rename to ...
537 * sparc-netbsd-nat.c: ... this.
538 * sparc-nbsd-tdep.c: Rename to ...
539 * sparc-netbsd-tdep.c: ... this, adjust include.
540 * sparc64-nbsd-nat.c: Rename to ...
541 * sparc64-netbsd-nat.c: ... this.
542 * sparc64-nbsd-tdep.c: Rename to ...
543 * sparc64-netbsd-tdep.c: ... this, adjust include.
544 * sparc64-tdep.h: Adjust comment.
545 * vax-bsd-nat.c: Adjust include.
546 * vax-nbsd-tdep.c: Rename to ...
547 * vax-netbsd-tdep.c: ... this, adjust include.
548
d7a78e5c
TT
5492020-10-12 Tom Tromey <tom@tromey.com>
550
551 * target.h (struct target_ops) <get_section_table>: Update.
552 (target_get_section_table): Update.
553 * target.c (target_get_section_table, target_section_by_addr)
554 (memory_xfer_partial_1): Update.
555 * target-section.h (target_section_table): Now an alias.
556 * target-delegates.c: Rebuild.
557 * target-debug.h (target_debug_print_target_section_table_p):
558 Rename from target_debug_print_struct_target_section_table_p.
559 * symfile.c (build_section_addr_info_from_section_table): Update.
560 * solib.c (solib_map_sections, solib_contains_address_p): Update.
561 * solib-svr4.c (scan_dyntag): Update.
562 * solib-dsbt.c (scan_dyntag): Update.
563 * remote.c (remote_target::remote_xfer_live_readonly_partial):
564 Update.
565 * record-full.c (record_full_core_target::xfer_partial): Update.
566 * progspace.h (struct program_space) <target_sections>: Update.
567 * exec.h (print_section_info): Update.
568 * exec.c (exec_target::close, build_section_table)
569 (add_target_sections, add_target_sections_of_objfile)
570 (remove_target_sections, exec_on_vfork)
571 (section_table_available_memory)
572 (section_table_xfer_memory_partial)
573 (exec_target::get_section_table, exec_target::xfer_partial)
574 (print_section_info, set_section_command)
575 (exec_set_section_address, exec_target::has_memory): Update.
576 * corelow.c (core_target::build_file_mappings)
577 (core_target::xfer_partial, core_target::info_proc_mappings)
578 (core_target::info_proc_mappings): Update.
579 * bfd-target.c (class target_bfd): Update
580
eda214ce
TT
5812020-10-12 Tom Tromey <tom@tromey.com>
582
583 * progspace.c (program_space::~program_space): Don't call
584 clear_section_table.
585 * exec.h (clear_section_table): Don't declare.
586 * exec.c (exec_target::close): Update.
587 (clear_section_table): Remove.
588
91840ee3
TT
5892020-10-12 Tom Tromey <tom@tromey.com>
590
591 * exec.c (add_target_sections_of_objfile): Simplify.
592
2d128614
TT
5932020-10-12 Tom Tromey <tom@tromey.com>
594
595 * solib.c (solib_map_sections): Update.
596 * record-full.c (record_full_core_open_1): Update.
597 * exec.h (build_section_table): Return a target_section_table.
598 * exec.c (exec_file_attach): Update.
599 (build_section_table): Return a target_section_table.
600 * corelow.c (core_target::core_target): Update.
601 * bfd-target.c (target_bfd::target_bfd): Update.
602
bb2a6777
TT
6032020-10-12 Tom Tromey <tom@tromey.com>
604
605 * target.c (target_section_by_addr, memory_xfer_partial_1):
606 Update.
607 * target-section.h (struct target_section_table): Use
608 std::vector.
609 * symfile.h (build_section_addr_info_from_section_table): Take a
610 target_section_table.
611 * symfile.c (build_section_addr_info_from_section_table): Take a
612 target_section_table.
613 * solist.h (struct so_list) <sections>: Change type.
614 <sections_end>: Remove.
615 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
616 (solib_contains_address_p): Update.
617 * solib-svr4.c (scan_dyntag): Update.
618 * solib-dsbt.c (scan_dyntag): Update.
619 * remote.c (remote_target::remote_xfer_live_readonly_partial):
620 Update.
621 * record-full.c (record_full_core_start, record_full_core_end):
622 Remove.
623 (record_full_core_sections): New global.
624 (record_full_core_open_1, record_full_core_target::xfer_partial):
625 Update.
626 * exec.h (build_section_table, section_table_xfer_memory_partial)
627 (add_target_sections): Take a target_section_table.
628 * exec.c (exec_file_attach, clear_section_table): Update.
629 (resize_section_table): Remove.
630 (build_section_table, add_target_sections): Take a
631 target_section_table.
632 (add_target_sections_of_objfile, remove_target_sections)
633 (exec_on_vfork): Update.
634 (section_table_available_memory): Take a target_section_table.
635 (section_table_read_available_memory): Update.
636 (section_table_xfer_memory_partial): Take a target_section_table.
637 (print_section_info, set_section_command)
638 (exec_set_section_address, exec_target::has_memory): Update.
639 * corelow.c (class core_target) <m_core_section_table,
640 m_core_file_mappings>: Remove braces.
641 <~core_target>: Remove.
642 (core_target::core_target): Update.
643 (core_target::~core_target): Remove.
644 (core_target::build_file_mappings)
645 (core_target::xfer_memory_via_mappings)
646 (core_target::xfer_partial, core_target::info_proc_mappings):
647 Update.
648 * bfd-target.c (target_bfd::xfer_partial): Update.
649 (target_bfd::target_bfd): Update.
650 (target_bfd::~target_bfd): Remove.
651
7b466b10
TT
6522020-10-12 Tom Tromey <tom@tromey.com>
653
654 * target.h (struct target_section, struct target_section_table):
655 Move to target-section.h.
656 * target-section.h: New file.
657
87a37e5e
PA
6582020-10-12 Pedro Alves <pedro@palves.net>
659
660 PR exp/26602
661 * valops.c (struct struct_field_searcher): New.
662 (update_search_result): Rename to ...
663 (struct_field_searcher::update_result): ... this. Simplify
664 prototype. Record all found fields.
665 (do_search_struct_field): Rename to ...
666 (struct_field_searcher::search): ... this. Simplify prototype.
667 Maintain stack of visited baseclass path. Call update_result for
668 fields too. Keep searching fields in baseclasses instead of
669 stopping at the first found field.
670 (search_struct_field): Use struct_field_searcher. When looking
671 for fields, report ambiguous access attempts.
672
9370fd51
AB
6732020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
674
675 * frame.c (inside_main_func): Check full symbols as well as
676 minimal symbols.
677
59c8a30b
JB
6782020-10-09 Joel Brobecker <brobecker@adacore.com>
679
680 * ada-lang.c (advance_wild_match): Rewrite the function's
681 description. Change the type of target0, t0 and t1 to char.
682
7c184d33
TT
6832020-10-09 Tom Tromey <tromey@adacore.com>
684
685 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
686
5c4258f4
TT
6872020-10-09 Tom Tromey <tromey@adacore.com>
688
689 * ada-lang.h (ada_encode): Return std::string.
690 * ada-lang.c (ada_encode_1): Return std::string.
691 (ada_encode): Likewise.
692 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
693 Update.
694 * ada-exp.y (block_lookup, write_var_or_type): Update.
695
3d87245c
HD
6962020-10-09 Hannes Domani <ssbssa@yahoo.de>
697
698 PR exp/26714
699 * printcmd.c (print_formatted): Handle void results as
700 unformatted prints.
701
bbb826f5
AB
7022020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
703
704 * arch/aarch32.c (aarch32_create_target_description): Release the
705 target_desc_up as late as possible.
706 * arch/aarch64.c (aarch64_create_target_description): Likewise.
707 * arch/amd64.c (amd64_create_target_description): Likewise.
708 * arch/arc.c (arc_create_target_description): Return a
709 target_desc_up, don't release it.
710 * arch/arc.h (arc_create_target_description): Update declaration.
711 (arc_lookup_target_description): Move target_desc_up into the
712 cache, and return a borrowed pointer.
713 * arch/arm.c (arm_create_target_description): Release the
714 target_desc_up as late as possible.
715 * arch/i386.c (i386_create_target_description): Likewise.
716 * arch/riscv.h (riscv_create_target_description): Update
717 declaration to match definition.
718 * arch/tic6x.c (tic6x_create_target_description): Release the
719 target_desc_up as late as possible.
720
361cb219
AB
7212020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
722
723 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
724 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
725
f5c4b229
JV
7262020-10-09 Jan Vrany <jan.vrany@labware.com>
727
728 * source.c (directory_command): Notify observers that "directories"
729 parameter has changed.
730
b2701685
TT
7312020-10-08 Tom Tromey <tom@tromey.com>
732
733 * cli/cli-cmds.c (print_disassembly): Style function name and
734 addresses. Add _() wrappers.
735
ada508b6
SV
7362020-10-08 Shahab Vahedi <shahab@synopsys.com>
737
738 * NEWS: Mention ARC support in GDBserver.
739
51a948fd
AB
7402020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
741
742 * arch/aarch32.c (aarch32_create_target_description): Release
743 unique_ptr returned from allocate_target_description.
744 * arch/aarch64.c (aarch64_create_target_description): Likewise.
745 * arch/amd64.c (amd64_create_target_description): Likewise.
746 * arch/arc.c (arc_create_target_description): Likewise.
747 * arch/arm.c (arm_create_target_description): Likewise.
748 * arch/i386.c (i386_create_target_description): Likewise.
749 * arch/riscv.c (riscv_create_target_description): Update return
750 type. Handle allocate_target_description returning a unique_ptr.
751 (riscv_lookup_target_description): Update to handle unique_ptr.
752 * arch/tic6x.c (tic6x_create_target_description): Release
753 unique_ptr returned from allocate_target_description.
754 * features/microblaze-with-stack-protect.c: Regenerate.
755 * features/microblaze.c: Regenerate.
756 * features/mips-dsp-linux.c: Regenerate.
757 * features/mips-linux.c: Regenerate.
758 * features/mips64-dsp-linux.c: Regenerate.
759 * features/mips64-linux.c: Regenerate.
760 * features/nds32.c: Regenerate.
761 * features/nios2.c: Regenerate.
762 * features/or1k.c: Regenerate.
763 * features/rs6000/powerpc-32.c: Regenerate.
764 * features/rs6000/powerpc-32l.c: Regenerate.
765 * features/rs6000/powerpc-403.c: Regenerate.
766 * features/rs6000/powerpc-403gc.c: Regenerate.
767 * features/rs6000/powerpc-405.c: Regenerate.
768 * features/rs6000/powerpc-505.c: Regenerate.
769 * features/rs6000/powerpc-601.c: Regenerate.
770 * features/rs6000/powerpc-602.c: Regenerate.
771 * features/rs6000/powerpc-603.c: Regenerate.
772 * features/rs6000/powerpc-604.c: Regenerate.
773 * features/rs6000/powerpc-64.c: Regenerate.
774 * features/rs6000/powerpc-64l.c: Regenerate.
775 * features/rs6000/powerpc-7400.c: Regenerate.
776 * features/rs6000/powerpc-750.c: Regenerate.
777 * features/rs6000/powerpc-860.c: Regenerate.
778 * features/rs6000/powerpc-altivec32.c: Regenerate.
779 * features/rs6000/powerpc-altivec32l.c: Regenerate.
780 * features/rs6000/powerpc-altivec64.c: Regenerate.
781 * features/rs6000/powerpc-altivec64l.c: Regenerate.
782 * features/rs6000/powerpc-e500.c: Regenerate.
783 * features/rs6000/powerpc-e500l.c: Regenerate.
784 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
785 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
786 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
787 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
788 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
789 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
790 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
791 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
792 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
793 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
794 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
795 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
796 * features/rs6000/powerpc-vsx32.c: Regenerate.
797 * features/rs6000/powerpc-vsx32l.c: Regenerate.
798 * features/rs6000/powerpc-vsx64.c: Regenerate.
799 * features/rs6000/powerpc-vsx64l.c: Regenerate.
800 * features/rs6000/rs6000.c: Regenerate.
801 * features/rx.c: Regenerate.
802 * features/s390-gs-linux64.c: Regenerate.
803 * features/s390-linux32.c: Regenerate.
804 * features/s390-linux32v1.c: Regenerate.
805 * features/s390-linux32v2.c: Regenerate.
806 * features/s390-linux64.c: Regenerate.
807 * features/s390-linux64v1.c: Regenerate.
808 * features/s390-linux64v2.c: Regenerate.
809 * features/s390-te-linux64.c: Regenerate.
810 * features/s390-tevx-linux64.c: Regenerate.
811 * features/s390-vx-linux64.c: Regenerate.
812 * features/s390x-gs-linux64.c: Regenerate.
813 * features/s390x-linux64.c: Regenerate.
814 * features/s390x-linux64v1.c: Regenerate.
815 * features/s390x-linux64v2.c: Regenerate.
816 * features/s390x-te-linux64.c: Regenerate.
817 * features/s390x-tevx-linux64.c: Regenerate.
818 * features/s390x-vx-linux64.c: Regenerate.
819 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
820 from allocate_target_description.
821 * target-descriptions.c (allocate_target_description): Update
822 return type.
823 (print_c_tdesc::visit_pre): Release unique_ptr returned from
824 allocate_target_description.
825
485c47e5
TT
8262020-10-07 Tom Tromey <tromey@adacore.com>
827
828 * unittests/search-memory-selftests.c: New file.
829 * Makefile.in (SELFTESTS_SRCS): Add
830 unittests/search-memory-selftests.c.
831
3a135a91
TT
8322020-10-07 Tom Tromey <tromey@adacore.com>
833
834 PR gdb/16930:
835 * findcmd.c (_initialize_mem_search): Mention that the range is
836 inclusive.
837
4a72de73
TT
8382020-10-07 Tom Tromey <tromey@adacore.com>
839
840 * target.h (simple_search_memory): Don't declare.
841 * target.c (simple_search_memory): Move to gdbsupport.
842 (default_search_memory): Update.
843 * remote.c (remote_target::search_memory): Update.
844
a038ffd8
SM
8452020-10-07 Simon Marchi <simon.marchi@efficios.com>
846
847 * Makefile.in (COMPILE): Add CXXFLAGS.
848 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
849 (check-headers): Add CXXFLAGS.
850
cc463201
AK
8512020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
852
853 * arc-linux-tdep.h: New file.
854 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
855 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
856 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
857 arc_linux_gregset, arc_linux_v2_regset,
858 arc_linux_iterate_over_regset_sections,
859 arc_linux_core_read_description): Implement.
860 (arc_linux_init_osabi): Set iterate_over_regset_sections.
861 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
862 (arc_gdbarch_features_create): Add.
863 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
864
e4bd363f
SV
8652020-10-07 Shahab Vahedi <shahab@synopsys.com>
866
867 * arch/arc.h: Rename "arc_gdbarch_features" to
868 "arc_arch_features".
869 * arc-tdep.h: Likewise.
870 * arc-tdep.c: Likewise.
871
b68bef99
TBA
8722020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
873
874 * infcmd.c (attach_command): Remove the redundant call to
875 `clear_proceed_status`.
876
4641551a
KR
8772020-10-07 Kamil Rytarowski <n54@gmx.com>
878
879 * nat/netbsd-nat.c (write_memory, read_memory): Update.
880
91e5e8db
KR
8812020-10-07 Kamil Rytarowski <n54@gmx.com>
882
883 * nat/netbsd-nat.c (write_memory, read_memory): Add.
884 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
885 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
886
64c03bdb
SM
8872020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
888
889 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
890 (_initialize_break_catch_sig): Don't allocate array.
891
31a8f60f
AB
8922020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
893
894 * symtab.c (find_pc_line): Return unmapped addresses when the
895 requested address is also unmapped.
896
9e6dbd8b
SM
8972020-10-05 Simon Marchi <simon.marchi@efficios.com>
898
899 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
900 tui/tui-out.h.
901
a1d217e8
SM
9022020-10-05 Simon Marchi <simon.marchi@efficios.com>
903
904 * amd64-windows-tdep.c (amd64_windows_return_value): Use
905 type::is_vector instead of TYPE_VECTOR.
906
7d144117
SM
9072020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
908
909 * auto-load.c (auto_load_objfile_script_1): Don't use
910 debugfile_holder as temporary variable when stripping drive
911 letter.
912
cd096ec8
HD
9132020-10-05 Hannes Domani <ssbssa@yahoo.de>
914
915 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
916 Add TYPE_CODE_COMPLEX.
917 (amd64_windows_return_value): Fix types returned via XMM0.
918
b58e7f72
AH
9192020-10-05 Alan Hayward <alan.hayward@arm.com>
920
921 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
922 AArch64/ARM maintainers.
923
8d378f27
SM
9242020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
925
926 * NEWS: Mention set/show debug event-loop.
927
d5519913
TT
9282020-10-02 Tom Tromey <tromey@adacore.com>
929
930 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
931 REG_EXTENDED.
932
18b67edc
SM
9332020-10-02 Simon Marchi <simon.marchi@efficios.com>
934
935 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
936 * procfs.c (procfs_inferior_created): Remove.
937 (_initialize_procfs): Don't register procfs_inferior_created.
938
6b01403b
SM
9392020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
940
941 * async-event.c (invoke_async_signal_handlers): Add debug
942 print.
943 (check_async_event_handlers): Likewise.
944 * event-top.c (show_debug_event_loop): New function.
945 (_initialize_event_top): Register "set debug event-loop"
946 setting.
947
ba988419
SM
9482020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
949
950 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
951 * debug.h: Remove.
952 * infrun.c: Include gdbsupport/common-debug.h.
953 * linux-nat.c: Likewise.
954
db20ebdf
SM
9552020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
956
957 * async-event.h (create_async_signal_handler): Add name
958 parameter.
959 (create_async_event_handler): Likewise.
960 * async-event.c (struct async_signal_handler) <name>: New field.
961 (struct async_event_handler) <name>: New field.
962 (create_async_signal_handler): Assign name.
963 (create_async_event_handler): Assign name.
964 * event-top.c (async_init_signals): Pass name when creating
965 handler.
966 * infrun.c (_initialize_infrun): Likewise.
967 * record-btrace.c (record_btrace_push_target): Likewise.
968 * record-full.c (record_full_open): Likewise.
969 * remote-notif.c (remote_notif_state_allocate): Likewise.
970 * remote.c (remote_target::open_1): Likewise.
971 * tui/tui-win.c (tui_initialize_win): Likewise.
972
2554f6f5
SM
9732020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
974
975 * async-event.c (initialize_async_signal_handlers): Pass name to
976 add_file_handler
977 * event-top.c (ui_register_input_event_handler): Likewise.
978 * linux-nat.c (linux_nat_target::async): Likewise.
979 * run-on-main-thread.c (_initialize_run_on_main_thread):
980 Likewise
981 * ser-base.c (reschedule): Likewise.
982 (ser_base_async): Likewise.
983 * tui/tui-io.c: Likewise.
984 * top.h (struct ui) <num>: New field.
985 * top.c (highest_ui_num): New variable.
986 (ui::ui): Initialize num.
987
a7aba266
SM
9882020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
989
990 * observable.h <inferior_created>: Remove parameters. Update all
991 listeners.
992 * inferior.h (post_create_inferior): Remove target parameter.
993 Update all callers.
994
048fde1e 9952020-10-02 Nitika Achra <Nitika.Achra@amd.com>
996
997 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
998 and DW_MACRO_undef_strx.
999 (dwarf_decode_macros): Likewise
1000 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1001 which is the value of DW_AT_str_offsets_base.
1002 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1003 str_offsets_base.
1004
064280be
KR
10052020-10-01 Kamil Rytarowski <n54@gmx.com>
1006
1007 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1008
6ff33035
KR
10092020-10-01 Kamil Rytarowski <n54@gmx.com>
1010
1011 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1012 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1013
1eb6eb79
KR
10142020-10-01 Kamil Rytarowski <n54@gmx.com>
1015
1016 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1017
95eb9e54
TV
10182020-09-30 Tom de Vries <tdevries@suse.de>
1019
1020 PR symtab/26683
1021 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1022
cae21f8e
TT
10232020-09-30 Tom Tromey <tromey@adacore.com>
1024
1025 * dwarf2/read.c (handle_variant): Use constant_value.
1026
529908cb
TT
10272020-09-29 Tom Tromey <tom@tromey.com>
1028
1029 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1030 (read_file_scope, dwarf2_get_pc_bounds)
1031 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1032 (read_structure_type, handle_struct_member_die)
1033 (read_enumeration_type, read_array_type, read_set_type)
1034 (read_tag_pointer_type, read_tag_reference_type)
1035 (read_subroutine_type, read_base_type, read_subrange_type)
1036 (read_full_die_1, partial_die_info::read)
1037 (partial_die_info::read, by, new_symbol)
1038 (dwarf2_const_value_data, dwarf2_const_value_attr)
1039 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1040 (prepare_one_comp_unit): Update.
1041 * dwarf2/attribute.h (DW_UNSND): Remove.
1042
c45bc3f8
TT
10432020-09-29 Tom Tromey <tom@tromey.com>
1044
1045 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1046 (read_subroutine_type, partial_die_info::read)
1047 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1048 (dwarf2_add_member_fn): Update.
1049 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1050 * dwarf2/attribute.c (attribute::as_boolean): New method.
1051
23dca5c3
TT
10522020-09-29 Tom Tromey <tom@tromey.com>
1053
1054 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1055 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1056 method.
1057 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1058
52c14d11
TT
10592020-09-29 Tom Tromey <tom@tromey.com>
1060
1061 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1062 the attribute's form.
1063
e8e5c158
TT
10642020-09-29 Tom Tromey <tom@tromey.com>
1065
1066 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1067 (dwarf2_add_member_fn): Update.
1068 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1069 * dwarf2/attribute.c (attribute::defaulted): New method, from
1070 is_valid_DW_AT_defaulted.
1071
d4df075e
TT
10722020-09-29 Tom Tromey <tom@tromey.com>
1073
1074 * dwarf2/read.c (dw2_get_file_names_reader)
1075 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1076 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1077 (dwarf2_symbol_mark_computed): Use as_unsigned.
1078 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1079 method.
1080 <form_is_section_offset>: Update comment.
1081
bf23a268
TT
10822020-09-29 Tom Tromey <tom@tromey.com>
1083
1084 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1085 dwarf2_default_access_attribute. Look up attribute.
1086 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1087 Update.
1088
7a5f294d
TT
10892020-09-29 Tom Tromey <tom@tromey.com>
1090
1091 * dwarf2/read.c (skip_one_die): Update.
1092 (read_full_die_1): Change how reprocessing is done.
1093 (partial_die_info::read): Update.
1094 (read_attribute_value): Remove need_reprocess parameter.
1095 (read_attribute): Likewise.
1096 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1097 New method.
1098
36d378cf
TT
10992020-09-29 Tom Tromey <tom@tromey.com>
1100
1101 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1102 (dwarf2_const_value_attr, dump_die_shallow)
1103 (dwarf2_fetch_constant_bytes): Update.
1104 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1105 comment.
1106 <set_address>: New method.
1107 (DW_ADDR): Remove.
1108 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1109 (attribute::as_string, attribute::as_address): Add assert.
1110
fe56917a
TT
11112020-09-29 Tom Tromey <tom@tromey.com>
1112
1113 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1114 (read_attribute_reprocess, read_attribute_value): Update.
1115 (read_attribute): Clear requires_reprocessing.
1116 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1117 form_requires_reprocessing>: New methods.
1118 <string_init>: Clear requires_reprocessing.
1119 <set_unsigned_reprocess>: New method.
1120 <name>: Shrink by one bit.
1121 <requires_reprocessing>: New member.
1122 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1123 method.
1124
414ad644
TT
11252020-09-29 Tom Tromey <tom@tromey.com>
1126
1127 * dwarf2/read.c (read_attribute_value): Update.
1128 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1129 set_unsigned>: New methods.
1130 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1131
1bc397c5
TT
11322020-09-29 Tom Tromey <tom@tromey.com>
1133
1134 * dwarf2/read.c (get_alignment, read_array_order)
1135 (read_attribute_value, dwarf2_const_value_attr)
1136 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1137 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1138 New methods.
1139 (DW_SND): Remove.
1140
630ed6b9
TT
11412020-09-29 Tom Tromey <tom@tromey.com>
1142
1143 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1144 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1145 Update.
1146 * dwarf2/attribute.h (struct attribute) <as_signature,
1147 set_signature>: New methods.
1148 (DW_SIGNATURE): Remove.
1149
9d2246fc
TT
11502020-09-29 Tom Tromey <tom@tromey.com>
1151
1152 * dwarf2/read.c (read_call_site_scope)
1153 (handle_data_member_location, dwarf2_add_member_fn)
1154 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1155 (partial_die_info::read, read_attribute_value)
1156 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1157 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1158 (dwarf2_symbol_mark_computed): Update.
1159 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1160 methods.
1161 (DW_BLOCK): Remove.
1162 * dwarf2/attribute.c (attribute::form_is_block): Add
1163 DW_FORM_data16.
1164
c6481205
TT
11652020-09-29 Tom Tromey <tom@tromey.com>
1166
1167 * dwarf2/read.c (read_cutu_die_from_dwo)
1168 (read_attribute_reprocess, read_attribute_value, read_attribute)
1169 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1170 (dwarf2_fetch_constant_bytes): Update.
1171 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1172 <set_string_noncanonical, set_string_canonical>: New methods.
1173 <string_is_canonical>: Update comment.
1174 <canonical_string_p>: Add assert.
1175 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1176 * dwarf2/attribute.c (attribute::form_is_string): New method.
1177 (attribute::string): Use it.
1178
3b64bf15
TT
11792020-09-29 Tom Tromey <tom@tromey.com>
1180
1181 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1182 (dump_die_shallow): Use canonical_string_p.
1183 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1184 method.
1185
2c830f54
TT
11862020-09-29 Tom Tromey <tom@tromey.com>
1187
1188 * dwarf2/read.c (partial_die_info::read)
1189 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1190 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1191 attribute::as_string.
1192
6c412691
TT
11932020-09-29 Tom Tromey <tom@tromey.com>
1194
1195 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1196 DW_ADDR.
1197 (attribute::string): Don't use DW_STRING.
1198 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1199 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1200
95f982e5
TT
12012020-09-29 Tom Tromey <tom@tromey.com>
1202
1203 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1204 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1205 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1206 * dwarf2/attribute.h (struct attribute): Rename methods.
1207 * dwarf2/attribute.c (attribute::as_address): Rename from
1208 value_as_address.
1209 (attribute::as_string): Rename from value_as_string.
1210
f800b00e
TT
12112020-09-29 Tom Tromey <tom@tromey.com>
1212
1213 * dwarf2/read.c (partial_die_info::read) <case
1214 DW_AT_linkage_name>: Use value_as_string.
1215 (dwarf2_string_attr): Use value_as_string.
1216 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1217 method.
1218 * dwarf2/attribute.c (attribute::value_as_string): New method.
1219
de38d64a
PA
12202020-09-29 Pedro Alves <pedro@palves.net>
1221
1222 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1223 defined before using '#pragma GCC diagnostic' instead of checking
1224 __clang__.
1225
9aed480c
TT
12262020-09-28 Tom Tromey <tom@tromey.com>
1227
1228 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1229 (handle_signal_stop): Update.
1230 * procfs.c (procfs_target::insert_watchpoint): Update.
1231 * target.h (target_have_steppable_watchpoint): Now a function.
1232
8a3ecb79
TT
12332020-09-28 Tom Tromey <tom@tromey.com>
1234
1235 * infrun.c (set_schedlock_func): Update.
1236 * target.h (target_can_lock_scheduler): Now a function.
1237
55f6301a
TT
12382020-09-28 Tom Tromey <tom@tromey.com>
1239
1240 * inferior.h (class inferior) <has_execution>: Update.
1241 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1242 * valops.c (find_function_in_inferior)
1243 (value_allocate_space_in_inferior): Update.
1244 * top.c (kill_or_detach): Update.
1245 * target.c (target_preopen, set_target_permissions): Update.
1246 (target_has_execution_current): Remove.
1247 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1248 Update.
1249 * solib.c (update_solib_list, reload_shared_libraries): Update.
1250 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1251 * solib-dsbt.c (enable_break): Update.
1252 * score-tdep.c (score7_fetch_inst): Update.
1253 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1254 Update.
1255 * remote.c (remote_target::start_remote)
1256 (remote_target::remote_check_symbols, remote_target::open_1)
1257 (remote_target::remote_detach_1, remote_target::verify_memory)
1258 (remote_target::xfer_partial, remote_target::read_description)
1259 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1260 * record-full.c (record_full_open_1): Update.
1261 * record-btrace.c (record_btrace_target_open): Update.
1262 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1263 (value_nsstring): Update.
1264 * linux-thread-db.c (add_thread_db_info)
1265 (thread_db_find_new_threads_silently, check_thread_db_callback)
1266 (try_thread_db_load_1, record_thread): Update.
1267 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1268 Update.
1269 * linux-fork.c (checkpoint_command): Update.
1270 * infrun.c (set_non_stop, set_observer_mode)
1271 (check_multi_target_resumption, for_each_just_stopped_thread)
1272 (maybe_remove_breakpoints, normal_stop)
1273 (class infcall_suspend_state): Update.
1274 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1275 (info_program_command, attach_command): Update.
1276 * infcall.c (call_function_by_hand_dummy): Update.
1277 * inf-loop.c (inferior_event_handler): Update.
1278 * gcore.c (gcore_command, derive_heap_segment): Update.
1279 * exec.c (exec_file_command): Update.
1280 * eval.c (evaluate_subexp): Update.
1281 * compile/compile.c (compile_to_object): Update.
1282 * cli/cli-dump.c (restore_command): Update.
1283 * breakpoint.c (update_watchpoint)
1284 (update_inserted_breakpoint_locations)
1285 (insert_breakpoint_locations, get_bpstat_thread): Update.
1286 * target.h (target_has_execution): Remove macro.
1287 (target_has_execution_current): Don't declare.
1288 (target_has_execution): Rename from target_has_execution_1. Add
1289 argument default.
1290
05374cfd
TT
12912020-09-28 Tom Tromey <tom@tromey.com>
1292
1293 * mi/mi-main.c (exec_reverse_continue)
1294 (mi_cmd_list_target_features): Update.
1295 * infrun.c (set_exec_direction_func): Update.
1296 * target.c (default_execution_direction): Update.
1297 * reverse.c (exec_reverse_once): Update.
1298 * target.h (target_can_execute_reverse): Now a function.
1299
9dccd06e
TT
13002020-09-28 Tom Tromey <tom@tromey.com>
1301
1302 * tui/tui-regs.c (tui_get_register)
1303 (tui_data_window::show_registers): Update.
1304 * thread.c (scoped_restore_current_thread::restore)
1305 (scoped_restore_current_thread::scoped_restore_current_thread):
1306 Update.
1307 * regcache-dump.c (regcache_print): Update.
1308 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1309 Update.
1310 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1311 * mep-tdep.c (current_me_module, current_options): Update.
1312 * linux-thread-db.c (thread_db_load): Update.
1313 * infcmd.c (registers_info, info_vector_command)
1314 (info_float_command): Update.
1315 * ia64-tdep.c (ia64_frame_prev_register)
1316 (ia64_sigtramp_frame_prev_register): Update.
1317 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1318 * gcore.c (derive_stack_segment): Update.
1319 * frame.c (get_current_frame, has_stack_frames): Update.
1320 * findvar.c (language_defn::read_var_value): Update.
1321 * arm-tdep.c (arm_pc_is_thumb): Update.
1322 * target.c (target_has_registers): Rename from
1323 target_has_registers_1.
1324 * target.h (target_has_registers): Remove macro.
1325 (target_has_registers): Rename from target_has_registers_1.
1326
841de120
TT
13272020-09-28 Tom Tromey <tom@tromey.com>
1328
1329 * windows-tdep.c (tlb_make_value): Update.
1330 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1331 * thread.c (scoped_restore_current_thread::restore)
1332 (scoped_restore_current_thread::scoped_restore_current_thread)
1333 (thread_command): Update.
1334 * stack.c (backtrace_command_1, frame_apply_level_command)
1335 (frame_apply_all_command, frame_apply_command): Update.
1336 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1337 Update.
1338 * gcore.c (derive_stack_segment): Update.
1339 * frame.c (get_current_frame, has_stack_frames): Update.
1340 * auxv.c (info_auxv_command): Update.
1341 * ada-tasks.c (ada_build_task_list): Update.
1342 * target.c (target_has_stack): Rename from target_has_stack_1.
1343 * target.h (target_has_stack): Remove macro.
1344 (target_has_stack): Rename from target_has_stack_1.
1345
a739972c
TT
13462020-09-28 Tom Tromey <tom@tromey.com>
1347
1348 * target.c (target_has_memory): Rename from target_has_memory_1.
1349 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1350 * thread.c (scoped_restore_current_thread::restore)
1351 (scoped_restore_current_thread::scoped_restore_current_thread):
1352 Update.
1353 * frame.c (get_current_frame, has_stack_frames): Update.
1354 * target.h (target_has_memory): Remove macro.
1355 (target_has_memory): Rename from target_has_memory_1.
1356
5b8a4776
TT
13572020-09-28 Tom Tromey <tom@tromey.com>
1358
1359 * target.c (target_has_all_memory_1): Remove.
1360 * target.h (target_has_all_memory): Remove define.
1361 (target_has_all_memory_1): Don't declare.
1362
bd356ec6
SM
13632020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1364
1365 * ser-base.c: Adjust comments formatting.
1366
2c72d5e5
TT
13672020-09-27 Tom Tromey <tom@tromey.com>
1368
1369 PR tui/25342:
1370 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1371
35a98237
TT
13722020-09-27 Tom Tromey <tom@tromey.com>
1373
1374 PR tui/25342:
1375 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1376
9e820dec
TT
13772020-09-27 Tom Tromey <tom@tromey.com>
1378
1379 * unittests/tui-selftests.c: Update.
1380 * tui/tui-winsource.h (struct tui_source_window_base)
1381 <extra_margin, show_line_number, refresh_pad>: New methods.
1382 <m_max_length, m_pad>: New members.
1383 (tui_copy_source_line): Update.
1384 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1385 first_col, line_width, ndigits parameters. Add length.
1386 (tui_source_window_base::show_source_line): Write to pad. Line
1387 number now 0-based.
1388 (tui_source_window_base::refresh_pad): New method.
1389 (tui_source_window_base::show_source_content): Write to pad. Call
1390 refresh_pad.
1391 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1392 not refill.
1393 (tui_source_window_base::update_exec_info): Call
1394 show_line_number.
1395 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1396 method.
1397 <m_digits>: New member.
1398 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1399 and m_max_length.
1400 (tui_source_window::show_line_number): New method.
1401 * tui/tui-io.h (tui_puts): Fix comment.
1402 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1403 m_max_length.
1404
c15c15c8
TT
14052020-09-27 Tom Tromey <tom@tromey.com>
1406
1407 * tui/tui-winsource.c
1408 (tui_source_window_base::set_is_exec_point_at): Don't call
1409 show_source_line.
1410
149830c1
TT
14112020-09-27 Tom Tromey <tom@tromey.com>
1412
1413 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1414 method.
1415 <erase>: Update.
1416 <cursor_x, cursor_y>: Remove.
1417 <m_inner_window>: New member.
1418 (tui_py_window::rerender): Create inner window.
1419 (tui_py_window::output): Write to inner window.
1420
8f9929bb
GR
14212020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1422
1423 PR python/26586
1424 * cli/cli-script.c (execute_control_commands): don't set
1425 instream to nullptr here as this breaks the from_tty argument
1426 to gdb.execute in Python.
1427 (execute_user_command): set instream to nullptr here instead.
1428
956bdb59
SM
14292020-09-25 Simon Marchi <simon.marchi@efficios.com>
1430
1431 * infrun.h (infrun_debug_printf): Fix formatting.
1432 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1433
3b93626b
SJ
14342020-09-25 Saagar Jha <saagar@saagarjha.com>
1435
1436 * compile/compile-object-load.h (struct munmap_list): Add
1437 explicitly-defined move constructor.
1438
b551a89f
TT
14392020-09-24 Tom Tromey <tromey@adacore.com>
1440
1441 PR tui/26638:
1442 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1443 method.
1444 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1445 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1446 (tui_prev_win): Rewrite.
1447
99bb393f
HD
14482020-09-23 Hannes Domani <ssbssa@yahoo.de>
1449
1450 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1451 in WOW64 processes as SIGINT.
1452 * nat/windows-nat.h: Make wow64_process a shared variable.
1453 * windows-nat.c: Remove static wow64_process variable.
1454
20a5fcbd
TT
14552020-09-23 Tom Tromey <tom@tromey.com>
1456
1457 PR symtab/25470:
1458 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1459 offset and bit size.
1460 * printcmd.c (print_scalar_formatted): Handle zero-length
1461 integer.
1462 (print_scalar_formatted): Use bit_size_differs_p.
1463 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1464 constant.
1465 (union type_specific): <int_stuff>: New member.
1466 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1467 methods.
1468 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1469 TYPE_SPECIFIC_FIELD.
1470 (recursive_dump_type, copy_type_recursive): Update.
1471 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1472 DW_AT_data_bit_offset.
1473
bac51ab7
TT
14742020-09-23 Tom Tromey <tom@tromey.com>
1475
1476 * utils.h (class gdb_argv): Add move operators.
1477 <append>: New methods.
1478 * compile/compile.c (build_argc_argv): Remove.
1479 (compile_args_argc): Remove.
1480 (compile_args_argv): Change type.
1481 (set_compile_args): Simplify.
1482 (append_args): Remove.
1483 (filter_args): Remove argcp parameter.
1484 (get_args): Return gdb_argv. Simplify.
1485 (compile_to_object): Update.
1486
92677124
TT
14872020-09-23 Tom Tromey <tom@tromey.com>
1488
1489 * compile/compile-object-run.c (do_module_cleanup)
1490 <~do_module_cleanup> :Remove.
1491 (do_module_cleanup): Update.
1492 * compile/compile-object-load.h (struct munmap_list): Add move
1493 assignment operator.
1494 <source_file>: Now a std::string.
1495 <munmap_list>: Rename. No longer a pointer.
1496 * compile/compile-object-load.c (struct setup_sections_data): Add
1497 constructor.
1498 <setup_one_section>: Declare.
1499 <munmap_list>: Move earlier.
1500 <m_bfd>: New member.
1501 <m_last_size, m_last_section_first, m_last_prot,
1502 m_last_max_alignment>: Rename, add initializers where needed.
1503 (setup_sections_data::setup_one_section): Rename from
1504 setup_sections. Update.
1505 (compile_object_load): Update. Don't use bfd_map_over_sections.
1506
e616f60a
TT
15072020-09-23 Tom Tromey <tom@tromey.com>
1508
1509 * compile/compile-object-run.c (struct do_module_cleanup): Add
1510 parameters to constructor. Update destructor.
1511 <source_file, scope, scope_data, out_value_type, out_value_addr,
1512 munmap_list_head, objfile_name_string>: Remove.
1513 <module>: New member.
1514 (do_module_cleanup): Update.
1515 (compile_object_run): Update.
1516
e947a848
TT
15172020-09-23 Tom Tromey <tom@tromey.com>
1518
1519 * compile/compile.c (eval_compile_command): Update.
1520 * compile/compile-object-run.h (compile_object_run): Take a
1521 compile_module_up.
1522 * compile/compile-object-run.c (compile_object_run): Take a
1523 compile_module_up.
1524 * compile/compile-object-load.h (struct compile_module): Add
1525 constructor, destructor.
1526 (compile_module_up): New typedef.
1527 (compile_object_load): Return compile_object_up.
1528 * compile/compile-object-load.c (compile_object_load): Return
1529 compile_module_up.
1530
0dbf6ee6
TT
15312020-09-23 Tom Tromey <tom@tromey.com>
1532
1533 * compile/compile-object-run.c (struct do_module_cleanup): Add
1534 constructor, destructor.
1535 <objfile_name_string>: Don't use struct hack.
1536 (do_module_cleanup): Use delete.
1537 (compile_object_run): Use new.
1538
ebe824f5
TT
15392020-09-23 Tom Tromey <tom@tromey.com>
1540
1541 * compile/compile-cplus-types.c
1542 (compile_cplus_convert_struct_or_union): Use std::vector.
1543 (compile_cplus_convert_func): Likewise.
1544 * compile/compile-c-types.c (convert_func): Use std::vector.
1545
5dd918d9
TT
15462020-09-21 Tom Tromey <tromey@adacore.com>
1547
1548 * sparc-tdep.c (sparc32_skip_prologue): Use
1549 skip_prologue_using_sal.
1550
5486c517
TT
15512020-09-19 Tom Tromey <tom@tromey.com>
1552
1553 * symfile.c (add_section_size_callback): Remove.
1554 (load_one_section): Rename from load_section_callback. Change
1555 parameters.
1556 (generic_load): Use foreach.
1557
8a6bb1d1
TT
15582020-09-19 Tom Tromey <tom@tromey.com>
1559
1560 * exec.c (add_to_section_table): Remove.
1561 (build_section_table): Use foreach.
1562
08f93a1a
TT
15632020-09-19 Tom Tromey <tom@tromey.com>
1564
1565 * elfread.c (elf_locate_sections): Change parameters.
1566 (elf_symfile_read): Use foreach.
1567
03cd72b8
TT
15682020-09-19 Tom Tromey <tom@tromey.com>
1569
1570 * cli/cli-dump.c (struct callback_data): Remove.
1571 (restore_one_section): Rename from restore_section_callback.
1572 Change parameters.
1573 (restore_binary_file): Change parameters.
1574 (restore_command): Use foreach.
1575
f4f2b85f
TT
15762020-09-19 Tom Tromey <tom@tromey.com>
1577
1578 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1579 (gcore_copy_callback): Likewise.
1580 (gcore_memory_sections): Use foreach.
1581
b35c1d1c
TT
15822020-09-19 Tom Tromey <tom@tromey.com>
1583
1584 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1585 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1586 parameters.
1587 (generic_elf_osabi_sniffer): Use foreach.
1588 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1589 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1590
5bb6e9dd
TT
15912020-09-19 Tom Tromey <tom@tromey.com>
1592
1593 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1594 (dwarf2_get_dwz_file): Use foreach.
1595 (dwarf2_locate_dwo_sections): Change parameters.
1596 (open_and_init_dwo_file): Use foreach.
1597 (dwarf2_locate_common_dwp_sections): Change parameters.
1598 (open_and_init_dwp_file): Use foreach.
1599
ad7277da
TT
16002020-09-19 Tom Tromey <tom@tromey.com>
1601
1602 * symfile.h: (find_lowest_section): Don't declare.
1603 * symfile.c (find_lowest_section): Now static. Change
1604 parameters.
1605 (struct place_section_arg): Remove.
1606 (place_section): Change parameters.
1607 (addr_info_make_relative): Use foreach.
1608 (symfile_dummy_outputs): Remove.
1609 (default_symfile_relocate): Use foreach.
1610
cb814f2e
TT
16112020-09-19 Tom Tromey <tom@tromey.com>
1612
1613 * objfiles.c (add_to_objfile_sections): Rename from
1614 add_to_objfile_sections_full.
1615 (add_to_objfile_sections): Remove.
1616 (build_objfile_section_table): Use foreach.
1617
3cabfd26
TT
16182020-09-19 Tom Tromey <tom@tromey.com>
1619
1620 * stap-probe.c (get_stap_base_address_1): Remove.
1621 (get_stap_base_address): Use foreach.
1622
1ce51eb5
TT
16232020-09-19 Tom Tromey <tom@tromey.com>
1624
1625 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1626 parameters.
1627 (gdb_bfd_close_or_warn): Use foreach.
1628
a190fabb
TT
16292020-09-19 Tom Tromey <tom@tromey.com>
1630
1631 * corelow.c (add_to_thread_list): Change parameters.
1632 (core_target_open): Use foreach.
1633
cafb0d81
TT
16342020-09-19 Tom Tromey <tom@tromey.com>
1635
1636 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1637 existing function.
1638
c8d5abea
AB
16392020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1640
1641 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1642 for arrays.
1643
6d816919
AB
16442020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1645
1646 * eval.c: Remove 'f-lang.h' include.
1647 (value_f90_subarray): Moved to f-lang.c.
1648 (eval_call): Renamed to...
1649 (evaluate_subexp_do_call): ...this, is no longer static, header
1650 comment moved into header file.
1651 (evaluate_funcall): Update call to eval_call.
1652 (skip_undetermined_arglist): Moved to f-lang.c.
1653 (fortran_value_subarray): Likewise.
1654 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1655 moved to evaluate_subexp_f.
1656 (calc_f77_array_dims): Moved to f-lang.c
1657 * expprint.c (print_subexp_funcall): New function.
1658 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1659 moved to print_subexp_f, OP_FUNCALL uses new function.
1660 (dump_subexp_body_funcall): New function.
1661 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1662 moved to dump_subexp_f, OP_FUNCALL uses new function.
1663 * expression.h (evaluate_subexp_do_call): Declare.
1664 * f-lang.c (value_f90_subarray): Moved from eval.c.
1665 (skip_undetermined_arglist): Likewise.
1666 (calc_f77_array_dims): Likewise.
1667 (fortran_value_subarray): Likewise.
1668 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1669 (operator_length_f): Likewise.
1670 (print_subexp_f): Likewise.
1671 (dump_subexp_body_f): Likewise.
1672 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1673 declaration of this operation to here.
1674 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1675 support moved to operator_length_f.
1676 * parser-defs.h (dump_subexp_body_funcall): Declare.
1677 (print_subexp_funcall): Declare.
1678 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1679 fortran-operator.def.
1680
8c37706a
AB
16812020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1682
1683 * eval.c (fortran_value_subarray): New function, content is taken
1684 from...
1685 (evaluate_subexp_standard): ...here, in two places. Now arrays
1686 and strings both call the new function.
1687 (calc_f77_array_dims): Add header comment, handle strings.
1688
14f9473c
VC
16892020-09-18 Victor Collod <vcollod@nvidia.com>
1690
1691 PR gdb/26635
1692 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1693 (i386_analyze_prologue): Call i386_skip_endbr.
1694
b60cea74
TT
16952020-09-18 Tom Tromey <tromey@adacore.com>
1696
1697 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1698 (windows_nat_target::wait): Update.
1699 * target/wait.h (enum target_wait_flag): New. Use
1700 DEF_ENUM_FLAGS_TYPE.
1701 * target/target.h (target_wait): Change type of options.
1702 * target.h (target_options_to_string, default_target_wait):
1703 Update.
1704 (struct target_ops) <wait>: Change type of options.
1705 * target.c (target_wait, default_target_wait, do_option): Change
1706 type of "options".
1707 (target_options_to_string): Likewise.
1708 * target-delegates.c: Rebuild.
1709 * target-debug.h (target_debug_print_target_wait_flags): Rename
1710 from target_debug_print_options.
1711 * sol-thread.c (class sol_thread_target) <wait>: Update.
1712 (sol_thread_target::wait): Update.
1713 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1714 (rs6000_nat_target::wait): Update.
1715 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1716 Update.
1717 (remote_target::wait_ns, remote_target::wait_as): Change type of
1718 "options".
1719 (remote_target::wait): Update.
1720 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1721 (gdbsim_target::wait): Update.
1722 * record-full.c (class record_full_base_target) <wait>: Update.
1723 (record_full_wait_1): Change type of "options".
1724 (record_full_base_target::wait): Update.
1725 * record-btrace.c (class record_btrace_target) <wait>: Update.
1726 (record_btrace_target::wait): Update.
1727 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1728 Update.
1729 (ravenscar_thread_target::wait): Update.
1730 * procfs.c (class procfs_target) <wait>: Update.
1731 (procfs_target::wait): Update.
1732 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1733 * obsd-nat.c (obsd_nat_target::wait): Update.
1734 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1735 (nto_procfs_target::wait): Update.
1736 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1737 * nbsd-nat.c (nbsd_wait): Change type of "options".
1738 (nbsd_nat_target::wait): Update.
1739 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1740 (thread_db_target::wait): Update.
1741 * linux-nat.h (class linux_nat_target) <wait>: Update.
1742 * linux-nat.c (linux_nat_target::wait): Update.
1743 (linux_nat_wait_1): Update.
1744 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1745 "options".
1746 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1747 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1748 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1749 (go32_nat_target::wait): Update.
1750 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1751 * gnu-nat.c (gnu_nat_target::wait): Update.
1752 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1753 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1754 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1755 * darwin-nat.c (darwin_nat_target::wait): Update.
1756 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1757 (bsd_uthread_target::wait): Update.
1758 * aix-thread.c (class aix_thread_target) <wait>: Update.
1759 (aix_thread_target::wait): Update.
1760
0295dde6
AB
17612020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1762
1763 * compile/compile-object-run.c (create_copied_type_recursive): New
1764 function.
1765 (compile_object_run): Use new function.
1766
d3483b43
JT
17672020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1768
1769 * NEWS: Mention x86_64 Cygwin core file support.
1770
e7d612ad
JT
17712020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1772
1773 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1774 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1775
aff9d387
JT
17762020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1777
62a5151b
JT
1778 * windows-tdep.h: Add prototypes.
1779 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1780 (i386_windows_core_pid_to_str): Move and rename ...
1781 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1782 (windows_core_pid_to_str): ... and here.
1783 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1784
17852020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1786 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1787 (amd64_windows_init_abi_common): ... and register.
1788
7d155da3
JT
17892020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1790
1791 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1792 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1793
e8ef12b9
PA
17942020-09-18 Pedro Alves <pedro@palves.net>
1795
1796 PR gdb/26631
1797 * thread.c (thread_find_command): Switch inferior before calling
1798 target methods.
1799
c1e1314d
TT
18002020-09-17 Tom Tromey <tromey@adacore.com>
1801
1802 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1803 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1804 (tdesc_arch_data_up): New typedef.
1805 (tdesc_use_registers, tdesc_data_alloc): Update.
1806 (tdesc_data_cleanup): Don't declare.
1807 * target-descriptions.c (tdesc_data_alloc): Return a
1808 tdesc_arch_data_up.
1809 (tdesc_arch_data_deleter::operator()): Rename from
1810 tdesc_data_cleanup. Change argument type.
1811 (tdesc_use_registers): Change early_data to an rvalue reference.
1812 (tdesc_use_registers): Don't use delete.
1813 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1814 * s390-tdep.c (s390_gdbarch_init): Update.
1815 * rx-tdep.c (rx_gdbarch_init): Update.
1816 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1817 * riscv-tdep.c (riscv_gdbarch_init): Update.
1818 * or1k-tdep.c (or1k_gdbarch_init): Update.
1819 * nios2-tdep.c (nios2_gdbarch_init): Update.
1820 * nds32-tdep.c (nds32_gdbarch_init): Update.
1821 * mips-tdep.c (mips_gdbarch_init): Update.
1822 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1823 * m68k-tdep.c (m68k_gdbarch_init): Update.
1824 * i386-tdep.c (i386_gdbarch_init): Update.
1825 * arm-tdep.c (arm_gdbarch_init): Update.
1826 * arc-tdep.c (arc_tdesc_init): Update.
1827 (arc_gdbarch_init): Update.
1828 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1829
0363df3d
HD
18302020-09-17 Hannes Domani <ssbssa@yahoo.de>
1831
1832 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1833 for WOW64 processes.
1834
280a9412
TT
18352020-09-17 Tom Tromey <tom@tromey.com>
1836
1837 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1838
6108fd18
TT
18392020-09-17 Tom Tromey <tom@tromey.com>
1840
1841 * value.c (preserve_values): Update.
1842 * python/py-type.c (save_objfile_types): Update.
1843 * guile/scm-type.c (save_objfile_types): Update.
1844 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1845 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1846 * compile/compile-object-run.c (compile_object_run): Update.
1847
fa9b1164
TT
18482020-09-17 Tom Tromey <tom@tromey.com>
1849
1850 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1851 Remove.
1852 <m_table>: Now htab_up.
1853 * typeprint.c (typedef_hash_table::recursively_update)
1854 (typedef_hash_table::add_template_parameters)
1855 (typedef_hash_table::typedef_hash_table): Update.
1856 (typedef_hash_table::~typedef_hash_table): Remove.
1857 (typedef_hash_table::typedef_hash_table)
1858 (typedef_hash_table::find_global_typedef)
1859 (typedef_hash_table::find_typedef): Update.
1860
eb53f105
TT
18612020-09-17 Tom Tromey <tom@tromey.com>
1862
1863 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1864
7a8a5d47
TT
18652020-09-17 Tom Tromey <tom@tromey.com>
1866
1867 * linespec.c (class decode_compound_collector)
1868 <~decode_compound_collector>: Remove.
1869 <m_unique_syms>: Now htab_up.
1870 (decode_compound_collector::operator ()): Update.
1871 (class symtab_collector) <~symtab_collector>: Remove.
1872 <m_symtab_table>: Now htab_up.
1873 (symtab_collector::operator ()): Update.
1874
99032cfc
TT
18752020-09-17 Tom Tromey <tom@tromey.com>
1876
1877 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1878 (filename_seen_cache::clear): Update.
1879 (~filename_seen_cache): Remove.
1880 (filename_seen_cache::seen): Update.
1881 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1882 htab_up.
1883 <~filename_seen_cache>: Remove.
1884 <traverse>: Update.
1885
32580f6d
TT
18862020-09-17 Tom Tromey <tom@tromey.com>
1887
1888 * completer.c (completion_tracker::discard_completions)
1889 (completion_tracker::~completion_tracker)
1890 (completion_tracker::maybe_add_completion)
1891 (completion_tracker::remove_completion)
1892 (completion_tracker::recompute_lowest_common_denominator)
1893 (completion_tracker::build_completion_result): Update.
1894 * completer.h (class completion_tracker) <have_completions>:
1895 Update.
1896 <m_entries_hash>: Now htab_up.
1897
c1fb9836
TT
18982020-09-17 Tom Tromey <tom@tromey.com>
1899
1900 * breakpoint.c (ambiguous_names_p): Use htab_up.
1901
88f07206
TT
19022020-09-17 Tom Tromey <tom@tromey.com>
1903
1904 * auto-load.c (struct auto_load_pspace_info)
1905 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1906 <loaded_script_files, loaded_script_texts>: Change type to
1907 htab_up.
1908 (~auto_load_pspace_info) Remove.
1909 (init_loaded_scripts_info, maybe_add_script_file)
1910 (maybe_add_script_text, auto_load_info_scripts): Update.
1911
9519b2ee
TT
19122020-09-17 Tom Tromey <tromey@adacore.com>
1913
1914 * c-exp.y (name_obstack): Now static.
1915
d2cd4113
CC
19162020-09-17 Chungyi Chi <demonic@csie.io>
1917
1918 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1919
b650a282
SM
19202020-09-16 Simon Marchi <simon.marchi@efficios.com>
1921
1922 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1923 (add_solib_catchpoint): Likewise.
1924 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1925 to bool.
1926 (add_solib_catchpoint): Change int parameter/variable to bool.
1927 (catch_load_or_unload): Likewise.
1928 (init_catchpoint): Likewise.
1929 (create_fork_vfork_event_catchpoint): Likewise.
1930 (catch_fork_command_1): Likewise.
1931 (catch_exec_command_1): Likewise.
1932
4d0bcfcf
SM
19332020-09-16 Simon Marchi <simon.marchi@efficios.com>
1934
1935 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1936 Change instance_flags to m_instance_flags.
1937
fe830662
TT
19382020-09-16 Tom Tromey <tromey@adacore.com>
1939
1940 PR gdb/26598:
1941 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1942
fe5ddfc3
JB
19432020-09-16 John Baldwin <jhb@FreeBSD.org>
1944
1945 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1946 PL_FLAG_EXEC.
1947 (fbsd_nat_target::insert_exec_catchpoint)
1948 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1949 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1950 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1951
e911c666
JB
19522020-09-16 John Baldwin <jhb@FreeBSD.org>
1953
1954 * configure.ac: Remove check for kinfo_getvmmap().
1955 * configure, config.in: Regenerate.
1956 * fbsd-nat.c (fbsd_read_mapping): Remove
1957 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1958 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1959 kinfo_get_vmmap() are always present.
1960
1f17d372
JB
19612020-09-16 John Baldwin <jhb@FreeBSD.org>
1962
1963 * fbsd-nat.c: Always include support for
1964 TARGET_OBJECT_SIGNAL_INFO.
1965
bcb1da7f
JB
19662020-09-16 John Baldwin <jhb@FreeBSD.org>
1967
1968 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1969 sysctl and remove procfs fallback.
1970
5515f729
JB
19712020-09-16 John Baldwin <jhb@FreeBSD.org>
1972
1973 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1974 * fbsd-nat.h: Likewise.
1975
da1df1db
TBA
19762020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1977
1978 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1979 argument.
1980
0e25e767
AB
19812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1982
1983 * ada-lang.c (ada_language_data): Delete.
1984 (ada_language): Remove references to ada_language_data.
1985 * c-lang.c (c_language_data): Delete.
1986 (c_language): Remove references to c_language_data.
1987 (cplus_language_data): Delete.
1988 (cplus_language): Remove references to cplus_language_data.
1989 (asm_language_data): Delete.
1990 (asm_language): Remove references to asm_language_data.
1991 (minimal_language_data): Delete.
1992 (minimal_language): Remove references to minimal_language_data.
1993 * d-lang.c (d_language_data): Delete.
1994 (d_language): Remove references to d_language_data.
1995 * f-lang.c (f_language_data): Delete.
1996 (f_language): Remove references to f_language_data.
1997 * go-lang.c (go_language_data): Delete.
1998 (go_language): Remove references to go_language_data.
1999 * language.c (unknown_language_data): Delete.
2000 (unknown_language): Remove references to unknown_language_data.
2001 (auto_language_data): Delete.
2002 (auto_language): Remove references to auto_language_data.
2003 * language.h (language_data): Delete struct.
2004 (language_defn): No longer inherit from language_data.
2005 * m2-lang.c (m2_language_data): Delete.
2006 (m2_language): Remove references to m2_language_data.
2007 * objc-lang.c (objc_language_data): Delete.
2008 (objc_language): Remove references to objc_language_data.
2009 * opencl-lang.c (opencl_language_data): Delete.
2010 (opencl_language): Remove references to opencl_language_data.
2011 * p-lang.c (pascal_language_data): Delete.
2012 (pascal_language): Remove references to pascal_language_data.
2013 * rust-lang.c (rust_language_data): Delete.
2014 (rust_language): Remove references to rust_language_data.
2015
b7c6e27d
AB
20162020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2017
2018 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2019 initializer.
2020 (ada_language::opcode_print_table): New member function.
2021 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2022 (c_language::opcode_print_table): New member function.
2023 (cplus_language_data): Remove la_op_print_tab initializer.
2024 (cplus_language::opcode_print_table): New member function.
2025 (asm_language_data): Remove la_op_print_tab initializer.
2026 (asm_language::opcode_print_table): New member function.
2027 (minimal_language_data): Remove la_op_print_tab initializer.
2028 (minimal_language::opcode_print_table): New member function.
2029 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2030 (d_language::opcode_print_table): New member function.
2031 * expprint.c (print_subexp_standard): Update call to
2032 opcode_print_table.
2033 (op_string): Likewise.
2034 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2035 (f_language::opcode_print_table): New member function.
2036 * go-lang.c (go_language_data): Remove la_op_print_tab
2037 initializer.
2038 (go_language::opcode_print_table): New member function.
2039 * language.c (unknown_language_data): Remove la_op_print_tab
2040 initializer.
2041 (unknown_language::opcode_print_table): New member function.
2042 (auto_language_data): Remove la_op_print_tab initializer.
2043 (auto_language::opcode_print_table): New member function.
2044 * language.h (language_data): Remove la_op_print_tab field.
2045 (language_defn::opcode_print_table): Declare new member function.
2046 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2047 initializer.
2048 (m2_language::opcode_print_table): New member function.
2049 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2050 initializer.
2051 (objc_language::opcode_print_table): New member function.
2052 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2053 initializer.
2054 (opencl_language::opcode_print_table): New member function.
2055 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2056 initializer.
2057 (pascal_language::opcode_print_table): New member function.
2058 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2059 initializer.
2060 (rust_language::opcode_print_table): New member function.
2061
5aba6ebe
AB
20622020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2063
2064 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2065 (ada_language::expression_ops): New member function.
2066 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2067 (c_language::expression_ops): New member function.
2068 (cplus_language_data): Remove la_exp_desc initializer.
2069 (cplus_language::expression_ops): New member function.
2070 (asm_language_data): Remove la_exp_desc initializer.
2071 (asm_language::expression_ops): New member function.
2072 (minimal_language_data): Remove la_exp_desc initializer.
2073 (minimal_language::expression_ops): New member function.
2074 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2075 (d_language::expression_ops): New member function.
2076 * eval.c (evaluate_subexp): Update call to expression_ops.
2077 * expprint.c (print_subexp): Likewise.
2078 (op_name): Likewise.
2079 (dump_subexp_body): Likewise.
2080 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2081 (f_language::expression_ops): New member function.
2082 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2083 (go_language::expression_ops): New member function.
2084 * language.c (language_defn::expression_ops): New function.
2085 (unknown_language_data): Remove la_exp_desc initializer.
2086 (auto_language_data): Likewise.
2087 * language.h (language_data): Remove la_exp_desc field.
2088 (language_defn::expression_ops): Declare new member function.
2089 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2090 (m2_language::expression_ops): New member function.
2091 * objc-lang.c (objc_language_data): Remove la_exp_desc
2092 initializer.
2093 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2094 initializer.
2095 (opencl_language::expression_ops): New member function.
2096 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2097 * parse.c (operator_length): Update call to expression_ops.
2098 (exp_iterate): Likewise.
2099 * rust-lang.c (rust_language_data): Remove la_exp_desc
2100 initializer.
2101 (ruse_language::expression_ops): New member function.
2102
b63a3f3f
AB
21032020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2104
2105 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2106 initializer.
2107 (ada_language::varobj_ops): New member function.
2108 * c-lang.c (c_language_data): Remove la_varobj_ops
2109 initializer.
2110 (cplus_language_data): Likewise.
2111 (cplus_language::varobj_ops): New member function.
2112 (asm_language_data): Remove la_varobj_ops initializer.
2113 (minimal_language_data): Likewise.
2114 * d-lang.c (d_language_data): Likewise.
2115 * f-lang.c (f_language_data): Likewise.
2116 * go-lang.c (go_language_data): Likewise.
2117 * language.c (language_defn::varobj_ops): New function.
2118 (unknown_language_data): Remove la_varobj_ops
2119 initializer.
2120 (auto_language_data): Likewise.
2121 * language.h (language_data): Remove la_varobj_ops field.
2122 (language_defn::varobj_ops): Declare new member function.
2123 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2124 * objc-lang.c (objc_language_data): Likewise.
2125 * opencl-lang.c (opencl_language_data): Likewise.
2126 * p-lang.c (pascal_language_data): Likewise.
2127 * rust-lang.c (rust_language_data): Likewise.
2128 * varobj.c (varobj_create): Update call to varobj_ops.
2129 * varobj.h (default_varobj_ops): Delete define.
2130
1ac14a04
AB
21312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2132
2133 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2134 initializer.
2135 * c-lang.c (c_language_data): Likewise.
2136 (c_language::macro_expansion): New member function.
2137 (cplus_language_data): Likewise.
2138 (cplus_language::macro_expansion): New member function.
2139 (asm_language_data): Likewise.
2140 (asm_language::macro_expansion): New member function.
2141 (minimal_language_data): Likewise.
2142 (minimal_language::macro_expansion): New member function.
2143 * d-lang.c (d_language_data): Remove la_macro_expansion
2144 initializer.
2145 * f-lang.c (f_language_data): Likewise.
2146 * go-lang.c (go_language_data): Likewise.
2147 * language.c (unknown_language_data): Likewise.
2148 (auto_language_data): Likewise.
2149 * language.h (language_data): Remove la_macro_expansion field.
2150 (language_defn::macro_expansion): New member function.
2151 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2152 initializer.
2153 * objc-lang.c (objc_language_data): Likewise.
2154 (objc_language::macro_expansion): New member function.
2155 * opencl-lang.c (opencl_language_data): Likewise.
2156 (opencl_language::macro_expansion): New member function.
2157 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2158 initializer.
2159 * rust-lang.c (rust_language_data): Likewise.
2160 * symtab.c (default_collect_symbol_completion_matches_break_on):
2161 Update call to macro_expansion.
2162
3a3440fb
AB
21632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2164
2165 * ada-lang.c (ada_language_data): Remove la_array_ordering
2166 initializer.
2167 * c-lang.c (c_language_data): Likewise.
2168 (cplus_language_data): Likewise.
2169 (asm_language_data): Likewise.
2170 (minimal_language_data): Likewise.
2171 * d-lang.c (d_language_data): Likewise.
2172 * dwarf2/read.c (read_array_order): Update for call to
2173 array_ordering.
2174 * f-lang.c (f_language_data): Remove la_array_ordering
2175 initializer.
2176 (f_language::array_ordering): New member function.
2177 * go-lang.c (go_language_data): Remove la_array_ordering
2178 initializer.
2179 * language.c (unknown_language_data): Likewise.
2180 (auto_language_data): Likewise.
2181 * language.h (language_data): Delete la_array_ordering field.
2182 (language_defn::array_ordering): New member function.
2183 * m2-lang.c (m2_language_data): Remove la_array_ordering
2184 initializer.
2185 * objc-lang.c (objc_language_data): Likewise.
2186 * opencl-lang.c (opencl_language_data): Likewise.
2187 * p-lang.c (pascal_language_data): Likewise.
2188 * rust-lang.c (rust_language_data): Likewise.
2189
0d201fa4
AB
21902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2191
2192 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2193 initializer.
2194 * c-lang.c (c_language_data): Likewise.
2195 (cplus_language_data): Likewise.
2196 (asm_language_data): Likewise.
2197 (minimal_language_data): Likewise.
2198 * d-lang.c (d_language_data): Likewise.
2199 * f-lang.c (f_language_data): Likewise.
2200 (f_language::case_sensitivity): New member function.
2201 * go-lang.c (go_language_data): Remove la_case_sensitivity
2202 initializer.
2203 * language.c (enum case_mode): Moved here from language.h.
2204 (case_mode): Make static.
2205 (show_case_command): Update for case_sensitivity being a method.
2206 (set_case_command): Likewise.
2207 (set_range_case): Likewise.
2208 (unknown_language_data): Remove la_case_sensitivity initializer.
2209 (auto_language_data): Likewise.
2210 * language.h (case_mode): Delete, move enum declaration to
2211 language.c.
2212 (language_data): Delete la_case_sensitivity field.
2213 (language_defn::case_sensitivity): New member function.
2214 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2215 initializer.
2216 * objc-lang.c (objc_language_data): Likewise.
2217 * opencl-lang.c (opencl_language_data): Likewise.
2218 * p-lang.c (pascal_language_data): Likewise.
2219 * rust-lang.c (rust_language_data): Likewise.
2220
efdf6a73
AB
22212020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2222
2223 * ada-lang.c (ada_language_data): Remove la_range_check
2224 initializer.
2225 * c-lang.c (c_language_data): Likewise.
2226 (cplus_language_data): Likewise.
2227 (asm_language_data): Likewise.
2228 (minimal_language_data): Likewise.
2229 * d-lang.c (d_language_data): Likewise.
2230 * f-lang.c (f_language_data): Likewise.
2231 (f_language::range_checking_on_by_default): New member function.
2232 * go-lang.c (go_language_data): Remove la_range_check initializer.
2233 * language.c (enum range_mode): Moved here from language.h.
2234 (range_mode): Made static.
2235 (show_range_command): Update to use
2236 range_checking_on_by_default.
2237 (set_range_command): Likewise.
2238 (set_range_case): Likewise.
2239 (unknown_language_data): Remove la_range_check initializer.
2240 (auto_language_data): Likewise.
2241 * language.h (range_mode): Delete. Enum definition moved to
2242 language.c.
2243 (language_data): Remove la_range_check field.
2244 (language_defn::range_checking_on_by_default): New member
2245 function.
2246 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2247 (m2_language::range_checking_on_by_default): New member function.
2248 * objc-lang.c (objc_language_data): Remove la_range_check
2249 initializer.
2250 * opencl-lang.c (opencl_language_data): Likewise.
2251 * p-lang.c (pascal_language_data): Likewise.
2252 (pascal_language::range_checking_on_by_default): New member
2253 function.
2254 * rust-lang.c (rust_language_data): Remove la_range_check
2255 initializer.
2256 (rust_language::range_checking_on_by_default): New member
2257 function.
2258
bf92aec5
AB
22592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2260
2261 * dwarf2/read.c (dwarf2_physname): Remove special case for
2262 language_go.
2263 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2264 member function.
2265
d3355e4d
AB
22662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2267
2268 * ada-lang.c (ada_language_data): Remove
2269 la_store_sym_names_in_linkage_form_p initializer.
2270 (ada_language::store_sym_names_in_linkage_form_p): New member
2271 function.
2272 * c-lang.c (c_language_data): Remove
2273 la_store_sym_names_in_linkage_form_p initializer.
2274 (c_language::store_sym_names_in_linkage_form_p): New member
2275 function.
2276 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2277 initializer.
2278 (asm_language_data): Likewise.
2279 (asm_language::store_sym_names_in_linkage_form_p): New member
2280 function.
2281 (minimal_language_data): Remove
2282 la_store_sym_names_in_linkage_form_p initializer.
2283 (minimal_language::store_sym_names_in_linkage_form_p): New member
2284 function.
2285 * d-lang.c (d_language_data): Remove
2286 la_store_sym_names_in_linkage_form_p initializer.
2287 * dwarf2/read.c (dwarf2_physname): Update call to
2288 store_sym_names_in_linkage_form_p.
2289 * f-lang.c (f_language_data): Remove
2290 la_store_sym_names_in_linkage_form_p initializer.
2291 * go-lang.c (go_language_data): Remove
2292 la_store_sym_names_in_linkage_form_p initializer.
2293 * language.c (unknown_language_data): Remove
2294 la_store_sym_names_in_linkage_form_p initializer.
2295 (unknown_language::store_sym_names_in_linkage_form_p): New member
2296 function.
2297 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2298 initializer.
2299 (auto_language::store_sym_names_in_linkage_form_p): New member
2300 function.
2301 * language.h (language_data): Remove
2302 la_store_sym_names_in_linkage_form_p member variable.
2303 (language_defn::store_sym_names_in_linkage_form_p): New member
2304 function.
2305 * m2-lang.c (m2_language_data): Remove
2306 la_store_sym_names_in_linkage_form_p initializer.
2307 * objc-lang.c (objc_language_data): Likewise.
2308 * opencl-lang.c (opencl_language_data): Likewise.
2309 * p-lang.c (pascal_language_data): Likewise.
2310 * rust-lang.c (rust_language_data): Likewise.
2311
22c12a6c
AB
23122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2313
2314 * ada-lang.c (ada_language_data): Remove string_lower_bound
2315 initializer.
2316 * c-lang.c (c_language_data): Likewise.
2317 (cplus_language_data): Likewise.
2318 (asm_language_data): Likewise.
2319 (minimal_language_data): Likewise.
2320 * d-lang.c (d_language_data): Likewise.
2321 * f-lang.c (f_language_data): Likewise.
2322 * go-lang.c (go_language_data): Likewise.
2323 * language.c (unknown_language_data): Likewise.
2324 (auto_language_data): Likewise.
2325 * language.h (language_data): Remove string_lower_bound field.
2326 (language_defn::string_lower_bound): New member function.
2327 * m2-lang.c (m2_language_data): Remove string_lower_bound
2328 initializer.
2329 (m2_language::string_lower_bound): New member function.
2330 * objc-lang.c (objc_language_data): Remove string_lower_bound
2331 initializer.
2332 * opencl-lang.c (opencl_language_data): Likewise.
2333 * p-lang.c (pascal_language_data): Likewise.
2334 * rust-lang.c (rust_language_data): Likewise.
2335 * valops.c (value_cstring): Update call to string_lower_bound.
2336 (value_string): Likewise.
2337 * value.c (allocate_repeated_value): Likewise.
2338
1c236ddd
AB
23392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2340
2341 * valops.c (value_repeat): Fix incorrect argument name in comment.
2342
67bd3fd5
AB
23432020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2344
2345 * ada-lang.c (ada_language_data): Remove c_style_arrays
2346 initializer.
2347 (ada_language::c_style_arrays_p): New member fuction.
2348 * c-lang.c (c_language_data): Remove c_style_arrays
2349 initializer.
2350 (cplus_language_data): Likewise.
2351 (asm_language_data): Likewise.
2352 (minimal_language_data): Likewise.
2353 * d-lang.c (d_language_data): Likewise.
2354 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2355 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2356 (f_language::c_style_arrays_p): New member function.
2357 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2358 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2359 * language.c (unknown_language_data): Remove c_style_arrays
2360 initializer.
2361 (auto_language_data): Likewise.
2362 * language.h (language_data): Remove c_style_arrays field.
2363 (language_defn::c_style_arrays_p): New member function.
2364 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2365 (m2_language::c_style_arrays_p): New member function.
2366 * objc-lang.c (objc_language_data): Remove c_style_arrays
2367 initializer.
2368 * opencl-lang.c (opencl_language_data): Likewise.
2369 * p-lang.c (pascal_language_data): Likewise.
2370 * rust-lang.c (rust_language_data): Likewise.
2371 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2372 and update local variable to a bool.
2373 * valops.c (value_cast): Update call to c_style_arrays_p.
2374 (value_array): Likewise.
2375 * value.c (coerce_array): Likewise.
2376
85967615
AB
23772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2378
2379 * ada-lang.c (ada_language_data): Remove la_language initializer.
2380 * c-lang.c (c_language_data): Likewise.
2381 (cplus_language_data): Likewise.
2382 (asm_language_data): Likewise.
2383 (minimal_language_data): Likewise.
2384 * d-lang.c (d_language_data): Likewise.
2385 * f-lang.c (f_language_data): Likewise.
2386 * go-lang.c (go_language_data): Likewise.
2387 * language.c (unknown_language_data): Likewise.
2388 (auto_language_data): Likewise.
2389 * language.h (language_data): Remove la_language field.
2390 (language_defn::language_defn): Initialise la_language field.
2391 (language_defn::la_language): New member variable.
2392 * m2-lang.c (m2_language_data): Remove la_language field.
2393 * objc-lang.c (objc_language_data): Likewise.
2394 * opencl-lang.c (opencl_language_data): Likewise.
2395 * p-lang.c (pascal_language_data): Likewise.
2396 * rust-lang.c (rust_language_data): Likewise.
2397
e171d6f1
AB
23982020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2399
2400 * ada-lang.c (ada_extensions): Delete, moved into
2401 ada_language::filename_extensions.
2402 (ada_language_data): Remove la_filename_extensions initializer.
2403 (ada_language::filename_extensions): New member function.
2404 * c-lang.c (c_extensions): Delete, moved into
2405 c_language::filename_extensions.
2406 (c_language_data): Remove la_filename_extensions initializer.
2407 (c_language::filename_extensions): New member function.
2408 (cplus_extensions): Delete, moved into
2409 cplus_language::filename_extensions.
2410 (cplus_language_data): Remove la_filename_extensions initializer.
2411 (cplus_language::filename_extensions): New member function.
2412 (asm_extensions): Delete, moved into
2413 asm_language::filename_extensions.
2414 (asm_language_data): Remove la_filename_extensions initializer.
2415 (asm_language::filename_extensions): New member function.
2416 (minimal_language_data): Remove la_filename_extensions
2417 initializer.
2418 * d-lang.c (d_extensions): Delete, moved into
2419 d_language::filename_extensions.
2420 (d_language_data): Remove la_filename_extensions initializer.
2421 (d_language::filename_extensions): New member function.
2422 * f-lang.c (f_extensions): Delete, moved into
2423 f_language::filename_extensions.
2424 (f_language_data): Remove la_filename_extensions initializer.
2425 (f_language::filename_extensions): New member function.
2426 * go-lang.c (go_language_data): Remove la_filename_extensions
2427 initializer.
2428 * language.c (add_set_language_command): Update now that
2429 filename_extensions returns a vector.
2430 (unknown_language_data): Remove la_filename_extensions
2431 initializer.
2432 (auto_language_data): Likewise.
2433 * language.h (language_data): Remove la_filename_extensions field.
2434 (language_defn::filename_extensions): New member function.
2435 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2436 initializer.
2437 * objc-lang.c (objc_extensions): Delete, moved into
2438 objc_language::filename_extensions.
2439 (objc_language_data): Remove la_filename_extensions initializer.
2440 (objc_language::filename_extensions): New member function.
2441 * opencl-lang.c (opencl_language_data): Remove
2442 la_filename_extensions initializer.
2443 * p-lang.c (pascal_extensions): Delete, moved into
2444 pascal_language::filename_extensions.
2445 (pascal_language_data): Remove la_filename_extensions initializer.
2446 (pascal_language::filename_extensions): New member function.
2447 * rust-lang.c (rust_extensions): Delete, moved into
2448 rust_language::filename_extensions.
2449 (rust_language_data): Remove la_filename_extensions initializer.
2450 (rust_language::filename_extensions): New member function.
2451 * symfile.c (add_filename_language): Add new assert.
2452
6f7664a9
AB
24532020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2454
2455 * ada-lang.c (ada_language_data): Remove la_name and
2456 la_natural_name initializers.
2457 (ada_language::name): New member function.
2458 (ada_language::natural_name): New member function.
2459 * c-lang.c (c_language_data): Remove la_name and
2460 la_natural_name initializers.
2461 (c_language::name): New member function.
2462 (c_language::natural_name): New member function.
2463 (cplus_language_data): Remove la_name and
2464 la_natural_name initializers.
2465 (cplus_language::name): New member function.
2466 (cplus_language::natural_name): New member function.
2467 (asm_language_data): Remove la_name and
2468 la_natural_name initializers.
2469 (asm_language::name): New member function.
2470 (asm_language::natural_name): New member function.
2471 (minimal_language_data): Remove la_name and
2472 la_natural_name initializers.
2473 (minimal_language::name): New member function.
2474 (minimal_language::natural_name): New member function.
2475 * compile/compile.c (compile_to_object): Update call to
2476 lanugage_defn::name.
2477 * d-lang.c (d_language_data): Remove la_name and
2478 la_natural_name initializers.
2479 (d_language::name): New member function.
2480 (d_language::natural_name): New member function.
2481 * expprint.c (print_subexp_standard): Update call to
2482 language_defn::name.
2483 (dump_raw_expression): Likewise
2484 (dump_prefix_expression): Likewise.
2485 * f-lang.c (f_language_data): Remove la_name and
2486 la_natural_name initializers.
2487 (f_language::name): New member function.
2488 (f_language::natural_name): New member function.
2489 * go-lang.c (go_language_data): Remove la_name and
2490 la_natural_name initializers.
2491 (go_language::name): New member function.
2492 (go_language::natural_name): New member function.
2493 * language.c (show_language_command): Update call to
2494 language_defn::name.
2495 (set_language_command): Likewise.
2496 (language_enum): Likewise.
2497 (language_str): Likewise.
2498 (add_set_language_command): Likewise, use
2499 language_defn::natural_name in the doc string.
2500 (unknown_language_data): Remove la_name and
2501 la_natural_name initializers.
2502 (unknown_language::name): New member function.
2503 (unknown_language::natural_name): New member function.
2504 (auto_language_data): Remove la_name and
2505 la_natural_name initializers.
2506 (auto_language::name): New member function.
2507 (auto_language::natural_name): New member function.
2508 (language_lookup_primitive_type_as_symbol): Update call to
2509 language_defn::name.
2510 * language.h (language_data): Remove la_name and la_natural_name
2511 member variables.
2512 (language_defn::name): New member function.
2513 (language_defn::natural_name): New member function.
2514 * m2-lang.c (m2_language_data): Remove la_name and
2515 la_natural_name initializers.
2516 (m2_language::name): New member function.
2517 (m2_language::natural_name): New member function.
2518 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2519 language_defn::natural_name.
2520 * objc-lang.c (objc_language_data): Remove la_name and
2521 la_natural_name initializers.
2522 (objc_language::name): New member function.
2523 (objc_language::natural_name): New member function.
2524 * opencl-lang.c (opencl_language_data): Remove la_name and
2525 la_natural_name initializers.
2526 (opencl_language::name): New member function.
2527 (opencl_language::natural_name): New member function.
2528 * p-lang.c (pascal_language_data): Remove la_name and
2529 la_natural_name initializers.
2530 (pascal_language::name): New member function.
2531 (pascal_language::natural_name): New member function.
2532 * rust-lang.c (rust_language_data): Remove la_name and
2533 la_natural_name initializers.
2534 (rust_language::name): New member function.
2535 (rust_language::natural_name): New member function.
2536 * symtab.c (lookup_language_this): Update call to
2537 language_defn::name.
2538
5bae7c4e
AB
25392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2540
2541 * ada-lang.c (ada_language_data): Remove la_name_of_this
2542 initializer.
2543 * ax-gdb.c (gen_expr): Update call to name_of_this.
2544 * c-exp.y (classify_name): Likewise.
2545 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2546 (cplus_language_data): Likewise.
2547 (cplus_language::name_of_this): New member function.
2548 (asm_language_data): Remove la_name_of_this initializer.
2549 (minimal_language_data): Likewise.
2550 * d-lang.c (d_language_data): Likewise.
2551 (d_language::name_of_this): New member function.
2552 * expprint.c (print_subexp_standard): Update call to name_of_this.
2553 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2554 * go-lang.c (go_language_data): Likewise.
2555 * language.c (unknown_language_data): Likewise.
2556 (unknown_language::name_of_this): New member function.
2557 (auto_language_data): Remove la_name_of_this initializer.
2558 (auto_language::name_of_this): New member function.
2559 * language.h (language_data): Delete la_name_of_this member
2560 variable.
2561 (language_defn::name_of_this): New member function.
2562 * m2-lang.c (m2_language_data): Remove la_name_of_this
2563 initializer.
2564 * objc-lang.c (objc_language_data): Likewise.
2565 (objc_language::name_of_this): New member function.
2566 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2567 initializer.
2568 * p-lang.c (pascal_language_data): Likewise.
2569 (pascal_language::name_of_this): New member function.
2570 * rust-lang.c (rust_language_data): Remove la_name_of_this
2571 initializer.
2572 * symtab.c (lookup_language_this): Update call to name_of_this.
2573 (lookup_symbol_aux): Likewise.
2574 * valops.c (value_of_this): Likewise.
2575
22e3f3ed
AB
25762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2577
2578 * ada-lang.c (ada_language_data): Remove
2579 la_struct_too_deep_ellipsis initializer.
2580 (ada_language::struct_too_deep_ellipsis): New member function.
2581 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2582 initializer.
2583 (cplus_language_data): Likewise.
2584 (asm_language_data): Likewise.
2585 (minimal_language_data): Likewise.
2586 * cp-valprint.c (cp_print_value): Update call to
2587 struct_too_deep_ellipsis.
2588 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2589 initializer.
2590 * f-lang.c (f_language_data): Likewise.
2591 (f_language::struct_too_deep_ellipsis): New member function.
2592 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2593 initializer.
2594 * language.c (unknown_language_data): Likewise.
2595 (auto_language_data): Likewise.
2596 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2597 member variable.
2598 (language_defn::struct_too_deep_ellipsis): New member function.
2599 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2600 initializer.Q
2601 * objc-lang.c (objc_language_data): Likewise.
2602 * opencl-lang.c (opencl_language_data): Likewise.
2603 * p-lang.c (pascal_language_data): Likewise.
2604 * rust-lang.c (rust_language_data): Likewise.
2605 * valprint.c (val_print_check_max_depth): Update call to
2606 struct_too_deep_ellipsis.
2607
ed29e1c7
FW
26082020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2609
2610 * MAINTAINERS (Write After Approval): Add myself.
2611
12d8f940
TT
26122020-09-15 Tom Tromey <tom@tromey.com>
2613
2614 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2615 Remove.
2616
6b5a7bc7
TT
26172020-09-15 Tom Tromey <tom@tromey.com>
2618
2619 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2620 and TYPE_CODE_METHODPTR cases.
2621 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2622 (c_value_print_inner): Update.
2623 * valprint.c (generic_value_print_memberptr): New function, from
2624 c_value_print_memberptr.
2625 (generic_value_print): Use it. Call cplus_print_method_ptr.
2626
47f0e2ff
TT
26272020-09-15 Tom Tromey <tromey@adacore.com>
2628
2629 * python/python-internal.h (PyInt_FromLong): Remove define.
2630 * python/py-value.c (convert_value_from_python): Use
2631 gdb_py_object_from_longest.
2632 * python/py-type.c (typy_get_code): Use
2633 gdb_py_object_from_longest.
2634 * python/py-symtab.c (salpy_get_line): Use
2635 gdb_py_object_from_longest.
2636 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2637 gdb_py_object_from_longest.
2638 * python/py-record.c (recpy_gap_reason_code): Use
2639 gdb_py_object_from_longest.
2640 * python/py-record-btrace.c (recpy_bt_insn_size)
2641 (recpy_bt_func_level, btpy_list_count): Use
2642 gdb_py_object_from_longest.
2643 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2644 gdb_py_object_from_longest. Fix error handling.
2645 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2646 gdb_py_object_from_longest.
2647 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2648 gdb_py_object_from_longest.
2649 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2650 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2651 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2652
512116ce
TT
26532020-09-15 Tom Tromey <tromey@adacore.com>
2654
2655 * python/python.c (gdbpy_parameter_value): Use
2656 gdb_py_object_from_ulongest.
2657
4ab1029c
TT
26582020-09-15 Tom Tromey <tromey@adacore.com>
2659
2660 * python/py-infevents.c (create_register_changed_event_object):
2661 Use gdb_py_object_from_longest.
2662 * python/py-exitedevent.c (create_exited_event_object): Use
2663 gdb_py_object_from_longest.
2664
062534d4
TT
26652020-09-15 Tom Tromey <tromey@adacore.com>
2666
2667 * python/python.c (gdbpy_parameter_value): Use
2668 gdb_py_object_from_longest.
2669 * python/py-type.c (convert_field, typy_range): Use
2670 gdb_py_object_from_longest.
2671 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2672 gdb_py_object_from_longest.
2673 * python/py-lazy-string.c (stpy_get_length): Use
2674 gdb_py_object_from_longest.
2675 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2676 gdb_py_object_from_longest.
2677 * python/py-infevents.c (create_memory_changed_event_object): Use
2678 gdb_py_object_from_longest.
2679 * python/py-inferior.c (infpy_get_num): Use
2680 gdb_py_object_from_longest.
2681 (infpy_get_pid): Likewise.
2682
d1cab987
TT
26832020-09-15 Tom Tromey <tromey@adacore.com>
2684
2685 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2686 defines.
2687 * python/py-value.c (valpy_long): Use
2688 gdb_py_object_from_ulongest.
2689 * python/py-symtab.c (salpy_get_pc): Use
2690 gdb_py_object_from_ulongest.
2691 (salpy_get_last): Likewise.
2692 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2693 gdb_py_object_from_ulongest.
2694 * python/py-lazy-string.c (stpy_get_address): Use
2695 gdb_py_object_from_ulongest.
2696 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2697 * python/py-arch.c (archpy_disassemble): Use
2698 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2699 error handling.
2700
4bde49dc
TT
27012020-09-15 Tom Tromey <tromey@adacore.com>
2702
2703 * python/python-internal.h (gdb_py_long_from_longest): Remove
2704 defines.
2705 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2706 * python/py-type.c (convert_field, typy_get_sizeof): Use
2707 gdb_py_object_from_longest.
2708 * python/py-record-btrace.c (btpy_list_index): Use
2709 gdb_py_object_from_longest.
2710
37431074
TT
27112020-09-15 Tom Tromey <tromey@adacore.com>
2712
2713 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2714 * python/py-record.c (recpy_element_number): Use
2715 gdb_py_object_from_longest.
2716 (recpy_gap_number): Likewise.
2717
cbe25684
TT
27182020-09-15 Tom Tromey <tromey@adacore.com>
2719
2720 * top.c (ui::ui): Update.
2721 (highest_ui_num): Remove.
2722 * top.h (struct ui) <num>: Remove.
2723
db92ac45
TT
27242020-09-15 Tom Tromey <tromey@adacore.com>
2725
2726 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2727 * ui-style.c (ansi_regex_text): Now array.
2728 * rust-exp.y (number_regex_text): Now array.
2729 * linespec.c (linespec_quote_characters): Now array.
2730 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2731 Now arrays.
2732
d2b31b67
SM
27332020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2734
2735 * debuginfod-support.c (debuginfod_client_deleter): New.
2736 (debuginfod_client_up): New.
2737 (debuginfod_init): Return debuginfod_client_up.
2738 (debuginfod_source_query): Adjust.
2739 (debuginfod_debuginfo_query): Adjust.
2740
3246bd8e
SM
27412020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2742
2743 * debuginfod-support.c (debuginfod_source_query): Use
2744 make_unique_xstrdup.
2745
10242f36
SM
27462020-09-14 Simon Marchi <simon.marchi@efficios.com>
2747
2748 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2749 with `type::instance_flags`.
2750
e1044e6a
MM
27512020-09-14 Michael Mullin <masmullin@gmail.com>
2752
2753 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2754 Remove baton parameter.
2755
04902b09
PA
27562020-09-14 Pedro Alves <pedro@palves.net>
2757
2758 * Makefile.in (SELFTESTS_SRCS): Add
2759 unittests/enum-flags-selftests.c.
2760 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2761 btrace_function_flags instead of enum btrace_function_flag.
2762 * compile/compile-c-types.c (convert_qualified): Use
2763 enum_flags::raw.
2764 * compile/compile-cplus-symbols.c (convert_one_symbol)
2765 (convert_symbol_bmsym):
2766 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2767 (compile_cplus_convert_struct_or_union_methods)
2768 (compile_cplus_instance::convert_qualified_base):
2769 * go-exp.y (parse_string_or_char): Add cast to int.
2770 * unittests/enum-flags-selftests.c: New file.
2771 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2772 type to btrace_thread_flags from btrace_thread_flag.
2773 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2774 local's type to btrace_thread_flags from btrace_thread_flag. Add
2775 cast in DEBUG call.
2776
69896a2c
PA
27772020-09-14 Pedro Alves <pedro@palves.net>
2778
2779 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2780 * gdbtypes.c (address_space_name_to_int): Rename to ...
2781 (address_space_name_to_type_instance_flags): ... this.
2782 (address_space_int_to_name): Rename to ...
2783 (address_space_type_instance_flags_to_name): ... this.
2784 * gdbtypes.h (address_space_name_to_int): Rename to ...
2785 (address_space_name_to_type_instance_flags): ... this.
2786 (address_space_int_to_name): Rename to ...
2787 (address_space_type_instance_flags_to_name): ... this.
2788 * type-stack.c (type_stack::insert): Adjust to rename.
2789 * type-stack.h (type_stack::insert): Likewise.
2790
314ad88d
PA
27912020-09-14 Pedro Alves <pedro@palves.net>
2792 Andrew Burgess <andrew.burgess@embecosm.com>
2793
2794 * avr-tdep.c (avr_address_class_type_flags): Return
2795 type_instance_flags.
2796 (avr_address_class_type_flags_to_name): Take a
2797 type_instance_flags.
2798 (avr_address_class_name_to_type_flags): Return bool and take a
2799 type_instance_flags.
2800 * d-lang.c (build_d_types): Use type::set_instance_flags.
2801 * ft32-tdep.c (ft32_address_class_type_flags): Return
2802 type_instance_flags.
2803 (ft32_address_class_type_flags_to_name): Take a
2804 type_instance_flags.
2805 (ft32_address_class_name_to_type_flags): Return bool and take a
2806 type_instance_flags.
2807 (ft32_gdbarch_init): Use type::set_instance_flags.
2808 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2809 * gdbarch.h, gdbarch.c: Regenerate.
2810 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2811 (address_class_name_to_type_flags): Use type_instance_flags and
2812 bool.
2813 * gdbtypes.c (address_space_name_to_int)
2814 (address_space_int_to_name, make_qualified_type): Use
2815 type_instance_flags.
2816 (make_qualified_type): Use type_instance_flags and
2817 type::set_instance_flags.
2818 (make_type_with_address_space, make_cv_type, make_vector_type)
2819 (check_typedef): Use type_instance_flags.
2820 (recursive_dump_type): Cast type_instance_flags to unsigned for
2821 printing.
2822 (copy_type_recursive): Use type::set_instance_flags.
2823 (gdbtypes_post_init): Use type::set_instance_flags.
2824 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2825 <m_instance_flags>: ... this.
2826 <instance_flags, set_instance_flags>: New methods.
2827 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2828 (SET_TYPE_INSTANCE_FLAGS): New.
2829 (address_space_name_to_int, address_space_int_to_name)
2830 (make_type_with_address_space): Pass flags using
2831 type_instance_flags instead of int.
2832 * stabsread.c (cleanup_undefined_types_noname): Use
2833 type::set_instance_flags.
2834 * s390-tdep.c (s390_address_class_type_flags): Return
2835 type_instance_flags.
2836 (s390_address_class_type_flags_to_name): Take a
2837 type_instance_flags.
2838 (s390_address_class_name_to_type_flags): Return bool and take a
2839 type_instance_flags.
2840 * type-stack.c (type_stack::follow_types): Use
2841 type_instance_flags.
2842 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2843
27087b7f
TT
28442020-09-14 Tom Tromey <tromey@adacore.com>
2845
2846 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2847 * x86-tdep.c (x86_is_thunk_register_name)
2848 (x86_in_indirect_branch_thunk): Update.
2849 * sparc64-tdep.c (sparc64_fpu_register_names)
2850 (sparc64_cp0_register_names, sparc64_register_names)
2851 (sparc64_pseudo_register_names): Now const.
2852 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2853 cp0_registers_num>: Now const.
2854 * sparc-tdep.c (sparc_core_register_names)
2855 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2856 (sparc32_pseudo_register_names): Now const.
2857 (validate_tdesc_registers): Update.
2858 * rust-lang.c (rust_extensions): Now const.
2859 * p-lang.c (p_extensions): Now const.
2860 * objc-lang.c (objc_extensions): Now const.
2861 * nto-tdep.c (nto_thread_state_str): Now const.
2862 * moxie-tdep.c (moxie_register_names): Now const.
2863 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2864 Now const.
2865 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2866 (mips_linux_reg_names): Now const.
2867 (mips_gdbarch_init): Update.
2868 * microblaze-tdep.c (microblaze_register_names): Now const.
2869 * m68k-tdep.c (m68k_register_names): Now const.
2870 * m32r-tdep.c (m32r_register_names): Now const.
2871 * ia64-tdep.c (ia64_register_names): Now const.
2872 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2873 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2874 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2875 ymm_avx512_register_names, pkeys_register_names>: Now const.
2876 * i386-tdep.c (i386_register_names, i386_zmm_names)
2877 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2878 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2879 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2880 * f-lang.c (f_extensions): Now const.
2881 * d-lang.c (d_extensions): Now const.
2882 * csky-tdep.c (csky_register_names): Now const.
2883 * charset.c (default_charset_names, charset_enum): Now const.
2884 (_initialize_charset): Update.
2885 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2886 const.
2887 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2888 (bsd_uthread_solib_loaded): Update.
2889 (bsd_uthread_state): Now const.
2890 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2891 (amd64_ymm_avx512_names, amd64_ymmh_names)
2892 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2893 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2894 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2895 (amd64_dword_names): Now const.
2896 * agent.c (can_use_agent_enum): Now const.
2897 * ada-tasks.c (task_states, long_task_states): Now const.
2898 * ada-lang.c (known_runtime_file_name_patterns)
2899 (known_auxiliary_function_name_patterns, attribute_names)
2900 (standard_exc, ada_extensions): Now const.
2901
89806626
SM
29022020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2903
2904 * bcache.h (struct bcache) <bcache>: Remove constructor.
2905 <m_hash_function, m_compare_function>: Remove.
2906 <~bcache>: Make virtual.
2907 <compare>: Remove static method, introduce virtual method.
2908 <default_hash>: Remove.
2909 <hash>: New virtual method.
2910 * bcache.c (bcache::expand_hash_table): Update.
2911 (bcache::insert): Update.
2912 (bcache::hash): New.
2913 (bcache::compare): Update comment and parameter names.
2914 * gdbtypes.c (types_deeply_equal): Update.
2915 * psymtab.h (struct psymbol_bcache): New struct.
2916 (class psymtab_storage) <psymtab_storage>: Make default.
2917 <psymbol_cache>: Change type to psymbol_bcache.
2918 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2919 (psymbol_hash): Change to...
2920 (psymbol_bcache::hash): ... this.
2921 (psymbol_compare): Change to...
2922 (psymbol_bcache::compare): ... this.
2923
677c92fe
SM
29242020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2925
2926 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2927 checking for initial lwp.
2928
3eba3a01
TT
29292020-09-14 Tom Tromey <tromey@adacore.com>
2930
2931 * m68k-tdep.c (m68k_extract_return_value): Use
2932 pointer_result_regnum.
2933 (m68k_store_return_value): Likewise.
2934 (m68k_reg_struct_return_p): Handle vectors and arrays.
2935 (m68k_return_value): Handle arrays.
2936 (m68k_svr4_return_value): Fix single-element aggregate handling.
2937 Handle long double. Adjust for embedded ABI.
2938 (m68k_svr4_init_abi): Set pointer_result_regnum.
2939 (m68k_embedded_init_abi): New function.
2940 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2941 (m68k_osabi_sniffer): New function.
2942 (_initialize_m68k_tdep): Register osabi sniffer.
2943 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2944 member.
2945
33f4dd48
SM
29462020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2947
2948 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2949 with gdb::unique_xmalloc_ptr<char>.
2950
8400a90d
SM
29512020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2952
2953 * xml-support.h (xml_fetch_another): Change type to be a
2954 function_view.
2955 (xml_process_xincludes): Remove baton parameter.
2956 (xml_fetch_content_from_file): Change baton parameter to
2957 dirname.
2958 * xml-support.c (struct xinclude_parsing_data)
2959 <xinclude_parsing_data>: Remove baton parameter.
2960 <fetcher_baton>: Remove.
2961 (xinclude_start_include): Adjust.
2962 (xml_process_xincludes): Adjust.
2963 (xml_fetch_content_from_file): Replace baton parameter with
2964 dirname.
2965 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2966 (xml_init_syscalls_info): Use a lambda.
2967 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2968 (file_read_description_xml): Use a lambda.
2969 (fetch_available_features_from_target): Change baton parameter
2970 to target_ops.
2971 (target_read_description_xml): Use a lambda.
2972 (target_fetch_description_xml): Use a lambda.
2973 (string_read_description_xml): Update.
2974
04f5bab2
SM
29752020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2976
2977 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2978 uses with type::endianity_is_not_default.
2979
db558e34
SM
29802020-09-14 Simon Marchi <simon.marchi@efficios.com>
2981
2982 * gdbtypes.h (struct type) <endianity_is_not_default,
2983 set_endianity_is_not_default>: New methods.
2984 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2985 type::endianity_is_not_default, change all write call sites to
2986 use type::set_endianity_is_not_default.
2987
22c4c60c
SM
29882020-09-14 Simon Marchi <simon.marchi@efficios.com>
2989
2990 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2991 uses with type::is_fixed_instance.
2992
9cdd0d12
SM
29932020-09-14 Simon Marchi <simon.marchi@efficios.com>
2994
2995 * gdbtypes.h (struct type) <is_fixed_instance,
2996 set_is_fixed_instance>: New methods.
2997 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2998 write call sites to use type::set_is_fixed_instance.
2999
0becda7a
SM
30002020-09-14 Simon Marchi <simon.marchi@efficios.com>
3001
3002 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3003 uses with type::is_gnu_ifunc.
3004
03cc7249
SM
30052020-09-14 Simon Marchi <simon.marchi@efficios.com>
3006
3007 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3008 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3009 use type::set_is_gnu_ifunc.
3010
3f46044c
SM
30112020-09-14 Simon Marchi <simon.marchi@efficios.com>
3012
3013 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3014 uses with type::stub_is_supported.
3015
9baccff6
SM
30162020-09-14 Simon Marchi <simon.marchi@efficios.com>
3017
3018 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3019 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3020 use type::set_stub_is_supported.
3021
bd63c870
SM
30222020-09-14 Simon Marchi <simon.marchi@efficios.com>
3023
3024 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3025 uses with type::is_vector.
3026
2062087b
SM
30272020-09-14 Simon Marchi <simon.marchi@efficios.com>
3028
3029 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3030 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3031 use type::set_is_vector.
3032
a409645d
SM
30332020-09-14 Simon Marchi <simon.marchi@efficios.com>
3034
3035 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3036 uses with type::has_varargs.
3037
1d6286ed
SM
30382020-09-14 Simon Marchi <simon.marchi@efficios.com>
3039
3040 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3041 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3042 use type::set_has_varargs.
3043
7f9f399b
SM
30442020-09-14 Simon Marchi <simon.marchi@efficios.com>
3045
3046 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3047 uses with type::is_prototyped.
3048
27e69b7a
SM
30492020-09-14 Simon Marchi <simon.marchi@efficios.com>
3050
3051 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3052 New methods.
3053 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3054 call sites to use type::set_is_prototyped.
3055
d2183968
SM
30562020-09-14 Simon Marchi <simon.marchi@efficios.com>
3057
3058 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3059 uses with type::target_is_stub.
3060
8f53807e
SM
30612020-09-14 Simon Marchi <simon.marchi@efficios.com>
3062
3063 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3064 New methods.
3065 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3066 sites to use type::set_target_is_stub.
3067
e46d3488
SM
30682020-09-14 Simon Marchi <simon.marchi@efficios.com>
3069
3070 * gdbtypes.h (TYPE_STUB): Remove, replace all
3071 uses with type::is_stub.
3072
b4b73759
SM
30732020-09-14 Simon Marchi <simon.marchi@efficios.com>
3074
3075 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3076 (TYPE_STUB): Use type::is_stub, change all write call sites to
3077 use type::set_is_stub.
3078
20ce4123
SM
30792020-09-14 Simon Marchi <simon.marchi@efficios.com>
3080
3081 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3082 type::has_no_signedness.
3083
15152a54
SM
30842020-09-14 Simon Marchi <simon.marchi@efficios.com>
3085
3086 * gdbtypes.h (struct type) <has_no_signedness,
3087 set_has_no_signedness>: New methods.
3088 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3089 call sites to use type::set_has_no_signedness.
3090
c6d940a9
SM
30912020-09-14 Simon Marchi <simon.marchi@efficios.com>
3092
3093 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3094 type::is_unsigned.
3095
653223d3
SM
30962020-09-14 Simon Marchi <simon.marchi@efficios.com>
3097
3098 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3099 methods.
3100 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3101 sites to use type::set_is_unsigned.
3102
55ea94da 31032020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 3104 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 3105
e851246a
SM
3106 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3107 pointer and stack frame offset when unwinding.
55ea94da 3108
6791b117
PA
31092020-09-13 Pedro Alves <pedro@palves.net>
3110
3111 * NEWS: Document "-break-insert --qualified".
3112 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3113
77f2120b
PA
31142020-09-13 Pedro Alves <pedro@palves.net>
3115
3116 * linespec.c (classify_mtype, compare_msyms): Delete.
3117 (search_minsyms_for_name): Remove classification logic. Instead
3118 filter out trampoline symbols if we also found an external
3119 function of the same name.
3120
ed6a896c
JB
31212020-09-13 Joel Brobecker <brobecker@adacore.com>
3122
3123 * NEWS: Create a new section for the next release branch.
3124 Rename the section of the current branch, now that it has
3125 been cut.
3126
32aea73e
JB
31272020-09-13 Joel Brobecker <brobecker@adacore.com>
3128
3129 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3130 * version.in: Bump version to 11.0.50.DATE-git.
3131
8087c3fa
JB
31322020-09-12 Joel Brobecker <brobecker@adacore.com>
3133
3134 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3135
2a67f09d
FW
31362020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3137 Felix Willgerodt <Felix.Willgerodt@intel.com>
3138
3139 * gdbarch.sh: Added bfloat16 type.
3140 * gdbarch.c: Regenerated.
3141 * gdbarch.h: Regenerated.
3142 * gdbtypes.c (floatformats_bfloat16): New struct.
3143 (gdbtypes_post_init): Add builtin_bfloat16.
3144 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3145 (floatformats_bfloat16): New struct.
3146 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3147 (i386_ymm_type): Add field "v16_bfloat16"
3148 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3149 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3150 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3151 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3152 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3153 * features/i386/64bit-avx512.c: Regenerated.
3154 * features/i386/64bit-sse.xml: Add bfloat16 type.
3155 * features/i386/64bit-sse.c: Regenerated.
3156
1347d111
FW
31572020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3158
3159 * i386-tdep.c (i386_zmm_type): Fix field names.
3160 (i386_ymm_type): Fix field names.
3161
7a4e8e7d
TBA
31622020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3163
3164 * breakpoint.c: Fix typo in the help message of the
3165 "set breakpoint condition-evaluation" command.
3166
cf4ac4be
KR
31672020-09-10 Kamil Rytarowski <n54@gmx.com>
3168
3169 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3170 * (nbsd_nat_target::pid_to_exec_file)
3171 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3172 (nbsd_nat_target::post_startup_inferior)
3173 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3174 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3175 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3176 * (nbsd_thread_lister): Remove.
3177
f404573e
KR
31782020-09-10 Kamil Rytarowski <n54@gmx.com>
3179
3180 * fork-inferior.c (startup_inferior): Avoid double free.
3181
1ccb2c17
KR
31822020-09-10 Kamil Rytarowski <n54@gmx.com>
3183
3184 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3185 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3186
feedfcc7
KR
31872020-09-10 Kamil Rytarowski <n54@gmx.com>
3188
3189 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3190 * netbsd-nat.c: Include <sys/ptrace.h>.
3191 * (netbsd_nat::enable_proc_events): Add.
3192
c489f8c6
KR
31932020-09-10 Kamil Rytarowski <n54@gmx.com>
3194
3195 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3196 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3197 (netbsd_nat::for_each_thread): Add.
3198 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3199 "gdbsupport/common-debug.h".
3200 * (netbsd_nat::netbsd_thread_lister)
3201 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3202 (netbsd_nat::for_each_thread): Add.
3203
330662f6
KR
32042020-09-10 Kamil Rytarowski <n54@gmx.com>
3205
3206 * netbsd-nat.h: Include <unistd.h>.
3207 * (netbsd_nat::pid_to_exec_file): Add.
3208 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3209 * (netbsd_nat::pid_to_exec_file) Add.
3210
70b67307
KR
32112020-09-10 Kamil Rytarowski <n54@gmx.com>
3212
3213 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3214
99cf6da6
KR
32152020-09-10 Kamil Rytarowski <n54@gmx.com>
3216
3217 * netbsd-nat.h: New file.
3218 * netbsd-nat.c: Likewise.
3219
1b788fb6
TT
32202020-09-09 Tom Tromey <tromey@adacore.com>
3221
3222 * ada-lang.c (remove_extra_symbols): Do not increment when
3223 removing an element
3224
03b0a45f
TT
32252020-09-08 Tom Tromey <tromey@adacore.com>
3226
3227 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3228
3cae4447
TT
32292020-09-08 Tom Tromey <tromey@adacore.com>
3230
3231 PR win32/25302:
3232 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3233 (gdb_bfd_init_data): New function.
3234 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3235
7f08fd51
TBA
32362020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3237
3238 * infrun.c (fetch_inferior_event): Use
3239 `switch_to_target_no_thread` to switch the target.
3240
3e6ff933
TT
32412020-09-06 Tom Tromey <tom@tromey.com>
3242
3243 * symfile.h (dwarf2_free_objfile): Don't declare.
3244
e56798df
AKS
32452020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3246
3247 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3248 to match 16 byte real/complex type generated by Flang compiler.
3249
8f5c6526
TV
32502020-09-03 Tom de Vries <tdevries@suse.de>
3251
3252 PR breakpoint/26546
3253 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3254 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3255
c5065df0
SM
32562020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3257
3258 * maint.c (index_digits): New function.
3259 (struct maint_print_section_data): Remove.
3260 (print_bfd_section_info): Remove print_data parameter, add arg
3261 and index_digits.
3262 (print_objfile_section_info): Likewise.
3263 (print_bfd_section_info_maybe_relocated): Likewise (plus
3264 objfile).
3265 (maintenance_info_sections): Adjust calls.
3266
02c6f3f1
TT
32672020-09-02 Tom Tromey <tromey@adacore.com>
3268
3269 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3270 for null pointers.
3271 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3272
ef5e5b0b
SM
32732020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3274
3275 * bcache.h (struct bcache) <insert>: Change type of `added` to
3276 pointer to bool.
3277 * bcache.c (bcache::insert): Likewise.
3278 * gdbtypes.c (check_types_worklist): Adjust.
3279 * psymtab.c (add_psymbol_to_bcache): Adjust.
3280
973695d6
KB
32812020-08-31 Kevin Buettner <kevinb@redhat.com>
3282
3283 * corelow.c (unordered_set): Include.
3284 (class core_target): Add field 'm_core_unavailable_mappings'.
3285 (core_target::build_file_mappings): Print only one warning
3286 per inaccessible file. Add unavailable/broken mappings
3287 to m_core_unavailable_mappings.
3288 (core_target::xfer_partial): Call...
3289 (core_target::xfer_memory_via_mappings): New method.
3290
264fc0e2
SM
32912020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3292
3293 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3294 type to bool.
3295
2de01bdb
SM
32962020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3297
3298 * dwarf2/read.c (struct field_info): Fix indentation.
3299
f3bd50f1
SM
33002020-08-31 Simon Marchi <simon.marchi@efficios.com>
3301
3302 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3303 ordering in comment.
3304 * frame.c (frame_id_eq): Fix indentation.
3305
22b9b4b0
SL
33062020-08-31 Scott Linder <scott@scottlinder.com>
3307 Simon Marchi <simon.marchi@efficios.com>
3308
3309 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3310 inline frame ids in outer frame.
3311
84154d16
SM
33122020-08-31 Simon Marchi <simon.marchi@efficios.com>
3313
3314 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3315 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3316 (outer_frame_id): Use FID_STACK_OUTER instead of
3317 FID_STACK_INVALID.
3318 (frame_id_p): Don't check for outer_frame_id.
3319
8efaf6b3
SM
33202020-08-31 Simon Marchi <simon.marchi@efficios.com>
3321
3322 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3323 regnum/frame in value. Call allocate_value_lazy.
3324 * frame.c (frame_unwind_register_value): Use
3325 val_print_not_saved.
3326
fe1fe7ea
SM
33272020-08-31 Simon Marchi <simon.marchi@efficios.com>
3328
3329 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3330
f7c7700d
PA
33312020-08-29 Pedro Alves <pedro@palves.net>
3332
3333 * progspace.c (print_program_space): Use all_inferiors. Switch to
3334 the inferior before calling target_pid_to_str.
3335
e0814aae
TT
33362020-08-28 Tom Tromey <tom@tromey.com>
3337
3338 * xcoffread.c (xcoff_end_psymtab): Update comment.
3339 * dbxread.c (dbx_end_psymtab): Update comment.
3340
626d2320
TV
33412020-08-28 Tom de Vries <tdevries@suse.de>
3342
3343 PR breakpoint/26544
3344 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3345 event_location.
3346 (create_breakpoint): Same.
3347 (base_breakpoint_decode_location): Same.
3348 (bkpt_create_sals_from_location): Same.
3349 (bkpt_decode_location): Same.
3350 (bkpt_probe_create_sals_from_location): Same.
3351 (bkpt_probe_decode_location): Same.
3352 (tracepoint_create_sals_from_location): Same.
3353 (tracepoint_decode_location): Same.
3354 (tracepoint_probe_decode_location): Same.
3355 (strace_marker_create_sals_from_location): Same.
3356 (strace_marker_decode_location): Same.
3357 (create_sals_from_location_default): Same.
3358 (decode_location_default): Same.
3359 * breakpoint.h (struct breakpoint_ops): Same.
3360 (create_breakpoint): Same.
3361 * linespec.h (decode_line_full): Same.
3362 * linespec.c (decode_line_full): Same. Throw error if
3363 result.size () == 0.
3364
df631783
PA
33652020-08-27 Pedro Alves <pedro@palves.net>
3366
3367 PR gdb/26524
3368 * breakpoint.c (until_break_fsm) <location_breakpoint,
3369 caller_breakpoint>: Delete fields.
3370 <breakpoints>: New field.
3371 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3372 two individual breakpoints.
3373 (until_break_fsm::should_stop): Loop over breakpoints in the
3374 breakpoint vector.
3375 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3376 vector.
3377 (until_break_command): Handle location expanding into multiple
3378 sals.
3379
b2b38aa4
PA
33802020-08-27 Pedro Alves <pedro@palves.net>
3381
3382 PR gdb/26523
3383 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3384 bp_until breakpoints user-specified locations. Update intro
3385 comment.
3386
b886559f
SM
33872020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3388
3389 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3390 gdb_bfd_sections): New.
3391 * maint.c (print_bfd_section_info): Change param type to
3392 maint_print_section_data.
3393 (print_objfile_section_info): Likewise.
3394 (print_bfd_section_info_maybe_relocated): Likewise.
3395 (maintenance_info_sections): Use gdb_bfd_sections.
3396
4c6e63bf
SV
33972020-08-25 Shahab Vahedi <shahab@synopsys.com>
3398
3399 * MAINTAINERS: Add ARC target and maintainer.
3400
8d7f0635
AK
34012020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3402
3403 * configure.tgt: ARC support for GNU/Linux.
3404 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3405 * arc-linux-tdep.c: New file.
3406 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3407 * arc-tdep.c (arc_write_pc): Use it.
3408
fdd8731b
SV
34092020-08-25 Shahab Vahedi <shahab@synopsys.com>
3410
3411 * arc-tdep.c (arc_check_for_hardware_loop): New.
3412 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3413
22459524
SV
34142020-08-25 Shahab Vahedi <shahab@synopsys.com>
3415
3416 * arc-tdep.h: Include "gdbarch.h".
3417
995d3a19
SV
34182020-08-25 Shahab Vahedi <shahab@synopsys.com>
3419
3420 * arch/arc.h
3421 (arc_gdbarch_features): New class to stir the selection of target XML.
3422 (arc_create_target_description): Use FEATURES to choose XML target.
3423 (arc_lookup_target_description): Use arc_create_target_description
3424 to create _new_ target descriptions or return the already created
3425 ones if the FEATURES is the same.
3426 * arch/arc.c: Implementation of prototypes described above.
3427 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3428 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3429 * arc-tdep.c (*_feature_name): Make feature names consistent.
3430 (arc_register_feature): A new struct to hold information about
3431 registers of a particular target/feature.
3432 (arc_check_tdesc_feature): Check if XML provides registers in
3433 compliance with ARC_REGISTER_FEATURE structs.
3434 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3435 (determine_*_reg_feature_set): Which feature name to look for.
3436 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3437 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3438 to expected ISA enums to be used in arc_gdbarch_features structs.
3439 * features/Makefile (FEATURE_XMLFILES): Add new files.
3440 * gdb/features/arc/v1-aux.c: New file.
3441 * gdb/features/arc/v1-aux.xml: Likewise.
3442 * gdb/features/arc/v1-core.c: Likewise.
3443 * gdb/features/arc/v1-core.xml: Likewise.
3444 * gdb/features/arc/v2-aux.c: Likewise.
3445 * gdb/features/arc/v2-aux.xml: Likewise.
3446 * gdb/features/arc/v2-core.c: Likewise.
3447 * gdb/features/arc/v2-core.xml: Likewise.
3448 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3449
3945d2d7
GM
34502020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3451 Andrew Burgess <andrew.burgess@embecosm.com>
3452
3453 PR m2/26372
fc5d6901 3454 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3455 an assert. Remove single element array indexing pattern as the
3456 MULTI_SUBSCRIPT support will handle this case too.
3457
2677f2d3
SM
34582020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3459
3460 * value.h (valprint_check_validity): Move declaration from
3461 here...
3462 * valprint.h (valprint_check_validity): ... to here.
3463
c426fddb
SM
34642020-08-24 Simon Marchi <simon.marchi@efficios.com>
3465
3466 * debug.h: New file.
3467 * debug.c (debug_prefixed_vprintf): New function.
3468 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3469 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3470
1eb8556f
SM
34712020-08-24 Simon Marchi <simon.marchi@efficios.com>
3472
3473 * infrun.h (infrun_debug_printf_1): New function declaration.
3474 (infrun_debug_printf): New macro.
3475 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3476 throughout.
3477 (infrun_debug_printf): New function.
3478 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3479 (handle_jit_event): Likewise.
3480
b8fff44e
MW
34812020-08-21 Mark Wielaard <mark@klomp.org>
3482
3483 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3484
d19c3068
SM
34852020-08-22 Simon Marchi <simon.marchi@efficios.com>
3486
3487 * frame.c (enum class frame_id_status): New.
3488 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3489 (fprintf_frame): Update.
3490 (compute_frame_id): Set frame id status to "computing" on entry.
3491 Set it back to "not_computed" on failure and to "computed" on
3492 success.
3493 (get_frame_id): Assert the frame id is not being computed.
3494 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3495 (create_new_frame): Likewise.
3496 (frame_cleanup_after_sniffer): Update assert.
3497
b70e516e
SM
34982020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3499
3500 * regcache.c (pid_ptid_regcache_map): New type.
3501 (target_ptid_regcache_map): Remove.
3502 (target_pid_ptid_regcache_map): New type.
3503 (regcaches): Change type to target_pid_ptid_regcache_map.
3504 (get_thread_arch_aspace_regcache): Update.
3505 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3506 case.
3507 (regcaches_size): Update.
3508 (regcache_count): Update.
3509 (registers_changed_ptid_target_pid_test): New.
3510 (_initialize_regcache): Register new test.
3511
cdd9148a
SM
35122020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3513
3514 * regcache.c (regcache_count): New.
3515 (struct regcache_test_data): New.
3516 (regcache_test_data_up): New.
3517 (populate_regcaches_for_test): New.
3518 (regcaches_test): Remove.
3519 (get_thread_arch_aspace_regcache_test): New.
3520 (registers_changed_ptid_all_test): New.
3521 (registers_changed_ptid_target_test): New.
3522 (registers_changed_ptid_target_ptid_test): New.
3523 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3524 (_initialize_regcache): Register new tests.
3525
dd125343
SM
35262020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3527
3528 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3529 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3530 gdbarch and aspace parameter. Use current inferior's aspace.
3531 Validate regcache's arch value.
3532 (regcaches_test): Update.
3533
3ee93972
SM
35342020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3535
3536 * regcache.c (regcaches_test): Call registers_changed.
3537
33bf4c5c
TBA
35382020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3539
3540 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3541
c2fd7fae
AKS
35422020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3543
3544 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3545 to find the end of prologue for flang compiled binaries.
3546 * arm-tdep.c (arm_skip_prologue): Likewise.
3547 * i386-tdep.c (i386_skip_prologue): Likewise.
3548 * producer.c (producer_is_llvm): New function.
3549 (producer_parsing_tests): Added new tests for clang/flang.
3550 * producer.h (producer_is_llvm): New declaration.
3551
9327494e
SM
35522020-08-18 Simon Marchi <simon.marchi@efficios.com>
3553
3554 * linux-nat.c (linux_nat_debug_printf): New function.
3555 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3556
d138725a
AM
35572020-08-18 Aaron Merey <amerey@redhat.com>
3558
3559 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3560 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3561 (CLIBS): Add DEBUGINFOD_LIBS.
3562
f9b11e6b
ST
35632020-08-17 Sergei Trofimovich <siarheit@google.com>
3564
3565 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3566 'gdbarch_num_regs'.
3567
3ae7ab99
TT
35682020-08-17 Tom Tromey <tromey@adacore.com>
3569
3570 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3571 ada_get_decoded_value returns NULL.
3572
b017825f
TT
35732020-08-17 Tom Tromey <tromey@adacore.com>
3574
3575 * python/py-inferior.c (infpy_search_memory): Use
3576 gdb_py_object_from_ulongest.
3577 * python/py-infevents.c (create_inferior_call_event_object)
3578 (create_memory_changed_event_object): Use
3579 gdb_py_object_from_ulongest.
3580 * python/py-linetable.c (ltpy_entry_get_pc): Use
3581 gdb_py_object_from_ulongest.
3582
7635cf79
SM
35832020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3584
3585 * loc.c (class symbol_needs_eval_context): Fix indentation.
3586
f54be24b
SM
35872020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3588
3589 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3590 bool.
3591
53d5a2a5
TV
35922020-08-17 Tom de Vries <tdevries@suse.de>
3593
3594 PR gdb/26393
3595 * gdbtypes.c (dump_dynamic_prop): New function.
3596 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3597
547ce8f0
TV
35982020-08-15 Tom de Vries <tdevries@suse.de>
3599
3600 PR backtrace/26390
3601 * stack.c (print_frame_args): Temporarily set the selected
3602 frame to FRAME while printing the frame's arguments.
3603
6ea815e7
PFC
36042020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3605
3606 PR breakpoints/26385
3607 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3608 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3609
6e562fa3
PFC
36102020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3611
3612 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3613 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3614 and >= to check return value instead of == -1 and != -1.
3615
d369b608
SM
36162020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3617
3618 * utils.h (class gdb_argv) <as_array_view>: New method.
3619 * utils.c (gdb_argv_as_array_view_test): New.
3620 (_initialize_utils): Register selftest.
3621 * maint.c (maintenance_selftest): Use the new method.
3622
b31488a3
KR
36232020-08-13 Kamil Rytarowski <n54@gmx.com>
3624
3625 * target.h (supports_dumpcore, dumpcore): New
3626 function declarations.
3627 * target.c (supports_dumpcore, dumpcore): New
3628 functions.
3629 * target-delegates.c: Rebuild.
3630 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3631 and target_dumpcore ().
3632
002a3166
AM
36332020-08-13 Aaron Merey <amerey@redhat.com>
3634
3635 * debuginfod-support.c: Replace global variables with user_data.
3636
ece5bc8a
SM
36372020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3638
3639 * maint.c (maintenance_selftest): Split args and pass array_view
3640 to run_tests.
3641
6d8a0a5e
LM
36422020-08-12 Luis Machado <luis.machado@linaro.org>
3643
3644 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3645 type's length.
3646 Use %s and pulongest to print the length.
3647
7cf663a9
PA
36482020-08-12 Pedro Alves <palves@redhat.com>
3649
3650 * NEWS: Move "Multi-target debugging support" item to the
3651 "Changes since GDB 9" section.
3652
27c7b875
PA
36532020-08-12 Pedro Alves <palves@redhat.com>
3654
3655 PR gdb/26336
3656 * progspace.c (program_space::remove_objfile): Invalidate the
3657 frame cache.
3658
1796a2a1
TV
36592020-08-11 Tom de Vries <tdevries@suse.de>
3660
3661 * MAINTAINERS: Mark ms1 as deleted.
3662
f8e3fe0d
LM
36632020-08-10 Luis Machado <luis.machado@linaro.org>
3664
3665 PR gdb/26310
3666
3667 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3668 act accordingly.
3669 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3670 movz/str/stur/stp skipping behavior.
3671
cc308722
LM
36722020-08-10 Luis Machado <luis.machado@linaro.org>
3673
3674 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3675 struct user_sve_header instead of struct sve_context.
3676
041d9819
SM
36772020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3678
3679 * read.h (dwarf2_fetch_die_loc_sect_off,
3680 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3681 `void *` parameter with function_view.
3682 * read.c (dwarf2_fetch_die_loc_sect_off,
3683 dwarf2_fetch_die_loc_cu_off): Likewise.
3684 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3685 (per_cu_dwarf_call): Adjust.
3686 (get_frame_address_in_block_wrapper): Remove.
3687 (indirect_synthetic_pointer): Adjust.
3688 (get_ax_pc): Remove.
3689 (dwarf2_compile_expr_to_ax): Adjust.
3690
38f8aa06
TV
36912020-08-08 Tom de Vries <tdevries@suse.de>
3692
3693 PR build/26344
3694 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3695 constructor.
3696 * regcache.c (get_thread_arch_aspace_regcache): Same.
3697
a52b3ae2
TT
36982020-08-07 Tom Tromey <tromey@adacore.com>
3699
3700 * ravenscar-thread.c
3701 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3702 New method.
3703 (ravenscar_thread_target::wait): Check
3704 runtime_initialized.
3705 (ravenscar_thread_target::prepare_to_store)
3706 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3707 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3708 (ravenscar_thread_target::stopped_by_watchpoint)
3709 (ravenscar_thread_target::stopped_data_address)
3710 (ravenscar_thread_target::core_of_thread): Use
3711 scoped_restore_current_thread and
3712 set_base_thread_from_ravenscar_task.
3713
0e29517d
TT
37142020-08-07 Tom Tromey <tromey@adacore.com>
3715
3716 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3717
592f9bd7
TT
37182020-08-07 Tom Tromey <tromey@adacore.com>
3719
3720 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3721 update_inferior_ptid before update_thread_list.
3722 (temporarily_change_regcache_ptid): New class.
3723 (ravenscar_thread_target::fetch_registers)
3724 (ravenscar_thread_target::store_registers)
3725 (ravenscar_thread_target::prepare_to_store): Use base thread when
3726 forwarding operation.
3727
39e2018a
TT
37282020-08-07 Tom Tromey <tromey@adacore.com>
3729
3730 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3731 "is_pid" case.
3732
2080266b
TT
37332020-08-07 Tom Tromey <tromey@adacore.com>
3734
3735 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3736 New methods.
3737 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3738 first.
3739 (ravenscar_thread_target::add_thread): Rename from
3740 ravenscar_add_thread.
3741 (ravenscar_thread_target::update_thread_list): Use a lambda.
3742 (ravenscar_thread_target::xfer_partial): New method.
3743
78c02f21
TT
37442020-08-07 Tom Tromey <tromey@adacore.com>
3745
3746 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3747 gdb::function_view.
3748 (iterate_over_live_ada_tasks): Change type of argument.
3749 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3750 of argument.
3751
d5d833af
TT
37522020-08-07 Tom Tromey <tromey@adacore.com>
3753
3754 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3755 Remove.
3756 (ravenscar_thread_target::extra_thread_info): Remove.
3757 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3758 defer to target beneath for non-Ravenscar threads.
3759
a8ac85bb
TT
37602020-08-07 Tom Tromey <tromey@adacore.com>
3761
3762 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3763 get_base_thread_from_ravenscar_task>: Now methods.
3764 <m_cpu_map>: New member.
3765 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3766 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3767 (ravenscar_thread_target::task_is_currently_active): Update.
3768 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3769 Now a method.
3770 (ravenscar_thread_target::add_active_thread): Put initial thread
3771 into the m_cpu_map.
3772
550ab58d
TT
37732020-08-07 Tom Tromey <tromey@adacore.com>
3774
3775 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3776 event_ptid.
3777
e9546579
TT
37782020-08-07 Tom Tromey <tromey@adacore.com>
3779
3780 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3781 runtime_initialized.
3782
3d4470e5
TT
37832020-08-07 Tom Tromey <tromey@adacore.com>
3784
3785 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3786 add_active_thread.
3787 (ravenscar_thread_target::add_active_thread): Now public.
3788 (ravenscar_inferior_created): Call add_active_thread after pushing
3789 the target.
3790
888bdb2b
SM
37912020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3792
3793 * regcache.c (ptid_regcache_map): New type.
3794 (target_ptid_regcache_map): New type.
3795 (regcaches): Change type to target_ptid_regcache_map.
3796 (get_thread_arch_aspace_regcache): Update to regcaches' new
3797 type.
3798 (regcache_thread_ptid_changed): Likewise.
3799 (registers_changed_ptid): Likewise.
3800 (regcaches_size): Likewise.
3801 (regcaches_test): Update.
3802 (regcache_thread_ptid_changed): Update.
3803 * regcache.h (regcache_up): New type.
3804 * gdbsupport/ptid.h (hash_ptid): New struct.
3805
b161a60d
SM
38062020-08-07 Simon Marchi <simon.marchi@efficios.com>
3807
3808 * observable.h (thread_ptid_changed): Add parameter
3809 `process_stratum_target *`.
3810 * infrun.c (infrun_thread_ptid_changed): Add parameter
3811 `process_stratum_target *` and use it.
3812 (selftests): New namespace.
3813 (infrun_thread_ptid_changed): New function.
3814 (_initialize_infrun): Register selftest.
3815 * regcache.c (regcache_thread_ptid_changed): Add parameter
3816 `process_stratum_target *` and use it.
3817 (regcache_thread_ptid_changed): New function.
3818 (_initialize_regcache): Register selftest.
3819 * thread.c (thread_change_ptid): Pass target to
3820 thread_ptid_changed observable.
3821
d2854d8d
CT
38222020-08-06 Caroline Tice <cmtice@google.com>
3823
fe4c3d43
SM
3824 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3825 (struct dwp_sections): Update field comments. Add loclists and
3826 rnglists fields.
3827 (struct virtual_v2_dwo_sections): Rename struct to
3828 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3829 size & offset fields for loclists and rnglists.
3830 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3831 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3832 skipping dummy type units.
3833 (create_dwp_hash_table): Update the large comment above the function to
3834 discuss Version 5 DWP files as well, with references. Update all the
3835 version checks in the function to check for version 5 as well. Add new
3836 section at the end to create dwp hash table for version 5.
3837 (create_dwp_v2_section): Rename function to
3838 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3839 Add V5 to error message text.
3840 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3841 into calls to create_dwp_v2_or_v5_section.
3842 (create_dwo_unit_in_dwp_v5): New function.
3843 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3844 check for version2; add else clause to handle version 5.
3845 (open_and_init_dwo_file): Add code to check dwarf version & only call
3846 create_debug_types_hash_table (with sections.types) if version is not 5;
3847 else call create_debug_type_hash_table, with sections.info.
3848 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3849 version 5.
3850 (dwarf2_locate_v5_dwp_sections): New function.
3851 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3852 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3853
159ed7d9
SM
38542020-08-06 Simon Marchi <simon.marchi@efficios.com>
3855
3856 * regcache.h (class regcache): Remove friend
3857 registers_changed_ptid.
3858 <regcache_thread_ptid_changed>: Remove.
3859 <regcaches>: Remove.
3860 * regcache.c (regcache::regcaches): Rename to...
3861 (regcaches): ... this. Make static.
3862 (get_thread_arch_aspace_regcache): Update.
3863 (regcache::regcache_thread_ptid_changed): Rename to...
3864 (regcache_thread_ptid_changed): ... this. Update.
3865 (class regcache_access): Remove.
3866 (regcaches_test): Update.
3867 (_initialize_regcache): Update.
3868 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3869 <forward_list>.
3870
174981ae
SM
38712020-08-06 Simon Marchi <simon.marchi@efficios.com>
3872
3873 * regcache.h (class regcache) <current_regcache>: Rename to...
3874 <regcaches>: ... this. Move doc here.
3875 * regcache.c (regcache::current_regcache) Rename to...
3876 (regcache::regcaches): ... this. Move doc to header.
3877 (get_thread_arch_aspace_regcache): Update.
3878 (regcache::regcache_thread_ptid_changed): Update.
3879 (registers_changed_ptid): Update.
3880 (class regcache_access) <current_regcache_size>: Rename to...
3881 <regcaches_size>: ... this.
3882 (current_regcache_test): Rename to...
3883 (regcaches_test): ... this.
3884 (_initialize_regcache): Update.
3885
ed908db6
VC
38862020-08-06 Victor Collod <vcollod@nvidia.com>
3887
3888 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3889
b5582ab7
KB
38902020-08-05 Kevin Buettner <kevinb@redhat.com>
3891
3892 * corelow.c (core_target::build_file_mappings): Don't output
3893 null pathname in warning.
3894
ea946b86
SM
38952020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3896
3897 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3898 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3899 gdb.dwarf2/dw2-single-line-discriminators.exp,
3900 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3901
57d02173
TT
39022020-08-05 Tom Tromey <tromey@adacore.com>
3903
3904 PR rust/26197:
3905 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3906 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3907 Fix off-by-one and type size errors in ordinary case.
3908
5555c86d
TV
39092020-08-05 Tom de Vries <tdevries@suse.de>
3910
3911 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3912 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3913
97916bfe
SM
39142020-08-04 Simon Marchi <simon.marchi@efficios.com>
3915
3916 * frame.h (frame_id_p): Return bool.
3917 (frame_id_artificial_p): Return bool.
3918 (frame_id_eq): Return bool.
3919 (has_stack_frames): Return bool.
3920 (get_selected_frame): Fix typo in comment.
3921 (get_frame_pc_if_available): Return bool.
3922 (get_frame_address_in_block_if_available): Return bool.
3923 (get_frame_func_if_available): Return bool.
3924 (read_frame_register_unsigned): Return bool.
3925 (get_frame_register_bytes): Return bool.
3926 (safe_frame_unwind_memory): Return bool.
3927 (deprecated_frame_register_read): Return bool.
3928 (frame_unwinder_is): Return bool.
3929 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3930 bool.
3931 <this_id::p>: Likewise.
3932 <prev_p>: Likewise.
3933 (frame_stash_add): Return bool.
3934 (get_frame_id): Use bool.
3935 (frame_id_build_special) Use bool.
3936 (frame_id_build_unavailable_stack): Use bool.
3937 (frame_id_build): Use bool.
3938 (frame_id_p): Return bool, use true/false instead of 1/0.
3939 (frame_id_artificial_p): Likewise.
3940 (frame_id_eq): Likewise.
3941 (frame_id_inner): Likewise.
3942 (get_frame_func_if_available): Likewise.
3943 (read_frame_register_unsigned): Likewise.
3944 (deprecated_frame_register_read): Likewise.
3945 (get_frame_register_bytes): Likewise.
3946 (has_stack_frames): Likewise.
3947 (inside_main_func): Likewise.
3948 (inside_entry_func): Likewise.
3949 (get_frame_pc_if_available): Likewise.
3950 (get_frame_address_in_block_if_available): Likewise.
3951 (frame_unwinder_is): Likewise.
3952 (safe_frame_unwind_memory): Likewise.
3953 (frame_unwind_arch): Likewise.
3954
fedfee88
SM
39552020-08-04 Simon Marchi <simon.marchi@efficios.com>
3956
3957 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3958 type to cached_copy_status.
3959 (fprintf_frame): Adjust.
3960 (get_frame_func_if_available): Adjust.
3961 (frame_cleanup_after_sniffer): Adjust.
3962
6cfa9b59
MW
39632020-08-04 Mark Wielaard <mark@klomp.org>
3964
3965 * MAINTAINERS (Write After Approval): Update email address.
3966
66d6346b
SM
39672020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3968
3969 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3970 dynamic_prop::const_val.
3971
8a6d5e35
SM
39722020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3973
3974 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3975 dynamic_prop::kind.
3976
51d6067d
SM
39772020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3978
3979 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3980
b26e2ae7
JM
39812020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3982
3983 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3984
39791af2
JM
39852020-08-04 Weimin Pan <weimin.pan@oracle.com>
3986 Jose E. Marchesi <jose.marchesi@oracle.com>
3987
3988 * configure.tgt: Add entry for bpf-*-*.
3989 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3990 (ALLDEPFILES): Add bpf-tdep.c.
3991 * bpf-tdep.c: New file.
3992 * MAINTAINERS: Add bpf target and maintainer.
3993 * NEWS: Mention the support for the new target.
3994
521894aa
TV
39952020-08-04 Tom de Vries <tdevries@suse.de>
3996
3997 PR symtab/23270
3998 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3999 Error.
4000
5d6356e9
JB
40012020-08-03 John Baldwin <jhb@FreeBSD.org>
4002
4003 * syscalls/freebsd.xml: Regenerate.
4004
0cf82b81
JB
40052020-08-03 John Baldwin <jhb@FreeBSD.org>
4006
4007 * syscalls/update-freebsd.sh: Fix usage and year range.
4008
8f34b746
TV
40092020-08-03 Tom de Vries <tdevries@suse.de>
4010
4011 PR symtab/26333
4012 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4013 DW_LNE_lo_user/DW_LNE_hi_user range.
4014
5e500d33
SM
40152020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4016
4017 PR ada/26318
4018 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4019 kind.
4020
78319c15
TBA
40212020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4022
4023 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4024
4c55e970
TBA
40252020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4026
4027 * breakpoint.c (set_breakpoint_condition): Update the condition
4028 expressions after checking that the input condition string parses
4029 successfully and does not contain junk at the end.
4030
1e620590
TBA
40312020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4032
4033 * breakpoint.c (set_breakpoint_condition): Update the
4034 condition string after parsing the new condition successfully.
4035
c8693053
RO
40362020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4037
4038 * proc-api.c (_STRUCTURED_PROC): Don't define.
4039 * proc-events.c: Likewise.
4040 * proc-flags.c: Likewise.
4041 * proc-why.c: Likewise.
4042 * procfs.c: Likewise.
4043
4044 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4045 * configure, config.in: Regenerate.
4046
5a99adb8
TV
40472020-07-30 Tom de Vries <tdevries@suse.de>
4048
4049 PR build/26320
4050 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4051 m_red/m_green/m_blue in a union.
4052
8ba83e91
TV
40532020-07-29 Tom de Vries <tdevries@suse.de>
4054
4055 PR tdep/26280
4056 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4057
f75a0693
AB
40582020-07-28 Tom Tromey <tromey@adacore.com>
4059
4060 PR symtab/26270:
4061 * symtab.h (find_pc_partial_function_sym): Declare.
4062 * cli/cli-cmds.c (disassemble_command): Use
4063 find_pc_partial_function_sym. Check asm_demangle.
4064 * blockframe.c (cache_pc_function_sym): New global.
4065 (cache_pc_function_name): Remove.
4066 (clear_pc_function_cache): Update.
4067 (find_pc_partial_function_sym): New function, from
4068 find_pc_partial_function.
4069 (find_pc_partial_function): Rewrite using
4070 find_pc_partial_function_sym.
4071
16f3242c
TT
40722020-07-28 Tom Tromey <tromey@adacore.com>
4073
4074 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4075 help. Add usage.
4076
4888741a
TT
40772020-07-28 Tom Tromey <tromey@adacore.com>
4078
4079 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4080 <DW_OP_GNU_variable_value>: Cast to address type.
4081
4d46f402
KR
40822020-07-28 Kamil Rytarowski <n54@gmx.com>
4083
4084 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4085 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4086 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4087 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4088 (nbsd_get_siginfo_type): New.
4089 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4090 (_initialize_nbsd_tdep): New.
4091
d70f978b
L
40922020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4093
4094 PR binutils/26301
4095 * configure: Regenerated.
4096
377170fa
L
40972020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4098
4099 PR binutils/26301
4100 * configure: Regenerated.
4101
43d5901d
AB
41022020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4103
4104 * python/py-frame.c: Remove 'user-regs.h' include.
4105 (frapy_read_register): Rewrite to make use of
4106 gdbpy_parse_register_id.
4107 * python/py-registers.c (gdbpy_parse_register_id): New function,
4108 moved here from python/py-unwind.c. Updated the return type, and
4109 also accepts register descriptor objects.
4110 * python/py-unwind.c: Remove 'user-regs.h' include.
4111 (pyuw_parse_register_id): Moved to python/py-registers.c.
4112 (unwind_infopy_add_saved_register): Update to use
4113 gdbpy_parse_register_id.
4114 (pending_framepy_read_register): Likewise.
4115 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4116
14fa8fb3
AB
41172020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4118
4119 * python/py-registers.c: Add 'user-regs.h' include.
4120 (register_descriptor_iter_find): New function.
4121 (register_descriptor_iterator_object_methods): New static global
4122 methods array.
4123 (register_descriptor_iterator_object_type): Add pointer to methods
4124 array.
4125
ddce1758
JB
41262020-07-27 John Baldwin <jhb@FreeBSD.org>
4127
4128 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4129 for all architectures on FreeBSD 11.3 and later.
4130
a4089f52
TT
41312020-07-27 Tom Tromey <tromey@adacore.com>
4132
4133 * gcore.h (load_corefile): Don't declare.
4134
95420d30
TV
41352020-07-27 Tom de Vries <tdevries@suse.de>
4136
4137 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4138 * config.in: Regenerate.
4139 * configure: Regenerate.
4140
05a6b8c2
EZ
41412020-07-26 Eli Zaretskii <eliz@gnu.org>
4142
4143 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4144 ws2tcpip.h. When checking whether socklen_t type is defined, use
4145 ws2tcpip.h if it is available and sys/socket.h isn't.
4146 * configure: Regenerate.
4147 * config.in: Regenerate.
4148
e79eb02f
AB
41492020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4150
4151 PR fortran/23051
4152 PR fortran/26139
4153 * valops.c (value_ind): Pass address to
4154 readjust_indirect_value_type.
4155 * value.c (readjust_indirect_value_type): Make parameter
4156 non-const, and add extra address parameter. Resolve original type
4157 before using it.
4158 * value.h (readjust_indirect_value_type): Update function
4159 signature and comment.
4160
876518dd
TV
41612020-07-25 Tom de Vries <tdevries@suse.de>
4162
4163 PR symtab/26243
4164 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4165 entries.
4166
f6720b1c
AM
41672020-07-24 Aaron Merey <amerey@redhat.com>
4168
4169 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4170 * configure: Rebuild.
4171
513487e1
KB
41722020-07-23 Kevin Buettner <kevinb@redhat.com>
4173
4174 PR corefiles/26294
4175 * corelow.c (_initialize_corelow): Add period to help text
4176 for "maintenance print core-file-backed-mappings".
4177
e7bc9db8
PA
41782020-07-23 Pedro Alves <pedro@palves.net>
4179
4180 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4181 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4182 meanwhile.
4183 * frame.c (frame_cache_generation, get_frame_cache_generation):
4184 New.
4185 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4186 (get_prev_frame_if_no_cycle): On exception, don't touch
4187 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4188 * frame.h (get_frame_cache_generation): Declare.
4189
90fcc466
TV
41902020-07-23 Tom de Vries <tdevries@suse.de>
4191
4192 PR tui/26282
4193 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4194 New default constructor.
4195
78344df7
AB
41962020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4197
4198 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4199 exclude non-statement entries.
4200
b089853a
KB
42012020-07-22 Kevin Buettner <kevinb@redhat.com>
4202
4203 * NEWS (New commands): Mention new command
4204 "maintenance print core-file-backed-mappings".
4205
09c2f5d4
KB
42062020-07-22 Kevin Buettner <kevinb@redhat.com>
4207
4208 * corelow.c (gdbcmd.h): Include.
4209 (core_target::info_proc_mappings): New method.
4210 (get_current_core_target): New function.
4211 (maintenance_print_core_file_backed_mappings): New function.
4212 (_initialize_corelow): Add core-file-backed-mappings to
4213 "maint print" commands.
4214
9c5ec5c2 42152020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 4216
9c5ec5c2
KB
4217 * linux-tdep.c (dump_note_entry_p): New function.
4218 (linux_dump_mapping_p_ftype): New typedef.
4219 (linux_find_memory_regions_full): Add new parameter,
4220 should_dump_mapping_p.
4221 (linux_find_memory_regions): Adjust call to
4222 linux_find_memory_regions_full.
4223 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4224 call to linux_find_memory_regions_full.
4225
db082f59
KB
42262020-07-22 Kevin Buettner <kevinb@redhat.com>
4227
4228 * corelow.c (solist.h, unordered_map): Include.
4229 (class core_target): Add field m_core_file_mappings and
4230 method build_file_mappings.
4231 (core_target::core_target): Call build_file_mappings.
4232 (core_target::~core_target): Free memory associated with
4233 m_core_file_mappings.
4234 (core_target::build_file_mappings): New method.
4235 (core_target::xfer_partial): Use m_core_file_mappings
4236 for memory transfers.
4237 * linux-tdep.c (linux_read_core_file_mappings): New
4238 function.
4239 (linux_core_info_proc_mappings): Rewrite to use
4240 linux_read_core_file_mappings.
4241 (linux_init_abi): Register linux_read_core_file_mappings.
4242
7e183d27
KB
42432020-07-22 Kevin Buettner <kevinb@redhat.com>
4244
4245 * arch-utils.c (default_read_core_file_mappings): New function.
4246 * arch-utils.c (default_read_core_file_mappings): Declare.
4247 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4248 * gdbarch.h, gdbarch.c: Regenerate.
4249
2735d421
KB
42502020-07-22 Kevin Buettner <kevinb@redhat.com>
4251
4252 PR corefiles/25631
4253 * corelow.c (core_target:xfer_partial): Revise
4254 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4255 case after first checking the stratum beneath the core
4256 target.
4257 (has_all_memory): Return true.
4258 * target.c (raw_memory_xfer_partial): Revise comment
4259 regarding use of has_all_memory.
4260
e56cb451
KB
42612020-07-22 Kevin Buettner <kevinb@redhat.com>
4262
4263 * exec.h (section_table_xfer_memory): Revise declaration,
4264 replacing section name parameter with an optional callback
4265 predicate.
4266 * exec.c (section_table_xfer_memory): Likewise.
4267 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4268 of section_table_xfer_memory.
4269
32fa152e
TT
42702020-07-22 Tom Tromey <tromey@adacore.com>
4271
4272 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4273 lookup_symbol_search_name.
4274
a67a1c41
AB
42752020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4276
4277 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4278 redundant local variable.
4279 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4280 reference, not pointer, update code accordingly.
4281
a7b4ff4f
SM
42822020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4283 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4284
4285 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4286 * jit.c (jit_breakpoint_re_set_internal): Use the
4287 `skip_jit_symbol_lookup` field.
4288
2340e834
SM
42892020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4290 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4291
4292 * jit.c (jit_read_descriptor): Define the descriptor address once,
4293 use twice.
4294 (jit_breakpoint_deleted): Move the declaration of the loop variable
4295 `iter` into the loop header.
4296 (jit_breakpoint_re_set_internal): Move the declaration of the local
4297 variable `objf_data` to the first point of definition.
4298 (jit_event_handler): Move the declaration of local variables
4299 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4300 Rename `objf` to `jited`.
4301
c1072906
SM
43022020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4303
4304 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4305 Remove.
4306 * jit.c (get_jiter_objfile_data): Update.
4307
c8474dc3
TBA
43082020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4309 Simon Marchi <simon.marchi@polymtl.ca>
4310
4311 * jit.c (struct jit_program_space_data): Remove.
4312 (jit_program_space_key): Remove.
4313 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4314 stuff.
4315 (get_jit_program_space_data): Remove.
4316 (jit_breakpoint_deleted): Iterate on all of the program space's
4317 objfiles.
4318 (jit_inferior_init): Likewise.
4319 (jit_breakpoint_re_set_internal): Likewise. Also change return
4320 type to void.
4321 (jit_breakpoint_re_set): Pass current_program_space to
4322 jit_breakpoint_re_set_internal.
4323
77208eb7
SM
43242020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4325
4326 * jit.h (struct jiter_objfile_data) <cached_code_address,
4327 jit_breakpoint>: Move to here from ...
4328 * jit.c (jit_program_space_data): ... here.
4329 (jiter_objfile_data::~jiter_objfile_data): Update.
4330 (jit_breakpoint_deleted): Update.
4331 (jit_breakpoint_re_set_internal): Update.
4332
8c1c720f
SM
43332020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4334
4335 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4336 checks.
4337 (jit_read_descriptor): Remove NULL check.
4338 (jit_event_handler): Add an assertion.
4339
0e74a041
SM
43402020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4341
4342 * jit.h (struct jit_objfile_data): Split into...
4343 (struct jiter_objfile_data): ... this ...
4344 (struct jited_objfile_data): ... and this.
4345 * objfiles.h (struct objfile) <jit_data>: Remove.
4346 <jiter_data, jited_data>: New fields.
4347 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4348 (jiter_objfile_data::~jiter_objfile_data): ... this.
4349 (get_jit_objfile_data): Rename to ...
4350 (get_jiter_objfile_data): ... this.
4351 (add_objfile_entry): Update.
4352 (jit_read_descriptor): Use get_jiter_objfile_data.
4353 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4354 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4355 (jit_inferior_exit_hook): Use objfile's jited_data field.
4356
238b5c9f
SM
43572020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4358
4359 * jit.h: Forward-declare `struct minimal_symbol`.
4360 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4361 constructor, destructor, and an objfile* field.
4362 * jit.c (jit_objfile_data): Remove.
4363 (struct jit_objfile_data): Migrate from here to jit.h.
4364 (jit_objfile_data::~jit_objfile_data): New destructor
4365 implementation with code moved from free_objfile_data.
4366 (free_objfile_data): Delete.
4367 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4368 (jit_find_objf_with_entry_addr): Ditto.
4369 (jit_inferior_exit_hook): Ditto.
4370 (_initialize_jit): Remove the call to
4371 register_objfile_data_with_cleanup.
4372 * objfiles.h (struct objfile) <jit_data>: New field.
4373
fe053b9e
TBA
43742020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4375
4376 * jit.h: Forward-declare `struct objfile`.
4377 (jit_event_handler): Add a second parameter, the JITer objfile.
4378 * jit.c (jit_read_descriptor): Change the signature to take the
4379 JITer objfile as an argument instead of the jit_program_space_data.
4380 (jit_inferior_init): Update the call to jit_read_descriptor.
4381 (jit_event_handler): Use the new JITer objfile argument when calling
4382 jit_read_descriptor.
4383 * breakpoint.c (handle_jit_event): Update the call to
4384 jit_event_handler to pass the JITer objfile.
4385
4cec0c66
JB
43862020-07-21 John Baldwin <jhb@FreeBSD.org>
4387
4388 * gdbarch.c: Regenerate.
4389 * gdbarch.h: Regenerate.
4390 * gdbarch.sh (handle_segmentation_fault): Remove method.
4391 * infrun.c (handle_segmentation_fault): Remove.
4392 (print_signal_received_reason): Remove call to
4393 handle_segmentation_fault.
4394
0e42f66a
JB
43952020-07-21 John Baldwin <jhb@FreeBSD.org>
4396
4397 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4398 Rename to sparc64_linux_report_signal_info and add siggnal
4399 argument.
4400 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4401 instead of sparc64_linux_handle_segmentation_fault.
4402
77bdfeb2
JB
44032020-07-21 John Baldwin <jhb@FreeBSD.org>
4404
4405 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4406 i386_linux_report_signal_info instead of
4407 i386_linux_handle_segmentation_fault.
4408 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4409 to i386_linux_report_signal_info and add siggnal argument.
4410 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4411 of i386_linux_handle_segmentation_fault.
4412 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4413 to i386_linux_report_signal_info and add siggnal argument.
4414
ad97bfc5
JB
44152020-07-21 John Baldwin <jhb@FreeBSD.org>
4416
4417 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4418 hook if present.
4419
272bb05c
JB
44202020-07-21 John Baldwin <jhb@FreeBSD.org>
4421
4422 * gdbarch.c: Regenerate.
4423 * gdbarch.h: Regenerate.
4424 * gdbarch.sh (report_signal_info): New method.
4425 * infrun.c (print_signal_received_reason): Invoke gdbarch
4426 report_signal_info hook if present.
4427
baf8791e
AB
44282020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4429
4430 * python/py-registers.c : Add 'unordered_map' include.
4431 (gdbpy_new_reggroup): Renamed to...
4432 (gdbpy_get_reggroup): ...this. Update to only create register
4433 group descriptors when needed.
4434 (gdbpy_reggroup_iter_next): Update.
4435
f7306dac
AB
44362020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4437
4438 * python/py-registers.c (gdbpy_register_object_data): New static
4439 global.
4440 (gdbpy_register_object_data_init): New function.
4441 (gdbpy_new_register_descriptor): Renamed to...
4442 (gdbpy_get_register_descriptor): ...this, and update to reuse
4443 existing register descriptors where possible.
4444 (gdbpy_register_descriptor_iter_next): Update.
4445 (gdbpy_initialize_registers): Register new gdbarch data.
4446
05c309a8
SM
44472020-07-21 Simon Marchi <simon.marchi@efficios.com>
4448
4449 * linux-nat.c (stopped_pids): Make static.
4450
d1fd641e
SM
44512020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4452
4453 PR ada/26235
4454 * gdbtypes.c (ada_discrete_type_low_bound,
4455 ada_discrete_type_high_bound): Handle undefined bounds.
4456
1de14d77
KR
44572020-07-21 Kamil Rytarowski <n54@gmx.com>
4458
4459 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4460 declaration.
4461 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4462 function.
4463
ed810cc7
JB
44642020-07-20 John Baldwin <jhb@FreeBSD.org>
4465
4466 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4467 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4468 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4469 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4470 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4471 method.
4472
ae5369e7
LC
44732020-07-20 Ludovic Courtès <ludo@gnu.org>
4474
4475 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4476 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4477 which are deprecated in Guile 3.0.
4478 * configure.ac (try_guile_versions): Add "guile-3.0".
4479 * configure (try_guile_versions): Regenerate.
4480 * NEWS: Update entry.
4481
68cf161c
LC
44822020-07-20 Ludovic Courtès <ludo@gnu.org>
4483 Doug Evans <dje@google.com>
4484
4485 PR gdb/21104
4486 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4487 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4488 USING_GUILE_BEFORE_2_2.
4489 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4490 Change type to 'scm_t_port_type *'.
4491 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4492 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4493 parameter and honor it. Update callers.
4494 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4495 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4496 functions.
4497 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4498 USING_GUILE_BEFORE_2_2.
4499 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4500 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4501 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4502 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4503 and 'SCM_PORT_TYPE'.
4504 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4505 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4506 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4507 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4508 [!USING_GUILE_BEFORE_2_2]: New functions.
4509 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4510 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4511 'gdbscm_memory_port_read'.
4512 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4513 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4514 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4515 function.
4516 (ioscm_init_memory_port): Remove.
4517 (ioscm_init_memory_port_stream): New function
4518 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4519 function.
4520 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4521 Return scm_from_uint (0).
4522 (gdbscm_set_memory_port_read_buffer_size_x)
4523 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4524 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4525 Return scm_from_uint (0).
4526 (gdbscm_set_memory_port_write_buffer_size_x)
4527 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4528 * configure.ac (try_guile_versions): Add "guile-2.2".
4529 * configure: Regenerate.
4530 * NEWS: Add entry.
4531
aee91db3
TT
45322020-07-18 Tom Tromey <tom@tromey.com>
4533
4534 * linux-nat.c (linux_multi_process): Remove.
4535 (linux_nat_target::supports_multi_process): Return true.
4536
0e267416
AB
45372020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4538
4539 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4540 (riscv_lookup_target_description): Return pointer out of
4541 unique_ptr.
4542 * target-descriptions.c (allocate_target_description): Add
4543 comment.
4544 (target_desc_deleter::operator()): Likewise.
4545 * target-descriptions.h (struct target_desc_deleter): Moved to
4546 gdbsupport/tdesc.h.
4547 (target_desc_up): Likewise.
4548
f80c8ec4
TT
45492020-07-17 Tom Tromey <tromey@adacore.com>
4550
4551 * linux-nat.c (linux_nat_target::supports_non_stop)
4552 (linux_nat_target::always_non_stop_p): Use "true".
4553 (linux_nat_target::supports_disable_randomization): Use "true" and
4554 "false".
4555
d0ce17d8
CT
45562020-07-16 Caroline Tice <cmtice@google.com>
4557
4558 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4559 (RNGLIST_HEADER_SIZE64): New constant definition.
4560 (struct dwop_section_names): Add rnglists_dwo.
4561 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4562 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4563 (struct dwo_sections): Add rnglists field.
4564 (read_attribut_reprocess): Add tag parameter.
4565 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4566 (cu_debug_rnglists_section): New function (decl & definition).
4567 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4568 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4569 die whose range is being checked; get rnglist section from
4570 cu_debug_rnglists_section, to get from either objfile or dwo file as
4571 appropriate. Add cases for DW_RLE_base_addressx,
4572 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4573 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4574 test inside if-condition and updating complaint message.
4575 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4576 dwarf2_rnglists_process.
4577 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4578 dwarf2_ranges_process.
4579 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4580 need_ranges_base and update comment appropriately. Also pass die tag
4581 to dwarf2_ranges_read.
4582 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4583 need_ranges_base and update comment appropriately. Also pass die tag
4584 to dwarf2_ranges_process.
4585 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4586 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4587 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4588 need_ranges_base and update comment appropriately. Also pass die tag
4589 to read_attribute_reprocess and dwarf2_ranges_read.
4590 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4591 and update function comment appropriately.
4592 (read_loclist_index): Call read_loclists_rnglists_header instead of
4593 read_loclist_header.
4594 (read_rnglist_index): New function.
4595 (read_attribute_reprocess): Add tag parameter. Add code for
4596 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4597 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4598
3dcc261c
AB
45992020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4600
4601 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4602 being resolved.
4603
ccb9eba6
AB
46042020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4605
4606 * arch-utils.c (show_architecture): Update formatting of messages.
4607
cf88be68
SM
46082020-07-12 Simon Marchi <simon.marchi@efficios.com>
4609
4610 * gdbtypes.h (struct type) <bounds>: Handle array and string
4611 types.
4612 * ada-lang.c (assign_aggregate): Use type::bounds on
4613 array/string type.
4614 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4615 * c-varobj.c (c_number_of_children): Likewise.
4616 (c_describe_child): Likewise.
4617 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4618 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4619 (f_type_print_base): Likewise.
4620 * f-valprint.c (f77_array_offset_tbl): Likewise.
4621 (f77_get_upperbound): Likewise.
4622 (f77_print_array_1): Likewise.
4623 * guile/scm-type.c (gdbscm_type_range): Likewise.
4624 * m2-typeprint.c (m2_array): Likewise.
4625 (m2_is_long_set_of_type): Likewise.
4626 * m2-valprint.c (get_long_set_bounds): Likewise.
4627 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4628 * python/py-type.c (typy_range): Likewise.
4629 * rust-lang.c (rust_internal_print_type): Likewise.
4630 * type-stack.c (type_stack::follow_types): Likewise.
4631 * valarith.c (value_subscripted_rvalue): Likewise.
4632 * valops.c (value_cast): Likewise.
4633
509971ae
SM
46342020-07-12 Simon Marchi <simon.marchi@efficios.com>
4635
4636 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4637 callers to use the equivalent accessor methods.
4638
107406b7
SM
46392020-07-12 Simon Marchi <simon.marchi@efficios.com>
4640
4641 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4642 (struct type) <bit_stride>: New method.
4643 (TYPE_BIT_STRIDE): Remove.
4644 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4645
bb789949
SM
46462020-07-12 Simon Marchi <simon.marchi@efficios.com>
4647
4648 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4649 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4650 callers to use the equivalent accessor methods instead.
4651
39498edb
SM
46522020-07-12 Simon Marchi <simon.marchi@efficios.com>
4653
4654 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4655 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4656 callers to use the equivalent accessor methods instead.
4657
3b606f38
SM
46582020-07-12 Simon Marchi <simon.marchi@efficios.com>
4659
4660 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4661 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4662 to use dynamic_prop::kind.
4663
064d9cb9
SM
46642020-07-12 Simon Marchi <simon.marchi@efficios.com>
4665
4666 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4667 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4668 to get the bound property's kind and check against
4669 PROP_UNDEFINED.
4670
5537ddd0
SM
46712020-07-12 Simon Marchi <simon.marchi@efficios.com>
4672
4673 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4674 all callers to use type::range_bounds followed by
4675 dynamic_prop::{low,high}.
4676
8c2e4e06
SM
46772020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4678
4679 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4680 const_val, set_const_val, baton, set_locexpr, set_loclist,
4681 set_addr_offset, variant_parts, set_variant_parts,
4682 original_type, set_original_type>: New methods.
4683 <kind>: Rename to...
4684 <m_kind>: ... this. Update all users to use the new methods
4685 instead.
4686 <data>: Rename to...
4687 <m_data>: ... this. Update all users to use the new methods
4688 instead.
4689
7c6f2712
SM
46902020-07-12 Simon Marchi <simon.marchi@efficios.com>
4691
4692 * gdbtypes.c (get_discrete_bounds): Return failure if
4693 the range type's bounds are not both defined and constant
4694 values.
4695 (get_array_bounds): Update comment. Remove undefined bound check.
4696
599088e3
SM
46972020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4698
4699 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4700 the type::bounds method directly.
4701
c4dfcb36
SM
47022020-07-12 Simon Marchi <simon.marchi@efficios.com>
4703
4704 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4705 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4706 are used to set the range type's bounds to use set_bounds.
4707
0a278aa7
PW
47082020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4709
4710 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4711
cce20f10
PA
47122020-07-10 Pedro Alves <pedro@palves.net>
4713
4714 * gdbthread.h (inferior_ref): Define.
4715 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4716 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4717 * thread.c
4718 (scoped_restore_current_thread::restore):
4719 Adjust to gdb::ref_ptr.
4720 (scoped_restore_current_thread::~scoped_restore_current_thread):
4721 Remove manual decref handling.
4722 (scoped_restore_current_thread::scoped_restore_current_thread):
4723 Adjust to use
4724 inferior_ref::new_reference/thread_info_ref::new_reference.
4725 Incref the thread before calling get_frame_id instead of after.
4726 Let TARGET_CLOSE_ERROR propagate.
4727
6d7aa592
PA
47282020-07-10 Pedro Alves <pedro@palves.net>
4729
4730 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4731 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4732 NOT_AVAILABLE_ERROR.
4733 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4734 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4735
b3e3a4c1
SM
47362020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4737 Pedro Alves <pedro@palves.net>
4738
4739 PR gdb/26199
4740 * infrun.c (threads_are_resumed_pending_p): Delete.
4741 (do_target_wait): Remove threads_are_executing and
4742 threads_are_resumed_pending_p checks from the inferior_matches
4743 lambda. Update comments.
4744
d6cc5d98
PA
47452020-07-10 Pedro Alves <pedro@palves.net>
4746
4747 PR gdb/26199
4748 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4749 executing threads.
4750
7d3badc6
PA
47512020-07-10 Pedro Alves <pedro@palves.net>
4752
4753 PR gdb/26199
4754 * infrun.c (handle_no_resumed): Handle multiple targets.
4755
42bd97a6
PA
47562020-07-10 Pedro Alves <pedro@palves.net>
4757
4758 PR gdb/26199
4759 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4760 target_is_async_p.
4761
43667cc6
PA
47622020-07-10 Pedro Alves <pedro@palves.net>
4763
4764 PR gdb/26199
4765 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4766 threads, not all threads.
4767
96118d11
PA
47682020-07-10 Pedro Alves <pedro@palves.net>
4769
4770 PR gdb/26199
4771 * remote.c (remote_target::open_1): Pass remote target pointer as
4772 data to create_async_event_handler.
4773 (remote_async_inferior_event_handler): Mark async event handler
4774 before returning if the remote target still has either pending
4775 events or unacknowledged notifications.
4776
54904d81
JB
47772020-07-10 John Baldwin <jhb@FreeBSD.org>
4778
4779 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4780 declaration.
4781 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4782 function.
4783
f37e5866
JB
47842020-07-09 John Baldwin <jhb@FreeBSD.org>
4785
4786 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4787 inferior_ptid.
4788
fc238d4a
JB
47892020-07-09 John Baldwin <jhb@FreeBSD.org>
4790
4791 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4792 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4793 AT_FREEBSD_PS_STRINGS.
4794
6e2469ff
HD
47952020-07-08 Hannes Domani <ssbssa@yahoo.de>
4796
4797 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4798 of debugfile path on Windows.
4799
d1076c41
JB
48002020-07-08 John Baldwin <jhb@FreeBSD.org>
4801
4802 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4803 argument to 'data'.
4804
15f3b077
TT
48052020-07-08 Tom Tromey <tromey@adacore.com>
4806
4807 * ada-lang.c (ada_exception_message_1): Use read_memory.
4808
9fc501fd
AB
48092020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4810
4811 PR python/22748
4812 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4813 special handling for inline frames.
4814 * findvar.c (value_of_register_lazy): Skip inline frames when
4815 creating lazy register values.
4816 * frame.c (frame_id_computed_p): Delete definition.
4817 * frame.h (frame_id_computed_p): Delete declaration.
4818
64cb3757
AB
48192020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4820
4821 * NEWS: Mention additions to Python API.
4822 * python/py-arch.c (archpy_register_groups): New function.
4823 (arch_object_methods): Add 'register_groups' method.
4824 * python/py-registers.c (reggroup_iterator_object): New struct.
4825 (reggroup_object): New struct.
4826 (gdbpy_new_reggroup): New function.
4827 (gdbpy_reggroup_to_string): New function.
4828 (gdbpy_reggroup_name): New function.
4829 (gdbpy_reggroup_iter): New function.
4830 (gdbpy_reggroup_iter_next): New function.
4831 (gdbpy_new_reggroup_iterator): New function
4832 (gdbpy_initialize_registers): Register new types.
4833 (reggroup_iterator_object_type): Define new Python type.
4834 (gdbpy_reggroup_getset): New static global.
4835 (reggroup_object_type): Define new Python type.
4836 * python/python-internal.h
4837
0f767f94
AB
48382020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4839
4840 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4841 * python/py-arch.c (archpy_registers): New function.
4842 (arch_object_methods): Add 'registers' method.
4843 * python/py-registers.c: New file.
4844 * python/python-internal.h
4845 (gdbpy_new_register_descriptor_iterator): Declare.
4846 (gdbpy_initialize_registers): Declare.
4847 * python/python.c (do_start_initialization): Call
4848 gdbpy_initialize_registers.
4849 * NEWS: Mention additions to the Python API.
4850
87dbc774
AB
48512020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4852
4853 * NEWS: Mention new Python API method.
4854 * python/py-unwind.c (pending_framepy_architecture): New function.
4855 (pending_frame_object_methods): Add architecture method.
4856
3bc98c0c
AB
48572020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4858
4859 * gdbarch.c: Regenerate.
4860 * gdbarch.h: Regenerate.
4861 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4862 (gdbarch_data): Use internal_error for the case where
4863 deprecated_set_gdbarch_data was originally needed.
4864 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4865 and use passed in obstack.
4866 (libunwind_frame_set_descr): Should no longer get back NULL from
4867 gdbarch_data.
4868 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4869 type.
4870 * user-regs.c (user_regs_init): Update parameters, and use passed
4871 in obstack.
4872 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4873 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4874
d8cc8af6
TV
48752020-07-06 Tom de Vries <tdevries@suse.de>
4876
4877 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4878 End-Of-Sequence in lte_is_less_than.
4879 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4880 "gdb: Don't reorder line table entries too much when sorting".
4881
947f7597
TV
48822020-07-06 Tom de Vries <tdevries@suse.de>
4883
4884 PR tui/26205
4885 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4886
1e7c1b22
TV
48872020-07-05 Tom de Vries <tdevries@suse.de>
4888
4889 PR build/26187
4890 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4891 std::uncaught_exceptions instead of deprecated
4892 std::uncaught_exception.
4893
a36158ec
SM
48942020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4895
4896 * macroexp.h (macro_stringify): Return
4897 gdb::unique_xmalloc_ptr<char>.
4898 * macroexp.c (macro_stringify): Likewise.
4899 * macrotab.c (fixup_definition): Update.
4900
14d960c8
SM
49012020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4902
4903 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4904 (lex_one_token): Update.
4905 * macroexp.c (struct macro_buffer) <release>: Return
4906 gdb::unique_xmalloc_ptr<char>.
4907 (macro_stringify): Update.
4908 (macro_expand): Update.
4909 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4910 * macroexp.h (macro_expand_next): Likewise.
4911
211d5b1c
SM
49122020-07-02 Simon Marchi <simon.marchi@efficios.com>
4913
4914 * macroexp.h (macro_lookup_ftype): Remove.
4915 (macro_expand, macro_expand_once, macro_expand_next): Remove
4916 lookup function parameters, add scope parameter.
4917 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4918 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4919 * macroscope.h (standard_macro_lookup): Change parameter type
4920 to macro_scope.
4921 * macroscope.c (standard_macro_lookup): Likewise.
4922 * c-exp.y (lex_one_token): Update.
4923 * macrocmd.c (macro_expand_command): Likewise.
4924 (macro_expand_once_command): Likewise.
4925
b1a35af2
SM
49262020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4927
4928 * inf-loop.c (inferior_event_handler): Remove client_data param.
4929 * inf-loop.h (inferior_event_handler): Likewise.
4930 * infcmd.c (step_1): Adjust.
4931 * infrun.c (proceed): Adjust.
4932 (fetch_inferior_event): Remove client_data param.
4933 (infrun_async_inferior_event_handler): Adjust.
4934 * infrun.h (fetch_inferior_event): Remove `void *` param.
4935 * linux-nat.c (handle_target_event): Adjust.
4936 * record-btrace.c (record_btrace_handle_async_inferior_event):
4937 Adjust.
4938 * record-full.c (record_full_async_inferior_event_handler):
4939 Adjust.
4940 * remote.c (remote_async_inferior_event_handler): Adjust.
4941
1cdf9e33
TT
49422020-07-01 Tom Tromey <tom@tromey.com>
4943
4944 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4945 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4946
32c1e210
TT
49472020-07-01 Tom Tromey <tom@tromey.com>
4948
4949 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4950 tui_gen_win_info.
4951 (tui_win_info::make_window): Merge with
4952 tui_gen_win_info::make_window.
4953 (tui_win_info::make_visible): Move from tui_gen_win_info.
4954 * tui/tui-win.c (tui_win_info::max_width): Move from
4955 tui_gen_win_info.
4956 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4957 type.
4958 <window_factory>: Likewise.
4959 * tui/tui-layout.c (tui_win_info::resize): Move from
4960 tui_gen_win_info.
4961 (make_standard_window): Change return type.
4962 (get_locator_window, tui_get_window_by_name): Likewise.
4963 (tui_layout_window::apply): Remove a cast.
4964 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4965 (struct tui_win_info): Merge with tui_gen_win_info.
4966 (struct tui_gen_win_info): Remove.
4967
a30cb6da
TT
49682020-07-01 Tom Tromey <tom@tromey.com>
4969
4970 * tui/tui-stack.h (struct tui_locator_window): Derive from
4971 tui_win_info.
4972 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4973 <can_box>: New method.
4974
1eb2161f
TT
49752020-07-01 Tom Tromey <tom@tromey.com>
4976
4977 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4978
7134f2eb
TT
49792020-07-01 Tom Tromey <tom@tromey.com>
4980
4981 * tui/tui-regs.c (tui_data_window::display_registers_from)
4982 (tui_data_window::display_registers_from)
4983 (tui_data_window::first_data_item_displayed)
4984 (tui_data_window::delete_data_content_windows): Update.
4985 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4986 Remove.
4987 (tui_data_window::check_register_values): Update.
4988 (tui_data_item_window::rerender): Add parameters. Update.
4989 (tui_data_item_window::refresh_window): Remove.
4990 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4991 virtual.
4992 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4993 tui_gen_win_info.
4994 <refresh_window, max_height, min_height>: Remove.
4995 <rerender>: Add parameters.
4996 <x, y, visible>: New members.
4997 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4998 <m_item_width>: New member.
4999
22b7b041
TT
50002020-07-01 Tom Tromey <tom@tromey.com>
5001
5002 * tui/tui-regs.c (tui_data_window::show_register_group)
5003 (tui_data_window::check_register_values): Update.
5004 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5005 from item_no.
5006
c9753adb
TT
50072020-07-01 Tom Tromey <tom@tromey.com>
5008
5009 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5010 useless "if".
5011
9ab26b4a
TT
50122020-07-01 Tom Tromey <tom@tromey.com>
5013
5014 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5015 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5016
e555083f
TT
50172020-07-01 Tom Tromey <tom@tromey.com>
5018
5019 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5020 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5021 (struct tui_line_or_address): Move from tui-data.h.
5022 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5023 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5024 (tui_cmd_window, tui_source_window_base, tui_source_window)
5025 (tui_disasm_window): Don't declare.
5026 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5027 to tui-winsource.h.
5028 (SINGLE_KEY): Move to tui-stack.c.
5029
7a02bab7
TT
50302020-07-01 Tom Tromey <tom@tromey.com>
5031
5032 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5033 std::string.
5034 * tui/tui-regs.c (class tab_expansion_file): New.
5035 (tab_expansion_file::write): New method.
5036 (tui_register_format): Change return type. Use
5037 tab_expansion_file.
5038 (tui_get_register, tui_data_window::display_registers_from)
5039 (tui_data_item_window::rerender): Update.
5040 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5041 * tui/tui-io.c (tui_expand_tabs): Remove.
5042
ea68593b
TT
50432020-07-01 Tom Tromey <tom@tromey.com>
5044
5045 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5046
a8caed5d
FS
50472020-07-01 Fangrui Song <maskray@google.com>
5048
5049 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5050
9cdf9820
AKS
50512020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5052
5053 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5054 forms for DW_AT_associated and DW_AT_allocated attributes,
5055 which is already checked in function attr_to_dynamic_prop.
5056
a1520ad8
TT
50572020-06-30 Tom Tromey <tromey@adacore.com>
5058
5059 * dwarf2/read.c (quirk_rust_enum): Correctly call
5060 alloc_rust_variant for default-less enum.
5061
5ac58899
TT
50622020-06-30 Tom Tromey <tromey@adacore.com>
5063
5064 PR build/26183:
5065 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5066 gdb::to_string.
5067
19b187a9
SM
50682020-06-29 Simon Marchi <simon.marchi@efficios.com>
5069
5070 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5071 * gdbarch.h: Re-generate.
5072
cd4c4c07
TT
50732020-06-28 Tom Tromey <tom@tromey.com>
5074
5075 * command.h (cmd_types): Remove.
5076 (cmd_type): Don't declare.
5077 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5078 typedef.
5079 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5080 * cli/cli-decode.c (cmd_type): Remove.
5081
05779d57
PA
50822020-06-27 Pedro Alves <palves@redhat.com>
5083
5084 * fork-child.c (prefork_hook): Adjust.
5085 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5086 Delete.
5087 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5088 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5089 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5090 Remove declarations.
5091 (struct inferior) <set_tty, tty>: New methods.
5092 (struct inferior) <terminal>: Rename to ...
5093 (struct inferior) <m_terminal>: ... this and make private.
5094 * main.c (captured_main_1): Adjust.
5095 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5096 (mi_cmd_inferior_tty_show): Adjust.
5097 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5098 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5099
1776e3e5
NA
51002020-06-26 Nick Alcock <nick.alcock@oracle.com>
5101
5102 * configure.ac: Add --enable-libctf: handle --disable-static
5103 properly.
5104 * acinclude.m4: sinclude ../config/enable.m4.
5105 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5106 (LIBCTF): Substitute in.
5107 (CTF_DEPS): New, likewise.
5108 (CLIBS): libctf needs symbols from libbfd: move earlier.
5109 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5110 flags.
5111 * ctfread.c: Surround in ENABLE_LIBCTF.
5112 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5113 * configure: Regenerate.
5114 * config.in: Likewise.
5115
58373b80
SM
51162020-06-25 Simon Marchi <simon.marchi@efficios.com>
5117
5118 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5119
277474ee
SM
51202020-06-25 Simon Marchi <simon.marchi@efficios.com>
5121
5122 * inferior.h (struct inferior) <terminal>: Change type to
5123 gdb::unique_xmalloc_ptr<char>.
5124 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5125 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5126 field, adjust to unique pointer.
5127 (get_inferior_io_terminal): Adjust to unique pointer.
5128
6d74da72
AB
51292020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5130
5131 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5132 registers, not just the known core set of registers.
5133
2e52d038
AB
51342020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5135
5136 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5137 fflags, frm, and fcsr registers.
5138 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5139 restore groups.
5140 (riscv_tdesc_unknown_reg): New function.
5141 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5142 tdesc_use_registers.
5143 * riscv-tdep.h (struct gdbarch_tdep): Add
5144 unknown_csrs_first_regnum, unknown_csrs_count,
5145 duplicate_fflags_regnum, duplicate_frm_regnum, and
5146 duplicate_fcsr_regnum fields.
5147
be64fd07
AB
51482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5149
5150 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5151 callback, use the callback (when not null) to help number unknown
5152 registers.
5153 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5154 (tdesc_use_registers): Add extra parameter to declaration.
5155
3b9fce96
AB
51562020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5157
5158 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5159 in the file.
5160 (class riscv_pending_register_alias): Likewise.
5161 (riscv_register_feature::register_info): Change 'required_p' field
5162 to 'required', and change its type. Add 'check' member function.
5163 (riscv_register_feature::register_info::check): Define new member
5164 function.
5165 (riscv_xreg_feature): Change initialisation of 'required' field.
5166 (riscv_freg_feature): Likewise.
5167 (riscv_virtual_feature): Likewise.
5168 (riscv_csr_feature): Likewise.
5169 (riscv_check_tdesc_feature): Take extra parameter, the csr
5170 tdesc_feature, rewrite the function to use the new
5171 riscv_register_feature::register_info::check function.
5172 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5173
865bad26
AB
51742020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5175
5176 * features/Makefile: Remove all references to the deleted files
5177 below.
5178 * features/riscv/32bit-csr.c: Deleted.
5179 * features/riscv/32bit-csr.xml: Deleted.
5180 * features/riscv/64bit-csr.c: Deleted.
5181 * features/riscv/64bit-csr.xml: Deleted.
5182 * features/riscv/rebuild-csr-xml.sh: Deleted.
5183
ed69cbc8
AB
51842020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5185
5186 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5187 whitespace error for declaration of names member variable.
5188 (struct riscv_register_feature): Add new prefer_first_name member
5189 variable, and fix whitespace error in declaration of registers.
5190 (riscv_xreg_feature): Initialize prefer_first_name field.
5191 (riscv_freg_feature): Likewise.
5192 (riscv_virtual_feature): Likewise.
5193 (riscv_csr_feature): Likewise.
5194 (riscv_register_name): Expand on comments. Remove register name
5195 modifications for CSR and virtual registers.
5196
4445e8f5
AB
51972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5198
5199 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5200 errors.
5201
767a879e
AB
52022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5203
5204 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5205 riscv-opc.h.
5206 (class riscv_pending_register_alias): New class.
5207 (riscv_check_tdesc_feature): Take vector of pending aliases and
5208 populate it as appropriate.
5209 (riscv_setup_register_aliases): Delete.
5210 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5211 to riscv_check_tdesc_feature in all cases. Use the vector to
5212 create the register aliases.
5213
bb6e55f3
RO
52142020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5215
5216 * sol2-tdep.c (sol2_static_transform_name): Remove.
5217 (sol2_init_abi): Don't register it.
5218 * gdbarch.sh (static_transform_name): Remove.
5219 * gdbarch.c, gdbarch.h: Regenerate.
5220
5221 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5222 gdbarch_static_transform_name.
5223 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5224 * stabsread.c (define_symbol) <'X'>: Remove.
5225 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5226 handling.
5227 <'V'>: Likewise.
5228 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5229 <'S'>: Remove call to gdbarch_static_transform_name.
5230
c6d36836
RO
52312020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5232
5233 * procfs.c (procfs_pre_trace): New function.
5234 (procfs_target::create_inferior): Pass it to fork_inferior.
5235
a7e6196b
RO
52362020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5237
5238 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5239 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5240 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5241 sol2-tdep.o, sparc-sol2-tdep.o.
5242 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5243 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5244 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5245 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5246
d412e696
RO
52472020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5248
5249 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5250 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5251 Call sol2_init_abi.
5252 Remove calls to set_gdbarch_skip_solib_resolver,
5253 set_gdbarch_core_pid_to_str.
5254 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5255 (i386_sol2_static_transform_name): Remove.
5256 (i386_sol2_init_abi): Call sol2_init_abi.
5257 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5258 set_gdbarch_static_transform_name,
5259 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5260 Use sol2_sigtramp_p.
5261 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5262 (sol2_sigtramp_p): New function.
5263 (sol2_static_transform_name): New function.
5264 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5265 (sol2_init_abi): New function.
5266 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5267 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5268 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5269 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5270 (sparc_sol2_static_transform_name): Remove.
5271 (sparc32_sol2_init_abi): Call sol2_init_abi.
5272 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5273 set_gdbarch_static_transform_name,
5274 set_gdbarch_skip_solib_resolver,
5275 set_gdbarch_core_pid_to_str.
5276 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5277 (sparc_sol2_static_transform_name): Remove
5278 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5279 call sol2_sigtramp_p.
5280 (sparc64_sol2_init_abi): Call sol2_init_abi.
5281 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5282 set_gdbarch_static_transform_name,
5283 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5284
a8654e7d
PW
52852020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5286
5287 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5288 * exec.c (validate_exec_file): If from_tty, set both
5289 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5290 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5291 and from_tty, unconditionally ask a confirmation.
5292
caa7fd04
AB
52932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5294
5295 * target-descriptions.c (tdesc_architecture_name): Protect against
5296 NULL pointer dereference.
5297 (maint_print_xml_tdesc_cmd): New function.
5298 (_initialize_target_descriptions): Register new 'maint print
5299 xml-tdesc' command and give it the filename completer.
5300 * NEWS: Mention new 'maint print xml-tdesc' command.
5301
fbf42f4e
AB
53022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5303
5304 * target-descriptions.c (class tdesc_compatible_info): New class.
5305 (struct target_desc): Change type of compatible vector.
5306 (tdesc_compatible_p): Update for change in type of
5307 target_desc::compatible.
5308 (tdesc_compatible_info_list): New function.
5309 (tdesc_compatible_info_arch_name): New function.
5310 (tdesc_add_compatible): Update for change in type of
5311 target_desc::compatible.
5312 (print_c_tdesc::visit_pre): Likewise.
5313
20821f4e
AB
53142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5315
5316 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5317 whitespace to underscore.
5318 (maint_print_c_tdesc_cmd): Use fake filename for target
5319 descriptions that came from the target.
5320 (_initialize_target_descriptions): Add filename command completion
5321 for 'maint print c-tdesc'.
5322
1fb5ee62
SM
53232020-06-23 Simon Marchi <simon.marchi@efficios.com>
5324
5325 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5326 lines.
5327
fc3ecb3e
SM
53282020-06-23 Simon Marchi <simon.marchi@efficios.com>
5329
5330 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5331 lines.
5332 (dwarf2_find_location_expression): Likewise.
5333 (call_site_parameter_matches): Likewise.
5334 (dwarf2_compile_expr_to_ax): Likewise.
5335 (disassemble_dwarf_expression): Likewise.
5336 (loclist_describe_location): Likewise.
5337
236ef034
PA
53382020-06-23 Pedro Alves <palves@redhat.com>
5339
5340 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5341 progspace-and-thread.h. Include scoped-mock-context.h instead.
5342 (register_to_value_test): Use scoped_mock_context.
5343 * regcache.c: Include "scoped-mock-context.h".
5344 (cooked_read_test): Don't error out if a target is already pushed.
5345 Use scoped_mock_context. Adjust.
5346 * scoped-mock-context.h: New file.
5347
39e7ecca
AB
53482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5349
5350 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5351 initializer.
5352 (ada_language::is_string_type_p): New member function.
5353 * c-lang.c (c_language_data): Delete la_is_string_type_p
5354 initializer.
5355 (cplus_language_data): Likewise.
5356 (asm_language_data): Likewise.
5357 (minimal_language_data): Likewise.
5358 * d-lang.c (d_language_data): Likewise.
5359 * f-lang.c (f_is_string_type_p): Delete function, implementation
5360 moved to f_language::is_string_type_p.
5361 (f_language_data): Delete la_is_string_type_p initializer.
5362 (f_language::is_string_type_p): New member function,
5363 implementation from f_is_string_type_p.
5364 * go-lang.c (go_is_string_type_p): Delete function, implementation
5365 moved to go_language::is_string_type_p.
5366 (go_language_data): Delete la_is_string_type_p initializer.
5367 (go_language::is_string_type_p): New member function,
5368 implementation from go_is_string_type_p.
5369 * language.c (language_defn::is_string_type_p): Define new member
5370 function.
5371 (default_is_string_type_p): Make static, add comment copied from
5372 header file.
5373 (unknown_language_data): Delete la_is_string_type_p initializer.
5374 (unknown_language::is_string_type_p): New member function.
5375 (auto_language_data): Delete la_is_string_type_p initializer.
5376 (auto_language::is_string_type_p): New member function.
5377 * language.h (language_data): Delete la_is_string_type_p field.
5378 (language_defn::is_string_type_p): Declare new function.
5379 (default_is_string_type_p): Delete desclaration, move comment to
5380 definition.
5381 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5382 moved to m2_language::is_string_type_p.
5383 (m2_language_data): Delete la_is_string_type_p initializer.
5384 (m2_language::is_string_type_p): New member function,
5385 implementation from m2_is_string_type_p.
5386 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5387 initializer.
5388 * opencl-lang.c (opencl_language_data): Likewise.
5389 * p-lang.c (pascal_is_string_type_p): Delete function,
5390 implementation moved to pascal_language::is_string_type_p.
5391 (pascal_language_data): Delete la_is_string_type_p initializer.
5392 (pascal_language::is_string_type_p): New member function,
5393 implementation from pascal_is_string_type_p.
5394 * rust-lang.c (rust_is_string_type_p): Delete function,
5395 implementation moved to rust_language::is_string_type_p.
5396 (rust_language_data): Delete la_is_string_type_p initializer.
5397 (rust_language::is_string_type_p): New member function,
5398 implementation from rust_is_string_type_p.
5399 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5400 is_string_type_p.
5401
4ffc13fb
AB
54022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5403
5404 * ada-lang.c (ada_language_data): Delete la_print_typedef
5405 initializer.
5406 (ada_language::print_typedef): New member function.
5407 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5408 (cplus_language_data): Likewise.
5409 (asm_language_data): Likewise.
5410 (minimal_language_data): Likewise.
5411 * d-lang.c (d_language_data): Likewise.
5412 * f-lang.c (f_language_data): Likewise.
5413 (f_language::print_typedef): New member function.
5414 * go-lang.c (go_language_data): Delete la_print_typedef
5415 initializer.
5416 * language.c (language_defn::print_typedef): Define member
5417 function.
5418 (unknown_language_data): Delete la_print_typedef initializer.
5419 (unknown_language::print_typedef): New member function.
5420 (auto_language_data): Delete la_print_typedef initializer.
5421 (auto_language::print_typedef): New member function.
5422 * language.h (language_data): Delete la_print_typedef field.
5423 (language_defn::print_typedef): Declare new member function.
5424 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5425 (default_print_typedef): Delete declaration.
5426 * m2-lang.c (m2_language_data): Delete la_print_typedef
5427 initializer.
5428 (m2_language::print_typedef): New member function.
5429 * objc-lang.c (objc_language_data): Delete la_print_typedef
5430 initializer.
5431 * opencl-lang.c (opencl_language_data): Likewise.
5432 * p-lang.c (pascal_language_data): Likewise.
5433 (pascal_language::print_typedef): New member function.
5434 * rust-lang.c (rust_print_typedef): Delete function,
5435 implementation moved to rust_language::print_typedef.
5436 (rust_language): Delete la_print_typedef initializer.
5437 (rust_language::print_typedef): New member function,
5438 implementation from rust_print_typedef.
5439 * typeprint.c (default_print_typedef): Delete.
5440
d711ee67
AB
54412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5442
5443 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5444 (ada_language::printstr): New member function.
5445 * c-lang.c (c_language_data): Delete la_printstr initializer.
5446 (cplus_language_data): Likewise.
5447 (asm_language_data): Likewise.
5448 (minimal_language_data): Likewise.
5449 * d-lang.c (d_language_data): Likewise.
5450 * f-lang.c (f_printstr): Rename to f_language::printstr.
5451 (f_language_data): Delete la_printstr initializer.
5452 (f_language::printstr): New member function, implementation from
5453 f_printstr.
5454 * go-lang.c (go_language_data): Delete la_printstr initializer.
5455 * language.c (language_defn::printstr): Define new member
5456 function.
5457 (unk_lang_printstr): Delete.
5458 (unknown_language_data): Delete la_printstr initializer.
5459 (unknown_language::printstr): New member function.
5460 (auto_language_data): Delete la_printstr initializer.
5461 (auto_language::printstr): New member function.
5462 * language.h (language_data): Delete la_printstr field.
5463 (language_defn::printstr): Declare new member function.
5464 (LA_PRINT_STRING): Update call to printstr.
5465 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5466 (m2_language_data): Delete la_printstr initializer.
5467 (m2_language::printstr): New member function, implementation from
5468 m2_printstr.
5469 * objc-lang.c (objc_language_data): Delete la_printstr
5470 initializer.
5471 * opencl-lang.c (opencl_language_data): Likewise.
5472 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5473 (pascal_language_data): Delete la_printstr initializer.
5474 (pascal_language::printstr): New member function, implementation
5475 from pascal_printstr.
5476 * p-lang.h (pascal_printstr): Delete declaration.
5477 * rust-lang.c (rust_printstr): Update header comment.
5478 (rust_language_data): Delete la_printstr initializer.
5479 (rust_language::printstr): New member function.
5480
52b50f2c
AB
54812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5482
5483 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5484 (ada_language::printchar): New member function.
5485 * c-lang.c (c_language_data): Delete la_printchar initializer.
5486 (cplus_language_data): Likewise.
5487 (asm_language_data): Likewise.
5488 (minimal_language_data): Likewise.
5489 * d-lang.c (d_language_data): Likewise.
5490 * f-lang.c (f_printchar): Rename to f_language::printchar.
5491 (f_language_data): Delete la_printchar initializer.
5492 (f_language::printchar): New member function, implementation from
5493 f_printchar.
5494 * go-lang.c (go_language_data): Delete la_printchar initializer.
5495 * language.c (unk_lang_printchar): Delete.
5496 (language_defn::printchar): Define new member function.
5497 (unknown_language_data): Delete la_printchar initializer.
5498 (unknown_language::printchar): New member function.
5499 (auto_language_data): Delete la_printchar initializer.
5500 (auto_language::printchar): New member function.
5501 * language.h (language_data): Delete la_printchar field.
5502 (language_defn::printchar): Declare new member function.
5503 (LA_PRINT_CHAR): Update call to printchar.
5504 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5505 (m2_language::printchar): New member function.
5506 * objc-lang.c (objc_language_data): Delete la_printchar
5507 initializer.
5508 * opencl-lang.c (opencl_language_data): Likewise.
5509 * p-lang.c (pascal_language_data): Delete la_printchar
5510 initializer.
5511 (pascal_language::printchar): New member function.
5512 * rust-lang.c (rust_printchar): Rename to
5513 rust_language::printchar.
5514 (rust_language_data): Delete la_printchar initializer.
5515 (rust_language::printchar): New member function, implementation
5516 from rust_printchar.
5517
ec8cec5b
AB
55182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5519
5520 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5521 (ada_language_data): Delete la_emitchar initializer.
5522 (ada_language::emitchar): New member function, implementation from
5523 emit_char.
5524 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5525 (cplus_language_data): Likewise.
5526 (asm_language_data): Likewise.
5527 (minimal_language_data): Likewise.
5528 * d-lang.c (d_language_data): Likewise.
5529 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5530 (f_language_data): Delete la_emitchar initializer.
5531 (f_language::emitchar): New member function, implementation from
5532 f_emit_char.
5533 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5534 * language.c (unk_lang_emit_char): Delete.
5535 (language_defn::emitchar): New member function definition.
5536 (unknown_language_data): Delete la_emitchar initializer.
5537 (unknown_language::emitchar): New member function.
5538 (auto_language_data): Delete la_emitchar initializer.
5539 (auto_language::emitchar): New member function.
5540 * language.h (language_data): Delete la_emitchar field.
5541 (language_defn::emitchar): New member field declaration.
5542 (LA_EMIT_CHAR): Update call to emitchar.
5543 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5544 (m2_language_data): Delete la_emitchar initializer.
5545 (m2_language::emitchar): New member function, implementation from
5546 m2_emit_char.
5547 * objc-lang.c (objc_language_data): Delete la_emitchar
5548 initializer.
5549 * opencl-lang.c (opencl_language_data): Likewise.
5550 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5551 (pascal_language_data): Delete la_emitchar initializer.
5552 (pascal_language::emitchar): New member function, implementation
5553 from pascal_emit_char.
5554 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5555 (rust_language_data): Delete la_emitchar initializer.
5556 (rust_language::emitchar): New member function, implementation
5557 from rust_emitchar.
5558
1bf9c363
AB
55592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5560
5561 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5562 (ada_language_data): Delete la_post_parser initializer.
5563 (ada_language::post_parser): New member function.
5564 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5565 (cplus_language_data): Likewise.
5566 (asm_language_data): Likewise.
5567 (minimal_language_data): Likewise.
5568 * d-lang.c (d_language_data): Likewise.
5569 * f-lang.c (f_language_data): Likewise.
5570 * go-lang.c (go_language_data): Likewise.
5571 * language.c (unknown_language_data): Likewise.
5572 (auto_language_data): Likewise.
5573 * language.h (language_data): Delete la_post_parser field.
5574 (language_defn::post_parser): New member function.
5575 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5576 * objc-lang.c (objc_language_data): Likewise.
5577 * opencl-lang.c (opencl_language_data): Likewise.
5578 * p-lang.c (pascal_language_data): Likewise.
5579 * parse.c (parse_exp_in_context): Update call to post_parser.
5580 (null_post_parser): Delete definition.
5581 * parser-defs.h (null_post_parser): Delete declaration.
5582 * rust-lang.c (rust_language_data): Delete la_post_parser
5583 initializer.
5584
87afa652
AB
55852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5586
5587 * ada-lang.c (parse): Rename to ada_language::parser.
5588 (ada_language_data): Delete la_parser initializer.
5589 (ada_language::parser): New member function, implementation from
5590 parse.
5591 * c-lang.c (c_language_data): Delete la_parser initializer.
5592 (cplus_language_data): Likewise.
5593 (asm_language_data): Likewise.
5594 (minimal_language_data): Likewise.
5595 * d-lang.c (d_language_data): Likewise.
5596 (d_language::parser): New member function.
5597 * f-lang.c (f_language_data): Delete la_parser initializer.
5598 (f_language::parser): New member function.
5599 * go-lang.c (go_language_data): Delete la_parser initializer.
5600 (go_language::parser): New member function.
5601 * language.c (unk_lang_parser): Delete.
5602 (language_defn::parser): Define new member function.
5603 (unknown_language_data): Delete la_parser initializer.
5604 (unknown_language::parser): New member function.
5605 (auto_language_data): Delete la_parser initializer.
5606 (auto_language::parser): New member function.
5607 * language.h (language_data): Delete la_parser field.
5608 (language_defn::parser): Declare new member function.
5609 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5610 (m2_language::parser): New member function.
5611 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5612 * opencl-lang.c (opencl_language_data): Likewise.
5613 * p-lang.c (pascal_language_data): Likewise.
5614 (pascal_language::parser): New member function.
5615 * parse.c (parse_exp_in_context): Update call to parser.
5616 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5617 (rust_language::parser): New member function.
5618
37825800
AB
56192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5620
5621 * top.c (print_gdb_configuration): Print --with-python-libdir
5622 configuration value.
5623
5b860c93
PW
56242020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5625
5626 * NEWS: Mention change to the alias command.
5627
cf00cd6f
PW
56282020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5629
5630 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5631 (alias_command_completer)
5632 (make_alias_options_def_group): New functions.
5633 (alias_opts, alias_option_defs): New struct and array.
5634 (alias_usage_error): Update usage.
5635 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5636 Use option framework.
5637 (_initialize_cli_cmds): Update alias command help.
5638 Update aliases command help.
5639 (show_user):
5640 Add NULL for new default_args lookup_cmd argument.
5641 (valid_command_p): Rename to validate_aliased_command.
5642 Add NULL for new default_args lookup_cmd argument. Verify that the
5643 aliased_command has no default args.
5644 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5645 (lookup_cmd_1, lookup_cmd): New argument default_args.
5646 (add_alias_cmd):
5647 Add NULL for new default_args lookup_cmd argument.
5648 (print_help_for_command): Show default args under the layout
5649 alias some_alias = some_aliased_cmd some_alias_default_arg.
5650 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5651 xfree default_args in destructor.
5652 * cli/cli-script.c (process_next_line, do_define_command):
5653 Add NULL for new default_args lookup_cmd argument.
5654 * command.h: Declare new default_args argument in lookup_cmd
5655 and lookup_cmd_1.
5656 * completer.c (complete_line_internal_1):
5657 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5658 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5659 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5660 Likewise.
5661 * infcmd.c (_initialize_infcmd): Likewise.
5662 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5663 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5664 * python/py-param.c (add_setshow_generic): Likewise.
5665 * remote.c (_initialize_remote): Likewise.
5666 * top.c (execute_command): Prepend default_args if command has some.
5667 (set_verbose):
5668 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5669 * tracepoint.c (validate_actionline, encode_actions_1):
5670 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5671
bd920864
TBA
56722020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5673
5674 * jit.c (jit_read_descriptor): Use bool as the return type.
5675 (jit_breakpoint_re_set_internal): Use bool as the return type.
5676 Invert the return value logic; return true if the jit breakpoint
5677 has been successfully initialized.
5678 (jit_inferior_init): Update the call to
5679 jit_breakpoint_re_set_internal.
5680
f8098322
PA
56812020-06-22 Pedro Alves <palves@redhat.com>
5682
5683 PR gdb/25939
5684 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5685 Use the current inferior instead. Don't return
5686 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5687 wait again.
5688 * sol-thread.c (sol_thread_target::wait): Don't reference
5689 inferior_ptid.
5690 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5691 (sol_update_thread_list_callback): Use the current inferior's pid
5692 instead of inferior_ptid.
5693
196535a6
RO
56942020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5695
5696 * procfs.c: Cleanup many comments.
5697
5698 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5699 (AFTER_WATCHFLAG): Replace by value.
5700
5701 (MAIN_PROC_NAME_FORMAT): Inline ...
5702 (create_procinfo): ... here.
5703
5704 (procfs_debug_inferior): Remove SYS_exec handling.
5705 (syscall_is_exec): Likewise.
5706 (procfs_set_exec_trap): Likewise.
5707
5708 (syscall_is_lwp_exit): Inline in callers.
5709 (syscall_is_exit): Likewise.
5710 (syscall_is_exec): Likewise.
5711 (syscall_is_lwp_create): Likewise.
5712
5713 (invalidate_cache): Remove #if 0 code.
5714
5715 (make_signal_thread_runnable): Remove.
5716 (procfs_target::resume): Remove #if 0 code.
5717
cf6f3e86
RO
57182020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5719
5720 PR gdb/25939
5721 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5722 call ...
5723 (procfs_target::create_inferior): ... here.
5724
48e9cc84
PW
57252020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5726
5727 * exec.c (validate_exec_file): Ensure the build-id is up to
5728 date by calling reopen_exec_file (that checks file timestamp
5729 to decide to re-read the file).
5730
3922b302
PA
57312020-06-18 Pedro Alves <palves@redhat.com>
5732
5733 PR gdb/25412
5734 * gdbthread.h (delete_thread, delete_thread_silent)
5735 (find_thread_ptid): Update comments.
5736 * thread.c (current_thread_): New global.
5737 (is_current_thread): Move higher, and reimplement.
5738 (inferior_thread): Reimplement.
5739 (set_thread_exited): Use bool. Add assertions.
5740 (add_thread_silent): Simplify thread-reuse handling by always
5741 calling delete_thread.
5742 (delete_thread): Remove intro comment.
5743 (find_thread_ptid): Skip exited threads.
5744 (switch_to_thread_no_regs): Write to current_thread_.
5745 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5746 INFERIOR_PTID. Clear current_thread_.
5747
6dbdab44
PA
57482020-06-18 Pedro Alves <palves@redhat.com>
5749
5750 * aix-thread.c (pd_update): Use switch_to_thread.
5751
2da4b788
PA
57522020-06-18 Pedro Alves <palves@redhat.com>
5753
5754 * ravenscar-thread.c (ravenscar_thread_target): Update.
5755 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5756 (ravenscar_thread_target::add_active_thread): ... this. Don't
5757 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5758 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5759
50838d1b
PA
57602020-06-18 Pedro Alves <palves@redhat.com>
5761
5762 * nat/windows-nat.c (current_windows_thread): Remove.
5763 * nat/windows-nat.h (current_windows_thread): Remove.
5764 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5765 Adjust.
5766 (display_selectors): Adjust to fetch the current
5767 windows_thread_info based on inferior_ptid.
5768 (fake_create_process): No longer write to current_windows_thread.
5769 (windows_nat_target::get_windows_debug_event):
5770 Don't set inferior_ptid or current_windows_thread.
5771 (windows_nat_target::wait): Adjust to not rely on
5772 current_windows_thread.
5773 (do_initial_windows_stuff): Now a method of windows_nat_target.
5774 Switch to the last_ptid thread.
5775 (windows_nat_target::attach): Adjust.
5776 (windows_nat_target::detach): Use switch_to_no_thread instead of
5777 writing to inferior_ptid directly.
5778 (windows_nat_target::create_inferior): Adjust.
5779
31ce04e9
PA
57802020-06-18 Pedro Alves <palves@redhat.com>
5781
5782 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5783
1ee1a363
PA
57842020-06-18 Pedro Alves <palves@redhat.com>
5785
5786 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5787 after creating it, instead of writing to inferior_ptid. Don't
5788 write to inferior_ptid.
5789
6d350754
PA
57902020-06-18 Pedro Alves <palves@redhat.com>
5791
5792 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5793
5d971d48
PA
57942020-06-18 Pedro Alves <palves@redhat.com>
5795
5796 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5797 it, instead of writing to inferior_ptid.
5798
86e57d1b
PA
57992020-06-18 Pedro Alves <palves@redhat.com>
5800
5801 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5802 to inferior_ptid.
5803
f2e1c129
PA
58042020-06-18 Pedro Alves <palves@redhat.com>
5805
5806 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5807 instead of writing to inferior_ptid directly.
5808
60db1b85
PA
58092020-06-18 Pedro Alves <palves@redhat.com>
5810
5811 * corelow.c (core_target::close): Use switch_to_no_thread instead
5812 of writing to inferior_ptid directly.
5813 (add_to_thread_list, core_target_open): Use switch_to_thread
5814 instead of writing to inferior_ptid directly.
5815
fe7d6a8d
PA
58162020-06-18 Pedro Alves <palves@redhat.com>
5817
5818 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5819 inferior_ptid.
5820 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5821 inferior_ptid.
5822 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5823 inferior_ptid directly.
5824 (darwin_nat_target::init_thread_list): Switch to thread, instead
5825 of writing to inferior_ptid.
5826 (darwin_nat_target::attach): Don't write to inferior_ptid.
5827 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5828
975f8708
PA
58292020-06-18 Pedro Alves <palves@redhat.com>
5830
5831 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5832 thread.
5833 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5834 Instead use switch_to_thread.
5835 (gnu_nat_target::detach): Use switch_to_no_thread
5836 instead of writing to inferior_ptid directly. Used passed-in
5837 inferior instead of looking up the inferior by pid.
5838
1a204730
PA
58392020-06-18 Pedro Alves <palves@redhat.com>
5840
5841 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5842 inferior_ptid.
5843
ebe84f23
PA
58442020-06-18 Pedro Alves <palves@redhat.com>
5845
5846 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5847 inferior_ptid.
5848 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5849 thread.
5850 (nto_procfs_target::detach): Avoid referencing
5851 inferior_ptid. Use switch_to_no_thread instead of writing to
5852 inferior_ptid directly.
5853 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5854 instead of writing to inferior_ptid directly.
5855 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5856 to thread.
5857
191f02e5
PA
58582020-06-18 Pedro Alves <palves@redhat.com>
5859
5860 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5861 after creating it, instead of writing to inferior_ptid.
5862 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5863 to inferior_ptid directly.
5864 (gdbsim_target::wait): Don't write to inferior_ptid.
5865
0ac55310
PA
58662020-06-18 Pedro Alves <palves@redhat.com>
5867
5868 * remote.c (remote_target::remote_notice_new_inferior): Use
5869 switch_to_thread instead of writing to inferior_ptid directly.
5870 (remote_target::add_current_inferior_and_thread): Use
5871 switch_to_no_thread instead of writing to inferior_ptid directly.
5872 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5873 and switch_to_thread instead of using set_current_inferior or
5874 writing to inferior_ptid directly.
5875
5233f39b
PA
58762020-06-18 Pedro Alves <palves@redhat.com>
5877
5878 * tracectf.c (ctf_target_open): Switch to added thread instead of
5879 writing to inferior_ptid directly.
5880 (ctf_target::close): Use switch_to_no_thread instead of writing to
5881 inferior_ptid directly.
5882
087e161b
PA
58832020-06-18 Pedro Alves <palves@redhat.com>
5884
5885 * tracefile-tfile.c (tfile_target_open): Don't write to
5886 inferior_ptid directly, instead switch to added thread.
5887 (tfile_target::close): Use switch_to_no_thread instead of writing
5888 to inferior_ptid directly.
5889
7fb43e53
PA
58902020-06-18 Pedro Alves <palves@redhat.com>
5891
5892 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5893 (procfs_target::detach): Use switch_to_no_thread
5894 instead of writing to inferior_ptid directly.
5895 (do_attach): Change return type to void. Switch to the added
5896 thread.
5897 (procfs_target::create_inferior): Switch to the added thread.
5898 (procfs_do_thread_registers): Don't write to inferior_ptid.
5899
18493a00
PA
59002020-06-18 Pedro Alves <palves@redhat.com>
5901
5902 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5903 of writing to inferior_ptid.
5904 (scoped_restore_exited_inferior): Delete.
5905 (handle_vfork_child_exec_or_exit): Simplify using
5906 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5907 instead of writing to inferior_ptid.
5908 (THREAD_STOPPED_BY): Delete.
5909 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5910 (thread_stopped_by_hw_breakpoint): Delete.
5911 (save_waitstatus): Use
5912 scoped_restore_current_thread+switch_to_thread, and call
5913 target_stopped_by_watchpoint instead of
5914 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5915 instead of thread_stopped_by_sw_breakpoint, and
5916 target_stopped_by_hw_breakpoint instead of
5917 thread_stopped_by_hw_breakpoint.
5918 (handle_inferior_event)
5919 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5920 inferior_ptid directly, nor
5921 set_current_inferior/set_current_program_space. Use
5922 switch_to_thread / switch_to_inferior_no_thread instead.
5923
a0776b13
PA
59242020-06-18 Pedro Alves <palves@redhat.com>
5925
5926 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5927 instead of writing to inferior_ptid.
5928
6155c136
PA
59292020-06-18 Pedro Alves <palves@redhat.com>
5930
5931 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5932 added thread.
5933 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5934 to the added thread.
5935 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5936 instead of writing to inferior_ptid.
5937
c5316fc6
PA
59382020-06-18 Pedro Alves <palves@redhat.com>
5939
5940 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5941 (register_to_value_test): Mock a program_space too. Heap-allocate
5942 the address space. Don't write to inferior_ptid. Use
5943 switch_to_thread instead.
5944
8df01799
PA
59452020-06-18 Pedro Alves <palves@redhat.com>
5946
5947 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5948 Delete.
5949 (find_signalled_thread()): New, factored out from
5950 linux_make_corefile_notes and adjusted to handle exited threads.
5951 (linux_make_corefile_notes): Adjust to use the new
5952 find_signalled_thread.
5953
41792d68
PA
59542020-06-18 Pedro Alves <palves@redhat.com>
5955
5956 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5957 of saving/restoring inferior_ptid.
5958
612f258a
TT
59592020-06-17 Tom Tromey <tom@tromey.com>
5960
5961 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5962 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5963 declare.
5964 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5965
efb763a5
SM
59662020-06-15 Simon Marchi <simon.marchi@efficios.com>
5967
5968 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5969 of partial symtabs.
5970
2951f6c0
SM
59712020-06-17 Simon Marchi <simon.marchi@efficios.com>
5972
5973 * regformats/reg-arm.dat: Remove.
5974 * regformats/reg-bfin.dat: Remove.
5975 * regformats/reg-cris.dat: Remove.
5976 * regformats/reg-crisv32.dat: Remove.
5977 * regformats/reg-m32r.dat: Remove.
5978 * regformats/reg-tilegx.dat: Remove.
5979 * regformats/reg-tilegx32.dat: Remove.
5980
7d458ea5
SM
59812020-06-17 Simon Marchi <simon.marchi@efficios.com>
5982
5983 * features/Makefile (WHICH): Remove arm files.
5984 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5985 * regformats/arm/arm-with-neon.dat: Remove.
5986 * regformats/arm/arm-with-vfpv2.dat: Remove.
5987 * regformats/arm/arm-with-vfpv3.dat: Remove.
5988
3af96c0d
SM
59892020-06-17 Simon Marchi <simon.marchi@efficios.com>
5990
5991 * features/Makefile (XMLTOC): Remove rx.xml.
5992
b25e22fd
PA
59932020-06-17 Pedro Alves <palves@redhat.com>
5994
5995 * gdbthread.h (thread_control_state) <trap_expected> Update
5996 comments.
5997
a78a19b1
AB
59982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5999
6000 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6001 ada_language::lookup_symbol_nonlocal.
6002 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6003 (ada_language::lookup_symbol_nonlocal): New member function,
6004 implementation from ada_lookup_symbol_nonlocal.
6005 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6006 initializer.
6007 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6008 initializer.
6009 (cplus_language::lookup_symbol_nonlocal): New member function.
6010 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6011 (minimal_language_data) Likewise.
6012 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6013 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6014 initializer.
6015 (d_language::lookup_symbol_nonlocal): New member function.
6016 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6017 initializer.
6018 (f_language::lookup_symbol_nonlocal): New member function.
6019 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6020 initializer.
6021 * language.c (unknown_language_data): Likewise.
6022 (auto_language_data): Likewise.
6023 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6024 field.
6025 (language_defn::lookup_symbol_nonlocal): New member function.
6026 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6027 initializer.
6028 * objc-lang.c (objc_language_data): Likewise.
6029 * opencl-lang.c (opencl_language_data): Likewise.
6030 * p-lang.c (pascal_language_data): Likewise.
6031 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6032 rust_language::lookup_symbol_nonlocal.
6033 (rust_language_data): Delete la_lookup_symbol_nonlocal
6034 initializer.
6035 (rust_language::lookup_symbol_nonlocal): New member function,
6036 implementation from rust_lookup_symbol_nonlocal.
6037 * symtab.c (lookup_symbol_aux): Update call to
6038 lookup_symbol_nonlocal.
6039 (basic_lookup_symbol_nonlocal): Rename to...
6040 (language_defn::lookup_symbol_nonlocal): ...this, and update
6041 header comment. Remove language_defn parameter, and replace with
6042 uses of `this'.
6043 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6044
ebe2334e
AB
60452020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6046
6047 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6048 initializer.
6049 (ada_language::value_print_inner): New member function.
6050 * c-lang.c (c_language_data): Delete la_value_print_inner
6051 initializer.
6052 (cplus_language_data): Likewise.
6053 (asm_language_data): Likewise.
6054 (minimal_language_data): Likewise.
6055 * d-lang.c (d_language_data): Likewise.
6056 (d_language::value_print_inner): New member function.
6057 * f-lang.c (f_language_data): Delete la_value_print_inner
6058 initializer.
6059 (f_language::value_print_inner): New member function.
6060 * f-lang.h (f_value_print_innner): Rename to...
6061 (f_value_print_inner): ...this (note spelling of 'inner').
6062 * f-valprint.c (f_value_print_innner): Rename to...
6063 (f_value_print_inner): ...this (note spelling of 'inner').
6064 * go-lang.c (go_language_data): Delete la_value_print_inner
6065 initializer.
6066 (go_language::value_print_inner): New member function.
6067 * language.c (language_defn::value_print_inner): Define new member
6068 function.
6069 (unk_lang_value_print_inner): Delete.
6070 (unknown_language_data): Delete la_value_print_inner initializer.
6071 (unknown_language::value_print_inner): New member function.
6072 (auto_language_data): Delete la_value_print_inner initializer.
6073 (auto_language::value_print_inner): New member function.
6074 * language.h (language_data): Delete la_value_print_inner field.
6075 (language_defn::value_print_inner): Delcare new member function.
6076 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6077 initializer.
6078 (m2_language::value_print_inner): New member function.
6079 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6080 initializer.
6081 * opencl-lang.c (opencl_language_data): Likewise.
6082 * p-lang.c (pascal_language_data): Likewise.
6083 (pascal_language::value_print_inner): New member function.
6084 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6085 initializer.
6086 (rust_language::value_print_inner): New member function.
6087 * valprint.c (do_val_print): Update call to value_print_inner.
6088
a1d1fa3e
AB
60892020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6090
6091 * ada-lang.c (ada_language_data): Delete la_value_print
6092 initializer.
6093 (ada_language::value_print): New member function.
6094 * c-lang.c (c_language_data): Delete la_value_print initializer.
6095 (cplus_language_data): Likewise.
6096 (asm_language_data): Likewise.
6097 (minimal_language_data): Likewise.
6098 * d-lang.c (d_language_data): Likewise.
6099 * f-lang.c (f_language_data): Likewise.
6100 * go-lang.c (go_language_data): Likewise.
6101 * language.c (unk_lang_value_print): Delete.
6102 (language_defn::value_print): Define new member function.
6103 (unknown_language_data): Delete la_value_print initializer.
6104 (unknown_language::value_print): New member function.
6105 (auto_language_data): Delete la_value_print initializer.
6106 (auto_language::value_print): New member function.
6107 * language.h (language_data): Delete la_value_print field.
6108 (language_defn::value_print): Declare new member function.
6109 (LA_VALUE_PRINT): Update call to value_print.
6110 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6111 * objc-lang.c (objc_language_data): Likewise.
6112 * opencl-lang.c (opencl_language_data): Likewise.
6113 * p-lang.c (pascal_language_data): Likewise.
6114 (pascal_language::value_print): New member function.
6115 * rust-lang.c (rust_language_data): Delete la_value_print
6116 initializer.
6117
f16a9f57
AB
61182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6119
6120 * ada-lang.c (ada_watch_location_expression): Rename to
6121 ada_language::watch_location_expression.
6122 (ada_language_data): Delete la_watch_location_expression
6123 initializer.
6124 (ada_language::watch_location_expression): New member function,
6125 implementation from ada_watch_location_expression.
6126 * breakpoint.c (watch_command_1): Update call to
6127 watch_location_expression.
6128 * c-lang.c (c_watch_location_expression): Rename to
6129 language_defn::watch_location_expression.
6130 (c_language_data): Delete la_watch_location_expression
6131 initializer.
6132 (cplus_language_data): Likewise.
6133 (asm_language_data): Likewise.
6134 (minimal_language_data): Likewise.
6135 * c-lang.h (c_watch_location_expression): Delete declaration.
6136 * d-lang.c (d_language_data): Delete la_watch_location_expression
6137 initializer.
6138 * f-lang.c (f_language_data): Likewise.
6139 * go-lang.c (go_language_data): Likewise.
6140 * language.c (language_defn::watch_location_expression): Member
6141 function implementation from c_watch_location_expression.
6142 (unknown_language_data): Delete la_watch_location_expression
6143 initializer.
6144 (auto_language_data): Likewise.
6145 * language.h (language_data): Delete la_watch_location_expression
6146 field.
6147 (language_defn::watch_location_expression): Declare new member
6148 function.
6149 * m2-lang.c (m2_language_data): Delete
6150 la_watch_location_expression initializer.
6151 * objc-lang.c (objc_language_data): Likewise.
6152 * opencl-lang.c (opencl_language_data): Likewise.
6153 * p-lang.c (pascal_language_data): Likewise.
6154 * rust-lang.c (rust_watch_location_expression): Rename to
6155 rust_language::watch_location_expression.
6156 (rust_language_data): Delete la_watch_location_expression
6157 initializer.
6158 (rust_language::watch_location_expression): New member function,
6159 implementation from rust_watch_location_expression.
6160
7e56227d
AB
61612020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6162
6163 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6164 ada_language::collect_symbol_completion_matches.
6165 (ada_language_data): Delete la_collect_symbol_completion_matches
6166 initializer.
6167 (ada_language::collect_symbol_completion_matches): New member
6168 function, implementation from
6169 ada_collect_symbol_completion_matches.
6170 * c-lang.c (c_language_data): Delete
6171 la_collect_symbol_completion_matches initializer.
6172 (cplus_language_data): Likewise.
6173 (asm_language_data): Likewise.
6174 (minimal_language_data): Likewise.
6175 * d-lang.c (d_language_data): Likewise.
6176 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6177 f_language::collect_symbol_completion_matches.
6178 (f_language_data): Delete la_collect_symbol_completion_matches
6179 initializer.
6180 (f_language::collect_symbol_completion_matches) New member
6181 function, implementation from f_collect_symbol_completion_matches.
6182 * go-lang.c (go_language_data): Delete
6183 la_collect_symbol_completion_matches initializer.
6184 * language.c (unknown_language_data): Likewise.
6185 (auto_language_data): Likewise.
6186 * language.h (language_data): Delete
6187 la_collect_symbol_completion_matches field.
6188 (language_defn::collect_symbol_completion_matches): New member
6189 function.
6190 * m2-lang.c (m2_language_data): Delete
6191 la_collect_symbol_completion_matches initializer.
6192 * objc-lang.c (objc_language_data): Likewise.
6193 * opencl-lang.c (opencl_language_data): Likewise.
6194 * p-lang.c (pascal_language_data): Likewise.
6195 * rust-lang.c (rust_language_data): Likewise.
6196 * symtab.c (default_collect_symbol_completion_matches): Delete.
6197 (collect_symbol_completion_matches): Update call to
6198 collect_symbol_completion_matches.
6199 (collect_symbol_completion_matches_type): Likewise.
6200 * symtab.h (default_collect_symbol_completion_matches): Delete
6201 declaration.
6202
53fc67f8
AB
62032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6204
6205 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6206 (ada_language_data): Delete la_word_break_characters initializer.
6207 (ada_language::word_break_characters): New member function.
6208 * c-lang.c (c_language_data): Delete la_word_break_characters
6209 initializer.
6210 (cplus_language_data): Likewise.
6211 (asm_language_data): Likewise.
6212 (minimal_language_data): Likewise.
6213 * completer.c: Update global comment.
6214 (advance_to_expression_complete_word_point): Update call to
6215 word_break_characters.
6216 (complete_files_symbols): Likewise.
6217 (complete_line_internal_1): Likewise.
6218 (default_completer_handle_brkchars): Likewise.
6219 (skip_quoted_chars): Likewise.
6220 * d-lang.c (d_language_data): Delete la_word_break_characters
6221 initializer.
6222 * f-lang.c (f_word_break_characters): Delete.
6223 (f_language_data): Delete la_word_break_characters initializer.
6224 (f_language::word_break_characters): New member function.
6225 * go-lang.c (go_language_data): Delete la_word_break_characters
6226 initializer.
6227 * language.c (unknown_language_data): Likewise.
6228 (auto_language_data): Likewise.
6229 * language.h (default_word_break_characters): Move declaration to
6230 earlier in the file.
6231 (language_data): Delete la_word_break_characters field.
6232 (language_defn::word_break_characters): New member function.
6233 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6234 initializer.
6235 * objc-lang.c (objc_language_data): Likewise.
6236 * opencl-lang.c (opencl_language_data): Likewise.
6237 * p-lang.c (pascal_language_data): Likewise.
6238 * rust-lang.c (rust_language_data): Likewise.
6239
c9debfb9
AB
62402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6241
6242 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6243 (ada_language_data): Delete la_get_symbol_name_matcher
6244 initializer.
6245 (language_defn::get_symbol_name_matcher_inner): New member
6246 function.
6247 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6248 initializer.
6249 (cplus_language_data): Likewise.
6250 (cplus_language::get_symbol_name_matcher_inner): New member
6251 function.
6252 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6253 (minimal_language_data): Likewise.
6254 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6255 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6256 initializer.
6257 * dictionary.c (iter_match_first_hashed): Update call to
6258 get_symbol_name_matcher.
6259 (iter_match_next_hashed): Likewise.
6260 (iter_match_next_linear): Likewise.
6261 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6262 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6263 initializer.
6264 (f_language::get_symbol_name_matcher_inner): New member function.
6265 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6266 initializer.
6267 * language.c (default_symbol_name_matcher): Update header comment,
6268 make static.
6269 (language_defn::get_symbol_name_matcher): New definition.
6270 (language_defn::get_symbol_name_matcher_inner): Likewise.
6271 (get_symbol_name_matcher): Delete.
6272 (unknown_language_data): Delete la_get_symbol_name_matcher
6273 initializer.
6274 (auto_language_data): Likewise.
6275 * language.h (language_data): Delete la_get_symbol_name_matcher
6276 field.
6277 (language_defn::get_symbol_name_matcher): New member function.
6278 (language_defn::get_symbol_name_matcher_inner): Likewise.
6279 (default_symbol_name_matcher): Delete declaration.
6280 * linespec.c (find_methods): Update call to
6281 get_symbol_name_matcher.
6282 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6283 initializer.
6284 * minsyms.c (lookup_minimal_symbol): Update call to
6285 get_symbol_name_matcher.
6286 (iterate_over_minimal_symbols): Likewise.
6287 * objc-lang.c (objc_language_data): Delete
6288 la_get_symbol_name_matcher initializer.
6289 * opencl-lang.c (opencl_language_data): Likewise.
6290 * p-lang.c (pascal_language_data): Likewise.
6291 * psymtab.c (psymbol_name_matches): Update call to
6292 get_symbol_name_matcher.
6293 * rust-lang.c (rust_language_data): Delete
6294 la_get_symbol_name_matcher initializer.
6295 * symtab.c (symbol_matches_search_name): Update call to
6296 get_symbol_name_matcher.
6297 (compare_symbol_name): Likewise.
6298
9a49ad8c
AB
62992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6300
6301 * ada-lang.c (ada_language_data): Delete la_compute_program
6302 initializer.
6303 * c-lang.c (c_language_data): Likewise.
6304 (c_language::compute_program): New member function.
6305 (cplus_language_data): Delete la_compute_program initializer.
6306 (cplus_language::compute_program): New member function.
6307 (asm_language_data): Delete la_compute_program initializer.
6308 (minimal_language_data): Likewise.
6309 * c-lang.h (c_compute_program): Update comment.
6310 (cplus_compute_program): Likewise.
6311 * compile/compile-c-support.c (c_compute_program): Likewise.
6312 (cplus_compute_program): Likewise.
6313 * compile/compile.c (compile_to_object): Update call to
6314 la_compute_program.
6315 * d-lang.c (d_language_data): Delete la_compute_program
6316 initializer.
6317 * f-lang.c (f_language_data): Likewise.
6318 * go-lang.c (go_language_data): Likewise.
6319 * language.c (unknown_language_data): Likewise.
6320 (auto_language_data): Likewise.
6321 * language.h (language_data): Delete la_compute_program field.
6322 (language_defn::compute_program): New member function.
6323 * m2-lang.c (m2_language_data): Delete la_compute_program
6324 initializer.
6325 * objc-lang.c (objc_language_data): Likewise.
6326 * opencl-lang.c (opencl_language_data): Likewise.
6327 * p-lang.c (pascal_language_data): Likewise.
6328 * rust-lang.c (rust_language_data): Likewise.
6329
eff93b4d
AB
63302020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6331
6332 * ada-lang.c (ada_language_data) Delete
6333 la_class_name_from_physname initializer.
6334 * c-lang.c (c_language_data): Likewise.
6335 (cplus_language_data): Likewise.
6336 (cplus_language::class_name_from_physname): New member function.
6337 (asm_language_data): Delete la_class_name_from_physname
6338 initializer.
6339 (minimal_language_data): Likewise.
6340 * d-lang.c (d_language_data): Likewise.
6341 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6342 method on language_defn class.
6343 (guess_full_die_structure_name): Likewise.
6344 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6345 initializer.
6346 * go-lang.c (go_language_data): Likewise.
6347 * language.c (language_class_name_from_physname): Delete.
6348 (unk_lang_class_name): Delete.
6349 (unknown_language_data): Delete la_class_name_from_physname
6350 initializer.
6351 (auto_language_data): Likewise.
6352 * language.h (language_data): Delete la_class_name_from_physname
6353 field.
6354 (language_defn::class_name_from_physname): New function.
6355 (language_class_name_from_physname): Delete declaration.
6356 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6357 initializer.
6358 * objc-lang.c (objc_language_data): Likewise.
6359 * opencl-lang.c (opencl_language_data): Likewise.
6360 * p-lang.c (pascal_language_data): Likewise.
6361 * rust-lang.c (rust_language_data): Likewise.
6362
de543742
TT
63632020-06-16 Tom Tromey <tom@tromey.com>
6364
6365 * tui/tui-data.h (STATUS_NAME): New macro.
6366 * tui/tui-layout.c (tui_remove_some_windows)
6367 (initialize_known_windows, tui_register_window)
6368 (tui_layout_split::remove_windows, initialize_layouts)
6369 (tui_new_layout_command): Don't use hard-coded window names.
6370
a350efd4
TT
63712020-06-16 Tom Tromey <tom@tromey.com>
6372
6373 PR tui/25348:
6374 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6375 tui_initialize_readline. Only run once. Call rl_initialize.
6376 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6377 tui_initialize_readline.
6378 * tui/tui-io.c (tui_setup_io): Call
6379 tui_ensure_readline_initialized.
6380 * tui/tui-interp.c (tui_interp::init): Update.
6381
39ec0490
TT
63822020-06-16 Tom Tromey <tom@tromey.com>
6383
6384 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6385 Also preserve the status window.
6386
d2d1ea20
TT
63872020-06-16 Tom Tromey <tom@tromey.com>
6388
6389 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6390 where m_window==nullptr.
6391
66920317
TT
63922020-06-15 Tom Tromey <tromey@adacore.com>
6393
6394 * windows-nat.c (windows_nat::handle_output_debug_string):
6395 Update.
6396 (windows_nat::handle_ms_vc_exception): Update.
6397 * target.h (target_read_string): Change API.
6398 * target.c (target_read_string): Change API.
6399 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6400 Update.
6401 * solib-frv.c (frv_current_sos): Update.
6402 * solib-dsbt.c (dsbt_current_sos): Update.
6403 * solib-darwin.c (darwin_current_sos): Update.
6404 * linux-thread-db.c (inferior_has_bug): Update.
6405 * expprint.c (print_subexp_standard): Update.
6406 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6407 (ada_exception_message_1): Update.
6408
a5d871dd
TT
64092020-06-15 Tom Tromey <tromey@adacore.com>
6410
6411 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6412
670e35fa
TT
64132020-06-15 Tom Tromey <tromey@adacore.com>
6414
6415 * valprint.c (read_string): Update comment.
6416 * target.c (MIN): Remove.
6417 (target_read_string): Rewrite.
6418
f5272a3b
TT
64192020-06-15 Tom Tromey <tromey@adacore.com>
6420
6421 * corefile.c (read_memory_string): Remove.
6422 * ada-valprint.c (ada_value_print_ptr): Update.
6423 * ada-lang.h (ada_tag_name): Change return type.
6424 * ada-lang.c (type_from_tag): Update.
6425 (ada_tag_name_from_tsd): Change return type. Use
6426 target_read_string.
6427 (ada_tag_name): Likewise.
6428 * gdbcore.h (read_memory_string): Don't declare.
6429
2c074f49
HD
64302020-06-14 Hannes Domani <ssbssa@yahoo.de>
6431
6432 * symtab.c (rbreak_command): Ignore Windows drive colon.
6433
6a17d503
SM
64342020-06-12 Simon Marchi <simon.marchi@efficios.com>
6435
6436 * NEWS: Mention removed GDBserver host support.
6437
453c733f
NC
64382020-06-12 Nelson Chu <nelson.chu@sifive.com>
6439
6440 * features/riscv/rebuild-csr-xml.sh: Updated.
6441
2b4e6a3f
TT
64422020-06-11 Tom Tromey <tom@tromey.com>
6443
6444 PR gdb/18318:
6445 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6446
4412332f
JG
64472020-06-09 Jonny Grant <jg@jguk.org>
64482020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6449
6450 * main.c (captured_main_1): Don't print new line after help.
6451 (print_gdb_help): add mailing list and IRC channel information
6452 to --help. Add new lines between items in the footer. Remove
6453 quotes around bug url.
6454
2f33032a
KS
64552020-06-11 Keith Seitz <keiths@redhat.com>
6456
6457 PR gdb/21356
6458 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6459 Resolve typedefs for type length calculations.
6460
7ab96794
TV
64612020-06-10 Tom de Vries <tdevries@suse.de>
6462
6463 PR ada/24713
6464 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6465 (write_psymbols): Enable .gdb_index for ada.
6466 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6467 ada.
6468
e5f3ece2
TV
64692020-06-10 Tom de Vries <tdevries@suse.de>
6470
6471 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6472 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6473 namei" instead of "const char *name" argument.
6474 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6475 dw2_symtab_iter_init.
6476
940da03e
SM
64772020-06-08 Simon Marchi <simon.marchi@efficios.com>
6478
6479 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6480 to use type::field and field::type instead.
6481
b6cdac4b
SM
64822020-06-08 Simon Marchi <simon.marchi@efficios.com>
6483
6484 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6485 to use field::type instead.
6486
5d14b6e5
SM
64872020-06-08 Simon Marchi <simon.marchi@efficios.com>
6488
6489 * gdbtypes.h (struct field) <type, set_type>: New methods.
6490 Rename `type` field to...
6491 <m_type>: ... this. Change references throughout to use type or
6492 set_type methods.
6493 (FIELD_TYPE): Use field::type. Change call sites that modify
6494 the field's type to use field::set_type instead.
6495
3d967001
SM
64962020-06-08 Simon Marchi <simon.marchi@efficios.com>
6497
6498 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6499 to use type::index_type instead.
6500
262abc0d
SM
65012020-06-08 Simon Marchi <simon.marchi@efficios.com>
6502
6503 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6504 methods.
6505 (TYPE_INDEX_TYPE): Use type::index_type.
6506 * gdbtypes.c (create_array_type_with_stride): Likewise.
6507
82836c92
TT
65082020-06-07 Tom Tromey <tom@tromey.com>
6509
6510 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6511 parameter.
6512 (generic_value_print): Update.
6513
940dace9
AB
65142020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6515
6516 Revert commit 982a38f60b0.
6517 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6518
982a38f6
AB
65192020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6520
6521 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6522 avoid use after free.
6523
82f06518
TV
65242020-06-05 Tom de Vries <tdevries@suse.de>
6525
6526 * NEWS: Fix typos.
6527
f8c41851
SM
65282020-06-04 Simon Marchi <simon.marchi@efficios.com>
6529
6530 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6531 the per_bfd object.
6532 (dwarf2_read_debug_names): Likewise.
6533 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6534 object when re-using a per_bfd object with an index.
6535
f9b5d5ea
TV
65362020-06-03 Tom de Vries <tdevries@suse.de>
6537
6538 PR symtab/26046
6539 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6540 children for C++.
6541 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6542 DW_TAG_subprogram.
6543
f6eee2d0
AB
65442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6545
6546 * ada-lang.c (ada_language_data): Delete skip_trampoline
6547 initializer.
6548 * c-lang.c (c_language_data): Likewise.
6549 (cplus_language_data): Likewise.
6550 (cplus_language::skip_trampoline): New member function.
6551 (asm_language_data): Delete skip_trampoline initializer.
6552 (minimal_language_data): Likewise.
6553 * d-lang.c (d_language_data): Likewise.
6554 * f-lang.c (f_language_data): Likewise.
6555 * go-lang.c (go_language_data): Likewise.
6556 * language.c (unk_lang_trampoline): Delete function.
6557 (skip_language_trampoline): Update.
6558 (unknown_language_data): Delete skip_trampoline initializer.
6559 (auto_language_data): Likewise.
6560 * language.h (language_data): Delete skip_trampoline field.
6561 (language_defn::skip_trampoline): New function.
6562 * m2-lang.c (m2_language_data): Delete skip_trampoline
6563 initializer.
6564 * objc-lang.c (objc_skip_trampoline): Delete function, move
6565 implementation to objc_language::skip_trampoline.
6566 (objc_language_data): Delete skip_trampoline initializer.
6567 (objc_language::skip_trampoline): New member function with
6568 implementation from objc_skip_trampoline.
6569 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6570 initializer.
6571 * p-lang.c (pascal_language_data): Likewise.
6572 * rust-lang.c (rust_language_data): Likewise.
6573
0a50df5d
AB
65742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6575
6576 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6577 (ada_language::demangle): New member function.
6578 * c-lang.c (c_language_data): Delete la_demangle initializer.
6579 (cplus_language_data): Delete la_demangle initializer.
6580 (cplus_language::demangle): New member function.
6581 (asm_language_data): Delete la_demangle initializer.
6582 (minimal_language_data): Delete la_demangle initializer.
6583 * d-lang.c (d_language_data): Delete la_demangle initializer.
6584 (d_language::demangle): New member function.
6585 * f-lang.c (f_language_data): Delete la_demangle initializer.
6586 (f_language::demangle): New member function.
6587 * go-lang.c (go_language_data): Delete la_demangle initializer.
6588 (go_language::demangle): New member function.
6589 * language.c (language_demangle): Update.
6590 (unk_lang_demangle): Delete.
6591 (unknown_language_data): Delete la_demangle initializer.
6592 (unknown_language::demangle): New member function.
6593 (auto_language_data): Delete la_demangle initializer.
6594 (auto_language::demangle): New member function.
6595 * language.h (language_data): Delete la_demangle field.
6596 (language_defn::demangle): New function.
6597 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6598 * objc-lang.c (objc_language_data): Delete la_demangle
6599 initializer.
6600 (objc_language::demangle): New member function.
6601 * opencl-lang.c (opencl_language_data): Delete la_demangle
6602 initializer.
6603 * p-lang.c (pascal_language_data): Likewise.
6604 * rust-lang.c (rust_language_data): Likewise.
6605 (rust_language::demangle): New member function.
6606
fbfb0a46
AB
66072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6608
6609 * ada-lang.c (ada_language_data): Delete la_print_type
6610 initializer.
6611 (ada_language::print_type): New member function.
6612 * c-lang.c (c_language_data): Delete la_print_type initializer.
6613 (c_language::print_type): New member function.
6614 (cplus_language_data): Delete la_print_type initializer.
6615 (cplus_language::print_type): New member function.
6616 (asm_language_data): Delete la_print_type initializer.
6617 (asm_language::print_type): New member function.
6618 (minimal_language_data): Delete la_print_type initializer.
6619 (minimal_language::print_type): New member function.
6620 * d-lang.c (d_language_data): Delete la_print_type initializer.
6621 (d_language::print_type): New member function.
6622 * f-lang.c (f_language_data): Delete la_print_type initializer.
6623 (f_language::print_type): New member function.
6624 * go-lang.c (go_language_data): Delete la_print_type initializer.
6625 (go_language::print_type): New member function.
6626 * language.c (unk_lang_print_type): Delete.
6627 (unknown_language_data): Delete la_print_type initializer.
6628 (unknown_language::print_type): New member function.
6629 (auto_language_data): Delete la_print_type initializer.
6630 (auto_language::print_type): New member function.
6631 * language.h (language_data): Delete la_print_type field.
6632 (language_defn::print_type): New function.
6633 (LA_PRINT_TYPE): Update.
6634 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6635 (m2_language::print_type): New member function.
6636 * objc-lang.c (objc_language_data): Delete la_print_type
6637 initializer.
6638 (objc_language::print_type): New member function.
6639 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6640 to opencl_language::print_type.
6641 (opencl_language_data): Delete la_print_type initializer.
6642 (opencl_language::print_type): New member function, implementation
6643 from opencl_print_type.
6644 * p-lang.c (pascal_language_data): Delete la_print_type
6645 initializer.
6646 (pascal_language::print_type): New member function.
6647 * rust-lang.c (rust_print_type): Delete, implementation moved to
6648 rust_language::print_type.
6649 (rust_language_data): Delete la_print_type initializer.
6650 (rust_language::print_type): New member function, implementation
6651 from rust_print_type.
6652
6f827019
AB
66532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6654
6655 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6656 implementation moves to...
6657 (ada_language::sniff_from_mangled_name): ...here. Update return
6658 type.
6659 (ada_language_data): Delete la_sniff_from_mangled_name
6660 initializer.
6661 * c-lang.c (c_language_data): Likewise.
6662 (cplus_language_data): Likewise.
6663 (cplus_language::sniff_from_mangled_name): New member function,
6664 implementation taken from gdb_sniff_from_mangled_name.
6665 (asm_language_data): Delete la_sniff_from_mangled_name
6666 initializer.
6667 (minimal_language_data): Likewise.
6668 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6669 implementation moves to cplus_language::sniff_from_mangled_name.
6670 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6671 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6672 moves to...
6673 (d_language::sniff_from_mangled_name): ...here.
6674 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6675 * f-lang.c (f_language_data): Likewise.
6676 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6677 moves to...
6678 (go_language::sniff_from_mangled_name): ...here.
6679 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6680 * language.c (language_sniff_from_mangled_name): Delete.
6681 (unknown_language_data): Delete la_sniff_from_mangled_name
6682 initializer.
6683 (auto_language_data): Likewise.
6684 * language.h (language_data): Delete la_sniff_from_mangled_name
6685 field.
6686 (language_defn::sniff_from_mangled_name): New function.
6687 (language_sniff_from_mangled_name): Delete declaration.
6688 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6689 field.
6690 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6691 implementation moves to...
6692 (objc_language::sniff_from_mangled_name): ...here.
6693 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6694 * opencl-lang.c (opencl_language_data): Likewise.
6695 * p-lang.c (pascal_language_data): Likewise.
6696 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6697 implementation moves to...
6698 (rust_language::sniff_from_mangled_name): ...here.
6699 (rust_language_data): Delete la_sniff_from_mangled_name
6700 initializer.
6701 * symtab.c (symbol_find_demangled_name): Call
6702 sniff_from_mangled_name member function.
6703
fb8006fd
AB
67042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6705
6706 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6707 initializer.
6708 * c-lang.c (c_language_data): Likewise.
6709 (cplus_language_data): Likewise.
6710 (cplus_language::search_name_hash): New member function.
6711 (asm_language_data): Delete la_search_name_hash initializer.
6712 (minimal_language_data): Likewise.
6713 * d-lang.c (d_language_data): Likewise.
6714 * dictionary.c (default_search_name_hash): Rename to...
6715 (language_defn::search_name_hash): ...this.
6716 * f-lang.c (f_language_data): Likewise.
6717 (f_language::search_name_hash): New member function.
6718 * go-lang.c (go_language_data): Delete la_search_name_hash
6719 initializer.
6720 * language.c (unknown_language_data): Likewise.
6721 (auto_language_data): Likewise.
6722 * language.h (struct language_data): Delete la_search_name_hash
6723 field.
6724 (language_defn::search_name_hash): Declare new member function.
6725 (default_search_name_hash): Delete declaration.
6726 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6727 initializer.
6728 * objc-lang.c (objc_language_data): Likewise.
6729 * opencl-lang.c (opencl_language_data): Likewise.
6730 * p-lang.c (pascal_language_data): Likewise.
6731 * rust-lang.c (rust_language_data): Likewise.
6732 * symtab.c (search_name_hash): Update call.
6733
8e25bafe
AB
67342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6735
6736 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6737 initializer.
6738 * c-lang.c (class compile_instance): Declare.
6739 (c_language_data): Delete la_get_compile_instance initializer.
6740 (c_language::get_compile_instance): New member function.
6741 (cplus_language_data): Delete la_get_compile_instance initializer.
6742 (cplus_language::get_compile_instance): New member function.
6743 (asm_language_data): Delete la_get_compile_instance initializer.
6744 (minimal_language_data): Likewise.
6745 * c-lang.h (c_get_compile_context): Update comment.
6746 (cplus_get_compile_context): Update comment.
6747 * compile/compile.c (compile_to_object): Update calls, don't rely
6748 on function pointer being NULL.
6749 * d-lang.c (d_language_data): Delete la_get_compile_instance
6750 initializer.
6751 * f-lang.c (f_language_data): Likewise.
6752 * go-lang.c (go_language_data): Likewise.
6753 * language.c (unknown_language_data): Likewise.
6754 (auto_language_data): Likewise.
6755 * language.h (language_data): Delete la_get_compile_instance field.
6756 (language_defn::get_compile_instance): New member function.
6757 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6758 initializer.
6759 * objc-lang.c (objc_language_data): Likewise.
6760 * opencl-lang.c (opencl_language_data): Likewise.
6761 * p-lang.c (pascal_language_data): Likewise.
6762 * rust-lang.c (rust_language_data): Likewise.
6763
4009ee92
AB
67642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6765
6766 * ada-lang.c (ada_add_all_symbols): Update comment.
6767 (ada_iterate_over_symbols): Delete, move implementation to...
6768 (ada_language::iterate_over_symbols): ...here, a new member
6769 function, rewrite to use range based for loop.
6770 (ada_language_data): Delete la_iterate_over_symbols initializer.
6771 * c-lang.c (c_language_data): Likewise.
6772 (cplus_language_data): Likewise.
6773 (asm_language_data): Likewise.
6774 (minimal_language_data): Likewise.
6775 * d-lang.c (d_language_data): Likewise.
6776 * f-lang.c (f_language_data): Likewise.
6777 * go-lang.c (go_language_data): Likewise.
6778 * language.c (unknown_language_data): Likewise.
6779 (auto_language_data): Likewise.
6780 * language.h (language_data): Delete la_iterate_over_symbols field.
6781 (language_defn::iterate_over_symbols): New member function.
6782 (LA_ITERATE_OVER_SYMBOLS): Update.
6783 * linespec.c (iterate_over_all_matching_symtabs): Update.
6784 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6785 initializer.
6786 * objc-lang.c (objc_language_data): Likewise.
6787 * opencl-lang.c (opencl_language_data): Likewise.
6788 * p-lang.c (pascal_language_data): Likewise.
6789 * rust-lang.c (rust_language_data): Likewise.
6790
54f4ca46
AB
67912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6792
6793 * ada-lang.c (ada_language_data): Delete
6794 la_lookup_transparent_type initializer.
6795 * c-lang.c (c_language_data): Likewise.
6796 (cplus_language_data): Likewise.
6797 (cplus_language::lookup_transparent_type): New member function.
6798 (asm_language_data): Delete la_lookup_transparent_type
6799 initializer.
6800 (minimal_language_data): Likewise.
6801 * d-lang.c (d_language_data): Likewise.
6802 * f-lang.c (f_language_data): Likewise.
6803 * go-lang.c (go_language_data): Likewise.
6804 * language.c (unknown_language_data): Likewise.
6805 (auto_language_data): Likewise.
6806 * language.h (struct language_data): Delete
6807 la_lookup_transparent_type field.
6808 (language_defn::lookup_transparent_type): New member function.
6809 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6810 initializer.
6811 * objc-lang.c (objc_language_data): Likewise.
6812 * opencl-lang.c (opencl_language_data): Likewise.
6813 * p-lang.c (pascal_language_data): Likewise.
6814 * rust-lang.c (rust_language_data): Likewise.
6815 * symtab.c (symbol_matches_domain): Update call.
6816
1fb314aa
AB
68172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6818
6819 * ada-lang.c (ada_language_arch_info): Delete function, move
6820 implementation to...
6821 (ada_language::language_arch_info): ...here, a new member
6822 function.
6823 (ada_language_data): Delete la_language_arch_info.
6824 * c-lang.c (c_language_data): Likewise.
6825 (c_language::language_arch_info): New member function.
6826 (cplus_language_arch_info): Delete function, move
6827 implementation to...
6828 (cplus_language::language_arch_info): ...here, a new member
6829 function.
6830 (cplus_language_data): Delete la_language_arch_info.
6831 (asm_language_data): Likewise.
6832 (asm_language::language_arch_info): New member function.
6833 (minimal_language_data): Delete la_language_arch_info.
6834 (minimal_language::language_arch_info): New member function.
6835 * d-lang.c (d_language_arch_info): Delete function, move
6836 implementation to...
6837 (d_language::language_arch_info): ...here, a new member
6838 function.
6839 (d_language_data): Delete la_language_arch_info.
6840 * f-lang.c (f_language_arch_info): Delete function, move
6841 implementation to...
6842 (f_language::language_arch_info): ...here, a new member
6843 function.
6844 (f_language_data): Delete la_language_arch_info.
6845 * go-lang.c (go_language_arch_info): Delete function, move
6846 implementation to...
6847 (go_language::language_arch_info): ...here, a new member
6848 function.
6849 (go_language_data): Delete la_language_arch_info.
6850 * language.c (unknown_language_data): Likewise.
6851 (unknown_language::language_arch_info): New member function.
6852 (auto_language_data): Delete la_language_arch_info.
6853 (auto_language::language_arch_info): New member function.
6854 (language_gdbarch_post_init): Update call to
6855 la_language_arch_info.
6856 * language.h (language_data): Delete la_language_arch_info
6857 function pointer.
6858 (language_defn::language_arch_info): New function.
6859 * m2-lang.c (m2_language_arch_info): Delete function, move
6860 implementation to...
6861 (m2_language::language_arch_info): ...here, a new member
6862 function.
6863 (m2_language_data): Delete la_language_arch_info.
6864 * objc-lang.c (objc_language_arch_info): Delete function, move
6865 implementation to...
6866 (objc_language::language_arch_info): ...here, a new member
6867 function.
6868 (objc_language_data): Delete la_language_arch_info.
6869 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6870 implementation to...
6871 (opencl_language::language_arch_info): ...here, a new member
6872 function.
6873 (opencl_language_data): Delete la_language_arch_info.
6874 * p-lang.c (pascal_language_arch_info): Delete function, move
6875 implementation to...
6876 (pascal_language::language_arch_info): ...here, a new member
6877 function.
6878 (pascal_language_data): Delete la_language_arch_info.
6879 * rust-lang.c (rust_language_arch_info): Delete function, move
6880 implementation to...
6881 (rust_language::language_arch_info): ...here, a new member
6882 function.
6883 (rust_language_data): Delete la_language_arch_info.
6884
48448202
AB
68852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6886
6887 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6888 initializer.
6889 * c-lang.c (c_language_data): Likewise.
6890 (cplus_language_data): Likewise.
6891 (cplus_language::pass_by_reference_info): New method.
6892 (asm_language_data): Delete la_pass_by_reference initializer.
6893 (minimal_language_data): Likewise.
6894 * cp-abi.c (cp_pass_by_reference): Remove use of
6895 default_pass_by_reference.
6896 * d-lang.c (d_language_data): Likewise.
6897 * f-lang.c (f_language_data): Likewise.
6898 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6899 default_pass_by_reference.
6900 * go-lang.c (go_language_data): Likewise.
6901 * language.c (language_pass_by_reference): Update.
6902 (default_pass_by_reference): Delete.
6903 (unknown_language_data): Delete la_pass_by_reference
6904 initializer.
6905 (auto_language_data): Likewise.
6906 * language.h (struct language_data): Delete la_pass_by_reference
6907 field.
6908 (language_defn::pass_by_reference_info): New member function.
6909 (default_pass_by_reference): Delete declaration.
6910 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6911 initializer.
6912 * objc-lang.c (objc_language_data): Likewise.
6913 * opencl-lang.c (opencl_language_data): Likewise.
6914 * p-lang.c (pascal_language_data): Likewise.
6915 * rust-lang.c (rust_language_data): Likewise.
6916
15e5fd35
AB
69172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6918
6919 * ada-lang.c (ada_read_var_value): Delete function, move
6920 implementation to...
6921 (ada_language::read_var_value): ...here.
6922 (ada_language_data): Delete la_read_var_value initializer.
6923 * c-lang.c (c_language_data): Likewise.
6924 (cplus_language_data): Likewise.
6925 (minimal_language_data): Likewise.
6926 * d-lang.c (d_language_data): Likewise.
6927 * f-lang.c (f_language_data): Likewise.
6928 * findvar.c (default_read_var_value): Rename to...
6929 (language_defn::read_var_value): ...this.
6930 * findvar.c (read_var_value): Update header comment, and change to
6931 call member function instead of function pointer.
6932 * go-lang.c (go_language_data): Likewise.
6933 * language.c (unknown_language_data): Delete la_read_var_value
6934 initializer.
6935 (auto_language_data): Likewise.
6936 * language.h (struct language_data): Delete la_read_var_value
6937 field.
6938 (language_defn::read_var_value): New member function.
6939 (default_read_var_value): Delete declaration.
6940 * m2-lang.c (m2_language_data): Delete la_read_var_value
6941 initializer.
6942 * objc-lang.c (objc_language_data): Likewise.
6943 * opencl-lang.c (opencl_language_data): Likewise.
6944 * p-lang.c (pascal_language_data): Likewise.
6945 * rust-lang.c (rust_language_data): Likewise.
6946 * value.h (default_read_var_value): Delete declaration.
6947
5bd40f2a
AB
69482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6949
6950 * ada-lang.c (ada_print_array_index): Delete function, move
6951 implementation to...
6952 (ada_language::print_array_index): ...here.
6953 (ada_language_data): Delete la_print_array_index initializer.
6954 * c-lang.c (c_language_data): Likewise.
6955 (cplus_language_data): Likewise.
6956 (minimal_language_data): Likewise.
6957 * d-lang.c (d_language_data): Likewise.
6958 * f-lang.c (f_language_data): Likewise.
6959 * go-lang.c (go_language_data): Likewise.
6960 * language.c (default_print_array_index): Delete function, move
6961 implementation to...
6962 (language_defn::print_array_index): ...here.
6963 (unknown_language_data): Delete la_print_array_index initializer.
6964 (auto_language_data): Likewise.
6965 * language.h (struct language_data): Delete la_print_array_index
6966 field.
6967 (language_defn::print_array_index): New member function.
6968 (LA_PRINT_ARRAY_INDEX): Update.
6969 (default_print_array_index): Delete declaration.
6970 * m2-lang.c (m2_language_data): Delete la_print_array_index
6971 initializer.
6972 * objc-lang.c (objc_language_data): Likewise.
6973 * opencl-lang.c (opencl_language_data): Likewise.
6974 * p-lang.c (pascal_language_data): Likewise.
6975 * rust-lang.c (rust_language_data): Likewise.
6976
0874fd07
AB
69772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6978
6979 * gdb/ada-lang.c (ada_language_defn): Convert to...
6980 (ada_language_data): ...this.
6981 (class ada_language): New class.
6982 (ada_language_defn): New static global.
6983 * gdb/c-lang.c (c_language_defn): Convert to...
6984 (c_language_data): ...this.
6985 (class c_language): New class.
6986 (c_language_defn): New static global.
6987 (cplus_language_defn): Convert to...
6988 (cplus_language_data): ...this.
6989 (class cplus_language): New class.
6990 (cplus_language_defn): New static global.
6991 (asm_language_defn): Convert to...
6992 (asm_language_data): ...this.
6993 (class asm_language): New class.
6994 (asm_language_defn): New static global.
6995 (minimal_language_defn): Convert to...
6996 (minimal_language_data): ...this.
6997 (class minimal_language): New class.
6998 (minimal_language_defn): New static global.
6999 * gdb/d-lang.c (d_language_defn): Convert to...
7000 (d_language_data): ...this.
7001 (class d_language): New class.
7002 (d_language_defn): New static global.
7003 * gdb/f-lang.c (f_language_defn): Convert to...
7004 (f_language_data): ...this.
7005 (class f_language): New class.
7006 (f_language_defn): New static global.
7007 * gdb/go-lang.c (go_language_defn): Convert to...
7008 (go_language_data): ...this.
7009 (class go_language): New class.
7010 (go_language_defn): New static global.
7011 * gdb/language.c (unknown_language_defn): Remove declaration.
7012 (current_language): Initialize to nullptr, real initialization is
7013 moved to _initialize_language.
7014 (languages): Delete global.
7015 (language_defn::languages): Define.
7016 (set_language_command): Use language_defn::languages.
7017 (set_language): Likewise.
7018 (range_error): Likewise.
7019 (language_enum): Likewise.
7020 (language_def): Likewise.
7021 (add_set_language_command): Use language_def::languages for the
7022 language list, and language_def to lookup language pointers.
7023 (skip_language_trampoline): Use language_defn::languages.
7024 (unknown_language_defn): Convert to...
7025 (unknown_language_data): ...this.
7026 (class unknown_language): New class.
7027 (unknown_language_defn): New static global.
7028 (auto_language_defn): Convert to...
7029 (auto_language_data): ...this.
7030 (class auto_language): New class.
7031 (auto_language_defn): New static global.
7032 (language_gdbarch_post_init): Use language_defn::languages.
7033 (_initialize_language): Initialize current_language.
7034 * gdb/language.h (struct language_defn): Rename to...
7035 (struct language_data): ...this.
7036 (struct language_defn): New.
7037 (auto_language_defn): Delete.
7038 (unknown_language_defn): Delete.
7039 (minimal_language_defn): Delete.
7040 (ada_language_defn): Delete.
7041 (asm_language_defn): Delete.
7042 (c_language_defn): Delete.
7043 (cplus_language_defn): Delete.
7044 (d_language_defn): Delete.
7045 (f_language_defn): Delete.
7046 (go_language_defn): Delete.
7047 (m2_language_defn): Delete.
7048 (objc_language_defn): Delete.
7049 (opencl_language_defn): Delete.
7050 (pascal_language_defn): Delete.
7051 (rust_language_defn): Delete.
7052 * gdb/m2-lang.c (m2_language_defn): Convert to...
7053 (m2_language_data): ...this.
7054 (class m2_language): New class.
7055 (m2_language_defn): New static global.
7056 * gdb/objc-lang.c (objc_language_defn): Convert to...
7057 (objc_language_data): ...this.
7058 (class objc_language): New class.
7059 (objc_language_defn): New static global.
7060 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7061 (opencl_language_data): ...this.
7062 (class opencl_language): New class.
7063 (opencl_language_defn): New static global.
7064 * gdb/p-lang.c (pascal_language_defn): Convert to...
7065 (pascal_language_data): ...this.
7066 (class pascal_language): New class.
7067 (pascal_language_defn): New static global.
7068 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7069 language pointer, update comment format.
7070 * gdb/rust-lang.c (rust_language_defn): Convert to...
7071 (rust_language_data): ...this.
7072 (class rust_language): New class.
7073 (rust_language_defn): New static global.
7074
1313c56e
AB
70752020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7076
7077 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7078 member variable.
7079 <m_stmt_at_address>: New member variable.
7080 (lnp_state_machine::record_line): Don't record some lines, update
7081 tracking of is_stmt at the same address.
7082 (lnp_state_machine::lnp_state_machine): Initialise new member
7083 variables.
7084
b7ed9f3d
ST
70852020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7086
7087 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7088 "-include gnu-nat-mig.h".
7089 * gnu-nat-mig.h: New file.
7090 * gnu-nat.c: Include "gnu-nat-mig.h".
7091 (exc_server, msg_reply_server, notify_server,
7092 process_reply_server): Remove declarations.
7093
14a8ad62
ST
70942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7095
7096 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7097 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7098 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7099 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7100 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7101 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7102 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7103 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7104 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7105 to gnu_nat_target class.
7106 * gnu-nat.c: Likewise.
7107 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7108 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7109 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7110 object.
7111 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7112 instead of `gnu_target'.
7113
0af5e106
ST
71142020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7115
7116 * i386-gnu-tdep.c: Include "gdbcore.h"
7117 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7118 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7119 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7120 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7121 i386_gnu_sigcontext_addr): New functions
7122 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7123 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7124 tdep.
7125
078f2fc9
ST
71262020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7127
7128 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7129 before fork_inferior call. Avoid calling it if target_is_pushed returns
7130 true.
7131
53dff92c
ST
71322020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7133
7134 * gnu-nat.h (gnu_target): New variable declaration.
7135 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7136 gnu_target.
7137 * gnu-nat.c (gnu_target): New variable.
7138 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7139 add_thread_silent, and add_thread calls.
7140 (gnu_nat_target::create_inferior): Pass gnu_target to
7141 add_thread_silent, thread_change_ptid call.
7142 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7143 call.
7144
5a8b8627
ST
71452020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7146
7147 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7148 (gnu_nat_target::find_memory_regions): Remove unused
7149 `old_address' variable.
7150
366f550a
ST
71512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7152
7153 * gnu-nat.c: Include "gdbarch.h".
7154
f14871bf
ST
71552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7156
7157 * reply_mig_hack.awk (Error return): Cast function through
7158 void *, to bypass compiler function call check.
7159
c6887cfb
ST
71602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7161
7162 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7163 $(srcdir)/reply_mig_hack.awk.
7164
6930bffe
ST
71652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7166
7167 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7168
112c22ed
JG
71692020-05-30 Jonny Grant <jg@jguk.org>
7170
7171 * configure.ac (ACX_BUGURL): change bug URL to https.
7172
f68f85b5
PA
71732020-05-30 Pedro Alves <palves@redhat.com>
7174
7175 * cp-support.c (replace_typedefs_template): New.
7176 (replace_typedefs_qualified_name): Handle
7177 DEMANGLE_COMPONENT_TEMPLATE.
7178
976ca316
SM
71792020-05-29 Simon Marchi <simon.marchi@efficios.com>
7180
7181 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7182 dwarf2/index-cache.h, dwarf2/index-write.c,
7183 dwarf2/index-write.h, dwarf2/line-header.c,
7184 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7185 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7186 variables and fields from `dwarf2_per_objfile` to just
7187 `per_objfile` throughout.
7188
989ade05
SM
71892020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7190
7191 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7192 <push_dwarf_reg_entry_value>: Add comment.
7193
c47bae85
KB
71942020-05-28 Kevin Buettner <kevinb@redhat.com>
7195 Keith Seitz <keiths@redhat.com>
7196
7197 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7198 instead of PyEval_ReleaseLock.
7199 (class gdbpy_gil): Move to earlier in file.
7200 (finalize_python): Set gdb_python_initialized.
7201 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7202 when not initialized.
7203
44486dcf
SM
72042020-05-28 Simon Marchi <simon.marchi@efficios.com>
7205
7206 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7207 <push_dwarf_reg_entry_value>: Remove assert. Override
7208 per_objfile with caller_per_objfile.
7209
f030440d
TV
72102020-05-28 Tom de Vries <tdevries@suse.de>
7211
7212 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7213 PR gold/15646 workaround to symbol kind "type".
7214
f0fbb768
TT
72152020-05-27 Tom Tromey <tromey@adacore.com>
7216
7217 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7218
af0b2a3e
TT
72192020-05-27 Tom Tromey <tromey@adacore.com>
7220
7221 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7222 Use htab_find_with_hash.
7223 <add_abbrev>: Remove "abbrev_number" parameter.
7224 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7225 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7226 (hash_abbrev): Add comment.
7227 (abbrev_table::lookup_abbrev): Move to header file.
7228 (abbrev_table::read): Update.
7229
7d00ffec
TT
72302020-05-27 Tom Tromey <tromey@adacore.com>
7231
7232 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7233 method.
7234 <canonical_name>: New member.
7235 <raw_name>: Rename from "name".
7236 (partial_die_info): Initialize canonical_name.
7237 (scan_partial_symbols): Check raw_name.
7238 (partial_die_parent_scope, partial_die_full_name)
7239 (add_partial_symbol, add_partial_subprogram)
7240 (add_partial_enumeration, load_partial_dies): Use "name" method.
7241 (partial_die_info::name): New method.
7242 (partial_die_info::read, guess_partial_die_structure_name)
7243 (partial_die_info::fixup): Update.
7244
697bba18
TT
72452020-05-27 Tom Tromey <tromey@adacore.com>
7246
7247 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7248 <get_ref_die_offset>: Inline.
7249 <get_ref_die_offset_complaint>: New method.
7250 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7251 (attribute::get_ref_die_offset_complaint): Rename from
7252 get_ref_die_offset. Just issue complaint.
7253
c17ace43
HD
72542020-05-27 Hannes Domani <ssbssa@yahoo.de>
7255
7256 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7257
96445f0b
HD
72582020-05-27 Hannes Domani <ssbssa@yahoo.de>
7259
7260 * exec.c (exec_file_attach): Use errno value of first openp failure.
7261
ac637ec3
HD
72622020-05-27 Hannes Domani <ssbssa@yahoo.de>
7263
7264 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7265 Don't close thread handle.
7266
17ee85fc
TT
72672020-05-27 Tom Tromey <tom@tromey.com>
7268 Simon Marchi <simon.marchi@efficios.com>
7269
7270 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7271 shared_ptr.
7272 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7273 member.
7274 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7275 dwarf2_per_bfd_objfile_data_key>: New globals.
7276 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7277 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7278 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7279 shared.
7280 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7281 short-circuit when sharing.
7282 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7283 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7284
39b16f87
SM
72852020-05-27 Simon Marchi <simon.marchi@efficios.com>
7286
7287 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7288 to...
7289 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7290 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7291
fcf23d5b
SM
72922020-05-27 Simon Marchi <simon.marchi@efficios.com>
7293
7294 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7295 build_name_components, find_name_components_bounds>:
7296 Add per_objfile parameter.
7297 (struct mapped_index) <symbol_name_at>: Likewise.
7298 (struct mapped_debug_names): Remove constructor.
7299 <dwarf2_per_objfile>: Remove field.
7300 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7301 (mapped_index_base::find_name_components_bounds,
7302 mapped_index_base::build_name_components,
7303 dw2_expand_symtabs_matching_symbol): Likewise.
7304 (class mock_mapped_index) <symbol_name_at>: Likewise.
7305 (check_match): Likewise.
7306 (check_find_bounds_finds): Likewise.
7307 (test_mapped_index_find_name_component_bounds): Update.
7308 (CHECK_MATCH): Update.
7309 (dw2_expand_symtabs_matching): Update.
7310 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7311 per_objfile parameter.
7312 <find_vec_in_debug_names>: Likewise.
7313 <m_per_objfile>: New field.
7314 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7315 parameter.
7316 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7317 (dw2_debug_names_iterator::next): Update.
7318 (dw2_debug_names_lookup_symbol): Update.
7319 (dw2_debug_names_expand_symtabs_for_function): Update.
7320 (dw2_debug_names_map_matching_symbols): Update.
7321 (dw2_debug_names_expand_symtabs_matching): Update.
7322 (dwarf2_read_debug_names): Update.
7323
7188ed02
SM
73242020-05-27 Simon Marchi <simon.marchi@efficios.com>
7325
7326 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7327 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7328 move to dwarf2_per_objfile.
7329 <read_in_chain>: Remove.
7330 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7331 remove_all_cus, age_comp_units>: New methods.
7332 <m_dwarf2_cus>: New member.
7333 (struct dwarf2_per_cu_data) <cu>: Remove.
7334 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7335 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7336 moved to methods of dwarf2_per_objfile.
7337 (dwarf2_clear_marks): Remove.
7338 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7339 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7340 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7341 (dwarf2_per_objfile::remove_all_cus): New.
7342 (class free_cached_comp_units) <~free_cached_comp_units>:
7343 Update.
7344 (load_cu): Update.
7345 (dw2_do_instantiate_symtab): Adjust.
7346 (fill_in_sig_entry_from_dwo_entry): Adjust.
7347 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7348 (cutu_reader::cutu_reader): Likewise.
7349 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7350 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7351 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7352 and dwarf2_per_objfile::age_comp_units.
7353 (load_partial_comp_unit): Update.
7354 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7355 (process_queue): Likewise.
7356 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7357 backlink.
7358 (dwarf2_read_addr_index): Likewise.
7359 (follow_die_offset): Likewise.
7360 (dwarf2_fetch_die_loc_sect_off): Likewise.
7361 (dwarf2_fetch_constant_bytes): Likewise.
7362 (dwarf2_fetch_die_type_sect_off): Likewise.
7363 (follow_die_sig_1): Likewise.
7364 (load_full_type_unit): Likewise.
7365 (read_signatured_type): Likewise.
7366 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7367 (dwarf2_cu::~dwarf2_cu): Remove.
7368 (dwarf2_per_objfile::get_cu): New.
7369 (dwarf2_per_objfile::set_cu): New.
7370 (age_cached_comp_units): Rename to...
7371 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7372 to std::unordered_map.
7373 (free_one_cached_comp_unit): Rename to...
7374 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7375 to std::unordered_map.
7376 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7377 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7378 a dwarf2_per_objfile in data.
7379 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7380 (dwarf2_clear_marks): Remove.
7381
2e671100
SM
73822020-05-27 Simon Marchi <simon.marchi@efficios.com>
7383
7384 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7385 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7386 (init_tu_and_read_dwo_dies): Likewise.
7387 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7388 (cutu_reader::cutu_reader): Likewise.
7389 (load_partial_comp_unit): Likewise.
7390 (process_psymtab_comp_unit): Update.
7391 (build_type_psymtabs_1): Update.
7392 (process_skeletonless_type_unit): Update.
7393 (load_full_comp_unit): Update.
7394 (find_partial_die): Update.
7395 (dwarf2_read_addr_index): Update.
7396 (read_signatured_type): Update.
7397
2e6a9f79
SM
73982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7399
7400 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7401 m_header_read_in>: New fields.
7402 <get_header>: New method.
7403 * dwarf2/read.c (per_cu_header_read_in): Remove.
7404 (dwarf2_per_cu_data::get_header): New.
7405 (dwarf2_per_cu_data::addr_size): Update.
7406 (dwarf2_per_cu_data::offset_size): Update.
7407 (dwarf2_per_cu_data::ref_addr_size): Update.
7408
1b555f17
SM
74092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7410
7411 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7412 (dw2_do_instantiate_symtab): Update.
7413 (queue_and_load_all_dwo_tus): Change parameter from
7414 dwarf2_per_cu_data to dwarf2_cu.
7415 (dwarf2_fetch_die_loc_sect_off): Update.
7416 (dwarf2_fetch_constant_bytes): Update.
7417 (dwarf2_fetch_die_type_sect_off): Update.
7418
8fc0b21d
SM
74192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7420
7421 * dwarf2/read.c (process_full_comp_unit,
7422 process_full_type_unit): Remove per_cu, per_objfile paramters.
7423 Add dwarf2_cu parameter.
7424 (process_queue): Update.
7425
168c9250
SM
74262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7427
7428 * dwarf2/read.c (create_cu_from_index_list): Replace
7429 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7430 (create_cus_from_index_list): Likewise.
7431 (create_cus_from_index): Likewise.
7432 (create_signatured_type_table_from_index): Likewise.
7433 (create_cus_from_debug_names_list): Likewise.
7434 (create_cus_from_debug_names): Likewise.
7435 (dwarf2_read_gdb_index): Update.
7436 (dwarf2_read_debug_names): Update.
7437
e286671b
TT
74382020-05-27 Tom Tromey <tom@tromey.com>
7439 Simon Marchi <simon.marchi@efficios.com>
7440
7441 * dwarf2/read.h (struct dwarf2_per_objfile)
7442 <get_type_for_signatured_type, set_type_for_signatured_type>:
7443 New methods.
7444 <m_type_map>: New member.
7445 (struct signatured_type) <type>: Remove.
7446 * dwarf2/read.c
7447 (dwarf2_per_objfile::get_type_for_signatured_type,
7448 dwarf2_per_objfile::set_type_for_signatured_type): New.
7449 (get_signatured_type): Use new methods.
7450
8adb8487
TT
74512020-05-27 Tom Tromey <tom@tromey.com>
7452 Simon Marchi <simon.marchi@efficios.com>
7453
7454 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7455 (struct dwarf2_per_objfile) <type_units>: New member.
7456 <get_type_unit_group_unshareable>: New method.
7457 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7458 num_symtabs, symtabs>: Remove; move to
7459 type_unit_group_unshareable.
7460 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7461 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7462 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7463
127bbf4b
SM
74642020-05-27 Simon Marchi <simon.marchi@efficios.com>
7465
7466 * dwarf2/read.h (struct dwarf2_per_cu_data):
7467 <dwarf2_per_objfile>: Remove.
7468 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7469 dwarf2_per_objfile.
7470 (create_signatured_type_table_from_index): Likewise.
7471 (create_signatured_type_table_from_debug_names): Likewise.
7472 (create_debug_type_hash_table): Likewise.
7473 (fill_in_sig_entry_from_dwo_entry): Likewise.
7474 (create_type_unit_group): Likewise.
7475 (read_comp_units_from_section): Likewise.
7476 (create_cus_hash_table): Likewise.
7477
f6e649dd
SM
74782020-05-27 Simon Marchi <simon.marchi@efficios.com>
7479
7480 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7481 dwarf2_per_cu_data::dwarf2_per_objfile.
7482 (compute_compunit_symtab_includes): Likewise.
7483 (dwarf2_cu::start_symtab): Likewise.
7484
aa66c379
SM
74852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7486
7487 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7488 parameter.
7489 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7490 (read_namespace_alias): Update.
7491 (lookup_die_type): Update.
7492 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7493 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7494 Update.
7495 (disassemble_dwarf_expression): Update.
7496
120ce1b5
SM
74972020-05-27 Simon Marchi <simon.marchi@efficios.com>
7498
7499 * dwarf2/read.h (struct dwarf2_queue_item): Add
7500 dwarf2_per_objfile parameter, assign new parameter.
7501 <per_objfile>: New field.
7502 * dwarf2/read.c (free_one_cached_comp_unit): Add
7503 dwarf2_per_objfile parameter.
7504 (queue_comp_unit): Likewise.
7505 (dw2_do_instantiate_symtab): Update.
7506 (process_psymtab_comp_unit): Update.
7507 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7508 (process_imported_unit_die): Update.
7509 (queue_and_load_dwo_tu): Update.
7510 (follow_die_offset): Update.
7511 (follow_die_sig_1): Update.
7512
9f47c707
SM
75132020-05-27 Simon Marchi <simon.marchi@efficios.com>
7514
7515 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7516 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7517 (read_call_site_scope): Assign per_objfile.
7518 (dwarf2_per_cu_data::objfile): Remove.
7519 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7520 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7521 dwarf2_per_objfile parameter.
7522 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7523 dwarf2_per_objfile parameter.
7524 (dwarf_expr_reg_to_entry_parameter): Add output
7525 dwarf2_per_objfile parameter.
7526 (locexpr_get_frame_base): Update.
7527 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7528 <push_dwarf_reg_entry_value>: Update.
7529 <call_site_to_target_addr>: Update.
7530 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7531 parameter.
7532 (value_of_dwarf_reg_entry): Update.
7533 (rw_pieced_value): Update.
7534 (indirect_synthetic_pointer): Update.
7535 (dwarf2_evaluate_property): Update.
7536 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7537 parameter.
7538 (locexpr_read_variable): Update.
7539 (locexpr_get_symbol_read_needs): Update.
7540 (loclist_read_variable): Update.
7541
14095eb3
SM
75422020-05-27 Simon Marchi <simon.marchi@efficios.com>
7543
7544 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7545 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7546 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7547 parameter.
7548 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7549 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7550 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7551 parameter.
7552 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7553 sect_variable_value): Add dwarf2_per_objfile parameter.
7554 (class dwarf_evaluate_loc_desc) <dwarf_call,
7555 dwarf_variable_value>: Update.
7556 (fetch_const_value_from_synthetic_pointer): Add
7557 dwarf2_per_objfile parameter.
7558 (fetch_const_value_from_synthetic_pointer): Update.
7559 (coerced_pieced_ref): Update.
7560 (class symbol_needs_eval_context) <dwarf_call,
7561 dwarf_variable_value>: Update.
7562 (dwarf2_compile_expr_to_ax): Update.
7563
3c3cd3d4
SM
75642020-05-27 Simon Marchi <simon.marchi@efficios.com>
7565
7566 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7567 parameter.
7568 (dwarf2_evaluate_loc_desc_full): Update.
7569
82ca3f51
SM
75702020-05-27 Simon Marchi <simon.marchi@efficios.com>
7571
7572 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7573 parameter.
7574 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7575 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7576 dwarf2_per_objfile parameter.
7577 (decode_debug_loc_dwo_addresses): Likewise.
7578 (dwarf2_find_location_expression): Update.
7579 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7580 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7581 parameter.
7582 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7583 parameter.
7584 (locexpr_describe_location_1): Likewise.
7585 (locexpr_describe_location): Update.
7586
4b167ea1
SM
75872020-05-27 Simon Marchi <simon.marchi@efficios.com>
7588
7589 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7590 Remove.
7591 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7592 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7593 (dwarf2_compile_property_to_c): Update.
7594 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7595 use text offset from objfile.
7596 (locexpr_tracepoint_var_ref): Update.
7597 (locexpr_generate_c_location): Update.
7598 (loclist_describe_location): Update.
7599 (loclist_tracepoint_var_ref): Update.
7600 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7601 dwarf2_per_objfile parameter.
7602 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7603 use text offset from objfile.
7604 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7605
89b07335
SM
76062020-05-27 Simon Marchi <simon.marchi@efficios.com>
7607
7608 * dwarf2/expr.h (struct dwarf_expr_context)
7609 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7610 <offset>: Remove.
7611 <per_objfile>: New member.
7612 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7613 dwarf2_per_objfile parameter. Don't set offset, set
7614 per_objfile.
7615 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7616 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7617 a dwarf2_per_objfile object instead of an offset.
7618 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7619 constructor.
7620 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7621 to dwarf2_expr_executor constructor. Don't set offset.
7622 (dwarf2_fetch_cfa_info): Update.
7623 (struct dwarf2_frame_cache) <text_offset>: Remove.
7624 <per_objfile>: New field.
7625 (dwarf2_frame_cache): Update.
7626 (dwarf2_frame_prev_register): Update.
7627 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7628 <dwarf_evaluate_loc_desc>: Add constructor.
7629 (dwarf2_evaluate_loc_desc_full): Update.
7630 (dwarf2_locexpr_baton_eval): Update.
7631 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7632 Add constructor.
7633 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7634
293e7e51
SM
76352020-05-27 Simon Marchi <simon.marchi@efficios.com>
7636
7637 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7638 addr_sized_int_type>: Move to dwarf2_cu.
7639 <int_type>: Move to dwarf2_per_objfile.
7640 (struct dwarf2_per_objfile) <int_type>: Move here.
7641 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7642 addr_sized_int_type>: Move here.
7643 (read_func_scope): Update.
7644 (read_array_type): Update.
7645 (read_tag_string_type): Update.
7646 (attr_to_dynamic_prop): Update.
7647 (dwarf2_per_cu_data::int_type): Rename to...
7648 (dwarf2_per_objfile::int_type): ... this.
7649 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7650 (dwarf2_cu::addr_sized_int_type): ... this.
7651 (read_subrange_type): Update.
7652 (dwarf2_per_cu_data::addr_type): Rename to...
7653 (dwarf2_cu::addr_type): ... this.
7654 (set_die_type): Update.
7655
64874a40
SM
76562020-05-27 Simon Marchi <simon.marchi@efficios.com>
7657
7658 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7659 data through per_cu->cu.
7660
4ab09049
SM
76612020-05-27 Simon Marchi <simon.marchi@efficios.com>
7662
7663 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7664 dwarf2_per_cu_data parameter fo dwarf2_cu.
7665 (lookup_dwo_type_unit): Likewise.
7666 (read_cutu_die_from_dwo): Likewise.
7667 (lookup_dwo_unit): Likewise.
7668 (open_and_init_dwo_file): Likewise.
7669 (lookup_dwo_cutu): Likewise.
7670 (lookup_dwo_comp_unit): Likewise.
7671 (lookup_dwo_type_unit): Likewise.
7672 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7673 (cutu_reader::cutu_reader): Update.
7674
47b14e86
SM
76752020-05-27 Simon Marchi <simon.marchi@efficios.com>
7676
7677 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7678 parameter.
7679 (process_full_type_unit): Likewise.
7680 (process_queue): Update.
7681
43182c09
SM
76822020-05-27 Simon Marchi <simon.marchi@efficios.com>
7683
7684 * dwarf2/read.c (recursively_compute_inclusions): Add
7685 dwarf2_per_objfile parameter.
7686 (compute_compunit_symtab_includes): Likewise.
7687 (process_cu_includes): Update.
7688
7aa104c4
SM
76892020-05-27 Simon Marchi <simon.marchi@efficios.com>
7690
7691 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7692 parameter.
7693 (create_type_unit_group): Update.
7694 (process_psymtab_comp_unit_reader): Update.
7695 (build_type_psymtabs_reader): Update.
7696
e3beb21d
SM
76972020-05-27 Simon Marchi <simon.marchi@efficios.com>
7698
7699 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7700 object through m_this_cu->cu.
7701
d460f660
SM
77022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7703
7704 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7705 the info parameter.
7706 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7707
ab432490
SM
77082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7709
7710 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7711 per_objfile parameter.
7712 (load_full_type_unit): Add per_objfile parameter.
7713 (read_signatured_type): Likewise.
7714 (load_full_comp_unit): Likewise.
7715 (load_cu): Likewise.
7716 (dw2_do_instantiate_symtab): Likewise.
7717 (dw2_get_file_names): Likewise.
7718 (dw2_map_symtabs_matching_filename): Update.
7719 (dw_expand_symtabs_matching_file_matcher): Update.
7720 (dw2_map_symbol_filenames): Update.
7721 (process_psymtab_comp_unit): Add per_objfile parameter.
7722 (build_type_psymtabs_1): Update.
7723 (process_skeletonless_type_unit): Update.
7724 (dwarf2_build_psymtabs_hard): Update.
7725 (load_partial_comp_unit): Add per_objfile parameter.
7726 (scan_partial_symbols): Update.
7727 (load_full_comp_unit): Add per_objfile parameter.
7728 (process_imported_unit_die): Update.
7729 (create_cus_hash_table): Update.
7730 (find_partial_die): Update.
7731 (dwarf2_read_addr_index): Update.
7732 (follow_die_offset): Update.
7733 (dwarf2_fetch_die_loc_sect_off): Update.
7734 (dwarf2_fetch_constant_bytes): Update.
7735 (dwarf2_fetch_die_type_sect_off): Update.
7736 (follow_die_sig_1): Update.
7737 (load_full_type_unit): Add per_objfile parameter.
7738 (read_signatured_type): Likewise.
7739
313bad1b
SM
77402020-05-27 Simon Marchi <simon.marchi@efficios.com>
7741
7742 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7743 of objfile_name.
7744
c3699833
SM
77452020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7746
7747 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7748 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7749 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7750 field.
7751 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7752 (create_cus_from_index): Update.
7753 (dwarf2_read_gdb_index): Update.
7754 (create_cus_from_debug_names): Update.
7755 (dwarf2_read_debug_names): Update.
7756 (get_abbrev_section_for_cu): Update.
7757 (create_all_comp_units): Update.
7758 (read_attribute_value): Update.
7759 (get_debug_line_section): Update.
7760 * dwarf2/index-cache.c (index_cache::store): Update.
7761 * dwarf2/index-write.c (save_gdb_index_command): Update.
7762 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7763
1859c670
SM
77642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7765
7766 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7767 member.
7768 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7769 dwarf2_per_cu_data::per_bfd.
7770 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7771 (create_type_unit_group): Likewise.
7772 (queue_comp_unit): Remove reference to
7773 per_cu->dwarf2_per_objfile.
7774 (maybe_queue_comp_unit): Likewise.
7775 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7776 (create_cus_hash_table): Assign new field.
7777
5e22e966
SM
77782020-05-27 Simon Marchi <simon.marchi@efficios.com>
7779
7780 * dwarf2/read.c: Replace
7781 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7782 dwarf2_cu->per_objfile throughout.
7783
97a1449a
SM
77842020-05-27 Simon Marchi <simon.marchi@efficios.com>
7785
7786 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7787 parameter, don't use per_cu->dwarf2_per_objfile.
7788 (dw2_instantiate_symtab): Likewise.
7789 (dw2_find_last_source_symtab): Update.
7790 (dw2_map_expand_apply): Update.
7791 (dw2_lookup_symbol): Update.
7792 (dw2_expand_symtabs_for_function): Update.
7793 (dw2_expand_all_symtabs): Update.
7794 (dw2_expand_symtabs_with_fullname): Update.
7795 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7796 don't use per_cu->dwarf2_per_objfile.
7797 (dw2_expand_marked_cus): Update.
7798 (dw2_find_pc_sect_compunit_symtab): Update.
7799 (dw2_debug_names_lookup_symbol): Update.
7800 (dw2_debug_names_expand_symtabs_for_function): Update.
7801 (dw2_debug_names_map_matching_symbols): Update.
7802 (dwarf2_psymtab::expand_psymtab): Update.
7803
9e021579
SM
78042020-05-27 Simon Marchi <simon.marchi@efficios.com>
7805
7806 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7807 <per_objfile>: New member.
7808 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7809 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7810 call to dwarf2_cu.
7811 (cutu_reader::cutu_reader): Update.
7812 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7813
ae090bdb
SM
78142020-05-27 Simon Marchi <simon.marchi@efficios.com>
7815
7816 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7817 struct dwarf2_per_objfile.
7818 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7819 dwarf2_per_bfd.
7820 * dwarf2/read.c (set_die_type): Update.
7821 (get_die_type_at_offset): Update.
7822
af758d11
SM
78232020-05-27 Tom Tromey <tom@tromey.com>
7824 Simon Marchi <simon.marchi@efficios.com>
7825
7826 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7827 method.
7828 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7829 get_symtab, set_symtab>: New methods.
7830 <m_symtabs>: New field.
7831 (struct dwarf2_psymtab): Derive from partial_symtab.
7832 <readin_p, get_compunit_symtab>: Declare methods.
7833 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7834 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7835 New methods.
7836 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7837 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7838 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7839 (dw2_symtab_iter_next, dw2_print_stats)
7840 (dw2_expand_symtabs_with_fullname)
7841 (dw2_expand_symtabs_matching_one)
7842 (dw_expand_symtabs_matching_file_matcher)
7843 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7844 (dw2_debug_names_iterator::next)
7845 (dw2_debug_names_map_matching_symbols)
7846 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7847 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7848 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7849 New methods.
7850 (get_compunit_symtab, process_full_comp_unit)
7851 (process_full_type_unit): Update.
7852 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7853
5989a64e
SM
78542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7855
7856 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7857 then introduce a new dwarf2_per_objfile type.
7858 <read_line_string>: Move to the new dwarf2_per_objfile type.
7859 <objfile>: Likewise.
7860 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7861 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7862 dwarf2_per_objfile->per_bfd.
7863 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7864 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7865 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7866 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7867 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7868 (dwarf2_per_objfile::locate_sections): Rename to...
7869 (dwarf2_per_bfd::locate_sections): ... this.
7870 (dwarf2_per_objfile::get_cutu): Rename to...
7871 (dwarf2_per_bfd::get_cutu): ... this.
7872 (dwarf2_per_objfile::get_cu): Rename to...
7873 (dwarf2_per_bfd::get_cu): ... this.
7874 (dwarf2_per_objfile::get_tu): Rename to...
7875 (dwarf2_per_bfd::get_tu): ... this.
7876 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7877 (dwarf2_per_bfd::allocate_per_cu): ... this.
7878 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7879 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7880 (get_gdb_index_contents_ftype): Change parameter from
7881 dwarf2_per_objfile to dwarf2_per_bfd.
7882 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7883 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7884
a50264ba
TT
78852020-05-27 Tom Tromey <tom@tromey.com>
7886 Simon Marchi <simon.marchi@efficios.com>
7887
7888 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7889 (allocate_piece_closure): Set "per_objfile" member.
7890 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7891 (locexpr_describe_location, loclist_describe_location): Use new
7892 member.
7893 * dwarf2/read.c (read_call_site_scope)
7894 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7895 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7896 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7897 handle_data_member_location): Set per_objfile member.
7898 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7899 member.
7900 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7901
d3473f0c
TT
79022020-05-27 Tom Tromey <tom@tromey.com>
7903
7904 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7905 allocate_signatured_type>: Declare new methods.
7906 <m_num_psymtabs>: New member.
7907 (struct dwarf2_per_cu_data) <index>: New member.
7908 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7909 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7910 (create_cu_from_index_list): Use allocate_per_cu.
7911 (create_signatured_type_table_from_index)
7912 (create_signatured_type_table_from_debug_names)
7913 (create_debug_type_hash_table, add_type_unit)
7914 (read_comp_units_from_section): Use allocate_signatured_type.
7915
5717c425
TT
79162020-05-27 Tom Tromey <tom@tromey.com>
7917
7918 * psymtab.c (partial_map_expand_apply)
7919 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7920 (psym_lookup_global_symbol_language)
7921 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7922 (psym_print_stats, psym_expand_symtabs_for_function)
7923 (psym_map_symbol_filenames, psym_map_matching_symbols)
7924 (psym_expand_symtabs_matching)
7925 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7926 (maintenance_check_psymtabs): Update.
7927 * psympriv.h (struct partial_symtab) <readin_p,
7928 get_compunit_symtab>: Add objfile parameter.
7929 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7930 Likewise.
7931 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7932 get_compunit_symtab>: Likewise.
7933 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7934
45940949
TT
79352020-05-27 Tom Tromey <tom@tromey.com>
7936
7937 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7938 member.
7939 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7940 (create_cu_from_index_list)
7941 (create_signatured_type_table_from_index)
7942 (create_signatured_type_table_from_debug_names)
7943 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7944 (dwarf2_create_include_psymtab)
7945 (create_debug_type_hash_table, add_type_unit)
7946 (create_type_unit_group, read_comp_units_from_section)
7947 (dwarf2_compute_name, create_cus_hash_table)
7948 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7949 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7950 obstack.
7951 (dw2_get_real_path): Likewise. Change argument to
7952 dwarf2_per_objfile.
7953
f8c6d152
LM
79542020-05-27 Luis Machado <luis.machado@linaro.org>
7955
7956 PR tdep/26000
7957 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7958 for ldrd (immediate).
7959
e98d2e6d
PW
79602020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7961
7962 * command.h: Add comment giving the name of class_tui.
7963 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7964 create the fake command for the help for class_tui.
7965
53a47a3e
TT
79662020-05-26 Tom Tromey <tromey@adacore.com>
7967
7968 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7969 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7970 (val_atr): New function.
7971 (value_val_atr): Use it.
7972 * ada-valprint.c (print_optional_low_bound): Change low bound
7973 handling for enums.
7974 (val_print_packed_array_elements): Don't call discrete_position.
7975 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7976 discrete_position for enum types.
7977 * language.c (default_print_array_index): Change type.
7978 * language.h (struct language_defn) <la_print_array_index>: Add
7979 index_type parameter, change type of index_value.
7980 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7981 (default_print_array_index): Update.
7982 * valprint.c (maybe_print_array_index): Don't call
7983 value_from_longest. Update.
7984 (value_print_array_elements): Don't call discrete_position.
7985
0bc2354b
TT
79862020-05-26 Tom Tromey <tromey@adacore.com>
7987
7988 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7989 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7990
1218a4bf
CDA
79912020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7992
7993 PR gdb/13519
7994 * avr-tdep.c (avr_integer_to_address): Return data or code
7995 address accordingly to the second 'type' argument of the
7996 function.
7997
92651b1d
MW
79982020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7999
8000 * infcmd.c, inferior.h: (construct_inferior_arguments):
8001 Moved function from here to gdbsupport/common-inferior.{h,cc}
8002
0a4f5f8c
TT
80032020-05-23 Tom Tromey <tom@tromey.com>
8004
8005 Revert commit eca1f90c:
8006 * NEWS: Remove entry for completion styling.
8007 * completer.c (_rl_completion_prefix_display_length): Move
8008 declaration later.
8009 (gdb_fnprint): Revert.
8010 (gdb_display_match_list_1): Likewise.
8011 * cli/cli-style.c (completion_prefix_style)
8012 (completion_difference_style, completion_suffix_style): Remove.
8013 (_initialize_cli_style): Revert.
8014 * cli/cli-style.h (completion_prefix_style)
8015 (completion_difference_style, completion_suffix_style): Don't
8016 declare.
8017
e08bd6c5
PA
80182020-05-24 Pedro Alves <palves@redhat.com>
8019
8020 * symtab.c (completion_list_add_name): Return boolean indication
8021 of whether the symbol matched.
8022 (completion_list_add_symbol): Don't try to remove C++ aliases if
8023 the symbol didn't match in the first place.
8024 * symtab.h (completion_list_add_name): Return bool.
8025
ceacbf6e
SM
80262020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8027
8028 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8029 type::field.
8030
26f16254
JB
80312020-05-23 Joel Brobecker <brobecker@adacore.com>
8032
8033 GDB 9.2 released.
8034
eca1f90c
TT
80352020-05-23 Tom Tromey <tom@tromey.com>
8036
8037 * NEWS: Add entry for completion styling.
8038 * completer.c (_rl_completion_prefix_display_length): Move
8039 declaration earlier.
8040 (gdb_fnprint): Use completion_style.
8041 (gdb_display_match_list_1): Likewise.
8042 * cli/cli-style.c (completion_prefix_style)
8043 (completion_difference_style, completion_suffix_style): New
8044 globals.
8045 (_initialize_cli_style): Register new globals.
8046 * cli/cli-style.h (completion_prefix_style)
8047 (completion_difference_style, completion_suffix_style): Declare.
8048
51e2cfa2
PA
80492020-05-23 Pedro Alves <palves@redhat.com>
8050
8051 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8052 (parse_escape): Use ISDIGIT instead of isdigit.
8053 (puts_debug): Use gdb_isprint instead of isprint.
8054 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8055 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8056 ISSPACE instead of isspace.
8057 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8058 instead of isspace.
8059 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8060 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8061 instead of isxdigit and ISDIGIT instead of isdigit.
8062
80fc5e77
SM
80632020-05-22 Simon Marchi <simon.marchi@efficios.com>
8064
8065 * gdbtypes.h (struct type) <field>: New method.
8066 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8067 or type::field.
8068
3cabb6b0
SM
80692020-05-22 Simon Marchi <simon.marchi@efficios.com>
8070
8071 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8072 (TYPE_FIELDS): Use type::fields. Change all call sites that
8073 modify the propery to use type::set_fields instead.
8074
1f704f76
SM
80752020-05-22 Simon Marchi <simon.marchi@efficios.com>
8076
8077 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8078 type::num_fields instead.
8079
5e33d5f4
SM
80802020-05-22 Simon Marchi <simon.marchi@efficios.com>
8081
8082 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8083 methods.
8084 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8085 that modify the number of fields to use type::set_num_fields
8086 instead.
8087
9392ebb3
TT
80882020-05-22 Tom Tromey <tromey@adacore.com>
8089
8090 * compile/compile-object-load.h (munmap_list_free): Don't
8091 declare.
8092
7c13f4e8
AB
80932020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8094
8095 * annotate.c (annotate_source_line): Update return type, add call
8096 to update current symtab and line.
8097 * annotate.h (annotate_source_line): Update return type, and
8098 extend header comment.
8099 * source.c (info_line_command): Check annotation_level before
8100 calling annotate_source_line.
8101 * stack.c (print_frame_info): If calling annotate_source_line
8102 returns true, then don't print any other source line information.
8103
aa370940
SM
81042020-05-21 Simon Marchi <simon.marchi@efficios.com>
8105
8106 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8107
84d53fa9
SM
81082020-05-21 Simon Marchi <simon.marchi@efficios.com>
8109
8110 * coffread.c (patch_type): Remove NULL check before xfree.
8111 * corefile.c (set_gnutarget): Likewise.
8112 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8113 * exec.c (build_section_table): Likewise.
8114 * remote.c (remote_target::pass_signals): Likewise.
8115 * utils.c (n_spaces): Likewise.
8116 * cli/cli-script.c (document_command): Likewise.
8117 * i386-windows-tdep.c (core_process_module_section): Likewise.
8118 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8119
9d428aae
SM
81202020-05-20 Simon Marchi <simon.marchi@efficios.com>
8121
8122 * symfile.c (reread_symbols): Clear objfile's section_offsets
8123 vector and section indices, re-compute them by calling
8124 sym_offsets.
8125
250106a7
TT
81262020-05-20 Tom Tromey <tromey@adacore.com>
8127
8128 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 8129 (desc_one_bound, desc_index_type): Compute field name.
250106a7 8130
9a0bacfb
TV
81312020-05-20 Tom de Vries <tdevries@suse.de>
8132
8133 PR symtab/25833
8134 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8135
7b958a48
AM
81362020-05-20 Alan Modra <amodra@gmail.com>
8137
8138 PR 25993
8139 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8140 bfd_set_filename.
8141 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8142 passed to bfd_set_filename.
8143 * symfile-mem.c (add_vsyscall_page): Likewise for string
8144 passed to symbol_file_add_from_memory.
8145 (symbol_file_add_from_memory): Make name param a const char* and
8146 don't strdup.
8147
c7e97679
AM
81482020-05-20 Alan Modra <amodra@gmail.com>
8149
8150 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8151 rather than accessing bfd->filename directly.
8152 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8153 and use bfd_section_name.
8154 * dwarf2/frame.c (decode_frame_entry): Likewise.
8155 * exec.c (exec_set_section_address): Likewise.
8156 * solib-aix.c (solib_aix_bfd_open): Likewise.
8157 * stap-probe.c (get_stap_base_address): Likewise.
8158 * symfile.c (reread_symbols): Likewise.
8159
563c591b
TT
81602020-05-19 Tom Tromey <tromey@adacore.com>
8161
8162 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8163
f408d82c
SM
81642020-05-19 Simon Marchi <simon.marchi@efficios.com>
8165
8166 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8167
98c59b52
PA
81682020-05-19 Pedro Alves <palves@redhat.com>
8169
8170 * NEWS (set exec-file-mismatch): Adjust entry.
8171 * exec.c: Include "build-id.h".
8172 (validate_exec_file): Try to match build IDs instead of filenames.
8173 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8174 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8175 and pass down 'warn_if_slow'.
8176 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8177 gdb_bfd_open_closure to pass it down.
8178 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8179
4111f652
PA
81802020-05-19 Pedro Alves <palves@redhat.com>
8181
8182 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8183 * target.c (target_fileio_open_1): Rename to target_fileio_open
8184 and make extern. Use bool.
8185 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8186 (target_fileio_read_alloc_1): Adjust.
8187 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8188 (target_fileio_open_warn_if_slow): Delete declaration.
8189
ad80db5b
PA
81902020-05-19 Pedro Alves <palves@redhat.com>
8191
8192 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8193 Adjust all callers.
8194
1d6ce4d3
YS
81952020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8196
8197 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8198 whether disp is negative.
8199
9005fbbb
SM
82002020-05-19 Simon Marchi <simon.marchi@efficios.com>
8201
8202 * symfile.h (struct symfile_segment_data)
8203 <~symfile_segment_data>: Remove.
8204 <segment_info>: Change to std::vector.
8205 * symfile.c (default_symfile_segments): Update.
8206 * elfread.c (elf_symfile_segments): Update.
8207
68b888ff
SM
82082020-05-19 Simon Marchi <simon.marchi@efficios.com>
8209
8210 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8211 <segments>: New.
8212 <segment_bases, segment_sizes>: Remove.
8213 * symfile.c (default_symfile_segments): Update.
8214 * elfread.c (elf_symfile_segments): Update.
8215 * remote.c (remote_target::get_offsets): Update.
8216 * solib-target.c (solib_target_relocate_section_addresses):
8217 Update.
8218
62982abd
SM
82192020-05-19 Simon Marchi <simon.marchi@efficios.com>
8220
8221 * symfile.h (struct symfile_segment_data): Initialize fields.
8222 <~symfile_segment_data>: Add.
8223 (symfile_segment_data_up): New.
8224 (struct sym_fns) <sym_segments>: Return a
8225 symfile_segment_data_up.
8226 (default_symfile_segments): Return a symfile_segment_data_up.
8227 (free_symfile_segment_data): Remove.
8228 (get_symfile_segment_data): Return a symfile_segment_data_up.
8229 * symfile.c (default_symfile_segments): Likewise.
8230 (get_symfile_segment_data): Likewise.
8231 (free_symfile_segment_data): Remove.
8232 (symfile_find_segment_sections): Update.
8233 * elfread.c (elf_symfile_segments): Return a
8234 symfile_segment_data_up.
8235 * remote.c (remote_target::get_offsets): Update.
8236 * solib-target.c (solib_target_relocate_section_addresses):
8237 Update.
8238 * symfile-debug.c (debug_sym_segments): Return a
8239 symfile_segment_data_up.
8240
7f204339
RO
82412020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8242
e52a0f1b
RO
8243 PR build/25981
8244 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8245 Hardcode register numbers.
8246
7f204339
RO
8247 PR build/25981
8248 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8249 procfs_find_LDT_entry): Remove.
8250 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8251 procfs_find_LDT_entry): Remove.
8252 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8253 Remove.
8254
7f32a4d5
PA
82552020-05-17 Pedro Alves <palves@redhat.com>
8256 Andrew Burgess <andrew.burgess@embecosm.com>
8257 Keno Fischer <keno@juliacomputing.com>
8258
8259 PR gdb/25741
8260 * breakpoint.c (build_target_condition_list): Update comments.
8261 (build_target_command_list): Update comments and skip matching
8262 locations.
8263 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8264 a separate function. Simplify "set breakpoint auto-hw off"
8265 handling.
8266 (insert_breakpoints): Update comment.
8267 (tracepoint_locations_match): New parameter. For breakpoints,
8268 compare location types too, if the caller wants to.
8269 (handle_automatic_hardware_breakpoints): New functions.
8270 (bp_location_is_less_than): Also sort by location type and
8271 hardware breakpoint length.
8272 (update_global_location_list): Handle "set breakpoint auto-hw on"
8273 here.
8274 (update_breakpoint_locations): Ask breakpoint_locations_match to
8275 ignore location types.
8276
7d93a1e0
SM
82772020-05-16 Simon Marchi <simon.marchi@efficios.com>
8278
8279 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8280 type::name instead.
8281
d0e39ea2
SM
82822020-05-16 Simon Marchi <simon.marchi@efficios.com>
8283
8284 * gdbtypes.h (struct type) <name, set_name>: New methods.
8285 (TYPE_CODE): Use type::name. Change all call sites used to set
8286 the name to use type::set_name instead.
8287
2dab0c7b
TT
82882020-05-16 Tom Tromey <tom@tromey.com>
8289
8290 * top.c (quit_force): Update.
8291 * infrun.c (handle_no_resumed): Update.
8292 * top.h (all_uis): New function.
8293 (ALL_UIS): Remove.
8294
59f7bd8d
SM
82952020-05-16 Simon Marchi <simon.marchi@efficios.com>
8296
8297 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8298
9bf058f0
PA
82992020-05-16 Pedro Alves <palves@redhat.com>
8300
8301 * ia64-linux-nat.c
8302 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8303 Declare method.
8304 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8305
8f86ae1a
SM
83062020-05-15 Simon Marchi <simon.marchi@efficios.com>
8307
8308 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8309 (sparc64_adi_info): Likewise.
8310
d6bc0792
TT
83112020-05-15 Tom Tromey <tom@tromey.com>
8312
8313 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8314 block_objfile.
8315 (lookup_objfile_from_block): Remove.
8316 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8317 (lookup_global_symbol): Use block_objfile.
8318 * symtab.h (lookup_objfile_from_block): Don't declare.
8319 * printcmd.c (clear_dangling_display_expressions): Use
8320 block_objfile.
8321 * parse.c (operator_check_standard): Use block_objfile.
8322
8c14c3a3
TT
83232020-05-15 Tom Tromey <tom@tromey.com>
8324
8325 * language.c (language_alloc_type_symbol): Set
8326 SYMBOL_SECTION.
8327 * symtab.c (initialize_objfile_symbol): Remove.
8328 (allocate_symbol): Remove.
8329 (allocate_template_symbol): Remove.
8330 * dwarf2/read.c (fixup_go_packaging): Use "new".
8331 (new_symbol): Use "new".
8332 (read_variable): Don't call initialize_objfile_symbol. Use
8333 "new".
8334 (read_func_scope): Use "new".
8335 * xcoffread.c (process_xcoff_symbol): Don't call
8336 initialize_objfile_symbol.
8337 (SYMBOL_DUP): Remove.
8338 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8339 "new".
8340 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8341 (allocate_template_symbol): Don't declare.
8342 (struct symbol): Add copy constructor. Change defaults.
8343 * jit.c (finalize_symtab): Use "new".
8344 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8345 Use "new".
8346 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8347 (common_block_end): Use "new".
8348 * mdebugread.c (parse_symbol): Use "new".
8349 (new_symbol): Likewise.
8350
5b4a1a8d
PW
83512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8352
8353 * NEWS: Mention changes to help and apropos.
8354
57b4f16e
PW
83552020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8356
8357 * command.h (enum command_class): Improve comments, document
8358 that class_alias is for user-defined aliases, give the class
8359 name for each class, remove unused class_xdb.
8360 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8361 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8362 by a precise class.
8363 * infcmd.c (_initialize_infcmd): Likewise.
8364 * reverse.c (_initialize_reverse): Likewise.
8365 * stack.c (_initialize_stack): Likewise.
8366 * symfile.c (_initialize_symfile): Likewise.
8367 * tracepoint.c (_initialize_tracepoint): Likewise.
8368
7c05caf7
PW
83692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8370
8371 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8372 when their aliased command is traversed.
8373 (help_cmd): Add fput_command_names_styled call to
8374 output command name and aliases when command has an alias.
8375
3b3aaacb
PW
83762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8377
8378 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8379 * cli/cli-decode.c (help_cmd_list): Declare as static,
8380 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8381 a command together with the command.
8382 (fput_command_name_styled, fput_command_names_styled): New functions.
8383 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8384 fput_command_name_styled.
8385 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8386 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8387
7aa1b46f
PW
83882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8389
8390 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8391 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8392 * command.h (cmd_show_list): Likewise.
8393 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8394 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8395
89bcba74
PW
83962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8397
8398 * unittests/command-def-selftests.c (traverse_command_structure):
8399 Verify all commands of a list have the same prefix command and
8400 that only the top cmdlist commands have a null prefix.
8401
3f4d92eb
PW
84022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8403
8404 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8405 as prefix, not one of its aliases.
8406 (set_cmd_prefix): Remove.
8407 (do_add_cmd): Centralize the setting of the prefix of a command, when
8408 command is defined after its full chain of prefix commands.
8409 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8410 (add_setshow_cmd_full): Likewise.
8411 (update_prefix_field_of_prefixed_commands): New function.
8412 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8413 update_prefix_field_of_prefixed_commands.
8414 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8415 addresses of remote_set_cmdlist and remote_show_cmdlist given
8416 as argument, not the address of an argument.
8417 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8418 * gdb/remote.c (_initialize_remote): Likewise.
8419
0605465f
PW
84202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8421
8422 * cli/cli-cmds.c (alias_command): Check for an existing alias
8423 using lookup_cmd_composition, as valid_command_p is too strict
8424 and forbids aliases that are the prefix of an existing alias
8425 or command.
8426 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8427 command is properly recognised as a valid command.
8428
58e6ac70
PW
84292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8430
8431 * unittests/help-doc-selftests.c: Rename to
8432 unittests/command-def-selftests.c
8433 * unittests/command-def-selftests.c (help_doc_tests): Update some
8434 comments.
8435 (command_structure_tests, traverse_command_structure): New namespace
8436 and function.
8437 (command_structure_invariants_tests): New function.
8438 (_initialize_command_def_selftests) Renamed from
8439 _initialize_help_doc_selftests, register command_structure_invariants
8440 selftest.
8441
a7b9ceb8
PW
84422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8443
8444 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8445 an alias of 'show'.
8446
b2188a06
JB
84472020-05-15 Joel Brobecker <brobecker@adacore.com>
8448
8449 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8450 ada_is_fixed_point_type. Update all callers.
8451 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8452 all callers.
8453 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8454 Update all callers.
8455 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8456 print_fixed_point_type. Update all callers.
8457 * ada-valprint.c (ada_value_print_num): Replace call to
8458 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8459
a51951c2
KB
84602020-05-14 Kevin Buettner <kevinb@redhat.com>
8461
8462 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8463 processors.
8464 (cpu_supports_bts): Add CV_AMD case.
8465
29d6859f
LM
84662020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8467 Simon Marchi <simon.marchi@efficios.com>
8468
8469 * infrun.c (stop_all_threads): Collect multiple wait events at
8470 each pass.
8471
78134374
SM
84722020-05-14 Simon Marchi <simon.marchi@efficios.com>
8473
8474 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8475 type::code instead.
8476
67607e24
SM
84772020-05-14 Simon Marchi <simon.marchi@efficios.com>
8478
8479 * gdbtypes.h (struct type) <code, set_code>: New methods.
8480 (TYPE_CODE): Use type::code. Change all call sites used to set
8481 the code to use type::set_code instead.
8482
a05575d3
TBA
84832020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8484 Tom de Vries <tdevries@suse.de>
8485 Pedro Alves <palves@redhat.com>
8486
8487 PR threads/25478
8488 * infrun.c (stop_all_threads): Do NOT ignore
8489 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8490 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8491 received.
8492 (handle_no_resumed): Remove code handling a live inferior with no
8493 threads.
8494 * remote.c (has_single_non_exited_thread): New.
8495 (remote_target::update_thread_list): Do not delete a thread if is
8496 the last thread of the process.
8497 * thread.c (thread_select): Call delete_exited_threads instead of
8498 prune_threads.
8499
6ad82919
TBA
85002020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8501
8502 * infrun.c (stop_all_threads): Enable/disable thread events of all
8503 targets. Move a debug message denoting the end of the function
8504 into the SCOPED_EXIT block.
8505
d890404b
TBA
85062020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8507
8508 * process-stratum-target.h: Include <set>.
8509 (all_non_exited_process_targets, switch_to_target_no_thread): New
8510 function declarations.
8511 * process-stratum-target.c (all_non_exited_process_targets)
8512 (switch_to_target_no_thread): New function implementations.
8513
293b3ebc
TBA
85142020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8515
8516 * infrun.c (handle_inferior_event): Extract out a piece of code
8517 into...
8518 (mark_non_executing_threads): ...this new function.
8519
7ca9b62a
TBA
85202020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8521
8522 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8523 use.
8524
fc75c28b
TBA
85252020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8526
8527 * regcache.c (regcache_read_pc_protected): New function
8528 implementation that returns 0 if the PC cannot read via
8529 'regcache_read_pc'.
8530 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8531 instead of 'regcache_read_pc'.
8532 (keep_going_pass_signal): Ditto.
8533
a89febbd
TT
85342020-05-13 Tom Tromey <tromey@adacore.com>
8535
8536 * ada-lang.c (align_value): Remove.
8537 (ada_template_to_fixed_record_type_1): Use align_up.
8538
f7e23710
TBA
85392020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8540
8541 * async-event.c: Update the copyright year.
8542 * async-event.h: Update the copyright year.
8543
02ff80c2
SM
85442020-05-12 Simon Marchi <simon.marchi@efficios.com>
8545
8546 * objfiles.h (is_addr_in_objfile,
8547 shared_objfile_contains_address_p): Return bool.
8548 * objfile.c (is_addr_in_objfile,
8549 shared_objfile_contains_address_p): Return bool.
8550
4fd6c7e8
TT
85512020-05-11 Tom Tromey <tromey@adacore.com>
8552
8553 * cli/cli-cmds.c (info_command): Restore.
8554 (_initialize_cli_cmds): Use add_prefix_command for "info".
8555 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8556
5eb68a39
TT
85572020-05-11 Tom Tromey <tromey@adacore.com>
8558
8559 * ada-lang.c (ada_value_primitive_field): Now public.
8560 * ada-lang.h (ada_value_primitive_field): Declare.
8561 * ada-valprint.c (print_field_values): Use
8562 ada_value_primitive_field for wrapper fields.
8563
7666722f
TV
85642020-05-11 Tom de Vries <tdevries@suse.de>
8565
8566 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8567 MODULE_DOMAIN.
8568
3ee6bb11
TV
85692020-05-11 Tom de Vries <tdevries@suse.de>
8570
8571 PR symtab/25941
8572 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8573 with length 0, if not gdb-produced.
8574 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8575
43434996
TV
85762020-05-09 Tom de Vries <tdevries@suse.de>
8577
8578 PR gdb/25955
8579 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8580 calculation.
8581
2f78cffc
TT
85822020-05-09 Tom Tromey <tom@tromey.com>
8583
8584 * top.c (server_command): Now bool.
8585 * top.h (server_command): Now bool.
8586
4f7bc5ed
TT
85872020-05-08 Tom Tromey <tromey@adacore.com>
8588
8589 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8590 already being processed.
8591
8be4b118
TT
85922020-05-08 Tom Tromey <tom@tromey.com>
8593
8594 * printcmd.c (struct display) <next>: Remove.
8595 <display>: New constructor.
8596 <exp_string>: Now a std::string.
8597 <enabled_p>: Now a bool.
8598 (display_number): Move definition earlier.
8599 (displays): Rename from display_chain. Now a std::vector.
8600 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8601 (display_command): Update.
8602 (do_one_display, disable_display)
8603 (enable_disable_display_command, do_enable_disable_display):
8604 Update.
8605 (free_display): Remove.
8606 (clear_displays): Rewrite.
8607 (delete_display): Update.
8608 (map_display_numbers): Use function_view. Remove "data"
8609 parameter. Update.
8610 (do_delete_display): Remove.
8611 (undisplay_command): Update.
8612 (do_one_display, do_displays, disable_display)
8613 (info_display_command): Update.
8614 (do_enable_disable_display): Remove.
8615 (enable_disable_display_command)
8616 (clear_dangling_display_expressions): Update.
8617
94c93c35
TT
86182020-05-08 Tom Tromey <tom@tromey.com>
8619
8620 * symtab.c (set_symbol_cache_size)
8621 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8622 (maintenance_print_symbol_cache_statistics): Update.
8623 * symmisc.c (print_symbol_bcache_statistics)
8624 (print_objfile_statistics, maintenance_print_objfiles)
8625 (maintenance_info_symtabs, maintenance_check_symtabs)
8626 (maintenance_expand_symtabs, maintenance_info_line_tables):
8627 Update.
8628 * symfile-debug.c (set_debug_symfile): Update.
8629 * source.c (forget_cached_source_info): Update.
8630 * python/python.c (gdbpy_progspaces): Update.
8631 * psymtab.c (maintenance_info_psymtabs): Update.
8632 * probe.c (parse_probes): Update.
8633 * linespec.c (iterate_over_all_matching_symtabs)
8634 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8635 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8636 * exec.c (exec_target::close): Update.
8637 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8638 * breakpoint.c (print_one_breakpoint_location)
8639 (create_longjmp_master_breakpoint)
8640 (create_std_terminate_master_breakpoint): Update.
8641 * progspace.c (program_spaces): Now a std::vector.
8642 (maybe_new_address_space): Update.
8643 (add_program_space): Remove.
8644 (program_space::program_space): Update.
8645 (remove_program_space): Update.
8646 (number_of_program_spaces): Remove.
8647 (print_program_space, update_address_spaces): Update.
8648 * progspace.h (program_spaces): Change type.
8649 (ALL_PSPACES): Remove.
8650 (number_of_program_spaces): Don't declare.
8651 (struct program_space) <next>: Remove.
8652
a1fd1ac9
TT
86532020-05-08 Tom Tromey <tom@tromey.com>
8654
8655 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8656 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8657 (enable_break): Update.
8658 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8659 (frv_fdpic_find_canonical_descriptor): Update.
8660 (frv_fetch_objfile_link_map): Update.
8661 * progspace.c (program_space::free_all_objfiles): Update.
8662 (program_space::solibs): New method.
8663 * progspace.h (struct program_space) <solibs>: New method.
8664 * solist.h (master_so_list): Don't declare.
8665 (ALL_SO_LIBS): Remove.
8666 * solib.h (so_list_head): Remove.
8667 (update_solib_list): Update comment.
8668 * solib.c (master_so_list): Remove.
8669 (solib_used, update_solib_list, solib_add)
8670 (info_sharedlibrary_command, clear_solib)
8671 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8672
38eae084
TT
86732020-05-08 Tom Tromey <tom@tromey.com>
8674
8675 * extension.c (extension_languages): Now a std::array.
8676 (ALL_EXTENSION_LANGUAGES): Remove.
8677 (get_ext_lang_defn, get_ext_lang_of_file)
8678 (eval_ext_lang_from_control_command): Update.
8679 (finish_ext_lang_initialization)
8680 (auto_load_ext_lang_scripts_for_objfile)
8681 (ext_lang_type_printers::ext_lang_type_printers)
8682 (apply_ext_lang_type_printers)
8683 (ext_lang_type_printers::~ext_lang_type_printers)
8684 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8685 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8686 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8687 (get_matching_xmethod_workers, ext_lang_colorize)
8688 (ext_lang_before_prompt): Update.
8689 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8690
596dc4ad
TT
86912020-05-08 Tom Tromey <tom@tromey.com>
8692
8693 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8694 overload.
8695 <swap_string, m_string>: Remove.
8696 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8697 Update.
8698 * stabsread.c (define_symbol, read_type): Update.
8699 * linespec.c (find_linespec_symbols): Update.
8700 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8701 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8702 * dbxread.c (read_dbx_symtab): Update.
8703 * cp-support.h (cp_canonicalize_string_full)
8704 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8705 Return unique_xmalloc_ptr.
8706 * cp-support.c (inspect_type): Update.
8707 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8708 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8709 Likewise.
8710 * c-typeprint.c (print_name_maybe_canonical): Update.
8711 * break-catch-throw.c (check_status_exception_catchpoint):
8712 Update.
8713
bf4cb9be
TV
87142020-05-08 Tom de Vries <tdevries@suse.de>
8715
8716 * infrun.c (follow_fork): Copy current_line and current_symtab to
8717 child thread.
8718
a1b68f28
SM
87192020-05-07 Simon Marchi <simon.marchi@efficios.com>
8720
8721 * async-event.c (struct async_signal_handler, struct
8722 async_event_handler): Reformat, remove typedef.
8723
98d48915
SM
87242020-05-07 Simon Marchi <simon.marchi@efficios.com>
8725
8726 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8727 access thistype->main_type->dyn_prop_list directly.
8728
7aa91313
SM
87292020-05-07 Simon Marchi <simon.marchi@efficios.com>
8730
8731 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8732 (remove_dyn_prop): Remove. Update all users to use
8733 type::remove_dyn_prop.
8734 * gdbtypes.c (remove_dyn_prop): Rename to...
8735 (type::remove_dyn_prop): ... this.
8736
5c54719c
SM
87372020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8738
8739 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8740 (add_dyn_prop): Remove. Update all users to use
8741 type::add_dyn_prop.
8742 * gdbtypes.c (add_dyn_prop): Rename to...
8743 (type::add_dyn_prop): ... this.
8744
24e99c6c
SM
87452020-05-07 Simon Marchi <simon.marchi@efficios.com>
8746
8747 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8748 (get_dyn_prop): Remove. Update all users to use
8749 type::dyn_prop.
8750 * gdbtypes.c (get_dyn_prop): Rename to...
8751 (type::dyn_prop): ... this.
8752
0d4bf016
SM
87532020-05-06 Simon Marchi <simon.marchi@efficios.com>
8754
8755 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8756
ac4a4f1c
SM
87572020-05-06 Simon Marchi <simon.marchi@efficios.com>
8758
8759 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8760 instruction, skip it if it's there.
8761
a3bbacc1
SM
87622020-05-05 Simon Marchi <simon.marchi@efficios.com>
8763
8764 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8765
c3236f84
SM
87662020-05-04 Simon Marchi <simon.marchi@efficios.com>
8767
8768 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8769 * gdbtypes.c (recursive_dump_type): Remove use of
8770 TYPE_INCOMPLETE.
8771
3b6acaee
TT
87722020-05-03 Tom Tromey <tom@tromey.com>
8773
8774 * breakpoint.c (catch_command, tcatch_command): Remove.
8775 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8776 add_show_prefix_cmd.
8777 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8778 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8779 Remove.
8780 (add_internal_problem_command): Use add_basic_prefix_cmd,
8781 add_show_prefix_cmd.
8782 * mips-tdep.c (set_mipsfpu_command): Remove.
8783 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8784 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8785 (_initialize_index_cache): Use add_basic_prefix_cmd.
8786 * memattr.c (dummy_cmd): Remove.
8787 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8788 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8789 (_initialize_tui_win): Use add_basic_prefix_cmd,
8790 add_show_prefix_cmd.
8791 * cli/cli-logging.c (set_logging_command): Remove.
8792 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8793 add_show_prefix_cmd.
8794 (show_logging_command): Remove.
8795 * target.c (target_command): Remove.
8796 (add_target): Use add_basic_prefix_cmd.
8797
a51119cd
HD
87982020-05-02 Hannes Domani <ssbssa@yahoo.de>
8799
8800 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8801
652fc23a 88022020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8803
652fc23a
PW
8804 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8805 info_command.
8806
117539e6
KR
88072020-04-30 Kamil Rytarowski <n54@gmx.com>
8808
8809 * nbsd-nat.c (nbsd_enable_proc_events)
8810 (nbsd_nat_target::post_startup_inferior): Add.
8811 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8812 (nbsd_nat_target::update_thread_list): Rewrite.
8813 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8814 "PTRACE_LWP_CREATE".
8815 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8816
102e38eb 88172020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8818
102e38eb
PW
8819 * stack.c (_initialize_stack): Remove duplicated creation
8820 of "frame" command and "f" alias.
8821
ee9d1e5f
HD
88222020-04-30 Hannes Domani <ssbssa@yahoo.de>
8823
8824 PR gdb/18706
8825 * gdbtypes.c (check_typedef): Calculate size of array of
8826 stubbed type.
8827
627c7fb8
HD
88282020-04-30 Hannes Domani <ssbssa@yahoo.de>
8829
8830 PR gdb/15559
8831 * i386-tdep.c (i386_push_dummy_call): Call
8832 i386_thiscall_push_dummy_call.
8833 (i386_thiscall_push_dummy_call): New function.
8834 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8835 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8836 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8837
ffc2844e
SM
88382020-04-29 Simon Marchi <simon.marchi@efficios.com>
8839
8840 * gdbarch.sh (do_read): Add shellcheck disable directive for
8841 warning SC2162.
8842
1207375d
SM
88432020-04-29 Simon Marchi <simon.marchi@efficios.com>
8844
8845 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8846 "referenced but not assigned" warning.
8847
9fdb2916
SM
88482020-04-29 Simon Marchi <simon.marchi@efficios.com>
8849
8850 * gdbarch.sh: Remove code that sets fallbackdefault.
8851
759cea5e
SM
88522020-04-29 Simon Marchi <simon.marchi@efficios.com>
8853
8854 * gdbarch.sh: Use shell operators && and || instead of
8855 -a and -o.
8856
cb02ab24
SM
88572020-04-29 Simon Marchi <simon.marchi@efficios.com>
8858
8859 * gdbarch.sh: Use $(...) instead of `...`.
8860
a6fc5ffc
SM
88612020-04-29 Simon Marchi <simon.marchi@efficios.com>
8862
8863 * gdbarch.sh: Use double quotes around variables.
8864
8d113d13
SM
88652020-04-29 Simon Marchi <simon.marchi@efficios.com>
8866
8867 * gdbarch.sh: Use %s with printf, instead of variables in the
8868 format string.
8869
ed6acedd
TT
88702020-04-29 Tom Tromey <tromey@adacore.com>
8871
8872 PR ada/25875:
8873 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8874 type fields here.
8875 (read_enumeration_type): Call
8876 update_enumeration_type_from_children later. Update comments.
8877 (process_enumeration_scope): Don't create type fields.
8878
b68b1b58
KR
88792020-04-29 Kamil Rytarowski <n54@gmx.com>
8880
8881 * nbsd-tdep.c: Include "xml-syscall.h".
8882 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8883
f94b2e03
KR
88842020-04-29 Kamil Rytarowski <n54@gmx.com>
8885
8886 * nbsd-nat.c: Include "sys/wait.h".
8887 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8888 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8889 (nbsd_nat_target::remove_exec_catchpoint)
8890 (nbsd_nat_target::set_syscall_catchpoint): Add.
8891 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8892 (nbsd_nat_target::insert_exec_catchpoint)
8893 (nbsd_nat_target::remove_exec_catchpoint)
8894 (nbsd_nat_target::set_syscall_catchpoint): Add.
8895 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8896 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8897 `nbsd_get_syscall_number'.
8898
fc49bc72
TT
88992020-04-29 Tom Tromey <tom@tromey.com>
8900
8901 * stack.c (print_block_frame_labels): Remove.
8902
d642b692
HD
89032020-04-29 Hannes Domani <ssbssa@yahoo.de>
8904
8905 PR gdb/17320
8906 * ada-valprint.c (val_print_packed_array_elements): Move array
8907 end bracket to new line.
8908 (ada_val_print_string): Remove extra spaces before first array
8909 element.
8910 * c-valprint.c (c_value_print_array): Likewise.
8911 * m2-valprint.c (m2_print_array_contents): Likewise.
8912 (m2_value_print_inner): Likewise.
8913 * p-valprint.c (pascal_value_print_inner): Likewise.
8914 * valprint.c (generic_val_print_array): Likewise.
8915 (value_print_array_elements): Move first array element and array
8916 end bracket to new line.
8917
ea90f227
TV
89182020-04-29 Tom de Vries <tdevries@suse.de>
8919
8920 PR symtab/25889
8921 * linespec.c (find_method): Fix ix calculation.
8922
4498ef4f
KR
89232020-04-28 Kamil Rytarowski <n54@gmx.com>
8924
8925 * syscalls/update-netbsd.sh: New file.
8926 * syscalls/netbsd.xml: Regenerate.
8927 * data-directory/Makefile.in: Register `netbsd.xml' in
8928 `SYSCALLS_FILES'.
8929
a55e30b5
SM
89302020-04-28 Simon Marchi <simon.marchi@efficios.com>
8931
8932 * syscalls/update-freebsd.sh: Add double quotes.
8933
2b2fbab8
TT
89342020-04-28 Tom Tromey <tom@tromey.com>
8935
8936 * NEWS: Update.
8937 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8938 (cmdpy_init): Allow class_tui.
8939
a65189c9
TV
89402020-04-28 Mark Williams <mark@myosotissp.com>
8941
8942 PR gdb/24480
8943 * dwarf2read.c: Add missing assingments to list_in_scope when
8944 start_symtab was already called.
8945
1b95cdb7
SM
89462020-04-28 Simon Marchi <simon.marchi@efficios.com>
8947
8948 PR gdb/25881
8949 * dwarf2/read.c (offset_map_type): Use
8950 gdb:hash_enum<sect_offset> as hash function.
8951
15cd93d0
TV
89522020-04-28 Tom de Vries <tdevries@suse.de>
8953
8954 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8955 with DW_AT_signature.
8956
1eb39914
SM
89572020-04-27 Simon Marchi <simon.marchi@efficios.com>
8958
8959 * configure.ac: Remove check for fs_base/gs_base in
8960 user_regs_struct.
8961 * configure: Re-generate.
8962 * config.in: Re-generate.
8963 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8964 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8965 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8966
991a3e2e
LM
89672020-04-27 Luis Machado <luis.machado@linaro.org>
8968
8969 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8970 problematic inline frame unwinding situation.
8971 * frame.c (frame_id_computed_p): New function.
8972 * frame.h (frame_id_computed_p): New prototype.
8973
361ba0e8
TT
89742020-04-26 Tom Tromey <tom@tromey.com>
8975
8976 * command.h (enum command_class) <class_pseudo>: Remove.
8977
bc3609fd
PW
89782020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8979
8980 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8981 and whitespace.
8982
b9771db7
KR
89832020-04-25 Kamil Rytarowski <n54@gmx.com>
8984
ec16513e
SM
8985 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8986 `PT_GET_PROCESS_STATE' block.
b9771db7 8987
7151c1af
TT
89882020-04-24 Tom Tromey <tom@tromey.com>
8989
8990 * symtab.h (symbol_get_demangled_name): Don't declare.
8991 * symtab.c (symbol_get_demangled_name): Remove.
8992 (general_symbol_info::natural_name)
8993 (general_symbol_info::demangled_name): Update.
8994
906bb4c5
TT
89952020-04-24 Tom Tromey <tom@tromey.com>
8996
8997 PR rust/25025:
8998 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8999
bcfe6157
TT
90002020-04-24 Tom Tromey <tom@tromey.com>
9001
9002 PR symtab/12707:
9003 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9004 exists.
9005 (new_symbol): Likewise.
9006 * compile/compile-object-load.c (get_out_value_type): Use
9007 symbol_matches_search_name.
9008
f049a313
TT
90092020-04-24 Tom Tromey <tom@tromey.com>
9010
9011 * dwarf2/read.c (add_partial_symbol): Do not call
9012 compute_and_set_names.
9013
76e288d1
TT
90142020-04-24 Tom Tromey <tom@tromey.com>
9015
9016 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9017 overload.
9018
2467f4f6
TT
90192020-04-24 Tom Tromey <tom@tromey.com>
9020
9021 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9022 (add_psymbol_to_list): New overload. Make old overload call new
9023 one.
9024 * psympriv.h (add_psymbol_to_list): New overload.
9025
e61108c9
TT
90262020-04-24 Tom Tromey <tom@tromey.com>
9027
9028 * dwarf2/read.c (partial_die_info::read) <case
9029 DW_AT_linkage_name>: Use value_as_string.
9030 (dwarf2_string_attr): Use value_as_string.
9031 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9032 method.
9033 * dwarf2/attribute.c (attribute::value_as_string): New method.
9034
8c87a452
TT
90352020-04-24 Tom Tromey <tom@tromey.com>
9036
9037 * symtab.c (general_symbol_info::natural_name)
9038 (general_symbol_info::demangled_name): Check for language_rust.
9039
787de330
TT
90402020-04-24 Tom Tromey <tom@tromey.com>
9041
9042 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9043 (dwarf2_physname): ... from here.
9044 (partial_die_info::read): Add Rust "{" hack.
9045
ff985671
TT
90462020-04-24 Tom Tromey <tom@tromey.com>
9047
9048 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9049 method.
9050 (symbol_set_demangled_name): Don't declare.
9051 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9052 symbol_set_demangled_name.
9053 (general_symbol_info::set_language)
9054 (general_symbol_info::compute_and_set_names): Update.
9055 * minsyms.c (minimal_symbol_reader::install): Update.
9056 * dwarf2/read.c (new_symbol): Update.
9057
1acda803
TT
90582020-04-24 Tom Tromey <tromey@adacore.com>
9059
9060 PR python/23662:
9061 * python/py-type.c (convert_field): Handle
9062 FIELD_LOC_KIND_DWARF_BLOCK.
9063 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9064 (typy_get_dynamic): Nw function.
9065 (type_object_getset): Add "dynamic".
9066 * NEWS: Add entry.
9067
d656f129
TT
90682020-04-24 Tom Tromey <tromey@adacore.com>
9069
9070 * ada-typeprint.c (print_choices, print_variant_part)
9071 (print_record_field_types_dynamic): New functions.
9072 (print_record_field_types): Use print_record_field_types_dynamic.
9073
7d79de9a
TT
90742020-04-24 Tom Tromey <tromey@adacore.com>
9075
9076 * dwarf2/read.c (handle_data_member_location): New overload.
9077 (dwarf2_add_field): Use it.
9078 (decode_locdesc): Add "computed" parameter. Update comment.
9079 * gdbtypes.c (is_dynamic_type_internal): Also look for
9080 FIELD_LOC_KIND_DWARF_BLOCK.
9081 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9082 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9083 virtual base classes.
9084 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9085 FIELD_LOC_KIND_DWARF_BLOCK.
9086
f8e89861
TT
90872020-04-24 Tom Tromey <tromey@adacore.com>
9088
9089 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9090 * gdbtypes.c (is_dynamic_type_internal): Check
9091 TYPE_HAS_DYNAMIC_LENGTH.
9092 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9093 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9094 New macros.
9095 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9096 constant.
9097
9c6a1327
TT
90982020-04-24 Tom Tromey <tromey@adacore.com>
9099
9100 * dwarf2/read.c (struct variant_field): Rewrite.
9101 (struct variant_part_builder): New.
9102 (struct nextfield): Remove "variant" field. Add "offset".
9103 (struct field_info): Add "current_variant_part" and
9104 "variant_parts".
9105 (alloc_discriminant_info): Remove.
9106 (alloc_rust_variant): New function.
9107 (quirk_rust_enum): Update.
9108 (dwarf2_add_field): Set "offset" member. Don't handle
9109 DW_TAG_variant_part.
9110 (offset_map_type): New typedef.
9111 (convert_variant_range, create_one_variant)
9112 (create_one_variant_part, create_variant_parts)
9113 (add_variant_property): New functions.
9114 (dwarf2_attach_fields_to_type): Call add_variant_property.
9115 (read_structure_type): Don't handle DW_TAG_variant_part.
9116 (handle_variant_part, handle_variant): New functions.
9117 (handle_struct_member_die): Use them.
9118 (process_structure_scope): Don't handle variant parts.
9119 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9120 (struct discriminant_info): Remove.
9121 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9122 (struct main_type) <flag_discriminated_union>: Remove.
9123 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9124 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9125 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9126 Update.
9127 * valops.c (value_union_variant): Remove.
9128 * value.h (value_union_variant): Don't declare.
9129
b249d2c2
TT
91302020-04-24 Tom Tromey <tromey@adacore.com>
9131
9132 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9133 (ada_value_primitive_packed_val): Update.
9134 * ada-valprint.c (ada_value_print_1): Update.
9135 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9136 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9137 just an address. Use evaluate_for_locexpr_baton.
9138 (dwarf2_evaluate_property): Update.
9139 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9140 array_view.
9141 * findvar.c (default_read_var_value): Update.
9142 * gdbtypes.c (compute_variant_fields_inner)
9143 (resolve_dynamic_type_internal): Update.
9144 (resolve_dynamic_type): Change type of valaddr parameter.
9145 * gdbtypes.h (resolve_dynamic_type): Update.
9146 * valarith.c (value_subscripted_rvalue): Update.
9147 * value.c (value_from_contents_and_address): Update.
9148
61122aa9
TT
91492020-04-24 Tom Tromey <tromey@adacore.com>
9150
9151 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9152 "push_initial_value" parameter.
9153 (dwarf2_evaluate_property): Likewise.
9154 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9155
ef83a141
TT
91562020-04-24 Tom Tromey <tromey@adacore.com>
9157
9158 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9159 (variant::matches, compute_variant_fields_recurse)
9160 (compute_variant_fields_inner, compute_variant_fields): New
9161 functions.
9162 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9163 Use resolved_type after type is made.
9164 (operator==): Add new cases.
9165 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9166 (struct discriminant_range, struct variant, struct variant_part):
9167 New.
9168 (union dynamic_prop_data) <variant_parts, original_type>: New
9169 members.
9170 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9171 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9172 constants.
9173 * value.c (unpack_bits_as_long): Now public.
9174 * value.h (unpack_bits_as_long): Declare.
9175
675127ec
TT
91762020-04-24 Tom Tromey <tromey@adacore.com>
9177
9178 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9179 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9180
9852ceef
HD
91812020-04-24 Hannes Domani <ssbssa@yahoo.de>
9182
9183 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9184
7632c6ce
KR
91852020-04-24 Kamil Rytarowski <n54@gmx.com>
9186
9187 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9188 (remove_fork_catchpoint, post_startup_inferior)
9189 (post_attach): Move...
9190 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9191 (remove_fork_catchpoint, post_startup_inferior)
9192 (post_attach): ...here.
9193 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9194 (remove_fork_catchpoint, post_startup_inferior)
9195 (post_attach): Move...
9196 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9197 (remove_fork_catchpoint, post_startup_inferior)
9198 (post_attach): ...here.
9199
7be2bb4f
TT
92002020-04-24 Tom Tromey <tromey@adacore.com>
9201
9202 * nat/windows-nat.h (struct windows_thread_info)
9203 <pc_adjusted>: New member.
9204 * windows-nat.c (windows_fetch_one_register): Check
9205 pc_adjusted.
9206 (windows_nat_target::get_windows_debug_event)
9207 (windows_nat_target::wait): Set pc_adjusted.
9208
f80cb3b4
TV
92092020-04-24 Tom de Vries <tdevries@suse.de>
9210
9211 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9212 Run gdb-add-index inside temp dir.
9213
29514b87
TT
92142020-04-23 Tom Tromey <tromey@adacore.com>
9215
9216 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9217 in loop.
9218
5939967b
LM
92192020-04-23 Luis Machado <luis.machado@linaro.org>
9220
9221 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9222 get_frame_register instead of gdbarch_unwind_pc.
9223
70bc38f5
TV
92242020-04-23 Tom de Vries <tdevries@suse.de>
9225
9226 * symtab.c (lookup_global_symbol): Prefer def over decl.
9227
de82891c
TV
92282020-04-23 Tom de Vries <tdevries@suse.de>
9229
9230 PR symtab/25807
9231 * block.c (best_symbol, better_symbol): Promote to external.
9232 * block.h (best_symbol, better_symbol): Declare.
9233 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9234 decl.
9235
ecc6c606
TT
92362020-04-23 Tom Tromey <tromey@adacore.com>
9237
9238 PR ada/25837:
9239 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9240 "const char *", not a "const std::string &".
9241 <name_and_matcher::operator==>: Update.
9242 * unittests/lookup_name_info-selftests.c: Change type of
9243 "result".
9244
740480b8
TT
92452020-04-23 Tom Tromey <tom@tromey.com>
9246
9247 * inferior.h (iterate_over_inferiors): Don't declare.
9248 * inferior.c (iterate_over_inferiors): Remove.
9249 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9250 Remove.
9251 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9252 use iterate_over_inferiors.
9253 (darwin_resume_inferior_it)
9254 (struct resume_inferior_threads_param)
9255 (darwin_resume_inferior_threads_it): Remove.
9256 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9257
ae3ab1f0
TV
92582020-04-23 Tom de Vries <tdevries@suse.de>
9259
9260 * blockframe.c (find_pc_partial_function): Use
9261 find_pc_sect_compunit_symtab rather than
9262 objfile->sf->qf->find_pc_sect_compunit_symtab.
9263
317d2668
TV
92642020-04-22 Tom de Vries <tdevries@suse.de>
9265
9266 PR symtab/25764
9267 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9268 in psymtabs.
9269
eea9e357
TV
92702020-04-22 Tom de Vries <tdevries@suse.de>
9271
9272 PR symtab/25801
9273 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9274 symtabs.
9275
3d5afab3
TV
92762020-04-22 Tom de Vries <tdevries@suse.de>
9277
9278 PR symtab/25700
9279 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9280 CU if already created.
9281
d43b7a2d
TBA
92822020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9283
9284 * infrun.c (displaced_step_fixup): Switch to the event_thread
9285 before calling displaced_step_restore, not after.
9286
d89edf9b
MM
92872020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9288
9289 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9290 its inferior is not recorded by us.
9291 (record_btrace_target_open): Replace call to
9292 all_non_exited_threads () with call to current_inferior
9293 ()->non_exited_threads ().
9294 (record_btrace_target::stop_recording): Likewise.
9295 (record_btrace_target::close): Likewise.
9296 (record_btrace_target::wait): Likewise.
9297 (record_btrace_target::record_stop_replaying): Likewise.
9298
5897fd49
MM
92992020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9300
9301 * btrace.c (btrace_enable): Throw an error on double enables and
9302 when enabling recording fails.
9303 (btrace_disable): Throw an error if the thread is not recorded.
9304
1a476b6d
MM
93052020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9306
9307 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9308 request if we do not have a thread_info.
9309
4778a5f8
TV
93102020-04-21 Tom de Vries <tdevries@suse.de>
9311
9312 PR gdb/25471
9313 * thread.c
9314 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9315 exception in get_frame_id.
9316
0fa7617d
TT
93172020-04-20 Tom Tromey <tromey@adacore.com>
9318
9319 * python/python.c (struct gdbpy_event): Mark move constructor as
9320 noexcept.
9321 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9322 constructor as noexcept.
9323 * completer.h (struct completion_result): Mark move constructor as
9324 noexcept.
9325 * completer.c (completion_result::completion_result): Use
9326 initialization style. Don't call reset_match_list.
9327
ad23bda0
MS
93282020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9329
9330 * MAINTAINERS (Write After Approval): Add myself.
9331
45e1f031
TT
93322020-04-18 Tom Tromey <tom@tromey.com>
9333
9334 * windows-tdep.c (init_w32_command_list)
9335 (w32_prefix_command_valid): Restore.
9336 (_initialize_windows_tdep): Call init_w32_command_list.
9337
08feed99
TT
93382020-04-18 Tom Tromey <tom@tromey.com>
9339
9340 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9341 * value.c (value_fn_field): Update.
9342 * valops.c (find_function_in_inferior)
9343 (value_allocate_space_in_inferior): Update.
9344 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9345 Update.
9346 * tui/tui-source.c (tui_source_window::set_contents): Update.
9347 * symtab.c (lookup_global_or_static_symbol)
9348 (find_function_start_sal_1, skip_prologue_sal)
9349 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9350 * symmisc.c (dump_msymbols, dump_symtab_1)
9351 (maintenance_print_one_line_table): Update.
9352 * symfile.c (init_entry_point_info, section_is_mapped)
9353 (list_overlays_command, simple_read_overlay_table)
9354 (simple_overlay_update_1): Update.
9355 * stap-probe.c (handle_stap_probe): Update.
9356 * stabsread.c (dbx_init_float_type, define_symbol)
9357 (read_one_struct_field, read_enum_type, read_range_type): Update.
9358 * source.c (info_line_command): Update.
9359 * python/python.c (gdbpy_source_objfile_script)
9360 (gdbpy_execute_objfile_script): Update.
9361 * python/py-type.c (save_objfile_types): Update.
9362 * python/py-objfile.c (py_free_objfile): Update.
9363 * python/py-inferior.c (python_new_objfile): Update.
9364 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9365 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9366 (maintenance_check_psymtabs): Update.
9367 * printcmd.c (info_address_command): Update.
9368 * objfiles.h (struct objfile) <arch>: New method, from
9369 get_objfile_arch.
9370 (get_objfile_arch): Don't declare.
9371 * objfiles.c (get_objfile_arch): Remove.
9372 (filter_overlapping_sections): Update.
9373 * minsyms.c (msymbol_is_function): Update.
9374 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9375 (output_nondebug_symbol): Update.
9376 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9377 (mdebug_expand_psymtab): Update.
9378 * machoread.c (macho_add_oso_symfile): Update.
9379 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9380 Update.
9381 * linux-fork.c (checkpoint_command): Update.
9382 * linespec.c (convert_linespec_to_sals): Update.
9383 * jit.c (finalize_symtab): Update.
9384 * infrun.c (insert_exception_resume_from_probe): Update.
9385 * ia64-tdep.c (ia64_find_unwind_table): Update.
9386 * hppa-tdep.c (internalize_unwinds): Update.
9387 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9388 Update.
9389 * gcore.c (call_target_sbrk): Update.
9390 * elfread.c (record_minimal_symbol, elf_symtab_read)
9391 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9392 (elf_gnu_ifunc_resolve_by_got): Update.
9393 * dwarf2/read.c (create_addrmap_from_index)
9394 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9395 (read_debug_names_from_section)
9396 (process_psymtab_comp_unit_reader, add_partial_symbol)
9397 (add_partial_subprogram, process_full_comp_unit)
9398 (read_file_scope, read_func_scope, read_lexical_block_scope)
9399 (read_call_site_scope, dwarf2_ranges_read)
9400 (dwarf2_record_block_ranges, dwarf2_add_field)
9401 (mark_common_block_symbol_computed, read_tag_pointer_type)
9402 (read_tag_string_type, dwarf2_init_float_type)
9403 (dwarf2_init_complex_target_type, read_base_type)
9404 (partial_die_info::read, partial_die_info::read)
9405 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9406 (dwarf2_fetch_die_loc_sect_off): Update.
9407 * dwarf2/loc.c (dwarf2_find_location_expression)
9408 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9409 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9410 (dwarf2_loc_desc_get_symbol_read_needs)
9411 (locexpr_describe_location_piece, locexpr_describe_location_1)
9412 (loclist_describe_location): Update.
9413 * dwarf2/index-write.c (write_debug_names): Update.
9414 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9415 * dtrace-probe.c (dtrace_process_dof): Update.
9416 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9417 (process_one_symbol): Update.
9418 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9419 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9420 (coff_read_enum_type): Update.
9421 * cli/cli-cmds.c (edit_command, list_command): Update.
9422 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9423 * breakpoint.c (create_overlay_event_breakpoint)
9424 (create_longjmp_master_breakpoint)
9425 (create_std_terminate_master_breakpoint)
9426 (create_exception_master_breakpoint, get_sal_arch): Update.
9427 * block.c (block_gdbarch): Update.
9428 * annotate.c (annotate_source_line): Update.
9429
0743fc83
TT
94302020-04-17 Tom Tromey <tromey@adacore.com>
9431
9432 * auto-load.c (show_auto_load_cmd): Remove.
9433 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9434 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9435 (maintenance_print_arc_command): Remove.
9436 * tui/tui-win.c (tui_command): Remove.
9437 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9438 * tui/tui-layout.c (tui_layout_command): Remove.
9439 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9440 * python/python.c (user_set_python, user_show_python): Remove.
9441 (_initialize_python): Use add_basic_prefix_cmd,
9442 add_show_prefix_cmd.
9443 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9444 (install_gdb_commands): Use add_basic_prefix_cmd,
9445 add_show_prefix_cmd.
9446 (info_guile_command): Remove.
9447 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9448 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9449 add_show_prefix_cmd.
9450 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9451 Remove do_set and do_show parameters.
9452 * cli/cli-style.c (set_style, show_style): Remove.
9453 (_initialize_cli_style): Use add_basic_prefix_cmd,
9454 add_show_prefix_cmd.
9455 (cli_style_option::add_setshow_commands): Remove do_set and
9456 do_show parameters.
9457 (cli_style_option::add_setshow_commands): Use
9458 add_basic_prefix_cmd, add_show_prefix_cmd.
9459 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9460 (set_style_name): Remove.
9461 * cli/cli-dump.c (dump_command, append_command): Remove.
9462 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9463 (tekhex_dump_command, binary_dump_command)
9464 (binary_append_command): Remove.
9465 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9466 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9467 (init_w32_command_list): Remove; move into ...
9468 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9469 * valprint.c (set_print, show_print, set_print_raw)
9470 (show_print_raw): Remove.
9471 (_initialize_valprint): Use add_basic_prefix_cmd,
9472 add_show_prefix_cmd.
9473 * typeprint.c (set_print_type, show_print_type): Remove.
9474 (_initialize_typeprint): Use add_basic_prefix_cmd,
9475 add_show_prefix_cmd.
9476 * record.c (set_record_command, show_record_command): Remove.
9477 (_initialize_record): Use add_basic_prefix_cmd,
9478 add_show_prefix_cmd.
9479 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9480 add_show_prefix_cmd.
9481 (info_command, show_command, set_debug, show_debug): Remove.
9482 * top.h (set_history, show_history): Don't declare.
9483 * top.c (set_history, show_history): Remove.
9484 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9485 (unset_tdesc_cmd): Remove.
9486 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9487 add_show_prefix_cmd.
9488 * symtab.c (info_module_command): Remove.
9489 (_initialize_symtab): Use add_basic_prefix_cmd.
9490 * symfile.c (overlay_command): Remove.
9491 (_initialize_symfile): Use add_basic_prefix_cmd.
9492 * sparc64-tdep.c (info_adi_command): Remove.
9493 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9494 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9495 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9496 add_show_prefix_cmd.
9497 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9498 (_initialize_serial): Use add_basic_prefix_cmd,
9499 add_show_prefix_cmd.
9500 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9501 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9502 add_show_prefix_cmd.
9503 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9504 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9505 add_show_prefix_cmd.
9506 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9507 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9508 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9509 add_show_prefix_cmd.
9510 * remote.c (remote_command, set_remote_cmd): Remove.
9511 (_initialize_remote): Use add_basic_prefix_cmd.
9512 * record-full.c (set_record_full_command)
9513 (show_record_full_command): Remove.
9514 (_initialize_record_full): Use add_basic_prefix_cmd,
9515 add_show_prefix_cmd.
9516 * record-btrace.c (cmd_set_record_btrace)
9517 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9518 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9519 (cmd_show_record_btrace_pt): Remove.
9520 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9521 add_show_prefix_cmd.
9522 * ravenscar-thread.c (set_ravenscar_command)
9523 (show_ravenscar_command): Remove.
9524 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9525 add_show_prefix_cmd.
9526 * mips-tdep.c (show_mips_command, set_mips_command)
9527 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9528 add_show_prefix_cmd.
9529 * maint.c (maintenance_command, maintenance_info_command)
9530 (maintenance_check_command, maintenance_print_command)
9531 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9532 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9533 add_show_prefix_cmd.
9534 (show_per_command_cmd): Remove.
9535 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9536 Remove.
9537 (maintenance_show_test_settings_cmd): Remove.
9538 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9539 add_show_prefix_cmd.
9540 * maint-test-options.c (maintenance_test_options_command):
9541 Remove.
9542 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9543 * macrocmd.c (macro_command): Remove
9544 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9545 * language.c (set_check, show_check): Remove.
9546 (_initialize_language): Use add_basic_prefix_cmd,
9547 add_show_prefix_cmd.
9548 * infcmd.c (unset_command): Remove.
9549 (_initialize_infcmd): Use add_basic_prefix_cmd.
9550 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9551 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9552 add_show_prefix_cmd.
9553 * go32-nat.c (go32_info_dos_command): Remove.
9554 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9555 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9556 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9557 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9558 (_initialize_frame): Use add_basic_prefix_cmd,
9559 add_show_prefix_cmd.
9560 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9561 (_initialize_dcache): Use add_basic_prefix_cmd,
9562 add_show_prefix_cmd.
9563 * cp-support.c (maint_cplus_command): Remove.
9564 (_initialize_cp_support): Use add_basic_prefix_cmd.
9565 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9566 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9567 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9568 add_basic_prefix_cmd, add_show_prefix_cmd.
9569 * breakpoint.c (save_command): Remove.
9570 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9571 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9572 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9573 add_show_prefix_cmd.
9574 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9575 (set_ada_command, show_ada_command): Remove.
9576 (_initialize_ada_language): Use add_basic_prefix_cmd,
9577 add_show_prefix_cmd.
9578 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9579
3557f442
KR
95802020-04-16 Kamil Rytarowski <n54@gmx.com>
9581
9582 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9583 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9584
16197208
SM
95852020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9586
9587 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9588 warning messages.
9589
00ac85d3
SM
95902020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9591
9592 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9593 import table is not at beginning of .idata section.
9594
381ce63f
PA
95952020-04-16 Pedro Alves <palves@redhat.com>
9596
9597 * inferior.c (delete_inferior): Use delete operator directly
9598 instead of delete_program_space.
9599 * progspace.c (add_program_space): New, factored out from
9600 program_space::program_space.
9601 (remove_program_space): New, factored out from
9602 delete_program_space.
9603 (program_space::program_space): Remove intro comment. Rewrite.
9604 (program_space::~program_space): Remove intro comment. Call
9605 remove_program_space.
9606 (delete_program_space): Delete.
9607 * progspace.h (program_space::program_space): Make explicit. Move
9608 intro comment here, adjusted.
9609 (program_space::~program_space): Move intro comment here,
9610 adjusted.
9611 (delete_program_space): Remove.
9612
a010605f
TT
96132020-04-16 Tom Tromey <tromey@adacore.com>
9614
9615 * windows-nat.c (windows_nat::handle_access_violation): New
9616 function.
9617 * nat/windows-nat.h (handle_access_violation): Declare.
9618 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9619 windows-nat.c. Call handle_access_violation.
9620
efba5c23
TV
96212020-04-16 Tom de Vries <tdevries@suse.de>
9622
9623 PR symtab/25791
9624 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9625 CUs without psymtab.
9626
97ed802d
KB
96272020-04-16 Kevin Buettner <kevinb@redhat.com>
9628
9629 * python/python.c (do_start_initialization): Don't call
9630 PyEval_InitThreads for Python 3.9 and beyond.
9631
c7d64809
KR
96322020-04-15 Kamil Rytarowski <n54@gmx.com>
9633
9634 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9635 thread functions.
9636 (obsd_nat_target::wait): Likewise.
9637
ce127a96
TT
96382020-04-15 Tom Tromey <tromey@adacore.com>
9639
9640 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9641 (DEBUG_EXCEPT): Use debug_printf.
9642
99f1bc6a
AB
96432020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9644
9645 * completer.c (class completion_tracker::completion_hash_entry)
9646 <hash_name>: New member function.
9647 (completion_tracker::discard_completions): New callback to hash a
9648 completion_hash_entry, pass this to htab_create_alloc.
9649
a0e9b532
JT
96502016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9651
9652 * windows-nat.c (windows_make_so): Warn rather than stopping with
9653 an error if realpath() fails.
9654
06ca5dd4
KR
96552020-04-14 Kamil Rytarowski <n54@gmx.com>
9656
9657 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9658 (nbsd_nat_target::info_proc): Add do_status.
9659
194d088f
TV
96602020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9661 Tom de Vries <tdevries@suse.de>
9662
9663 PR symtab/25718
9664 * psympriv.h (struct partial_symtab::read_symtab)
9665 (struct partial_symtab::expand_psymtab)
9666 (struct partial_symtab::read_dependencies): Update comments.
9667 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9668 read_symtab for includer.
9669 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9670 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9671 (struct dwarf2_include_psymtab::m_readin): Remove.
9672 (struct dwarf2_include_psymtab::includer): New member function.
9673 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9674
c1a66c06
TV
96752020-04-14 Tom de Vries <tdevries@suse.de>
9676
9677 PR symtab/25720
9678 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9679 with NULL symbol_matcher and lookup_name.
9680 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9681 and lookup_name.
9682 * dwarf2/read.c (dw2_expand_symtabs_matching)
9683 (dw2_debug_names_expand_symtabs_matching): Same.
9684 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9685 Make lookup_name a pointer. Update comment.
9686 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9687 lookup_name being a pointer.
9688 * symfile.c (expand_symtabs_matching): Same.
9689 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9690 * linespec.c (iterate_over_all_matching_symtabs): Same.
9691
400b5eca
TT
96922020-04-13 Tom Tromey <tom@tromey.com>
9693
9694 * run-on-main-thread.c: Update include.
9695 * unittests/main-thread-selftests.c: Update include.
9696 * tui/tui-win.c: Update include.
9697 * tui/tui-io.c: Update include.
9698 * tui/tui-interp.c: Update include.
9699 * tui/tui-hooks.c: Update include.
9700 * top.h: Update include.
9701 * top.c: Update include.
9702 * ser-base.c: Update include.
9703 * remote.c: Update include.
9704 * remote-notif.c: Update include.
9705 * remote-fileio.c: Update include.
9706 * record-full.c: Update include.
9707 * record-btrace.c: Update include.
9708 * python/python.c: Update include.
9709 * posix-hdep.c: Update include.
9710 * mingw-hdep.c: Update include.
9711 * mi/mi-main.c: Update include.
9712 * mi/mi-interp.c: Update include.
9713 * main.c: Update include.
9714 * linux-nat.c: Update include.
9715 * interps.c: Update include.
9716 * infrun.c: Update include.
9717 * inf-loop.c: Update include.
9718 * event-top.c: Update include.
9719 * event-loop.c: Move to ../gdbsupport/.
9720 * event-loop.h: Move to ../gdbsupport/.
9721 * async-event.h: Update include.
9722 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9723
93b54c8e
TT
97242020-04-13 Tom Tromey <tom@tromey.com>
9725
9726 * tui/tui-win.c: Include async-event.h.
9727 * remote.c: Include async-event.h.
9728 * remote-notif.c: Include async-event.h.
9729 * record-full.c: Include async-event.h.
9730 * record-btrace.c: Include async-event.h.
9731 * infrun.c: Include async-event.h.
9732 * event-top.c: Include async-event.h.
9733 * event-loop.h: Move some declarations to async-event.h.
9734 * event-loop.c: Don't include ser-event.h or top.h. Move some
9735 code to async-event.c.
9736 * async-event.h: New file.
9737 * async-event.c: New file.
9738 * Makefile.in (COMMON_SFILES): Add async-event.c.
9739 (HFILES_NO_SRCDIR): Add async-event.h.
9740
c1cd3163
TT
97412020-04-13 Tom Tromey <tom@tromey.com>
9742
9743 * utils.c (flush_streams): New function.
9744 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9745
29f2bf4f
TT
97462020-04-13 Tom Tromey <tom@tromey.com>
9747
9748 * event-loop.c (handle_file_event): Use warning, not
9749 printf_unfiltered.
9750
98029d02
TT
97512020-04-13 Tom Tromey <tom@tromey.com>
9752
9753 * event-loop.c: Include <chrono>.
9754
06cc9596
TT
97552020-04-13 Tom Tromey <tom@tromey.com>
9756
9757 * gdb_select.h: Move to ../gdbsupport/.
9758 * event-loop.c: Update include path.
9759 * top.c: Update include path.
9760 * ser-base.c: Update include path.
9761 * ui-file.c: Update include path.
9762 * ser-tcp.c: Update include path.
9763 * guile/scm-ports.c: Update include path.
9764 * posix-hdep.c: Update include path.
9765 * ser-unix.c: Update include path.
9766 * gdb_usleep.c: Update include path.
9767 * mingw-hdep.c: Update include path.
9768 * inflow.c: Update include path.
9769 * infrun.c: Update include path.
9770 * event-top.c: Update include path.
9771
8ae8e197
TT
97722020-04-13 Tom Tromey <tom@tromey.com>
9773
9774 * configure: Rebuild.
9775 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9776
58cf28e8
TT
97772020-04-13 Tom Tromey <tom@tromey.com>
9778
9779 * event-loop.h (start_event_loop): Don't declare.
9780 * event-loop.c (start_event_loop): Move...
9781 * main.c (start_event_loop): ...here. Now static.
9782
b7f999ae
SDJ
97832020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9784
9785 * MAINTAINERS: Update my email address.
9786
1085dfd4
KR
97872020-04-12 Kamil Rytarowski <n54@gmx.com>
9788
9789 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9790 IP_ALL.
9791
49d1d1f5
KR
97922020-04-12 Kamil Rytarowski <n54@gmx.com>
9793
9794 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9795 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9796
b4848d2a
KR
97972020-04-12 Kamil Rytarowski <n54@gmx.com>
9798
9799 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9800 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9801
51c133d5
KR
98022020-04-12 Kamil Rytarowski <n54@gmx.com>
9803
9804 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9805
54b8cbd0
KR
98062020-04-11 Kamil Rytarowski <n54@gmx.com>
9807
9808 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9809 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9810 (nbsd_nat_target::info_proc): New functions.
9811 * nbsd-nat.c (kinfo_get_vmmap): New function.
9812 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9813 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9814 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9815 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9816 functions.
9817 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9818 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9819 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9820 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9821 (KINFO_VME_FLAG_GROWS_DOWN): New.
9822
cf83625d
AS
98232020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9824
9825 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9826 bit shift.
9827
0c4311ab
TT
98282020-04-10 Tom Tromey <tromey@adacore.com>
9829
9830 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9831
3e65b3e9
TT
98322020-04-10 Tom Tromey <tromey@adacore.com>
9833
9834 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9835 separate debug files.
9836
13302e95
HD
98372020-04-10 Hannes Domani <ssbssa@yahoo.de>
9838
9839 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9840 Move to...
9841 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9842 ... here.
9843 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9844 Check for STATUS_WX86_BREAKPOINT.
9845 (windows_nat_target::wait): Same.
9846
bdfc1e8a
TV
98472020-04-10 Tom de Vries <tdevries@suse.de>
9848
9849 PR cli/25808
9850 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9851
f4460aec
SM
98522020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9853
9854 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9855 (Write After Approval): Remove Tom de Vries.
9856
a25198bb
BE
98572020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9858
9859 revert partially:
9860 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9861
aac66a4c
SM
9862 * buildsym.c (record_line): Fix undefined behavior and preserve
9863 lines at eof.
a25198bb 9864
206c98a6
KR
98652020-04-09 Kamil Rytarowski <n54@gmx.com>
9866
9867 * auxv.h (svr4_auxv_parse): New.
9868 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9869 and generic_auxv_parse.
9870 (svr4_auxv_parse): Add.
9871 * obsd-tdep.c: Include "auxv.h".
9872 (obsd_auxv_parse): Remove.
9873 (obsd_init_abi): Remove comment.
9874 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9875 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9876 * nbsd-tdep.c: Include "auxv.h".
9877 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9878
71fbdbaf
TT
98792020-04-08 Tom Tromey <tromey@adacore.com>
9880
9881 * nat/windows-nat.h (last_wait_event): Don't declare.
9882 (wait_for_debug_event): Update comment.
9883 * nat/windows-nat.c (last_wait_event): Now static.
9884
2c1d95e8
TT
98852020-04-08 Tom Tromey <tromey@adacore.com>
9886
9887 * windows-nat.c (wait_for_debug_event): Move to
9888 nat/windows-nat.c.
9889 * nat/windows-nat.h (wait_for_debug_event): Declare.
9890 * nat/windows-nat.c (wait_for_debug_event): Move from
9891 windows-nat.c. No longer static.
9892
d2977bc4
TT
98932020-04-08 Tom Tromey <tromey@adacore.com>
9894
9895 * windows-nat.c (get_windows_debug_event): Use
9896 fetch_pending_stop.
9897 * nat/windows-nat.h (fetch_pending_stop): Declare.
9898 * nat/windows-nat.c (fetch_pending_stop): New function.
9899
e758e19c
TT
99002020-04-08 Tom Tromey <tromey@adacore.com>
9901
9902 * windows-nat.c (windows_continue): Use matching_pending_stop and
9903 continue_last_debug_event.
9904 * nat/windows-nat.h (matching_pending_stop)
9905 (continue_last_debug_event): Declare.
9906 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9907 (matching_pending_stop, continue_last_debug_event): New
9908 functions.
9909
8d30e395
TT
99102020-04-08 Tom Tromey <tromey@adacore.com>
9911
9912 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9913 (handle_exception_result): Move to nat/windows-nat.h.
9914 (DEBUG_EXCEPTION_SIMPLE): Remove.
9915 (windows_nat::handle_ms_vc_exception): New function.
9916 (handle_exception): Move to nat/windows-nat.c.
9917 (get_windows_debug_event): Update.
9918 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9919 nat/windows-nat.c.
9920 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9921 (handle_exception_result): Move from windows-nat.c.
9922 (handle_exception): Declare.
9923 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9924 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9925 windows-nat.c.
9926
29de418d
TT
99272020-04-08 Tom Tromey <tromey@adacore.com>
9928
9929 * windows-nat.c (exception_count, event_count): Remove.
9930 (handle_exception, get_windows_debug_event)
9931 (do_initial_windows_stuff): Update.
9932
a816ba18
TT
99332020-04-08 Tom Tromey <tromey@adacore.com>
9934
9935 * windows-nat.c (windows_nat::handle_load_dll)
9936 (windows_nat::handle_unload_dll): Rename. No longer static.
9937 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9938 Declare.
9939
a00caa12
TT
99402020-04-08 Tom Tromey <tromey@adacore.com>
9941
9942 * complaints.h (stop_whining): Declare at top-level.
9943 (complaint): Don't declare stop_whining.
9944
d41b524f
TT
99452020-04-08 Tom Tromey <tromey@adacore.com>
9946
9947 * windows-nat.c (windows_nat::handle_output_debug_string):
9948 Rename. No longer static.
9949 * nat/windows-nat.h (handle_output_debug_string): Declare.
9950
3c76026d
TT
99512020-04-08 Tom Tromey <tromey@adacore.com>
9952
9953 * windows-nat.c (current_process_handle, current_process_id)
9954 (main_thread_id, last_sig, current_event, last_wait_event)
9955 (current_windows_thread, desired_stop_thread_id, pending_stops)
9956 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9957 (display_selectors, fake_create_process)
9958 (get_windows_debug_event): Update.
9959 * nat/windows-nat.h (current_process_handle, current_process_id)
9960 (main_thread_id, last_sig, current_event, last_wait_event)
9961 (current_windows_thread, desired_stop_thread_id, pending_stops)
9962 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9963 * nat/windows-nat.c (current_process_handle, current_process_id)
9964 (main_thread_id, last_sig, current_event, last_wait_event)
9965 (current_windows_thread, desired_stop_thread_id, pending_stops)
9966 (siginfo_er): New globals. Move from windows-nat.c.
9967
9d8679cc
TT
99682020-04-08 Tom Tromey <tromey@adacore.com>
9969
9970 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9971 (handle_load_dll): Update.
9972 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9973
28688adf
TT
99742020-04-08 Tom Tromey <tromey@adacore.com>
9975
9976 * windows-nat.c (enum thread_disposition_type): Move to
9977 nat/windows-nat.h.
9978 (windows_nat::thread_rec): Rename from thread_rec. No longer
9979 static.
9980 (windows_add_thread, windows_nat_target::fetch_registers)
9981 (windows_nat_target::store_registers, handle_exception)
9982 (windows_nat_target::resume, get_windows_debug_event)
9983 (windows_nat_target::get_tib_address)
9984 (windows_nat_target::thread_name)
9985 (windows_nat_target::thread_alive): Update.
9986 * nat/windows-nat.h (enum thread_disposition_type): Move from
9987 windows-nat.c.
9988 (thread_rec): Declare.
9989
4834dad0
TT
99902020-04-08 Tom Tromey <tromey@adacore.com>
9991
9992 * windows-nat.c: Add "using namespace".
9993 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9994 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9995
65bafd5b
TT
99962020-04-08 Tom Tromey <tromey@adacore.com>
9997
9998 * nat/windows-nat.h (struct windows_thread_info): Declare
9999 destructor.
10000 * nat/windows-nat.c (~windows_thread_info): New.
10001
0a4afda3
TT
100022020-04-08 Tom Tromey <tromey@adacore.com>
10003
10004 PR gdb/22992
10005 * windows-nat.c (current_event): Update comment.
10006 (last_wait_event, desired_stop_thread_id): New globals.
10007 (struct pending_stop): New.
10008 (pending_stops): New global.
10009 (windows_nat_target) <stopped_by_sw_breakpoint>
10010 <supports_stopped_by_sw_breakpoint>: New methods.
10011 (windows_fetch_one_register): Add assertions. Adjust PC.
10012 (windows_continue): Handle pending stops. Suspend other threads
10013 when stepping. Use last_wait_event
10014 (wait_for_debug_event): New function.
10015 (get_windows_debug_event): Use wait_for_debug_event. Handle
10016 pending stops. Queue spurious stops.
10017 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10018 (windows_nat_target::kill): Use wait_for_debug_event.
10019 * nat/windows-nat.h (struct windows_thread_info)
10020 <stopped_at_software_breakpoint>: New field.
10021 * nat/windows-nat.c (windows_thread_info::resume): Clear
10022 stopped_at_software_breakpoint.
10023
8e61ebec
TT
100242020-04-08 Tom Tromey <tromey@adacore.com>
10025
10026 * windows-nat.c (enum thread_disposition_type): New.
10027 (thread_rec): Replace "get_context" parameter with "disposition";
10028 change type.
10029 (windows_add_thread, windows_nat_target::fetch_registers)
10030 (windows_nat_target::store_registers, handle_exception)
10031 (windows_nat_target::resume, get_windows_debug_event)
10032 (windows_nat_target::get_tib_address)
10033 (windows_nat_target::thread_name)
10034 (windows_nat_target::thread_alive): Update.
10035
98a03287
TT
100362020-04-08 Tom Tromey <tromey@adacore.com>
10037
10038 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10039 (windows_continue): Use windows_continue::resume.
10040 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10041 resume>: Declare new methods.
10042 * nat/windows-nat.c: New file.
10043 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10044
7c7411bc
TT
100452020-04-08 Tom Tromey <tromey@adacore.com>
10046
10047 * windows-nat.c (windows_add_thread, windows_delete_thread)
10048 (windows_nat_target::fetch_registers)
10049 (windows_nat_target::store_registers, fake_create_process)
10050 (windows_nat_target::resume, windows_nat_target::resume)
10051 (get_windows_debug_event, windows_nat_target::wait)
10052 (windows_nat_target::pid_to_str)
10053 (windows_nat_target::get_tib_address)
10054 (windows_nat_target::get_ada_task_ptid)
10055 (windows_nat_target::thread_name)
10056 (windows_nat_target::thread_alive): Use lwp, not tid.
10057
2950fdf7
TT
100582020-04-08 Tom Tromey <tromey@adacore.com>
10059
10060 * windows-nat.c (handle_exception)
10061 (windows_nat_target::thread_name): Update.
10062 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10063 <name>: Now unique_xmalloc_ptr.
10064
62fe396b
TT
100652020-04-08 Tom Tromey <tromey@adacore.com>
10066
10067 * windows-nat.c (thread_rec)
10068 (windows_nat_target::fetch_registers): Update.
10069 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10070 Update comment.
10071 <debug_registers_changed, reload_context>: Now bool.
10072
e9534bd2
TT
100732020-04-08 Tom Tromey <tromey@adacore.com>
10074
10075 * windows-nat.c (windows_add_thread): Use new.
10076 (windows_init_thread_list, windows_delete_thread): Use delete.
10077 (get_windows_debug_event): Update.
10078 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10079 destructor, and initializers.
10080
ae1f8880
TT
100812020-04-08 Tom Tromey <tromey@adacore.com>
10082
10083 * windows-nat.c (struct windows_thread_info): Remove.
10084 * nat/windows-nat.h: New file.
10085
55a1e039
TT
100862020-04-08 Tom Tromey <tromey@adacore.com>
10087
10088 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10089 (thread_rec, windows_add_thread, windows_delete_thread)
10090 (windows_continue): Update.
10091
93366324
TT
100922020-04-08 Tom Tromey <tromey@adacore.com>
10093
10094 * windows-nat.c (struct windows_thread_info): Remove typedef.
10095 (thread_head): Remove.
10096 (thread_list): New global.
10097 (thread_rec, windows_add_thread, windows_init_thread_list)
10098 (windows_delete_thread, windows_continue): Update.
10099
0f2265e2
SM
101002020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10101
10102 * windows-tdep.h (windows_init_abi): Add comment.
10103 (cygwin_init_abi): New declaration.
10104 * windows-tdep.c: Split signal enumeration in two, one for
10105 Windows and one for Cygwin.
10106 (windows_gdb_signal_to_target): Only deal with signal of the
10107 Windows OS ABI.
10108 (cygwin_gdb_signal_to_target): New function.
10109 (windows_init_abi): Rename to windows_init_abi_common, don't set
10110 gdb_signal_to_target gdbarch method. Add new new function with
10111 this name.
10112 (cygwin_init_abi): New function.
10113 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10114 comment. Don't call windows_init_abi.
10115 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10116 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10117 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10118 i386_windows_init_abi_common, don't call windows_init_abi. Add
10119 a new function of this name.
10120 (i386_cygwin_init_abi): New function.
10121 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10122 OS ABI Cygwin.
10123
3810f182
SM
101242020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10125
10126 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10127 parameter.c.
10128 (dwarf2_read_gdb_index): Update.
10129
063f8e80
KR
101302020-04-07 Kamil Rytarowski <n54@gmx.com>
10131
10132 * nbsd-tdep.c: Include "objfiles.h".
10133 (nbsd_skip_solib_resolver): New.
10134 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10135
85a9510c 101362020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10137
10138 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10139 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10140 with DW_LLE_base_addressx are being emitted in DWARFv5.
10141 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10142 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10143 unsigned integer.
10144
9fc3eaae 101452020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10146
10147 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10148 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10149 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10150 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10151 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10152 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10153 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10154
10155
41144253 101562020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10157
10158 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10159 (read_loclist_index): New function definition.
10160 (lookup_loclist_base): New function definition.
10161 (read_loclist_header): New function definition.
10162 (dwarf2_cu): Add loclist_base and loclist_header field.
10163 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10164 (read_full_die_1): Read the value of DW_AT_loclists_base.
10165 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10166 (read_attribute_value): Handle DW_FORM_loclistx.
10167 (skip_one_die): Handle DW_FORM_loclistx.
10168 (loclist_header): New structure declaration.
10169 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10170
9f4e76a4
SM
101712020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10172
10173 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10174 constructor. Remove `addr` parameter from other constructor and
10175 add `per_cu` parameter.
10176 * dwarf2/read.c (create_partial_symtab): Update.
10177
25c11aca
TV
101782020-04-07 Tom de Vries <tdevries@suse.de>
10179
10180 PR symtab/25796
10181 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10182 (partial_die_info::fixup): Inherit has_const_value.
10183
5707e24b
TV
101842020-04-07 Tom de Vries <tdevries@suse.de>
10185
10186 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10187 symbols without address.
10188
05f00e22
KR
101892020-04-06 Kamil Rytarowski <n54@gmx.com>
10190
10191 * nbsd-nat.h (struct thread_info): Add forward declaration.
10192 (nbsd_nat_target::thread_alive): Add.
10193 (nbsd_nat_target::thread_name): Likewise.
10194 (nbsd_nat_target::update_thread_list): Likewise.
10195 (update_thread_list::post_attach): Likewise.
10196 (post_attach::pid_to_str): Likewise.
10197 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10198 (nbsd_thread_lister): Add.
10199 (nbsd_nat_target::thread_alive): Likewise.
10200 (nbsd_nat_target::thread_name): Likewise.
10201 (nbsd_add_threads): Likewise.
10202 (update_thread_list::post_attach): Likewise.
10203 (nbsd_nat_target::update_thread_list): Likewise.
10204 (post_attach::pid_to_str): Likewise.
10205
6ee448cc
TT
102062020-04-06 Tom Tromey <tromey@adacore.com>
10207
10208 * ada-valprint.c (print_variant_part): Extract the variant field.
10209 (print_field_values): Use the field as the outer value when
10210 recursing.
10211
dea34e8c
TT
102122020-04-06 Tom Tromey <tromey@adacore.com>
10213
10214 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10215 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10216 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10217 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10218 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10219
93689ce9
TT
102202020-04-06 Tom Tromey <tromey@adacore.com>
10221
10222 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10223 TYPE_CODE_ERROR.
10224
79743962
KR
102252020-04-06 Kamil Rytarowski <n54@gmx.com>
10226
10227 * nbsd-tdep.c: Include "gdbarch.h".
10228 Define enum with NetBSD signal numbers.
10229 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10230 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10231 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10232 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10233 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10234 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10235 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10236 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10237 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10238 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10239 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10240 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10241
9e7c9a03
HD
102422020-04-03 Hannes Domani <ssbssa@yahoo.de>
10243
10244 PR gdb/25325
10245 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10246
d9e49b61
TT
102472020-04-03 Tom Tromey <tromey@adacore.com>
10248
10249 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10250 Read constant block.
10251
e0fc5c3f
SM
102522020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10253
10254 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10255 (gdb_bfd_get_full_section_contents): New declaration.
10256 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10257 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10258 gdb_bfd_get_full_section_contents.
10259
e2ff18a0
SM
102602020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10261
10262 * exec.c (build_section_table): Replace internal_error with
10263 gdb_assert.
10264 (section_table_xfer_memory_partial): Likewise.
10265 * mdebugread.c (parse_partial_symbols): Likewise.
10266 * psymtab.c (lookup_partial_symbol): Likewise.
10267 * utils.c (wrap_here): Likewise.
10268
0830d301
TT
102692020-04-02 Tom Tromey <tromey@adacore.com>
10270
10271 * f-lang.c (build_fortran_types): Use arch_type to initialize
10272 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10273
e7da7f8f
TT
102742020-04-02 Tom Tromey <tromey@adacore.com>
10275
10276 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10277 of attributes.
10278
c90d28ac
AB
102792020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10280 Bernd Edlinger <bernd.edlinger@hotmail.de>
10281 Tom Tromey <tromey@adacore.com>
10282
10283 * buildsym.c (buildsym_compunit::record_line): Remove
10284 deduplication code.
10285
1aa98955
TV
102862020-04-02 Tom de Vries <tdevries@suse.de>
10287
10288 PR ada/24671
10289 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10290
d3214198
TV
102912020-04-02 Tom de Vries <tdevries@suse.de>
10292
10293 * dwarf2/read.c (dwarf2_gdb_index_functions,
10294 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10295 NULL.
10296 * psymtab.c (psym_lookup_global_symbol_language): New function.
10297 (psym_functions): Init psym_lookup_global_symbol_language with
10298 psym_lookup_global_symbol_language.
10299 * symfile-debug.c (debug_sym_quick_functions): Init
10300 lookup_global_symbol_language with NULL.
10301 * symfile.c (set_initial_language): Remove fixme comment.
10302 * symfile.h (struct quick_symbol_functions): Add
10303 lookup_global_symbol_language.
10304 * symtab.c (find_quick_global_symbol_language): New function.
10305 (find_main_name): Use find_quick_global_symbol_language.
10306
2836752f
SM
103072020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10308
10309 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10310
64dc2d4b
BE
103112020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10312
10313 * buildsym.c (record_line): Fix undefined behavior and preserve
10314 lines at eof.
10315
bbe3dc41
BE
103162020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10317
10318 * buildsym.c (record_line): Fix the resizing condition.
10319
6b4a335b
TT
103202020-04-01 Tom Tromey <tom@tromey.com>
10321
10322 * value.h (value_literal_complex): Add comment.
10323 * valops.c (value_literal_complex): Refer to value.h.
10324
3638a098
TT
103252020-04-01 Tom Tromey <tom@tromey.com>
10326
10327 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10328 (scalar_type): New rule, from typebase.
10329 (typebase): Use scalar_type. Recognize complex types.
10330 (field_name): Handle FLOAT_KEYWORD.
10331 (ident_tokens): Add _Complex and __complex__.
10332
c34e8714
TT
103332020-04-01 Tom Tromey <tom@tromey.com>
10334
10335 PR exp/25299:
10336 * valarith.c (promotion_type, complex_binop): New functions.
10337 (scalar_binop): Handle complex numbers. Use promotion_type.
10338 (value_pos, value_neg, value_complement): Handle complex numbers.
10339
fa649bb7
TT
103402020-04-01 Tom Tromey <tom@tromey.com>
10341
10342 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10343 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10344 (parse_number): Handle complex numbers.
10345
981c08ce
TT
103462020-04-01 Tom Tromey <tom@tromey.com>
10347
10348 * c-valprint.c (c_decorations): Change complex suffix to "i".
10349
4c99290d
TT
103502020-04-01 Tom Tromey <tom@tromey.com>
10351
10352 * valprint.c (generic_value_print_complex): Use accessors.
10353 * value.h (value_real_part, value_imaginary_part): Declare.
10354 * valops.c (value_real_part, value_imaginary_part): New
10355 functions.
10356 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10357
5b930b45
TT
103582020-04-01 Tom Tromey <tom@tromey.com>
10359
10360 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10361 (read_range_type): Update.
10362 * mdebugread.c (basic_type): Update.
10363 * go-lang.c (build_go_types): Use init_complex_type.
10364 * gdbtypes.h (struct main_type) <complex_type>: New member.
10365 (init_complex_type): Update.
10366 (arch_complex_type): Don't declare.
10367 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10368 Make name if none given. Use alloc_type_copy. Look for cached
10369 complex type.
10370 (arch_complex_type): Remove.
10371 (gdbtypes_post_init): Use init_complex_type.
10372 * f-lang.c (build_fortran_types): Use init_complex_type.
10373 * dwarf2/read.c (read_base_type): Update.
10374 * d-lang.c (build_d_types): Use init_complex_type.
10375 * ctfread.c (read_base_type): Update.
10376
53cccef1
TBA
103772020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10378
10379 * infrun.c (stop_all_threads): Update assertion, plus when
10380 stopping threads, take into account that we might be trying
10381 to stop an all-stop target.
10382 (stop_waiting): Call 'stop_all_threads' if there exists a
10383 non-stop target.
10384
a0714d30
TBA
103852020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10386
10387 * target.h (exists_non_stop_target): New function declaration.
10388 * target.c (exists_non_stop_target): New function.
10389
60e22c1e
HD
103902020-04-01 Hannes Domani <ssbssa@yahoo.de>
10391
10392 PR gdb/24789
10393 * eval.c (is_integral_or_integral_reference): New function.
10394 (evaluate_subexp_standard): Allow integer references in
10395 pointer arithmetic.
10396
e139a727
TBA
103972020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10398
10399 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10400 check for no ptid in the stop reply when the target is non-stop.
10401
e0802d59
TT
104022020-04-01 Tom Tromey <tromey@adacore.com>
10403
10404 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10405 "name" parameter to rvalue reference. Initialize m_name_holder.
10406 <lookup_name_info>: New overloads.
10407 <name>: Return gdb::string_view.
10408 <c_str>: New method.
10409 <make_ignore_params>: Update.
10410 <search_name_hash>: Update.
10411 <language_lookup_name>: Return const char *.
10412 <m_name>: Change type.
10413 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10414 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10415 (lookup_name_info::match_any): Update.
10416 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10417 Update.
10418 * minsyms.c (linkage_name_str): Update.
10419 * language.c (default_symbol_name_matcher): Update.
10420 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10421 Update.
10422 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10423 (ada_lookup_name_info::ada_lookup_name_info): Update.
10424 (literal_symbol_name_matcher): Update.
10425
8c072cb6
TT
104262020-04-01 Tom Tromey <tromey@adacore.com>
10427
10428 * psymtab.c (psymtab_search_name): Remove function.
10429 (psym_lookup_symbol): Create search name and lookup name here.
10430 (lookup_partial_symbol): Remove "name" parameter; add
10431 lookup_name.
10432 (psym_expand_symtabs_for_function): Update.
10433
6f29a534
TT
104342020-03-31 Joel Jones <joelkevinjones@gmail.com>
10435
10436 PR tui/25597:
10437 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10438
af62665e
TT
104392020-03-31 Tom Tromey <tromey@adacore.com>
10440
10441 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10442 memcpy.
10443
d1a89da5
NC
104442020-03-30 Nelson Chu <nelson.chu@sifive.com>
10445
10446 * features/riscv/32bit-csr.xml: Regenerated.
10447 * features/riscv/64bit-csr.xml: Regenerated.
10448
d8af9068
TT
104492020-03-30 Tom Tromey <tromey@adacore.com>
10450
10451 * ada-valprint.c (print_variant_part): Update.
10452 * ada-lang.h (ada_which_variant_applies): Update.
10453 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10454 outer_valaddr parameters; replace with "outer" value parameter.
10455 (to_fixed_variant_branch_type): Update.
10456
227c0bf4
PFC
104572020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10458
10459 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10460 <list>. Remove inclusion of observable.h.
10461 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10462 (struct arch_lwp_info): New struct.
10463 (class ppc_linux_dreg_interface): New class.
10464 (struct ppc_linux_process_info): New struct.
10465 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10466 <low_new_clone, low_forget_process, low_prepare_to_resume>
10467 <copy_thread_dreg_state, mark_thread_stale>
10468 <mark_debug_registers_changed, register_hw_breakpoint>
10469 <clear_hw_breakpoint, register_wp, clear_wp>
10470 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10471 <num_memory_accesses, get_trigger_type>
10472 <create_watchpoint_request, hwdebug_point_cmp>
10473 <init_arch_lwp_info, get_arch_lwp_info>
10474 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10475 methods.
10476 <struct ptid_hash>: New inner struct.
10477 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10478 members.
10479 (saved_dabr_value, hwdebug_info, max_slots_number)
10480 (struct hw_break_tuple, struct thread_points, ppc_threads)
10481 (have_ptrace_hwdebug_interface)
10482 (hwdebug_find_thread_points_by_tid)
10483 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10484 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10485 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10486 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10487 use m_dreg_interface.
10488 (hwdebug_point_cmp): Change to...
10489 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10490 reference arguments instead of pointers.
10491 (ppc_linux_nat_target::ranged_break_num_registers): Use
10492 m_dreg_interface.
10493 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10494 m_dreg_interface. Call register_hw_breakpoint.
10495 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10496 m_dreg_interface. Call clear_hw_breakpoint.
10497 (get_trigger_type): Change to...
10498 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10499 comment.
10500 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10501 use m_dreg_interface. Call register_hw_breakpoint.
10502 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10503 use m_dreg_interface. Call clear_hw_breakpoint.
10504 (can_use_watchpoint_cond_accel): Change to...
10505 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10506 method. Update comment, use m_dreg_interface and
10507 m_process_info.
10508 (calculate_dvc): Change to...
10509 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10510 m_dreg_interface.
10511 (num_memory_accesses): Change to...
10512 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10513 (check_condition): Change to...
10514 (ppc_linux_nat_target::check_condition): ...this method.
10515 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10516 comment, use m_dreg_interface.
10517 (create_watchpoint_request): Change to...
10518 (ppc_linux_nat_target::create_watchpoint_request): ...this
10519 method. Use m_dreg_interface.
10520 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10521 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10522 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10523 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10524 (ppc_linux_nat_target::low_forget_process)
10525 (ppc_linux_nat_target::low_new_fork)
10526 (ppc_linux_nat_target::low_new_clone)
10527 (ppc_linux_nat_target::low_delete_thread)
10528 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10529 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10530 only call mark_thread_stale.
10531 (ppc_linux_thread_exit): Remove.
10532 (ppc_linux_nat_target::stopped_data_address): Change to...
10533 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10534 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10535 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10536 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10537 comment. Call low_stopped_data_address.
10538 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10539 m_dreg_interface.
10540 (ppc_linux_nat_target::masked_watch_num_registers): Use
10541 m_dreg_interface.
10542 (ppc_linux_nat_target::copy_thread_dreg_state)
10543 (ppc_linux_nat_target::mark_thread_stale)
10544 (ppc_linux_nat_target::mark_debug_registers_changed)
10545 (ppc_linux_nat_target::register_hw_breakpoint)
10546 (ppc_linux_nat_target::clear_hw_breakpoint)
10547 (ppc_linux_nat_target::register_wp)
10548 (ppc_linux_nat_target::clear_wp)
10549 (ppc_linux_nat_target::init_arch_lwp_info)
10550 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10551 (_initialize_ppc_linux_nat): Remove observer callback.
10552
4db10d8f
PFC
105532020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10554
10555 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10556 (ppc_linux_nat_target::auxv_parse)
10557 (ppc_linux_nat_target::read_description)
10558 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10559 Move up.
10560
1310c1b0
PFC
105612020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10562
10563 * linux-nat.h (low_new_clone): New method.
10564 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10565
69b037c3
SM
105662020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10567
10568 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10569 (dbx_expand_psymtab): ... this.
10570 (start_psymtab): Update.
10571 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10572 (mdebug_expand_psymtab): ... this.
10573 (parse_partial_symbols): Update.
10574 (new_psymtab): Update.
10575 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10576 (xcoff_expand_psymtab): ... this.
10577 (xcoff_start_psymtab): Update.
10578
48993951
SM
105792020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10580
10581 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10582 <expand_dependencies>: ... this.
10583 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10584 (partial_symtab::expand_dependencies): ... this.
10585 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10586 Update.
10587 (dwarf2_psymtab::expand_psymtab): Update.
10588 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10589 * mdebugread.c (psymtab_to_symtab_1): Update.
10590 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10591
3ad83046
SM
105922020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10593
10594 * psympriv.h (discard_psymtab): Remove.
10595 * dbxread.c (dbx_end_psymtab): Update.
10596 * xcoffread.c (xcoff_end_psymtab): Update.
10597
4d1b9ab6
TT
105982020-03-28 Tom Tromey <tom@tromey.com>
10599
10600 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10601 comment.
10602
f1749218
TT
106032020-03-28 Tom Tromey <tom@tromey.com>
10604
10605 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10606
ebea7626
HD
106072020-03-27 Hannes Domani <ssbssa@yahoo.de>
10608
10609 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10610
a879b4d5
JB
106112020-03-26 John Baldwin <jhb@FreeBSD.org>
10612
10613 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10614
0826b30a
TT
106152020-03-26 Tom Tromey <tom@tromey.com>
10616
10617 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10618 (mark_common_block_symbol_computed, read_tag_string_type)
10619 (attr_to_dynamic_prop, read_subrange_type): Update.
10620 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10621 to be methods on struct attribute.
10622 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10623 (read_call_site_scope, partial_die_info::read)
10624 (partial_die_info::read, lookup_die_type, follow_die_ref):
10625 Update.
10626 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10627 from dwarf2_get_ref_die_offset.
10628 (attribute::constant_value): New method, from
10629 dwarf2_get_attr_constant_value.
10630 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10631 Declare method.
10632 <constant_value>: New method.
10633
2b2558bf
TT
106342020-03-26 Tom Tromey <tom@tromey.com>
10635
10636 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10637 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10638 (dwarf_type_encoding_name): Move to stringify.c.
10639 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10640 * dwarf2/stringify.c: New file.
10641 * dwarf2/stringify.h: New file.
10642
eeb64781
TT
106432020-03-26 Tom Tromey <tom@tromey.com>
10644
10645 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10646 Rewrite.
10647
a39fdb41
TT
106482020-03-26 Tom Tromey <tom@tromey.com>
10649
10650 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10651 methods.
10652 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10653 (lookup_ranges_base): Likewise.
10654 (read_cutu_die_from_dwo, read_full_die_1): Update.
10655
436c571c
TT
106562020-03-26 Tom Tromey <tom@tromey.com>
10657
10658 * dwarf2/read.c (read_import_statement, read_file_scope)
10659 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10660 (read_lexical_block_scope, read_call_site_scope)
10661 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10662 (handle_struct_member_die, process_structure_scope)
10663 (update_enumeration_type_from_children)
10664 (process_enumeration_scope, read_array_type, read_common_block)
10665 (read_namespace, read_module, read_subroutine_type): Update.
10666 (sibling_die): Remove.
10667
052c8bb8
TT
106682020-03-26 Tom Tromey <tom@tromey.com>
10669
10670 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10671 (build_type_psymtabs_reader, read_structure_type)
10672 (read_enumeration_type, read_full_die_1): Update.
10673 (dwarf2_attr_no_follow): Move to die.h.
10674 * dwarf2/die.h (struct die_info) <attr>: New method.
10675
2b24b6e4
TT
106762020-03-26 Tom Tromey <tom@tromey.com>
10677
10678 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10679 <base_address>: Now an optional.
10680 (dwarf2_find_base_address, dwarf2_rnglists_process)
10681 (dwarf2_ranges_process, fill_in_loclist_baton)
10682 (dwarf2_symbol_mark_computed): Update.
10683
c2d50fd0
TT
106842020-03-26 Tom Tromey <tom@tromey.com>
10685
10686 * dwarf2/read.c (struct die_info): Move to die.h.
10687 * dwarf2/die.h: New file.
10688
0df7ad3a
TT
106892020-03-26 Tom Tromey <tom@tromey.com>
10690
10691 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10692 * dwarf2/read.c
10693 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10694 Move to line-header.c.
10695 (read_checked_initial_length_and_offset, read_formatted_entries):
10696 Likewise.
10697 (dwarf_decode_line_header): Split into two.
10698 * dwarf2/line-header.c
10699 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10700 Move from read.c.
10701 (read_checked_initial_length_and_offset, read_formatted_entries):
10702 Likewise.
10703 (dwarf_decode_line_header): New function, split from read.c.
10704
86c0bb4c
TT
107052020-03-26 Tom Tromey <tom@tromey.com>
10706
10707 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10708 Declare method.
10709 * dwarf2/read.c (read_attribute_value): Update.
10710 (dwarf2_per_objfile::read_line_string): Rename from
10711 read_indirect_line_string.
10712 (read_formatted_entries): Update.
10713
2ef46c2f
TT
107142020-03-26 Tom Tromey <tom@tromey.com>
10715
10716 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10717 variable.
10718
4f9c1eda
TT
107192020-03-26 Tom Tromey <tom@tromey.com>
10720
10721 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10722 const.
10723 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10724 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10725 parameter const.
10726
5a0e026f
TT
107272020-03-26 Tom Tromey <tom@tromey.com>
10728
10729 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10730 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10731 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10732 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10733
8844c11b
TT
107342020-03-26 Tom Tromey <tom@tromey.com>
10735
10736 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10737 file_names_size, file_full_name, file_file_name>: Use const.
10738 <file_name_at, file_names>: Add const overload.
10739 * dwarf2/line-header.c (line_header::file_file_name)
10740 (line_header::file_full_name): Update.
10741
c90ec28a
TT
107422020-03-26 Tom Tromey <tom@tromey.com>
10743
10744 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10745 (macro_start_file, consume_improper_spaces)
10746 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10747 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10748 (dwarf_decode_macros): Move to macro.c.
10749 * dwarf2/macro.c: New file.
10750 * dwarf2/macro.h: New file.
10751 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10752
4f44ae6c
TT
107532020-03-26 Tom Tromey <tom@tromey.com>
10754
10755 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10756 method.
10757 * dwarf2/section.c: New method. From
10758 read_indirect_string_at_offset_from.
10759 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10760 (read_indirect_string_at_offset_from): Move to section.c.
10761 (read_indirect_string_at_offset): Rewrite.
10762 (read_indirect_line_string_at_offset): Remove.
10763 (read_indirect_string, read_indirect_line_string)
10764 (dwarf_decode_macro_bytes): Update.
10765
a0194fa8
TT
107662020-03-26 Tom Tromey <tom@tromey.com>
10767
10768 * dwarf2/section.h (struct dwarf2_section_info)
10769 <overload_complaint>: Declare.
10770 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10771 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10772 Rename from dwarf2_section_buffer_overflow_complaint.
10773 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10774 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10775
3d27bbdb
TT
107762020-03-26 Tom Tromey <tom@tromey.com>
10777
10778 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10779 Declare.
10780 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10781 Move from read.c.
10782 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10783 to section.c.
10784
9eac9650
TT
107852020-03-26 Tom Tromey <tom@tromey.com>
10786
10787 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10788
bf80d710
TT
107892020-03-26 Tom Tromey <tom@tromey.com>
10790
10791 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10792 "builder".
10793 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10794 parameter.
10795 (dwarf_decode_macros): Update.
10796
0314b390
TT
107972020-03-26 Tom Tromey <tom@tromey.com>
10798
10799 * dwarf2/read.c (read_attribute_value): Update.
10800 (read_indirect_string_from_dwz): Move to dwz.c; change into
10801 method.
10802 (dwarf_decode_macro_bytes): Update.
10803 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10804 * dwarf2/dwz.c: New file.
10805 * Makefile.in (COMMON_SFILES): Add dwz.c.
10806
9fda78b6
TT
108072020-03-26 Tom Tromey <tom@tromey.com>
10808
10809 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10810 * dwarf2/read.c: Add include.
10811 * dwarf2/index-write.c: Add include.
10812 * dwarf2/index-cache.c: Add include.
10813 * dwarf2/dwz.h: New file.
10814
33aa3c10
TT
108152020-03-25 Tom Tromey <tom@tromey.com>
10816
10817 * compile/compile-object-load.c (get_out_value_type): Mention
10818 correct symbol name in error message.
10819
d503b685
HD
108202020-03-25 Hannes Domani <ssbssa@yahoo.de>
10821
10822 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10823
7b1eff95
TV
108242020-03-25 Tom de Vries <tdevries@suse.de>
10825
10826 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10827 * symmisc.c (dump_symtab_1): Print user and includes fields.
10828 (maintenance_info_symtabs): Same.
10829
dd895392
AB
108302020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10831
10832 PR gdb/25534
10833 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10834 (riscv_regcache_cooked_write): New function.
10835 (riscv_push_dummy_call): Use new function.
10836 (riscv_return_value): Likewise.
10837
5ab2fbf1
SM
108382020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10839
10840 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10841 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10842 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10843 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10844 * infrun.c (follow_fork): Likewise.
10845 (follow_fork_inferior): Likewise.
10846 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10847 * linux-nat.h (class linux_nat_target): Likewise.
10848 * remote.c (class remote_target) <follow_fork>: Likewise.
10849 (remote_target::follow_fork): Likewise.
10850 * target-delegates.c: Re-generate.
10851 * target.c (default_follow_fork): Likewise.
10852 (target_follow_fork): Likewise.
10853 * target.h (struct target_ops) <follow_fork>: Likewise.
10854 (target_follow_fork): Likewise.
10855
a64fafb5
TV
108562020-03-24 Tom de Vries <tdevries@suse.de>
10857
10858 * psymtab.c (maintenance_info_psymtabs): Print user field.
10859
fe26d3a3
TT
108602020-03-20 Tom Tromey <tromey@adacore.com>
10861
10862 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10863 const.
10864 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10865 const.
10866
c884cc46
SM
108672020-03-20 Simon Marchi <simon.marchi@efficios.com>
10868
10869 * ptrace.m4: Don't check for ptrace declaration.
10870 * config.in: Re-generate.
10871 * configure: Re-generate.
10872 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10873 not defined.
10874
1ff700c2
KR
108752020-03-20 Kamil Rytarowski <n54@gmx.com>
10876
10877 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10878 `PTRACE_TYPE_RET'.
10879 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10880 * sparc-nat.c (gdb_ptrace): Likewise.
10881 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10882
f7d4f0b1
TT
108832020-03-20 Tom Tromey <tromey@adacore.com>
10884
10885 * c-exp.y (lex_one_token): Fix assert.
10886
f67210ff
TT
108872020-03-20 Tom Tromey <tromey@adacore.com>
10888
10889 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10890 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10891 strncpy call.
10892
1773be9e
TT
108932020-03-20 Tom Tromey <tromey@adacore.com>
10894
10895 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10896
70304be9
TT
108972020-03-20 Tom Tromey <tromey@adacore.com>
10898
10899 * ada-valprint.c (print_variant_part): Remove parameters; switch
10900 to value-based API.
10901 (print_field_values): Likewise.
10902 (ada_val_print_struct_union): Likewise.
10903 (ada_value_print_1): Update.
10904
9faa006d
KR
109052020-03-20 Kamil Rytarowski <n54@gmx.com>
10906
10907 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10908 nbsd_nat_target instead of inf_ptrace_target.
10909 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10910 nbsd_nat_target.
10911
4a90f062
KR
109122020-03-20 Kamil Rytarowski <n54@gmx.com>
10913
10914 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10915 it to the ptrace call.
10916 * (store_registers): Likewise.
10917
109182020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10919
10920 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10921 it to the ptrace call.
10922 * (store_registers): Likewise.
10923
2d07da27
LM
109242020-03-19 Luis Machado <luis.machado@linaro.org>
10925
10926 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10927 valid, fetch vg value from ptrace.
10928
f09db380
KR
109292020-03-19 Kamil Rytarowski <n54@gmx.com>
10930 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10931 * inf-ptrace.c: Likewise.
10932 * (gdb_ptrace): Add.
10933 * (inf_ptrace_target::resume): Update.
10934 * (inf_ptrace_target::xfer_partial): Likewise.
10935 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10936 * (inf_ptrace_peek_poke): Update.
10937
fcc7376e
KR
109382020-03-19 Kamil Rytarowski <n54@gmx.com>
10939
10940 * x86-bsd-nat.c (gdb_ptrace): New.
10941 * (x86bsd_dr_set): Add new argument `ptid'.
10942 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10943 x86bsd_dr_set_addr): Update.
10944
cada5fc9
AB
109452020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10946
10947 * remote.c (remote_target::process_stop_reply): Handle events for
10948 all threads differently.
10949
19a2740f
AB
109502020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10951
10952 * completer.c (completion_tracker::remove_completion): Define new
10953 function.
10954 * completer.h (completion_tracker::remove_completion): Declare new
10955 function.
10956 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10957 when adding a C++ function symbol.
10958
724fd9ba
AB
109592020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10960
10961 * completer.c (completion_tracker::completion_hash_entry): Define
10962 new class.
10963 (advance_to_filename_complete_word_point): Call
10964 recompute_lowest_common_denominator.
10965 (completion_tracker::completion_tracker): Call discard_completions
10966 to setup the hash table.
10967 (completion_tracker::discard_completions): Allow for being called
10968 from the constructor, pass new equal function, and element deleter
10969 when constructing the hash table. Initialise new class member
10970 variables.
10971 (completion_tracker::maybe_add_completion): Remove use of
10972 m_entries_vec, and store more information into m_entries_hash.
10973 (completion_tracker::recompute_lcd_visitor): New function, most
10974 content taken from...
10975 (completion_tracker::recompute_lowest_common_denominator):
10976 ...here, this now just visits each item in the hash calling the
10977 above visitor.
10978 (completion_tracker::build_completion_result): Remove use of
10979 m_entries_vec, call recompute_lowest_common_denominator.
10980 * completer.h (completion_tracker::have_completions): Remove use
10981 of m_entries_vec.
10982 (completion_tracker::completion_hash_entry): Declare new class.
10983 (completion_tracker::recompute_lowest_common_denominator): Change
10984 function signature.
10985 (completion_tracker::recompute_lcd_visitor): Declare new function.
10986 (completion_tracker::m_entries_vec): Delete.
10987 (completion_tracker::m_entries_hash): Initialize to NULL.
10988 (completion_tracker::m_lowest_common_denominator_valid): New
10989 member variable.
10990 (completion_tracker::m_lowest_common_denominator_max_length): New
10991 member variable.
10992
5a82b8a1
KR
109932020-03-17 Kamil Rytarowski <n54@gmx.com>
10994
10995 * regformats/regdef.h: Put reg in gdb namespace.
10996
fb516a69
KR
109972020-03-17 Kamil Rytarowski <n54@gmx.com>
10998
10999 * i386-bsd-nat.c (gdb_ptrace): New.
11000 * (i386bsd_fetch_inferior_registers,
11001 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11002 * (i386bsd_fetch_inferior_registers,
11003 i386bsd_store_inferior_registers) Use gdb_ptrace.
11004
1c0aa1fb
KR
110052020-03-17 Kamil Rytarowski <n54@gmx.com>
11006
11007 * amd64-bsd-nat.c (gdb_ptrace): New.
11008 * (amd64bsd_fetch_inferior_registers,
11009 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11010 * (amd64bsd_fetch_inferior_registers,
11011 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11012
5ccd2fb7
KR
110132020-03-17 Kamil Rytarowski <n54@gmx.com>
11014
11015 * user-regs.c (user_reg::read): Rename to...
11016 (user_reg::xread): ...this.
11017 * (append_user_reg): Rename argument `read' to `xread'.
11018 * (user_reg_add_builtin): Likewise.
11019 * (user_reg_add): Likewise.
11020 * (value_of_user_reg): Likewise.
11021
2108a63a
KR
110222020-03-17 Kamil Rytarowski <n54@gmx.com>
11023
11024 * sparc-nat.c (gdb_ptrace): New.
11025 * sparc-nat.c (sparc_fetch_inferior_registers)
11026 (sparc_store_inferior_registers) Remove obsolete comment.
11027 * sparc-nat.c (sparc_fetch_inferior_registers)
11028 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11029 * sparc-nat.c (sparc_fetch_inferior_registers)
11030 (sparc_store_inferior_registers) Use gdb_ptrace.
11031
a225c9a8
KR
110322020-03-17 Kamil Rytarowski <n54@gmx.com>
11033
11034 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11035 it to the ptrace call.
11036 * sh-nbsd-nat.c (store_registers): Likewise.
11037
98097623
KR
110382020-03-17 Kamil Rytarowski <n54@gmx.com>
11039
11040 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11041 nbsd_nat_target instead of inf_ptrace_target.
11042 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11043 nbsd_nat_target.
11044
9e38d619
KR
110452020-03-17 Kamil Rytarowski <n54@gmx.com>
11046
11047 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11048
a2ecbe9f
KR
110492020-03-17 Kamil Rytarowski <n54@gmx.com>
11050
11051 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11052 <sys/sysctl.h>.
11053 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11054
58990295
TV
110552020-03-17 Tom de Vries <tdevries@suse.de>
11056
11057 PR gdb/23710
11058 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11059 fields.
11060 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11061 fields.
11062 (process_imported_unit_die): Skip import of c++ CUs.
11063
771dd3a8
TT
110642020-03-16 Tom Tromey <tom@tromey.com>
11065
11066 * p-valprint.c (pascal_object_print_value): Initialize
11067 base_value.
11068
817a7585
AK
110692020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11070 Shahab Vahedi <shahab@synopsys.com>
11071
11072 * Makefile.in: Add arch/arc.o
11073 * configure.tgt: Likewise.
11074 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11075 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 11076 (arc_read_description): New function to cache target descriptions.
817a7585
AK
11077 * arc-tdep.h (arc_read_description): Add proto type.
11078 * arch/arc.c: New file.
11079 * arch/arc.h: Likewise.
11080 * features/Makefile: Replace old target descriptions with new.
11081 * features/arc-arcompact.c: Remove.
11082 * features/arc-arcompact.xml: Likewise.
11083 * features/arc-v2.c: Likewise
11084 * features/arc-v2.xml: Likewise
11085 * features/arc/aux-arcompact.xml: New file.
11086 * features/arc/aux-v2.xml: Likewise.
11087 * features/arc/core-arcompact.xml: Likewise.
11088 * features/arc/core-v2.xml: Likewise.
11089 * features/arc/aux-arcompact.c: Generate.
11090 * features/arc/aux-v2.c: Likewise.
11091 * features/arc/core-arcompact.c: Likewise.
11092 * features/arc/core-v2.c: Likewise.
11093 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11094
67430cd0
TT
110952020-03-16 Tom Tromey <tromey@adacore.com>
11096
11097 PR gdb/25663:
11098 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11099 putting value into bcache.
11100
30efb6c7
SM
111012020-03-16 Simon Marchi <simon.marchi@efficios.com>
11102
11103 PR gdb/21500
11104 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11105 to...
11106 (amd64_windows_init_abi_common): ... this. Don't set size of
11107 long type.
11108 (amd64_windows_init_abi): New function.
11109 (amd64_cygwin_init_abi): New function.
11110 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11111 the Cygwin OS ABI.
11112 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11113 comment.
11114
8db52437
SM
111152020-03-16 Simon Marchi <simon.marchi@efficios.com>
11116
11117 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11118 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11119 (pe_import_directory_entry): New struct type.
11120 (is_linked_with_cygwin_dll): New function.
11121 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11122 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11123 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11124
5982a56a
SM
111252020-03-16 Simon Marchi <simon.marchi@efficios.com>
11126
11127 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11128 i386_cygwin_core_osabi_sniffer.
11129
7a1998df
SM
111302020-03-16 Simon Marchi <simon.marchi@efficios.com>
11131
11132 * i386-cygwin-tdep.c: Rename to...
11133 * i386-windows-tdep.c: ... this.
11134 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11135 i386-windows-tdep.c.
11136 * configure.tgt: Likewise.
11137
053205cc
SM
111382020-03-16 Simon Marchi <simon.marchi@efficios.com>
11139
11140 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11141 * osabi.c (gdb_osabi_names): Add "Windows".
11142 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11143 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11144 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11145 i386_cygwin_osabi_sniffer.
11146 (_initialize_i386_cygwin_tdep): Register OS ABI
11147 GDB_OSABI_WINDOWS for i386.
11148 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11149 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11150 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11151 for x86-64.
11152 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11153 when the target matches '*-*-mingw*'.
11154
fe4b2ee6
SM
111552020-03-16 Simon Marchi <simon.marchi@efficios.com>
11156
11157 * defs.h (enum gdb_osabi): Move to...
11158 * osabi.h (enum gdb_osabi): ... here.
11159 * gdbarch.sh: Include osabi.h in gdbarch.h.
11160 * gdbarch.h: Re-generate.
11161
cb9b645d
SM
111622020-03-16 Simon Marchi <simon.marchi@efficios.com>
11163
11164 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11165 function.
11166 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11167
3293bbaf
TT
111682020-03-14 Tom Tromey <tom@tromey.com>
11169
11170 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11171 for C++.
11172 (c_type_print_modifier): Likewise. Add "language" parameter.
11173 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11174 (c_type_print_base_1): Update.
11175 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11176 constants.
11177 * type-stack.c (type_stack::insert): Handle tp_atomic and
11178 tp_restrict.
11179 (type_stack::follow_type_instance_flags): Likewise.
11180 (type_stack::follow_types): Likewise. Merge type-following code.
11181 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11182 (space_identifier, cv_with_space_id)
11183 (const_or_volatile_or_space_identifier_noopt)
11184 (const_or_volatile_or_space_identifier): Remove.
11185 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11186 rules.
11187 (ptr_operator, typebase): Update.
11188 (enum token_flag) <FLAG_C>: New constant.
11189 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11190 "_Atomic".
11191 (lex_one_token): Handle FLAG_C.
11192
154151a6
KR
111932020-03-14 Kamil Rytarowski <n54@gmx.com>
11194
11195 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11196 it to the ptrace call.
11197 * m68k-bsd-nat.c (store_registers): Likewise.
11198
bc107784
KR
111992020-03-14 Kamil Rytarowski <n54@gmx.com>
11200
11201 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11202 gdb_byte *.
11203 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11204 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11205 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11206
01a80117
KR
112072020-03-14 Kamil Rytarowski <n54@gmx.com>
11208
11209 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11210 nbsd_nat_target instead of inf_ptrace_target.
11211 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11212 nbsd_nat_target.
11213
f90280ca
KR
112142020-03-14 Kamil Rytarowski <n54@gmx.com>
11215
11216 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11217 register_t.
11218
6def66f1
KR
112192020-03-14 Kamil Rytarowski <n54@gmx.com>
11220
11221 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11222 it to the ptrace call.
11223 * alpha-bsd-nat.c (store_registers): Likewise.
11224
66eaca97
KR
112252020-03-14 Kamil Rytarowski <n54@gmx.com>
11226
11227 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11228 includes.
11229 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11230 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11231 fill_fpregset): Likewise.
11232
4fed520b
KR
112332020-03-14 Kamil Rytarowski <n54@gmx.com>
11234
11235 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11236 nbsd_nat_target instead of inf_ptrace_target.
11237 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11238 nbsd_nat_target.
11239
2190cf06
KR
112402020-03-14 Kamil Rytarowski <n54@gmx.com>
11241
11242 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11243 register_t.
11244
75c56d3d
KR
112452020-03-14 Kamil Rytarowski <n54@gmx.com>
11246
11247 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11248 it to the ptrace call.
11249 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11250 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11251 * arm-nbsd-nat.c (store_register): Likewise.
11252 * arm-nbsd-nat.c (store_regs): Likewise.
11253 * arm-nbsd-nat.c (store_fp_register): Likewise.
11254 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11255
6018d381
KR
112562020-03-14 Kamil Rytarowski <n54@gmx.com>
11257
11258 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11259 nbsd_nat_target instead of inf_ptrace_target.
11260 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11261 nbsd_nat_target.
11262
013f99f0
KR
112632020-03-14 Kamil Rytarowski <n54@gmx.com>
11264
11265 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11266 it to the ptrace call.
11267 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11268
12753073
KR
112692020-03-14 Kamil Rytarowski <n54@gmx.com>
11270
6227b330
KR
11271 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11272 it to the ptrace call.
11273 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11274
112752020-03-14 Kamil Rytarowski <n54@gmx.com>
11276
11277 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11278 gdb_byte *.
12753073
KR
11279 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11280
d5be5fa4
KR
112812020-03-14 Kamil Rytarowski <n54@gmx.com>
11282
11283 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11284 instead of inf_ptrace_target.
11285 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11286 nbsd_nat_target.
11287
8110f842
KR
112882020-03-14 Kamil Rytarowski <n54@gmx.com>
11289
11290 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11291 register_t.
11292
52feded7
KR
112932020-03-14 Kamil Rytarowski <n54@gmx.com>
11294
11295 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11296 register_t.
11297
25567eee
KR
112982020-03-14 Kamil Rytarowski <n54@gmx.com>
11299
11300 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11301 register_t.
11302
426a9c18
TT
113032020-03-13 Tom Tromey <tom@tromey.com>
11304
11305 * value.h (val_print): Don't declare.
11306 * valprint.h (val_print_array_elements)
11307 (val_print_scalar_formatted, generic_val_print): Don't declare.
11308 * valprint.c (generic_val_print_array): Take a struct value.
11309 (generic_val_print_ptr, generic_val_print_memberptr)
11310 (generic_val_print_bool, generic_val_print_int)
11311 (generic_val_print_char, generic_val_print_complex)
11312 (generic_val_print): Remove.
11313 (generic_value_print): Update.
11314 (do_val_print): Remove unused parameters. Don't call
11315 la_val_print.
11316 (val_print): Remove.
11317 (common_val_print): Update. Don't call value_check_printable.
11318 (val_print_scalar_formatted, val_print_array_elements): Remove.
11319 * rust-lang.c (rust_val_print): Remove.
11320 (rust_language_defn): Update.
11321 * p-valprint.c (pascal_val_print): Remove.
11322 (pascal_value_print_inner): Update.
11323 (pascal_object_print_val_fields, pascal_object_print_val):
11324 Remove.
11325 (pascal_object_print_static_field): Update.
11326 * p-lang.h (pascal_val_print): Don't declare.
11327 * p-lang.c (pascal_language_defn): Update.
11328 * opencl-lang.c (opencl_language_defn): Update.
11329 * objc-lang.c (objc_language_defn): Update.
11330 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11331 * m2-lang.h (m2_val_print): Don't declare.
11332 * m2-lang.c (m2_language_defn): Update.
11333 * language.h (struct language_defn) <la_val_print>: Remove.
11334 * language.c (unk_lang_value_print_inner): Rename. Change
11335 argument types.
11336 (unknown_language_defn, auto_language_defn): Update.
11337 * go-valprint.c (go_val_print): Remove.
11338 * go-lang.h (go_val_print): Don't declare.
11339 * go-lang.c (go_language_defn): Update.
11340 * f-valprint.c (f_val_print): Remove.
11341 * f-lang.h (f_value_print): Don't declare.
11342 * f-lang.c (f_language_defn): Update.
11343 * d-valprint.c (d_val_print): Remove.
11344 * d-lang.h (d_value_print): Don't declare.
11345 * d-lang.c (d_language_defn): Update.
11346 * cp-valprint.c (cp_print_value_fields)
11347 (cp_print_value_fields_rtti, cp_print_value): Remove.
11348 (cp_print_static_field): Update.
11349 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11350 (c_val_print_struct, c_val_print_union, c_val_print_int)
11351 (c_val_print_memberptr, c_val_print): Remove.
11352 * c-lang.h (c_val_print_array, cp_print_value_fields)
11353 (cp_print_value_fields_rtti): Don't declare.
11354 * c-lang.c (c_language_defn, cplus_language_defn)
11355 (asm_language_defn, minimal_language_defn): Update.
11356 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11357 (ada_val_print_enum): Take a struct value.
11358 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11359 (ada_val_print): Remove.
11360 (ada_value_print_1): Update.
11361 (printable_val_type): Remove.
11362 * ada-lang.h (ada_val_print): Don't declare.
11363 * ada-lang.c (ada_language_defn): Update.
11364
42331a1e
TT
113652020-03-13 Tom Tromey <tom@tromey.com>
11366
11367 * valprint.c (do_val_print): Update.
11368 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11369 a struct value.
11370 (value_to_value_object_no_release): Declare.
11371 * python/py-value.c (value_to_value_object_no_release): New
11372 function.
11373 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11374 struct value.
11375 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11376 function.
11377 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11378 a struct value.
11379 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11380 Declare.
11381 (gdbscm_apply_val_pretty_printer): Take a struct value.
11382 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11383 value.
11384 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11385 value.
11386 * extension-priv.h (struct extension_language_ops)
11387 <apply_val_pretty_printer>: Take a struct value.
11388 * cp-valprint.c (cp_print_value): Create a struct value.
11389 (cp_print_value): Update.
11390
3a916a97
TT
113912020-03-13 Tom Tromey <tom@tromey.com>
11392
11393 * ada-valprint.c (print_field_values): Call common_val_print.
11394
b59eac37
TT
113952020-03-13 Tom Tromey <tom@tromey.com>
11396
11397 * ada-valprint.c (val_print_packed_array_elements): Remove
11398 bitoffset and val parameters. Call common_val_print.
11399 (ada_val_print_string): Remove offset, address, and original_value
11400 parameters.
11401 (ada_val_print_array): Update.
11402 (ada_value_print_array): New function.
11403 (ada_value_print_1): Call it.
11404
03371129
TT
114052020-03-13 Tom Tromey <tom@tromey.com>
11406
11407 * ada-valprint.c (ada_value_print): Use common_val_print.
11408
2e088f8b
TT
114092020-03-13 Tom Tromey <tom@tromey.com>
11410
11411 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11412
39ef85a8
TT
114132020-03-13 Tom Tromey <tom@tromey.com>
11414
11415 * ada-valprint.c (ada_value_print_num): New function.
11416 (ada_value_print_1): Use it.
11417
b9fa6e07
TT
114182020-03-13 Tom Tromey <tom@tromey.com>
11419
11420 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11421
416595d6
TT
114222020-03-13 Tom Tromey <tom@tromey.com>
11423
11424 * ada-valprint.c (ada_value_print_ptr): New function.
11425 (ada_value_print_1): Use it.
11426
5b5e15ec
TT
114272020-03-13 Tom Tromey <tom@tromey.com>
11428
11429 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11430 call common_val_print.
11431 (ada_val_print_1): Update.
11432 (ada_value_print_1): New function.
11433 (ada_value_print_inner): Rewrite.
11434
fbf54e75
TT
114352020-03-13 Tom Tromey <tom@tromey.com>
11436
11437 * cp-valprint.c (cp_print_value_fields): Update.
11438 (cp_print_value): New function.
11439
64b653ca
TT
114402020-03-13 Tom Tromey <tom@tromey.com>
11441
11442 * m2-valprint.c (m2_value_print_inner): Use
11443 cp_print_value_fields.
11444 * cp-valprint.c (cp_print_value_fields): New function.
11445 * c-valprint.c (c_value_print_struct): New function.
11446 (c_value_print_inner): Use c_value_print_struct.
11447 * c-lang.h (cp_print_value_fields): Declare.
11448
6999f067
TT
114492020-03-13 Tom Tromey <tom@tromey.com>
11450
11451 * c-valprint.c (c_value_print_array): New function.
11452 (c_value_print_inner): Use it.
11453
ce80b8bd
TT
114542020-03-13 Tom Tromey <tom@tromey.com>
11455
11456 * c-valprint.c (c_value_print_memberptr): New function.
11457 (c_value_print_inner): Use it.
11458
2faac269
TT
114592020-03-13 Tom Tromey <tom@tromey.com>
11460
11461 * c-valprint.c (c_value_print_int): New function.
11462 (c_value_print_inner): Use it.
11463
da3e2c29
TT
114642020-03-13 Tom Tromey <tom@tromey.com>
11465
11466 * c-valprint.c (c_value_print_ptr): New function.
11467 (c_value_print_inner): Use it.
11468
50836231
TT
114692020-03-13 Tom Tromey <tom@tromey.com>
11470
11471 * c-valprint.c (c_value_print_inner): Rewrite.
11472
4f412b6e
TT
114732020-03-13 Tom Tromey <tom@tromey.com>
11474
11475 * valprint.c (generic_value_print_complex): New function.
11476 (generic_value_print): Use it.
11477
f5354008
TT
114782020-03-13 Tom Tromey <tom@tromey.com>
11479
11480 * valprint.c (generic_val_print_float): Don't call
11481 val_print_scalar_formatted.
11482 (generic_val_print, generic_value_print): Update.
11483
3eec3b05
TT
114842020-03-13 Tom Tromey <tom@tromey.com>
11485
11486 * valprint.c (generic_value_print_char): New function
11487 (generic_value_print): Use it.
11488
fdddfccb
TT
114892020-03-13 Tom Tromey <tom@tromey.com>
11490
11491 * valprint.c (generic_value_print_int): New function.
11492 (generic_value_print): Use it.
11493
6dde7521
TT
114942020-03-13 Tom Tromey <tom@tromey.com>
11495
11496 * valprint.c (generic_value_print_bool): New function.
11497 (generic_value_print): Use it.
11498
4112d2e6
TT
114992020-03-13 Tom Tromey <tom@tromey.com>
11500
11501 * valprint.c (generic_val_print_func): Simplify.
11502 (generic_val_print, generic_value_print): Update.
11503
65786af6
TT
115042020-03-13 Tom Tromey <tom@tromey.com>
11505
11506 * valprint.c (generic_val_print_flags): Remove.
11507 (generic_val_print, generic_value_print): Update.
11508 (val_print_type_code_flags): Add original_value parameter.
11509
40f3ce18
TT
115102020-03-13 Tom Tromey <tom@tromey.com>
11511
11512 * valprint.c (generic_val_print): Update.
11513 (generic_value_print): Update.
11514 * valprint.c (generic_val_print_enum): Don't call
11515 val_print_scalar_formatted.
11516
2a5b130b
TT
115172020-03-13 Tom Tromey <tom@tromey.com>
11518
11519 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11520 * valprint.c (generic_value_print_ptr): New function.
11521
abc66ce9
TT
115222020-03-13 Tom Tromey <tom@tromey.com>
11523
11524 * valprint.c (generic_value_print): Rewrite.
11525
07a32858
TT
115262020-03-13 Tom Tromey <tom@tromey.com>
11527
11528 * p-valprint.c (pascal_object_print_value_fields)
11529 (pascal_object_print_value): New functions.
11530
64d64d3a
TT
115312020-03-13 Tom Tromey <tom@tromey.com>
11532
11533 * p-valprint.c (pascal_value_print_inner): Rewrite.
11534
6a95a1f5
TT
115352020-03-13 Tom Tromey <tom@tromey.com>
11536
11537 * f-valprint.c (f_value_print_innner): Rewrite.
11538
59fcdac6
TT
115392020-03-13 Tom Tromey <tom@tromey.com>
11540
11541 * m2-valprint.c (m2_print_unbounded_array): New overload.
11542 (m2_print_unbounded_array): Update.
11543 (m2_print_array_contents): Take a struct value.
11544 (m2_value_print_inner): Rewrite.
11545
d133c3e1
TT
115462020-03-13 Tom Tromey <tom@tromey.com>
11547
11548 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11549 (d_value_print_inner): New function.
11550 * d-lang.h (d_value_print_inner): Declare.
11551 * d-lang.c (d_language_defn): Use d_value_print_inner.
11552
23b0f06b
TT
115532020-03-13 Tom Tromey <tom@tromey.com>
11554
11555 * go-valprint.c (go_value_print_inner): New function.
11556 * go-lang.h (go_value_print_inner): Declare.
11557 * go-lang.c (go_language_defn): Use go_value_print_inner.
11558
5f56f7cb
TT
115592020-03-13 Tom Tromey <tom@tromey.com>
11560
11561 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11562 API.
11563 (rust_val_print): Rewrite.
11564 (rust_value_print_inner): New function, from rust_val_print.
11565 (rust_language_defn): Use rust_value_print_inner.
11566
26792ee0
TT
115672020-03-13 Tom Tromey <tom@tromey.com>
11568
11569 * ada-valprint.c (ada_value_print_inner): New function.
11570 * ada-lang.h (ada_value_print_inner): Declare.
11571 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11572
24051bbe
TT
115732020-03-13 Tom Tromey <tom@tromey.com>
11574
11575 * f-valprint.c (f_value_print_innner): New function.
11576 * f-lang.h (f_value_print_innner): Declare.
11577 * f-lang.c (f_language_defn): Use f_value_print_innner.
11578
c0941be6
TT
115792020-03-13 Tom Tromey <tom@tromey.com>
11580
11581 * p-valprint.c (pascal_value_print_inner): New function.
11582 * p-lang.h (pascal_value_print_inner): Declare.
11583 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11584
62c4663d
TT
115852020-03-13 Tom Tromey <tom@tromey.com>
11586
11587 * m2-valprint.c (m2_value_print_inner): New function.
11588 * m2-lang.h (m2_value_print_inner): Declare.
11589 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11590
62182190
TT
115912020-03-13 Tom Tromey <tom@tromey.com>
11592
11593 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11594 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11595 * c-valprint.c (c_value_print_inner): New function.
11596 * c-lang.h (c_value_print_inner): Declare.
11597 * c-lang.c (c_language_defn, cplus_language_defn)
11598 (asm_language_defn, minimal_language_defn): Use
11599 c_value_print_inner.
11600
1e592a8a
TT
116012020-03-13 Tom Tromey <tom@tromey.com>
11602
11603 * p-valprint.c (pascal_object_print_value_fields): Now static.
11604 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11605
7fe471e9
TT
116062020-03-13 Tom Tromey <tom@tromey.com>
11607
11608 * c-valprint.c (c_val_print_array): Simplify.
11609
d121c6ce
TT
116102020-03-13 Tom Tromey <tom@tromey.com>
11611
11612 * valprint.c (value_print_array_elements): New function.
11613 * valprint.h (value_print_array_elements): Declare.
11614
4dba70ee
TT
116152020-03-13 Tom Tromey <tom@tromey.com>
11616
11617 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11618 * mips-tdep.c (mips_print_register): Use
11619 value_print_scalar_formatted.
11620
4f9ae810
TT
116212020-03-13 Tom Tromey <tom@tromey.com>
11622
11623 * valprint.h (value_print_scalar_formatted): Declare.
11624 * valprint.c (value_print_scalar_formatted): New function.
11625
156bfec9
TT
116262020-03-13 Tom Tromey <tom@tromey.com>
11627
11628 * valprint.h (generic_value_print): Declare.
11629 * valprint.c (generic_value_print): New function.
11630
2b4e573d
TT
116312020-03-13 Tom Tromey <tom@tromey.com>
11632
11633 * valprint.c (do_val_print): Call la_value_print_inner, if
11634 available.
11635 * rust-lang.c (rust_language_defn): Update.
11636 * p-lang.c (pascal_language_defn): Update.
11637 * opencl-lang.c (opencl_language_defn): Update.
11638 * objc-lang.c (objc_language_defn): Update.
11639 * m2-lang.c (m2_language_defn): Update.
11640 * language.h (struct language_defn) <la_value_print_inner>: New
11641 member.
11642 * language.c (unknown_language_defn, auto_language_defn): Update.
11643 * go-lang.c (go_language_defn): Update.
11644 * f-lang.c (f_language_defn): Update.
11645 * d-lang.c (d_language_defn): Update.
11646 * c-lang.c (c_language_defn, cplus_language_defn)
11647 (asm_language_defn, minimal_language_defn): Update.
11648 * ada-lang.c (ada_language_defn): Update.
11649
a1f6a07c
TT
116502020-03-13 Tom Tromey <tom@tromey.com>
11651
11652 * c-valprint.c (c_value_print): Use common_val_print.
11653
410cf315
TT
116542020-03-13 Tom Tromey <tom@tromey.com>
11655
11656 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11657
72a45c93
TT
116582020-03-13 Tom Tromey <tom@tromey.com>
11659
11660 * f-valprint.c (f77_print_array_1, f_val_print): Use
11661 common_val_print.
11662
040f66bd
TT
116632020-03-13 Tom Tromey <tom@tromey.com>
11664
11665 * riscv-tdep.c (riscv_print_one_register_info): Use
11666 common_val_print.
11667
a6e05a6c
TT
116682020-03-13 Tom Tromey <tom@tromey.com>
11669
11670 * mi/mi-main.c (output_register): Use common_val_print.
11671
3444c526
TT
116722020-03-13 Tom Tromey <tom@tromey.com>
11673
11674 * infcmd.c (default_print_one_register_info): Use
11675 common_val_print.
11676
c2a44efe
TT
116772020-03-13 Tom Tromey <tom@tromey.com>
11678
11679 * valprint.h (common_val_print_checked): Declare.
11680 * valprint.c (common_val_print_checked): New function.
11681 * stack.c (print_frame_arg): Use common_val_print_checked.
11682
b0c26e99
TT
116832020-03-13 Tom Tromey <tom@tromey.com>
11684
11685 * valprint.c (do_val_print): New function, from val_print.
11686 (val_print): Use do_val_print.
11687 (common_val_print): Use do_val_print.
11688
ce3acbe9
TT
116892020-03-13 Tom Tromey <tom@tromey.com>
11690
11691 * valprint.c (value_print): Use scoped_value_mark.
11692
96c7f873
TV
116932020-03-13 Tom de Vries <tdevries@suse.de>
11694
11695 PR symtab/25646
11696 * psymtab.c (partial_symtab::partial_symtab): Don't set
11697 globals_offset and statics_offset. Push element onto
11698 current_global_psymbols and current_static_psymbols stacks.
11699 (concat): New function.
11700 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11701 element from current_global_psymbols and current_static_psymbols
11702 stacks. Concat popped elements to global_psymbols and
11703 static_symbols.
11704 (add_psymbol_to_list): Use current_global_psymbols and
11705 current_static_psymbols stacks.
11706 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11707 current_static_psymbols fields.
11708
6ba0a321
CB
117092020-03-12 Christian Biesinger <cbiesinger@google.com>
11710
11711 * corelow.c (sniff_core_bfd): Remove.
11712 (class core_target) <m_core_vec>: Remove.
11713 (core_target::core_target): Update.
11714 (core_file_fns): Remove.
11715 (deprecated_add_core_fns): Remove.
11716 (default_core_sniffer): Remove.
11717 (sniff_core_bfd): Remove.
11718 (default_check_format): Remove.
11719 (gdb_check_format): Remove.
11720 (core_target_open): Update.
11721 (core_target::get_core_register_section): Update.
11722 (get_core_registers_cb): Update.
11723 (core_target::fetch_registers): Update.
11724 * gdbcore.h (struct core_fns): Remove.
11725 (deprecated_add_core_fns): Remove.
11726 (default_core_sniffer): Remove.
11727 (default_check_format): Remove.
11728
227031b2
TT
117292020-03-12 Tom Tromey <tom@tromey.com>
11730
11731 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11732 CORE_ADDR.
11733 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11734
53807e9f
TT
117352020-03-12 Tom Tromey <tom@tromey.com>
11736
11737 * remote.c (remote_target::download_tracepoint)
11738 (remote_target::enable_tracepoint)
11739 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11740 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11741 sprintf_vma.
11742
64f25102
TT
117432020-03-12 Tom Tromey <tom@tromey.com>
11744
11745 * symfile-mem.c: Update CORE_ADDR size assert.
11746
272cd5a3
SM
117472020-03-12 Simon Marchi <simon.marchi@efficios.com>
11748
11749 * selftest.m4: Move to gdbsupport/.
11750 * acinclude.m4: Update path to selftest.m4.
11751
74cd3f9d
SM
117522020-03-12 Simon Marchi <simon.marchi@efficios.com>
11753
11754 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11755 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11756 gdbarch-selfselftests.c and selftest-arch.c.
11757 (SUBDIR_UNITTESTS_OBS): Rename to...
11758 (SELFTESTS_OBS): ... this.
11759 (COMMON_SFILES): Remove disasm-selftests.c and
11760 gdbarch-selftests.c.
11761 * configure.ac: Don't add selftest-arch.{c,o} to
11762 CONFIG_{SRCS,OBS}.
11763 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11764 preprocessor conditions.
11765
db6878ac
SM
117662020-03-12 Simon Marchi <simon.marchi@efficios.com>
11767
11768 * configure.ac: Don't source bfd/development.sh.
11769 * selftest.m4: Modify comment.
11770 * configure: Re-generate.
11771
4d696a5c
SM
117722020-03-12 Simon Marchi <simon.marchi@efficios.com>
11773
11774 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11775 not "true" or "false".
11776 * configure: Re-generate.
11777
8dd8e1c7
CB
117782020-03-12 Christian Biesinger <cbiesinger@google.com>
11779
11780 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11781 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11782 renamed to arm_nbsd_supply_gregset.
11783 (fetch_register): Update to call arm_nbsd_supply_gregset.
11784 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11785 (arm_netbsd_nat_target::fetch_registers): Update.
11786 (fetch_elfcore_registers): Removed.
11787 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11788 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11789 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11790 not require NetBSD system headers.
11791 (arm_nbsd_regset): New struct.
11792 (arm_nbsd_iterate_over_regset_sections): New function.
11793 (arm_netbsd_init_abi_common): Updated to call
11794 set_gdbarch_iterate_over_regset_sections.
11795 * arm-nbsd-tdep.h: New file.
11796
dd69bf7a
KB
117972020-03-11 Kevin Buettner <kevinb@redhat.com>
11798
11799 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11800 recursion.
11801
a0761e34
SM
118022020-03-11 Simon Marchi <simon.marchi@efficios.com>
11803
11804 * configure: Re-generate.
11805
e7a82140
TT
118062020-03-11 Tom Tromey <tromey@adacore.com>
11807
11808 * ada-typeprint.c (print_choices): Fix comment.
11809
dcc050c8
AB
118102020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11811
11812 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11813 previous item in the list, when the list has no items.
11814
1c33af77
TV
118152020-03-11 Tom de Vries <tdevries@suse.de>
11816
11817 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11818 PROP_LOCLIST handling code.
11819
8c95582d
AB
118202020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11821
11822 * buildsym-legacy.c (record_line): Pass extra parameter to
11823 record_line.
11824 * buildsym.c (buildsym_compunit::record_line): Take an extra
11825 parameter, reduce duplication in the line table, and record the
11826 is_stmt flag in the line table.
11827 * buildsym.h (buildsym_compunit::record_line): Add extra
11828 parameter.
11829 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11830 non-statement lines.
11831 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11832 this to the symtab builder.
11833 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11834 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11835 through to dwarf_record_line_1.
11836 * infrun.c (process_event_stop_test): When stepping, don't stop at
11837 a non-statement instruction, and only refresh the step info when
11838 we land in the middle of a line's range. Also add an extra
11839 comment.
11840 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11841 field.
11842 * record-btrace.c (btrace_find_line_range): Only record lines
11843 marked as is-statement.
11844 * stack.c (frame_show_address): Show the frame address if we are
11845 in a non-statement sal.
11846 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11847 (maintenance_print_one_line_table): Print a header for the is_stmt
11848 column, and include is_stmt information in the output.
11849 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11850 preference to non-statements.
11851 (find_pcs_for_symtab_line): Prefer is-statement entries.
11852 (find_line_common): Likewise.
11853 * symtab.h (struct linetable_entry): Add is_stmt field.
11854 (struct symtab_and_line): Likewise.
11855 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11856 arranging the line table.
11857
e4003a34
TV
118582020-03-07 Tom de Vries <tdevries@suse.de>
11859
11860 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11861 DIE.
11862
e8932576
TT
118632020-03-07 Tom Tromey <tom@tromey.com>
11864
11865 * valops.c (value_literal_complex): Remove obsolete comment.
11866 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11867 comment.
11868
29734269
SM
118692020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11870
11871 * infrun.h: Forward-declare thread_info.
11872 (set_step_info): Add thread_info parameter, add doc.
11873 * infrun.c (set_step_info): Add thread_info parameter, move doc
11874 to header.
11875 * infrun.c (process_event_stop_test): Pass thread to
11876 set_step_info call.
11877 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11878 set_step_info.
11879 (prepare_one_step): Add thread_info parameter, pass it to
11880 set_step_frame and prepare_one_step (recursive) call.
11881 (step_1): Pass thread to prepare_one_step call.
11882 (step_command_fsm::should_stop): Pass thread to
11883 prepare_one_step.
11884 (until_next_fsm): Pass thread to set_step_frame call.
11885 (finish_command): Pass thread to set_step_info call.
11886
b7d64b29
HD
118872020-03-06 Hannes Domani <ssbssa@yahoo.de>
11888
11889 * windows-tdep.c (windows_solib_create_inferior_hook):
11890 Check if inferior is running.
11891
09f2921c
TV
118922020-03-06 Tom de Vries <tdevries@suse.de>
11893
11894 * NEWS: Fix "the the".
11895 * ctfread.c: Same.
11896
fd760e79
TV
118972020-03-06 Tom de Vries <tdevries@suse.de>
11898
11899 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11900
20ea4a60
AB
119012020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11902
11903 * .dir-locals.el: Add a comment referencing the other copies of
11904 this file.
11905
0afbabf0
JB
119062020-03-05 John Baldwin <jhb@FreeBSD.org>
11907
11908 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11909 psargs.
11910
842806cb
TBA
119112020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11912
11913 * .gitattributes: New file.
11914
be1e3d3e
TT
119152020-03-04 Tom Tromey <tom@tromey.com>
11916
11917 * symmisc.c (print_symbol_bcache_statistics)
11918 (print_objfile_statistics): Update.
11919 * symfile.c (allocate_symtab): Use intern.
11920 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11921 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11922 macro_cache>: Remove.
11923 <string_cache>: New member.
11924 (struct objfile) <intern>: New methods.
11925 * elfread.c (elf_symtab_read): Use intern.
11926 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11927 (dwarf2_compute_name, dwarf2_physname)
11928 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11929 names.
11930 (guess_partial_die_structure_name): Update.
11931 (partial_die_info::fixup): Intern name.
11932 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11933 name.
11934 (dwarf2_name): Intern name. Update.
11935 * buildsym.c (buildsym_compunit::get_macro_table): Use
11936 string_cache.
11937
4e7625fd
TT
119382020-03-04 Tom Tromey <tom@tromey.com>
11939
11940 * jit.c (bfd_open_from_target_memory): Make "target" const.
11941 * corefile.c (gnutarget): Now const.
11942 * gdbcore.h (gnutarget): Now const.
11943
46f9f931
HD
119442020-03-04 Hannes Domani <ssbssa@yahoo.de>
11945
11946 * NEWS: Mention support for WOW64 processes.
11947 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11948 (amd64_windows_segment_register_p): Remove static.
11949 (_initialize_amd64_windows_nat): Update.
11950 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11951 * i386-windows-nat.c (context_offset): Update.
11952 (i386_mappings): Rename and remove static.
11953 (i386_windows_segment_register_p): Remove static.
11954 (_initialize_i386_windows_nat): Update.
11955 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11956 (STATUS_WX86_SINGLE_STEP): New macro.
11957 (EnumProcessModulesEx): New macro.
11958 (Wow64SuspendThread): New macro.
11959 (Wow64GetThreadContext): New macro.
11960 (Wow64SetThreadContext): New macro.
11961 (Wow64GetThreadSelectorEntry): New macro.
11962 (windows_set_context_register_offsets): Add static.
11963 (windows_set_segment_register_p): Likewise.
11964 (windows_add_thread): Adapt for WOW64 processes.
11965 (windows_fetch_one_register): Likewise.
11966 (windows_nat_target::fetch_registers): Likewise.
11967 (windows_store_one_register): Likewise.
11968 (display_selector): Likewise.
11969 (display_selectors): Likewise.
11970 (handle_exception): Likewise.
11971 (windows_continue): Likewise.
11972 (windows_nat_target::resume): Likewise.
11973 (windows_add_all_dlls): Likewise.
11974 (do_initial_windows_stuff): Likewise.
11975 (windows_nat_target::attach): Likewise.
11976 (windows_get_exec_module_filename): Likewise.
11977 (windows_nat_target::create_inferior): Likewise.
11978 (windows_xfer_siginfo): Likewise.
11979 (_initialize_loadable): Initialize Wow64SuspendThread,
11980 Wow64GetThreadContext, Wow64SetThreadContext,
11981 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11982 * windows-nat.h (windows_set_context_register_offsets):
11983 Remove declaration.
11984 (windows_set_segment_register_p): Likewise.
11985 (i386_windows_segment_register_p): Add declaration.
11986 (amd64_windows_segment_register_p): Likewise.
11987
440cf44e
LM
119882020-03-04 Luis Machado <luis.machado@linaro.org>
11989
11990 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11991 in "info registers" for AArch64/ARM.
11992
11993 The change caused "info registers" to not print GPR's.
11994
11995 gdb/ChangeLog:
11996
11997 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11998
11999 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12000 when reg->group is empty and reggroup is not.
12001
1009d92f
TT
120022020-03-03 Tom Tromey <tromey@adacore.com>
12003
12004 * dwarf2/frame.c (struct dwarf2_frame_cache)
12005 <checked_tailcall_bottom, entry_cfa_sp_offset,
12006 entry_cfa_sp_offset_p>: Remove members.
12007 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12008 (dwarf2_frame_prev_register): Don't call
12009 dwarf2_tailcall_sniffer_first.
12010 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12011 * frame-unwind.c (add_unwinder): New fuction.
12012 (frame_unwind_init): Use it. Add tailcall unwinder.
12013
5e5d66b6
AB
120142020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12015 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12016
12017 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12018 value should be printed as true.
12019
584cf46d
HD
120202020-03-03 Hannes Domani <ssbssa@yahoo.de>
12021
12022 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12023 (windows_init_abi): Set and use windows_so_ops.
12024
7b973adc
SDJ
120252020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12026
12027 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12028 when verifying if dealing with a convenience variable.
12029
bb7b70ab
LM
120302020-03-03 Luis Machado <luis.machado@linaro.org>
12031
12032 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12033
9822cb57
SM
120342020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12035
12036 * infrun.c (gdbarch_supports_displaced_stepping): New.
12037 (use_displaced_stepping): Break up conditions in smaller pieces.
12038 Use gdbarch_supports_displaced_stepping.
12039 (displaced_step_prepare_throw): Use
12040 gdbarch_supports_displaced_stepping.
12041
63e163f2
AB
120422020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12043
12044 * NEWS: Mention new behaviour of the history filename.
12045 * top.c (write_history_p): Add comment.
12046 (show_write_history_p): Add header comment, give a different
12047 message when history writing is on, but the history filename is
12048 empty.
12049 (history_filename): Add comment.
12050 (history_filename_empty): New function.
12051 (show_history_filename): Add header comment, give a different
12052 message when the filename is empty.
12053 (init_history): Compare history_filename against nullptr, and only
12054 read history if the filename is not empty.
12055 (set_history_filename): Add header comment, and only make
12056 non-empty filenames absolute.
12057 (init_main): Make the filename argument to 'set history filename'
12058 optional.
12059
81b86b97
CB
120602020-03-02 Christian Biesinger <cbiesinger@google.com>
12061
12062 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12063 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12064 (fetch_fp_register): Update.
12065 (fetch_fp_regs): Update.
12066 (store_fp_register): Update.
12067 (store_fp_regs): Update.
12068 (arm_netbsd_nat_target::read_description): New function.
12069 (fetch_elfcore_registers): Update.
12070
24ed6739
AB
120712020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12072
12073 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12074 general_thread if the stop reply is missing a thread-id.
12075 (remote_target::process_stop_reply): Use the first non-exited
12076 thread if the target didn't pass a thread-id.
12077 * infrun.c (do_target_wait): Move call to
12078 switch_to_inferior_no_thread to ....
12079 (do_target_wait_1): ... here.
12080
a84bb2a0
JT
120812020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12082
12083 * debuginfod-support.c: Include defs.h first.
12084
658dadf0
TV
120852020-02-28 Tom de Vries <tdevries@suse.de>
12086
12087 * symfile.c (set_initial_language): Use default language for lookup.
12088
4ebe4877
SM
120892020-02-28 Simon Marchi <simon.marchi@efficios.com>
12090
12091 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12092 reader variable, pass `this` to read_cutu_die_from_dwo.
12093
e5da1139
AM
120942020-02-27 Aaron Merey <amerey@redhat.com>
12095
12096 * source.c (open_source_file): Check for nullptr when computing
12097 srcpath.
12098
317f7127
TT
120992020-02-27 Tom Tromey <tromey@adacore.com>
12100
12101 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12102 member.
12103 (dwarf2_add_field): Don't update nfields.
12104 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12105
3104d9ee
AB
121062020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12107
12108 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12109 abs.
12110
b83470bf
TT
121112020-02-26 Tom Tromey <tom@tromey.com>
12112
12113 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12114 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12115 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12116 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12117 per_cu_data.
12118
edfe0a0c
TT
121192020-02-26 Tom Tromey <tom@tromey.com>
12120
12121 * dwarf2/index-write.c (psym_index_map): Change type.
12122 (add_address_entry_worker, write_one_signatured_type)
12123 (recursively_count_psymbols, recursively_write_psymbols)
12124 (class debug_names, psyms_seen_size, write_gdbindex)
12125 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12126
0d79cdc4
AM
121272020-02-26 Aaron Merey <amerey@redhat.com>
12128
12129 * Makefile.in: Handle optional debuginfod support.
12130 * NEWS: Update.
12131 * README: Add --with-debuginfod summary.
12132 * config.in: Regenerate.
12133 * configure: Regenerate.
12134 * configure.ac: Handle optional debuginfod support.
12135 * debuginfod-support.c: debuginfod helper functions.
12136 * debuginfod-support.h: Ditto.
12137 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12138 summary.
12139 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12140 when a dwz file cannot be found.
12141 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12142 debuginfo file cannot be found.
12143 * source.c (open_source_file): Query debuginfod servers when a
12144 source file cannot be found.
12145 * top.c (print_gdb_configuration): Include
12146 --{with,without}-debuginfod in the output.
12147
b65ce565
JG
121482020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12149
12150 * thread.c (thr_try_catch_cmd): Print thread name.
12151
d4c9a4f8
SM
121522020-02-26 Simon Marchi <simon.marchi@efficios.com>
12153
12154 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12155 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12156 dwarf2_fetch_die_type_sect_off): Move to...
12157 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12158 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12159 dwarf2_fetch_die_type_sect_off): ... here.
12160 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12161 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12162 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12163
0dce4280
TV
121642020-02-26 Tom de Vries <tdevries@suse.de>
12165
12166 PR gdb/25603
12167 * symfile.c (set_initial_language): Exit-early if
12168 language_mode == language_mode_manual.
12169
450a1bfc
SM
121702020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12171
12172 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12173 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12174 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12175
9e80cfa1
AB
121762020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12177
12178 * gdbtypes.c (create_array_type_with_stride): Handle negative
12179 array strides.
12180 * valarith.c (value_subscripted_rvalue): Likewise.
12181
09624f1f
LM
121822020-02-25 Luis Machado <luis.machado@linaro.org>
12183
12184 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12185
8cb5117c
SM
121862020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12187
12188 * loc.h (dwarf2_get_die_type): Move to...
12189 * read.h (dwarf2_get_die_type): ... here.
12190 * read.c (dwarf2_get_die_type): Move doc to header.
12191
c325c44e
JB
121922020-02-25 Joel Brobecker <brobecker@adacore.com>
12193
12194 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12195 'gnulib/Makefile.in' to the list.
12196
4ac93832
TT
121972020-02-24 Tom Tromey <tom@tromey.com>
12198
12199 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12200 Remove.
12201 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12202 XOBNEWVEC.
12203
197400e8
TT
122042020-02-24 Tom Tromey <tom@tromey.com>
12205
12206 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12207 New method.
12208 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12209 (dw2_do_instantiate_symtab, dw2_get_file_names)
12210 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12211
76935768
TT
122122020-02-24 Tom Tromey <tom@tromey.com>
12213
12214 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12215 make_scoped_restore.
12216 (dwarf2_psymtab::read_symtab): Don't clear
12217 reading_partial_symbols.
12218
a88ef40d
TV
122192020-02-24 Tom de Vries <tdevries@suse.de>
12220
12221 PR gdb/25592
12222 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12223
c9af6521
TV
122242020-02-24 Tom de Vries <tdevries@suse.de>
12225
12226 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12227 commands layout next/prev/regs.
12228
5707a07a
TT
122292020-02-22 Tom Tromey <tom@tromey.com>
12230
12231 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12232 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12233
3b0fb49e
TT
122342020-02-22 Tom Tromey <tom@tromey.com>
12235
12236 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12237
283be8bf
TT
122382020-02-22 Tom Tromey <tom@tromey.com>
12239
12240 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12241 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12242 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12243 * tui/tui.c (_initialize_tui): Add usage text.
12244
ca793b96
TT
122452020-02-22 Tom Tromey <tom@tromey.com>
12246
12247 * tui/tui-win.c (tui_set_focus_command)
12248 (tui_set_win_height_command): Use error_no_arg.
12249 (_initialize_tui_win): Update help text.
12250 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12251
432b5c40
TT
122522020-02-22 Tom Tromey <tom@tromey.com>
12253
12254 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12255 * tui/tui-disasm.h (struct tui_disasm_window)
12256 <display_start_addr>: Declare.
12257 * tui/tui-source.h (struct tui_source_window)
12258 <display_start_addr>: Declare.
12259 * tui/tui-winsource.h (struct tui_source_window_base)
12260 <show_source_line, display_start_addr>: New methods.
12261 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12262 Rename and move to protected section.
12263 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12264 (tui_source_window_base::do_erase_source_content): Update.
12265 (tui_source_window_base::show_source_line): Now a method.
12266 (tui_source_window_base::show_source_content)
12267 (tui_source_window_base::tui_source_window_base)
12268 (tui_source_window_base::rerender)
12269 (tui_source_window_base::refill)
12270 (tui_source_window_base::do_scroll_horizontal)
12271 (tui_source_window_base::set_is_exec_point_at)
12272 (tui_source_window_base::update_breakpoint_info)
12273 (tui_source_window_base::update_exec_info): Update.
12274 * tui/tui-source.c (tui_source_window::set_contents)
12275 (tui_source_window::showing_source_p)
12276 (tui_source_window::do_scroll_vertical)
12277 (tui_source_window::location_matches_p)
12278 (tui_source_window::line_is_displayed): Update.
12279 (tui_source_window::display_start_addr): New method.
12280 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12281 (tui_disasm_window::do_scroll_vertical)
12282 (tui_disasm_window::location_matches_p): Update.
12283 (tui_disasm_window::display_start_addr): New method.
12284
01b1af32
TT
122852020-02-22 Tom Tromey <tom@tromey.com>
12286
12287 * NEWS: Add entry for gdb.register_window_type.
12288 * tui/tui-layout.h (window_factory): New typedef.
12289 (tui_register_window): Declare.
12290 * tui/tui-layout.c (saved_tui_windows): New global.
12291 (tui_apply_current_layout): Use it.
12292 (tui_register_window): New function.
12293 * python/python.c (do_start_initialization): Call
12294 gdbpy_initialize_tui.
12295 (python_GdbMethods): Add "register_window_type" function.
12296 * python/python-internal.h (gdbpy_register_tui_window)
12297 (gdbpy_initialize_tui): Declare.
12298 * python/py-tui.c: New file.
12299 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12300
fc96d20b
TT
123012020-02-22 Tom Tromey <tom@tromey.com>
12302
12303 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12304
935c78c0
TT
123052020-02-22 Tom Tromey <tom@tromey.com>
12306
12307 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12308 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12309 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12310 (tui_set_win_focus_to): Move from tui-win.c.
12311
0240c8f1
TT
123122020-02-22 Tom Tromey <tom@tromey.com>
12313
12314 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12315 functions.
12316 (known_window_types): New global.
12317 (tui_get_window_by_name): Reimplement.
12318 (initialize_known_windows): New function.
12319 (validate_window_name): Rewrite.
12320 (_initialize_tui_layout): Call initialize_known_windows.
12321
fdb01f0c
TT
123222020-02-22 Tom Tromey <tom@tromey.com>
12323
12324 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12325 Remove constants.
12326 * tui/tui-winsource.h (struct tui_source_window_base)
12327 <tui_source_window_base>: Remove parameter.
12328 * tui/tui-winsource.c
12329 (tui_source_window_base::tui_source_window_base): Remove
12330 parameter.
12331 (tui_source_window_base::refill): Update.
12332 * tui/tui-stack.h (struct tui_locator_window)
12333 <tui_locator_window>: Update.
12334 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12335 Default the constructor.
12336 * tui/tui-regs.h (struct tui_data_item_window)
12337 <tui_data_item_window>: Default the constructor.
12338 (struct tui_data_window) <tui_data_window>: Likewise.
12339 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12340 Default the constructor.
12341 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12342 Default the constructor.
12343 <type>: Remove.
12344 (struct tui_win_info) <tui_win_info>: Default the constructor.
12345 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12346 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12347 Default the constructor.
12348
865a5aec
TT
123492020-02-22 Tom Tromey <tom@tromey.com>
12350
12351 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12352 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12353 * tui/tui-win.c (tui_resize_all): Don't call
12354 tui_delete_invisible_windows.
12355 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12356 done.
12357 (tui_set_layout): Update.
12358 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12359 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12360 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12361
e098d18c
TT
123622020-02-22 Tom Tromey <tom@tromey.com>
12363
12364 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12365 correctly.
12366
eb9c8874
TT
123672020-02-22 Tom Tromey <tom@tromey.com>
12368
12369 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12370
7eed1a8e
TT
123712020-02-22 Tom Tromey <tom@tromey.com>
12372
12373 * tui/tui-winsource.h (struct tui_source_window_iterator)
12374 <inner_iterator>: New etytypedef.
12375 <tui_source_window_iterator>: Take "end" parameter.
12376 <tui_source_window_iterator>: Take iterator.
12377 <operator*, advance>: Update.
12378 <m_iter>: Change type.
12379 <m_end>: New field.
12380 (struct tui_source_windows) <begin, end>: Update.
12381 * tui/tui-layout.c (tui_windows): New global.
12382 (tui_apply_current_layout): Clear tui_windows.
12383 (tui_layout_window::apply): Update tui_windows.
12384 * tui/tui-data.h (tui_windows): Declare.
12385 (all_tui_windows): Now inline function.
12386 (class tui_window_iterator, struct all_tui_windows): Remove.
12387
7c043ba6
TT
123882020-02-22 Tom Tromey <tom@tromey.com>
12389
12390 PR tui/17850:
12391 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12392 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12393 "height" argument.
12394 (class tui_layout_window) <get_sizes>: Likewise.
12395 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12396 argument.
12397 <get_sizes>: Add "height" argument.
12398 <m_vertical>: New field.
12399 * tui/tui-layout.c (tui_layout_split::clone): Update.
12400 (tui_layout_split::get_sizes): Add "height" argument.
12401 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12402 (tui_new_layout_command): Parse "-horizontal".
12403 (_initialize_tui_layout): Update help string.
12404 (tui_layout_split::specification): Add "-horizontal" when needed.
12405 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12406 argument.
12407 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12408 New methods.
12409
6bc56648
TT
124102020-02-22 Tom Tromey <tom@tromey.com>
12411
12412 * tui/tui-layout.h (enum tui_adjust_result): New.
12413 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12414 (class tui_layout_window) <adjust_size>: Return
12415 tui_adjust_result. Rewrite.
12416 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12417 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12418
c22fef7e
TT
124192020-02-22 Tom Tromey <tom@tromey.com>
12420
12421 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12422 parameter and return types.
12423 (class tui_layout_base) <specification>: Add "depth".
12424 (class tui_layout_window) <specification>: Add "depth".
12425 (class tui_layout_split) <specification>: Add "depth".
12426 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12427 and return types.
12428 (tui_new_layout_command): Parse sub-layouts.
12429 (_initialize_tui_layout): Update help string.
12430 (tui_layout_window::specification): Add "depth".
12431 (add_layout_command): Update.
12432
ee325b61
TT
124332020-02-22 Tom Tromey <tom@tromey.com>
12434
12435 * NEWS: Add "tui new-layout" item.
12436 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12437 Add new-layout command to help text.
12438 (validate_window_name): New function.
12439 (tui_new_layout_command): New function.
12440 (_initialize_tui_layout): Register "new-layout".
12441 (tui_layout_window::specification): New method.
12442 (tui_layout_window::specification): New method.
12443 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12444 method.
12445 (class tui_layout_window) <specification>: New method.
12446 (class tui_layout_split) <specification>: New method.
12447
416eb92d
TT
124482020-02-22 Tom Tromey <tom@tromey.com>
12449
12450 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12451 * tui/tui-win.c (window_name_completer): Update comment.
12452 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12453 Declare method.
12454 (class tui_layout_window) <replace_window>: Likewise.
12455 (class tui_layout_split) <replace_window>: Likewise.
12456 (tui_set_layout): Don't declare.
12457 (tui_set_initial_layout): Declare function.
12458 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12459 (asm_regs_layout): New globals.
12460 (tui_current_layout, show_layout): Remove.
12461 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12462 (find_layout, tui_apply_layout): New function.
12463 (layout_completer): Remove.
12464 (tui_next_layout): Reimplement.
12465 (tui_next_layout_command): New function.
12466 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12467 (tui_regs_layout): Reimplement.
12468 (tui_regs_layout_command): New function.
12469 (extract_display_start_addr): Rewrite.
12470 (next_layout, prev_layout): Remove.
12471 (tui_layout_window::replace_window): New method.
12472 (tui_layout_split::replace_window): New method.
12473 (destroy_layout): New function.
12474 (layout_list): New global.
12475 (add_layout_command): New function.
12476 (initialize_layouts): Update.
12477 (tui_layout_command): New function.
12478 (_initialize_tui_layout): Install "layout" commands.
12479 * tui/tui-data.h (enum tui_layout_type): Remove.
12480 (tui_current_layout): Don't declare.
12481
0dbc2fc7
TT
124822020-02-22 Tom Tromey <tom@tromey.com>
12483
12484 * tui/tui-regs.c (tui_reg_layout): Remove.
12485 (tui_reg_command): Use tui_regs_layout.
12486 * tui/tui-layout.h (tui_reg_command): Declare.
12487 * tui/tui-layout.c (tui_reg_command): New function.
12488
5afe342e
TT
124892020-02-22 Tom Tromey <tom@tromey.com>
12490
12491 * tui/tui.c (tui_rl_delete_other_windows): Call
12492 tui_remove_some_windows.
12493 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12494 Declare method.
12495 (class tui_layout_window) <remove_windows>: New method.
12496 (class tui_layout_split) <remove_windows>: Declare.
12497 (tui_remove_some_windows): Declare.
12498 * tui/tui-layout.c (tui_remove_some_windows): New function.
12499 (tui_layout_split::remove_windows): New method.
12500
427326a8
TT
125012020-02-22 Tom Tromey <tom@tromey.com>
12502
12503 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12504 * tui/tui-layout.h (tui_next_layout): Declare.
12505 * tui/tui-layout.c (tui_next_layout): New function.
12506
3fe12b6d
TT
125072020-02-22 Tom Tromey <tom@tromey.com>
12508
12509 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12510 correct coordinates.
12511
59b8b5d2
TT
125122020-02-22 Tom Tromey <tom@tromey.com>
12513
12514 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12515 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12516 DATA_WIN case.
12517
2a3d458b
TT
125182020-02-22 Tom Tromey <tom@tromey.com>
12519
12520 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12521 TUI_DISASM_WIN, not tui_win_list.
12522
3f0cbb04
TT
125232020-02-22 Tom Tromey <tom@tromey.com>
12524
12525 * valprint.c (generic_val_print_enum_1)
12526 (val_print_type_code_flags): Style member names.
12527 * rust-lang.c (val_print_struct, rust_print_enum)
12528 (rust_print_struct_def, rust_internal_print_type): Style member
12529 names.
12530 * p-valprint.c (pascal_object_print_value_fields): Style member
12531 names. Only call fprintf_symbol_filtered for static members.
12532 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12533 * f-valprint.c (f_val_print): Style member names.
12534 * f-typeprint.c (f_type_print_base): Style member names.
12535 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12536 call fprintf_symbol_filtered for static members.
12537 (cp_print_class_member): Style member names.
12538 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12539 member names.
12540 * ada-valprint.c (ada_print_scalar): Style enum names.
12541 (ada_val_print_enum): Likewise.
12542 * ada-typeprint.c (print_enum_type): Style enum names.
12543
d4d947ae
TT
125442020-02-21 Tom Tromey <tom@tromey.com>
12545
12546 * psympriv.h (struct partial_symtab): Update comment.
12547
e94e944b
TT
125482020-02-21 Tom Tromey <tromey@adacore.com>
12549
12550 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12551 type is CORE_ADDR.
12552
1eb73179
TV
125532020-02-21 Tom de Vries <tdevries@suse.de>
12554
12555 PR gdb/25534
12556 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12557 if dependencies[i]->user != NULL.
12558
4f180d53
AT
125592020-02-21 Ali Tamur <tamur@google.com>
12560
12561 * dwarf2/read.c (dwarf2_name): Add null check.
12562
22b6cd70
TT
125632020-02-20 Tom Tromey <tom@tromey.com>
12564
12565 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12566 ">=", in binary search.
12567 (dwarf2_find_containing_comp_unit): New overload.
12568 (run_test): New self-test.
12569 (_initialize_dwarf2_read): Register new test.
12570
bd0cf5a6
NC
125712020-02-20 Nelson Chu <nelson.chu@sifive.com>
12572
12573 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12574 * riscv-tdep.h: Likewise.
12575 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12576 rv32-only CSR.
12577 * features/riscv/64bit-csr.xml: Regenerated.
12578
3f702acd
SDJ
125792020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12580 Tom Tromey <tom@tromey.com>
12581
12582 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12583 of 'fputc_unfiltered'.
12584 (putchar_unfiltered): Call 'fputc_unfiltered'.
12585 (fputc_unfiltered): Call 'fputs_unfiltered'.
12586
d13c7322
AB
125872020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12588
12589 * config.in: Regenerate.
12590 * configure: Regenerate.
12591 * configure.ac: Add --with-python-libdir option.
12592 * main.c: Use WITH_PYTHON_LIBDIR.
12593
869d8950
TT
125942020-02-19 Tom Tromey <tom@tromey.com>
12595
12596 * symtab.c (general_symbol_info::compute_and_set_names): Use
12597 obstack_strndup. Simplify call to symbol_set_demangled_name.
12598
298e9637
SM
125992020-02-19 Simon Marchi <simon.marchi@efficios.com>
12600
12601 * dwarf2/read.c (allocate_signatured_type_table,
12602 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12603 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12604 Remove objfile parameter, update all callers.
12605
08410482
DE
126062020-02-19 Doug Evans <dje@google.com>
12607
12608 PR rust/25535
12609 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12610 rust_enum_variant calculation.
12611
dfdeeca1
TT
126122020-02-19 Tom Tromey <tromey@adacore.com>
12613
12614 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12615
2ef5453b
TT
126162020-02-19 Tom Tromey <tromey@adacore.com>
12617
12618 * ada-lang.c (cache_symbol): Use obstack_strdup.
12619
9f1528a1
AB
126202020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12621
12622 * configure: Regenerate.
12623
d3c22fa8
TT
126242020-02-19 Tom Tromey <tromey@adacore.com>
12625
12626 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12627 NULL check.
12628
bf84f706
MR
126292020-02-19 Maciej W. Rozycki <macro@wdc.com>
12630
12631 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12632
d1c9b20f
AB
126332020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12634
12635 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12636 if GDBSERVER is not defined.
12637 (riscv_tdesc_cache): Likewise, also store const target_desc.
12638 (STATIC_IN_GDB): Define.
12639 (riscv_create_target_description): Update declaration with
12640 STATIC_IN_GDB.
12641 (riscv_lookup_target_description): New function, only define if
12642 GDBSERVER is not defined.
12643 * arch/riscv.h (riscv_create_target_description): Declare only
12644 when GDBSERVER is defined.
12645 (riscv_lookup_target_description): New declaration when GDBSERVER
12646 is not defined.
12647 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12648 (riscv_linux_read_features): ...this, and return
12649 riscv_gdbarch_features instead of target_desc.
12650 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12651 (riscv_linux_read_description): Rename to...
12652 (riscv_linux_read_features): ...this.
12653 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12654 Update to use riscv_gdbarch_features and
12655 riscv_lookup_target_description.
12656 * riscv-tdep.c (riscv_find_default_target_description): Use
12657 riscv_lookup_target_description instead of
12658 riscv_create_target_description.
12659
373d7ac0
SM
126602020-02-18 Simon Marchi <simon.marchi@efficios.com>
12661
12662 * valprint.c (generic_val_print_enum_1): When printing a flag
12663 enum with value 0 and there is no enumerator with value 0, print
12664 just "0" instead of "(unknown: 0x0)".
12665
b29a2df0
SM
126662020-02-18 Simon Marchi <simon.marchi@efficios.com>
12667
12668 * valprint.c (generic_val_print_enum_1): Print unknown part of
12669 flag enum in hex.
12670
6740f0cc
SM
126712020-02-18 Simon Marchi <simon.marchi@efficios.com>
12672
12673 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12674 flag enums to contain duplicate enumerators.
12675 * valprint.c (generic_val_print_enum_1): Update comment.
12676
edd45eb0
SM
126772020-02-18 Simon Marchi <simon.marchi@efficios.com>
12678
12679 * dwarf2/read.c: Include "count-one-bits.h".
12680 (update_enumeration_type_from_children): If an enumerator has
12681 multiple bits set, don't treat the enumeration as a "flag enum".
12682 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12683 of flag enums have 0 or 1 bit set.
12684
6d0cf446
BE
126852020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12686
12687 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12688 conversion.
12689 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12690 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12691 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12692 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12693 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12694
7001c1b7
SM
126952020-02-18 Simon Marchi <simon.marchi@efficios.com>
12696
12697 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12698
fdb61c6c
SM
126992020-02-14 Simon Marchi <simon.marchi@efficios.com>
12700
12701 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12702 displaced_step_closure_up.
12703 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12704 (struct displaced_step_closure_up):
12705 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12706 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12707 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12708 Likewise.
12709 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12710 * gdbarch.c, gdbarch.h: Re-generate.
12711 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12712 displaced_step_closure_up.
12713 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12714 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12715 * infrun.h (displaced_step_closure_up): New type alias.
12716 (struct displaced_step_inferior_state) <step_closure>: Change
12717 type to displaced_step_closure_up.
12718 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12719 displaced_step_closure_up.
12720 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12721
a4a38eb4
TT
127222020-02-14 Tom Tromey <tom@tromey.com>
12723
12724 * minidebug.c (gnu_debug_key): New global.
12725 (find_separate_debug_file_in_section): Use it.
12726
e8217e61
SM
127272020-02-14 Simon Marchi <simon.marchi@efficios.com>
12728
12729 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12730 std::unique_ptr.
12731 * gdbarch.c: Re-generate.
12732 * gdbarch.h: Re-generate.
12733 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12734 change.
12735 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12736 type to std::unique_ptr.
12737 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12738 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12739 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12740 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12741 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12742 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12743 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12744 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12745 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12746
d8d83535
SM
127472020-02-14 Simon Marchi <simon.marchi@efficios.com>
12748
12749 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12750 std::unique_ptr.
12751 (displaced_step_clear): Rename to...
12752 (displaced_step_reset): ... this. Just call displaced->reset ().
12753 (displaced_step_clear_cleanup): Rename to...
12754 (displaced_step_reset_cleanup): ... this.
12755 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12756 (displaced_step_fixup): Likewise.
12757 (resume_1): Likewise.
12758 (handle_inferior_event): Restore child's memory before calling
12759 displaced_step_fixup on the parent.
12760 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12761 to std::unique_ptr.
12762 <step_closure>: Change type to std::unique_ptr.
12763
5f661e03
SM
127642020-02-14 Simon Marchi <simon.marchi@efficios.com>
12765
12766 * arm-tdep.c: Include count-one-bits.h.
12767 (cleanup_block_store_pc): Use count_one_bits.
12768 (cleanup_block_load_pc): Use count_one_bits.
12769 (arm_copy_block_xfer): Use count_one_bits.
12770 (thumb2_copy_block_xfer): Use count_one_bits.
12771 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12772 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12773 (thumb_get_next_pcs_raw): Use count_one_bits.
12774 (arm_get_next_pcs_raw): Use count_one_bits_l.
12775 * arch/arm.c (bitcount): Remove.
12776 * arch/arm.h (bitcount): Remove.
12777
8084e579
TT
127782020-02-14 Tom Tromey <tromey@adacore.com>
12779
12780 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12781 Update.
12782 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12783 * dwarf2/loc.c (call_site_find_chain_1): Return
12784 unique_xmalloc_ptr.
12785 (call_site_find_chain): Likewise.
12786
258bf0ee
RB
127872020-02-14 Richard Biener <rguenther@suse.de>
12788
12789 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12790 on expression with division operators.
12791
f98a8458
AKS
127922020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12793
12794 * MAINTAINERS (Write After Approval): Adding myself.
12795
d1437c0e
TT
127962020-02-12 Tom Tromey <tom@tromey.com>
12797
12798 * event-loop.c (event_data, gdb_event, event_handler_func):
12799 Remove.
12800
3d4560f7
TT
128012020-02-12 Tom Tromey <tom@tromey.com>
12802
12803 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12804 (dwarf2_frame_objfile_data): Add comment.
12805 (find_comp_unit, set_comp_unit): New functions.
12806 (dwarf2_frame_find_fde): Use find_comp_unit.
12807 (dwarf2_build_frame_info): Use set_comp_unit.
12808
21982304
TT
128092020-02-12 Tom Tromey <tom@tromey.com>
12810
12811 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12812 (comp_unit): Don't initialize objfile.
12813 (execute_cfa_program): Add text_offset parameter.
12814 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12815 (dwarf2_frame_cache): Update.
12816 (dwarf2_build_frame_info): Don't set "objfile" member.
12817
4debb237
TT
128182020-02-12 Tom Tromey <tom@tromey.com>
12819
12820 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12821 (decode_frame_entry): Likewise.
12822 (dwarf2_build_frame_info): Update.
12823
0d404d44
TT
128242020-02-12 Tom Tromey <tom@tromey.com>
12825
12826 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12827 (decode_frame_entry_1): Use the comp_unit obstack.
12828
a7a3ae5c
TT
128292020-02-12 Tom Tromey <tom@tromey.com>
12830
12831 * dwarf2/frame.c (struct comp_unit): Add initializers and
12832 constructor.
12833 (dwarf2_frame_objfile_data): Store a comp_unit.
12834 (dwarf2_frame_find_fde): Update.
12835 (dwarf2_build_frame_info): Use "new".
12836
a9d65418
TT
128372020-02-12 Tom Tromey <tom@tromey.com>
12838
12839 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12840 (dwarf2_fde_table): Typedef for std::vector.
12841 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12842 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12843 (decode_frame_entry): Update.
12844 (dwarf2_build_frame_info): Use "new".
12845
7559c217
CB
128462020-02-12 Christian Biesinger <cbiesinger@google.com>
12847
12848 * arm-tdep.c (arm_gdbarch_init): Update.
12849 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12850 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12851 have_neon, is_m>: Change to bool.
12852
aeefc73c
CB
128532020-02-12 Christian Biesinger <cbiesinger@google.com>
12854
12855 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12856
d27b8e5f
TT
128572020-02-12 Tom Tromey <tom@tromey.com>
12858
12859 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12860
cd5900f3
HD
128612020-02-12 Hannes Domani <ssbssa@yahoo.de>
12862
12863 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12864 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12865
f056b22b
TT
128662020-02-11 Tom Tromey <tom@tromey.com>
12867
12868 * psymtab.h: Update comment.
12869
f92ff6b5
TT
128702020-02-11 Tom Tromey <tom@tromey.com>
12871
12872 * gdb_obstack.h (struct auto_obstack): Use
12873 DISABLE_COPY_AND_ASSIGN.
12874
3fd6912b
TT
128752020-02-11 Tom Tromey <tom@tromey.com>
12876
12877 * dwarf2/frame.h (struct objfile): Don't forward declare.
12878
69ed9b74
CB
128792020-02-11 Christian Biesinger <cbiesinger@google.com>
12880
12881 * cris-tdep.c (cris_supply_gregset): Change signature to match
12882 what struct regset expects.
12883 (cris_regset): New struct.
12884 (fetch_core_registers): Remove.
12885 (cris_iterate_over_regset_sections): New function.
12886 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12887 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12888
bda874f6
CB
128892020-02-11 Christian Biesinger <cbiesinger@google.com>
12890
12891 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12892 registers.
12893
754e1564
CB
128942020-02-11 Christian Biesinger <cbiesinger@google.com>
12895
12896 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12897
8ddd8e0e
SM
128982020-02-11 Simon Marchi <simon.marchi@efficios.com>
12899
12900 * configure: Re-generate.
12901
898e7f60
SM
129022020-02-11 Simon Marchi <simon.marchi@efficios.com>
12903
12904 * configure: Re-generate.
12905
58df732b
SM
129062020-02-11 Simon Marchi <simon.marchi@efficios.com>
12907
12908 * acinclude: Update warning.m4 path.
12909 * warning.m4: Move to gdbsupport.
12910
da5bd37e
TT
129112020-02-11 Tom Tromey <tromey@adacore.com>
12912
12913 * remote.c (remote_console_output): Update.
12914 * printcmd.c (printf_command): Update.
12915 * event-loop.c (gdb_wait_for_event): Update.
12916 * linux-nat.c (sigchld_handler): Update.
12917 * remote-sim.c (gdb_os_write_stdout): Update.
12918 (gdb_os_flush_stdout): Update.
12919 (gdb_os_flush_stderr): Update.
12920 (gdb_os_write_stderr): Update.
12921 * exceptions.c (print_exception): Update.
12922 * remote-fileio.c (remote_fileio_func_read): Update.
12923 (remote_fileio_func_write): Update.
12924 * tui/tui.c (tui_enable): Update.
12925 * tui/tui-interp.c (tui_interp::init): Update.
12926 * utils.c (init_page_info): Update.
12927 (putchar_unfiltered, fputc_unfiltered): Update.
12928 (gdb_flush): Update.
12929 (emit_style_escape): Update.
12930 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12931 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12932 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12933 (stderr_file::write): Update.
12934 (stderr_file::puts): Update.
12935 * ui-file.h (ui_file_isatty, ui_file_write)
12936 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12937 (ui_file_puts): Don't declare.
12938
85f0dd3c
TV
129392020-02-10 Tom de Vries <tdevries@suse.de>
12940
12941 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12942 sentinel to char *.
12943
2e927613
TV
129442020-02-09 Tom de Vries <tdevries@suse.de>
12945
12946 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12947 filename if it matches "<artificial>".
12948
6bafc845
HD
129492020-02-09 Hannes Domani <ssbssa@yahoo.de>
12950
12951 * windows-tdep.c (struct enum_value_name): New struct.
12952 (create_enum): New function.
12953 (windows_get_siginfo_type): Create and use enum types.
12954
7928d571
HD
129552020-02-09 Hannes Domani <ssbssa@yahoo.de>
12956
12957 * NEWS: Mention $_siginfo support for Windows.
12958 * windows-nat.c (handle_exception): Set siginfo_er.
12959 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12960 (windows_xfer_siginfo): New function.
12961 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12962 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12963 (init_windows_gdbarch_data): New function.
12964 (get_windows_gdbarch_data): New function.
12965 (windows_get_siginfo_type): New function.
12966 (windows_init_abi): Register windows_get_siginfo_type.
12967 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12968
6751ebae
TT
129692020-02-08 Tom Tromey <tom@tromey.com>
12970
12971 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12972 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12973 <keep>: Declare method.
12974 <m_keep>: Remove member.
12975 <~cutu_reader>: Remove.
12976 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12977 (cutu_reader::cutu_reader): Update.
12978 (cutu_reader::keep): Rename from ~cutu_reader.
12979 (process_psymtab_comp_unit, build_type_psymtabs_1)
12980 (process_skeletonless_type_unit, load_partial_comp_unit)
12981 (load_full_comp_unit, dwarf2_read_addr_index)
12982 (read_signatured_type): Update.
12983
135f5437
TT
129842020-02-08 Tom Tromey <tom@tromey.com>
12985
12986 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12987 "want_partial_unit" parameter.
12988 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12989 Inline check for DW_TAG_partial_unit.
12990 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12991
9f66ff1c
TT
129922020-02-08 Tom Tromey <tom@tromey.com>
12993
12994 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12995 read.c.
12996 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12997 read.c.
12998
c8a7a66f
TT
129992020-02-08 Tom Tromey <tom@tromey.com>
13000
13001 * dwarf2/read.c (read_address): Move to comp-unit.c.
13002 (dwarf2_rnglists_process, dwarf2_ranges_process)
13003 (read_attribute_value, dwarf_decode_lines_1)
13004 (var_decode_location, decode_locdesc): Update.
13005 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13006 read.c. Remove "cu" parameter.
13007 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13008 method.
13009
8266302d
TT
130102020-02-08 Tom Tromey <tom@tromey.com>
13011
13012 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13013 (read_indirect_line_string): Update.
13014 * dwarf2/comp-unit.c (read_offset): Remove.
13015 (read_comp_unit_head): Update.
13016 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13017 method.
13018 (read_offset): Don't declare.
13019
4057dfde
TT
130202020-02-08 Tom Tromey <tom@tromey.com>
13021
13022 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13023 * dwarf2/read.c (struct comp_unit_head): Move to
13024 dwarf2/comp-unit.h.
13025 (enum class rcuh_kind): Move to comp-unit.h.
13026 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13027 (read_comp_unit_head, error_check_comp_unit_head)
13028 (read_and_check_comp_unit_head): Move to comp-unit.c.
13029 (read_offset, dwarf_unit_type_name): Likewise.
13030 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13031 (cutu_reader::cutu_reader, read_call_site_scope)
13032 (find_partial_die, follow_die_offset): Update.
13033 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13034
24aa364d
TT
130352020-02-08 Tom Tromey <tom@tromey.com>
13036
13037 * dwarf2/read.c (read_offset_1): Move to leb.c.
13038 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13039 (dwarf_decode_macro_bytes): Update.
13040 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13041 * dwarf2/leb.h (read_offset): Declare.
13042
2c7d5afc
TT
130432020-02-08 Tom Tromey <tom@tromey.com>
13044
13045 * dwarf2/read.c (dwarf2_section_size): Remove.
13046 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13047 Update.
13048 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13049
4075cb26
TT
130502020-02-08 Tom Tromey <tom@tromey.com>
13051
13052 * dwarf2/read.c (read_initial_length): Move to leb.c.
13053 * dwarf2/leb.h (read_initial_length): Declare.
13054 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13055 handle_nonstd parameter.
13056 * dwarf2/frame.c (read_initial_length): Remove.
13057 (decode_frame_entry_1): Update.
13058
09ba997f
TT
130592020-02-08 Tom Tromey <tom@tromey.com>
13060
13061 * dwarf2/loc.c (dwarf2_find_location_expression)
13062 (dwarf_evaluate_loc_desc::get_tls_address)
13063 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13064 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13065 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13066 (dwarf2_compile_property_to_c)
13067 (dwarf2_loc_desc_get_symbol_read_needs)
13068 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13069 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13070 (loclist_describe_location, loclist_tracepoint_var_ref)
13071 (loclist_generate_c_location): Update.
13072 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13073 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13074 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13075 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13076 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13077 (dwarf2_per_cu_data::addr_size)
13078 (dwarf2_per_cu_data::ref_addr_size)
13079 (dwarf2_per_cu_data::text_offset)
13080 (dwarf2_per_cu_data::addr_type): Now methods.
13081 (per_cu_header_read_in): Make per_cu "const".
13082 (dwarf2_version): Remove.
13083 (dwarf2_per_cu_data::int_type): Now a method.
13084 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13085 (set_die_type, read_array_type, read_subrange_index_type)
13086 (read_tag_string_type, read_subrange_type): Update.
13087 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13088 offset_size, ref_addr_size, text_offset, addr_type, version,
13089 objfile, int_type, addr_sized_int_type>: Declare methods.
13090
96c738c0
TT
130912020-02-08 Tom Tromey <tom@tromey.com>
13092
13093 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13094 Move earlier.
13095
8fdd972c
TT
130962020-02-08 Tom Tromey <tom@tromey.com>
13097
13098 * dwarf2/read.h (dwarf_line_debug): Declare.
13099 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13100 * dwarf2/read.c: Move line_header code to new files.
13101 (dwarf_line_debug): No longer static.
13102 * dwarf2/line-header.c: New file.
13103 * dwarf2/line-header.h: New file.
13104
03075812
TT
131052020-02-08 Tom Tromey <tom@tromey.com>
13106
13107 * dwarf2/read.c (struct line_header) <file_full_name,
13108 file_file_name>: Return unique_xmalloc_ptr.
13109 (line_header::file_file_name): Update.
13110 (line_header::file_full_name): Update.
13111 (dw2_get_file_names_reader): Update.
13112 (macro_start_file): Update.
13113
bb822404
TT
131142020-02-08 Tom Tromey <tom@tromey.com>
13115
13116 * dwarf2/read.c (struct line_header) <file_full_name,
13117 file_file_name>: Declare methods.
13118 (dw2_get_file_names_reader): Update.
13119 (file_file_name): Now a method.
13120 (file_full_name): Likewise.
13121 (macro_start_file): Update.
13122
009b64fc
TT
131232020-02-08 Tom Tromey <tom@tromey.com>
13124
13125 * dwarf2/read.c (dwarf_always_disassemble)
13126 (show_dwarf_always_disassemble): Move to loc.c.
13127 (_initialize_dwarf2_read): Move "always-disassemble" registration
13128 to loc.c.
13129 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13130 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13131 static.
13132 (show_dwarf_always_disassemble): Move from read.c.
13133 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13134
5895093f
TT
131352020-02-08 Tom Tromey <tom@tromey.com>
13136
13137 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13138 (create_quick_file_names_table): Return htab_up.
13139 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13140 Update.
13141 * dwarf2/read.h (struct dwarf2_per_objfile)
13142 <quick_file_names_table>: Now htab_up.
13143
b3b32279
TT
131442020-02-08 Tom Tromey <tom@tromey.com>
13145
13146 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13147
1d33d811
TT
131482020-02-08 Tom Tromey <tom@tromey.com>
13149
13150 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13151 Rewrite.
13152 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13153 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13154 (abbrev_table::abbrev_table): No longer inline.
13155 (ABBREV_HASH_SIZE): Remove.
13156 (abbrev_table::m_abbrevs): Now an htab_up.
13157
86de1d91
TT
131582020-02-08 Tom Tromey <tom@tromey.com>
13159
13160 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13161 (cutu_reader): Update.
13162 (build_type_psymtabs_1): Update.
13163 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13164 (abbrev_table::alloc_abbrev): Update.
13165 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13166 (abbrev_table::read): New static method, renamed from
13167 abbrev_table_read_table.
13168 (abbrev_table::alloc_abbrev)
13169 (abbrev_table::add_abbrev): Now private.
13170 (abbrev_table::abbrev_table): Now private.
13171 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13172
0335378b
TT
131732020-02-08 Tom Tromey <tom@tromey.com>
13174
13175 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13176 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13177 htab_up.
13178
48b490f2
TT
131792020-02-08 Tom Tromey <tom@tromey.com>
13180
13181 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13182 htab_up.
13183 (lookup_dwo_unit_in_dwp): Update.
13184 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13185 on obstack.
13186
bc68fb19
TT
131872020-02-08 Tom Tromey <tom@tromey.com>
13188
13189 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13190 obstack.
13191
d15acc42
TT
131922020-02-08 Tom Tromey <tom@tromey.com>
13193
13194 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13195 line_header_hash.
13196 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13197 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13198 Change type to htab_up.
13199
eaa5fa8b
TT
132002020-02-08 Tom Tromey <tom@tromey.com>
13201
13202 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13203 htab_up. Don't allocate on obstack.
13204 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13205 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13206 Change type to htab_up.
13207
b0b6a987
TT
132082020-02-08 Tom Tromey <tom@tromey.com>
13209
13210 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13211 Change type to htab_up.
13212 * dwarf2/read.c (create_signatured_type_table_from_index)
13213 (create_signatured_type_table_from_debug_names)
13214 (create_all_type_units, add_type_unit)
13215 (lookup_dwo_signatured_type, lookup_signatured_type)
13216 (process_skeletonless_type_unit): Update.
13217 (create_debug_type_hash_table, create_debug_types_hash_table):
13218 Change type of types_htab.
13219 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13220 htab_up. Don't allocate on obstack.
13221 (create_cus_hash_table): Change type of cus_htab parameter.
13222 (struct dwo_file) <cus, tus>: Now htab_up.
13223 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13224 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13225 (queue_and_load_all_dwo_tus): Update.
13226 * dwarf2/index-write.c (write_gdbindex): Update.
13227 (write_debug_names): Update.
13228
39856def
TT
132292020-02-08 Tom Tromey <tom@tromey.com>
13230
13231 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13232 dwarf2/read.c. Remove "next" member. Add constructor ntad
13233 destructor.
13234 (struct dwarf2_per_objfile) <queue>: New member.
13235 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13236 dwarf2/read.h.
13237 (dwarf2_queue, dwarf2_queue_tail): Remove.
13238 (class dwarf2_queue_guard): Add parameter to constructor. Use
13239 DISABLE_COPY_AND_ASSIGN.
13240 <m_per_objfile>: New member.
13241 <~dwarf2_queue_guard>: Rewrite.
13242 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13243 Update.
13244 (~dwarf2_queue_item): New.
13245
3e225074
TT
132462020-02-08 Tom Tromey <tom@tromey.com>
13247
13248 * dwarf2/read.c (struct die_info) <has_children>: New member.
13249 (dw2_get_file_names_reader): Remove has_children.
13250 (dw2_get_file_names): Update.
13251 (read_cutu_die_from_dwo): Remove has_children.
13252 (cutu_reader::init_tu_and_read_dwo_dies)
13253 (cutu_reader::cutu_reader): Update.
13254 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13255 Remove has_children.
13256 (build_type_psymtabs_1, process_skeletonless_type_unit)
13257 (load_partial_comp_unit, load_full_comp_unit): Update.
13258 (create_dwo_cu_reader): Remove has_children.
13259 (create_cus_hash_table, read_die_and_children): Update.
13260 (read_full_die_1,read_full_die): Remove has_children.
13261 (read_signatured_type): Update.
13262 (class cutu_reader) <has_children>: Remove.
13263
82ca8957
TT
132642020-02-08 Tom Tromey <tom@tromey.com>
13265
13266 * dwarf2/expr.c: Rename from dwarf2expr.c.
13267 * dwarf2/expr.h: Rename from dwarf2expr.h.
13268 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13269 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13270 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13271 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13272 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13273 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13274 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13275 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13276 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13277 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13278 * dwarf2/loc.c: Rename from dwarf2loc.c.
13279 * dwarf2/loc.h: Rename from dwarf2loc.h.
13280 * dwarf2/read.c: Rename from dwarf2read.c.
13281 * dwarf2/read.h: Rename from dwarf2read.h.
13282 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13283 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13284 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13285 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13286 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13287 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13288 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13289 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13290 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13291 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13292 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13293 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13294 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13295 Update.
13296 * Makefile.in (COMMON_SFILES): Update.
13297 (HFILES_NO_SRCDIR): Update.
13298
9e35d499
TT
132992020-02-08 Tom Tromey <tom@tromey.com>
13300
13301 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13302 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13303
1eba2311
TT
133042020-02-08 Tom Tromey <tom@tromey.com>
13305
13306 * dwarf2read.h (struct die_info): Don't declare.
13307
e41c2da2
TT
133082020-02-08 Tom Tromey <tom@tromey.com>
13309
13310 * dwarf2read.h (die_info_ptr): Remove typedef.
13311
4fc6c0d5
TT
133122020-02-08 Tom Tromey <tom@tromey.com>
13313
13314 * dwarf2read.c (read_call_site_scope)
13315 (handle_data_member_location, dwarf2_add_member_fn)
13316 (mark_common_block_symbol_computed, read_common_block)
13317 (attr_to_dynamic_prop, partial_die_info::read)
13318 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13319 (dwarf2_symbol_mark_computed, set_die_type): Update.
13320 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13321 method.
13322 (attr_form_is_block): Don't declare.
13323 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13324
cd6c91b4
TT
133252020-02-08 Tom Tromey <tom@tromey.com>
13326
13327 * dwarf2read.c (dwarf2_find_base_address, )
13328 (read_call_site_scope, rust_containing_type)
13329 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13330 (handle_data_member_location, dwarf2_add_member_fn)
13331 (get_alignment, read_structure_type, process_structure_scope)
13332 (mark_common_block_symbol_computed, read_common_block)
13333 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13334 (partial_die_info::read, read_attribute_value, new_symbol)
13335 (lookup_die_type, dwarf2_get_ref_die_offset)
13336 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13337 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13338 (dwarf2_symbol_mark_computed): Update.
13339 * dwarf2/attribute.h (struct attribute) <value_as_address,
13340 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13341 methods.
13342 (value_as_address, attr_form_is_section_offset)
13343 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13344 * dwarf2/attribute.c (attribute::value_as_address)
13345 (attribute::form_is_section_offset, attribute::form_is_constant)
13346 (attribute::form_is_ref): Now methods.
13347
162dce55
TT
133482020-02-08 Tom Tromey <tom@tromey.com>
13349
13350 * dwarf2read.c (struct attribute, DW_STRING)
13351 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13352 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13353 (attr_form_is_block, attr_form_is_section_offset)
13354 (attr_form_is_constant, attr_form_is_ref): Move.
13355 * dwarf2/attribute.h: New file.
13356 * dwarf2/attribute.c: New file, from dwarf2read.c.
13357 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13358
3054dd54
TT
133592020-02-08 Tom Tromey <tom@tromey.com>
13360
13361 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13362 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13363 Move.
13364 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13365 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13366 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13367 abbrev.c.
13368 * dwarf2/abbrev.h: New file.
13369 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13370 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13371
96b79293
TT
133722020-02-08 Tom Tromey <tom@tromey.com>
13373
13374 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13375 (dwarf2_section_size, dwarf2_get_section_info)
13376 (create_signatured_type_table_from_debug_names)
13377 (create_addrmap_from_aranges, read_debug_names_from_section)
13378 (get_gdb_index_contents_from_section, read_comp_unit_head)
13379 (error_check_comp_unit_head, read_abbrev_offset)
13380 (create_debug_type_hash_table, init_cu_die_reader)
13381 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13382 (read_comp_units_from_section, create_cus_hash_table)
13383 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13384 (create_dwp_v2_section, dwarf2_rnglists_process)
13385 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13386 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13387 (read_indirect_string_from_dwz, read_addr_index_1)
13388 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13389 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13390 (fill_in_loclist_baton): Update.
13391 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13392 get_containing_section, get_bfd_owner, get_bfd_section,
13393 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13394 (dwarf2_read_section, get_section_name, get_section_file_name)
13395 (get_containing_section, get_section_bfd_owner)
13396 (get_section_bfd_section, get_section_name, get_section_file_name)
13397 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13398 declare.
13399 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13400 (dwarf2_section_info::get_bfd_owner)
13401 (dwarf2_section_info::get_bfd_section)
13402 (dwarf2_section_info::get_name)
13403 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13404 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13405 (dwarf2_section_info::read): Now methods.
13406 * dwarf-index-write.c (class debug_names): Update.
13407
2c86cff9
TT
134082020-02-08 Tom Tromey <tom@tromey.com>
13409
13410 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13411 Move to dwarf2/section.h.
13412 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13413 (get_section_bfd_section, get_section_name)
13414 (get_section_file_name, get_section_id, get_section_flags)
13415 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13416 dwarf2/section.c.
13417 * dwarf2/section.h: New file.
13418 * dwarf2/section.c: New file, from dwarf2read.c.
13419 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13420
f4382c45
TT
134212020-02-08 Tom Tromey <tom@tromey.com>
13422
13423 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13424 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13425 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13426 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13427 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13428 * dwarf2/leb.h: New file, from dwarf2read.c.
13429 * dwarf2/leb.c: New file, from dwarf2read.c.
13430 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13431 Remove.
13432 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13433 (COMMON_SFILES): Add dwarf2/leb.c.
13434
01840b7a
JB
134352020-02-08 Joel Brobecker <brobecker@adacore.com>
13436
13437 GDB 9.1 released.
13438
dfcb27e4
IB
134392020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13440
13441 PR gdb/25190:
aac66a4c
SM
13442 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13443 * gdb/remote.c (remote_console_output): Update.
13444 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13445 (ui_file_puts): ...this.
13446 * gdb/ui-file.h (ui_file_puts): Add declaration.
13447 * gdb/utils.c (emit_style_escape): Update.
13448 (flush_wrap_buffer): Update.
13449 (fputs_maybe_filtered): Update.
13450 (fputs_unfiltered): Add function.
dfcb27e4 13451
faa17681
IB
134522020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13453
aac66a4c
SM
13454 * gdb/event-loop.c (gdb_wait_for_event): Update.
13455 * gdb/printcmd.c (printf_command): Update.
13456 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13457 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13458 (gdb_os_flush_stderr): Update.
13459 * gdb/remote.c (remote_console_output): Update.
13460 * gdb/ui-file.c (gdb_flush): Rename to...
13461 (ui_file_flush): ...this.
13462 (stderr_file::write): Update.
13463 (stderr_file::puts): Update.
13464 * gdb/ui-file.h (gdb_flush): Rename to...
13465 (ui_file_flush): ...this.
13466 * gdb/utils.c (gdb_flush): Add function.
13467 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13468
5abbbe1d
TT
134692020-02-07 Tom Tromey <tromey@adacore.com>
13470
13471 PR breakpoints/24915:
13472 * source.c (find_and_open_source): Do not check basenames_may_differ.
13473
919adfe8
TT
134742020-02-07 Tom Tromey <tom@tromey.com>
13475
13476 * README: Update gdbserver documentation.
13477 * gdbserver: Move to top level.
13478 * configure.tgt (build_gdbserver): Remove.
13479 * configure.ac: Remove --enable-gdbserver.
13480 * configure: Rebuild.
13481 * Makefile.in (distclean): Don't mention gdbserver.
13482
1d5d29e7
SV
134832020-02-06 Shahab Vahedi <shahab@synopsys.com>
13484
13485 * source-cache.c (source_cache::ensure): Surround
13486 get_plain_source_lines with a try/catch.
13487 (source_cache::get_line_charpos): Get rid of try/catch
13488 and only check for the return value of "ensure".
13489 * tui/tui-source.c (tui_source_window::set_contents):
13490 Simplify "nlines" calculation.
13491
6eb1129c
SV
134922020-02-06 Shahab Vahedi <shahab@synopsys.com>
13493
13494 * MAINTAINERS (Write After Approval): Add myself.
13495
c6a42d11
CB
134962020-02-05 Christian Biesinger <cbiesinger@google.com>
13497
13498 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13499 function call.
13500
c8ecdda6
CB
135012020-02-05 Christian Biesinger <cbiesinger@google.com>
13502
13503 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13504
f6480e70
MR
135052020-02-05 Maciej W. Rozycki <macro@wdc.com>
13506
13507 * nat/riscv-linux-tdesc.h: New file.
13508 * nat/riscv-linux-tdesc.c: New file, taking code from...
13509 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13510 ... here.
13511 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13512 NATDEPFILES.
13513
dcc9fbc6
AB
135142020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13515
13516 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13517 we don't set the fake simulator ptid to the null_ptid.
13518
719546c4
SM
135192020-02-03 Simon Marchi <simon.marchi@efficios.com>
13520
13521 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13522 * gdbthread.h (class thread_info) <resumed>: Likewise.
13523 * infrun.c (resume_1): Likewise.
13524 (proceed): Likewise.
13525 (infrun_thread_stop_requested): Likewise.
13526 (stop_all_threads): Likewise.
13527 (handle_inferior_event): Likewise.
13528 (restart_threads): Likewise.
13529 (finish_step_over): Likewise.
13530 (keep_going_stepped_thread): Likewise.
13531 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13532 (linux_handle_extended_wait): Likewise.
13533 * record-btrace.c (get_thread_current_frame_id): Likewise.
13534 * record-full.c (record_full_wait_1): Likewise.
13535 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13536 * target.c (target_resume): Likewise.
13537 * thread.c (set_running_thread): Likewise.
13538
e409c542
AKS
135392020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13540
13541 * f-valprint.c (f77_print_array_1): Changed datatype of index
13542 variable to LONGEST from int to enable it to contain bound
13543 values correctly.
13544
ee98c0da
MR
135452020-02-03 Maciej W. Rozycki <macro@wdc.com>
13546
13547 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13548 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13549 offsets according to FLEN determined.
13550 (riscv_linux_nat_target::read_description): Determine FLEN
13551 dynamically.
13552 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13553 according to FLEN determined.
13554 (riscv_linux_nat_target::store_registers): Likewise.
13555
aa66aac4
SV
135562020-02-01 Shahab Vahedi <shahab@synopsys.com>
13557
13558 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13559 when reg->group is empty and reggroup is not.
13560
fd9faca8
TT
135612020-01-31 Tom Tromey <tromey@adacore.com>
13562
13563 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13564 Call beneath target's mourn_inferior after unpushing.
13565
42330a68
AB
135662020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13567
13568 PR tui/9765
13569 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13570 have enough lines to fill the screen, still return the lowest
13571 address we found.
13572
7a27a45b
AB
135732020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13574
13575 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13576 '-', '<', and '>' commands.
13577
c47f70e2
PA
135782020-01-29 Pedro Alves <palves@redhat.com>
13579 Sergio Durigan Junior <sergiodj@redhat.com>
13580
13581 * infcmd.c (construct_inferior_arguments): Assert that
13582 'argc' is greater than 0.
13583
5133a315
LM
135842020-01-29 Luis Machado <luis.machado@linaro.org>
13585
13586 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13587 (BRK_INSN_MASK): Define to 0xd4200000.
13588 (aarch64_program_breakpoint_here_p): New function.
13589 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13590 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13591 breakpoint.c.
13592 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13593 breakpoint.h
13594 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13595 call gdbarch_program_breakpoint_here_p.
13596 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13597 default_program_breakpoint_here_p, changed return type to bool and
13598 simplified.
13599 * breakpoint.h (program_breakpoint_here): Moved prototype to
13600 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13601 return type to bool.
13602 * gdbarch.c: Regenerate.
13603 * gdbarch.h: Regenerate.
13604 * gdbarch.sh (program_breakpoint_here_p): New method.
13605 * infrun.c (handle_signal_stop): Call
13606 gdbarch_program_breakpoint_here_p.
13607
168f8c6b
TT
136082020-01-26 Tom Tromey <tom@tromey.com>
13609
13610 * ctfread.c (struct ctf_fp_info): Reindent.
13611 (_initialize_ctfread): Remove.
13612
128a391f
TT
136132020-01-26 Tom Tromey <tom@tromey.com>
13614
13615 * psymtab.c (partial_map_expand_apply)
13616 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13617 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13618 (psym_print_stats, psym_expand_symtabs_for_function)
13619 (psym_map_symbol_filenames, psym_map_matching_symbols)
13620 (psym_expand_symtabs_matching)
13621 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13622 (maintenance_check_psymtabs): Use new methods.
13623 * psympriv.h (struct partial_symtab) <readin_p,
13624 get_compunit_symtab>: New methods.
13625 <readin, compunit_symtab>: Remove members.
13626 (struct standard_psymtab): New.
13627 (struct legacy_psymtab): Derive from standard_psymtab.
13628 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13629 standard_psymtab.
13630 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13631
0494dbec
TT
136322020-01-26 Tom Tromey <tom@tromey.com>
13633
13634 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13635 read_dependencies. Add assert.
13636 * psymtab.c (partial_symtab::read_dependencies): New method.
13637 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13638 method.
13639 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13640 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13641 read_dependencies.
13642 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13643 Add assert.
13644
8566b89b
TT
136452020-01-26 Tom Tromey <tom@tromey.com>
13646
13647 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13648 Call expand_psymtab.
13649 (xcoff_read_symtab): Call expand_psymtab.
13650 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13651 legacy_expand_psymtab.
13652 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13653 method.
13654 (struct legacy_psymtab) <expand_psymtab>: Implement.
13655 <legacy_expand_psymtab>: New member.
13656 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13657 (parse_partial_symbols): Set legacy_expand_psymtab.
13658 (psymtab_to_symtab_1): Change argument order. Call
13659 expand_psymtab.
13660 (new_psymtab): Set legacy_expand_psymtab.
13661 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13662 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13663 expand_psymtab.
13664 (dwarf2_psymtab::expand_psymtab): Rename from
13665 psymtab_to_symtab_1. Call expand_psymtab.
13666 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13667 (dbx_end_psymtab): Likewise.
13668 (dbx_psymtab_to_symtab_1): Change argument order. Call
13669 expand_psymtab.
13670 (dbx_read_symtab): Call expand_psymtab.
13671 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13672 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13673 (ctf_psymtab::read_symtab): Call expand_psymtab.
13674
077cbab2
TT
136752020-01-26 Tom Tromey <tom@tromey.com>
13676
13677 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13678 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13679 messages.
13680 * mdebugread.c (mdebug_read_symtab): Remove prints.
13681 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13682 assert.
13683 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13684
891813be
TT
136852020-01-26 Tom Tromey <tom@tromey.com>
13686
13687 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13688 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13689 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13690 legacy_symtab.
13691 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13692 * psymtab.c (psymtab_to_symtab): Call method.
13693 (dump_psymtab): Update.
13694 * psympriv.h (struct partial_symtab): Add virtual destructor.
13695 <read_symtab>: New method.
13696 (struct legacy_symtab): New.
13697 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13698 (struct pst_map) <pst>: Now a legacy_psymtab.
13699 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13700 (new_psymtab): Use legacy_psymtab.
13701 * dwarf2read.h (struct dwarf2_psymtab): New.
13702 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13703 * dwarf2read.c (dwarf2_create_include_psymtab)
13704 (dwarf2_build_include_psymtabs, create_type_unit_group)
13705 (create_partial_symtab, process_psymtab_comp_unit_reader)
13706 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13707 (set_partial_user): Use dwarf2_psymtab.
13708 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13709 (psymtab_to_symtab_1, process_full_comp_unit)
13710 (process_full_type_unit, dwarf2_ranges_read)
13711 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13712 (dwarf_decode_lines): Use dwarf2_psymtab.
13713 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13714 (add_address_entry_worker, write_one_signatured_type)
13715 (recursively_count_psymbols, recursively_write_psymbols)
13716 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13717 (write_debug_names): Likewise.
13718 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13719 <pst>: Now a legacy_psymtab.
13720 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13721 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13722 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13723 * ctfread.c (struct ctf_psymtab): New.
13724 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13725 ctf_psymtab.
13726 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13727 (create_partial_symtab): Return a ctf_psymtab.
13728 (scan_partial_symbols): Update.
13729
c3693a1d
TT
137302020-01-26 Tom Tromey <tom@tromey.com>
13731
13732 * xcoffread.c (xcoff_start_psymtab): Use new.
13733 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13734 renamed from start_psymtab_common.
13735 * psympriv.h (struct partial_symtab): Add new constructor.
13736 (start_psymtab_common): Don't declare.
13737 * mdebugread.c (parse_partial_symbols): Use new.
13738 * dwarf2read.c (create_partial_symtab): Use new.
13739 * dbxread.c (start_psymtab): Use new.
13740 * ctfread.c (create_partial_symtab): Use new.
13741
32caafd0
TT
137422020-01-26 Tom Tromey <tom@tromey.com>
13743
13744 * xcoffread.c (xcoff_end_psymtab): Use new.
13745 * psymtab.c (start_psymtab_common): Use new.
13746 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13747 Update.
13748 * psympriv.h (struct partial_symtab): Add parameters to
13749 constructor. Don't inline.
13750 (allocate_psymtab): Don't declare.
13751 * mdebugread.c (new_psymtab): Use new.
13752 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13753 * dbxread.c (dbx_end_psymtab): Use new.
13754
abaa2f23
TT
137552020-01-26 Tom Tromey <tom@tromey.com>
13756
13757 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13758 allocate_psymtab. Update documentation.
13759 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13760 allocate_psymtab. Do not use new.
13761 (allocate_psymtab): Use new. Update.
13762
6d94535f
TT
137632020-01-26 Tom Tromey <tom@tromey.com>
13764
13765 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13766 * psymtab.c (psym_print_stats): Update.
13767 * psympriv.h (struct partial_symtab) <readin,
13768 psymtabs_addrmap_supported, anonymous>: Now bool.
13769 * mdebugread.c (psymtab_to_symtab_1): Update.
13770 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13771 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13772 (process_full_comp_unit, process_full_type_unit): Update.
13773 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13774 * ctfread.c (psymtab_to_symtab): Update.
13775
6f17252b
TT
137762020-01-26 Tom Tromey <tom@tromey.com>
13777
13778 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13779 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13780 * psymtab.c (psymtab_storage): Delete psymtabs.
13781 (psymtab_storage::allocate_psymtab): Use new.
13782 (psymtab_storage::discard_psymtab): Use delete.
13783 * psympriv.h (struct partial_symtab): Add constructor and
13784 initializers.
13785
f6f1cebc
TT
137862020-01-26 Tom Tromey <tom@tromey.com>
13787
13788 * machoread.c: Do not include psympriv.h.
13789
e47e48f6
PW
137902020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13791
13792 * NEWS: Mention the new option and the set/show commands.
13793
a2fedca9
PW
137942020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13795
13796 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13797 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13798 (validate_exec_file): New variables, enums, functions.
13799 (exec_file_locate_attach, print_section_info): Style the filenames.
13800 (_initialize_exec): Install show_exec_file_mismatch_command and
13801 set_exec_file_mismatch_command.
13802 * gdbcore.h (validate_exec_file): Declare.
13803 * infcmd.c (attach_command): Call validate_exec_file.
13804 * remote.c ( remote_target::remote_add_inferior): Likewise.
13805
7ffa82e1
AB
138062020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13807
13808 * frame.c (find_frame_sal): Move call to get_next_frame into more
13809 inner scope.
13810 * inline-frame.c (inilne_state) <inline_state>: Update argument
13811 types.
13812 (inilne_state) <skipped_symbol>: Rename to...
13813 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13814 (skip_inline_frames): Build vector of skipped symbols and use this
13815 to reate the inline_state.
13816 (inline_skipped_symbol): Add a comment and some assertions, fetch
13817 skipped symbol from the list.
13818
3d92a3e3
AB
138192020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13820
13821 * buildsym.c (lte_is_less_than): Delete.
13822 (buildsym_compunit::end_symtab_with_blockvector): Create local
13823 lambda function to sort line table entries, and use
13824 std::stable_sort instead of std::sort.
13825 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13826 markers when looking for a previous line.
13827
94a72be7
AB
138282020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13829
13830 * dwarf2read.c (lnp_state_machine::record_line): Include
13831 end_sequence parameter in debug print out. Record the line if we
13832 are at an end_sequence marker even if it's not the start of a
13833 statement.
13834 * symmisc.c (maintenance_print_one_line_table): Print end of
13835 sequence markers with 'END' not '0'.
13836
53af73bf
PA
138372020-01-24 Pedro Alves <palves@redhat.com>
13838
13839 PR gdb/25410
13840 * thread.c (scoped_restore_current_thread::restore): Use
13841 switch_to_inferior_no_thread.
13842 * exec.c: Include "progspace-and-thread.h".
13843 (add_target_sections, remove_target_sections):
13844 scoped_restore_current_pspace_and_thread instead of
13845 scoped_restore_current_thread.
13846 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13847 and aspace to the inferior before calling clone_program_space.
13848 Remove stale comment.
13849
3050c6f4
CB
138502020-01-24 Christian Biesinger <cbiesinger@google.com>
13851
13852 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13853 (arm_netbsd_nat_target::fetch_registers): ...this.
13854 (arm_nbsd_nat_target::store_registers): Rename to...
13855 (arm_netbsd_nat_target::store_registers): ...this.
13856
73685c7e
CB
138572020-01-24 Christian Biesinger <cbiesinger@google.com>
13858
13859 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13860 register_t.
13861
89203d40
CB
138622020-01-24 Christian Biesinger <cbiesinger@google.com>
13863
13864 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13865 Update comment.
13866 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13867 Likewise.
13868 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13869 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13870 the correct replacement (iterate_over_regset_sections).
13871 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13872 Update comment.
13873
1ba1ac88
AB
138742020-01-24 Graham Markall <graham.markall@embecosm.com>
13875
13876 PR gdb/23718
13877 * gdb/python/python.c (execute_gdb_command): Call
13878 async_enable_stdin in catch block.
13879
f3364a6d
AB
138802020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13881
13882 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13883 SWITCH_THRU_ALL_UIS.
13884
733d0a67
AB
138852020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13886
13887 PR tui/9765
13888 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13889 comment, add extra parameter, and update to store previous symbol
13890 when appropriate.
13891 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13892 add extra parameter.
13893 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13894 remove unneeded parameter, add try/catch around gdb_print_insn,
13895 rewrite to add items to asm_lines vector.
13896 (tui_find_backward_disassembly_start_address): New function.
13897 (tui_find_disassembly_address): Updated throughout.
13898 (tui_disasm_window::set_contents): Update for changes to
13899 tui_disassemble.
13900 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13901 number of lines to scroll.
13902
b3b3bada
SM
139032020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13904
13905 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13906 (SECT_OFF_DATA): Likewise.
13907 (SECT_OFF_RODATA): Likewise.
13908 (SECT_OFF_TEXT): Likewise.
13909 (SECT_OFF_BSS): Likewise.
13910 (struct objfile) <text_section_offset, data_section_offset>: New
13911 methods.
13912 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13913 objfile::text_section_offset.
13914 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13915 * coffread.c (coff_symtab_read): Likewise.
13916 (enter_linenos): Likewise.
13917 (process_coff_symbol): Likewise.
13918 * ctfread.c (get_objfile_text_range): Likewise.
13919 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13920 Use objfile::data_section_offset.
13921 * dwarf2-frame.c (execute_cfa_program): Use
13922 objfile::text_section_offset.
13923 (dwarf2_frame_find_fde): Likewise.
13924 * dwarf2read.c (create_addrmap_from_index): Likewise.
13925 (create_addrmap_from_aranges): Likewise.
13926 (dw2_find_pc_sect_compunit_symtab): Likewise.
13927 (process_psymtab_comp_unit_reader): Likewise.
13928 (add_partial_symbol): Likewise.
13929 (add_partial_subprogram): Likewise.
13930 (process_full_comp_unit): Likewise.
13931 (read_file_scope): Likewise.
13932 (read_func_scope): Likewise.
13933 (read_lexical_block_scope): Likewise.
13934 (read_call_site_scope): Likewise.
13935 (dwarf2_rnglists_process): Likewise.
13936 (dwarf2_ranges_process): Likewise.
13937 (dwarf2_ranges_read): Likewise.
13938 (dwarf_decode_lines_1): Likewise.
13939 (new_symbol): Likewise.
13940 (dwarf2_fetch_die_loc_sect_off): Likewise.
13941 (dwarf2_per_cu_text_offset): Likewise.
13942 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13943 * hppa-tdep.c (read_unwind_info): Likewise.
13944 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13945 * psympriv.h (struct partial_symtab): Likewise.
13946 * psymtab.c (find_pc_sect_psymtab): Likewise.
13947 * solib-svr4.c (enable_break): Likewise.
13948 * stap-probe.c (relocate_address): Use
13949 objfile::data_section_offset.
13950 * xcoffread.c (enter_line_range): Use
13951 objfile::text_section_offset.
13952 (read_xcoff_symtab): Likewise.
13953
ab53f382
SM
139542020-01-23 Simon Marchi <simon.marchi@efficios.com>
13955
13956 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13957 declaration to narrower scopes.
13958
e7eee665
SM
139592020-01-23 Simon Marchi <simon.marchi@efficios.com>
13960
13961 * darwin-nat.h (struct darwin_exception_msg, enum
13962 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13963 Move up.
13964 (class darwin_nat_target) <wait_1, check_new_threads,
13965 decode_exception_message, decode_message, stop_inferior,
13966 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13967 * darwin-nat.c (darwin_check_new_threads): Rename to...
13968 (darwin_nat_target::check_new_threads): ... this.
13969 (darwin_suspend_inferior_it): Remove.
13970 (darwin_decode_exception_message): Rename to...
13971 (darwin_nat_target::decode_exception_message): ... this.
13972 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13973 (darwin_decode_message): Rename to...
13974 (darwin_nat_target::decode_message): ... this.
13975 (cancel_breakpoint): Rename to...
13976 (darwin_nat_target::cancel_breakpoint): ... this.
13977 (darwin_wait): Rename to...
13978 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13979 instead of iterate_over_inferiors.
13980 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13981 (darwin_stop_inferior): Rename to...
13982 (darwin_nat_target::stop_inferior): ... this.
13983 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13984 (darwin_init_thread_list): Rename to...
13985 (darwin_nat_target::init_thread_list): ... this.
13986 (darwin_ptrace_him): Rename to...
13987 (darwin_nat_target::ptrace_him): ... this.
13988 (darwin_nat_target::create_inferior): Pass lambda function to
13989 fork_inferior.
13990 (darwin_nat_target::detach): Call stop_inferior instead of
13991 darwin_stop_inferior.
13992 * fork-inferior.h (fork_inferior): Change init_trace_fun
13993 parameter to gdb::function_view.
13994 * fork-inferior.c (fork_inferior): Likewise.
13995
c162ed3e
HD
139962020-01-23 Hannes Domani <ssbssa@yahoo.de>
13997
13998 * i386-cygwin-tdep.c (core_process_module_section): Update.
13999 * windows-nat.c (struct lm_info_windows): Add text_offset.
14000 (windows_xfer_shared_libraries): Update.
14001 * windows-tdep.c (windows_xfer_shared_library):
14002 Add text_offset_cached argument.
14003 * windows-tdep.h (windows_xfer_shared_library): Update.
14004
a1237872
SM
140052020-01-21 Simon Marchi <simon.marchi@efficios.com>
14006
14007 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14008
b3ee6dd9
SM
140092020-01-21 Simon Marchi <simon.marchi@efficios.com>
14010
14011 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14012 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14013 replace with range-based for.
14014 (gdbsim_interrupt_inferior): Remove.
14015 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14016 with a range-based for. Inline code from
14017 gdbsim_interrupt_inferior.
14018
f9fac3c8
SM
140192020-01-21 Simon Marchi <simon.marchi@efficios.com>
14020
14021 * infrun.c (proceed): Fix indentation.
14022
f6474de9
TT
140232020-01-21 Tom Tromey <tromey@adacore.com>
14024
14025 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14026 * python/python.c (python_extension_ops): Update.
14027 (gdbpy_colorize): New function.
14028 * python/lib/gdb/__init__.py (colorize): New function.
14029 * extension.h (ext_lang_colorize): Declare.
14030 * extension.c (ext_lang_colorize): New function.
14031 * extension-priv.h (struct extension_language_ops) <colorize>: New
14032 member.
14033 * cli/cli-style.c (_initialize_cli_style): Update help text.
14034
f0c702d4
LM
140352020-01-21 Luis Machado <luis.machado@linaro.org>
14036
14037 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14038 <cond>: Change type to bool.
14039 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14040 (aarch64_displaced_step_cb): Likewise.
14041 (aarch64_displaced_step_tb): Likewise.
14042
1ab139e5
LM
140432020-01-21 Luis Machado <luis.machado@linaro.org>
14044
14045 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14046 output.
14047
0c271889
LM
140482020-01-21 Luis Machado <luis.machado@linaro.org>
14049
14050 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14051 <pc_adjust>: Adjust the documentation.
14052 (aarch64_displaced_step_fixup): Check if PC really moved before
14053 adjusting it.
14054
4d89c1c7
TT
140552020-01-19 Tom Tromey <tom@tromey.com>
14056
14057 * disasm.c (~gdb_disassembler): New destructor.
14058 (gdb_buffered_insn_length): Call disassemble_free_target.
14059 * disasm.h (class gdb_disassembler): Declare destructor. Use
14060 DISABLE_COPY_AND_ASSIGN.
14061
c0ab21c2
TT
140622020-01-19 Tom Tromey <tom@tromey.com>
14063
14064 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14065 (die_reader_func_ftype): Remove.
14066 (cutu_reader): New class.
14067 (dw2_get_file_names_reader): Remove "data" parameter.
14068 (dw2_get_file_names): Use cutu_reader.
14069 (create_debug_type_hash_table): Update.
14070 (read_cutu_die_from_dwo): Update comment.
14071 (lookup_dwo_unit): Add dwo_name parameter.
14072 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14073 die_reader_func_ftype and data parameters.
14074 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14075 Remove die_reader_func_ftype and data parameters.
14076 (~cutu_reader): New; from init_cutu_and_read_dies.
14077 (cutu_reader::cutu_reader): Rename from
14078 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14079 and data parameters.
14080 (init_cutu_and_read_dies_simple): Remove.
14081 (struct process_psymtab_comp_unit_data): Remove.
14082 (process_psymtab_comp_unit_reader): Remove data parameter; add
14083 want_partial_unit and pretend_language parameters.
14084 (process_psymtab_comp_unit): Use cutu_reader.
14085 (build_type_psymtabs_reader): Remove data parameter.
14086 (build_type_psymtabs_1): Use cutu_reader.
14087 (process_skeletonless_type_unit): Likewise.
14088 (load_partial_comp_unit_reader): Remove.
14089 (load_partial_comp_unit): Use cutu_reader.
14090 (load_full_comp_unit_reader): Remove.
14091 (load_full_comp_unit): Use cutu_reader.
14092 (struct create_dwo_cu_data): Remove.
14093 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14094 dwo_unit parameters.
14095 (create_cus_hash_table): Use cutu_reader.
14096 (struct dwarf2_read_addr_index_data): Remove.
14097 (dwarf2_read_addr_index_reader): Remove.
14098 (dwarf2_read_addr_index): Use cutu_reader.
14099 (read_signatured_type_reader): Remove.
14100 (read_signatured_type): Use cutu_reader.
14101
45bbae5c
TT
141022020-01-19 Tom Tromey <tom@tromey.com>
14103
14104 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14105 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14106 (tui_wrefresh): Declare.
14107 * tui/tui-wingeneral.c (suppress_output): New global.
14108 (tui_suppress_output, ~tui_suppress_output): New constructor and
14109 destructor.
14110 (tui_wrefresh): New function.
14111 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14112 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14113 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14114 method.
14115 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14116 tui_wrefresh.
14117 (tui_data_window::no_refresh): New method.
14118 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14119 (tui_reg_command): Use tui_suppress_output
14120 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14121 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14122 method.
14123 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14124
4f13c1c0
TT
141252020-01-19 Tom Tromey <tom@tromey.com>
14126
14127 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14128 Handle case where symtab is null.
14129
fa47e446
SM
141302020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14131
14132 * linux-fork.c (one_fork_p): Simplify.
14133
26f42329
SM
141342020-01-17 Simon Marchi <simon.marchi@efficios.com>
14135
14136 * top.c (struct qt_args): Remove.
14137 (kill_or_detach): Change return type to void, replace `void *`
14138 parameter with a proper one.
14139 (print_inferior_quit_action): Likewise.
14140 (quit_confirm): Use range-based for loop to iterate over inferiors.
14141 (quit_force): Likewise.
14142
a9ac81b1
SM
141432020-01-17 Simon Marchi <simon.marchi@efficios.com>
14144
14145 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14146 `void *` parameter with proper parameters.
14147 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14148 (print_one_inferior): Change return type to void, replace `void *`
14149 parameter with proper parameters.
14150 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14151 inferiors.
14152 (get_other_inferior): Remove.
14153 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14154 inferiors.
14155
788eca49
SM
141562020-01-17 Simon Marchi <simon.marchi@efficios.com>
14157
14158 * mi/mi-interp.c (report_initial_inferior): Remove.
14159 (mi_interp::init): Use range-based for to iterate over inferiors.
14160
d9bc85b6
SM
141612020-01-17 Simon Marchi <simon.marchi@efficios.com>
14162
14163 * python/py-inferior.c (build_inferior_list): Remove.
14164 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14165
40c94099
CB
141662020-01-16 Christian Biesinger <cbiesinger@google.com>
14167
14168 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14169 (btrace_stitch_trace): Likewise.
14170 * charset.c (intermediate_encoding): Likewise (vaild).
14171 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14172 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14173 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14174
e0cdfe3c
HD
141752020-01-16 Hannes Domani <ssbssa@yahoo.de>
14176
14177 * windows-tdep.c (windows_get_tlb_type):
14178 Add rtl_user_process_parameters type.
14179
790f1718 141802020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 14181 Norbert Lange <nolange79@gmail.com>
790f1718
PA
14182
14183 PR build/24805
14184 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14185 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14186 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14187 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14188 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14189 (ps_plog): Redeclare exported functions with default visibility.
14190
3112ed97
NA
141912020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14192
14193 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14194 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14195
8dc3273e
SM
141962020-01-15 Simon Marchi <simon.marchi@efficios.com>
14197
14198 * infcmd.c (post_create_inferior): Use get_thread_regcache
14199 instead of get_current_regcache.
14200
ff47f4f0
TT
142012020-01-14 Tom Tromey <tom@tromey.com>
14202
14203 PR symtab/12535:
14204 * python/python.c (gdbpy_decode_line): Treat empty string the same
14205 as no argument.
14206
975f45b7
TT
142072020-01-14 Tom Tromey <tom@tromey.com>
14208
14209 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14210
25e57356
TT
142112020-01-14 Tom Tromey <tom@tromey.com>
14212
14213 * nat/linux-btrace.c: Don't include <config.h>.
14214 * nat/linux-ptrace.c: Don't include <config.h>.
14215 * nat/x86-linux-dregs.c: Don't include <config.h>.
14216
05ea2a05
TT
142172020-01-14 Tom Tromey <tom@tromey.com>
14218
14219 * configure: Rebuild.
14220 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14221
01027315
TT
142222020-01-14 Tom Tromey <tom@tromey.com>
14223
14224 * nat/x86-linux-dregs.c: Include configh.h.
14225 * nat/linux-ptrace.c: Include configh.h.
14226 * nat/linux-btrace.c: Include configh.h.
14227 * defs.h: Include config.h, bfd.h.
14228 * configure.ac: Don't source common.host.
14229 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14230 * configure: Rebuild.
14231 * acinclude.m4: Update path.
14232 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14233 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14234 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14235 (CLIBS): Add LIBSUPPORT.
14236 (CDEPS): Likewise.
14237 (COMMON_SFILES): Remove gdbsupport files.
14238 (HFILES_NO_SRCDIR): Likewise.
14239 (stamp-version): Update path to create-version.sh.
14240 (ALLDEPFILES): Remove gdbsupport files.
14241
b2ceabe8
TT
142422020-01-14 Tom Tromey <tom@tromey.com>
14243
14244 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14245 USE_WIN32API when needed.
14246 * configure.ac (USE_WIN32API): Don't define.
14247 (WIN32LIBS): Use WIN32APILIBS.
14248 * configure: Rebuild.
14249
25c51f71
TT
142502020-01-14 Tom Tromey <tom@tromey.com>
14251
14252 * configure: Rebuild.
14253 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14254
717c684d
BE
142552020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14256
14257 * skip.c (skip_function_command): Make skip w/o arguments use the
14258 name of the inlined function if pc is inside any inlined function.
14259
7da6a5b9
LM
142602020-01-14 Luis Machado <luis.machado@linaro.org>
14261
14262 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14263 * infrun.c (resume_1): Likewise.
14264 (handle_inferior_event): Remove stale comment.
14265 * linux-nat.c (linux_nat_target::resume): Update comments.
14266 (save_stop_reason): Likewise.
14267 (linux_nat_filter_event): Likewise.
14268 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14269
44e4c775
AB
142702020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14271
14272 * elfread.c (record_minimal_symbol): Set section index to 0 for
14273 non-allocatable sections.
14274
18a8505e
AT
14275
142762020-01-13 Ali Tamur <tamur@google.com>
14277
14278 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14279 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14280 to gdb::optional. Update comments.
14281 (dwo_file): Update comments.
14282 (read_attribute): Update API to take an additional out parameter,
14283 need_reprocess. This is used to mark attributes that need other
14284 attributes (e.g. str_offsets_base) for correct computation which may not
14285 have been read yet.
14286 (read_attribute_reprocess): New function declaration.
14287 (read_addr_index): Likewise.
14288 (read_dwo_str_index): Likewise.
14289 (read_stub_str_index): Likewise.
14290 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14291 (lookup_addr_base): New function definition.
14292 (lookup_ranges_base): Likewise.
14293 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14294 lookup_ranges_base.
14295 (init_cutu_and_read_dies): Update comments.
14296 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14297 unit. This is used to inherit parent's str_offsets_base and addr_base.
14298 Update comments.
14299 (init_cutu_and_read_dies_simple): Reflect API changes.
14300 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14301 (create_cus_hash_table): Change API to take parent compile unit.
14302 Reflect API changes.
14303 (open_and_init_dwo_file): Reflect API changes.
14304 (dwarf2_get_pc_bounds): Update comments.
14305 (dwarf2_record_block_ranges): Likewise.
14306 (read_full_die_1): Change implementation to reprocess attributes that
14307 need str_offsets_base and addr_base.
14308 (partial_die_info::read): Likewise.
14309 (read_attribute_reprocess): New function definition.
14310 (read_attribute_value): Change API to take an additional out parameter,
14311 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14312 when a non-dwo compile unit has index based attributes.
14313 (read_attribute): Reflect API changes.
14314 (read_addr_index_1): Reflect API changes. Update comments.
14315 (dwarf2_read_addr_index_data): Reflect API changes.
14316 (dwarf2_read_addr_index): Likewise.
14317 (read_str_index): Change API and implementation. This becomes a helper
14318 to be used by the new string index related methods. Update error
14319 message and comments.
14320 (read_dwo_str_index): New function definition.
14321 (read_stub_str_index): Likewise.
14322 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14323 * symfile.h (dwarf2_debug_sections): Likewise.
14324 * xcoffread.c (dwarf2_debug_sections): Likewise.
14325
0cac9354
SM
143262020-01-13 Simon Marchi <simon.marchi@efficios.com>
14327
14328 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14329 core_reg_sect type to gdb_byte *.
14330 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14331 * cris-tdep.c (fetch_core_registers): Likewise.
14332 * corelow.c (core_target::get_core_register_section): Change
14333 type of `contents` to gdb::byte_vector.
14334
9a6d629c
AB
143352020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14336
14337 * tui/tui-wingeneral.c (box_win): Position the title in the center
14338 of the border.
14339
d8b2f9e3
SM
143402020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14341
14342 * corelow.c (core_target::get_core_register_section): Use
14343 std::vector instead of alloca.
14344
bb564c58
SM
143452020-01-13 Simon Marchi <simon.marchi@efficios.com>
14346
14347 * warning.m4: Add -Wmissing-declarations to build_warnings.
14348 * configure: Re-generate.
14349
6b366111
SM
143502020-01-13 Simon Marchi <simon.marchi@efficios.com>
14351
14352 * python/python.c (init__gdb_module): Add declaration.
14353
6c265988
SM
143542020-01-13 Simon Marchi <simon.marchi@efficios.com>
14355
14356 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14357 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14358 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14359 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14360 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14361 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14362 * ada-exp.y (_initialize_ada_exp): Add declaration.
14363 * ada-lang.c (_initialize_ada_language): Add declaration.
14364 * ada-tasks.c (_initialize_tasks): Add declaration.
14365 * agent.c (_initialize_agent): Add declaration.
14366 * aix-thread.c (_initialize_aix_thread): Add declaration.
14367 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14368 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14369 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14370 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14371 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14372 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14373 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14374 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14375 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14376 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14377 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14378 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14379 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14380 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14381 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14382 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14383 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14384 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14385 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14386 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14387 * annotate.c (_initialize_annotate): Add declaration.
14388 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14389 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14390 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14391 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14392 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14393 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14394 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14395 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14396 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14397 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14398 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14399 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14400 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14401 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14402 * auto-load.c (_initialize_auto_load): Add declaration.
14403 * auxv.c (_initialize_auxv): Add declaration.
14404 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14405 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14406 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14407 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14408 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14409 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14410 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14411 * breakpoint.c (_initialize_breakpoint): Add declaration.
14412 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14413 * btrace.c (_initialize_btrace): Add declaration.
14414 * charset.c (_initialize_charset): Add declaration.
14415 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14416 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14417 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14418 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14419 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14420 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14421 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14422 * coffread.c (_initialize_coffread): Add declaration.
14423 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14424 * compile/compile.c (_initialize_compile): Add declaration.
14425 * complaints.c (_initialize_complaints): Add declaration.
14426 * completer.c (_initialize_completer): Add declaration.
14427 * copying.c (_initialize_copying): Add declaration.
14428 * corefile.c (_initialize_core): Add declaration.
14429 * corelow.c (_initialize_corelow): Add declaration.
14430 * cp-abi.c (_initialize_cp_abi): Add declaration.
14431 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14432 * cp-support.c (_initialize_cp_support): Add declaration.
14433 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14434 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14435 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14436 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14437 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14438 * ctfread.c (_initialize_ctfread): Add declaration.
14439 * d-lang.c (_initialize_d_language): Add declaration.
14440 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14441 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14442 * dbxread.c (_initialize_dbxread): Add declaration.
14443 * dcache.c (_initialize_dcache): Add declaration.
14444 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14445 * disasm.c (_initialize_disasm): Add declaration.
14446 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14447 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14448 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14449 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14450 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14451 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14452 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14453 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14454 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14455 * elfread.c (_initialize_elfread): Add declaration.
14456 * exec.c (_initialize_exec): Add declaration.
14457 * extension.c (_initialize_extension): Add declaration.
14458 * f-lang.c (_initialize_f_language): Add declaration.
14459 * f-valprint.c (_initialize_f_valprint): Add declaration.
14460 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14461 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14462 * filesystem.c (_initialize_filesystem): Add declaration.
14463 * findcmd.c (_initialize_mem_search): Add declaration.
14464 * findvar.c (_initialize_findvar): Add declaration.
14465 * fork-child.c (_initialize_fork_child): Add declaration.
14466 * frame-base.c (_initialize_frame_base): Add declaration.
14467 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14468 * frame.c (_initialize_frame): Add declaration.
14469 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14470 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14471 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14472 * gcore.c (_initialize_gcore): Add declaration.
14473 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14474 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14475 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14476 * gdbarch.c (_initialize_gdbarch): Add declaration.
14477 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14478 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14479 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14480 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14481 * go-lang.c (_initialize_go_language): Add declaration.
14482 * go32-nat.c (_initialize_go32_nat): Add declaration.
14483 * guile/guile.c (_initialize_guile): Add declaration.
14484 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14485 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14486 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14487 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14488 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14489 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14490 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14491 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14492 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14493 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14494 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14495 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14496 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14497 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14498 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14499 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14500 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14501 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14502 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14503 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14504 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14505 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14506 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14507 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14508 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14509 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14510 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14511 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14512 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14513 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14514 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14515 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14516 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14517 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14518 * infcall.c (_initialize_infcall): Add declaration.
14519 * infcmd.c (_initialize_infcmd): Add declaration.
14520 * inflow.c (_initialize_inflow): Add declaration.
14521 * infrun.c (_initialize_infrun): Add declaration.
14522 * interps.c (_initialize_interpreter): Add declaration.
14523 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14524 * jit.c (_initialize_jit): Add declaration.
14525 * language.c (_initialize_language): Add declaration.
14526 * linux-fork.c (_initialize_linux_fork): Add declaration.
14527 * linux-nat.c (_initialize_linux_nat): Add declaration.
14528 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14529 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14530 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14531 * m2-lang.c (_initialize_m2_language): Add declaration.
14532 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14533 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14534 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14535 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14536 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14537 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14538 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14539 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14540 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14541 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14542 * machoread.c (_initialize_machoread): Add declaration.
14543 * macrocmd.c (_initialize_macrocmd): Add declaration.
14544 * macroscope.c (_initialize_macroscope): Add declaration.
14545 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14546 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14547 * maint.c (_initialize_maint_cmds): Add declaration.
14548 * mdebugread.c (_initialize_mdebugread): Add declaration.
14549 * memattr.c (_initialize_mem): Add declaration.
14550 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14551 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14552 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14553 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14554 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14555 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14556 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14557 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14558 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14559 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14560 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14561 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14562 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14563 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14564 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14565 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14566 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14567 * mipsread.c (_initialize_mipsread): Add declaration.
14568 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14569 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14570 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14571 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14572 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14573 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14574 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14575 * nto-procfs.c (_initialize_procfs): Add declaration.
14576 * objc-lang.c (_initialize_objc_language): Add declaration.
14577 * observable.c (_initialize_observer): Add declaration.
14578 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14579 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14580 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14581 * osabi.c (_initialize_gdb_osabi): Add declaration.
14582 * osdata.c (_initialize_osdata): Add declaration.
14583 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14584 * parse.c (_initialize_parse): Add declaration.
14585 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14586 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14587 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14588 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14589 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14590 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14591 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14592 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14593 * printcmd.c (_initialize_printcmd): Add declaration.
14594 * probe.c (_initialize_probe): Add declaration.
14595 * proc-api.c (_initialize_proc_api): Add declaration.
14596 * proc-events.c (_initialize_proc_events): Add declaration.
14597 * proc-service.c (_initialize_proc_service): Add declaration.
14598 * procfs.c (_initialize_procfs): Add declaration.
14599 * producer.c (_initialize_producer): Add declaration.
14600 * psymtab.c (_initialize_psymtab): Add declaration.
14601 * python/python.c (_initialize_python): Add declaration.
14602 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14603 * record-btrace.c (_initialize_record_btrace): Add declaration.
14604 * record-full.c (_initialize_record_full): Add declaration.
14605 * record.c (_initialize_record): Add declaration.
14606 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14607 * regcache.c (_initialize_regcache): Add declaration.
14608 * reggroups.c (_initialize_reggroup): Add declaration.
14609 * remote-notif.c (_initialize_notif): Add declaration.
14610 * remote-sim.c (_initialize_remote_sim): Add declaration.
14611 * remote.c (_initialize_remote): Add declaration.
14612 * reverse.c (_initialize_reverse): Add declaration.
14613 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14614 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14615 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14616 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14617 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14618 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14619 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14620 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14621 Add declaration.
14622 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14623 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14624 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14625 * rust-exp.y (_initialize_rust_exp): Add declaration.
14626 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14627 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14628 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14629 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14630 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14631 * score-tdep.c (_initialize_score_tdep): Add declaration.
14632 * ser-go32.c (_initialize_ser_dos): Add declaration.
14633 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14634 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14635 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14636 * ser-uds.c (_initialize_ser_socket): Add declaration.
14637 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14638 * serial.c (_initialize_serial): Add declaration.
14639 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14640 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14641 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14642 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14643 * skip.c (_initialize_step_skip): Add declaration.
14644 * sol-thread.c (_initialize_sol_thread): Add declaration.
14645 * solib-aix.c (_initialize_solib_aix): Add declaration.
14646 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14647 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14648 * solib-frv.c (_initialize_frv_solib): Add declaration.
14649 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14650 * solib-target.c (_initialize_solib_target): Add declaration.
14651 * solib.c (_initialize_solib): Add declaration.
14652 * source-cache.c (_initialize_source_cache): Add declaration.
14653 * source.c (_initialize_source): Add declaration.
14654 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14655 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14656 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14657 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14658 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14659 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14660 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14661 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14662 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14663 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14664 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14665 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14666 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14667 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14668 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14669 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14670 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14671 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14672 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14673 * stabsread.c (_initialize_stabsread): Add declaration.
14674 * stack.c (_initialize_stack): Add declaration.
14675 * stap-probe.c (_initialize_stap_probe): Add declaration.
14676 * std-regs.c (_initialize_frame_reg): Add declaration.
14677 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14678 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14679 * symfile.c (_initialize_symfile): Add declaration.
14680 * symmisc.c (_initialize_symmisc): Add declaration.
14681 * symtab.c (_initialize_symtab): Add declaration.
14682 * target.c (_initialize_target): Add declaration.
14683 * target-connection.c (_initialize_target_connection): Add
14684 declaration.
14685 * target-dcache.c (_initialize_target_dcache): Add declaration.
14686 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14687 * thread.c (_initialize_thread): Add declaration.
14688 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14689 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14690 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14691 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14692 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14693 * tracectf.c (_initialize_ctf): Add declaration.
14694 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14695 * tracefile.c (_initialize_tracefile): Add declaration.
14696 * tracepoint.c (_initialize_tracepoint): Add declaration.
14697 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14698 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14699 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14700 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14701 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14702 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14703 * tui/tui.c (_initialize_tui): Add declaration.
14704 * typeprint.c (_initialize_typeprint): Add declaration.
14705 * ui-style.c (_initialize_ui_style): Add declaration.
14706 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14707 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14708 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14709 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14710 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14711 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14712 * unittests/filtered_iterator-selftests.c
14713 (_initialize_filtered_iterator_selftests): Add declaration.
14714 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14715 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14716 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14717 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14718 * unittests/main-thread-selftests.c
14719 (_initialize_main_thread_selftests): Add declaration.
14720 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14721 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14722 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14723 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14724 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14725 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14726 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14727 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14728 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14729 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14730 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14731 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14732 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14733 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14734 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14735 declaration.
14736 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14737 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14738 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14739 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14740 * user-regs.c (_initialize_user_regs): Add declaration.
14741 * utils.c (_initialize_utils): Add declaration.
14742 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14743 * valops.c (_initialize_valops): Add declaration.
14744 * valprint.c (_initialize_valprint): Add declaration.
14745 * value.c (_initialize_values): Add declaration.
14746 * varobj.c (_initialize_varobj): Add declaration.
14747 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14748 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14749 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14750 * windows-nat.c (_initialize_windows_nat): Add declaration.
14751 (_initialize_check_for_gdb_ini): Add declaration.
14752 (_initialize_loadable): Add declaration.
14753 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14754 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14755 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14756 * xcoffread.c (_initialize_xcoffread): Add declaration.
14757 * xml-support.c (_initialize_xml_support): Add declaration.
14758 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14759 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14760 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14761 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14762
e2de1eec
SM
147632020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14764
14765 * regformats/regdat.sh: Generate declaration for init function.
14766
e0037b4c
SM
147672020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14768
14769 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14770 up.
14771 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14772 close_one_inferior>: New methods.
14773 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14774 pass down target to find_inferior_pid.
14775 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14776 Pass down target to find_inferior_ptid.
14777 (gdbsim_target::create_inferior): Pass down target to
14778 add_thread_silent.
14779 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14780 target down to find_inferior_ptid and switch_to_thread.
14781 (gdbsim_target::close): Update to call close_one_inferior.
14782 (struct resume_data): Remove.
14783 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14784 directly, rather than through a void pointer.
14785 (gdbsim_target::resume): Update to call resume_one_inferior.
14786
58920b5b
SM
147872020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14788
14789 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14790
4ec89149
PA
147912020-01-12 Pedro Alves <palves@redhat.com>
14792
14793 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14794 directly for the current inferior instead of
14795 discard_all_inferiors.
14796 (discard_all_inferiors): Delete.
14797
7c392d1d
TT
147982020-01-11 Tom Tromey <tom@tromey.com>
14799
14800 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14801 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14802 deprecated_safe_get_selected_frame.
14803
d9ebdab7
TBA
148042020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14805
14806 * inferior.c (print_inferior): Switch inferior before printing it.
14807
f3c469b9
PA
148082020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14809 Pedro Alves <palves@redhat.com>
14810
14811 * progspace-and-thread.c (switch_to_program_space_and_thread):
14812 Assert there's an inferior for PSPACE. Use
14813 switch_to_inferior_no_thread to switch the inferior too.
14814 * progspace.c (program_space::~program_space): Call
14815 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14816 (program_space::free_all_objfiles): Don't call clear_symtab_users
14817 here.
14818 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14819
65c574f6
PA
148202020-01-10 Pedro Alves <palves@redhat.com>
14821
14822 * NEWS: Mention multi-target debugging, "info connections", and
14823 "add-inferior -no-connection".
14824
2f4fcf00
PA
148252020-01-10 Pedro Alves <palves@redhat.com>
14826
14827 * infrun.c: Include "target-connection.h".
14828 (check_multi_target_resumption): New.
14829 (proceed): Call it.
14830 * target-connection.c (make_target_connection_string): Make
14831 extern.
14832 * target-connection.h (make_target_connection_string): Declare.
14833
121b3efd
PA
148342020-01-10 Pedro Alves <palves@redhat.com>
14835
14836 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14837 * inferior.c (uiout_field_connection): New function.
14838 (print_inferior): Add new "connection-id" column.
14839 (add_inferior_command): Show connection number/string of added
14840 inferior.
14841 * process-stratum-target.h
14842 (process_stratum_target::connection_string): New virtual method.
14843 (process_stratum_target::connection_number): New field.
14844 * remote.c (remote_target::connection_string): New override.
14845 * target-connection.c: New file.
14846 * target-connection.h: New file.
14847 * target.c (decref_target): Remove process_stratum targets from
14848 the connection list.
14849 (target_stack::push): Add process_stratum targets to the
14850 connection list.
14851
4f837581
PA
148522020-01-10 Pedro Alves <palves@redhat.com>
14853
14854 Revert:
14855 2016-04-12 Pedro Alves <palves@redhat.com>
14856 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14857 Remove references to name.
14858 * serial.h (struct serial) <name>: Delete.
14859
f4ec508e
PA
148602020-01-10 Pedro Alves <palves@redhat.com>
14861
14862 * gdbarch-selftests.c (register_to_value_test): Remove "target
14863 already pushed" check.
14864
5b6d1e4f
PA
148652020-01-10 Pedro Alves <palves@redhat.com>
14866 John Baldwin <jhb@FreeBSD.org>
14867
14868 * aarch64-linux-nat.c
14869 (aarch64_linux_nat_target::thread_architecture): Adjust.
14870 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14871 (task_command_1): Likewise.
14872 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14873 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14874 (aix_thread_target::store_registers)
14875 (aix_thread_target::thread_alive): Adjust.
14876 * amd64-fbsd-tdep.c: Include "inferior.h".
14877 (amd64fbsd_get_thread_local_address): Pass down target.
14878 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14879 thread's gdbarch instead of target_gdbarch.
14880 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14881 get_last_target_status.
14882 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14883 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14884 inferiors.
14885 (update_inserted_breakpoint_locations): Skip if inferiors with no
14886 execution.
14887 (update_global_location_list): When handling moribund locations,
14888 find representative inferior for location's pspace, and use thread
14889 count of its process_stratum target.
14890 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14891 * bsd-uthread.c (bsd_uthread_target::wait): Use
14892 as_process_stratum_target and adjust thread_change_ptid and
14893 add_thread calls.
14894 (bsd_uthread_target::update_thread_list): Use
14895 as_process_stratum_target and adjust find_thread_ptid,
14896 thread_change_ptid and add_thread calls.
14897 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14898 find_thread_ptid call.
14899 * corelow.c (add_to_thread_list): Adjust add_thread call.
14900 (core_target_open): Adjust add_thread_silent and thread_count
14901 calls.
14902 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14903 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14904 * event-top.c (async_disconnect): Pop targets from all inferiors.
14905 * exec.c (add_target_sections): Push exec target on all inferiors
14906 sharing the program space.
14907 (remove_target_sections): Remove the exec target from all
14908 inferiors sharing the program space.
14909 (exec_on_vfork): New.
14910 * exec.h (exec_on_vfork): Declare.
14911 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14912 Pass it down.
14913 (fbsd_nat_target::update_thread_list): Adjust.
14914 (fbsd_nat_target::resume): Adjust.
14915 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14916 down.
14917 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14918 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14919 get_thread_arch_regcache call.
14920 * fork-child.c (gdb_startup_inferior): Pass target down to
14921 startup_inferior and set_executing.
14922 * gdbthread.h (struct process_stratum_target): Forward declare.
14923 (add_thread, add_thread_silent, add_thread_with_info)
14924 (in_thread_list): Add process_stratum_target parameter.
14925 (find_thread_ptid(inferior*, ptid_t)): New overload.
14926 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14927 parameter.
14928 (all_threads()): Delete overload.
14929 (all_threads, all_non_exited_threads): Add process_stratum_target
14930 parameter.
14931 (all_threads_safe): Use brace initialization.
14932 (thread_count): Add process_stratum_target parameter.
14933 (set_resumed, set_running, set_stop_requested, set_executing)
14934 (threads_are_executing, finish_thread_state): Add
14935 process_stratum_target parameter.
14936 (switch_to_thread): Use is_current_thread.
14937 * i386-fbsd-tdep.c: Include "inferior.h".
14938 (i386fbsd_get_thread_local_address): Pass down target.
14939 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14940 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14941 have_inferiors check.
14942 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14943 (inf_ptrace_target::attach): Adjust.
14944 * infcall.c (run_inferior_call): Adjust.
14945 * infcmd.c (run_command_1): Pass target to
14946 scoped_finish_thread_state.
14947 (proceed_thread_callback): Skip inferiors with no execution.
14948 (continue_command): Rename 'all_threads' local to avoid hiding
14949 'all_threads' function. Adjust get_last_target_status call.
14950 (prepare_one_step): Adjust set_running call.
14951 (signal_command): Use user_visible_resume_target. Compare thread
14952 pointers instead of inferior_ptid.
14953 (info_program_command): Adjust to pass down target.
14954 (attach_command): Mark target's 'thread_executing' flag.
14955 (stop_current_target_threads_ns): New, factored out from ...
14956 (interrupt_target_1): ... this. Switch inferior before making
14957 target calls.
14958 * inferior-iter.h
14959 (struct all_inferiors_iterator, struct all_inferiors_range)
14960 (struct all_inferiors_safe_range)
14961 (struct all_non_exited_inferiors_range): Filter on
14962 process_stratum_target too. Remove explicit.
14963 * inferior.c (inferior::inferior): Push dummy target on target
14964 stack.
14965 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14966 Add process_stratum_target parameter, and pass it down.
14967 (have_live_inferiors): Adjust.
14968 (switch_to_inferior_and_push_target): New.
14969 (add_inferior_command, clone_inferior_command): Handle
14970 "-no-connection" parameter. Use
14971 switch_to_inferior_and_push_target.
14972 (_initialize_inferior): Mention "-no-connection" option in
14973 the help of "add-inferior" and "clone-inferior" commands.
14974 * inferior.h: Include "process-stratum-target.h".
14975 (interrupt_target_1): Use bool.
14976 (struct inferior) <push_target, unpush_target, target_is_pushed,
14977 find_target_beneath, top_target, process_target, target_at,
14978 m_stack>: New.
14979 (discard_all_inferiors): Delete.
14980 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14981 (all_inferiors, all_non_exited_inferiors): Add
14982 process_stratum_target parameter.
14983 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14984 (target_last_proc_target): New global.
14985 (follow_fork_inferior): Push target on new inferior. Pass target
14986 to add_thread_silent. Call exec_on_vfork. Handle target's
14987 reference count.
14988 (follow_fork): Adjust get_last_target_status call. Also consider
14989 target.
14990 (follow_exec): Push target on new inferior.
14991 (struct execution_control_state) <target>: New field.
14992 (user_visible_resume_target): New.
14993 (do_target_resume): Call target_async.
14994 (resume_1): Set target's threads_executing flag. Consider resume
14995 target.
14996 (commit_resume_all_targets): New.
14997 (proceed): Also consider resume target. Skip threads of inferiors
14998 with no execution. Commit resumtion in all targets.
14999 (start_remote): Pass current inferior to wait_for_inferior.
15000 (infrun_thread_stop_requested): Consider target as well. Pass
15001 thread_info pointer to clear_inline_frame_state instead of ptid.
15002 (infrun_thread_thread_exit): Consider target as well.
15003 (random_pending_event_thread): New inferior parameter. Use it.
15004 (do_target_wait): Rename to ...
15005 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15006 down.
15007 (threads_are_resumed_pending_p, do_target_wait): New.
15008 (prepare_for_detach): Adjust calls.
15009 (wait_for_inferior): New inferior parameter. Handle it. Use
15010 do_target_wait_1 instead of do_target_wait.
15011 (fetch_inferior_event): Adjust. Switch to representative
15012 inferior. Pass target down.
15013 (set_last_target_status): Add process_stratum_target parameter.
15014 Save target in global.
15015 (get_last_target_status): Add process_stratum_target parameter and
15016 handle it.
15017 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15018 (context_switch): Check inferior_ptid == null_ptid before calling
15019 inferior_thread().
15020 (get_inferior_stop_soon): Pass down target.
15021 (wait_one): Rename to ...
15022 (poll_one_curr_target): ... this.
15023 (struct wait_one_event): New.
15024 (wait_one): New.
15025 (stop_all_threads): Adjust.
15026 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15027 event's target.
15028 (switch_back_to_stepped_thread): Also consider target.
15029 (print_stop_event): Update.
15030 (normal_stop): Update. Also consider the resume target.
15031 * infrun.h (wait_for_inferior): Remove declaration.
15032 (user_visible_resume_target): New declaration.
15033 (get_last_target_status, set_last_target_status): New
15034 process_stratum_target parameter.
15035 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15036 process_stratum_target parameter, and use it.
15037 (clear_inline_frame_state (thread_info*)): New.
15038 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15039 process_stratum_target parameter.
15040 (clear_inline_frame_state (thread_info*)): Declare.
15041 * linux-fork.c (delete_checkpoint_command): Pass target down to
15042 find_thread_ptid.
15043 (checkpoint_command): Adjust.
15044 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15045 instead of just tweaking inferior_ptid.
15046 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15047 (exit_lwp): Pass target down to find_thread_ptid.
15048 (attach_proc_task_lwp_callback): Pass target down to
15049 add_thread/set_running/set_executing.
15050 (linux_nat_target::attach): Pass target down to
15051 thread_change_ptid.
15052 (get_detach_signal): Pass target down to find_thread_ptid.
15053 Consider last target status's target.
15054 (linux_resume_one_lwp_throw, resume_lwp)
15055 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15056 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15057 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15058 (linux_nat_target::async_wait_fd): New.
15059 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15060 target down.
15061 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15062 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15063 * linux-thread-db.c (struct thread_db_info::process_target): New
15064 field.
15065 (add_thread_db_info): Save target.
15066 (get_thread_db_info): New process_stratum_target parameter. Also
15067 match target.
15068 (delete_thread_db_info): New process_stratum_target parameter.
15069 Also match target.
15070 (thread_from_lwp): Adjust to pass down target.
15071 (thread_db_notice_clone): Pass down target.
15072 (check_thread_db_callback): Pass down target.
15073 (try_thread_db_load_1): Always push the thread_db target.
15074 (try_thread_db_load, record_thread): Pass target down.
15075 (thread_db_target::detach): Pass target down. Always unpush the
15076 thread_db target.
15077 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15078 target down. Always unpush the thread_db target.
15079 (find_new_threads_callback, thread_db_find_new_threads_2)
15080 (thread_db_target::update_thread_list): Pass target down.
15081 (thread_db_target::pid_to_str): Pass current inferior down.
15082 (thread_db_target::get_thread_local_address): Pass target down.
15083 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15084 target down.
15085 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15086 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15087 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15088 (procfs_init_inferior): Rename to ...
15089 (procfs_target::procfs_init_inferior): ... this and adjust.
15090 (procfs_target::create_inferior, procfs_notice_thread)
15091 (procfs_do_thread_registers): Adjust.
15092 * ppc-fbsd-tdep.c: Include "inferior.h".
15093 (ppcfbsd_get_thread_local_address): Pass down target.
15094 * proc-service.c (ps_xfer_memory): Switch current inferior and
15095 program space as well.
15096 (get_ps_regcache): Pass target down.
15097 * process-stratum-target.c
15098 (process_stratum_target::thread_address_space)
15099 (process_stratum_target::thread_architecture): Pass target down.
15100 * process-stratum-target.h
15101 (process_stratum_target::threads_executing): New field.
15102 (as_process_stratum_target): New.
15103 * ravenscar-thread.c
15104 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15105 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15106 down.
15107 * record-btrace.c (record_btrace_target::info_record): Adjust.
15108 (record_btrace_target::record_method)
15109 (record_btrace_target::record_is_replaying)
15110 (record_btrace_target::fetch_registers)
15111 (get_thread_current_frame_id, record_btrace_target::resume)
15112 (record_btrace_target::wait, record_btrace_target::stop): Pass
15113 target down.
15114 * record-full.c (record_full_wait_1): Switch to event thread.
15115 Pass target down.
15116 * regcache.c (regcache::regcache)
15117 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15118 process_stratum_target parameter and handle it.
15119 (current_thread_target): New global.
15120 (get_thread_regcache): Add process_stratum_target parameter and
15121 handle it. Switch inferior before calling target method.
15122 (get_thread_regcache): Pass target down.
15123 (get_thread_regcache_for_ptid): Pass target down.
15124 (registers_changed_ptid): Add process_stratum_target parameter and
15125 handle it.
15126 (registers_changed_thread, registers_changed): Pass target down.
15127 (test_get_thread_arch_aspace_regcache): New.
15128 (current_regcache_test): Define a couple local test_target_ops
15129 instances and use them for testing.
15130 (readwrite_regcache): Pass process_stratum_target parameter.
15131 (cooked_read_test, cooked_write_test): Pass mock_target down.
15132 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15133 (get_thread_arch_aspace_regcache): Add process_stratum_target
15134 parameter.
15135 (regcache::target): New method.
15136 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15137 (regcache::registers_changed_ptid): Add process_stratum_target
15138 parameter.
15139 (regcache::m_target): New field.
15140 (registers_changed_ptid): Add process_stratum_target parameter.
15141 * remote.c (remote_state::supports_vCont_probed): New field.
15142 (remote_target::async_wait_fd): New method.
15143 (remote_unpush_and_throw): Add remote_target parameter.
15144 (get_current_remote_target): Adjust.
15145 (remote_target::remote_add_inferior): Push target.
15146 (remote_target::remote_add_thread)
15147 (remote_target::remote_notice_new_inferior)
15148 (get_remote_thread_info): Pass target down.
15149 (remote_target::update_thread_list): Skip threads of inferiors
15150 bound to other targets. (remote_target::close): Don't discard
15151 inferiors. (remote_target::add_current_inferior_and_thread)
15152 (remote_target::process_initial_stop_replies)
15153 (remote_target::start_remote)
15154 (remote_target::remote_serial_quit_handler): Pass down target.
15155 (remote_target::remote_unpush_target): New remote_target
15156 parameter. Unpush the target from all inferiors.
15157 (remote_target::remote_unpush_and_throw): New remote_target
15158 parameter. Pass it down.
15159 (remote_target::open_1): Check whether the current inferior has
15160 execution instead of checking whether any inferior is live. Pass
15161 target down.
15162 (remote_target::remote_detach_1): Pass down target. Use
15163 remote_unpush_target.
15164 (extended_remote_target::attach): Pass down target.
15165 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15166 (remote_target::append_resumption): Pass down target.
15167 (remote_target::append_pending_thread_resumptions)
15168 (remote_target::remote_resume_with_hc, remote_target::resume)
15169 (remote_target::commit_resume): Pass down target.
15170 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15171 (remote_target::interrupt_query)
15172 (remote_target::remove_new_fork_children)
15173 (remote_target::check_pending_events_prevent_wildcard_vcont)
15174 (remote_target::remote_parse_stop_reply)
15175 (remote_target::process_stop_reply): Pass down target.
15176 (first_remote_resumed_thread): New remote_target parameter. Pass
15177 it down.
15178 (remote_target::wait_as): Pass down target.
15179 (unpush_and_perror): New remote_target parameter. Pass it down.
15180 (remote_target::readchar, remote_target::remote_serial_write)
15181 (remote_target::getpkt_or_notif_sane_1)
15182 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15183 down target.
15184 (remote_target::mourn_inferior): Pass down target. Use
15185 remote_unpush_target.
15186 (remote_target::core_of_thread)
15187 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15188 (remote_target::pid_to_exec_file)
15189 (remote_target::thread_handle_to_thread_info): Pass down target.
15190 (remote_target::async_wait_fd): New.
15191 * riscv-fbsd-tdep.c: Include "inferior.h".
15192 (riscv_fbsd_get_thread_local_address): Pass down target.
15193 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15194 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15195 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15196 Adjust.
15197 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15198 * solib-svr4.c (enable_break): Pass down target.
15199 * spu-multiarch.c (parse_spufs_run): Pass down target.
15200 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15201 * target-delegates.c: Regenerate.
15202 * target.c (g_target_stack): Delete.
15203 (current_top_target): Return the current inferior's top target.
15204 (target_has_execution_1): Refer to the passed-in inferior's top
15205 target.
15206 (target_supports_terminal_ours): Check whether the initial
15207 inferior was already created.
15208 (decref_target): New.
15209 (target_stack::push): Incref/decref the target.
15210 (push_target, push_target, unpush_target): Adjust.
15211 (target_stack::unpush): Defref target.
15212 (target_is_pushed): Return bool. Adjust to refer to the current
15213 inferior's target stack.
15214 (dispose_inferior): Delete, and inline parts ...
15215 (target_preopen): ... here. Only dispose of the current inferior.
15216 (target_detach): Hold strong target reference while detaching.
15217 Pass target down.
15218 (target_thread_name): Add assertion.
15219 (target_resume): Pass down target.
15220 (target_ops::beneath, find_target_at): Adjust to refer to the
15221 current inferior's target stack.
15222 (get_dummy_target): New.
15223 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15224 has a thread running.
15225 (initialize_targets): Rename to ...
15226 (_initialize_target): ... this.
15227 * target.h: Include "gdbsupport/refcounted-object.h".
15228 (struct target_ops): Inherit refcounted_object.
15229 (target_ops::shortname, target_ops::longname): Make const.
15230 (target_ops::async_wait_fd): New method.
15231 (decref_target): Declare.
15232 (struct target_ops_ref_policy): New.
15233 (target_ops_ref): New typedef.
15234 (get_dummy_target): Declare function.
15235 (target_is_pushed): Return bool.
15236 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15237 (all_matching_threads_iterator::all_matching_threads_iterator):
15238 Handle filter target.
15239 * thread-iter.h (struct all_matching_threads_iterator, struct
15240 all_matching_threads_range, class all_non_exited_threads_range):
15241 Filter by target too. Remove explicit.
15242 * thread.c (threads_executing): Delete.
15243 (inferior_thread): Pass down current inferior.
15244 (clear_thread_inferior_resources): Pass down thread pointer
15245 instead of ptid_t.
15246 (add_thread_silent, add_thread_with_info, add_thread): Add
15247 process_stratum_target parameter. Use it for thread and inferior
15248 searches.
15249 (is_current_thread): New.
15250 (thread_info::deletable): Use it.
15251 (find_thread_ptid, thread_count, in_thread_list)
15252 (thread_change_ptid, set_resumed, set_running): New
15253 process_stratum_target parameter. Pass it down.
15254 (set_executing): New process_stratum_target parameter. Pass it
15255 down. Adjust reference to 'threads_executing'.
15256 (threads_are_executing): New process_stratum_target parameter.
15257 Adjust reference to 'threads_executing'.
15258 (set_stop_requested, finish_thread_state): New
15259 process_stratum_target parameter. Pass it down.
15260 (switch_to_thread): Also match inferior.
15261 (switch_to_thread): New process_stratum_target parameter. Pass it
15262 down.
15263 (update_threads_executing): Reimplement.
15264 * top.c (quit_force): Pop targets from all inferior.
15265 (gdb_init): Don't call initialize_targets.
15266 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15267 Declare.
15268 (windows_add_thread, windows_delete_thread): Adjust.
15269 (get_windows_debug_event): Rename to ...
15270 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15271 * tracefile-tfile.c (tfile_target_open): Pass down target.
15272 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15273 Forward declare.
15274 (switch_to_thread): Add process_stratum_target parameter.
15275 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15276 parameter. Use it.
15277 (mi_on_resume): Pass target down.
15278 * nat/fork-inferior.c (startup_inferior): Add
15279 process_stratum_target parameter. Pass it down.
15280 * nat/fork-inferior.h (startup_inferior): Add
15281 process_stratum_target parameter.
15282 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15283
75c6c844
PA
152842020-01-10 Pedro Alves <palves@redhat.com>
15285
15286 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15287 directly. Instead find the first thread in the thread list and
15288 use switch_to_thread.
15289
78f2c40a
PA
152902020-01-10 Pedro Alves <palves@redhat.com>
15291
15292 * remote.c (remote_target::remote_add_inferior): Don't bind a
15293 process to the current inferior if the current inferior is already
15294 bound to a process.
15295
e7af6c70
TBA
152962020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15297 Pedro Alves <palves@redhat.com>
15298
15299 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15300 If no process is specified, return null_ptid instead of
15301 inferior_ptid.
15302 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15303 TARGET_WAITKIND_SIGNALLED with no pid.
15304
31ba933e
PA
153052020-01-10 Pedro Alves <palves@redhat.com>
15306
15307 * remote.c (first_remote_resumed_thread): New.
15308 (remote_target::wait_as): Use it as default event_ptid instead of
15309 inferior_ptid.
15310
735fc2ca
PA
153112020-01-10 Pedro Alves <palves@redhat.com>
15312
15313 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15314
c17e02e1
PA
153152020-01-10 Pedro Alves <palves@redhat.com>
15316
15317 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15318 not -1.
15319
ab1ddbcf
PA
153202020-01-10 Pedro Alves <palves@redhat.com>
15321
15322 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15323 ptid to get_last_target_status.
15324 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15325 ptid to get_last_target_status.
15326 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15327 get_last_target_status.
15328 (info_program_command): Don't pass a target_waitstatus to
15329 get_last_target_status.
15330 * infrun.c (init_wait_for_inferior): Use
15331 nullify_last_target_wait_ptid.
15332 (get_last_target_status): Handle nullptr arguments.
15333 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15334 (print_stop_event): Don't pass a ptid to get_last_target_status.
15335 (normal_stop): Don't pass a ptid to get_last_target_status.
15336 * infrun.h (get_last_target_status, set_last_target_status): Move
15337 comments here and update.
15338 (nullify_last_target_wait_ptid): Declare.
15339 * linux-fork.c (fork_load_infrun_state): Remove local extern
15340 declaration of nullify_last_target_wait_ptid.
15341 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15342 to get_last_target_status.
15343
f3f8ece4
PA
153442020-01-10 Pedro Alves <palves@redhat.com>
15345
15346 * gdbthread.h (scoped_restore_current_thread)
15347 <dont_restore, restore, m_dont_restore>: Declare.
15348 * thread.c (thread_alive): Add assertion. Return bool.
15349 (switch_to_thread_if_alive): New.
15350 (prune_threads): Switch inferior/thread.
15351 (print_thread_info_1): Switch thread before calling target methods.
15352 (scoped_restore_current_thread::restore): New, factored out from
15353 ...
15354 (scoped_restore_current_thread::~scoped_restore_current_thread):
15355 ... this.
15356 (scoped_restore_current_thread::scoped_restore_current_thread):
15357 Add assertion.
15358 (thread_apply_all_command, thread_select): Use
15359 switch_to_thread_if_alive.
15360 * infrun.c (proceed, restart_threads, handle_signal_stop)
15361 (switch_back_to_stepped_thread): Switch current thread before
15362 calling target methods.
15363
db2d40f7
PA
153642020-01-10 Pedro Alves <palves@redhat.com>
15365
15366 * inferior.c (switch_to_inferior_no_thread): New function,
15367 factored out from ...
15368 (inferior_command): ... here.
15369 * inferior.h (switch_to_inferior_no_thread): Declare.
15370 * mi/mi-main.c (run_one_inferior): Use
15371 switch_to_inferior_no_thread.
15372
bd420a2d
PA
153732020-01-10 Pedro Alves <palves@redhat.com>
15374
15375 * infcmd.c (kill_command): Remove dead code.
15376
ddf5db90
PA
153772020-01-10 Pedro Alves <palves@redhat.com>
15378
15379 * remote.c (remote_target::mourn_inferior): No longer check
15380 whether the target is running.
15381
5018ce90
PA
153822020-01-10 Pedro Alves <palves@redhat.com>
15383
15384 * corelow.c (core_target::has_execution): Change parameter type to
15385 inferior pointer.
15386 * inferior.c (number_of_live_inferiors): Use
15387 inferior::has_execution instead of target_has_execution_1.
15388 * inferior.h (inferior::has_execution): New.
15389 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15390 inferior::has_execution instead of target_has_execution_1.
15391 * process-stratum-target.c
15392 (process_stratum_target::has_execution): Change parameter type to
15393 inferior pointer. Check the inferior's PID instead of
15394 inferior_ptid.
15395 * process-stratum-target.h
15396 (process_stratum_target::has_execution): Change parameter type to
15397 inferior pointer.
15398 * record-full.c (record_full_core_target::has_execution): Change
15399 parameter type to inferior pointer.
15400 * target.c (target_has_execution_1): Change parameter type to
15401 inferior pointer.
15402 (target_has_execution_current): Adjust.
15403 * target.h (target_ops::has_execution): Change parameter type to
15404 inferior pointer.
15405 (target_has_execution_1): Change parameter type to inferior
15406 pointer. Change return type to bool.
15407 * tracefile.h (tracefile_target::has_execution): Change parameter
15408 type to inferior pointer.
15409
74375d18
PA
154102020-01-10 Pedro Alves <palves@redhat.com>
15411
15412 * exceptions.c (print_flush): Remove current_top_target() check.
15413
acdf84a6
PA
154142020-01-10 Pedro Alves <palves@redhat.com>
15415
15416 * remote.c (show_remote_exec_file): Show the current inferior's
15417 exec-file instead of the command variable's value.
15418
ec506636
PA
154192020-01-10 Pedro Alves <palves@redhat.com>
15420
15421 * record-full.c (record_full_resume_ptid): New global.
15422 (record_full_target::resume): Set it.
15423 (record_full_wait_1): Use record_full_resume_ptid instead of
15424 inferior_ptid.
15425
873657b9
PA
154262020-01-10 Pedro Alves <palves@redhat.com>
15427
15428 * gdbthread.h (scoped_restore_current_thread)
15429 <dont_restore, restore, m_dont_restore>: Declare.
15430 * thread.c (thread_alive): Add assertion. Return bool.
15431 (switch_to_thread_if_alive): New.
15432 (prune_threads): Switch inferior/thread.
15433 (print_thread_info_1): Switch thread before calling target methods.
15434 (scoped_restore_current_thread::restore): New, factored out from
15435 ...
15436 (scoped_restore_current_thread::~scoped_restore_current_thread):
15437 ... this.
15438 (scoped_restore_current_thread::scoped_restore_current_thread):
15439 Add assertion.
15440 (thread_apply_all_command, thread_select): Use
15441 switch_to_thread_if_alive.
15442
7f0ae84c
GB
154432020-01-10 George Barrett <bob@bob131.so>
15444
15445 * stap-probe.c (stap_modify_semaphore): Don't check for null
15446 semaphores.
15447 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15448 for null semaphores.
15449
f5a7c406
AB
154502020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15451
15452 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15453 all source windows, and maintain horizontal scroll status while
15454 doing so.
15455
9ae6bf64
TT
154562020-01-09 Tom Tromey <tom@tromey.com>
15457
15458 PR tui/18932:
15459 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15460 update_source_window, not print_source_lines.
15461
b2efe70c
AB
154622020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15463
15464 * tui/tui.c (tui_enable): Register tui hooks after calling
15465 tui_display_main.
15466
5f23a082
CB
154672020-01-09 Christian Biesinger <cbiesinger@google.com>
15468
15469 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15470
3061113b
SM
154712020-01-08 Simon Marchi <simon.marchi@efficios.com>
15472
15473 * thread.c (print_thread_info_1): Fix indentation.
15474
57d75002
CB
154752020-01-09 Christian Biesinger <cbiesinger@google.com>
15476
15477 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15478 unique_xmalloc_ptr outside the if to always free the demangled name.
15479
6a053cb1
TT
154802020-01-08 Tom Tromey <tromey@adacore.com>
15481
15482 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15483 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15484 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15485 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15486 Remove.
15487 (section_offsets): New typedef.
15488 * symtab.c (fixup_section, get_msymbol_address): Update.
15489 * symmisc.c (dump_msymbols): Update.
15490 * symfile.h (relative_addr_info_to_section_offsets)
15491 (symfile_map_offsets_to_segments): Update.
15492 * symfile.c (build_section_addr_info_from_objfile)
15493 (init_objfile_sect_indices): Update.
15494 (struct place_section_arg): Change type of "offsets".
15495 (place_section): Update.
15496 (relative_addr_info_to_section_offsets): Change type of
15497 "section_offsets". Remove "num_sections" parameter.
15498 (default_symfile_offsets, syms_from_objfile_1)
15499 (set_objfile_default_section_offset): Update.
15500 (reread_symbols): No need to preserve section offsets by hand.
15501 (symfile_map_offsets_to_segments): Change type of "offsets".
15502 * stap-probe.c (relocate_address): Update.
15503 * stabsread.h (process_one_symbol): Update.
15504 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15505 (solib_target_relocate_section_addresses): Update.
15506 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15507 Update.
15508 * solib-frv.c (frv_relocate_main_executable): Update.
15509 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15510 * solib-aix.c (solib_aix_get_section_offsets): Change return
15511 type.
15512 (solib_aix_solib_create_inferior_hook): Update.
15513 * remote.c (remote_target::get_offsets): Update.
15514 * psymtab.c (find_pc_sect_psymtab): Update.
15515 * psympriv.h (struct partial_symbol) <address, text_low,
15516 text_high>: Update.
15517 * objfiles.h (obj_section_offset): Update.
15518 (struct objfile) <section_offsets>: Change type.
15519 <num_sections>: Remove.
15520 (objfile_relocate): Update.
15521 * objfiles.c (entry_point_address_query): Update
15522 (relocate_one_symbol): Change type of "section_offsets".
15523 (objfile_relocate1, objfile_relocate1): Change type of
15524 "new_offsets".
15525 (objfile_rebase1): Update.
15526 * mipsread.c (mipscoff_symfile_read): Update.
15527 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15528 parameter.
15529 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15530 (parse_external, psymtab_to_symtab_1): Update.
15531 * machoread.c (macho_symfile_offsets): Update.
15532 * ia64-tdep.c (ia64_find_unwind_table): Update.
15533 * hppa-tdep.c (read_unwind_info): Update.
15534 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15535 * dwarf2read.c (create_addrmap_from_index)
15536 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15537 (process_psymtab_comp_unit_reader, add_partial_symbol)
15538 (add_partial_subprogram, process_full_comp_unit)
15539 (read_file_scope, read_func_scope, read_lexical_block_scope)
15540 (read_call_site_scope, dwarf2_rnglists_process)
15541 (dwarf2_ranges_process, dwarf2_ranges_read)
15542 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15543 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15544 Update.
15545 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15546 Update.
15547 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15548 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15549 (process_one_symbol): Change type of "section_offsets".
15550 * ctfread.c (get_objfile_text_range): Update.
15551 * coffread.c (coff_symtab_read, enter_linenos)
15552 (process_coff_symbol): Update.
15553 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15554 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15555
456e800a
TT
155562020-01-08 Tom Tromey <tromey@adacore.com>
15557
15558 * dwarf2read.c (parse_macro_definition): Use std::string.
15559 (parse_macro_definition): Likewise.
15560
6dfa2fc2
TT
155612020-01-08 Tom Tromey <tromey@adacore.com>
15562
15563 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15564 (ATTR_ALLOC_CHUNK): Remove.
15565
421d1616
TT
155662020-01-08 Tom Tromey <tromey@adacore.com>
15567
15568 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15569
43816ebc
TT
155702020-01-08 Tom Tromey <tromey@adacore.com>
15571
15572 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15573 (dwarf2_compute_name, open_dwo_file): Likewise.
15574 (process_enumeration_scope): Use std::vector.
15575 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15576 (partial_die_info::fixup, dwarf2_start_subfile)
15577 (guess_full_die_structure_name, dwarf2_name): Likewise.
15578 (determine_prefix): Update.
15579 (guess_full_die_structure_name): Make return type const.
15580 (partial_die_full_name): Return unique_xmalloc_ptr.
15581 (DW_FIELD_ALLOC_CHUNK): Remove.
15582
4212d509
TT
155832020-01-07 Tom Tromey <tromey@adacore.com>
15584
15585 PR build/24937:
15586 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15587
06a6207a
JT
155882020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15589
15590 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15591
153d79c4
AB
155922020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15593
15594 * stack.c (print_frame_info): Move disassemble_next_line code
15595 inside source_print block.
15596
66182876
EZ
155972020-01-06 Eli Zaretskii <eliz@gnu.org>
15598
15599 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15600 gdb/signals.h, as we are now using native signal symbols.
15601
cbfa8581
SV
156022020-01-06 Shahab Vahedi <shahab@synopsys.com>
15603
15604 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15605 overflow by an early check of content vs threshold.
aac66a4c 15606 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15607 Likewise.
15608
3f602821
EZ
156092020-01-06 Eli Zaretskii <eliz@gnu.org>
15610
15611 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15612
a08c904d
JT
156132020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15614
15615 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15616 export table if no section contains it's RVA.
15617
89a65580
EZ
156182020-01-06 Eli Zaretskii <eliz@gnu.org>
15619
15620 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15621
8b7fcda2
HD
156222020-01-06 Hannes Domani <ssbssa@yahoo.de>
15623
15624 * source.c (print_source_lines_base): Set last_line_listed.
15625
a61b4f69
SV
156262020-01-06 Shahab Vahedi <shahab@synopsys.com>
15627
15628 * tui/tui-disasm.c: Remove trailing spaces.
15629
559e7e50
EZ
156302020-01-06 Eli Zaretskii <eliz@gnu.org>
15631 Pedro Alves <palves@redhat.com>
15632
15633 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15634 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15635 (windows_gdb_signal_to_target): New function, uses the above
15636 enumeration to convert GDB internal signal codes to equivalent
15637 Windows codes.
15638 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15639 * windows-nat.c: Include "gdb_wait.h".
15640 (get_windows_debug_event): Extract the fatal exception from the
15641 exit status and convert to the equivalent Posix signal number.
15642 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15643 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15644 * gdbsupport/gdb_wait.c: New file, implements
15645 windows_status_to_termsig.
15646 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15647 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15648
f2302a34
AB
156492020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15650
15651 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15652 show_layout.
15653
6a5206eb
LM
156542020-01-05 Luis Machado <luis.machado@linaro.org>
15655
15656 * aarch64-linux-nat.c
15657 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15658 and bfd_mach_aarch64.
15659
6ec1d75e
PW
156602020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15661
15662 * ui-file.c (stdio_file::can_emit_style_escape)
15663 (tee_file::can_emit_style_escape): Ensure style is used also on
15664 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15665 to gdb_stdout.
15666 * main.c (set_gdb_data_directory): Use file style to output the
15667 warning that the given pathname is not a directory.
15668 * top.c (show_history_filename, gdb_safe_append_history)
15669 (show_gdb_datadir): Use file style.
15670
44f81a76
HD
156712020-01-03 Hannes Domani <ssbssa@yahoo.de>
15672
15673 * solib-target.c (struct lm_info_target):
15674 Change offsets to be a unique_xmalloc_ptr.
15675 (solib_target_relocate_section_addresses): Update.
15676
25057eb0
HD
156772020-01-03 Hannes Domani <ssbssa@yahoo.de>
15678
15679 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15680
6e2118f5
BE
156812020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15682
15683 * MAINTAINERS (Write After Approval): Add myself.
15684
8133c7dc
LM
156852020-01-02 Luis Machado <luis.machado@linaro.org>
15686
15687 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15688 Cell BE architecture.
15689 * target.h (struct target_ops) <thread_architecture>: Likewise.
15690
48189bec
HD
156912020-01-01 Hannes Domani <ssbssa@yahoo.de>
15692
15693 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15694
ead1063b
HD
156952020-01-01 Hannes Domani <ssbssa@yahoo.de>
15696
15697 * MAINTAINERS (Write After Approval): Add myself.
15698
e5d78223
JB
156992020-01-01 Joel Brobecker <brobecker@adacore.com>
15700
15701 * gdbarch.sh: Update copyright year range of generated files.
15702
b811d2c2
JB
157032020-01-01 Joel Brobecker <brobecker@adacore.com>
15704
15705 Update copyright year range in all GDB files.
15706
5f4def5c
JB
157072020-01-01 Joel Brobecker <brobecker@adacore.com>
15708
15709 * copyright.py: Convert to Python 3.
15710
51fd4002
JB
157112020-01-01 Joel Brobecker <brobecker@adacore.com>
15712
15713 * copyright.py: Adapt after move of gnulib directory from gdb
15714 directory to toplevel directory.
15715
5fb651f2
JB
157162020-01-01 Joel Brobecker <brobecker@adacore.com>
15717
15718 * copyright.py (main): Exit if run from the wrong directory.
15719
5dd8bf88
JB
157202020-01-01 Joel Brobecker <brobecker@adacore.com>
15721
15722 * top.c (print_gdb_version): Change copyright year to 2020.
15723
9f71dacb 157242020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15725
9f71dacb 15726 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15727
9f71dacb 15728For older changes see ChangeLog-2019.
c906108c
SS
15729\f
15730Local Variables:
15731mode: change-log
15732left-margin: 8
15733fill-column: 74
15734version-control: never
57da7796 15735coding: utf-8
c906108c 15736End: