gdb: remove LA_ITERATE_OVER_SYMBOLS macro
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4b2f86ef
AB
12020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
4 (iterate_over_file_blocks): Replace use of macro with the macros
5 definition.
6
e74b39de
AB
72020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
8
9 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
10 * valprint.c (maybe_print_array_index): Replace use of macro with
11 the macros definition.
12
00c696a6
AB
132020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
14
15 * ada-lang.c (ada_language::print_array_index): Call value_print
16 directly.
17 * language.c (language_defn::print_array_index): Likewise.
18 * language.h (LA_VALUE_PRINT): Delete.
19 * valprint.c (value_print): Call value_print on the
20 current_language directly.
21
d3b67c56
AB
222020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
23
24 * language.h (LA_PRINT_TYPEDEF): Delete.
25 * typeprint.c (typedef_print): Call print_typedef directly on the
26 current_language object.
27
790e2a12
AB
282020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
29
30 * m2-exp.y (m2_parse): Rename to...
31 (m2_language::parser): ...this. Update function signature.
32 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
33 (m2_op_print): Rename to...
34 (m2_language::op_print_tab): ...this, and make const.
35 (exp_descriptor_modula2): Rename to...
36 (m2_language::exp_descriptor_modula2): ...this.
37 (class m2_language): Move to m2-lang.h.
38 (m2_language::language_arch_info): New function, moved out of
39 class declaration.
40 (m2_language::printchar): New function, body from m2_printchar.
41 (m2_language::printstr): New function, moved out of class
42 declaration.
43 (m2_language::emitchar): Likewise.
44 * m2-lang.h (m2_parse): Delete declaration.
45 (m2_print_typedef): Delete declaration.
46 (m2_value_print_inner): Delete declaration.
47 (class m2_language): Class declaration moved from m2-lang.c,
48 larger functions are left in m2-lang.c.
49 * m2-typeprint.c (m2_print_typedef): Rename to...
50 (m2_language::print_typedef): ...this, and update function
51 signature.
52 * m2-valprint.c (m2_value_print_inner): Rename to...
53 (m2_language::value_print_inner): ...this, replace use of
54 LA_PRINT_STRING with a direct call to printstr member function,
55 and update recursive call.
56
b01175fc
AB
572020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
58
59 * language.c (default_is_string_type_p): Delete, implementation
60 moved into auto_or_unknown_language::is_string_type_p.
61 (unk_op_print_tab): Moved into
62 auto_or_unknown_language::opcode_print_table.
63 (unknown_language_arch_info): Delete, implementation moved into
64 auto_or_unknown_language::language_arch_info.
65 (class auto_or_unknown_language): New class, member functions
66 copied from unknown_language class, with some updates.
67 (class unknown_language): Most member functions moved into
68 auto_or_unknown_language class. Inherit from
69 auto_or_unknown_language class.
70 (class auto_language): Inherit from auto_or_unknown_language.
71 Delete most member functions.
72
1a97fe8c
HD
732020-10-22 Hannes Domani <ssbssa@yahoo.de>
74
75 * stabsread.c (read_member_functions): Remove gdb_assert.
76
6b9d0dfd
HD
772020-10-22 Hannes Domani <ssbssa@yahoo.de>
78
79 * gdbtypes.c (init_complex_type): Check target type name.
80
4b4bb603
SM
812020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
82
83 * target-debug.h (target_debug_print_struct_target_ops_p):
84 Remove.
85 (target_debug_print_async_callback_ftype_p): Remove.
86 (target_debug_print_struct_trace_state_variable_p): Remove.
87 (target_debug_print_struct_traceframe_info_p): Remove.
88 (target_debug_print_VEC__btrace_block_s__pp): Remove.
89 (target_debug_print_enum_btrace_format): Remove.
90 (target_debug_print_enum_info_proc_what): Remove.
91 (target_debug_print_thread_info_pp): Remove.
92
24f5300a
SM
932020-10-22 Simon Marchi <simon.marchi@efficios.com>
94
95 * target.h (struct target_ops) <make_corefile_notes>:
96 Change return type to unique pointer.
97 * target.c (dummy_make_corefile_notes): Likewise.
98 * exec.c (struct exec_target) <make_corefile_notes>:
99 Likewise.
100 (exec_target::make_corefile_notes): Likewise.
101 * procfs.c (class procfs_target) <make_corefile_notes>:
102 Likewise.
103 (procfs_do_thread_registers): Adjust to unique pointer.
104 (struct procfs_corefile_thread_data): Add constructor.
105 <note_data>: Change type to unique pointer.
106 (procfs_corefile_thread_callback): Adjust to unique pointer.
107 (procfs_target::make_corefile_notes): Change return type to
108 unique pointer.
109 * target-delegates.c: Re-generate.
110 * gcore.c (write_gcore_file_1): Adjust.
111 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
112 New.
113
5fb4027f
TV
1142020-10-22 Tom de Vries <tdevries@suse.de>
115
116 * block.c (find_block_in_blockvector): Make sure the returned block
117 contains pc.
118
4a636814
SM
1192020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
120
121 PR gdb/26693
122 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
123 parameter.
124 (load_cu): Pass existing CU.
125 (process_imported_unit_die): Likewise.
126 (follow_die_offset): Likewise.
127
1bd57575
LM
1282020-10-22 Luis Machado <luis.machado@linaro.org>
129
130 * corelow.c (core_target::xfer_partial): Also check for an empty
131 m_core_unavailable_mappings vector.
132
6b4c676c
AB
1332020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
134
135 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
136 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
137 * f-exp.y (arglist): Allow for a series of subranges.
138 (subrange): Add cases for subranges with strides.
139 * f-lang.c (value_f90_subarray): Catch use of array strides and
140 throw an error.
141 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
142
f2d8e4c5
AB
1432020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
144
145 * expprint.c (print_subexp_standard): Change enum range_type to
146 range_flag and rename variables to match.
147 (dump_subexp_body_standard): Likewise.
148 * expression.h (enum range_type): Rename to...
149 (enum range_flag): ...this.
150 (range_types): Rename to...
151 (range_flags): ...this.
152 * f-lang.c (value_f90_subarray): Change enum range_type to
153 range_flag and rename variables to match.
154 * parse.c (operator_length_standard): Likewise.
155 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
156 range_type to range_flag.
157 * rust-lang.c (rust_evaluate_funcall): Likewise.
158 (rust_range): Likewise.
159 (rust_compute_range): Likewise.
160 (rust_subscript): Likewise.
161
2f1b18db
AB
1622020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
163
164 * expprint.c (print_subexp_standard): Update to reflect changes to
165 enum range_type.
166 (dump_subexp_body_standard): Likewise.
167 * expression.h (enum range_type): Convert to a bit field enum, and
168 make the enum unsigned.
169 * f-exp.y (subrange): Update to reflect changes to enum
170 range_type.
171 * f-lang.c (value_f90_subarray): Likewise.
172 * parse.c (operator_length_standard): Likewise.
173 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
174 * rust-lang.c (rust_range): Likewise.
175 (rust_compute_range): Likewise.
176 (rust_subscript): Likewise.
177
a46d1843
SM
1782020-10-21 Simon Marchi <simon.marchi@efficios.com>
179
180 * infrun.c (displaced_step_in_progress_thread): Fix comment.
181 (displaced_step_in_progress): Fix comment.
182
c21f37a8
SM
1832020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
184
185 * gdbarch.sh (make_corefile_notes): Return unique pointer.
186 * gdbarch.c: Re-generate.
187 * gdbarch.h: Re-generate.
188 * gcore.c (write_gcore_file_1): Adjust.
189 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
190 constructor.
191 <note_data>: Change type to unique pointer.
192 <abort_iteration>: Change type to bool.
193 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
194 (fbsd_collect_thread_registers): Return void, adjust.
195 (struct fbsd_corefile_thread_data): Add construtor.
196 <note_data>: Change type to unique pointer.
197 (fbsd_corefile_thread): Adjust.
198 (fbsd_make_corefile_notes): Return unique pointer, adjust.
199 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
200 to unique pointer, adjust.
201 (struct linux_collect_regset_section_cb_data): Add constructor.
202 <note_data>: Change type to unique pointer.
203 <abort_iteration>: Change type to bool.
204 (linux_collect_thread_registers): Return void, adjust.
205 (struct linux_corefile_thread_data): Add constructor.
206 <note_data>: Change type to unique pointer.
207 (linux_corefile_thread): Adjust.
208 (linux_make_corefile_notes): Return unique pointer, adjust.
209
07fbbd01
SM
2102020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
211
212 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
213 * gdbarch.c: Re-generate.
214 * gdbarch.h: Re-generate.
215 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
216 bool.
217 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
218 Likewise.
219 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
220 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
221 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
222 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
223
39535193
SM
2242020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
225
226 * gdbarch.sh: Make generated predicates return bool.
227 * gdbarch.c: Re-generate.
228 * gdbarch.h: Re-generate.
229
ad523d01
TT
2302020-10-20 Tom Tromey <tom@tromey.com>
231
232 * varobj-iter.h (struct varobj_item): Remove typedef.
233
c4464ade
SM
2342020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
235
236 * infrun.c (currently_stepping): Change int to bool
237 (maybe_software_singlestep): Likewise.
238 (show_stop_on_solib_events): Likewise.
239 (stepping_past_nonsteppable_watchpoint): Likewise.
240 (displaced_step_in_progress_any_inferior): Likewise.
241 (displaced_step_in_progress_thread): Likewise.
242 (keep_going_stepped_thread): Likewise.
243 (thread_still_needs_step_over): Likewise.
244 (start_step_over): Likewise.
245 (do_target_resume): Likewise.
246 (resume_1): Likewise.
247 (clear_proceed_status): Likewise.
248 (thread_still_needs_step_over_bp): Likewise.
249 (proceed): Likewise.
250 (switch_back_to_stepped_thread): Likewise.
251 (adjust_pc_after_break): Likewise.
252 (stepped_in_from): Likewise.
253 (handle_stop_requested): Likewise.
254 (handle_syscall_event): Likewise.
255 (handle_no_resumed): Likewise.
256 (handle_inferior_event): Likewise.
257 (finish_step_over): Likewise.
258 (handle_signal_stop): Likewise.
259 (process_event_stop_test): Likewise.
260
2eb20436
SM
2612020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
262
263 * infrun.c (get_displaced_stepping_state): Fix comment.
264
e0c45ded
AS
2652020-10-20 Andreas Schwab <schwab@linux-m68k.org>
266
267 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
268
22cc388e
TT
2692020-10-19 Tom Tromey <tromey@adacore.com>
270
271 PR tui/26719
272 * tui/tui-winsource.h (struct tui_source_window_base)
273 <refresh_window>: Rename from refresh_pad.
274 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
275 Rename from refresh_pad.
276 (tui_source_window_base::show_source_content)
277 (tui_source_window_base::do_scroll_horizontal): Update.
278
3c6eb4d4
TBA
2792020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
280
281 * thread.c (_initialize_thread): Fine-tune the help text of
282 'info threads'.
283
26703721
TBA
2842020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
285
286 * frame.c: Remove the unused 'uinteger_option_def' type alias.
287
61c26be8
MS
2882020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
289
290 * breakpoint.c (handle_jit_event): Add an argument, change how
291 `jit_event_handler` is called.
292
932539d7
TT
2932020-10-17 Tom Tromey <tom@tromey.com>
294
295 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
296 (scan_xcoff_symtab): Update.
297 * psymtab.h (class psymtab_storage) <global_psymbols,
298 static_psymbols, current_global_psymbols,
299 current_static_psymbols>: Remove.
300 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
301 (match_partial_symbol, lookup_partial_symbol): Update.
302 (print_partial_symbols): Change parameters.
303 (dump_psymtab, recursively_search_psymtabs)
304 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
305 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
306 (concat): Remove.
307 (end_psymtab_common): Simplify.
308 (append_psymbol_to_list): Change parameters.
309 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
310 (init_psymbol_list): Simplify.
311 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
312 * psympriv.h (struct partial_symtab) <empty>: New method.
313 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
314 Remove.
315 <global_psymbols, static_psymbols>: New members.
316 <add_psymbol>: New methods.
317 (add_psymbol_to_list): Don't declare.
318 (psymbol_placement): Move earlier.
319 * mdebugread.c (parse_partial_symbols): Update.
320 (handle_psymbol_enumerators): Change parameters.
321 (mdebug_expand_psymtab): Update.
322 * dwarf2/read.c (process_psymtab_comp_unit_reader)
323 (add_partial_symbol): Update.
324 * dwarf2/index-write.c (write_psymbols): Change parameters.
325 (write_one_signatured_type): Update.
326 (recursively_count_psymbols): Update.
327 (recursively_write_psymbols): Update.
328 (class debug_names) <recursively_write_psymbols>: Update.
329 <write_psymbols>: Change parameters.
330 <write_one_signatured_type>: Update.
331 * dbxread.c (read_dbx_symtab): Update.
332 (dbx_end_psymtab): Use partial_symtab::empty.
333 * ctfread.c (struct ctf_context) <pst>: New member.
334 (create_partial_symtab): Set it.
335 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
336 (scan_partial_symbols): Use the psymtab's context. Update.
337
cfabbd35
TT
3382020-10-17 Tom Tromey <tom@tromey.com>
339
340 * valprint.c (generic_value_print): Remove comment.
341 * m2-valprint.c (m2_value_print_inner): Remove comment.
342 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
343 type.
344
520596f2
TV
3452020-10-17 Tom de Vries <tdevries@suse.de>
346
347 PR symtab/26317
348 * source.c (select_source_symtab): Handling sal.symtab == NULL for
349 symbol main.
350
76547ab3
TV
3512020-10-14 Tom de Vries <tdevries@suse.de>
352
353 PR gdb/26733
354 * solib.c (solib_contains_address_p): Handle
355 'solib->sections == nullptr'.
356
d3a07122
SM
3572020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
358
359 PR gdb/26642
360 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
361 target can't do async.
362 * target.c (target_wait): Assert that we don't pass
363 TARGET_WNOHANG to a target that can't async.
364
1b71cfcf
KR
3652020-10-13 Kamil Rytarowski <n54@gmx.com>
366
367 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
368 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
369 * alpha-bsd-nat.c: Adjust include.
370 * alpha-bsd-tdep.h: Adjust comment.
371 * alpha-nbsd-tdep.c: Rename to ...
372 * alpha-netbsd-tdep.c: ... this, adjust include.
373 * amd64-nbsd-nat.c: Rename to ...
374 * amd64-netbsd-nat.c: ... this, adjust include.
375 * amd64-nbsd-tdep.c: Rename to ...
376 * amd64-netbsd-tdep.c: ... this, adjust include.
377 * amd64-tdep.h: Adjust include.
378 * arm-nbsd-nat.c: Rename to ...
379 * arm-netbsd-nat.c: ... this, adjust include.
380 * arm-nbsd-tdep.c: Rename to ...
381 * arm-netbsd-tdep.c: ... this, adjust include.
382 * arm-nbsd-tdep.h: Rename to ...
383 * arm-netbsd-tdep.h: ... this, adjust include.
384 * configure.nat: Adjust file lists.
385 * configure.tgt: Likewise.
386 * hppa-nbsd-nat.c: Rename to ...
387 * hppa-netbsd-nat.c: ... this, adjust include.
388 * hppa-nbsd-tdep.c: Rename to ...
389 * hppa-netbsd-tdep.c: ... this, adjust include.
390 * i386-nbsd-nat.c: Rename to ...
391 * i386-netbsd-nat.c: ... this, adjust include.
392 * i386-nbsd-tdep.c: Rename to ...
393 * i386-netbsd-tdep.c: ... this, adjust include.
394 * m68k-bsd-nat.c: Adjust include.
395 * mips-nbsd-nat.c: Rename to ...
396 * mips-netbsd-nat.c: ... this, adjust include.
397 * mips-nbsd-tdep.c: Rename to ...
398 * mips-netbsd-tdep.c: ... this, adjust include.
399 * mips-nbsd-tdep.h: Rename to ...
400 * mips-netbsd-tdep.h: ... this.
401 * nbsd-nat.c: Rename to ...
402 * netbsd-nat.c: ... this, adjust include.
403 * nbsd-nat.h: Rename to ...
404 * netbsd-nat.h: ... this, adjust include.
405 * nbsd-tdep.c: Rename to ...
406 * netbsd-tdep.c: ... this, adjust include.
407 * nbsd-tdep.h: Rename to ...
408 * netbsd-tdep.h: ... this.
409 * ppc-nbsd-nat.c: Rename to ...
410 * ppc-netbsd-nat.c: ... this, adjust include.
411 * ppc-nbsd-tdep.c: Rename to ...
412 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
413 * ppc-nbsd-tdep.h: Rename to ...
414 * ppc-netbsd-tdep.h: ... this.
415 * sh-nbsd-nat.c: Rename to ...
416 * sh-netbsd-nat.c: ... this, adjust include.
417 * sh-nbsd-tdep.c: Rename to ...
418 * sh-netbsd-tdep.c: ... this, adjust include.
419 * sparc-nbsd-nat.c: Rename to ...
420 * sparc-netbsd-nat.c: ... this.
421 * sparc-nbsd-tdep.c: Rename to ...
422 * sparc-netbsd-tdep.c: ... this, adjust include.
423 * sparc64-nbsd-nat.c: Rename to ...
424 * sparc64-netbsd-nat.c: ... this.
425 * sparc64-nbsd-tdep.c: Rename to ...
426 * sparc64-netbsd-tdep.c: ... this, adjust include.
427 * sparc64-tdep.h: Adjust comment.
428 * vax-bsd-nat.c: Adjust include.
429 * vax-nbsd-tdep.c: Rename to ...
430 * vax-netbsd-tdep.c: ... this, adjust include.
431
d7a78e5c
TT
4322020-10-12 Tom Tromey <tom@tromey.com>
433
434 * target.h (struct target_ops) <get_section_table>: Update.
435 (target_get_section_table): Update.
436 * target.c (target_get_section_table, target_section_by_addr)
437 (memory_xfer_partial_1): Update.
438 * target-section.h (target_section_table): Now an alias.
439 * target-delegates.c: Rebuild.
440 * target-debug.h (target_debug_print_target_section_table_p):
441 Rename from target_debug_print_struct_target_section_table_p.
442 * symfile.c (build_section_addr_info_from_section_table): Update.
443 * solib.c (solib_map_sections, solib_contains_address_p): Update.
444 * solib-svr4.c (scan_dyntag): Update.
445 * solib-dsbt.c (scan_dyntag): Update.
446 * remote.c (remote_target::remote_xfer_live_readonly_partial):
447 Update.
448 * record-full.c (record_full_core_target::xfer_partial): Update.
449 * progspace.h (struct program_space) <target_sections>: Update.
450 * exec.h (print_section_info): Update.
451 * exec.c (exec_target::close, build_section_table)
452 (add_target_sections, add_target_sections_of_objfile)
453 (remove_target_sections, exec_on_vfork)
454 (section_table_available_memory)
455 (section_table_xfer_memory_partial)
456 (exec_target::get_section_table, exec_target::xfer_partial)
457 (print_section_info, set_section_command)
458 (exec_set_section_address, exec_target::has_memory): Update.
459 * corelow.c (core_target::build_file_mappings)
460 (core_target::xfer_partial, core_target::info_proc_mappings)
461 (core_target::info_proc_mappings): Update.
462 * bfd-target.c (class target_bfd): Update
463
eda214ce
TT
4642020-10-12 Tom Tromey <tom@tromey.com>
465
466 * progspace.c (program_space::~program_space): Don't call
467 clear_section_table.
468 * exec.h (clear_section_table): Don't declare.
469 * exec.c (exec_target::close): Update.
470 (clear_section_table): Remove.
471
91840ee3
TT
4722020-10-12 Tom Tromey <tom@tromey.com>
473
474 * exec.c (add_target_sections_of_objfile): Simplify.
475
2d128614
TT
4762020-10-12 Tom Tromey <tom@tromey.com>
477
478 * solib.c (solib_map_sections): Update.
479 * record-full.c (record_full_core_open_1): Update.
480 * exec.h (build_section_table): Return a target_section_table.
481 * exec.c (exec_file_attach): Update.
482 (build_section_table): Return a target_section_table.
483 * corelow.c (core_target::core_target): Update.
484 * bfd-target.c (target_bfd::target_bfd): Update.
485
bb2a6777
TT
4862020-10-12 Tom Tromey <tom@tromey.com>
487
488 * target.c (target_section_by_addr, memory_xfer_partial_1):
489 Update.
490 * target-section.h (struct target_section_table): Use
491 std::vector.
492 * symfile.h (build_section_addr_info_from_section_table): Take a
493 target_section_table.
494 * symfile.c (build_section_addr_info_from_section_table): Take a
495 target_section_table.
496 * solist.h (struct so_list) <sections>: Change type.
497 <sections_end>: Remove.
498 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
499 (solib_contains_address_p): Update.
500 * solib-svr4.c (scan_dyntag): Update.
501 * solib-dsbt.c (scan_dyntag): Update.
502 * remote.c (remote_target::remote_xfer_live_readonly_partial):
503 Update.
504 * record-full.c (record_full_core_start, record_full_core_end):
505 Remove.
506 (record_full_core_sections): New global.
507 (record_full_core_open_1, record_full_core_target::xfer_partial):
508 Update.
509 * exec.h (build_section_table, section_table_xfer_memory_partial)
510 (add_target_sections): Take a target_section_table.
511 * exec.c (exec_file_attach, clear_section_table): Update.
512 (resize_section_table): Remove.
513 (build_section_table, add_target_sections): Take a
514 target_section_table.
515 (add_target_sections_of_objfile, remove_target_sections)
516 (exec_on_vfork): Update.
517 (section_table_available_memory): Take a target_section_table.
518 (section_table_read_available_memory): Update.
519 (section_table_xfer_memory_partial): Take a target_section_table.
520 (print_section_info, set_section_command)
521 (exec_set_section_address, exec_target::has_memory): Update.
522 * corelow.c (class core_target) <m_core_section_table,
523 m_core_file_mappings>: Remove braces.
524 <~core_target>: Remove.
525 (core_target::core_target): Update.
526 (core_target::~core_target): Remove.
527 (core_target::build_file_mappings)
528 (core_target::xfer_memory_via_mappings)
529 (core_target::xfer_partial, core_target::info_proc_mappings):
530 Update.
531 * bfd-target.c (target_bfd::xfer_partial): Update.
532 (target_bfd::target_bfd): Update.
533 (target_bfd::~target_bfd): Remove.
534
7b466b10
TT
5352020-10-12 Tom Tromey <tom@tromey.com>
536
537 * target.h (struct target_section, struct target_section_table):
538 Move to target-section.h.
539 * target-section.h: New file.
540
87a37e5e
PA
5412020-10-12 Pedro Alves <pedro@palves.net>
542
543 PR exp/26602
544 * valops.c (struct struct_field_searcher): New.
545 (update_search_result): Rename to ...
546 (struct_field_searcher::update_result): ... this. Simplify
547 prototype. Record all found fields.
548 (do_search_struct_field): Rename to ...
549 (struct_field_searcher::search): ... this. Simplify prototype.
550 Maintain stack of visited baseclass path. Call update_result for
551 fields too. Keep searching fields in baseclasses instead of
552 stopping at the first found field.
553 (search_struct_field): Use struct_field_searcher. When looking
554 for fields, report ambiguous access attempts.
555
9370fd51
AB
5562020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
557
558 * frame.c (inside_main_func): Check full symbols as well as
559 minimal symbols.
560
59c8a30b
JB
5612020-10-09 Joel Brobecker <brobecker@adacore.com>
562
563 * ada-lang.c (advance_wild_match): Rewrite the function's
564 description. Change the type of target0, t0 and t1 to char.
565
7c184d33
TT
5662020-10-09 Tom Tromey <tromey@adacore.com>
567
568 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
569
5c4258f4
TT
5702020-10-09 Tom Tromey <tromey@adacore.com>
571
572 * ada-lang.h (ada_encode): Return std::string.
573 * ada-lang.c (ada_encode_1): Return std::string.
574 (ada_encode): Likewise.
575 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
576 Update.
577 * ada-exp.y (block_lookup, write_var_or_type): Update.
578
3d87245c
HD
5792020-10-09 Hannes Domani <ssbssa@yahoo.de>
580
581 PR exp/26714
582 * printcmd.c (print_formatted): Handle void results as
583 unformatted prints.
584
bbb826f5
AB
5852020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
586
587 * arch/aarch32.c (aarch32_create_target_description): Release the
588 target_desc_up as late as possible.
589 * arch/aarch64.c (aarch64_create_target_description): Likewise.
590 * arch/amd64.c (amd64_create_target_description): Likewise.
591 * arch/arc.c (arc_create_target_description): Return a
592 target_desc_up, don't release it.
593 * arch/arc.h (arc_create_target_description): Update declaration.
594 (arc_lookup_target_description): Move target_desc_up into the
595 cache, and return a borrowed pointer.
596 * arch/arm.c (arm_create_target_description): Release the
597 target_desc_up as late as possible.
598 * arch/i386.c (i386_create_target_description): Likewise.
599 * arch/riscv.h (riscv_create_target_description): Update
600 declaration to match definition.
601 * arch/tic6x.c (tic6x_create_target_description): Release the
602 target_desc_up as late as possible.
603
361cb219
AB
6042020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
605
606 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
607 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
608
f5c4b229
JV
6092020-10-09 Jan Vrany <jan.vrany@labware.com>
610
611 * source.c (directory_command): Notify observers that "directories"
612 parameter has changed.
613
b2701685
TT
6142020-10-08 Tom Tromey <tom@tromey.com>
615
616 * cli/cli-cmds.c (print_disassembly): Style function name and
617 addresses. Add _() wrappers.
618
ada508b6
SV
6192020-10-08 Shahab Vahedi <shahab@synopsys.com>
620
621 * NEWS: Mention ARC support in GDBserver.
622
51a948fd
AB
6232020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
624
625 * arch/aarch32.c (aarch32_create_target_description): Release
626 unique_ptr returned from allocate_target_description.
627 * arch/aarch64.c (aarch64_create_target_description): Likewise.
628 * arch/amd64.c (amd64_create_target_description): Likewise.
629 * arch/arc.c (arc_create_target_description): Likewise.
630 * arch/arm.c (arm_create_target_description): Likewise.
631 * arch/i386.c (i386_create_target_description): Likewise.
632 * arch/riscv.c (riscv_create_target_description): Update return
633 type. Handle allocate_target_description returning a unique_ptr.
634 (riscv_lookup_target_description): Update to handle unique_ptr.
635 * arch/tic6x.c (tic6x_create_target_description): Release
636 unique_ptr returned from allocate_target_description.
637 * features/microblaze-with-stack-protect.c: Regenerate.
638 * features/microblaze.c: Regenerate.
639 * features/mips-dsp-linux.c: Regenerate.
640 * features/mips-linux.c: Regenerate.
641 * features/mips64-dsp-linux.c: Regenerate.
642 * features/mips64-linux.c: Regenerate.
643 * features/nds32.c: Regenerate.
644 * features/nios2.c: Regenerate.
645 * features/or1k.c: Regenerate.
646 * features/rs6000/powerpc-32.c: Regenerate.
647 * features/rs6000/powerpc-32l.c: Regenerate.
648 * features/rs6000/powerpc-403.c: Regenerate.
649 * features/rs6000/powerpc-403gc.c: Regenerate.
650 * features/rs6000/powerpc-405.c: Regenerate.
651 * features/rs6000/powerpc-505.c: Regenerate.
652 * features/rs6000/powerpc-601.c: Regenerate.
653 * features/rs6000/powerpc-602.c: Regenerate.
654 * features/rs6000/powerpc-603.c: Regenerate.
655 * features/rs6000/powerpc-604.c: Regenerate.
656 * features/rs6000/powerpc-64.c: Regenerate.
657 * features/rs6000/powerpc-64l.c: Regenerate.
658 * features/rs6000/powerpc-7400.c: Regenerate.
659 * features/rs6000/powerpc-750.c: Regenerate.
660 * features/rs6000/powerpc-860.c: Regenerate.
661 * features/rs6000/powerpc-altivec32.c: Regenerate.
662 * features/rs6000/powerpc-altivec32l.c: Regenerate.
663 * features/rs6000/powerpc-altivec64.c: Regenerate.
664 * features/rs6000/powerpc-altivec64l.c: Regenerate.
665 * features/rs6000/powerpc-e500.c: Regenerate.
666 * features/rs6000/powerpc-e500l.c: Regenerate.
667 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
668 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
669 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
670 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
671 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
672 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
673 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
674 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
675 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
676 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
677 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
678 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
679 * features/rs6000/powerpc-vsx32.c: Regenerate.
680 * features/rs6000/powerpc-vsx32l.c: Regenerate.
681 * features/rs6000/powerpc-vsx64.c: Regenerate.
682 * features/rs6000/powerpc-vsx64l.c: Regenerate.
683 * features/rs6000/rs6000.c: Regenerate.
684 * features/rx.c: Regenerate.
685 * features/s390-gs-linux64.c: Regenerate.
686 * features/s390-linux32.c: Regenerate.
687 * features/s390-linux32v1.c: Regenerate.
688 * features/s390-linux32v2.c: Regenerate.
689 * features/s390-linux64.c: Regenerate.
690 * features/s390-linux64v1.c: Regenerate.
691 * features/s390-linux64v2.c: Regenerate.
692 * features/s390-te-linux64.c: Regenerate.
693 * features/s390-tevx-linux64.c: Regenerate.
694 * features/s390-vx-linux64.c: Regenerate.
695 * features/s390x-gs-linux64.c: Regenerate.
696 * features/s390x-linux64.c: Regenerate.
697 * features/s390x-linux64v1.c: Regenerate.
698 * features/s390x-linux64v2.c: Regenerate.
699 * features/s390x-te-linux64.c: Regenerate.
700 * features/s390x-tevx-linux64.c: Regenerate.
701 * features/s390x-vx-linux64.c: Regenerate.
702 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
703 from allocate_target_description.
704 * target-descriptions.c (allocate_target_description): Update
705 return type.
706 (print_c_tdesc::visit_pre): Release unique_ptr returned from
707 allocate_target_description.
708
485c47e5
TT
7092020-10-07 Tom Tromey <tromey@adacore.com>
710
711 * unittests/search-memory-selftests.c: New file.
712 * Makefile.in (SELFTESTS_SRCS): Add
713 unittests/search-memory-selftests.c.
714
3a135a91
TT
7152020-10-07 Tom Tromey <tromey@adacore.com>
716
717 PR gdb/16930:
718 * findcmd.c (_initialize_mem_search): Mention that the range is
719 inclusive.
720
4a72de73
TT
7212020-10-07 Tom Tromey <tromey@adacore.com>
722
723 * target.h (simple_search_memory): Don't declare.
724 * target.c (simple_search_memory): Move to gdbsupport.
725 (default_search_memory): Update.
726 * remote.c (remote_target::search_memory): Update.
727
a038ffd8
SM
7282020-10-07 Simon Marchi <simon.marchi@efficios.com>
729
730 * Makefile.in (COMPILE): Add CXXFLAGS.
731 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
732 (check-headers): Add CXXFLAGS.
733
cc463201
AK
7342020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
735
736 * arc-linux-tdep.h: New file.
737 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
738 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
739 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
740 arc_linux_gregset, arc_linux_v2_regset,
741 arc_linux_iterate_over_regset_sections,
742 arc_linux_core_read_description): Implement.
743 (arc_linux_init_osabi): Set iterate_over_regset_sections.
744 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
745 (arc_gdbarch_features_create): Add.
746 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
747
e4bd363f
SV
7482020-10-07 Shahab Vahedi <shahab@synopsys.com>
749
750 * arch/arc.h: Rename "arc_gdbarch_features" to
751 "arc_arch_features".
752 * arc-tdep.h: Likewise.
753 * arc-tdep.c: Likewise.
754
b68bef99
TBA
7552020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
756
757 * infcmd.c (attach_command): Remove the redundant call to
758 `clear_proceed_status`.
759
4641551a
KR
7602020-10-07 Kamil Rytarowski <n54@gmx.com>
761
762 * nat/netbsd-nat.c (write_memory, read_memory): Update.
763
91e5e8db
KR
7642020-10-07 Kamil Rytarowski <n54@gmx.com>
765
766 * nat/netbsd-nat.c (write_memory, read_memory): Add.
767 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
768 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
769
64c03bdb
SM
7702020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
771
772 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
773 (_initialize_break_catch_sig): Don't allocate array.
774
31a8f60f
AB
7752020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
776
777 * symtab.c (find_pc_line): Return unmapped addresses when the
778 requested address is also unmapped.
779
9e6dbd8b
SM
7802020-10-05 Simon Marchi <simon.marchi@efficios.com>
781
782 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
783 tui/tui-out.h.
784
a1d217e8
SM
7852020-10-05 Simon Marchi <simon.marchi@efficios.com>
786
787 * amd64-windows-tdep.c (amd64_windows_return_value): Use
788 type::is_vector instead of TYPE_VECTOR.
789
7d144117
SM
7902020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
791
792 * auto-load.c (auto_load_objfile_script_1): Don't use
793 debugfile_holder as temporary variable when stripping drive
794 letter.
795
cd096ec8
HD
7962020-10-05 Hannes Domani <ssbssa@yahoo.de>
797
798 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
799 Add TYPE_CODE_COMPLEX.
800 (amd64_windows_return_value): Fix types returned via XMM0.
801
b58e7f72
AH
8022020-10-05 Alan Hayward <alan.hayward@arm.com>
803
804 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
805 AArch64/ARM maintainers.
806
8d378f27
SM
8072020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
808
809 * NEWS: Mention set/show debug event-loop.
810
d5519913
TT
8112020-10-02 Tom Tromey <tromey@adacore.com>
812
813 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
814 REG_EXTENDED.
815
18b67edc
SM
8162020-10-02 Simon Marchi <simon.marchi@efficios.com>
817
818 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
819 * procfs.c (procfs_inferior_created): Remove.
820 (_initialize_procfs): Don't register procfs_inferior_created.
821
6b01403b
SM
8222020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
823
824 * async-event.c (invoke_async_signal_handlers): Add debug
825 print.
826 (check_async_event_handlers): Likewise.
827 * event-top.c (show_debug_event_loop): New function.
828 (_initialize_event_top): Register "set debug event-loop"
829 setting.
830
ba988419
SM
8312020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
832
833 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
834 * debug.h: Remove.
835 * infrun.c: Include gdbsupport/common-debug.h.
836 * linux-nat.c: Likewise.
837
db20ebdf
SM
8382020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
839
840 * async-event.h (create_async_signal_handler): Add name
841 parameter.
842 (create_async_event_handler): Likewise.
843 * async-event.c (struct async_signal_handler) <name>: New field.
844 (struct async_event_handler) <name>: New field.
845 (create_async_signal_handler): Assign name.
846 (create_async_event_handler): Assign name.
847 * event-top.c (async_init_signals): Pass name when creating
848 handler.
849 * infrun.c (_initialize_infrun): Likewise.
850 * record-btrace.c (record_btrace_push_target): Likewise.
851 * record-full.c (record_full_open): Likewise.
852 * remote-notif.c (remote_notif_state_allocate): Likewise.
853 * remote.c (remote_target::open_1): Likewise.
854 * tui/tui-win.c (tui_initialize_win): Likewise.
855
2554f6f5
SM
8562020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
857
858 * async-event.c (initialize_async_signal_handlers): Pass name to
859 add_file_handler
860 * event-top.c (ui_register_input_event_handler): Likewise.
861 * linux-nat.c (linux_nat_target::async): Likewise.
862 * run-on-main-thread.c (_initialize_run_on_main_thread):
863 Likewise
864 * ser-base.c (reschedule): Likewise.
865 (ser_base_async): Likewise.
866 * tui/tui-io.c: Likewise.
867 * top.h (struct ui) <num>: New field.
868 * top.c (highest_ui_num): New variable.
869 (ui::ui): Initialize num.
870
a7aba266
SM
8712020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
872
873 * observable.h <inferior_created>: Remove parameters. Update all
874 listeners.
875 * inferior.h (post_create_inferior): Remove target parameter.
876 Update all callers.
877
048fde1e 8782020-10-02 Nitika Achra <Nitika.Achra@amd.com>
879
880 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
881 and DW_MACRO_undef_strx.
882 (dwarf_decode_macros): Likewise
883 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
884 which is the value of DW_AT_str_offsets_base.
885 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
886 str_offsets_base.
887
064280be
KR
8882020-10-01 Kamil Rytarowski <n54@gmx.com>
889
890 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
891
6ff33035
KR
8922020-10-01 Kamil Rytarowski <n54@gmx.com>
893
894 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
895 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
896
1eb6eb79
KR
8972020-10-01 Kamil Rytarowski <n54@gmx.com>
898
899 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
900
95eb9e54
TV
9012020-09-30 Tom de Vries <tdevries@suse.de>
902
903 PR symtab/26683
904 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
905
cae21f8e
TT
9062020-09-30 Tom Tromey <tromey@adacore.com>
907
908 * dwarf2/read.c (handle_variant): Use constant_value.
909
529908cb
TT
9102020-09-29 Tom Tromey <tom@tromey.com>
911
912 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
913 (read_file_scope, dwarf2_get_pc_bounds)
914 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
915 (read_structure_type, handle_struct_member_die)
916 (read_enumeration_type, read_array_type, read_set_type)
917 (read_tag_pointer_type, read_tag_reference_type)
918 (read_subroutine_type, read_base_type, read_subrange_type)
919 (read_full_die_1, partial_die_info::read)
920 (partial_die_info::read, by, new_symbol)
921 (dwarf2_const_value_data, dwarf2_const_value_attr)
922 (dump_die_shallow, dwarf2_fetch_constant_bytes)
923 (prepare_one_comp_unit): Update.
924 * dwarf2/attribute.h (DW_UNSND): Remove.
925
c45bc3f8
TT
9262020-09-29 Tom Tromey <tom@tromey.com>
927
928 * dwarf2/read.c (read_func_scope, prototyped_function_p)
929 (read_subroutine_type, partial_die_info::read)
930 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
931 (dwarf2_add_member_fn): Update.
932 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
933 * dwarf2/attribute.c (attribute::as_boolean): New method.
934
23dca5c3
TT
9352020-09-29 Tom Tromey <tom@tromey.com>
936
937 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
938 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
939 method.
940 * dwarf2/attribute.c (attribute::as_virtuality): New method.
941
52c14d11
TT
9422020-09-29 Tom Tromey <tom@tromey.com>
943
944 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
945 the attribute's form.
946
e8e5c158
TT
9472020-09-29 Tom Tromey <tom@tromey.com>
948
949 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
950 (dwarf2_add_member_fn): Update.
951 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
952 * dwarf2/attribute.c (attribute::defaulted): New method, from
953 is_valid_DW_AT_defaulted.
954
d4df075e
TT
9552020-09-29 Tom Tromey <tom@tromey.com>
956
957 * dwarf2/read.c (dw2_get_file_names_reader)
958 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
959 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
960 (dwarf2_symbol_mark_computed): Use as_unsigned.
961 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
962 method.
963 <form_is_section_offset>: Update comment.
964
bf23a268
TT
9652020-09-29 Tom Tromey <tom@tromey.com>
966
967 * dwarf2/read.c (dwarf2_access_attribute): Rename from
968 dwarf2_default_access_attribute. Look up attribute.
969 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
970 Update.
971
7a5f294d
TT
9722020-09-29 Tom Tromey <tom@tromey.com>
973
974 * dwarf2/read.c (skip_one_die): Update.
975 (read_full_die_1): Change how reprocessing is done.
976 (partial_die_info::read): Update.
977 (read_attribute_value): Remove need_reprocess parameter.
978 (read_attribute): Likewise.
979 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
980 New method.
981
36d378cf
TT
9822020-09-29 Tom Tromey <tom@tromey.com>
983
984 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
985 (dwarf2_const_value_attr, dump_die_shallow)
986 (dwarf2_fetch_constant_bytes): Update.
987 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
988 comment.
989 <set_address>: New method.
990 (DW_ADDR): Remove.
991 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
992 (attribute::as_string, attribute::as_address): Add assert.
993
fe56917a
TT
9942020-09-29 Tom Tromey <tom@tromey.com>
995
996 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
997 (read_attribute_reprocess, read_attribute_value): Update.
998 (read_attribute): Clear requires_reprocessing.
999 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1000 form_requires_reprocessing>: New methods.
1001 <string_init>: Clear requires_reprocessing.
1002 <set_unsigned_reprocess>: New method.
1003 <name>: Shrink by one bit.
1004 <requires_reprocessing>: New member.
1005 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1006 method.
1007
414ad644
TT
10082020-09-29 Tom Tromey <tom@tromey.com>
1009
1010 * dwarf2/read.c (read_attribute_value): Update.
1011 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1012 set_unsigned>: New methods.
1013 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1014
1bc397c5
TT
10152020-09-29 Tom Tromey <tom@tromey.com>
1016
1017 * dwarf2/read.c (get_alignment, read_array_order)
1018 (read_attribute_value, dwarf2_const_value_attr)
1019 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1020 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1021 New methods.
1022 (DW_SND): Remove.
1023
630ed6b9
TT
10242020-09-29 Tom Tromey <tom@tromey.com>
1025
1026 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1027 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1028 Update.
1029 * dwarf2/attribute.h (struct attribute) <as_signature,
1030 set_signature>: New methods.
1031 (DW_SIGNATURE): Remove.
1032
9d2246fc
TT
10332020-09-29 Tom Tromey <tom@tromey.com>
1034
1035 * dwarf2/read.c (read_call_site_scope)
1036 (handle_data_member_location, dwarf2_add_member_fn)
1037 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1038 (partial_die_info::read, read_attribute_value)
1039 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1040 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1041 (dwarf2_symbol_mark_computed): Update.
1042 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1043 methods.
1044 (DW_BLOCK): Remove.
1045 * dwarf2/attribute.c (attribute::form_is_block): Add
1046 DW_FORM_data16.
1047
c6481205
TT
10482020-09-29 Tom Tromey <tom@tromey.com>
1049
1050 * dwarf2/read.c (read_cutu_die_from_dwo)
1051 (read_attribute_reprocess, read_attribute_value, read_attribute)
1052 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1053 (dwarf2_fetch_constant_bytes): Update.
1054 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1055 <set_string_noncanonical, set_string_canonical>: New methods.
1056 <string_is_canonical>: Update comment.
1057 <canonical_string_p>: Add assert.
1058 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1059 * dwarf2/attribute.c (attribute::form_is_string): New method.
1060 (attribute::string): Use it.
1061
3b64bf15
TT
10622020-09-29 Tom Tromey <tom@tromey.com>
1063
1064 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1065 (dump_die_shallow): Use canonical_string_p.
1066 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1067 method.
1068
2c830f54
TT
10692020-09-29 Tom Tromey <tom@tromey.com>
1070
1071 * dwarf2/read.c (partial_die_info::read)
1072 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1073 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1074 attribute::as_string.
1075
6c412691
TT
10762020-09-29 Tom Tromey <tom@tromey.com>
1077
1078 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1079 DW_ADDR.
1080 (attribute::string): Don't use DW_STRING.
1081 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1082 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1083
95f982e5
TT
10842020-09-29 Tom Tromey <tom@tromey.com>
1085
1086 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1087 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1088 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1089 * dwarf2/attribute.h (struct attribute): Rename methods.
1090 * dwarf2/attribute.c (attribute::as_address): Rename from
1091 value_as_address.
1092 (attribute::as_string): Rename from value_as_string.
1093
f800b00e
TT
10942020-09-29 Tom Tromey <tom@tromey.com>
1095
1096 * dwarf2/read.c (partial_die_info::read) <case
1097 DW_AT_linkage_name>: Use value_as_string.
1098 (dwarf2_string_attr): Use value_as_string.
1099 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1100 method.
1101 * dwarf2/attribute.c (attribute::value_as_string): New method.
1102
de38d64a
PA
11032020-09-29 Pedro Alves <pedro@palves.net>
1104
1105 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1106 defined before using '#pragma GCC diagnostic' instead of checking
1107 __clang__.
1108
9aed480c
TT
11092020-09-28 Tom Tromey <tom@tromey.com>
1110
1111 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1112 (handle_signal_stop): Update.
1113 * procfs.c (procfs_target::insert_watchpoint): Update.
1114 * target.h (target_have_steppable_watchpoint): Now a function.
1115
8a3ecb79
TT
11162020-09-28 Tom Tromey <tom@tromey.com>
1117
1118 * infrun.c (set_schedlock_func): Update.
1119 * target.h (target_can_lock_scheduler): Now a function.
1120
55f6301a
TT
11212020-09-28 Tom Tromey <tom@tromey.com>
1122
1123 * inferior.h (class inferior) <has_execution>: Update.
1124 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1125 * valops.c (find_function_in_inferior)
1126 (value_allocate_space_in_inferior): Update.
1127 * top.c (kill_or_detach): Update.
1128 * target.c (target_preopen, set_target_permissions): Update.
1129 (target_has_execution_current): Remove.
1130 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1131 Update.
1132 * solib.c (update_solib_list, reload_shared_libraries): Update.
1133 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1134 * solib-dsbt.c (enable_break): Update.
1135 * score-tdep.c (score7_fetch_inst): Update.
1136 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1137 Update.
1138 * remote.c (remote_target::start_remote)
1139 (remote_target::remote_check_symbols, remote_target::open_1)
1140 (remote_target::remote_detach_1, remote_target::verify_memory)
1141 (remote_target::xfer_partial, remote_target::read_description)
1142 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1143 * record-full.c (record_full_open_1): Update.
1144 * record-btrace.c (record_btrace_target_open): Update.
1145 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1146 (value_nsstring): Update.
1147 * linux-thread-db.c (add_thread_db_info)
1148 (thread_db_find_new_threads_silently, check_thread_db_callback)
1149 (try_thread_db_load_1, record_thread): Update.
1150 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1151 Update.
1152 * linux-fork.c (checkpoint_command): Update.
1153 * infrun.c (set_non_stop, set_observer_mode)
1154 (check_multi_target_resumption, for_each_just_stopped_thread)
1155 (maybe_remove_breakpoints, normal_stop)
1156 (class infcall_suspend_state): Update.
1157 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1158 (info_program_command, attach_command): Update.
1159 * infcall.c (call_function_by_hand_dummy): Update.
1160 * inf-loop.c (inferior_event_handler): Update.
1161 * gcore.c (gcore_command, derive_heap_segment): Update.
1162 * exec.c (exec_file_command): Update.
1163 * eval.c (evaluate_subexp): Update.
1164 * compile/compile.c (compile_to_object): Update.
1165 * cli/cli-dump.c (restore_command): Update.
1166 * breakpoint.c (update_watchpoint)
1167 (update_inserted_breakpoint_locations)
1168 (insert_breakpoint_locations, get_bpstat_thread): Update.
1169 * target.h (target_has_execution): Remove macro.
1170 (target_has_execution_current): Don't declare.
1171 (target_has_execution): Rename from target_has_execution_1. Add
1172 argument default.
1173
05374cfd
TT
11742020-09-28 Tom Tromey <tom@tromey.com>
1175
1176 * mi/mi-main.c (exec_reverse_continue)
1177 (mi_cmd_list_target_features): Update.
1178 * infrun.c (set_exec_direction_func): Update.
1179 * target.c (default_execution_direction): Update.
1180 * reverse.c (exec_reverse_once): Update.
1181 * target.h (target_can_execute_reverse): Now a function.
1182
9dccd06e
TT
11832020-09-28 Tom Tromey <tom@tromey.com>
1184
1185 * tui/tui-regs.c (tui_get_register)
1186 (tui_data_window::show_registers): Update.
1187 * thread.c (scoped_restore_current_thread::restore)
1188 (scoped_restore_current_thread::scoped_restore_current_thread):
1189 Update.
1190 * regcache-dump.c (regcache_print): Update.
1191 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1192 Update.
1193 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1194 * mep-tdep.c (current_me_module, current_options): Update.
1195 * linux-thread-db.c (thread_db_load): Update.
1196 * infcmd.c (registers_info, info_vector_command)
1197 (info_float_command): Update.
1198 * ia64-tdep.c (ia64_frame_prev_register)
1199 (ia64_sigtramp_frame_prev_register): Update.
1200 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1201 * gcore.c (derive_stack_segment): Update.
1202 * frame.c (get_current_frame, has_stack_frames): Update.
1203 * findvar.c (language_defn::read_var_value): Update.
1204 * arm-tdep.c (arm_pc_is_thumb): Update.
1205 * target.c (target_has_registers): Rename from
1206 target_has_registers_1.
1207 * target.h (target_has_registers): Remove macro.
1208 (target_has_registers): Rename from target_has_registers_1.
1209
841de120
TT
12102020-09-28 Tom Tromey <tom@tromey.com>
1211
1212 * windows-tdep.c (tlb_make_value): Update.
1213 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1214 * thread.c (scoped_restore_current_thread::restore)
1215 (scoped_restore_current_thread::scoped_restore_current_thread)
1216 (thread_command): Update.
1217 * stack.c (backtrace_command_1, frame_apply_level_command)
1218 (frame_apply_all_command, frame_apply_command): Update.
1219 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1220 Update.
1221 * gcore.c (derive_stack_segment): Update.
1222 * frame.c (get_current_frame, has_stack_frames): Update.
1223 * auxv.c (info_auxv_command): Update.
1224 * ada-tasks.c (ada_build_task_list): Update.
1225 * target.c (target_has_stack): Rename from target_has_stack_1.
1226 * target.h (target_has_stack): Remove macro.
1227 (target_has_stack): Rename from target_has_stack_1.
1228
a739972c
TT
12292020-09-28 Tom Tromey <tom@tromey.com>
1230
1231 * target.c (target_has_memory): Rename from target_has_memory_1.
1232 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1233 * thread.c (scoped_restore_current_thread::restore)
1234 (scoped_restore_current_thread::scoped_restore_current_thread):
1235 Update.
1236 * frame.c (get_current_frame, has_stack_frames): Update.
1237 * target.h (target_has_memory): Remove macro.
1238 (target_has_memory): Rename from target_has_memory_1.
1239
5b8a4776
TT
12402020-09-28 Tom Tromey <tom@tromey.com>
1241
1242 * target.c (target_has_all_memory_1): Remove.
1243 * target.h (target_has_all_memory): Remove define.
1244 (target_has_all_memory_1): Don't declare.
1245
bd356ec6
SM
12462020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1247
1248 * ser-base.c: Adjust comments formatting.
1249
2c72d5e5
TT
12502020-09-27 Tom Tromey <tom@tromey.com>
1251
1252 PR tui/25342:
1253 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1254
35a98237
TT
12552020-09-27 Tom Tromey <tom@tromey.com>
1256
1257 PR tui/25342:
1258 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1259
9e820dec
TT
12602020-09-27 Tom Tromey <tom@tromey.com>
1261
1262 * unittests/tui-selftests.c: Update.
1263 * tui/tui-winsource.h (struct tui_source_window_base)
1264 <extra_margin, show_line_number, refresh_pad>: New methods.
1265 <m_max_length, m_pad>: New members.
1266 (tui_copy_source_line): Update.
1267 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1268 first_col, line_width, ndigits parameters. Add length.
1269 (tui_source_window_base::show_source_line): Write to pad. Line
1270 number now 0-based.
1271 (tui_source_window_base::refresh_pad): New method.
1272 (tui_source_window_base::show_source_content): Write to pad. Call
1273 refresh_pad.
1274 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1275 not refill.
1276 (tui_source_window_base::update_exec_info): Call
1277 show_line_number.
1278 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1279 method.
1280 <m_digits>: New member.
1281 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1282 and m_max_length.
1283 (tui_source_window::show_line_number): New method.
1284 * tui/tui-io.h (tui_puts): Fix comment.
1285 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1286 m_max_length.
1287
c15c15c8
TT
12882020-09-27 Tom Tromey <tom@tromey.com>
1289
1290 * tui/tui-winsource.c
1291 (tui_source_window_base::set_is_exec_point_at): Don't call
1292 show_source_line.
1293
149830c1
TT
12942020-09-27 Tom Tromey <tom@tromey.com>
1295
1296 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1297 method.
1298 <erase>: Update.
1299 <cursor_x, cursor_y>: Remove.
1300 <m_inner_window>: New member.
1301 (tui_py_window::rerender): Create inner window.
1302 (tui_py_window::output): Write to inner window.
1303
8f9929bb
GR
13042020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1305
1306 PR python/26586
1307 * cli/cli-script.c (execute_control_commands): don't set
1308 instream to nullptr here as this breaks the from_tty argument
1309 to gdb.execute in Python.
1310 (execute_user_command): set instream to nullptr here instead.
1311
956bdb59
SM
13122020-09-25 Simon Marchi <simon.marchi@efficios.com>
1313
1314 * infrun.h (infrun_debug_printf): Fix formatting.
1315 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1316
3b93626b
SJ
13172020-09-25 Saagar Jha <saagar@saagarjha.com>
1318
1319 * compile/compile-object-load.h (struct munmap_list): Add
1320 explicitly-defined move constructor.
1321
b551a89f
TT
13222020-09-24 Tom Tromey <tromey@adacore.com>
1323
1324 PR tui/26638:
1325 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1326 method.
1327 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1328 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1329 (tui_prev_win): Rewrite.
1330
99bb393f
HD
13312020-09-23 Hannes Domani <ssbssa@yahoo.de>
1332
1333 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1334 in WOW64 processes as SIGINT.
1335 * nat/windows-nat.h: Make wow64_process a shared variable.
1336 * windows-nat.c: Remove static wow64_process variable.
1337
20a5fcbd
TT
13382020-09-23 Tom Tromey <tom@tromey.com>
1339
1340 PR symtab/25470:
1341 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1342 offset and bit size.
1343 * printcmd.c (print_scalar_formatted): Handle zero-length
1344 integer.
1345 (print_scalar_formatted): Use bit_size_differs_p.
1346 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1347 constant.
1348 (union type_specific): <int_stuff>: New member.
1349 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1350 methods.
1351 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1352 TYPE_SPECIFIC_FIELD.
1353 (recursive_dump_type, copy_type_recursive): Update.
1354 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1355 DW_AT_data_bit_offset.
1356
bac51ab7
TT
13572020-09-23 Tom Tromey <tom@tromey.com>
1358
1359 * utils.h (class gdb_argv): Add move operators.
1360 <append>: New methods.
1361 * compile/compile.c (build_argc_argv): Remove.
1362 (compile_args_argc): Remove.
1363 (compile_args_argv): Change type.
1364 (set_compile_args): Simplify.
1365 (append_args): Remove.
1366 (filter_args): Remove argcp parameter.
1367 (get_args): Return gdb_argv. Simplify.
1368 (compile_to_object): Update.
1369
92677124
TT
13702020-09-23 Tom Tromey <tom@tromey.com>
1371
1372 * compile/compile-object-run.c (do_module_cleanup)
1373 <~do_module_cleanup> :Remove.
1374 (do_module_cleanup): Update.
1375 * compile/compile-object-load.h (struct munmap_list): Add move
1376 assignment operator.
1377 <source_file>: Now a std::string.
1378 <munmap_list>: Rename. No longer a pointer.
1379 * compile/compile-object-load.c (struct setup_sections_data): Add
1380 constructor.
1381 <setup_one_section>: Declare.
1382 <munmap_list>: Move earlier.
1383 <m_bfd>: New member.
1384 <m_last_size, m_last_section_first, m_last_prot,
1385 m_last_max_alignment>: Rename, add initializers where needed.
1386 (setup_sections_data::setup_one_section): Rename from
1387 setup_sections. Update.
1388 (compile_object_load): Update. Don't use bfd_map_over_sections.
1389
e616f60a
TT
13902020-09-23 Tom Tromey <tom@tromey.com>
1391
1392 * compile/compile-object-run.c (struct do_module_cleanup): Add
1393 parameters to constructor. Update destructor.
1394 <source_file, scope, scope_data, out_value_type, out_value_addr,
1395 munmap_list_head, objfile_name_string>: Remove.
1396 <module>: New member.
1397 (do_module_cleanup): Update.
1398 (compile_object_run): Update.
1399
e947a848
TT
14002020-09-23 Tom Tromey <tom@tromey.com>
1401
1402 * compile/compile.c (eval_compile_command): Update.
1403 * compile/compile-object-run.h (compile_object_run): Take a
1404 compile_module_up.
1405 * compile/compile-object-run.c (compile_object_run): Take a
1406 compile_module_up.
1407 * compile/compile-object-load.h (struct compile_module): Add
1408 constructor, destructor.
1409 (compile_module_up): New typedef.
1410 (compile_object_load): Return compile_object_up.
1411 * compile/compile-object-load.c (compile_object_load): Return
1412 compile_module_up.
1413
0dbf6ee6
TT
14142020-09-23 Tom Tromey <tom@tromey.com>
1415
1416 * compile/compile-object-run.c (struct do_module_cleanup): Add
1417 constructor, destructor.
1418 <objfile_name_string>: Don't use struct hack.
1419 (do_module_cleanup): Use delete.
1420 (compile_object_run): Use new.
1421
ebe824f5
TT
14222020-09-23 Tom Tromey <tom@tromey.com>
1423
1424 * compile/compile-cplus-types.c
1425 (compile_cplus_convert_struct_or_union): Use std::vector.
1426 (compile_cplus_convert_func): Likewise.
1427 * compile/compile-c-types.c (convert_func): Use std::vector.
1428
5dd918d9
TT
14292020-09-21 Tom Tromey <tromey@adacore.com>
1430
1431 * sparc-tdep.c (sparc32_skip_prologue): Use
1432 skip_prologue_using_sal.
1433
5486c517
TT
14342020-09-19 Tom Tromey <tom@tromey.com>
1435
1436 * symfile.c (add_section_size_callback): Remove.
1437 (load_one_section): Rename from load_section_callback. Change
1438 parameters.
1439 (generic_load): Use foreach.
1440
8a6bb1d1
TT
14412020-09-19 Tom Tromey <tom@tromey.com>
1442
1443 * exec.c (add_to_section_table): Remove.
1444 (build_section_table): Use foreach.
1445
08f93a1a
TT
14462020-09-19 Tom Tromey <tom@tromey.com>
1447
1448 * elfread.c (elf_locate_sections): Change parameters.
1449 (elf_symfile_read): Use foreach.
1450
03cd72b8
TT
14512020-09-19 Tom Tromey <tom@tromey.com>
1452
1453 * cli/cli-dump.c (struct callback_data): Remove.
1454 (restore_one_section): Rename from restore_section_callback.
1455 Change parameters.
1456 (restore_binary_file): Change parameters.
1457 (restore_command): Use foreach.
1458
f4f2b85f
TT
14592020-09-19 Tom Tromey <tom@tromey.com>
1460
1461 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1462 (gcore_copy_callback): Likewise.
1463 (gcore_memory_sections): Use foreach.
1464
b35c1d1c
TT
14652020-09-19 Tom Tromey <tom@tromey.com>
1466
1467 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1468 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1469 parameters.
1470 (generic_elf_osabi_sniffer): Use foreach.
1471 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1472 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1473
5bb6e9dd
TT
14742020-09-19 Tom Tromey <tom@tromey.com>
1475
1476 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1477 (dwarf2_get_dwz_file): Use foreach.
1478 (dwarf2_locate_dwo_sections): Change parameters.
1479 (open_and_init_dwo_file): Use foreach.
1480 (dwarf2_locate_common_dwp_sections): Change parameters.
1481 (open_and_init_dwp_file): Use foreach.
1482
ad7277da
TT
14832020-09-19 Tom Tromey <tom@tromey.com>
1484
1485 * symfile.h: (find_lowest_section): Don't declare.
1486 * symfile.c (find_lowest_section): Now static. Change
1487 parameters.
1488 (struct place_section_arg): Remove.
1489 (place_section): Change parameters.
1490 (addr_info_make_relative): Use foreach.
1491 (symfile_dummy_outputs): Remove.
1492 (default_symfile_relocate): Use foreach.
1493
cb814f2e
TT
14942020-09-19 Tom Tromey <tom@tromey.com>
1495
1496 * objfiles.c (add_to_objfile_sections): Rename from
1497 add_to_objfile_sections_full.
1498 (add_to_objfile_sections): Remove.
1499 (build_objfile_section_table): Use foreach.
1500
3cabfd26
TT
15012020-09-19 Tom Tromey <tom@tromey.com>
1502
1503 * stap-probe.c (get_stap_base_address_1): Remove.
1504 (get_stap_base_address): Use foreach.
1505
1ce51eb5
TT
15062020-09-19 Tom Tromey <tom@tromey.com>
1507
1508 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1509 parameters.
1510 (gdb_bfd_close_or_warn): Use foreach.
1511
a190fabb
TT
15122020-09-19 Tom Tromey <tom@tromey.com>
1513
1514 * corelow.c (add_to_thread_list): Change parameters.
1515 (core_target_open): Use foreach.
1516
cafb0d81
TT
15172020-09-19 Tom Tromey <tom@tromey.com>
1518
1519 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1520 existing function.
1521
c8d5abea
AB
15222020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1523
1524 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1525 for arrays.
1526
6d816919
AB
15272020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1528
1529 * eval.c: Remove 'f-lang.h' include.
1530 (value_f90_subarray): Moved to f-lang.c.
1531 (eval_call): Renamed to...
1532 (evaluate_subexp_do_call): ...this, is no longer static, header
1533 comment moved into header file.
1534 (evaluate_funcall): Update call to eval_call.
1535 (skip_undetermined_arglist): Moved to f-lang.c.
1536 (fortran_value_subarray): Likewise.
1537 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1538 moved to evaluate_subexp_f.
1539 (calc_f77_array_dims): Moved to f-lang.c
1540 * expprint.c (print_subexp_funcall): New function.
1541 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1542 moved to print_subexp_f, OP_FUNCALL uses new function.
1543 (dump_subexp_body_funcall): New function.
1544 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1545 moved to dump_subexp_f, OP_FUNCALL uses new function.
1546 * expression.h (evaluate_subexp_do_call): Declare.
1547 * f-lang.c (value_f90_subarray): Moved from eval.c.
1548 (skip_undetermined_arglist): Likewise.
1549 (calc_f77_array_dims): Likewise.
1550 (fortran_value_subarray): Likewise.
1551 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1552 (operator_length_f): Likewise.
1553 (print_subexp_f): Likewise.
1554 (dump_subexp_body_f): Likewise.
1555 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1556 declaration of this operation to here.
1557 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1558 support moved to operator_length_f.
1559 * parser-defs.h (dump_subexp_body_funcall): Declare.
1560 (print_subexp_funcall): Declare.
1561 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1562 fortran-operator.def.
1563
8c37706a
AB
15642020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1565
1566 * eval.c (fortran_value_subarray): New function, content is taken
1567 from...
1568 (evaluate_subexp_standard): ...here, in two places. Now arrays
1569 and strings both call the new function.
1570 (calc_f77_array_dims): Add header comment, handle strings.
1571
14f9473c
VC
15722020-09-18 Victor Collod <vcollod@nvidia.com>
1573
1574 PR gdb/26635
1575 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1576 (i386_analyze_prologue): Call i386_skip_endbr.
1577
b60cea74
TT
15782020-09-18 Tom Tromey <tromey@adacore.com>
1579
1580 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1581 (windows_nat_target::wait): Update.
1582 * target/wait.h (enum target_wait_flag): New. Use
1583 DEF_ENUM_FLAGS_TYPE.
1584 * target/target.h (target_wait): Change type of options.
1585 * target.h (target_options_to_string, default_target_wait):
1586 Update.
1587 (struct target_ops) <wait>: Change type of options.
1588 * target.c (target_wait, default_target_wait, do_option): Change
1589 type of "options".
1590 (target_options_to_string): Likewise.
1591 * target-delegates.c: Rebuild.
1592 * target-debug.h (target_debug_print_target_wait_flags): Rename
1593 from target_debug_print_options.
1594 * sol-thread.c (class sol_thread_target) <wait>: Update.
1595 (sol_thread_target::wait): Update.
1596 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1597 (rs6000_nat_target::wait): Update.
1598 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1599 Update.
1600 (remote_target::wait_ns, remote_target::wait_as): Change type of
1601 "options".
1602 (remote_target::wait): Update.
1603 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1604 (gdbsim_target::wait): Update.
1605 * record-full.c (class record_full_base_target) <wait>: Update.
1606 (record_full_wait_1): Change type of "options".
1607 (record_full_base_target::wait): Update.
1608 * record-btrace.c (class record_btrace_target) <wait>: Update.
1609 (record_btrace_target::wait): Update.
1610 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1611 Update.
1612 (ravenscar_thread_target::wait): Update.
1613 * procfs.c (class procfs_target) <wait>: Update.
1614 (procfs_target::wait): Update.
1615 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1616 * obsd-nat.c (obsd_nat_target::wait): Update.
1617 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1618 (nto_procfs_target::wait): Update.
1619 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1620 * nbsd-nat.c (nbsd_wait): Change type of "options".
1621 (nbsd_nat_target::wait): Update.
1622 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1623 (thread_db_target::wait): Update.
1624 * linux-nat.h (class linux_nat_target) <wait>: Update.
1625 * linux-nat.c (linux_nat_target::wait): Update.
1626 (linux_nat_wait_1): Update.
1627 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1628 "options".
1629 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1630 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1631 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1632 (go32_nat_target::wait): Update.
1633 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1634 * gnu-nat.c (gnu_nat_target::wait): Update.
1635 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1636 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1637 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1638 * darwin-nat.c (darwin_nat_target::wait): Update.
1639 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1640 (bsd_uthread_target::wait): Update.
1641 * aix-thread.c (class aix_thread_target) <wait>: Update.
1642 (aix_thread_target::wait): Update.
1643
0295dde6
AB
16442020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1645
1646 * compile/compile-object-run.c (create_copied_type_recursive): New
1647 function.
1648 (compile_object_run): Use new function.
1649
d3483b43
JT
16502020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1651
1652 * NEWS: Mention x86_64 Cygwin core file support.
1653
e7d612ad
JT
16542020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1655
1656 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1657 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1658
aff9d387
JT
16592020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1660
62a5151b
JT
1661 * windows-tdep.h: Add prototypes.
1662 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1663 (i386_windows_core_pid_to_str): Move and rename ...
1664 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1665 (windows_core_pid_to_str): ... and here.
1666 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1667
16682020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1669 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1670 (amd64_windows_init_abi_common): ... and register.
1671
7d155da3
JT
16722020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1673
1674 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1675 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1676
e8ef12b9
PA
16772020-09-18 Pedro Alves <pedro@palves.net>
1678
1679 PR gdb/26631
1680 * thread.c (thread_find_command): Switch inferior before calling
1681 target methods.
1682
c1e1314d
TT
16832020-09-17 Tom Tromey <tromey@adacore.com>
1684
1685 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1686 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1687 (tdesc_arch_data_up): New typedef.
1688 (tdesc_use_registers, tdesc_data_alloc): Update.
1689 (tdesc_data_cleanup): Don't declare.
1690 * target-descriptions.c (tdesc_data_alloc): Return a
1691 tdesc_arch_data_up.
1692 (tdesc_arch_data_deleter::operator()): Rename from
1693 tdesc_data_cleanup. Change argument type.
1694 (tdesc_use_registers): Change early_data to an rvalue reference.
1695 (tdesc_use_registers): Don't use delete.
1696 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1697 * s390-tdep.c (s390_gdbarch_init): Update.
1698 * rx-tdep.c (rx_gdbarch_init): Update.
1699 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1700 * riscv-tdep.c (riscv_gdbarch_init): Update.
1701 * or1k-tdep.c (or1k_gdbarch_init): Update.
1702 * nios2-tdep.c (nios2_gdbarch_init): Update.
1703 * nds32-tdep.c (nds32_gdbarch_init): Update.
1704 * mips-tdep.c (mips_gdbarch_init): Update.
1705 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1706 * m68k-tdep.c (m68k_gdbarch_init): Update.
1707 * i386-tdep.c (i386_gdbarch_init): Update.
1708 * arm-tdep.c (arm_gdbarch_init): Update.
1709 * arc-tdep.c (arc_tdesc_init): Update.
1710 (arc_gdbarch_init): Update.
1711 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1712
0363df3d
HD
17132020-09-17 Hannes Domani <ssbssa@yahoo.de>
1714
1715 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1716 for WOW64 processes.
1717
280a9412
TT
17182020-09-17 Tom Tromey <tom@tromey.com>
1719
1720 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1721
6108fd18
TT
17222020-09-17 Tom Tromey <tom@tromey.com>
1723
1724 * value.c (preserve_values): Update.
1725 * python/py-type.c (save_objfile_types): Update.
1726 * guile/scm-type.c (save_objfile_types): Update.
1727 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1728 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1729 * compile/compile-object-run.c (compile_object_run): Update.
1730
fa9b1164
TT
17312020-09-17 Tom Tromey <tom@tromey.com>
1732
1733 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1734 Remove.
1735 <m_table>: Now htab_up.
1736 * typeprint.c (typedef_hash_table::recursively_update)
1737 (typedef_hash_table::add_template_parameters)
1738 (typedef_hash_table::typedef_hash_table): Update.
1739 (typedef_hash_table::~typedef_hash_table): Remove.
1740 (typedef_hash_table::typedef_hash_table)
1741 (typedef_hash_table::find_global_typedef)
1742 (typedef_hash_table::find_typedef): Update.
1743
eb53f105
TT
17442020-09-17 Tom Tromey <tom@tromey.com>
1745
1746 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1747
7a8a5d47
TT
17482020-09-17 Tom Tromey <tom@tromey.com>
1749
1750 * linespec.c (class decode_compound_collector)
1751 <~decode_compound_collector>: Remove.
1752 <m_unique_syms>: Now htab_up.
1753 (decode_compound_collector::operator ()): Update.
1754 (class symtab_collector) <~symtab_collector>: Remove.
1755 <m_symtab_table>: Now htab_up.
1756 (symtab_collector::operator ()): Update.
1757
99032cfc
TT
17582020-09-17 Tom Tromey <tom@tromey.com>
1759
1760 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1761 (filename_seen_cache::clear): Update.
1762 (~filename_seen_cache): Remove.
1763 (filename_seen_cache::seen): Update.
1764 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1765 htab_up.
1766 <~filename_seen_cache>: Remove.
1767 <traverse>: Update.
1768
32580f6d
TT
17692020-09-17 Tom Tromey <tom@tromey.com>
1770
1771 * completer.c (completion_tracker::discard_completions)
1772 (completion_tracker::~completion_tracker)
1773 (completion_tracker::maybe_add_completion)
1774 (completion_tracker::remove_completion)
1775 (completion_tracker::recompute_lowest_common_denominator)
1776 (completion_tracker::build_completion_result): Update.
1777 * completer.h (class completion_tracker) <have_completions>:
1778 Update.
1779 <m_entries_hash>: Now htab_up.
1780
c1fb9836
TT
17812020-09-17 Tom Tromey <tom@tromey.com>
1782
1783 * breakpoint.c (ambiguous_names_p): Use htab_up.
1784
88f07206
TT
17852020-09-17 Tom Tromey <tom@tromey.com>
1786
1787 * auto-load.c (struct auto_load_pspace_info)
1788 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1789 <loaded_script_files, loaded_script_texts>: Change type to
1790 htab_up.
1791 (~auto_load_pspace_info) Remove.
1792 (init_loaded_scripts_info, maybe_add_script_file)
1793 (maybe_add_script_text, auto_load_info_scripts): Update.
1794
9519b2ee
TT
17952020-09-17 Tom Tromey <tromey@adacore.com>
1796
1797 * c-exp.y (name_obstack): Now static.
1798
d2cd4113
CC
17992020-09-17 Chungyi Chi <demonic@csie.io>
1800
1801 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1802
b650a282
SM
18032020-09-16 Simon Marchi <simon.marchi@efficios.com>
1804
1805 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1806 (add_solib_catchpoint): Likewise.
1807 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1808 to bool.
1809 (add_solib_catchpoint): Change int parameter/variable to bool.
1810 (catch_load_or_unload): Likewise.
1811 (init_catchpoint): Likewise.
1812 (create_fork_vfork_event_catchpoint): Likewise.
1813 (catch_fork_command_1): Likewise.
1814 (catch_exec_command_1): Likewise.
1815
4d0bcfcf
SM
18162020-09-16 Simon Marchi <simon.marchi@efficios.com>
1817
1818 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1819 Change instance_flags to m_instance_flags.
1820
fe830662
TT
18212020-09-16 Tom Tromey <tromey@adacore.com>
1822
1823 PR gdb/26598:
1824 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1825
fe5ddfc3
JB
18262020-09-16 John Baldwin <jhb@FreeBSD.org>
1827
1828 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1829 PL_FLAG_EXEC.
1830 (fbsd_nat_target::insert_exec_catchpoint)
1831 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1832 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1833 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1834
e911c666
JB
18352020-09-16 John Baldwin <jhb@FreeBSD.org>
1836
1837 * configure.ac: Remove check for kinfo_getvmmap().
1838 * configure, config.in: Regenerate.
1839 * fbsd-nat.c (fbsd_read_mapping): Remove
1840 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1841 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1842 kinfo_get_vmmap() are always present.
1843
1f17d372
JB
18442020-09-16 John Baldwin <jhb@FreeBSD.org>
1845
1846 * fbsd-nat.c: Always include support for
1847 TARGET_OBJECT_SIGNAL_INFO.
1848
bcb1da7f
JB
18492020-09-16 John Baldwin <jhb@FreeBSD.org>
1850
1851 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1852 sysctl and remove procfs fallback.
1853
5515f729
JB
18542020-09-16 John Baldwin <jhb@FreeBSD.org>
1855
1856 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1857 * fbsd-nat.h: Likewise.
1858
da1df1db
TBA
18592020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1860
1861 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1862 argument.
1863
0e25e767
AB
18642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1865
1866 * ada-lang.c (ada_language_data): Delete.
1867 (ada_language): Remove references to ada_language_data.
1868 * c-lang.c (c_language_data): Delete.
1869 (c_language): Remove references to c_language_data.
1870 (cplus_language_data): Delete.
1871 (cplus_language): Remove references to cplus_language_data.
1872 (asm_language_data): Delete.
1873 (asm_language): Remove references to asm_language_data.
1874 (minimal_language_data): Delete.
1875 (minimal_language): Remove references to minimal_language_data.
1876 * d-lang.c (d_language_data): Delete.
1877 (d_language): Remove references to d_language_data.
1878 * f-lang.c (f_language_data): Delete.
1879 (f_language): Remove references to f_language_data.
1880 * go-lang.c (go_language_data): Delete.
1881 (go_language): Remove references to go_language_data.
1882 * language.c (unknown_language_data): Delete.
1883 (unknown_language): Remove references to unknown_language_data.
1884 (auto_language_data): Delete.
1885 (auto_language): Remove references to auto_language_data.
1886 * language.h (language_data): Delete struct.
1887 (language_defn): No longer inherit from language_data.
1888 * m2-lang.c (m2_language_data): Delete.
1889 (m2_language): Remove references to m2_language_data.
1890 * objc-lang.c (objc_language_data): Delete.
1891 (objc_language): Remove references to objc_language_data.
1892 * opencl-lang.c (opencl_language_data): Delete.
1893 (opencl_language): Remove references to opencl_language_data.
1894 * p-lang.c (pascal_language_data): Delete.
1895 (pascal_language): Remove references to pascal_language_data.
1896 * rust-lang.c (rust_language_data): Delete.
1897 (rust_language): Remove references to rust_language_data.
1898
b7c6e27d
AB
18992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1900
1901 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1902 initializer.
1903 (ada_language::opcode_print_table): New member function.
1904 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1905 (c_language::opcode_print_table): New member function.
1906 (cplus_language_data): Remove la_op_print_tab initializer.
1907 (cplus_language::opcode_print_table): New member function.
1908 (asm_language_data): Remove la_op_print_tab initializer.
1909 (asm_language::opcode_print_table): New member function.
1910 (minimal_language_data): Remove la_op_print_tab initializer.
1911 (minimal_language::opcode_print_table): New member function.
1912 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1913 (d_language::opcode_print_table): New member function.
1914 * expprint.c (print_subexp_standard): Update call to
1915 opcode_print_table.
1916 (op_string): Likewise.
1917 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1918 (f_language::opcode_print_table): New member function.
1919 * go-lang.c (go_language_data): Remove la_op_print_tab
1920 initializer.
1921 (go_language::opcode_print_table): New member function.
1922 * language.c (unknown_language_data): Remove la_op_print_tab
1923 initializer.
1924 (unknown_language::opcode_print_table): New member function.
1925 (auto_language_data): Remove la_op_print_tab initializer.
1926 (auto_language::opcode_print_table): New member function.
1927 * language.h (language_data): Remove la_op_print_tab field.
1928 (language_defn::opcode_print_table): Declare new member function.
1929 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1930 initializer.
1931 (m2_language::opcode_print_table): New member function.
1932 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1933 initializer.
1934 (objc_language::opcode_print_table): New member function.
1935 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1936 initializer.
1937 (opencl_language::opcode_print_table): New member function.
1938 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1939 initializer.
1940 (pascal_language::opcode_print_table): New member function.
1941 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1942 initializer.
1943 (rust_language::opcode_print_table): New member function.
1944
5aba6ebe
AB
19452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1946
1947 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1948 (ada_language::expression_ops): New member function.
1949 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1950 (c_language::expression_ops): New member function.
1951 (cplus_language_data): Remove la_exp_desc initializer.
1952 (cplus_language::expression_ops): New member function.
1953 (asm_language_data): Remove la_exp_desc initializer.
1954 (asm_language::expression_ops): New member function.
1955 (minimal_language_data): Remove la_exp_desc initializer.
1956 (minimal_language::expression_ops): New member function.
1957 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1958 (d_language::expression_ops): New member function.
1959 * eval.c (evaluate_subexp): Update call to expression_ops.
1960 * expprint.c (print_subexp): Likewise.
1961 (op_name): Likewise.
1962 (dump_subexp_body): Likewise.
1963 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1964 (f_language::expression_ops): New member function.
1965 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1966 (go_language::expression_ops): New member function.
1967 * language.c (language_defn::expression_ops): New function.
1968 (unknown_language_data): Remove la_exp_desc initializer.
1969 (auto_language_data): Likewise.
1970 * language.h (language_data): Remove la_exp_desc field.
1971 (language_defn::expression_ops): Declare new member function.
1972 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1973 (m2_language::expression_ops): New member function.
1974 * objc-lang.c (objc_language_data): Remove la_exp_desc
1975 initializer.
1976 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1977 initializer.
1978 (opencl_language::expression_ops): New member function.
1979 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1980 * parse.c (operator_length): Update call to expression_ops.
1981 (exp_iterate): Likewise.
1982 * rust-lang.c (rust_language_data): Remove la_exp_desc
1983 initializer.
1984 (ruse_language::expression_ops): New member function.
1985
b63a3f3f
AB
19862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1987
1988 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1989 initializer.
1990 (ada_language::varobj_ops): New member function.
1991 * c-lang.c (c_language_data): Remove la_varobj_ops
1992 initializer.
1993 (cplus_language_data): Likewise.
1994 (cplus_language::varobj_ops): New member function.
1995 (asm_language_data): Remove la_varobj_ops initializer.
1996 (minimal_language_data): Likewise.
1997 * d-lang.c (d_language_data): Likewise.
1998 * f-lang.c (f_language_data): Likewise.
1999 * go-lang.c (go_language_data): Likewise.
2000 * language.c (language_defn::varobj_ops): New function.
2001 (unknown_language_data): Remove la_varobj_ops
2002 initializer.
2003 (auto_language_data): Likewise.
2004 * language.h (language_data): Remove la_varobj_ops field.
2005 (language_defn::varobj_ops): Declare new member function.
2006 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2007 * objc-lang.c (objc_language_data): Likewise.
2008 * opencl-lang.c (opencl_language_data): Likewise.
2009 * p-lang.c (pascal_language_data): Likewise.
2010 * rust-lang.c (rust_language_data): Likewise.
2011 * varobj.c (varobj_create): Update call to varobj_ops.
2012 * varobj.h (default_varobj_ops): Delete define.
2013
1ac14a04
AB
20142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2015
2016 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2017 initializer.
2018 * c-lang.c (c_language_data): Likewise.
2019 (c_language::macro_expansion): New member function.
2020 (cplus_language_data): Likewise.
2021 (cplus_language::macro_expansion): New member function.
2022 (asm_language_data): Likewise.
2023 (asm_language::macro_expansion): New member function.
2024 (minimal_language_data): Likewise.
2025 (minimal_language::macro_expansion): New member function.
2026 * d-lang.c (d_language_data): Remove la_macro_expansion
2027 initializer.
2028 * f-lang.c (f_language_data): Likewise.
2029 * go-lang.c (go_language_data): Likewise.
2030 * language.c (unknown_language_data): Likewise.
2031 (auto_language_data): Likewise.
2032 * language.h (language_data): Remove la_macro_expansion field.
2033 (language_defn::macro_expansion): New member function.
2034 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2035 initializer.
2036 * objc-lang.c (objc_language_data): Likewise.
2037 (objc_language::macro_expansion): New member function.
2038 * opencl-lang.c (opencl_language_data): Likewise.
2039 (opencl_language::macro_expansion): New member function.
2040 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2041 initializer.
2042 * rust-lang.c (rust_language_data): Likewise.
2043 * symtab.c (default_collect_symbol_completion_matches_break_on):
2044 Update call to macro_expansion.
2045
3a3440fb
AB
20462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2047
2048 * ada-lang.c (ada_language_data): Remove la_array_ordering
2049 initializer.
2050 * c-lang.c (c_language_data): Likewise.
2051 (cplus_language_data): Likewise.
2052 (asm_language_data): Likewise.
2053 (minimal_language_data): Likewise.
2054 * d-lang.c (d_language_data): Likewise.
2055 * dwarf2/read.c (read_array_order): Update for call to
2056 array_ordering.
2057 * f-lang.c (f_language_data): Remove la_array_ordering
2058 initializer.
2059 (f_language::array_ordering): New member function.
2060 * go-lang.c (go_language_data): Remove la_array_ordering
2061 initializer.
2062 * language.c (unknown_language_data): Likewise.
2063 (auto_language_data): Likewise.
2064 * language.h (language_data): Delete la_array_ordering field.
2065 (language_defn::array_ordering): New member function.
2066 * m2-lang.c (m2_language_data): Remove la_array_ordering
2067 initializer.
2068 * objc-lang.c (objc_language_data): Likewise.
2069 * opencl-lang.c (opencl_language_data): Likewise.
2070 * p-lang.c (pascal_language_data): Likewise.
2071 * rust-lang.c (rust_language_data): Likewise.
2072
0d201fa4
AB
20732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2074
2075 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2076 initializer.
2077 * c-lang.c (c_language_data): Likewise.
2078 (cplus_language_data): Likewise.
2079 (asm_language_data): Likewise.
2080 (minimal_language_data): Likewise.
2081 * d-lang.c (d_language_data): Likewise.
2082 * f-lang.c (f_language_data): Likewise.
2083 (f_language::case_sensitivity): New member function.
2084 * go-lang.c (go_language_data): Remove la_case_sensitivity
2085 initializer.
2086 * language.c (enum case_mode): Moved here from language.h.
2087 (case_mode): Make static.
2088 (show_case_command): Update for case_sensitivity being a method.
2089 (set_case_command): Likewise.
2090 (set_range_case): Likewise.
2091 (unknown_language_data): Remove la_case_sensitivity initializer.
2092 (auto_language_data): Likewise.
2093 * language.h (case_mode): Delete, move enum declaration to
2094 language.c.
2095 (language_data): Delete la_case_sensitivity field.
2096 (language_defn::case_sensitivity): New member function.
2097 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2098 initializer.
2099 * objc-lang.c (objc_language_data): Likewise.
2100 * opencl-lang.c (opencl_language_data): Likewise.
2101 * p-lang.c (pascal_language_data): Likewise.
2102 * rust-lang.c (rust_language_data): Likewise.
2103
efdf6a73
AB
21042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2105
2106 * ada-lang.c (ada_language_data): Remove la_range_check
2107 initializer.
2108 * c-lang.c (c_language_data): Likewise.
2109 (cplus_language_data): Likewise.
2110 (asm_language_data): Likewise.
2111 (minimal_language_data): Likewise.
2112 * d-lang.c (d_language_data): Likewise.
2113 * f-lang.c (f_language_data): Likewise.
2114 (f_language::range_checking_on_by_default): New member function.
2115 * go-lang.c (go_language_data): Remove la_range_check initializer.
2116 * language.c (enum range_mode): Moved here from language.h.
2117 (range_mode): Made static.
2118 (show_range_command): Update to use
2119 range_checking_on_by_default.
2120 (set_range_command): Likewise.
2121 (set_range_case): Likewise.
2122 (unknown_language_data): Remove la_range_check initializer.
2123 (auto_language_data): Likewise.
2124 * language.h (range_mode): Delete. Enum definition moved to
2125 language.c.
2126 (language_data): Remove la_range_check field.
2127 (language_defn::range_checking_on_by_default): New member
2128 function.
2129 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2130 (m2_language::range_checking_on_by_default): New member function.
2131 * objc-lang.c (objc_language_data): Remove la_range_check
2132 initializer.
2133 * opencl-lang.c (opencl_language_data): Likewise.
2134 * p-lang.c (pascal_language_data): Likewise.
2135 (pascal_language::range_checking_on_by_default): New member
2136 function.
2137 * rust-lang.c (rust_language_data): Remove la_range_check
2138 initializer.
2139 (rust_language::range_checking_on_by_default): New member
2140 function.
2141
bf92aec5
AB
21422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2143
2144 * dwarf2/read.c (dwarf2_physname): Remove special case for
2145 language_go.
2146 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2147 member function.
2148
d3355e4d
AB
21492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2150
2151 * ada-lang.c (ada_language_data): Remove
2152 la_store_sym_names_in_linkage_form_p initializer.
2153 (ada_language::store_sym_names_in_linkage_form_p): New member
2154 function.
2155 * c-lang.c (c_language_data): Remove
2156 la_store_sym_names_in_linkage_form_p initializer.
2157 (c_language::store_sym_names_in_linkage_form_p): New member
2158 function.
2159 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2160 initializer.
2161 (asm_language_data): Likewise.
2162 (asm_language::store_sym_names_in_linkage_form_p): New member
2163 function.
2164 (minimal_language_data): Remove
2165 la_store_sym_names_in_linkage_form_p initializer.
2166 (minimal_language::store_sym_names_in_linkage_form_p): New member
2167 function.
2168 * d-lang.c (d_language_data): Remove
2169 la_store_sym_names_in_linkage_form_p initializer.
2170 * dwarf2/read.c (dwarf2_physname): Update call to
2171 store_sym_names_in_linkage_form_p.
2172 * f-lang.c (f_language_data): Remove
2173 la_store_sym_names_in_linkage_form_p initializer.
2174 * go-lang.c (go_language_data): Remove
2175 la_store_sym_names_in_linkage_form_p initializer.
2176 * language.c (unknown_language_data): Remove
2177 la_store_sym_names_in_linkage_form_p initializer.
2178 (unknown_language::store_sym_names_in_linkage_form_p): New member
2179 function.
2180 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2181 initializer.
2182 (auto_language::store_sym_names_in_linkage_form_p): New member
2183 function.
2184 * language.h (language_data): Remove
2185 la_store_sym_names_in_linkage_form_p member variable.
2186 (language_defn::store_sym_names_in_linkage_form_p): New member
2187 function.
2188 * m2-lang.c (m2_language_data): Remove
2189 la_store_sym_names_in_linkage_form_p initializer.
2190 * objc-lang.c (objc_language_data): Likewise.
2191 * opencl-lang.c (opencl_language_data): Likewise.
2192 * p-lang.c (pascal_language_data): Likewise.
2193 * rust-lang.c (rust_language_data): Likewise.
2194
22c12a6c
AB
21952020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2196
2197 * ada-lang.c (ada_language_data): Remove string_lower_bound
2198 initializer.
2199 * c-lang.c (c_language_data): Likewise.
2200 (cplus_language_data): Likewise.
2201 (asm_language_data): Likewise.
2202 (minimal_language_data): Likewise.
2203 * d-lang.c (d_language_data): Likewise.
2204 * f-lang.c (f_language_data): Likewise.
2205 * go-lang.c (go_language_data): Likewise.
2206 * language.c (unknown_language_data): Likewise.
2207 (auto_language_data): Likewise.
2208 * language.h (language_data): Remove string_lower_bound field.
2209 (language_defn::string_lower_bound): New member function.
2210 * m2-lang.c (m2_language_data): Remove string_lower_bound
2211 initializer.
2212 (m2_language::string_lower_bound): New member function.
2213 * objc-lang.c (objc_language_data): Remove string_lower_bound
2214 initializer.
2215 * opencl-lang.c (opencl_language_data): Likewise.
2216 * p-lang.c (pascal_language_data): Likewise.
2217 * rust-lang.c (rust_language_data): Likewise.
2218 * valops.c (value_cstring): Update call to string_lower_bound.
2219 (value_string): Likewise.
2220 * value.c (allocate_repeated_value): Likewise.
2221
1c236ddd
AB
22222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2223
2224 * valops.c (value_repeat): Fix incorrect argument name in comment.
2225
67bd3fd5
AB
22262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2227
2228 * ada-lang.c (ada_language_data): Remove c_style_arrays
2229 initializer.
2230 (ada_language::c_style_arrays_p): New member fuction.
2231 * c-lang.c (c_language_data): Remove c_style_arrays
2232 initializer.
2233 (cplus_language_data): Likewise.
2234 (asm_language_data): Likewise.
2235 (minimal_language_data): Likewise.
2236 * d-lang.c (d_language_data): Likewise.
2237 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2238 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2239 (f_language::c_style_arrays_p): New member function.
2240 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2241 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2242 * language.c (unknown_language_data): Remove c_style_arrays
2243 initializer.
2244 (auto_language_data): Likewise.
2245 * language.h (language_data): Remove c_style_arrays field.
2246 (language_defn::c_style_arrays_p): New member function.
2247 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2248 (m2_language::c_style_arrays_p): New member function.
2249 * objc-lang.c (objc_language_data): Remove c_style_arrays
2250 initializer.
2251 * opencl-lang.c (opencl_language_data): Likewise.
2252 * p-lang.c (pascal_language_data): Likewise.
2253 * rust-lang.c (rust_language_data): Likewise.
2254 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2255 and update local variable to a bool.
2256 * valops.c (value_cast): Update call to c_style_arrays_p.
2257 (value_array): Likewise.
2258 * value.c (coerce_array): Likewise.
2259
85967615
AB
22602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2261
2262 * ada-lang.c (ada_language_data): Remove la_language initializer.
2263 * c-lang.c (c_language_data): Likewise.
2264 (cplus_language_data): Likewise.
2265 (asm_language_data): Likewise.
2266 (minimal_language_data): Likewise.
2267 * d-lang.c (d_language_data): Likewise.
2268 * f-lang.c (f_language_data): Likewise.
2269 * go-lang.c (go_language_data): Likewise.
2270 * language.c (unknown_language_data): Likewise.
2271 (auto_language_data): Likewise.
2272 * language.h (language_data): Remove la_language field.
2273 (language_defn::language_defn): Initialise la_language field.
2274 (language_defn::la_language): New member variable.
2275 * m2-lang.c (m2_language_data): Remove la_language field.
2276 * objc-lang.c (objc_language_data): Likewise.
2277 * opencl-lang.c (opencl_language_data): Likewise.
2278 * p-lang.c (pascal_language_data): Likewise.
2279 * rust-lang.c (rust_language_data): Likewise.
2280
e171d6f1
AB
22812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2282
2283 * ada-lang.c (ada_extensions): Delete, moved into
2284 ada_language::filename_extensions.
2285 (ada_language_data): Remove la_filename_extensions initializer.
2286 (ada_language::filename_extensions): New member function.
2287 * c-lang.c (c_extensions): Delete, moved into
2288 c_language::filename_extensions.
2289 (c_language_data): Remove la_filename_extensions initializer.
2290 (c_language::filename_extensions): New member function.
2291 (cplus_extensions): Delete, moved into
2292 cplus_language::filename_extensions.
2293 (cplus_language_data): Remove la_filename_extensions initializer.
2294 (cplus_language::filename_extensions): New member function.
2295 (asm_extensions): Delete, moved into
2296 asm_language::filename_extensions.
2297 (asm_language_data): Remove la_filename_extensions initializer.
2298 (asm_language::filename_extensions): New member function.
2299 (minimal_language_data): Remove la_filename_extensions
2300 initializer.
2301 * d-lang.c (d_extensions): Delete, moved into
2302 d_language::filename_extensions.
2303 (d_language_data): Remove la_filename_extensions initializer.
2304 (d_language::filename_extensions): New member function.
2305 * f-lang.c (f_extensions): Delete, moved into
2306 f_language::filename_extensions.
2307 (f_language_data): Remove la_filename_extensions initializer.
2308 (f_language::filename_extensions): New member function.
2309 * go-lang.c (go_language_data): Remove la_filename_extensions
2310 initializer.
2311 * language.c (add_set_language_command): Update now that
2312 filename_extensions returns a vector.
2313 (unknown_language_data): Remove la_filename_extensions
2314 initializer.
2315 (auto_language_data): Likewise.
2316 * language.h (language_data): Remove la_filename_extensions field.
2317 (language_defn::filename_extensions): New member function.
2318 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2319 initializer.
2320 * objc-lang.c (objc_extensions): Delete, moved into
2321 objc_language::filename_extensions.
2322 (objc_language_data): Remove la_filename_extensions initializer.
2323 (objc_language::filename_extensions): New member function.
2324 * opencl-lang.c (opencl_language_data): Remove
2325 la_filename_extensions initializer.
2326 * p-lang.c (pascal_extensions): Delete, moved into
2327 pascal_language::filename_extensions.
2328 (pascal_language_data): Remove la_filename_extensions initializer.
2329 (pascal_language::filename_extensions): New member function.
2330 * rust-lang.c (rust_extensions): Delete, moved into
2331 rust_language::filename_extensions.
2332 (rust_language_data): Remove la_filename_extensions initializer.
2333 (rust_language::filename_extensions): New member function.
2334 * symfile.c (add_filename_language): Add new assert.
2335
6f7664a9
AB
23362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2337
2338 * ada-lang.c (ada_language_data): Remove la_name and
2339 la_natural_name initializers.
2340 (ada_language::name): New member function.
2341 (ada_language::natural_name): New member function.
2342 * c-lang.c (c_language_data): Remove la_name and
2343 la_natural_name initializers.
2344 (c_language::name): New member function.
2345 (c_language::natural_name): New member function.
2346 (cplus_language_data): Remove la_name and
2347 la_natural_name initializers.
2348 (cplus_language::name): New member function.
2349 (cplus_language::natural_name): New member function.
2350 (asm_language_data): Remove la_name and
2351 la_natural_name initializers.
2352 (asm_language::name): New member function.
2353 (asm_language::natural_name): New member function.
2354 (minimal_language_data): Remove la_name and
2355 la_natural_name initializers.
2356 (minimal_language::name): New member function.
2357 (minimal_language::natural_name): New member function.
2358 * compile/compile.c (compile_to_object): Update call to
2359 lanugage_defn::name.
2360 * d-lang.c (d_language_data): Remove la_name and
2361 la_natural_name initializers.
2362 (d_language::name): New member function.
2363 (d_language::natural_name): New member function.
2364 * expprint.c (print_subexp_standard): Update call to
2365 language_defn::name.
2366 (dump_raw_expression): Likewise
2367 (dump_prefix_expression): Likewise.
2368 * f-lang.c (f_language_data): Remove la_name and
2369 la_natural_name initializers.
2370 (f_language::name): New member function.
2371 (f_language::natural_name): New member function.
2372 * go-lang.c (go_language_data): Remove la_name and
2373 la_natural_name initializers.
2374 (go_language::name): New member function.
2375 (go_language::natural_name): New member function.
2376 * language.c (show_language_command): Update call to
2377 language_defn::name.
2378 (set_language_command): Likewise.
2379 (language_enum): Likewise.
2380 (language_str): Likewise.
2381 (add_set_language_command): Likewise, use
2382 language_defn::natural_name in the doc string.
2383 (unknown_language_data): Remove la_name and
2384 la_natural_name initializers.
2385 (unknown_language::name): New member function.
2386 (unknown_language::natural_name): New member function.
2387 (auto_language_data): Remove la_name and
2388 la_natural_name initializers.
2389 (auto_language::name): New member function.
2390 (auto_language::natural_name): New member function.
2391 (language_lookup_primitive_type_as_symbol): Update call to
2392 language_defn::name.
2393 * language.h (language_data): Remove la_name and la_natural_name
2394 member variables.
2395 (language_defn::name): New member function.
2396 (language_defn::natural_name): New member function.
2397 * m2-lang.c (m2_language_data): Remove la_name and
2398 la_natural_name initializers.
2399 (m2_language::name): New member function.
2400 (m2_language::natural_name): New member function.
2401 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2402 language_defn::natural_name.
2403 * objc-lang.c (objc_language_data): Remove la_name and
2404 la_natural_name initializers.
2405 (objc_language::name): New member function.
2406 (objc_language::natural_name): New member function.
2407 * opencl-lang.c (opencl_language_data): Remove la_name and
2408 la_natural_name initializers.
2409 (opencl_language::name): New member function.
2410 (opencl_language::natural_name): New member function.
2411 * p-lang.c (pascal_language_data): Remove la_name and
2412 la_natural_name initializers.
2413 (pascal_language::name): New member function.
2414 (pascal_language::natural_name): New member function.
2415 * rust-lang.c (rust_language_data): Remove la_name and
2416 la_natural_name initializers.
2417 (rust_language::name): New member function.
2418 (rust_language::natural_name): New member function.
2419 * symtab.c (lookup_language_this): Update call to
2420 language_defn::name.
2421
5bae7c4e
AB
24222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2423
2424 * ada-lang.c (ada_language_data): Remove la_name_of_this
2425 initializer.
2426 * ax-gdb.c (gen_expr): Update call to name_of_this.
2427 * c-exp.y (classify_name): Likewise.
2428 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2429 (cplus_language_data): Likewise.
2430 (cplus_language::name_of_this): New member function.
2431 (asm_language_data): Remove la_name_of_this initializer.
2432 (minimal_language_data): Likewise.
2433 * d-lang.c (d_language_data): Likewise.
2434 (d_language::name_of_this): New member function.
2435 * expprint.c (print_subexp_standard): Update call to name_of_this.
2436 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2437 * go-lang.c (go_language_data): Likewise.
2438 * language.c (unknown_language_data): Likewise.
2439 (unknown_language::name_of_this): New member function.
2440 (auto_language_data): Remove la_name_of_this initializer.
2441 (auto_language::name_of_this): New member function.
2442 * language.h (language_data): Delete la_name_of_this member
2443 variable.
2444 (language_defn::name_of_this): New member function.
2445 * m2-lang.c (m2_language_data): Remove la_name_of_this
2446 initializer.
2447 * objc-lang.c (objc_language_data): Likewise.
2448 (objc_language::name_of_this): New member function.
2449 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2450 initializer.
2451 * p-lang.c (pascal_language_data): Likewise.
2452 (pascal_language::name_of_this): New member function.
2453 * rust-lang.c (rust_language_data): Remove la_name_of_this
2454 initializer.
2455 * symtab.c (lookup_language_this): Update call to name_of_this.
2456 (lookup_symbol_aux): Likewise.
2457 * valops.c (value_of_this): Likewise.
2458
22e3f3ed
AB
24592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2460
2461 * ada-lang.c (ada_language_data): Remove
2462 la_struct_too_deep_ellipsis initializer.
2463 (ada_language::struct_too_deep_ellipsis): New member function.
2464 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2465 initializer.
2466 (cplus_language_data): Likewise.
2467 (asm_language_data): Likewise.
2468 (minimal_language_data): Likewise.
2469 * cp-valprint.c (cp_print_value): Update call to
2470 struct_too_deep_ellipsis.
2471 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2472 initializer.
2473 * f-lang.c (f_language_data): Likewise.
2474 (f_language::struct_too_deep_ellipsis): New member function.
2475 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2476 initializer.
2477 * language.c (unknown_language_data): Likewise.
2478 (auto_language_data): Likewise.
2479 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2480 member variable.
2481 (language_defn::struct_too_deep_ellipsis): New member function.
2482 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2483 initializer.Q
2484 * objc-lang.c (objc_language_data): Likewise.
2485 * opencl-lang.c (opencl_language_data): Likewise.
2486 * p-lang.c (pascal_language_data): Likewise.
2487 * rust-lang.c (rust_language_data): Likewise.
2488 * valprint.c (val_print_check_max_depth): Update call to
2489 struct_too_deep_ellipsis.
2490
ed29e1c7
FW
24912020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2492
2493 * MAINTAINERS (Write After Approval): Add myself.
2494
12d8f940
TT
24952020-09-15 Tom Tromey <tom@tromey.com>
2496
2497 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2498 Remove.
2499
6b5a7bc7
TT
25002020-09-15 Tom Tromey <tom@tromey.com>
2501
2502 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2503 and TYPE_CODE_METHODPTR cases.
2504 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2505 (c_value_print_inner): Update.
2506 * valprint.c (generic_value_print_memberptr): New function, from
2507 c_value_print_memberptr.
2508 (generic_value_print): Use it. Call cplus_print_method_ptr.
2509
47f0e2ff
TT
25102020-09-15 Tom Tromey <tromey@adacore.com>
2511
2512 * python/python-internal.h (PyInt_FromLong): Remove define.
2513 * python/py-value.c (convert_value_from_python): Use
2514 gdb_py_object_from_longest.
2515 * python/py-type.c (typy_get_code): Use
2516 gdb_py_object_from_longest.
2517 * python/py-symtab.c (salpy_get_line): Use
2518 gdb_py_object_from_longest.
2519 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2520 gdb_py_object_from_longest.
2521 * python/py-record.c (recpy_gap_reason_code): Use
2522 gdb_py_object_from_longest.
2523 * python/py-record-btrace.c (recpy_bt_insn_size)
2524 (recpy_bt_func_level, btpy_list_count): Use
2525 gdb_py_object_from_longest.
2526 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2527 gdb_py_object_from_longest. Fix error handling.
2528 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2529 gdb_py_object_from_longest.
2530 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2531 gdb_py_object_from_longest.
2532 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2533 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2534 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2535
512116ce
TT
25362020-09-15 Tom Tromey <tromey@adacore.com>
2537
2538 * python/python.c (gdbpy_parameter_value): Use
2539 gdb_py_object_from_ulongest.
2540
4ab1029c
TT
25412020-09-15 Tom Tromey <tromey@adacore.com>
2542
2543 * python/py-infevents.c (create_register_changed_event_object):
2544 Use gdb_py_object_from_longest.
2545 * python/py-exitedevent.c (create_exited_event_object): Use
2546 gdb_py_object_from_longest.
2547
062534d4
TT
25482020-09-15 Tom Tromey <tromey@adacore.com>
2549
2550 * python/python.c (gdbpy_parameter_value): Use
2551 gdb_py_object_from_longest.
2552 * python/py-type.c (convert_field, typy_range): Use
2553 gdb_py_object_from_longest.
2554 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2555 gdb_py_object_from_longest.
2556 * python/py-lazy-string.c (stpy_get_length): Use
2557 gdb_py_object_from_longest.
2558 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2559 gdb_py_object_from_longest.
2560 * python/py-infevents.c (create_memory_changed_event_object): Use
2561 gdb_py_object_from_longest.
2562 * python/py-inferior.c (infpy_get_num): Use
2563 gdb_py_object_from_longest.
2564 (infpy_get_pid): Likewise.
2565
d1cab987
TT
25662020-09-15 Tom Tromey <tromey@adacore.com>
2567
2568 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2569 defines.
2570 * python/py-value.c (valpy_long): Use
2571 gdb_py_object_from_ulongest.
2572 * python/py-symtab.c (salpy_get_pc): Use
2573 gdb_py_object_from_ulongest.
2574 (salpy_get_last): Likewise.
2575 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2576 gdb_py_object_from_ulongest.
2577 * python/py-lazy-string.c (stpy_get_address): Use
2578 gdb_py_object_from_ulongest.
2579 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2580 * python/py-arch.c (archpy_disassemble): Use
2581 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2582 error handling.
2583
4bde49dc
TT
25842020-09-15 Tom Tromey <tromey@adacore.com>
2585
2586 * python/python-internal.h (gdb_py_long_from_longest): Remove
2587 defines.
2588 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2589 * python/py-type.c (convert_field, typy_get_sizeof): Use
2590 gdb_py_object_from_longest.
2591 * python/py-record-btrace.c (btpy_list_index): Use
2592 gdb_py_object_from_longest.
2593
37431074
TT
25942020-09-15 Tom Tromey <tromey@adacore.com>
2595
2596 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2597 * python/py-record.c (recpy_element_number): Use
2598 gdb_py_object_from_longest.
2599 (recpy_gap_number): Likewise.
2600
cbe25684
TT
26012020-09-15 Tom Tromey <tromey@adacore.com>
2602
2603 * top.c (ui::ui): Update.
2604 (highest_ui_num): Remove.
2605 * top.h (struct ui) <num>: Remove.
2606
db92ac45
TT
26072020-09-15 Tom Tromey <tromey@adacore.com>
2608
2609 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2610 * ui-style.c (ansi_regex_text): Now array.
2611 * rust-exp.y (number_regex_text): Now array.
2612 * linespec.c (linespec_quote_characters): Now array.
2613 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2614 Now arrays.
2615
d2b31b67
SM
26162020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2617
2618 * debuginfod-support.c (debuginfod_client_deleter): New.
2619 (debuginfod_client_up): New.
2620 (debuginfod_init): Return debuginfod_client_up.
2621 (debuginfod_source_query): Adjust.
2622 (debuginfod_debuginfo_query): Adjust.
2623
3246bd8e
SM
26242020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2625
2626 * debuginfod-support.c (debuginfod_source_query): Use
2627 make_unique_xstrdup.
2628
10242f36
SM
26292020-09-14 Simon Marchi <simon.marchi@efficios.com>
2630
2631 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2632 with `type::instance_flags`.
2633
e1044e6a
MM
26342020-09-14 Michael Mullin <masmullin@gmail.com>
2635
2636 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2637 Remove baton parameter.
2638
04902b09
PA
26392020-09-14 Pedro Alves <pedro@palves.net>
2640
2641 * Makefile.in (SELFTESTS_SRCS): Add
2642 unittests/enum-flags-selftests.c.
2643 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2644 btrace_function_flags instead of enum btrace_function_flag.
2645 * compile/compile-c-types.c (convert_qualified): Use
2646 enum_flags::raw.
2647 * compile/compile-cplus-symbols.c (convert_one_symbol)
2648 (convert_symbol_bmsym):
2649 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2650 (compile_cplus_convert_struct_or_union_methods)
2651 (compile_cplus_instance::convert_qualified_base):
2652 * go-exp.y (parse_string_or_char): Add cast to int.
2653 * unittests/enum-flags-selftests.c: New file.
2654 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2655 type to btrace_thread_flags from btrace_thread_flag.
2656 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2657 local's type to btrace_thread_flags from btrace_thread_flag. Add
2658 cast in DEBUG call.
2659
69896a2c
PA
26602020-09-14 Pedro Alves <pedro@palves.net>
2661
2662 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2663 * gdbtypes.c (address_space_name_to_int): Rename to ...
2664 (address_space_name_to_type_instance_flags): ... this.
2665 (address_space_int_to_name): Rename to ...
2666 (address_space_type_instance_flags_to_name): ... this.
2667 * gdbtypes.h (address_space_name_to_int): Rename to ...
2668 (address_space_name_to_type_instance_flags): ... this.
2669 (address_space_int_to_name): Rename to ...
2670 (address_space_type_instance_flags_to_name): ... this.
2671 * type-stack.c (type_stack::insert): Adjust to rename.
2672 * type-stack.h (type_stack::insert): Likewise.
2673
314ad88d
PA
26742020-09-14 Pedro Alves <pedro@palves.net>
2675 Andrew Burgess <andrew.burgess@embecosm.com>
2676
2677 * avr-tdep.c (avr_address_class_type_flags): Return
2678 type_instance_flags.
2679 (avr_address_class_type_flags_to_name): Take a
2680 type_instance_flags.
2681 (avr_address_class_name_to_type_flags): Return bool and take a
2682 type_instance_flags.
2683 * d-lang.c (build_d_types): Use type::set_instance_flags.
2684 * ft32-tdep.c (ft32_address_class_type_flags): Return
2685 type_instance_flags.
2686 (ft32_address_class_type_flags_to_name): Take a
2687 type_instance_flags.
2688 (ft32_address_class_name_to_type_flags): Return bool and take a
2689 type_instance_flags.
2690 (ft32_gdbarch_init): Use type::set_instance_flags.
2691 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2692 * gdbarch.h, gdbarch.c: Regenerate.
2693 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2694 (address_class_name_to_type_flags): Use type_instance_flags and
2695 bool.
2696 * gdbtypes.c (address_space_name_to_int)
2697 (address_space_int_to_name, make_qualified_type): Use
2698 type_instance_flags.
2699 (make_qualified_type): Use type_instance_flags and
2700 type::set_instance_flags.
2701 (make_type_with_address_space, make_cv_type, make_vector_type)
2702 (check_typedef): Use type_instance_flags.
2703 (recursive_dump_type): Cast type_instance_flags to unsigned for
2704 printing.
2705 (copy_type_recursive): Use type::set_instance_flags.
2706 (gdbtypes_post_init): Use type::set_instance_flags.
2707 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2708 <m_instance_flags>: ... this.
2709 <instance_flags, set_instance_flags>: New methods.
2710 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2711 (SET_TYPE_INSTANCE_FLAGS): New.
2712 (address_space_name_to_int, address_space_int_to_name)
2713 (make_type_with_address_space): Pass flags using
2714 type_instance_flags instead of int.
2715 * stabsread.c (cleanup_undefined_types_noname): Use
2716 type::set_instance_flags.
2717 * s390-tdep.c (s390_address_class_type_flags): Return
2718 type_instance_flags.
2719 (s390_address_class_type_flags_to_name): Take a
2720 type_instance_flags.
2721 (s390_address_class_name_to_type_flags): Return bool and take a
2722 type_instance_flags.
2723 * type-stack.c (type_stack::follow_types): Use
2724 type_instance_flags.
2725 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2726
27087b7f
TT
27272020-09-14 Tom Tromey <tromey@adacore.com>
2728
2729 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2730 * x86-tdep.c (x86_is_thunk_register_name)
2731 (x86_in_indirect_branch_thunk): Update.
2732 * sparc64-tdep.c (sparc64_fpu_register_names)
2733 (sparc64_cp0_register_names, sparc64_register_names)
2734 (sparc64_pseudo_register_names): Now const.
2735 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2736 cp0_registers_num>: Now const.
2737 * sparc-tdep.c (sparc_core_register_names)
2738 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2739 (sparc32_pseudo_register_names): Now const.
2740 (validate_tdesc_registers): Update.
2741 * rust-lang.c (rust_extensions): Now const.
2742 * p-lang.c (p_extensions): Now const.
2743 * objc-lang.c (objc_extensions): Now const.
2744 * nto-tdep.c (nto_thread_state_str): Now const.
2745 * moxie-tdep.c (moxie_register_names): Now const.
2746 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2747 Now const.
2748 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2749 (mips_linux_reg_names): Now const.
2750 (mips_gdbarch_init): Update.
2751 * microblaze-tdep.c (microblaze_register_names): Now const.
2752 * m68k-tdep.c (m68k_register_names): Now const.
2753 * m32r-tdep.c (m32r_register_names): Now const.
2754 * ia64-tdep.c (ia64_register_names): Now const.
2755 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2756 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2757 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2758 ymm_avx512_register_names, pkeys_register_names>: Now const.
2759 * i386-tdep.c (i386_register_names, i386_zmm_names)
2760 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2761 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2762 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2763 * f-lang.c (f_extensions): Now const.
2764 * d-lang.c (d_extensions): Now const.
2765 * csky-tdep.c (csky_register_names): Now const.
2766 * charset.c (default_charset_names, charset_enum): Now const.
2767 (_initialize_charset): Update.
2768 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2769 const.
2770 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2771 (bsd_uthread_solib_loaded): Update.
2772 (bsd_uthread_state): Now const.
2773 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2774 (amd64_ymm_avx512_names, amd64_ymmh_names)
2775 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2776 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2777 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2778 (amd64_dword_names): Now const.
2779 * agent.c (can_use_agent_enum): Now const.
2780 * ada-tasks.c (task_states, long_task_states): Now const.
2781 * ada-lang.c (known_runtime_file_name_patterns)
2782 (known_auxiliary_function_name_patterns, attribute_names)
2783 (standard_exc, ada_extensions): Now const.
2784
89806626
SM
27852020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2786
2787 * bcache.h (struct bcache) <bcache>: Remove constructor.
2788 <m_hash_function, m_compare_function>: Remove.
2789 <~bcache>: Make virtual.
2790 <compare>: Remove static method, introduce virtual method.
2791 <default_hash>: Remove.
2792 <hash>: New virtual method.
2793 * bcache.c (bcache::expand_hash_table): Update.
2794 (bcache::insert): Update.
2795 (bcache::hash): New.
2796 (bcache::compare): Update comment and parameter names.
2797 * gdbtypes.c (types_deeply_equal): Update.
2798 * psymtab.h (struct psymbol_bcache): New struct.
2799 (class psymtab_storage) <psymtab_storage>: Make default.
2800 <psymbol_cache>: Change type to psymbol_bcache.
2801 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2802 (psymbol_hash): Change to...
2803 (psymbol_bcache::hash): ... this.
2804 (psymbol_compare): Change to...
2805 (psymbol_bcache::compare): ... this.
2806
677c92fe
SM
28072020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2808
2809 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2810 checking for initial lwp.
2811
3eba3a01
TT
28122020-09-14 Tom Tromey <tromey@adacore.com>
2813
2814 * m68k-tdep.c (m68k_extract_return_value): Use
2815 pointer_result_regnum.
2816 (m68k_store_return_value): Likewise.
2817 (m68k_reg_struct_return_p): Handle vectors and arrays.
2818 (m68k_return_value): Handle arrays.
2819 (m68k_svr4_return_value): Fix single-element aggregate handling.
2820 Handle long double. Adjust for embedded ABI.
2821 (m68k_svr4_init_abi): Set pointer_result_regnum.
2822 (m68k_embedded_init_abi): New function.
2823 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2824 (m68k_osabi_sniffer): New function.
2825 (_initialize_m68k_tdep): Register osabi sniffer.
2826 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2827 member.
2828
33f4dd48
SM
28292020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2830
2831 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2832 with gdb::unique_xmalloc_ptr<char>.
2833
8400a90d
SM
28342020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2835
2836 * xml-support.h (xml_fetch_another): Change type to be a
2837 function_view.
2838 (xml_process_xincludes): Remove baton parameter.
2839 (xml_fetch_content_from_file): Change baton parameter to
2840 dirname.
2841 * xml-support.c (struct xinclude_parsing_data)
2842 <xinclude_parsing_data>: Remove baton parameter.
2843 <fetcher_baton>: Remove.
2844 (xinclude_start_include): Adjust.
2845 (xml_process_xincludes): Adjust.
2846 (xml_fetch_content_from_file): Replace baton parameter with
2847 dirname.
2848 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2849 (xml_init_syscalls_info): Use a lambda.
2850 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2851 (file_read_description_xml): Use a lambda.
2852 (fetch_available_features_from_target): Change baton parameter
2853 to target_ops.
2854 (target_read_description_xml): Use a lambda.
2855 (target_fetch_description_xml): Use a lambda.
2856 (string_read_description_xml): Update.
2857
04f5bab2
SM
28582020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2859
2860 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2861 uses with type::endianity_is_not_default.
2862
db558e34
SM
28632020-09-14 Simon Marchi <simon.marchi@efficios.com>
2864
2865 * gdbtypes.h (struct type) <endianity_is_not_default,
2866 set_endianity_is_not_default>: New methods.
2867 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2868 type::endianity_is_not_default, change all write call sites to
2869 use type::set_endianity_is_not_default.
2870
22c4c60c
SM
28712020-09-14 Simon Marchi <simon.marchi@efficios.com>
2872
2873 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2874 uses with type::is_fixed_instance.
2875
9cdd0d12
SM
28762020-09-14 Simon Marchi <simon.marchi@efficios.com>
2877
2878 * gdbtypes.h (struct type) <is_fixed_instance,
2879 set_is_fixed_instance>: New methods.
2880 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2881 write call sites to use type::set_is_fixed_instance.
2882
0becda7a
SM
28832020-09-14 Simon Marchi <simon.marchi@efficios.com>
2884
2885 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2886 uses with type::is_gnu_ifunc.
2887
03cc7249
SM
28882020-09-14 Simon Marchi <simon.marchi@efficios.com>
2889
2890 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2891 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2892 use type::set_is_gnu_ifunc.
2893
3f46044c
SM
28942020-09-14 Simon Marchi <simon.marchi@efficios.com>
2895
2896 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2897 uses with type::stub_is_supported.
2898
9baccff6
SM
28992020-09-14 Simon Marchi <simon.marchi@efficios.com>
2900
2901 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2902 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2903 use type::set_stub_is_supported.
2904
bd63c870
SM
29052020-09-14 Simon Marchi <simon.marchi@efficios.com>
2906
2907 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2908 uses with type::is_vector.
2909
2062087b
SM
29102020-09-14 Simon Marchi <simon.marchi@efficios.com>
2911
2912 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2913 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2914 use type::set_is_vector.
2915
a409645d
SM
29162020-09-14 Simon Marchi <simon.marchi@efficios.com>
2917
2918 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2919 uses with type::has_varargs.
2920
1d6286ed
SM
29212020-09-14 Simon Marchi <simon.marchi@efficios.com>
2922
2923 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2924 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2925 use type::set_has_varargs.
2926
7f9f399b
SM
29272020-09-14 Simon Marchi <simon.marchi@efficios.com>
2928
2929 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2930 uses with type::is_prototyped.
2931
27e69b7a
SM
29322020-09-14 Simon Marchi <simon.marchi@efficios.com>
2933
2934 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2935 New methods.
2936 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2937 call sites to use type::set_is_prototyped.
2938
d2183968
SM
29392020-09-14 Simon Marchi <simon.marchi@efficios.com>
2940
2941 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2942 uses with type::target_is_stub.
2943
8f53807e
SM
29442020-09-14 Simon Marchi <simon.marchi@efficios.com>
2945
2946 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2947 New methods.
2948 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2949 sites to use type::set_target_is_stub.
2950
e46d3488
SM
29512020-09-14 Simon Marchi <simon.marchi@efficios.com>
2952
2953 * gdbtypes.h (TYPE_STUB): Remove, replace all
2954 uses with type::is_stub.
2955
b4b73759
SM
29562020-09-14 Simon Marchi <simon.marchi@efficios.com>
2957
2958 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2959 (TYPE_STUB): Use type::is_stub, change all write call sites to
2960 use type::set_is_stub.
2961
20ce4123
SM
29622020-09-14 Simon Marchi <simon.marchi@efficios.com>
2963
2964 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2965 type::has_no_signedness.
2966
15152a54
SM
29672020-09-14 Simon Marchi <simon.marchi@efficios.com>
2968
2969 * gdbtypes.h (struct type) <has_no_signedness,
2970 set_has_no_signedness>: New methods.
2971 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2972 call sites to use type::set_has_no_signedness.
2973
c6d940a9
SM
29742020-09-14 Simon Marchi <simon.marchi@efficios.com>
2975
2976 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2977 type::is_unsigned.
2978
653223d3
SM
29792020-09-14 Simon Marchi <simon.marchi@efficios.com>
2980
2981 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2982 methods.
2983 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2984 sites to use type::set_is_unsigned.
2985
55ea94da 29862020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 2987 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 2988
e851246a
SM
2989 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2990 pointer and stack frame offset when unwinding.
55ea94da 2991
6791b117
PA
29922020-09-13 Pedro Alves <pedro@palves.net>
2993
2994 * NEWS: Document "-break-insert --qualified".
2995 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2996
77f2120b
PA
29972020-09-13 Pedro Alves <pedro@palves.net>
2998
2999 * linespec.c (classify_mtype, compare_msyms): Delete.
3000 (search_minsyms_for_name): Remove classification logic. Instead
3001 filter out trampoline symbols if we also found an external
3002 function of the same name.
3003
ed6a896c
JB
30042020-09-13 Joel Brobecker <brobecker@adacore.com>
3005
3006 * NEWS: Create a new section for the next release branch.
3007 Rename the section of the current branch, now that it has
3008 been cut.
3009
32aea73e
JB
30102020-09-13 Joel Brobecker <brobecker@adacore.com>
3011
3012 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3013 * version.in: Bump version to 11.0.50.DATE-git.
3014
8087c3fa
JB
30152020-09-12 Joel Brobecker <brobecker@adacore.com>
3016
3017 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3018
2a67f09d
FW
30192020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3020 Felix Willgerodt <Felix.Willgerodt@intel.com>
3021
3022 * gdbarch.sh: Added bfloat16 type.
3023 * gdbarch.c: Regenerated.
3024 * gdbarch.h: Regenerated.
3025 * gdbtypes.c (floatformats_bfloat16): New struct.
3026 (gdbtypes_post_init): Add builtin_bfloat16.
3027 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3028 (floatformats_bfloat16): New struct.
3029 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3030 (i386_ymm_type): Add field "v16_bfloat16"
3031 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3032 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3033 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3034 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3035 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3036 * features/i386/64bit-avx512.c: Regenerated.
3037 * features/i386/64bit-sse.xml: Add bfloat16 type.
3038 * features/i386/64bit-sse.c: Regenerated.
3039
1347d111
FW
30402020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3041
3042 * i386-tdep.c (i386_zmm_type): Fix field names.
3043 (i386_ymm_type): Fix field names.
3044
7a4e8e7d
TBA
30452020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3046
3047 * breakpoint.c: Fix typo in the help message of the
3048 "set breakpoint condition-evaluation" command.
3049
cf4ac4be
KR
30502020-09-10 Kamil Rytarowski <n54@gmx.com>
3051
3052 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3053 * (nbsd_nat_target::pid_to_exec_file)
3054 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3055 (nbsd_nat_target::post_startup_inferior)
3056 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3057 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3058 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3059 * (nbsd_thread_lister): Remove.
3060
f404573e
KR
30612020-09-10 Kamil Rytarowski <n54@gmx.com>
3062
3063 * fork-inferior.c (startup_inferior): Avoid double free.
3064
1ccb2c17
KR
30652020-09-10 Kamil Rytarowski <n54@gmx.com>
3066
3067 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3068 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3069
feedfcc7
KR
30702020-09-10 Kamil Rytarowski <n54@gmx.com>
3071
3072 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3073 * netbsd-nat.c: Include <sys/ptrace.h>.
3074 * (netbsd_nat::enable_proc_events): Add.
3075
c489f8c6
KR
30762020-09-10 Kamil Rytarowski <n54@gmx.com>
3077
3078 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3079 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3080 (netbsd_nat::for_each_thread): Add.
3081 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3082 "gdbsupport/common-debug.h".
3083 * (netbsd_nat::netbsd_thread_lister)
3084 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3085 (netbsd_nat::for_each_thread): Add.
3086
330662f6
KR
30872020-09-10 Kamil Rytarowski <n54@gmx.com>
3088
3089 * netbsd-nat.h: Include <unistd.h>.
3090 * (netbsd_nat::pid_to_exec_file): Add.
3091 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3092 * (netbsd_nat::pid_to_exec_file) Add.
3093
70b67307
KR
30942020-09-10 Kamil Rytarowski <n54@gmx.com>
3095
3096 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3097
99cf6da6
KR
30982020-09-10 Kamil Rytarowski <n54@gmx.com>
3099
3100 * netbsd-nat.h: New file.
3101 * netbsd-nat.c: Likewise.
3102
1b788fb6
TT
31032020-09-09 Tom Tromey <tromey@adacore.com>
3104
3105 * ada-lang.c (remove_extra_symbols): Do not increment when
3106 removing an element
3107
03b0a45f
TT
31082020-09-08 Tom Tromey <tromey@adacore.com>
3109
3110 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3111
3cae4447
TT
31122020-09-08 Tom Tromey <tromey@adacore.com>
3113
3114 PR win32/25302:
3115 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3116 (gdb_bfd_init_data): New function.
3117 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3118
7f08fd51
TBA
31192020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3120
3121 * infrun.c (fetch_inferior_event): Use
3122 `switch_to_target_no_thread` to switch the target.
3123
3e6ff933
TT
31242020-09-06 Tom Tromey <tom@tromey.com>
3125
3126 * symfile.h (dwarf2_free_objfile): Don't declare.
3127
e56798df
AKS
31282020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3129
3130 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3131 to match 16 byte real/complex type generated by Flang compiler.
3132
8f5c6526
TV
31332020-09-03 Tom de Vries <tdevries@suse.de>
3134
3135 PR breakpoint/26546
3136 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3137 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3138
c5065df0
SM
31392020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3140
3141 * maint.c (index_digits): New function.
3142 (struct maint_print_section_data): Remove.
3143 (print_bfd_section_info): Remove print_data parameter, add arg
3144 and index_digits.
3145 (print_objfile_section_info): Likewise.
3146 (print_bfd_section_info_maybe_relocated): Likewise (plus
3147 objfile).
3148 (maintenance_info_sections): Adjust calls.
3149
02c6f3f1
TT
31502020-09-02 Tom Tromey <tromey@adacore.com>
3151
3152 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3153 for null pointers.
3154 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3155
ef5e5b0b
SM
31562020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3157
3158 * bcache.h (struct bcache) <insert>: Change type of `added` to
3159 pointer to bool.
3160 * bcache.c (bcache::insert): Likewise.
3161 * gdbtypes.c (check_types_worklist): Adjust.
3162 * psymtab.c (add_psymbol_to_bcache): Adjust.
3163
973695d6
KB
31642020-08-31 Kevin Buettner <kevinb@redhat.com>
3165
3166 * corelow.c (unordered_set): Include.
3167 (class core_target): Add field 'm_core_unavailable_mappings'.
3168 (core_target::build_file_mappings): Print only one warning
3169 per inaccessible file. Add unavailable/broken mappings
3170 to m_core_unavailable_mappings.
3171 (core_target::xfer_partial): Call...
3172 (core_target::xfer_memory_via_mappings): New method.
3173
264fc0e2
SM
31742020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3175
3176 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3177 type to bool.
3178
2de01bdb
SM
31792020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3180
3181 * dwarf2/read.c (struct field_info): Fix indentation.
3182
f3bd50f1
SM
31832020-08-31 Simon Marchi <simon.marchi@efficios.com>
3184
3185 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3186 ordering in comment.
3187 * frame.c (frame_id_eq): Fix indentation.
3188
22b9b4b0
SL
31892020-08-31 Scott Linder <scott@scottlinder.com>
3190 Simon Marchi <simon.marchi@efficios.com>
3191
3192 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3193 inline frame ids in outer frame.
3194
84154d16
SM
31952020-08-31 Simon Marchi <simon.marchi@efficios.com>
3196
3197 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3198 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3199 (outer_frame_id): Use FID_STACK_OUTER instead of
3200 FID_STACK_INVALID.
3201 (frame_id_p): Don't check for outer_frame_id.
3202
8efaf6b3
SM
32032020-08-31 Simon Marchi <simon.marchi@efficios.com>
3204
3205 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3206 regnum/frame in value. Call allocate_value_lazy.
3207 * frame.c (frame_unwind_register_value): Use
3208 val_print_not_saved.
3209
fe1fe7ea
SM
32102020-08-31 Simon Marchi <simon.marchi@efficios.com>
3211
3212 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3213
f7c7700d
PA
32142020-08-29 Pedro Alves <pedro@palves.net>
3215
3216 * progspace.c (print_program_space): Use all_inferiors. Switch to
3217 the inferior before calling target_pid_to_str.
3218
e0814aae
TT
32192020-08-28 Tom Tromey <tom@tromey.com>
3220
3221 * xcoffread.c (xcoff_end_psymtab): Update comment.
3222 * dbxread.c (dbx_end_psymtab): Update comment.
3223
626d2320
TV
32242020-08-28 Tom de Vries <tdevries@suse.de>
3225
3226 PR breakpoint/26544
3227 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3228 event_location.
3229 (create_breakpoint): Same.
3230 (base_breakpoint_decode_location): Same.
3231 (bkpt_create_sals_from_location): Same.
3232 (bkpt_decode_location): Same.
3233 (bkpt_probe_create_sals_from_location): Same.
3234 (bkpt_probe_decode_location): Same.
3235 (tracepoint_create_sals_from_location): Same.
3236 (tracepoint_decode_location): Same.
3237 (tracepoint_probe_decode_location): Same.
3238 (strace_marker_create_sals_from_location): Same.
3239 (strace_marker_decode_location): Same.
3240 (create_sals_from_location_default): Same.
3241 (decode_location_default): Same.
3242 * breakpoint.h (struct breakpoint_ops): Same.
3243 (create_breakpoint): Same.
3244 * linespec.h (decode_line_full): Same.
3245 * linespec.c (decode_line_full): Same. Throw error if
3246 result.size () == 0.
3247
df631783
PA
32482020-08-27 Pedro Alves <pedro@palves.net>
3249
3250 PR gdb/26524
3251 * breakpoint.c (until_break_fsm) <location_breakpoint,
3252 caller_breakpoint>: Delete fields.
3253 <breakpoints>: New field.
3254 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3255 two individual breakpoints.
3256 (until_break_fsm::should_stop): Loop over breakpoints in the
3257 breakpoint vector.
3258 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3259 vector.
3260 (until_break_command): Handle location expanding into multiple
3261 sals.
3262
b2b38aa4
PA
32632020-08-27 Pedro Alves <pedro@palves.net>
3264
3265 PR gdb/26523
3266 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3267 bp_until breakpoints user-specified locations. Update intro
3268 comment.
3269
b886559f
SM
32702020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3271
3272 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3273 gdb_bfd_sections): New.
3274 * maint.c (print_bfd_section_info): Change param type to
3275 maint_print_section_data.
3276 (print_objfile_section_info): Likewise.
3277 (print_bfd_section_info_maybe_relocated): Likewise.
3278 (maintenance_info_sections): Use gdb_bfd_sections.
3279
4c6e63bf
SV
32802020-08-25 Shahab Vahedi <shahab@synopsys.com>
3281
3282 * MAINTAINERS: Add ARC target and maintainer.
3283
8d7f0635
AK
32842020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3285
3286 * configure.tgt: ARC support for GNU/Linux.
3287 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3288 * arc-linux-tdep.c: New file.
3289 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3290 * arc-tdep.c (arc_write_pc): Use it.
3291
fdd8731b
SV
32922020-08-25 Shahab Vahedi <shahab@synopsys.com>
3293
3294 * arc-tdep.c (arc_check_for_hardware_loop): New.
3295 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3296
22459524
SV
32972020-08-25 Shahab Vahedi <shahab@synopsys.com>
3298
3299 * arc-tdep.h: Include "gdbarch.h".
3300
995d3a19
SV
33012020-08-25 Shahab Vahedi <shahab@synopsys.com>
3302
3303 * arch/arc.h
3304 (arc_gdbarch_features): New class to stir the selection of target XML.
3305 (arc_create_target_description): Use FEATURES to choose XML target.
3306 (arc_lookup_target_description): Use arc_create_target_description
3307 to create _new_ target descriptions or return the already created
3308 ones if the FEATURES is the same.
3309 * arch/arc.c: Implementation of prototypes described above.
3310 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3311 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3312 * arc-tdep.c (*_feature_name): Make feature names consistent.
3313 (arc_register_feature): A new struct to hold information about
3314 registers of a particular target/feature.
3315 (arc_check_tdesc_feature): Check if XML provides registers in
3316 compliance with ARC_REGISTER_FEATURE structs.
3317 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3318 (determine_*_reg_feature_set): Which feature name to look for.
3319 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3320 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3321 to expected ISA enums to be used in arc_gdbarch_features structs.
3322 * features/Makefile (FEATURE_XMLFILES): Add new files.
3323 * gdb/features/arc/v1-aux.c: New file.
3324 * gdb/features/arc/v1-aux.xml: Likewise.
3325 * gdb/features/arc/v1-core.c: Likewise.
3326 * gdb/features/arc/v1-core.xml: Likewise.
3327 * gdb/features/arc/v2-aux.c: Likewise.
3328 * gdb/features/arc/v2-aux.xml: Likewise.
3329 * gdb/features/arc/v2-core.c: Likewise.
3330 * gdb/features/arc/v2-core.xml: Likewise.
3331 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3332
3945d2d7
GM
33332020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3334 Andrew Burgess <andrew.burgess@embecosm.com>
3335
3336 PR m2/26372
fc5d6901 3337 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3338 an assert. Remove single element array indexing pattern as the
3339 MULTI_SUBSCRIPT support will handle this case too.
3340
2677f2d3
SM
33412020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3342
3343 * value.h (valprint_check_validity): Move declaration from
3344 here...
3345 * valprint.h (valprint_check_validity): ... to here.
3346
c426fddb
SM
33472020-08-24 Simon Marchi <simon.marchi@efficios.com>
3348
3349 * debug.h: New file.
3350 * debug.c (debug_prefixed_vprintf): New function.
3351 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3352 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3353
1eb8556f
SM
33542020-08-24 Simon Marchi <simon.marchi@efficios.com>
3355
3356 * infrun.h (infrun_debug_printf_1): New function declaration.
3357 (infrun_debug_printf): New macro.
3358 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3359 throughout.
3360 (infrun_debug_printf): New function.
3361 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3362 (handle_jit_event): Likewise.
3363
b8fff44e
MW
33642020-08-21 Mark Wielaard <mark@klomp.org>
3365
3366 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3367
d19c3068
SM
33682020-08-22 Simon Marchi <simon.marchi@efficios.com>
3369
3370 * frame.c (enum class frame_id_status): New.
3371 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3372 (fprintf_frame): Update.
3373 (compute_frame_id): Set frame id status to "computing" on entry.
3374 Set it back to "not_computed" on failure and to "computed" on
3375 success.
3376 (get_frame_id): Assert the frame id is not being computed.
3377 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3378 (create_new_frame): Likewise.
3379 (frame_cleanup_after_sniffer): Update assert.
3380
b70e516e
SM
33812020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3382
3383 * regcache.c (pid_ptid_regcache_map): New type.
3384 (target_ptid_regcache_map): Remove.
3385 (target_pid_ptid_regcache_map): New type.
3386 (regcaches): Change type to target_pid_ptid_regcache_map.
3387 (get_thread_arch_aspace_regcache): Update.
3388 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3389 case.
3390 (regcaches_size): Update.
3391 (regcache_count): Update.
3392 (registers_changed_ptid_target_pid_test): New.
3393 (_initialize_regcache): Register new test.
3394
cdd9148a
SM
33952020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3396
3397 * regcache.c (regcache_count): New.
3398 (struct regcache_test_data): New.
3399 (regcache_test_data_up): New.
3400 (populate_regcaches_for_test): New.
3401 (regcaches_test): Remove.
3402 (get_thread_arch_aspace_regcache_test): New.
3403 (registers_changed_ptid_all_test): New.
3404 (registers_changed_ptid_target_test): New.
3405 (registers_changed_ptid_target_ptid_test): New.
3406 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3407 (_initialize_regcache): Register new tests.
3408
dd125343
SM
34092020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3410
3411 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3412 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3413 gdbarch and aspace parameter. Use current inferior's aspace.
3414 Validate regcache's arch value.
3415 (regcaches_test): Update.
3416
3ee93972
SM
34172020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3418
3419 * regcache.c (regcaches_test): Call registers_changed.
3420
33bf4c5c
TBA
34212020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3422
3423 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3424
c2fd7fae
AKS
34252020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3426
3427 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3428 to find the end of prologue for flang compiled binaries.
3429 * arm-tdep.c (arm_skip_prologue): Likewise.
3430 * i386-tdep.c (i386_skip_prologue): Likewise.
3431 * producer.c (producer_is_llvm): New function.
3432 (producer_parsing_tests): Added new tests for clang/flang.
3433 * producer.h (producer_is_llvm): New declaration.
3434
9327494e
SM
34352020-08-18 Simon Marchi <simon.marchi@efficios.com>
3436
3437 * linux-nat.c (linux_nat_debug_printf): New function.
3438 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3439
d138725a
AM
34402020-08-18 Aaron Merey <amerey@redhat.com>
3441
3442 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3443 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3444 (CLIBS): Add DEBUGINFOD_LIBS.
3445
f9b11e6b
ST
34462020-08-17 Sergei Trofimovich <siarheit@google.com>
3447
3448 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3449 'gdbarch_num_regs'.
3450
3ae7ab99
TT
34512020-08-17 Tom Tromey <tromey@adacore.com>
3452
3453 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3454 ada_get_decoded_value returns NULL.
3455
b017825f
TT
34562020-08-17 Tom Tromey <tromey@adacore.com>
3457
3458 * python/py-inferior.c (infpy_search_memory): Use
3459 gdb_py_object_from_ulongest.
3460 * python/py-infevents.c (create_inferior_call_event_object)
3461 (create_memory_changed_event_object): Use
3462 gdb_py_object_from_ulongest.
3463 * python/py-linetable.c (ltpy_entry_get_pc): Use
3464 gdb_py_object_from_ulongest.
3465
7635cf79
SM
34662020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3467
3468 * loc.c (class symbol_needs_eval_context): Fix indentation.
3469
f54be24b
SM
34702020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3471
3472 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3473 bool.
3474
53d5a2a5
TV
34752020-08-17 Tom de Vries <tdevries@suse.de>
3476
3477 PR gdb/26393
3478 * gdbtypes.c (dump_dynamic_prop): New function.
3479 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3480
547ce8f0
TV
34812020-08-15 Tom de Vries <tdevries@suse.de>
3482
3483 PR backtrace/26390
3484 * stack.c (print_frame_args): Temporarily set the selected
3485 frame to FRAME while printing the frame's arguments.
3486
6ea815e7
PFC
34872020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3488
3489 PR breakpoints/26385
3490 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3491 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3492
6e562fa3
PFC
34932020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3494
3495 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3496 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3497 and >= to check return value instead of == -1 and != -1.
3498
d369b608
SM
34992020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3500
3501 * utils.h (class gdb_argv) <as_array_view>: New method.
3502 * utils.c (gdb_argv_as_array_view_test): New.
3503 (_initialize_utils): Register selftest.
3504 * maint.c (maintenance_selftest): Use the new method.
3505
b31488a3
KR
35062020-08-13 Kamil Rytarowski <n54@gmx.com>
3507
3508 * target.h (supports_dumpcore, dumpcore): New
3509 function declarations.
3510 * target.c (supports_dumpcore, dumpcore): New
3511 functions.
3512 * target-delegates.c: Rebuild.
3513 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3514 and target_dumpcore ().
3515
002a3166
AM
35162020-08-13 Aaron Merey <amerey@redhat.com>
3517
3518 * debuginfod-support.c: Replace global variables with user_data.
3519
ece5bc8a
SM
35202020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3521
3522 * maint.c (maintenance_selftest): Split args and pass array_view
3523 to run_tests.
3524
6d8a0a5e
LM
35252020-08-12 Luis Machado <luis.machado@linaro.org>
3526
3527 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3528 type's length.
3529 Use %s and pulongest to print the length.
3530
7cf663a9
PA
35312020-08-12 Pedro Alves <palves@redhat.com>
3532
3533 * NEWS: Move "Multi-target debugging support" item to the
3534 "Changes since GDB 9" section.
3535
27c7b875
PA
35362020-08-12 Pedro Alves <palves@redhat.com>
3537
3538 PR gdb/26336
3539 * progspace.c (program_space::remove_objfile): Invalidate the
3540 frame cache.
3541
1796a2a1
TV
35422020-08-11 Tom de Vries <tdevries@suse.de>
3543
3544 * MAINTAINERS: Mark ms1 as deleted.
3545
f8e3fe0d
LM
35462020-08-10 Luis Machado <luis.machado@linaro.org>
3547
3548 PR gdb/26310
3549
3550 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3551 act accordingly.
3552 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3553 movz/str/stur/stp skipping behavior.
3554
cc308722
LM
35552020-08-10 Luis Machado <luis.machado@linaro.org>
3556
3557 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3558 struct user_sve_header instead of struct sve_context.
3559
041d9819
SM
35602020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3561
3562 * read.h (dwarf2_fetch_die_loc_sect_off,
3563 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3564 `void *` parameter with function_view.
3565 * read.c (dwarf2_fetch_die_loc_sect_off,
3566 dwarf2_fetch_die_loc_cu_off): Likewise.
3567 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3568 (per_cu_dwarf_call): Adjust.
3569 (get_frame_address_in_block_wrapper): Remove.
3570 (indirect_synthetic_pointer): Adjust.
3571 (get_ax_pc): Remove.
3572 (dwarf2_compile_expr_to_ax): Adjust.
3573
38f8aa06
TV
35742020-08-08 Tom de Vries <tdevries@suse.de>
3575
3576 PR build/26344
3577 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3578 constructor.
3579 * regcache.c (get_thread_arch_aspace_regcache): Same.
3580
a52b3ae2
TT
35812020-08-07 Tom Tromey <tromey@adacore.com>
3582
3583 * ravenscar-thread.c
3584 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3585 New method.
3586 (ravenscar_thread_target::wait): Check
3587 runtime_initialized.
3588 (ravenscar_thread_target::prepare_to_store)
3589 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3590 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3591 (ravenscar_thread_target::stopped_by_watchpoint)
3592 (ravenscar_thread_target::stopped_data_address)
3593 (ravenscar_thread_target::core_of_thread): Use
3594 scoped_restore_current_thread and
3595 set_base_thread_from_ravenscar_task.
3596
0e29517d
TT
35972020-08-07 Tom Tromey <tromey@adacore.com>
3598
3599 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3600
592f9bd7
TT
36012020-08-07 Tom Tromey <tromey@adacore.com>
3602
3603 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3604 update_inferior_ptid before update_thread_list.
3605 (temporarily_change_regcache_ptid): New class.
3606 (ravenscar_thread_target::fetch_registers)
3607 (ravenscar_thread_target::store_registers)
3608 (ravenscar_thread_target::prepare_to_store): Use base thread when
3609 forwarding operation.
3610
39e2018a
TT
36112020-08-07 Tom Tromey <tromey@adacore.com>
3612
3613 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3614 "is_pid" case.
3615
2080266b
TT
36162020-08-07 Tom Tromey <tromey@adacore.com>
3617
3618 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3619 New methods.
3620 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3621 first.
3622 (ravenscar_thread_target::add_thread): Rename from
3623 ravenscar_add_thread.
3624 (ravenscar_thread_target::update_thread_list): Use a lambda.
3625 (ravenscar_thread_target::xfer_partial): New method.
3626
78c02f21
TT
36272020-08-07 Tom Tromey <tromey@adacore.com>
3628
3629 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3630 gdb::function_view.
3631 (iterate_over_live_ada_tasks): Change type of argument.
3632 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3633 of argument.
3634
d5d833af
TT
36352020-08-07 Tom Tromey <tromey@adacore.com>
3636
3637 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3638 Remove.
3639 (ravenscar_thread_target::extra_thread_info): Remove.
3640 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3641 defer to target beneath for non-Ravenscar threads.
3642
a8ac85bb
TT
36432020-08-07 Tom Tromey <tromey@adacore.com>
3644
3645 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3646 get_base_thread_from_ravenscar_task>: Now methods.
3647 <m_cpu_map>: New member.
3648 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3649 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3650 (ravenscar_thread_target::task_is_currently_active): Update.
3651 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3652 Now a method.
3653 (ravenscar_thread_target::add_active_thread): Put initial thread
3654 into the m_cpu_map.
3655
550ab58d
TT
36562020-08-07 Tom Tromey <tromey@adacore.com>
3657
3658 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3659 event_ptid.
3660
e9546579
TT
36612020-08-07 Tom Tromey <tromey@adacore.com>
3662
3663 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3664 runtime_initialized.
3665
3d4470e5
TT
36662020-08-07 Tom Tromey <tromey@adacore.com>
3667
3668 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3669 add_active_thread.
3670 (ravenscar_thread_target::add_active_thread): Now public.
3671 (ravenscar_inferior_created): Call add_active_thread after pushing
3672 the target.
3673
888bdb2b
SM
36742020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3675
3676 * regcache.c (ptid_regcache_map): New type.
3677 (target_ptid_regcache_map): New type.
3678 (regcaches): Change type to target_ptid_regcache_map.
3679 (get_thread_arch_aspace_regcache): Update to regcaches' new
3680 type.
3681 (regcache_thread_ptid_changed): Likewise.
3682 (registers_changed_ptid): Likewise.
3683 (regcaches_size): Likewise.
3684 (regcaches_test): Update.
3685 (regcache_thread_ptid_changed): Update.
3686 * regcache.h (regcache_up): New type.
3687 * gdbsupport/ptid.h (hash_ptid): New struct.
3688
b161a60d
SM
36892020-08-07 Simon Marchi <simon.marchi@efficios.com>
3690
3691 * observable.h (thread_ptid_changed): Add parameter
3692 `process_stratum_target *`.
3693 * infrun.c (infrun_thread_ptid_changed): Add parameter
3694 `process_stratum_target *` and use it.
3695 (selftests): New namespace.
3696 (infrun_thread_ptid_changed): New function.
3697 (_initialize_infrun): Register selftest.
3698 * regcache.c (regcache_thread_ptid_changed): Add parameter
3699 `process_stratum_target *` and use it.
3700 (regcache_thread_ptid_changed): New function.
3701 (_initialize_regcache): Register selftest.
3702 * thread.c (thread_change_ptid): Pass target to
3703 thread_ptid_changed observable.
3704
d2854d8d
CT
37052020-08-06 Caroline Tice <cmtice@google.com>
3706
fe4c3d43
SM
3707 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3708 (struct dwp_sections): Update field comments. Add loclists and
3709 rnglists fields.
3710 (struct virtual_v2_dwo_sections): Rename struct to
3711 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3712 size & offset fields for loclists and rnglists.
3713 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3714 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3715 skipping dummy type units.
3716 (create_dwp_hash_table): Update the large comment above the function to
3717 discuss Version 5 DWP files as well, with references. Update all the
3718 version checks in the function to check for version 5 as well. Add new
3719 section at the end to create dwp hash table for version 5.
3720 (create_dwp_v2_section): Rename function to
3721 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3722 Add V5 to error message text.
3723 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3724 into calls to create_dwp_v2_or_v5_section.
3725 (create_dwo_unit_in_dwp_v5): New function.
3726 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3727 check for version2; add else clause to handle version 5.
3728 (open_and_init_dwo_file): Add code to check dwarf version & only call
3729 create_debug_types_hash_table (with sections.types) if version is not 5;
3730 else call create_debug_type_hash_table, with sections.info.
3731 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3732 version 5.
3733 (dwarf2_locate_v5_dwp_sections): New function.
3734 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3735 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3736
159ed7d9
SM
37372020-08-06 Simon Marchi <simon.marchi@efficios.com>
3738
3739 * regcache.h (class regcache): Remove friend
3740 registers_changed_ptid.
3741 <regcache_thread_ptid_changed>: Remove.
3742 <regcaches>: Remove.
3743 * regcache.c (regcache::regcaches): Rename to...
3744 (regcaches): ... this. Make static.
3745 (get_thread_arch_aspace_regcache): Update.
3746 (regcache::regcache_thread_ptid_changed): Rename to...
3747 (regcache_thread_ptid_changed): ... this. Update.
3748 (class regcache_access): Remove.
3749 (regcaches_test): Update.
3750 (_initialize_regcache): Update.
3751 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3752 <forward_list>.
3753
174981ae
SM
37542020-08-06 Simon Marchi <simon.marchi@efficios.com>
3755
3756 * regcache.h (class regcache) <current_regcache>: Rename to...
3757 <regcaches>: ... this. Move doc here.
3758 * regcache.c (regcache::current_regcache) Rename to...
3759 (regcache::regcaches): ... this. Move doc to header.
3760 (get_thread_arch_aspace_regcache): Update.
3761 (regcache::regcache_thread_ptid_changed): Update.
3762 (registers_changed_ptid): Update.
3763 (class regcache_access) <current_regcache_size>: Rename to...
3764 <regcaches_size>: ... this.
3765 (current_regcache_test): Rename to...
3766 (regcaches_test): ... this.
3767 (_initialize_regcache): Update.
3768
ed908db6
VC
37692020-08-06 Victor Collod <vcollod@nvidia.com>
3770
3771 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3772
b5582ab7
KB
37732020-08-05 Kevin Buettner <kevinb@redhat.com>
3774
3775 * corelow.c (core_target::build_file_mappings): Don't output
3776 null pathname in warning.
3777
ea946b86
SM
37782020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3779
3780 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3781 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3782 gdb.dwarf2/dw2-single-line-discriminators.exp,
3783 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3784
57d02173
TT
37852020-08-05 Tom Tromey <tromey@adacore.com>
3786
3787 PR rust/26197:
3788 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3789 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3790 Fix off-by-one and type size errors in ordinary case.
3791
5555c86d
TV
37922020-08-05 Tom de Vries <tdevries@suse.de>
3793
3794 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3795 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3796
97916bfe
SM
37972020-08-04 Simon Marchi <simon.marchi@efficios.com>
3798
3799 * frame.h (frame_id_p): Return bool.
3800 (frame_id_artificial_p): Return bool.
3801 (frame_id_eq): Return bool.
3802 (has_stack_frames): Return bool.
3803 (get_selected_frame): Fix typo in comment.
3804 (get_frame_pc_if_available): Return bool.
3805 (get_frame_address_in_block_if_available): Return bool.
3806 (get_frame_func_if_available): Return bool.
3807 (read_frame_register_unsigned): Return bool.
3808 (get_frame_register_bytes): Return bool.
3809 (safe_frame_unwind_memory): Return bool.
3810 (deprecated_frame_register_read): Return bool.
3811 (frame_unwinder_is): Return bool.
3812 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3813 bool.
3814 <this_id::p>: Likewise.
3815 <prev_p>: Likewise.
3816 (frame_stash_add): Return bool.
3817 (get_frame_id): Use bool.
3818 (frame_id_build_special) Use bool.
3819 (frame_id_build_unavailable_stack): Use bool.
3820 (frame_id_build): Use bool.
3821 (frame_id_p): Return bool, use true/false instead of 1/0.
3822 (frame_id_artificial_p): Likewise.
3823 (frame_id_eq): Likewise.
3824 (frame_id_inner): Likewise.
3825 (get_frame_func_if_available): Likewise.
3826 (read_frame_register_unsigned): Likewise.
3827 (deprecated_frame_register_read): Likewise.
3828 (get_frame_register_bytes): Likewise.
3829 (has_stack_frames): Likewise.
3830 (inside_main_func): Likewise.
3831 (inside_entry_func): Likewise.
3832 (get_frame_pc_if_available): Likewise.
3833 (get_frame_address_in_block_if_available): Likewise.
3834 (frame_unwinder_is): Likewise.
3835 (safe_frame_unwind_memory): Likewise.
3836 (frame_unwind_arch): Likewise.
3837
fedfee88
SM
38382020-08-04 Simon Marchi <simon.marchi@efficios.com>
3839
3840 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3841 type to cached_copy_status.
3842 (fprintf_frame): Adjust.
3843 (get_frame_func_if_available): Adjust.
3844 (frame_cleanup_after_sniffer): Adjust.
3845
6cfa9b59
MW
38462020-08-04 Mark Wielaard <mark@klomp.org>
3847
3848 * MAINTAINERS (Write After Approval): Update email address.
3849
66d6346b
SM
38502020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3851
3852 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3853 dynamic_prop::const_val.
3854
8a6d5e35
SM
38552020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3856
3857 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3858 dynamic_prop::kind.
3859
51d6067d
SM
38602020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3861
3862 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3863
b26e2ae7
JM
38642020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3865
3866 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3867
39791af2
JM
38682020-08-04 Weimin Pan <weimin.pan@oracle.com>
3869 Jose E. Marchesi <jose.marchesi@oracle.com>
3870
3871 * configure.tgt: Add entry for bpf-*-*.
3872 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3873 (ALLDEPFILES): Add bpf-tdep.c.
3874 * bpf-tdep.c: New file.
3875 * MAINTAINERS: Add bpf target and maintainer.
3876 * NEWS: Mention the support for the new target.
3877
521894aa
TV
38782020-08-04 Tom de Vries <tdevries@suse.de>
3879
3880 PR symtab/23270
3881 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3882 Error.
3883
5d6356e9
JB
38842020-08-03 John Baldwin <jhb@FreeBSD.org>
3885
3886 * syscalls/freebsd.xml: Regenerate.
3887
0cf82b81
JB
38882020-08-03 John Baldwin <jhb@FreeBSD.org>
3889
3890 * syscalls/update-freebsd.sh: Fix usage and year range.
3891
8f34b746
TV
38922020-08-03 Tom de Vries <tdevries@suse.de>
3893
3894 PR symtab/26333
3895 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3896 DW_LNE_lo_user/DW_LNE_hi_user range.
3897
5e500d33
SM
38982020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3899
3900 PR ada/26318
3901 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3902 kind.
3903
78319c15
TBA
39042020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3905
3906 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3907
4c55e970
TBA
39082020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3909
3910 * breakpoint.c (set_breakpoint_condition): Update the condition
3911 expressions after checking that the input condition string parses
3912 successfully and does not contain junk at the end.
3913
1e620590
TBA
39142020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3915
3916 * breakpoint.c (set_breakpoint_condition): Update the
3917 condition string after parsing the new condition successfully.
3918
c8693053
RO
39192020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3920
3921 * proc-api.c (_STRUCTURED_PROC): Don't define.
3922 * proc-events.c: Likewise.
3923 * proc-flags.c: Likewise.
3924 * proc-why.c: Likewise.
3925 * procfs.c: Likewise.
3926
3927 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3928 * configure, config.in: Regenerate.
3929
5a99adb8
TV
39302020-07-30 Tom de Vries <tdevries@suse.de>
3931
3932 PR build/26320
3933 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3934 m_red/m_green/m_blue in a union.
3935
8ba83e91
TV
39362020-07-29 Tom de Vries <tdevries@suse.de>
3937
3938 PR tdep/26280
3939 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3940
f75a0693
AB
39412020-07-28 Tom Tromey <tromey@adacore.com>
3942
3943 PR symtab/26270:
3944 * symtab.h (find_pc_partial_function_sym): Declare.
3945 * cli/cli-cmds.c (disassemble_command): Use
3946 find_pc_partial_function_sym. Check asm_demangle.
3947 * blockframe.c (cache_pc_function_sym): New global.
3948 (cache_pc_function_name): Remove.
3949 (clear_pc_function_cache): Update.
3950 (find_pc_partial_function_sym): New function, from
3951 find_pc_partial_function.
3952 (find_pc_partial_function): Rewrite using
3953 find_pc_partial_function_sym.
3954
16f3242c
TT
39552020-07-28 Tom Tromey <tromey@adacore.com>
3956
3957 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3958 help. Add usage.
3959
4888741a
TT
39602020-07-28 Tom Tromey <tromey@adacore.com>
3961
3962 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3963 <DW_OP_GNU_variable_value>: Cast to address type.
3964
4d46f402
KR
39652020-07-28 Kamil Rytarowski <n54@gmx.com>
3966
3967 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3968 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3969 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3970 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3971 (nbsd_get_siginfo_type): New.
3972 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3973 (_initialize_nbsd_tdep): New.
3974
d70f978b
L
39752020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3976
3977 PR binutils/26301
3978 * configure: Regenerated.
3979
377170fa
L
39802020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3981
3982 PR binutils/26301
3983 * configure: Regenerated.
3984
43d5901d
AB
39852020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3986
3987 * python/py-frame.c: Remove 'user-regs.h' include.
3988 (frapy_read_register): Rewrite to make use of
3989 gdbpy_parse_register_id.
3990 * python/py-registers.c (gdbpy_parse_register_id): New function,
3991 moved here from python/py-unwind.c. Updated the return type, and
3992 also accepts register descriptor objects.
3993 * python/py-unwind.c: Remove 'user-regs.h' include.
3994 (pyuw_parse_register_id): Moved to python/py-registers.c.
3995 (unwind_infopy_add_saved_register): Update to use
3996 gdbpy_parse_register_id.
3997 (pending_framepy_read_register): Likewise.
3998 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3999
14fa8fb3
AB
40002020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4001
4002 * python/py-registers.c: Add 'user-regs.h' include.
4003 (register_descriptor_iter_find): New function.
4004 (register_descriptor_iterator_object_methods): New static global
4005 methods array.
4006 (register_descriptor_iterator_object_type): Add pointer to methods
4007 array.
4008
ddce1758
JB
40092020-07-27 John Baldwin <jhb@FreeBSD.org>
4010
4011 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4012 for all architectures on FreeBSD 11.3 and later.
4013
a4089f52
TT
40142020-07-27 Tom Tromey <tromey@adacore.com>
4015
4016 * gcore.h (load_corefile): Don't declare.
4017
95420d30
TV
40182020-07-27 Tom de Vries <tdevries@suse.de>
4019
4020 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4021 * config.in: Regenerate.
4022 * configure: Regenerate.
4023
05a6b8c2
EZ
40242020-07-26 Eli Zaretskii <eliz@gnu.org>
4025
4026 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4027 ws2tcpip.h. When checking whether socklen_t type is defined, use
4028 ws2tcpip.h if it is available and sys/socket.h isn't.
4029 * configure: Regenerate.
4030 * config.in: Regenerate.
4031
e79eb02f
AB
40322020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4033
4034 PR fortran/23051
4035 PR fortran/26139
4036 * valops.c (value_ind): Pass address to
4037 readjust_indirect_value_type.
4038 * value.c (readjust_indirect_value_type): Make parameter
4039 non-const, and add extra address parameter. Resolve original type
4040 before using it.
4041 * value.h (readjust_indirect_value_type): Update function
4042 signature and comment.
4043
876518dd
TV
40442020-07-25 Tom de Vries <tdevries@suse.de>
4045
4046 PR symtab/26243
4047 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4048 entries.
4049
f6720b1c
AM
40502020-07-24 Aaron Merey <amerey@redhat.com>
4051
4052 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4053 * configure: Rebuild.
4054
513487e1
KB
40552020-07-23 Kevin Buettner <kevinb@redhat.com>
4056
4057 PR corefiles/26294
4058 * corelow.c (_initialize_corelow): Add period to help text
4059 for "maintenance print core-file-backed-mappings".
4060
e7bc9db8
PA
40612020-07-23 Pedro Alves <pedro@palves.net>
4062
4063 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4064 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4065 meanwhile.
4066 * frame.c (frame_cache_generation, get_frame_cache_generation):
4067 New.
4068 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4069 (get_prev_frame_if_no_cycle): On exception, don't touch
4070 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4071 * frame.h (get_frame_cache_generation): Declare.
4072
90fcc466
TV
40732020-07-23 Tom de Vries <tdevries@suse.de>
4074
4075 PR tui/26282
4076 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4077 New default constructor.
4078
78344df7
AB
40792020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4080
4081 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4082 exclude non-statement entries.
4083
b089853a
KB
40842020-07-22 Kevin Buettner <kevinb@redhat.com>
4085
4086 * NEWS (New commands): Mention new command
4087 "maintenance print core-file-backed-mappings".
4088
09c2f5d4
KB
40892020-07-22 Kevin Buettner <kevinb@redhat.com>
4090
4091 * corelow.c (gdbcmd.h): Include.
4092 (core_target::info_proc_mappings): New method.
4093 (get_current_core_target): New function.
4094 (maintenance_print_core_file_backed_mappings): New function.
4095 (_initialize_corelow): Add core-file-backed-mappings to
4096 "maint print" commands.
4097
9c5ec5c2 40982020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 4099
9c5ec5c2
KB
4100 * linux-tdep.c (dump_note_entry_p): New function.
4101 (linux_dump_mapping_p_ftype): New typedef.
4102 (linux_find_memory_regions_full): Add new parameter,
4103 should_dump_mapping_p.
4104 (linux_find_memory_regions): Adjust call to
4105 linux_find_memory_regions_full.
4106 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4107 call to linux_find_memory_regions_full.
4108
db082f59
KB
41092020-07-22 Kevin Buettner <kevinb@redhat.com>
4110
4111 * corelow.c (solist.h, unordered_map): Include.
4112 (class core_target): Add field m_core_file_mappings and
4113 method build_file_mappings.
4114 (core_target::core_target): Call build_file_mappings.
4115 (core_target::~core_target): Free memory associated with
4116 m_core_file_mappings.
4117 (core_target::build_file_mappings): New method.
4118 (core_target::xfer_partial): Use m_core_file_mappings
4119 for memory transfers.
4120 * linux-tdep.c (linux_read_core_file_mappings): New
4121 function.
4122 (linux_core_info_proc_mappings): Rewrite to use
4123 linux_read_core_file_mappings.
4124 (linux_init_abi): Register linux_read_core_file_mappings.
4125
7e183d27
KB
41262020-07-22 Kevin Buettner <kevinb@redhat.com>
4127
4128 * arch-utils.c (default_read_core_file_mappings): New function.
4129 * arch-utils.c (default_read_core_file_mappings): Declare.
4130 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4131 * gdbarch.h, gdbarch.c: Regenerate.
4132
2735d421
KB
41332020-07-22 Kevin Buettner <kevinb@redhat.com>
4134
4135 PR corefiles/25631
4136 * corelow.c (core_target:xfer_partial): Revise
4137 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4138 case after first checking the stratum beneath the core
4139 target.
4140 (has_all_memory): Return true.
4141 * target.c (raw_memory_xfer_partial): Revise comment
4142 regarding use of has_all_memory.
4143
e56cb451
KB
41442020-07-22 Kevin Buettner <kevinb@redhat.com>
4145
4146 * exec.h (section_table_xfer_memory): Revise declaration,
4147 replacing section name parameter with an optional callback
4148 predicate.
4149 * exec.c (section_table_xfer_memory): Likewise.
4150 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4151 of section_table_xfer_memory.
4152
32fa152e
TT
41532020-07-22 Tom Tromey <tromey@adacore.com>
4154
4155 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4156 lookup_symbol_search_name.
4157
a67a1c41
AB
41582020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4159
4160 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4161 redundant local variable.
4162 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4163 reference, not pointer, update code accordingly.
4164
a7b4ff4f
SM
41652020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4166 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4167
4168 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4169 * jit.c (jit_breakpoint_re_set_internal): Use the
4170 `skip_jit_symbol_lookup` field.
4171
2340e834
SM
41722020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4173 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4174
4175 * jit.c (jit_read_descriptor): Define the descriptor address once,
4176 use twice.
4177 (jit_breakpoint_deleted): Move the declaration of the loop variable
4178 `iter` into the loop header.
4179 (jit_breakpoint_re_set_internal): Move the declaration of the local
4180 variable `objf_data` to the first point of definition.
4181 (jit_event_handler): Move the declaration of local variables
4182 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4183 Rename `objf` to `jited`.
4184
c1072906
SM
41852020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4186
4187 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4188 Remove.
4189 * jit.c (get_jiter_objfile_data): Update.
4190
c8474dc3
TBA
41912020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4192 Simon Marchi <simon.marchi@polymtl.ca>
4193
4194 * jit.c (struct jit_program_space_data): Remove.
4195 (jit_program_space_key): Remove.
4196 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4197 stuff.
4198 (get_jit_program_space_data): Remove.
4199 (jit_breakpoint_deleted): Iterate on all of the program space's
4200 objfiles.
4201 (jit_inferior_init): Likewise.
4202 (jit_breakpoint_re_set_internal): Likewise. Also change return
4203 type to void.
4204 (jit_breakpoint_re_set): Pass current_program_space to
4205 jit_breakpoint_re_set_internal.
4206
77208eb7
SM
42072020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4208
4209 * jit.h (struct jiter_objfile_data) <cached_code_address,
4210 jit_breakpoint>: Move to here from ...
4211 * jit.c (jit_program_space_data): ... here.
4212 (jiter_objfile_data::~jiter_objfile_data): Update.
4213 (jit_breakpoint_deleted): Update.
4214 (jit_breakpoint_re_set_internal): Update.
4215
8c1c720f
SM
42162020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4217
4218 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4219 checks.
4220 (jit_read_descriptor): Remove NULL check.
4221 (jit_event_handler): Add an assertion.
4222
0e74a041
SM
42232020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4224
4225 * jit.h (struct jit_objfile_data): Split into...
4226 (struct jiter_objfile_data): ... this ...
4227 (struct jited_objfile_data): ... and this.
4228 * objfiles.h (struct objfile) <jit_data>: Remove.
4229 <jiter_data, jited_data>: New fields.
4230 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4231 (jiter_objfile_data::~jiter_objfile_data): ... this.
4232 (get_jit_objfile_data): Rename to ...
4233 (get_jiter_objfile_data): ... this.
4234 (add_objfile_entry): Update.
4235 (jit_read_descriptor): Use get_jiter_objfile_data.
4236 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4237 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4238 (jit_inferior_exit_hook): Use objfile's jited_data field.
4239
238b5c9f
SM
42402020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4241
4242 * jit.h: Forward-declare `struct minimal_symbol`.
4243 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4244 constructor, destructor, and an objfile* field.
4245 * jit.c (jit_objfile_data): Remove.
4246 (struct jit_objfile_data): Migrate from here to jit.h.
4247 (jit_objfile_data::~jit_objfile_data): New destructor
4248 implementation with code moved from free_objfile_data.
4249 (free_objfile_data): Delete.
4250 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4251 (jit_find_objf_with_entry_addr): Ditto.
4252 (jit_inferior_exit_hook): Ditto.
4253 (_initialize_jit): Remove the call to
4254 register_objfile_data_with_cleanup.
4255 * objfiles.h (struct objfile) <jit_data>: New field.
4256
fe053b9e
TBA
42572020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4258
4259 * jit.h: Forward-declare `struct objfile`.
4260 (jit_event_handler): Add a second parameter, the JITer objfile.
4261 * jit.c (jit_read_descriptor): Change the signature to take the
4262 JITer objfile as an argument instead of the jit_program_space_data.
4263 (jit_inferior_init): Update the call to jit_read_descriptor.
4264 (jit_event_handler): Use the new JITer objfile argument when calling
4265 jit_read_descriptor.
4266 * breakpoint.c (handle_jit_event): Update the call to
4267 jit_event_handler to pass the JITer objfile.
4268
4cec0c66
JB
42692020-07-21 John Baldwin <jhb@FreeBSD.org>
4270
4271 * gdbarch.c: Regenerate.
4272 * gdbarch.h: Regenerate.
4273 * gdbarch.sh (handle_segmentation_fault): Remove method.
4274 * infrun.c (handle_segmentation_fault): Remove.
4275 (print_signal_received_reason): Remove call to
4276 handle_segmentation_fault.
4277
0e42f66a
JB
42782020-07-21 John Baldwin <jhb@FreeBSD.org>
4279
4280 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4281 Rename to sparc64_linux_report_signal_info and add siggnal
4282 argument.
4283 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4284 instead of sparc64_linux_handle_segmentation_fault.
4285
77bdfeb2
JB
42862020-07-21 John Baldwin <jhb@FreeBSD.org>
4287
4288 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4289 i386_linux_report_signal_info instead of
4290 i386_linux_handle_segmentation_fault.
4291 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4292 to i386_linux_report_signal_info and add siggnal argument.
4293 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4294 of i386_linux_handle_segmentation_fault.
4295 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4296 to i386_linux_report_signal_info and add siggnal argument.
4297
ad97bfc5
JB
42982020-07-21 John Baldwin <jhb@FreeBSD.org>
4299
4300 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4301 hook if present.
4302
272bb05c
JB
43032020-07-21 John Baldwin <jhb@FreeBSD.org>
4304
4305 * gdbarch.c: Regenerate.
4306 * gdbarch.h: Regenerate.
4307 * gdbarch.sh (report_signal_info): New method.
4308 * infrun.c (print_signal_received_reason): Invoke gdbarch
4309 report_signal_info hook if present.
4310
baf8791e
AB
43112020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4312
4313 * python/py-registers.c : Add 'unordered_map' include.
4314 (gdbpy_new_reggroup): Renamed to...
4315 (gdbpy_get_reggroup): ...this. Update to only create register
4316 group descriptors when needed.
4317 (gdbpy_reggroup_iter_next): Update.
4318
f7306dac
AB
43192020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4320
4321 * python/py-registers.c (gdbpy_register_object_data): New static
4322 global.
4323 (gdbpy_register_object_data_init): New function.
4324 (gdbpy_new_register_descriptor): Renamed to...
4325 (gdbpy_get_register_descriptor): ...this, and update to reuse
4326 existing register descriptors where possible.
4327 (gdbpy_register_descriptor_iter_next): Update.
4328 (gdbpy_initialize_registers): Register new gdbarch data.
4329
05c309a8
SM
43302020-07-21 Simon Marchi <simon.marchi@efficios.com>
4331
4332 * linux-nat.c (stopped_pids): Make static.
4333
d1fd641e
SM
43342020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4335
4336 PR ada/26235
4337 * gdbtypes.c (ada_discrete_type_low_bound,
4338 ada_discrete_type_high_bound): Handle undefined bounds.
4339
1de14d77
KR
43402020-07-21 Kamil Rytarowski <n54@gmx.com>
4341
4342 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4343 declaration.
4344 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4345 function.
4346
ed810cc7
JB
43472020-07-20 John Baldwin <jhb@FreeBSD.org>
4348
4349 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4350 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4351 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4352 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4353 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4354 method.
4355
ae5369e7
LC
43562020-07-20 Ludovic Courtès <ludo@gnu.org>
4357
4358 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4359 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4360 which are deprecated in Guile 3.0.
4361 * configure.ac (try_guile_versions): Add "guile-3.0".
4362 * configure (try_guile_versions): Regenerate.
4363 * NEWS: Update entry.
4364
68cf161c
LC
43652020-07-20 Ludovic Courtès <ludo@gnu.org>
4366 Doug Evans <dje@google.com>
4367
4368 PR gdb/21104
4369 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4370 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4371 USING_GUILE_BEFORE_2_2.
4372 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4373 Change type to 'scm_t_port_type *'.
4374 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4375 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4376 parameter and honor it. Update callers.
4377 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4378 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4379 functions.
4380 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4381 USING_GUILE_BEFORE_2_2.
4382 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4383 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4384 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4385 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4386 and 'SCM_PORT_TYPE'.
4387 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4388 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4389 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4390 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4391 [!USING_GUILE_BEFORE_2_2]: New functions.
4392 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4393 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4394 'gdbscm_memory_port_read'.
4395 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4396 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4397 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4398 function.
4399 (ioscm_init_memory_port): Remove.
4400 (ioscm_init_memory_port_stream): New function
4401 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4402 function.
4403 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4404 Return scm_from_uint (0).
4405 (gdbscm_set_memory_port_read_buffer_size_x)
4406 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4407 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4408 Return scm_from_uint (0).
4409 (gdbscm_set_memory_port_write_buffer_size_x)
4410 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4411 * configure.ac (try_guile_versions): Add "guile-2.2".
4412 * configure: Regenerate.
4413 * NEWS: Add entry.
4414
aee91db3
TT
44152020-07-18 Tom Tromey <tom@tromey.com>
4416
4417 * linux-nat.c (linux_multi_process): Remove.
4418 (linux_nat_target::supports_multi_process): Return true.
4419
0e267416
AB
44202020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4421
4422 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4423 (riscv_lookup_target_description): Return pointer out of
4424 unique_ptr.
4425 * target-descriptions.c (allocate_target_description): Add
4426 comment.
4427 (target_desc_deleter::operator()): Likewise.
4428 * target-descriptions.h (struct target_desc_deleter): Moved to
4429 gdbsupport/tdesc.h.
4430 (target_desc_up): Likewise.
4431
f80c8ec4
TT
44322020-07-17 Tom Tromey <tromey@adacore.com>
4433
4434 * linux-nat.c (linux_nat_target::supports_non_stop)
4435 (linux_nat_target::always_non_stop_p): Use "true".
4436 (linux_nat_target::supports_disable_randomization): Use "true" and
4437 "false".
4438
d0ce17d8
CT
44392020-07-16 Caroline Tice <cmtice@google.com>
4440
4441 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4442 (RNGLIST_HEADER_SIZE64): New constant definition.
4443 (struct dwop_section_names): Add rnglists_dwo.
4444 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4445 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4446 (struct dwo_sections): Add rnglists field.
4447 (read_attribut_reprocess): Add tag parameter.
4448 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4449 (cu_debug_rnglists_section): New function (decl & definition).
4450 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4451 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4452 die whose range is being checked; get rnglist section from
4453 cu_debug_rnglists_section, to get from either objfile or dwo file as
4454 appropriate. Add cases for DW_RLE_base_addressx,
4455 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4456 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4457 test inside if-condition and updating complaint message.
4458 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4459 dwarf2_rnglists_process.
4460 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4461 dwarf2_ranges_process.
4462 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4463 need_ranges_base and update comment appropriately. Also pass die tag
4464 to dwarf2_ranges_read.
4465 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4466 need_ranges_base and update comment appropriately. Also pass die tag
4467 to dwarf2_ranges_process.
4468 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4469 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4470 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4471 need_ranges_base and update comment appropriately. Also pass die tag
4472 to read_attribute_reprocess and dwarf2_ranges_read.
4473 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4474 and update function comment appropriately.
4475 (read_loclist_index): Call read_loclists_rnglists_header instead of
4476 read_loclist_header.
4477 (read_rnglist_index): New function.
4478 (read_attribute_reprocess): Add tag parameter. Add code for
4479 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4480 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4481
3dcc261c
AB
44822020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4483
4484 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4485 being resolved.
4486
ccb9eba6
AB
44872020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4488
4489 * arch-utils.c (show_architecture): Update formatting of messages.
4490
cf88be68
SM
44912020-07-12 Simon Marchi <simon.marchi@efficios.com>
4492
4493 * gdbtypes.h (struct type) <bounds>: Handle array and string
4494 types.
4495 * ada-lang.c (assign_aggregate): Use type::bounds on
4496 array/string type.
4497 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4498 * c-varobj.c (c_number_of_children): Likewise.
4499 (c_describe_child): Likewise.
4500 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4501 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4502 (f_type_print_base): Likewise.
4503 * f-valprint.c (f77_array_offset_tbl): Likewise.
4504 (f77_get_upperbound): Likewise.
4505 (f77_print_array_1): Likewise.
4506 * guile/scm-type.c (gdbscm_type_range): Likewise.
4507 * m2-typeprint.c (m2_array): Likewise.
4508 (m2_is_long_set_of_type): Likewise.
4509 * m2-valprint.c (get_long_set_bounds): Likewise.
4510 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4511 * python/py-type.c (typy_range): Likewise.
4512 * rust-lang.c (rust_internal_print_type): Likewise.
4513 * type-stack.c (type_stack::follow_types): Likewise.
4514 * valarith.c (value_subscripted_rvalue): Likewise.
4515 * valops.c (value_cast): Likewise.
4516
509971ae
SM
45172020-07-12 Simon Marchi <simon.marchi@efficios.com>
4518
4519 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4520 callers to use the equivalent accessor methods.
4521
107406b7
SM
45222020-07-12 Simon Marchi <simon.marchi@efficios.com>
4523
4524 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4525 (struct type) <bit_stride>: New method.
4526 (TYPE_BIT_STRIDE): Remove.
4527 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4528
bb789949
SM
45292020-07-12 Simon Marchi <simon.marchi@efficios.com>
4530
4531 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4532 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4533 callers to use the equivalent accessor methods instead.
4534
39498edb
SM
45352020-07-12 Simon Marchi <simon.marchi@efficios.com>
4536
4537 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4538 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4539 callers to use the equivalent accessor methods instead.
4540
3b606f38
SM
45412020-07-12 Simon Marchi <simon.marchi@efficios.com>
4542
4543 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4544 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4545 to use dynamic_prop::kind.
4546
064d9cb9
SM
45472020-07-12 Simon Marchi <simon.marchi@efficios.com>
4548
4549 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4550 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4551 to get the bound property's kind and check against
4552 PROP_UNDEFINED.
4553
5537ddd0
SM
45542020-07-12 Simon Marchi <simon.marchi@efficios.com>
4555
4556 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4557 all callers to use type::range_bounds followed by
4558 dynamic_prop::{low,high}.
4559
8c2e4e06
SM
45602020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4561
4562 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4563 const_val, set_const_val, baton, set_locexpr, set_loclist,
4564 set_addr_offset, variant_parts, set_variant_parts,
4565 original_type, set_original_type>: New methods.
4566 <kind>: Rename to...
4567 <m_kind>: ... this. Update all users to use the new methods
4568 instead.
4569 <data>: Rename to...
4570 <m_data>: ... this. Update all users to use the new methods
4571 instead.
4572
7c6f2712
SM
45732020-07-12 Simon Marchi <simon.marchi@efficios.com>
4574
4575 * gdbtypes.c (get_discrete_bounds): Return failure if
4576 the range type's bounds are not both defined and constant
4577 values.
4578 (get_array_bounds): Update comment. Remove undefined bound check.
4579
599088e3
SM
45802020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4581
4582 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4583 the type::bounds method directly.
4584
c4dfcb36
SM
45852020-07-12 Simon Marchi <simon.marchi@efficios.com>
4586
4587 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4588 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4589 are used to set the range type's bounds to use set_bounds.
4590
0a278aa7
PW
45912020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4592
4593 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4594
cce20f10
PA
45952020-07-10 Pedro Alves <pedro@palves.net>
4596
4597 * gdbthread.h (inferior_ref): Define.
4598 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4599 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4600 * thread.c
4601 (scoped_restore_current_thread::restore):
4602 Adjust to gdb::ref_ptr.
4603 (scoped_restore_current_thread::~scoped_restore_current_thread):
4604 Remove manual decref handling.
4605 (scoped_restore_current_thread::scoped_restore_current_thread):
4606 Adjust to use
4607 inferior_ref::new_reference/thread_info_ref::new_reference.
4608 Incref the thread before calling get_frame_id instead of after.
4609 Let TARGET_CLOSE_ERROR propagate.
4610
6d7aa592
PA
46112020-07-10 Pedro Alves <pedro@palves.net>
4612
4613 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4614 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4615 NOT_AVAILABLE_ERROR.
4616 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4617 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4618
b3e3a4c1
SM
46192020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4620 Pedro Alves <pedro@palves.net>
4621
4622 PR gdb/26199
4623 * infrun.c (threads_are_resumed_pending_p): Delete.
4624 (do_target_wait): Remove threads_are_executing and
4625 threads_are_resumed_pending_p checks from the inferior_matches
4626 lambda. Update comments.
4627
d6cc5d98
PA
46282020-07-10 Pedro Alves <pedro@palves.net>
4629
4630 PR gdb/26199
4631 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4632 executing threads.
4633
7d3badc6
PA
46342020-07-10 Pedro Alves <pedro@palves.net>
4635
4636 PR gdb/26199
4637 * infrun.c (handle_no_resumed): Handle multiple targets.
4638
42bd97a6
PA
46392020-07-10 Pedro Alves <pedro@palves.net>
4640
4641 PR gdb/26199
4642 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4643 target_is_async_p.
4644
43667cc6
PA
46452020-07-10 Pedro Alves <pedro@palves.net>
4646
4647 PR gdb/26199
4648 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4649 threads, not all threads.
4650
96118d11
PA
46512020-07-10 Pedro Alves <pedro@palves.net>
4652
4653 PR gdb/26199
4654 * remote.c (remote_target::open_1): Pass remote target pointer as
4655 data to create_async_event_handler.
4656 (remote_async_inferior_event_handler): Mark async event handler
4657 before returning if the remote target still has either pending
4658 events or unacknowledged notifications.
4659
54904d81
JB
46602020-07-10 John Baldwin <jhb@FreeBSD.org>
4661
4662 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4663 declaration.
4664 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4665 function.
4666
f37e5866
JB
46672020-07-09 John Baldwin <jhb@FreeBSD.org>
4668
4669 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4670 inferior_ptid.
4671
fc238d4a
JB
46722020-07-09 John Baldwin <jhb@FreeBSD.org>
4673
4674 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4675 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4676 AT_FREEBSD_PS_STRINGS.
4677
6e2469ff
HD
46782020-07-08 Hannes Domani <ssbssa@yahoo.de>
4679
4680 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4681 of debugfile path on Windows.
4682
d1076c41
JB
46832020-07-08 John Baldwin <jhb@FreeBSD.org>
4684
4685 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4686 argument to 'data'.
4687
15f3b077
TT
46882020-07-08 Tom Tromey <tromey@adacore.com>
4689
4690 * ada-lang.c (ada_exception_message_1): Use read_memory.
4691
9fc501fd
AB
46922020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4693
4694 PR python/22748
4695 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4696 special handling for inline frames.
4697 * findvar.c (value_of_register_lazy): Skip inline frames when
4698 creating lazy register values.
4699 * frame.c (frame_id_computed_p): Delete definition.
4700 * frame.h (frame_id_computed_p): Delete declaration.
4701
64cb3757
AB
47022020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4703
4704 * NEWS: Mention additions to Python API.
4705 * python/py-arch.c (archpy_register_groups): New function.
4706 (arch_object_methods): Add 'register_groups' method.
4707 * python/py-registers.c (reggroup_iterator_object): New struct.
4708 (reggroup_object): New struct.
4709 (gdbpy_new_reggroup): New function.
4710 (gdbpy_reggroup_to_string): New function.
4711 (gdbpy_reggroup_name): New function.
4712 (gdbpy_reggroup_iter): New function.
4713 (gdbpy_reggroup_iter_next): New function.
4714 (gdbpy_new_reggroup_iterator): New function
4715 (gdbpy_initialize_registers): Register new types.
4716 (reggroup_iterator_object_type): Define new Python type.
4717 (gdbpy_reggroup_getset): New static global.
4718 (reggroup_object_type): Define new Python type.
4719 * python/python-internal.h
4720
0f767f94
AB
47212020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4722
4723 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4724 * python/py-arch.c (archpy_registers): New function.
4725 (arch_object_methods): Add 'registers' method.
4726 * python/py-registers.c: New file.
4727 * python/python-internal.h
4728 (gdbpy_new_register_descriptor_iterator): Declare.
4729 (gdbpy_initialize_registers): Declare.
4730 * python/python.c (do_start_initialization): Call
4731 gdbpy_initialize_registers.
4732 * NEWS: Mention additions to the Python API.
4733
87dbc774
AB
47342020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4735
4736 * NEWS: Mention new Python API method.
4737 * python/py-unwind.c (pending_framepy_architecture): New function.
4738 (pending_frame_object_methods): Add architecture method.
4739
3bc98c0c
AB
47402020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4741
4742 * gdbarch.c: Regenerate.
4743 * gdbarch.h: Regenerate.
4744 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4745 (gdbarch_data): Use internal_error for the case where
4746 deprecated_set_gdbarch_data was originally needed.
4747 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4748 and use passed in obstack.
4749 (libunwind_frame_set_descr): Should no longer get back NULL from
4750 gdbarch_data.
4751 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4752 type.
4753 * user-regs.c (user_regs_init): Update parameters, and use passed
4754 in obstack.
4755 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4756 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4757
d8cc8af6
TV
47582020-07-06 Tom de Vries <tdevries@suse.de>
4759
4760 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4761 End-Of-Sequence in lte_is_less_than.
4762 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4763 "gdb: Don't reorder line table entries too much when sorting".
4764
947f7597
TV
47652020-07-06 Tom de Vries <tdevries@suse.de>
4766
4767 PR tui/26205
4768 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4769
1e7c1b22
TV
47702020-07-05 Tom de Vries <tdevries@suse.de>
4771
4772 PR build/26187
4773 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4774 std::uncaught_exceptions instead of deprecated
4775 std::uncaught_exception.
4776
a36158ec
SM
47772020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4778
4779 * macroexp.h (macro_stringify): Return
4780 gdb::unique_xmalloc_ptr<char>.
4781 * macroexp.c (macro_stringify): Likewise.
4782 * macrotab.c (fixup_definition): Update.
4783
14d960c8
SM
47842020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4785
4786 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4787 (lex_one_token): Update.
4788 * macroexp.c (struct macro_buffer) <release>: Return
4789 gdb::unique_xmalloc_ptr<char>.
4790 (macro_stringify): Update.
4791 (macro_expand): Update.
4792 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4793 * macroexp.h (macro_expand_next): Likewise.
4794
211d5b1c
SM
47952020-07-02 Simon Marchi <simon.marchi@efficios.com>
4796
4797 * macroexp.h (macro_lookup_ftype): Remove.
4798 (macro_expand, macro_expand_once, macro_expand_next): Remove
4799 lookup function parameters, add scope parameter.
4800 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4801 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4802 * macroscope.h (standard_macro_lookup): Change parameter type
4803 to macro_scope.
4804 * macroscope.c (standard_macro_lookup): Likewise.
4805 * c-exp.y (lex_one_token): Update.
4806 * macrocmd.c (macro_expand_command): Likewise.
4807 (macro_expand_once_command): Likewise.
4808
b1a35af2
SM
48092020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4810
4811 * inf-loop.c (inferior_event_handler): Remove client_data param.
4812 * inf-loop.h (inferior_event_handler): Likewise.
4813 * infcmd.c (step_1): Adjust.
4814 * infrun.c (proceed): Adjust.
4815 (fetch_inferior_event): Remove client_data param.
4816 (infrun_async_inferior_event_handler): Adjust.
4817 * infrun.h (fetch_inferior_event): Remove `void *` param.
4818 * linux-nat.c (handle_target_event): Adjust.
4819 * record-btrace.c (record_btrace_handle_async_inferior_event):
4820 Adjust.
4821 * record-full.c (record_full_async_inferior_event_handler):
4822 Adjust.
4823 * remote.c (remote_async_inferior_event_handler): Adjust.
4824
1cdf9e33
TT
48252020-07-01 Tom Tromey <tom@tromey.com>
4826
4827 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4828 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4829
32c1e210
TT
48302020-07-01 Tom Tromey <tom@tromey.com>
4831
4832 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4833 tui_gen_win_info.
4834 (tui_win_info::make_window): Merge with
4835 tui_gen_win_info::make_window.
4836 (tui_win_info::make_visible): Move from tui_gen_win_info.
4837 * tui/tui-win.c (tui_win_info::max_width): Move from
4838 tui_gen_win_info.
4839 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4840 type.
4841 <window_factory>: Likewise.
4842 * tui/tui-layout.c (tui_win_info::resize): Move from
4843 tui_gen_win_info.
4844 (make_standard_window): Change return type.
4845 (get_locator_window, tui_get_window_by_name): Likewise.
4846 (tui_layout_window::apply): Remove a cast.
4847 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4848 (struct tui_win_info): Merge with tui_gen_win_info.
4849 (struct tui_gen_win_info): Remove.
4850
a30cb6da
TT
48512020-07-01 Tom Tromey <tom@tromey.com>
4852
4853 * tui/tui-stack.h (struct tui_locator_window): Derive from
4854 tui_win_info.
4855 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4856 <can_box>: New method.
4857
1eb2161f
TT
48582020-07-01 Tom Tromey <tom@tromey.com>
4859
4860 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4861
7134f2eb
TT
48622020-07-01 Tom Tromey <tom@tromey.com>
4863
4864 * tui/tui-regs.c (tui_data_window::display_registers_from)
4865 (tui_data_window::display_registers_from)
4866 (tui_data_window::first_data_item_displayed)
4867 (tui_data_window::delete_data_content_windows): Update.
4868 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4869 Remove.
4870 (tui_data_window::check_register_values): Update.
4871 (tui_data_item_window::rerender): Add parameters. Update.
4872 (tui_data_item_window::refresh_window): Remove.
4873 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4874 virtual.
4875 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4876 tui_gen_win_info.
4877 <refresh_window, max_height, min_height>: Remove.
4878 <rerender>: Add parameters.
4879 <x, y, visible>: New members.
4880 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4881 <m_item_width>: New member.
4882
22b7b041
TT
48832020-07-01 Tom Tromey <tom@tromey.com>
4884
4885 * tui/tui-regs.c (tui_data_window::show_register_group)
4886 (tui_data_window::check_register_values): Update.
4887 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4888 from item_no.
4889
c9753adb
TT
48902020-07-01 Tom Tromey <tom@tromey.com>
4891
4892 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4893 useless "if".
4894
9ab26b4a
TT
48952020-07-01 Tom Tromey <tom@tromey.com>
4896
4897 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4898 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4899
e555083f
TT
49002020-07-01 Tom Tromey <tom@tromey.com>
4901
4902 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4903 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4904 (struct tui_line_or_address): Move from tui-data.h.
4905 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4906 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4907 (tui_cmd_window, tui_source_window_base, tui_source_window)
4908 (tui_disasm_window): Don't declare.
4909 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4910 to tui-winsource.h.
4911 (SINGLE_KEY): Move to tui-stack.c.
4912
7a02bab7
TT
49132020-07-01 Tom Tromey <tom@tromey.com>
4914
4915 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4916 std::string.
4917 * tui/tui-regs.c (class tab_expansion_file): New.
4918 (tab_expansion_file::write): New method.
4919 (tui_register_format): Change return type. Use
4920 tab_expansion_file.
4921 (tui_get_register, tui_data_window::display_registers_from)
4922 (tui_data_item_window::rerender): Update.
4923 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4924 * tui/tui-io.c (tui_expand_tabs): Remove.
4925
ea68593b
TT
49262020-07-01 Tom Tromey <tom@tromey.com>
4927
4928 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4929
a8caed5d
FS
49302020-07-01 Fangrui Song <maskray@google.com>
4931
4932 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4933
9cdf9820
AKS
49342020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4935
4936 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4937 forms for DW_AT_associated and DW_AT_allocated attributes,
4938 which is already checked in function attr_to_dynamic_prop.
4939
a1520ad8
TT
49402020-06-30 Tom Tromey <tromey@adacore.com>
4941
4942 * dwarf2/read.c (quirk_rust_enum): Correctly call
4943 alloc_rust_variant for default-less enum.
4944
5ac58899
TT
49452020-06-30 Tom Tromey <tromey@adacore.com>
4946
4947 PR build/26183:
4948 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4949 gdb::to_string.
4950
19b187a9
SM
49512020-06-29 Simon Marchi <simon.marchi@efficios.com>
4952
4953 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4954 * gdbarch.h: Re-generate.
4955
cd4c4c07
TT
49562020-06-28 Tom Tromey <tom@tromey.com>
4957
4958 * command.h (cmd_types): Remove.
4959 (cmd_type): Don't declare.
4960 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4961 typedef.
4962 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4963 * cli/cli-decode.c (cmd_type): Remove.
4964
05779d57
PA
49652020-06-27 Pedro Alves <palves@redhat.com>
4966
4967 * fork-child.c (prefork_hook): Adjust.
4968 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4969 Delete.
4970 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4971 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4972 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4973 Remove declarations.
4974 (struct inferior) <set_tty, tty>: New methods.
4975 (struct inferior) <terminal>: Rename to ...
4976 (struct inferior) <m_terminal>: ... this and make private.
4977 * main.c (captured_main_1): Adjust.
4978 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4979 (mi_cmd_inferior_tty_show): Adjust.
4980 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4981 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4982
1776e3e5
NA
49832020-06-26 Nick Alcock <nick.alcock@oracle.com>
4984
4985 * configure.ac: Add --enable-libctf: handle --disable-static
4986 properly.
4987 * acinclude.m4: sinclude ../config/enable.m4.
4988 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4989 (LIBCTF): Substitute in.
4990 (CTF_DEPS): New, likewise.
4991 (CLIBS): libctf needs symbols from libbfd: move earlier.
4992 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4993 flags.
4994 * ctfread.c: Surround in ENABLE_LIBCTF.
4995 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4996 * configure: Regenerate.
4997 * config.in: Likewise.
4998
58373b80
SM
49992020-06-25 Simon Marchi <simon.marchi@efficios.com>
5000
5001 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5002
277474ee
SM
50032020-06-25 Simon Marchi <simon.marchi@efficios.com>
5004
5005 * inferior.h (struct inferior) <terminal>: Change type to
5006 gdb::unique_xmalloc_ptr<char>.
5007 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5008 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5009 field, adjust to unique pointer.
5010 (get_inferior_io_terminal): Adjust to unique pointer.
5011
6d74da72
AB
50122020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5013
5014 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5015 registers, not just the known core set of registers.
5016
2e52d038
AB
50172020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5018
5019 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5020 fflags, frm, and fcsr registers.
5021 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5022 restore groups.
5023 (riscv_tdesc_unknown_reg): New function.
5024 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5025 tdesc_use_registers.
5026 * riscv-tdep.h (struct gdbarch_tdep): Add
5027 unknown_csrs_first_regnum, unknown_csrs_count,
5028 duplicate_fflags_regnum, duplicate_frm_regnum, and
5029 duplicate_fcsr_regnum fields.
5030
be64fd07
AB
50312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5032
5033 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5034 callback, use the callback (when not null) to help number unknown
5035 registers.
5036 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5037 (tdesc_use_registers): Add extra parameter to declaration.
5038
3b9fce96
AB
50392020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5040
5041 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5042 in the file.
5043 (class riscv_pending_register_alias): Likewise.
5044 (riscv_register_feature::register_info): Change 'required_p' field
5045 to 'required', and change its type. Add 'check' member function.
5046 (riscv_register_feature::register_info::check): Define new member
5047 function.
5048 (riscv_xreg_feature): Change initialisation of 'required' field.
5049 (riscv_freg_feature): Likewise.
5050 (riscv_virtual_feature): Likewise.
5051 (riscv_csr_feature): Likewise.
5052 (riscv_check_tdesc_feature): Take extra parameter, the csr
5053 tdesc_feature, rewrite the function to use the new
5054 riscv_register_feature::register_info::check function.
5055 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5056
865bad26
AB
50572020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5058
5059 * features/Makefile: Remove all references to the deleted files
5060 below.
5061 * features/riscv/32bit-csr.c: Deleted.
5062 * features/riscv/32bit-csr.xml: Deleted.
5063 * features/riscv/64bit-csr.c: Deleted.
5064 * features/riscv/64bit-csr.xml: Deleted.
5065 * features/riscv/rebuild-csr-xml.sh: Deleted.
5066
ed69cbc8
AB
50672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5068
5069 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5070 whitespace error for declaration of names member variable.
5071 (struct riscv_register_feature): Add new prefer_first_name member
5072 variable, and fix whitespace error in declaration of registers.
5073 (riscv_xreg_feature): Initialize prefer_first_name field.
5074 (riscv_freg_feature): Likewise.
5075 (riscv_virtual_feature): Likewise.
5076 (riscv_csr_feature): Likewise.
5077 (riscv_register_name): Expand on comments. Remove register name
5078 modifications for CSR and virtual registers.
5079
4445e8f5
AB
50802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5081
5082 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5083 errors.
5084
767a879e
AB
50852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5086
5087 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5088 riscv-opc.h.
5089 (class riscv_pending_register_alias): New class.
5090 (riscv_check_tdesc_feature): Take vector of pending aliases and
5091 populate it as appropriate.
5092 (riscv_setup_register_aliases): Delete.
5093 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5094 to riscv_check_tdesc_feature in all cases. Use the vector to
5095 create the register aliases.
5096
bb6e55f3
RO
50972020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5098
5099 * sol2-tdep.c (sol2_static_transform_name): Remove.
5100 (sol2_init_abi): Don't register it.
5101 * gdbarch.sh (static_transform_name): Remove.
5102 * gdbarch.c, gdbarch.h: Regenerate.
5103
5104 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5105 gdbarch_static_transform_name.
5106 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5107 * stabsread.c (define_symbol) <'X'>: Remove.
5108 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5109 handling.
5110 <'V'>: Likewise.
5111 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5112 <'S'>: Remove call to gdbarch_static_transform_name.
5113
c6d36836
RO
51142020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5115
5116 * procfs.c (procfs_pre_trace): New function.
5117 (procfs_target::create_inferior): Pass it to fork_inferior.
5118
a7e6196b
RO
51192020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5120
5121 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5122 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5123 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5124 sol2-tdep.o, sparc-sol2-tdep.o.
5125 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5126 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5127 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5128 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5129
d412e696
RO
51302020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5131
5132 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5133 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5134 Call sol2_init_abi.
5135 Remove calls to set_gdbarch_skip_solib_resolver,
5136 set_gdbarch_core_pid_to_str.
5137 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5138 (i386_sol2_static_transform_name): Remove.
5139 (i386_sol2_init_abi): Call sol2_init_abi.
5140 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5141 set_gdbarch_static_transform_name,
5142 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5143 Use sol2_sigtramp_p.
5144 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5145 (sol2_sigtramp_p): New function.
5146 (sol2_static_transform_name): New function.
5147 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5148 (sol2_init_abi): New function.
5149 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5150 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5151 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5152 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5153 (sparc_sol2_static_transform_name): Remove.
5154 (sparc32_sol2_init_abi): Call sol2_init_abi.
5155 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5156 set_gdbarch_static_transform_name,
5157 set_gdbarch_skip_solib_resolver,
5158 set_gdbarch_core_pid_to_str.
5159 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5160 (sparc_sol2_static_transform_name): Remove
5161 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5162 call sol2_sigtramp_p.
5163 (sparc64_sol2_init_abi): Call sol2_init_abi.
5164 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5165 set_gdbarch_static_transform_name,
5166 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5167
a8654e7d
PW
51682020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5169
5170 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5171 * exec.c (validate_exec_file): If from_tty, set both
5172 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5173 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5174 and from_tty, unconditionally ask a confirmation.
5175
caa7fd04
AB
51762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5177
5178 * target-descriptions.c (tdesc_architecture_name): Protect against
5179 NULL pointer dereference.
5180 (maint_print_xml_tdesc_cmd): New function.
5181 (_initialize_target_descriptions): Register new 'maint print
5182 xml-tdesc' command and give it the filename completer.
5183 * NEWS: Mention new 'maint print xml-tdesc' command.
5184
fbf42f4e
AB
51852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5186
5187 * target-descriptions.c (class tdesc_compatible_info): New class.
5188 (struct target_desc): Change type of compatible vector.
5189 (tdesc_compatible_p): Update for change in type of
5190 target_desc::compatible.
5191 (tdesc_compatible_info_list): New function.
5192 (tdesc_compatible_info_arch_name): New function.
5193 (tdesc_add_compatible): Update for change in type of
5194 target_desc::compatible.
5195 (print_c_tdesc::visit_pre): Likewise.
5196
20821f4e
AB
51972020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5198
5199 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5200 whitespace to underscore.
5201 (maint_print_c_tdesc_cmd): Use fake filename for target
5202 descriptions that came from the target.
5203 (_initialize_target_descriptions): Add filename command completion
5204 for 'maint print c-tdesc'.
5205
1fb5ee62
SM
52062020-06-23 Simon Marchi <simon.marchi@efficios.com>
5207
5208 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5209 lines.
5210
fc3ecb3e
SM
52112020-06-23 Simon Marchi <simon.marchi@efficios.com>
5212
5213 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5214 lines.
5215 (dwarf2_find_location_expression): Likewise.
5216 (call_site_parameter_matches): Likewise.
5217 (dwarf2_compile_expr_to_ax): Likewise.
5218 (disassemble_dwarf_expression): Likewise.
5219 (loclist_describe_location): Likewise.
5220
236ef034
PA
52212020-06-23 Pedro Alves <palves@redhat.com>
5222
5223 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5224 progspace-and-thread.h. Include scoped-mock-context.h instead.
5225 (register_to_value_test): Use scoped_mock_context.
5226 * regcache.c: Include "scoped-mock-context.h".
5227 (cooked_read_test): Don't error out if a target is already pushed.
5228 Use scoped_mock_context. Adjust.
5229 * scoped-mock-context.h: New file.
5230
39e7ecca
AB
52312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5232
5233 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5234 initializer.
5235 (ada_language::is_string_type_p): New member function.
5236 * c-lang.c (c_language_data): Delete la_is_string_type_p
5237 initializer.
5238 (cplus_language_data): Likewise.
5239 (asm_language_data): Likewise.
5240 (minimal_language_data): Likewise.
5241 * d-lang.c (d_language_data): Likewise.
5242 * f-lang.c (f_is_string_type_p): Delete function, implementation
5243 moved to f_language::is_string_type_p.
5244 (f_language_data): Delete la_is_string_type_p initializer.
5245 (f_language::is_string_type_p): New member function,
5246 implementation from f_is_string_type_p.
5247 * go-lang.c (go_is_string_type_p): Delete function, implementation
5248 moved to go_language::is_string_type_p.
5249 (go_language_data): Delete la_is_string_type_p initializer.
5250 (go_language::is_string_type_p): New member function,
5251 implementation from go_is_string_type_p.
5252 * language.c (language_defn::is_string_type_p): Define new member
5253 function.
5254 (default_is_string_type_p): Make static, add comment copied from
5255 header file.
5256 (unknown_language_data): Delete la_is_string_type_p initializer.
5257 (unknown_language::is_string_type_p): New member function.
5258 (auto_language_data): Delete la_is_string_type_p initializer.
5259 (auto_language::is_string_type_p): New member function.
5260 * language.h (language_data): Delete la_is_string_type_p field.
5261 (language_defn::is_string_type_p): Declare new function.
5262 (default_is_string_type_p): Delete desclaration, move comment to
5263 definition.
5264 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5265 moved to m2_language::is_string_type_p.
5266 (m2_language_data): Delete la_is_string_type_p initializer.
5267 (m2_language::is_string_type_p): New member function,
5268 implementation from m2_is_string_type_p.
5269 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5270 initializer.
5271 * opencl-lang.c (opencl_language_data): Likewise.
5272 * p-lang.c (pascal_is_string_type_p): Delete function,
5273 implementation moved to pascal_language::is_string_type_p.
5274 (pascal_language_data): Delete la_is_string_type_p initializer.
5275 (pascal_language::is_string_type_p): New member function,
5276 implementation from pascal_is_string_type_p.
5277 * rust-lang.c (rust_is_string_type_p): Delete function,
5278 implementation moved to rust_language::is_string_type_p.
5279 (rust_language_data): Delete la_is_string_type_p initializer.
5280 (rust_language::is_string_type_p): New member function,
5281 implementation from rust_is_string_type_p.
5282 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5283 is_string_type_p.
5284
4ffc13fb
AB
52852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5286
5287 * ada-lang.c (ada_language_data): Delete la_print_typedef
5288 initializer.
5289 (ada_language::print_typedef): New member function.
5290 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5291 (cplus_language_data): Likewise.
5292 (asm_language_data): Likewise.
5293 (minimal_language_data): Likewise.
5294 * d-lang.c (d_language_data): Likewise.
5295 * f-lang.c (f_language_data): Likewise.
5296 (f_language::print_typedef): New member function.
5297 * go-lang.c (go_language_data): Delete la_print_typedef
5298 initializer.
5299 * language.c (language_defn::print_typedef): Define member
5300 function.
5301 (unknown_language_data): Delete la_print_typedef initializer.
5302 (unknown_language::print_typedef): New member function.
5303 (auto_language_data): Delete la_print_typedef initializer.
5304 (auto_language::print_typedef): New member function.
5305 * language.h (language_data): Delete la_print_typedef field.
5306 (language_defn::print_typedef): Declare new member function.
5307 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5308 (default_print_typedef): Delete declaration.
5309 * m2-lang.c (m2_language_data): Delete la_print_typedef
5310 initializer.
5311 (m2_language::print_typedef): New member function.
5312 * objc-lang.c (objc_language_data): Delete la_print_typedef
5313 initializer.
5314 * opencl-lang.c (opencl_language_data): Likewise.
5315 * p-lang.c (pascal_language_data): Likewise.
5316 (pascal_language::print_typedef): New member function.
5317 * rust-lang.c (rust_print_typedef): Delete function,
5318 implementation moved to rust_language::print_typedef.
5319 (rust_language): Delete la_print_typedef initializer.
5320 (rust_language::print_typedef): New member function,
5321 implementation from rust_print_typedef.
5322 * typeprint.c (default_print_typedef): Delete.
5323
d711ee67
AB
53242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5325
5326 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5327 (ada_language::printstr): New member function.
5328 * c-lang.c (c_language_data): Delete la_printstr initializer.
5329 (cplus_language_data): Likewise.
5330 (asm_language_data): Likewise.
5331 (minimal_language_data): Likewise.
5332 * d-lang.c (d_language_data): Likewise.
5333 * f-lang.c (f_printstr): Rename to f_language::printstr.
5334 (f_language_data): Delete la_printstr initializer.
5335 (f_language::printstr): New member function, implementation from
5336 f_printstr.
5337 * go-lang.c (go_language_data): Delete la_printstr initializer.
5338 * language.c (language_defn::printstr): Define new member
5339 function.
5340 (unk_lang_printstr): Delete.
5341 (unknown_language_data): Delete la_printstr initializer.
5342 (unknown_language::printstr): New member function.
5343 (auto_language_data): Delete la_printstr initializer.
5344 (auto_language::printstr): New member function.
5345 * language.h (language_data): Delete la_printstr field.
5346 (language_defn::printstr): Declare new member function.
5347 (LA_PRINT_STRING): Update call to printstr.
5348 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5349 (m2_language_data): Delete la_printstr initializer.
5350 (m2_language::printstr): New member function, implementation from
5351 m2_printstr.
5352 * objc-lang.c (objc_language_data): Delete la_printstr
5353 initializer.
5354 * opencl-lang.c (opencl_language_data): Likewise.
5355 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5356 (pascal_language_data): Delete la_printstr initializer.
5357 (pascal_language::printstr): New member function, implementation
5358 from pascal_printstr.
5359 * p-lang.h (pascal_printstr): Delete declaration.
5360 * rust-lang.c (rust_printstr): Update header comment.
5361 (rust_language_data): Delete la_printstr initializer.
5362 (rust_language::printstr): New member function.
5363
52b50f2c
AB
53642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5365
5366 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5367 (ada_language::printchar): New member function.
5368 * c-lang.c (c_language_data): Delete la_printchar initializer.
5369 (cplus_language_data): Likewise.
5370 (asm_language_data): Likewise.
5371 (minimal_language_data): Likewise.
5372 * d-lang.c (d_language_data): Likewise.
5373 * f-lang.c (f_printchar): Rename to f_language::printchar.
5374 (f_language_data): Delete la_printchar initializer.
5375 (f_language::printchar): New member function, implementation from
5376 f_printchar.
5377 * go-lang.c (go_language_data): Delete la_printchar initializer.
5378 * language.c (unk_lang_printchar): Delete.
5379 (language_defn::printchar): Define new member function.
5380 (unknown_language_data): Delete la_printchar initializer.
5381 (unknown_language::printchar): New member function.
5382 (auto_language_data): Delete la_printchar initializer.
5383 (auto_language::printchar): New member function.
5384 * language.h (language_data): Delete la_printchar field.
5385 (language_defn::printchar): Declare new member function.
5386 (LA_PRINT_CHAR): Update call to printchar.
5387 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5388 (m2_language::printchar): New member function.
5389 * objc-lang.c (objc_language_data): Delete la_printchar
5390 initializer.
5391 * opencl-lang.c (opencl_language_data): Likewise.
5392 * p-lang.c (pascal_language_data): Delete la_printchar
5393 initializer.
5394 (pascal_language::printchar): New member function.
5395 * rust-lang.c (rust_printchar): Rename to
5396 rust_language::printchar.
5397 (rust_language_data): Delete la_printchar initializer.
5398 (rust_language::printchar): New member function, implementation
5399 from rust_printchar.
5400
ec8cec5b
AB
54012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5402
5403 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5404 (ada_language_data): Delete la_emitchar initializer.
5405 (ada_language::emitchar): New member function, implementation from
5406 emit_char.
5407 * c-lang.c (c_language_data): Delete la_emitchar 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_emit_char): Rename to f_language::emitchar.
5413 (f_language_data): Delete la_emitchar initializer.
5414 (f_language::emitchar): New member function, implementation from
5415 f_emit_char.
5416 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5417 * language.c (unk_lang_emit_char): Delete.
5418 (language_defn::emitchar): New member function definition.
5419 (unknown_language_data): Delete la_emitchar initializer.
5420 (unknown_language::emitchar): New member function.
5421 (auto_language_data): Delete la_emitchar initializer.
5422 (auto_language::emitchar): New member function.
5423 * language.h (language_data): Delete la_emitchar field.
5424 (language_defn::emitchar): New member field declaration.
5425 (LA_EMIT_CHAR): Update call to emitchar.
5426 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5427 (m2_language_data): Delete la_emitchar initializer.
5428 (m2_language::emitchar): New member function, implementation from
5429 m2_emit_char.
5430 * objc-lang.c (objc_language_data): Delete la_emitchar
5431 initializer.
5432 * opencl-lang.c (opencl_language_data): Likewise.
5433 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5434 (pascal_language_data): Delete la_emitchar initializer.
5435 (pascal_language::emitchar): New member function, implementation
5436 from pascal_emit_char.
5437 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5438 (rust_language_data): Delete la_emitchar initializer.
5439 (rust_language::emitchar): New member function, implementation
5440 from rust_emitchar.
5441
1bf9c363
AB
54422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5443
5444 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5445 (ada_language_data): Delete la_post_parser initializer.
5446 (ada_language::post_parser): New member function.
5447 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5448 (cplus_language_data): Likewise.
5449 (asm_language_data): Likewise.
5450 (minimal_language_data): Likewise.
5451 * d-lang.c (d_language_data): Likewise.
5452 * f-lang.c (f_language_data): Likewise.
5453 * go-lang.c (go_language_data): Likewise.
5454 * language.c (unknown_language_data): Likewise.
5455 (auto_language_data): Likewise.
5456 * language.h (language_data): Delete la_post_parser field.
5457 (language_defn::post_parser): New member function.
5458 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5459 * objc-lang.c (objc_language_data): Likewise.
5460 * opencl-lang.c (opencl_language_data): Likewise.
5461 * p-lang.c (pascal_language_data): Likewise.
5462 * parse.c (parse_exp_in_context): Update call to post_parser.
5463 (null_post_parser): Delete definition.
5464 * parser-defs.h (null_post_parser): Delete declaration.
5465 * rust-lang.c (rust_language_data): Delete la_post_parser
5466 initializer.
5467
87afa652
AB
54682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5469
5470 * ada-lang.c (parse): Rename to ada_language::parser.
5471 (ada_language_data): Delete la_parser initializer.
5472 (ada_language::parser): New member function, implementation from
5473 parse.
5474 * c-lang.c (c_language_data): Delete la_parser initializer.
5475 (cplus_language_data): Likewise.
5476 (asm_language_data): Likewise.
5477 (minimal_language_data): Likewise.
5478 * d-lang.c (d_language_data): Likewise.
5479 (d_language::parser): New member function.
5480 * f-lang.c (f_language_data): Delete la_parser initializer.
5481 (f_language::parser): New member function.
5482 * go-lang.c (go_language_data): Delete la_parser initializer.
5483 (go_language::parser): New member function.
5484 * language.c (unk_lang_parser): Delete.
5485 (language_defn::parser): Define new member function.
5486 (unknown_language_data): Delete la_parser initializer.
5487 (unknown_language::parser): New member function.
5488 (auto_language_data): Delete la_parser initializer.
5489 (auto_language::parser): New member function.
5490 * language.h (language_data): Delete la_parser field.
5491 (language_defn::parser): Declare new member function.
5492 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5493 (m2_language::parser): New member function.
5494 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5495 * opencl-lang.c (opencl_language_data): Likewise.
5496 * p-lang.c (pascal_language_data): Likewise.
5497 (pascal_language::parser): New member function.
5498 * parse.c (parse_exp_in_context): Update call to parser.
5499 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5500 (rust_language::parser): New member function.
5501
37825800
AB
55022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5503
5504 * top.c (print_gdb_configuration): Print --with-python-libdir
5505 configuration value.
5506
5b860c93
PW
55072020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5508
5509 * NEWS: Mention change to the alias command.
5510
cf00cd6f
PW
55112020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5512
5513 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5514 (alias_command_completer)
5515 (make_alias_options_def_group): New functions.
5516 (alias_opts, alias_option_defs): New struct and array.
5517 (alias_usage_error): Update usage.
5518 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5519 Use option framework.
5520 (_initialize_cli_cmds): Update alias command help.
5521 Update aliases command help.
5522 (show_user):
5523 Add NULL for new default_args lookup_cmd argument.
5524 (valid_command_p): Rename to validate_aliased_command.
5525 Add NULL for new default_args lookup_cmd argument. Verify that the
5526 aliased_command has no default args.
5527 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5528 (lookup_cmd_1, lookup_cmd): New argument default_args.
5529 (add_alias_cmd):
5530 Add NULL for new default_args lookup_cmd argument.
5531 (print_help_for_command): Show default args under the layout
5532 alias some_alias = some_aliased_cmd some_alias_default_arg.
5533 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5534 xfree default_args in destructor.
5535 * cli/cli-script.c (process_next_line, do_define_command):
5536 Add NULL for new default_args lookup_cmd argument.
5537 * command.h: Declare new default_args argument in lookup_cmd
5538 and lookup_cmd_1.
5539 * completer.c (complete_line_internal_1):
5540 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5541 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5542 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5543 Likewise.
5544 * infcmd.c (_initialize_infcmd): Likewise.
5545 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5546 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5547 * python/py-param.c (add_setshow_generic): Likewise.
5548 * remote.c (_initialize_remote): Likewise.
5549 * top.c (execute_command): Prepend default_args if command has some.
5550 (set_verbose):
5551 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5552 * tracepoint.c (validate_actionline, encode_actions_1):
5553 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5554
bd920864
TBA
55552020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5556
5557 * jit.c (jit_read_descriptor): Use bool as the return type.
5558 (jit_breakpoint_re_set_internal): Use bool as the return type.
5559 Invert the return value logic; return true if the jit breakpoint
5560 has been successfully initialized.
5561 (jit_inferior_init): Update the call to
5562 jit_breakpoint_re_set_internal.
5563
f8098322
PA
55642020-06-22 Pedro Alves <palves@redhat.com>
5565
5566 PR gdb/25939
5567 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5568 Use the current inferior instead. Don't return
5569 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5570 wait again.
5571 * sol-thread.c (sol_thread_target::wait): Don't reference
5572 inferior_ptid.
5573 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5574 (sol_update_thread_list_callback): Use the current inferior's pid
5575 instead of inferior_ptid.
5576
196535a6
RO
55772020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5578
5579 * procfs.c: Cleanup many comments.
5580
5581 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5582 (AFTER_WATCHFLAG): Replace by value.
5583
5584 (MAIN_PROC_NAME_FORMAT): Inline ...
5585 (create_procinfo): ... here.
5586
5587 (procfs_debug_inferior): Remove SYS_exec handling.
5588 (syscall_is_exec): Likewise.
5589 (procfs_set_exec_trap): Likewise.
5590
5591 (syscall_is_lwp_exit): Inline in callers.
5592 (syscall_is_exit): Likewise.
5593 (syscall_is_exec): Likewise.
5594 (syscall_is_lwp_create): Likewise.
5595
5596 (invalidate_cache): Remove #if 0 code.
5597
5598 (make_signal_thread_runnable): Remove.
5599 (procfs_target::resume): Remove #if 0 code.
5600
cf6f3e86
RO
56012020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5602
5603 PR gdb/25939
5604 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5605 call ...
5606 (procfs_target::create_inferior): ... here.
5607
48e9cc84
PW
56082020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5609
5610 * exec.c (validate_exec_file): Ensure the build-id is up to
5611 date by calling reopen_exec_file (that checks file timestamp
5612 to decide to re-read the file).
5613
3922b302
PA
56142020-06-18 Pedro Alves <palves@redhat.com>
5615
5616 PR gdb/25412
5617 * gdbthread.h (delete_thread, delete_thread_silent)
5618 (find_thread_ptid): Update comments.
5619 * thread.c (current_thread_): New global.
5620 (is_current_thread): Move higher, and reimplement.
5621 (inferior_thread): Reimplement.
5622 (set_thread_exited): Use bool. Add assertions.
5623 (add_thread_silent): Simplify thread-reuse handling by always
5624 calling delete_thread.
5625 (delete_thread): Remove intro comment.
5626 (find_thread_ptid): Skip exited threads.
5627 (switch_to_thread_no_regs): Write to current_thread_.
5628 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5629 INFERIOR_PTID. Clear current_thread_.
5630
6dbdab44
PA
56312020-06-18 Pedro Alves <palves@redhat.com>
5632
5633 * aix-thread.c (pd_update): Use switch_to_thread.
5634
2da4b788
PA
56352020-06-18 Pedro Alves <palves@redhat.com>
5636
5637 * ravenscar-thread.c (ravenscar_thread_target): Update.
5638 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5639 (ravenscar_thread_target::add_active_thread): ... this. Don't
5640 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5641 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5642
50838d1b
PA
56432020-06-18 Pedro Alves <palves@redhat.com>
5644
5645 * nat/windows-nat.c (current_windows_thread): Remove.
5646 * nat/windows-nat.h (current_windows_thread): Remove.
5647 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5648 Adjust.
5649 (display_selectors): Adjust to fetch the current
5650 windows_thread_info based on inferior_ptid.
5651 (fake_create_process): No longer write to current_windows_thread.
5652 (windows_nat_target::get_windows_debug_event):
5653 Don't set inferior_ptid or current_windows_thread.
5654 (windows_nat_target::wait): Adjust to not rely on
5655 current_windows_thread.
5656 (do_initial_windows_stuff): Now a method of windows_nat_target.
5657 Switch to the last_ptid thread.
5658 (windows_nat_target::attach): Adjust.
5659 (windows_nat_target::detach): Use switch_to_no_thread instead of
5660 writing to inferior_ptid directly.
5661 (windows_nat_target::create_inferior): Adjust.
5662
31ce04e9
PA
56632020-06-18 Pedro Alves <palves@redhat.com>
5664
5665 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5666
1ee1a363
PA
56672020-06-18 Pedro Alves <palves@redhat.com>
5668
5669 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5670 after creating it, instead of writing to inferior_ptid. Don't
5671 write to inferior_ptid.
5672
6d350754
PA
56732020-06-18 Pedro Alves <palves@redhat.com>
5674
5675 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5676
5d971d48
PA
56772020-06-18 Pedro Alves <palves@redhat.com>
5678
5679 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5680 it, instead of writing to inferior_ptid.
5681
86e57d1b
PA
56822020-06-18 Pedro Alves <palves@redhat.com>
5683
5684 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5685 to inferior_ptid.
5686
f2e1c129
PA
56872020-06-18 Pedro Alves <palves@redhat.com>
5688
5689 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5690 instead of writing to inferior_ptid directly.
5691
60db1b85
PA
56922020-06-18 Pedro Alves <palves@redhat.com>
5693
5694 * corelow.c (core_target::close): Use switch_to_no_thread instead
5695 of writing to inferior_ptid directly.
5696 (add_to_thread_list, core_target_open): Use switch_to_thread
5697 instead of writing to inferior_ptid directly.
5698
fe7d6a8d
PA
56992020-06-18 Pedro Alves <palves@redhat.com>
5700
5701 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5702 inferior_ptid.
5703 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5704 inferior_ptid.
5705 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5706 inferior_ptid directly.
5707 (darwin_nat_target::init_thread_list): Switch to thread, instead
5708 of writing to inferior_ptid.
5709 (darwin_nat_target::attach): Don't write to inferior_ptid.
5710 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5711
975f8708
PA
57122020-06-18 Pedro Alves <palves@redhat.com>
5713
5714 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5715 thread.
5716 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5717 Instead use switch_to_thread.
5718 (gnu_nat_target::detach): Use switch_to_no_thread
5719 instead of writing to inferior_ptid directly. Used passed-in
5720 inferior instead of looking up the inferior by pid.
5721
1a204730
PA
57222020-06-18 Pedro Alves <palves@redhat.com>
5723
5724 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5725 inferior_ptid.
5726
ebe84f23
PA
57272020-06-18 Pedro Alves <palves@redhat.com>
5728
5729 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5730 inferior_ptid.
5731 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5732 thread.
5733 (nto_procfs_target::detach): Avoid referencing
5734 inferior_ptid. Use switch_to_no_thread instead of writing to
5735 inferior_ptid directly.
5736 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5737 instead of writing to inferior_ptid directly.
5738 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5739 to thread.
5740
191f02e5
PA
57412020-06-18 Pedro Alves <palves@redhat.com>
5742
5743 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5744 after creating it, instead of writing to inferior_ptid.
5745 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5746 to inferior_ptid directly.
5747 (gdbsim_target::wait): Don't write to inferior_ptid.
5748
0ac55310
PA
57492020-06-18 Pedro Alves <palves@redhat.com>
5750
5751 * remote.c (remote_target::remote_notice_new_inferior): Use
5752 switch_to_thread instead of writing to inferior_ptid directly.
5753 (remote_target::add_current_inferior_and_thread): Use
5754 switch_to_no_thread instead of writing to inferior_ptid directly.
5755 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5756 and switch_to_thread instead of using set_current_inferior or
5757 writing to inferior_ptid directly.
5758
5233f39b
PA
57592020-06-18 Pedro Alves <palves@redhat.com>
5760
5761 * tracectf.c (ctf_target_open): Switch to added thread instead of
5762 writing to inferior_ptid directly.
5763 (ctf_target::close): Use switch_to_no_thread instead of writing to
5764 inferior_ptid directly.
5765
087e161b
PA
57662020-06-18 Pedro Alves <palves@redhat.com>
5767
5768 * tracefile-tfile.c (tfile_target_open): Don't write to
5769 inferior_ptid directly, instead switch to added thread.
5770 (tfile_target::close): Use switch_to_no_thread instead of writing
5771 to inferior_ptid directly.
5772
7fb43e53
PA
57732020-06-18 Pedro Alves <palves@redhat.com>
5774
5775 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5776 (procfs_target::detach): Use switch_to_no_thread
5777 instead of writing to inferior_ptid directly.
5778 (do_attach): Change return type to void. Switch to the added
5779 thread.
5780 (procfs_target::create_inferior): Switch to the added thread.
5781 (procfs_do_thread_registers): Don't write to inferior_ptid.
5782
18493a00
PA
57832020-06-18 Pedro Alves <palves@redhat.com>
5784
5785 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5786 of writing to inferior_ptid.
5787 (scoped_restore_exited_inferior): Delete.
5788 (handle_vfork_child_exec_or_exit): Simplify using
5789 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5790 instead of writing to inferior_ptid.
5791 (THREAD_STOPPED_BY): Delete.
5792 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5793 (thread_stopped_by_hw_breakpoint): Delete.
5794 (save_waitstatus): Use
5795 scoped_restore_current_thread+switch_to_thread, and call
5796 target_stopped_by_watchpoint instead of
5797 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5798 instead of thread_stopped_by_sw_breakpoint, and
5799 target_stopped_by_hw_breakpoint instead of
5800 thread_stopped_by_hw_breakpoint.
5801 (handle_inferior_event)
5802 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5803 inferior_ptid directly, nor
5804 set_current_inferior/set_current_program_space. Use
5805 switch_to_thread / switch_to_inferior_no_thread instead.
5806
a0776b13
PA
58072020-06-18 Pedro Alves <palves@redhat.com>
5808
5809 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5810 instead of writing to inferior_ptid.
5811
6155c136
PA
58122020-06-18 Pedro Alves <palves@redhat.com>
5813
5814 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5815 added thread.
5816 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5817 to the added thread.
5818 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5819 instead of writing to inferior_ptid.
5820
c5316fc6
PA
58212020-06-18 Pedro Alves <palves@redhat.com>
5822
5823 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5824 (register_to_value_test): Mock a program_space too. Heap-allocate
5825 the address space. Don't write to inferior_ptid. Use
5826 switch_to_thread instead.
5827
8df01799
PA
58282020-06-18 Pedro Alves <palves@redhat.com>
5829
5830 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5831 Delete.
5832 (find_signalled_thread()): New, factored out from
5833 linux_make_corefile_notes and adjusted to handle exited threads.
5834 (linux_make_corefile_notes): Adjust to use the new
5835 find_signalled_thread.
5836
41792d68
PA
58372020-06-18 Pedro Alves <palves@redhat.com>
5838
5839 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5840 of saving/restoring inferior_ptid.
5841
612f258a
TT
58422020-06-17 Tom Tromey <tom@tromey.com>
5843
5844 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5845 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5846 declare.
5847 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5848
efb763a5
SM
58492020-06-15 Simon Marchi <simon.marchi@efficios.com>
5850
5851 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5852 of partial symtabs.
5853
2951f6c0
SM
58542020-06-17 Simon Marchi <simon.marchi@efficios.com>
5855
5856 * regformats/reg-arm.dat: Remove.
5857 * regformats/reg-bfin.dat: Remove.
5858 * regformats/reg-cris.dat: Remove.
5859 * regformats/reg-crisv32.dat: Remove.
5860 * regformats/reg-m32r.dat: Remove.
5861 * regformats/reg-tilegx.dat: Remove.
5862 * regformats/reg-tilegx32.dat: Remove.
5863
7d458ea5
SM
58642020-06-17 Simon Marchi <simon.marchi@efficios.com>
5865
5866 * features/Makefile (WHICH): Remove arm files.
5867 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5868 * regformats/arm/arm-with-neon.dat: Remove.
5869 * regformats/arm/arm-with-vfpv2.dat: Remove.
5870 * regformats/arm/arm-with-vfpv3.dat: Remove.
5871
3af96c0d
SM
58722020-06-17 Simon Marchi <simon.marchi@efficios.com>
5873
5874 * features/Makefile (XMLTOC): Remove rx.xml.
5875
b25e22fd
PA
58762020-06-17 Pedro Alves <palves@redhat.com>
5877
5878 * gdbthread.h (thread_control_state) <trap_expected> Update
5879 comments.
5880
a78a19b1
AB
58812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5882
5883 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5884 ada_language::lookup_symbol_nonlocal.
5885 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5886 (ada_language::lookup_symbol_nonlocal): New member function,
5887 implementation from ada_lookup_symbol_nonlocal.
5888 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5889 initializer.
5890 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5891 initializer.
5892 (cplus_language::lookup_symbol_nonlocal): New member function.
5893 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5894 (minimal_language_data) Likewise.
5895 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5896 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5897 initializer.
5898 (d_language::lookup_symbol_nonlocal): New member function.
5899 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5900 initializer.
5901 (f_language::lookup_symbol_nonlocal): New member function.
5902 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5903 initializer.
5904 * language.c (unknown_language_data): Likewise.
5905 (auto_language_data): Likewise.
5906 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5907 field.
5908 (language_defn::lookup_symbol_nonlocal): New member function.
5909 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5910 initializer.
5911 * objc-lang.c (objc_language_data): Likewise.
5912 * opencl-lang.c (opencl_language_data): Likewise.
5913 * p-lang.c (pascal_language_data): Likewise.
5914 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5915 rust_language::lookup_symbol_nonlocal.
5916 (rust_language_data): Delete la_lookup_symbol_nonlocal
5917 initializer.
5918 (rust_language::lookup_symbol_nonlocal): New member function,
5919 implementation from rust_lookup_symbol_nonlocal.
5920 * symtab.c (lookup_symbol_aux): Update call to
5921 lookup_symbol_nonlocal.
5922 (basic_lookup_symbol_nonlocal): Rename to...
5923 (language_defn::lookup_symbol_nonlocal): ...this, and update
5924 header comment. Remove language_defn parameter, and replace with
5925 uses of `this'.
5926 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5927
ebe2334e
AB
59282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5929
5930 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5931 initializer.
5932 (ada_language::value_print_inner): New member function.
5933 * c-lang.c (c_language_data): Delete la_value_print_inner
5934 initializer.
5935 (cplus_language_data): Likewise.
5936 (asm_language_data): Likewise.
5937 (minimal_language_data): Likewise.
5938 * d-lang.c (d_language_data): Likewise.
5939 (d_language::value_print_inner): New member function.
5940 * f-lang.c (f_language_data): Delete la_value_print_inner
5941 initializer.
5942 (f_language::value_print_inner): New member function.
5943 * f-lang.h (f_value_print_innner): Rename to...
5944 (f_value_print_inner): ...this (note spelling of 'inner').
5945 * f-valprint.c (f_value_print_innner): Rename to...
5946 (f_value_print_inner): ...this (note spelling of 'inner').
5947 * go-lang.c (go_language_data): Delete la_value_print_inner
5948 initializer.
5949 (go_language::value_print_inner): New member function.
5950 * language.c (language_defn::value_print_inner): Define new member
5951 function.
5952 (unk_lang_value_print_inner): Delete.
5953 (unknown_language_data): Delete la_value_print_inner initializer.
5954 (unknown_language::value_print_inner): New member function.
5955 (auto_language_data): Delete la_value_print_inner initializer.
5956 (auto_language::value_print_inner): New member function.
5957 * language.h (language_data): Delete la_value_print_inner field.
5958 (language_defn::value_print_inner): Delcare new member function.
5959 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5960 initializer.
5961 (m2_language::value_print_inner): New member function.
5962 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5963 initializer.
5964 * opencl-lang.c (opencl_language_data): Likewise.
5965 * p-lang.c (pascal_language_data): Likewise.
5966 (pascal_language::value_print_inner): New member function.
5967 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5968 initializer.
5969 (rust_language::value_print_inner): New member function.
5970 * valprint.c (do_val_print): Update call to value_print_inner.
5971
a1d1fa3e
AB
59722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5973
5974 * ada-lang.c (ada_language_data): Delete la_value_print
5975 initializer.
5976 (ada_language::value_print): New member function.
5977 * c-lang.c (c_language_data): Delete la_value_print initializer.
5978 (cplus_language_data): Likewise.
5979 (asm_language_data): Likewise.
5980 (minimal_language_data): Likewise.
5981 * d-lang.c (d_language_data): Likewise.
5982 * f-lang.c (f_language_data): Likewise.
5983 * go-lang.c (go_language_data): Likewise.
5984 * language.c (unk_lang_value_print): Delete.
5985 (language_defn::value_print): Define new member function.
5986 (unknown_language_data): Delete la_value_print initializer.
5987 (unknown_language::value_print): New member function.
5988 (auto_language_data): Delete la_value_print initializer.
5989 (auto_language::value_print): New member function.
5990 * language.h (language_data): Delete la_value_print field.
5991 (language_defn::value_print): Declare new member function.
5992 (LA_VALUE_PRINT): Update call to value_print.
5993 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5994 * objc-lang.c (objc_language_data): Likewise.
5995 * opencl-lang.c (opencl_language_data): Likewise.
5996 * p-lang.c (pascal_language_data): Likewise.
5997 (pascal_language::value_print): New member function.
5998 * rust-lang.c (rust_language_data): Delete la_value_print
5999 initializer.
6000
f16a9f57
AB
60012020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6002
6003 * ada-lang.c (ada_watch_location_expression): Rename to
6004 ada_language::watch_location_expression.
6005 (ada_language_data): Delete la_watch_location_expression
6006 initializer.
6007 (ada_language::watch_location_expression): New member function,
6008 implementation from ada_watch_location_expression.
6009 * breakpoint.c (watch_command_1): Update call to
6010 watch_location_expression.
6011 * c-lang.c (c_watch_location_expression): Rename to
6012 language_defn::watch_location_expression.
6013 (c_language_data): Delete la_watch_location_expression
6014 initializer.
6015 (cplus_language_data): Likewise.
6016 (asm_language_data): Likewise.
6017 (minimal_language_data): Likewise.
6018 * c-lang.h (c_watch_location_expression): Delete declaration.
6019 * d-lang.c (d_language_data): Delete la_watch_location_expression
6020 initializer.
6021 * f-lang.c (f_language_data): Likewise.
6022 * go-lang.c (go_language_data): Likewise.
6023 * language.c (language_defn::watch_location_expression): Member
6024 function implementation from c_watch_location_expression.
6025 (unknown_language_data): Delete la_watch_location_expression
6026 initializer.
6027 (auto_language_data): Likewise.
6028 * language.h (language_data): Delete la_watch_location_expression
6029 field.
6030 (language_defn::watch_location_expression): Declare new member
6031 function.
6032 * m2-lang.c (m2_language_data): Delete
6033 la_watch_location_expression initializer.
6034 * objc-lang.c (objc_language_data): Likewise.
6035 * opencl-lang.c (opencl_language_data): Likewise.
6036 * p-lang.c (pascal_language_data): Likewise.
6037 * rust-lang.c (rust_watch_location_expression): Rename to
6038 rust_language::watch_location_expression.
6039 (rust_language_data): Delete la_watch_location_expression
6040 initializer.
6041 (rust_language::watch_location_expression): New member function,
6042 implementation from rust_watch_location_expression.
6043
7e56227d
AB
60442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6045
6046 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6047 ada_language::collect_symbol_completion_matches.
6048 (ada_language_data): Delete la_collect_symbol_completion_matches
6049 initializer.
6050 (ada_language::collect_symbol_completion_matches): New member
6051 function, implementation from
6052 ada_collect_symbol_completion_matches.
6053 * c-lang.c (c_language_data): Delete
6054 la_collect_symbol_completion_matches initializer.
6055 (cplus_language_data): Likewise.
6056 (asm_language_data): Likewise.
6057 (minimal_language_data): Likewise.
6058 * d-lang.c (d_language_data): Likewise.
6059 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6060 f_language::collect_symbol_completion_matches.
6061 (f_language_data): Delete la_collect_symbol_completion_matches
6062 initializer.
6063 (f_language::collect_symbol_completion_matches) New member
6064 function, implementation from f_collect_symbol_completion_matches.
6065 * go-lang.c (go_language_data): Delete
6066 la_collect_symbol_completion_matches initializer.
6067 * language.c (unknown_language_data): Likewise.
6068 (auto_language_data): Likewise.
6069 * language.h (language_data): Delete
6070 la_collect_symbol_completion_matches field.
6071 (language_defn::collect_symbol_completion_matches): New member
6072 function.
6073 * m2-lang.c (m2_language_data): Delete
6074 la_collect_symbol_completion_matches initializer.
6075 * objc-lang.c (objc_language_data): Likewise.
6076 * opencl-lang.c (opencl_language_data): Likewise.
6077 * p-lang.c (pascal_language_data): Likewise.
6078 * rust-lang.c (rust_language_data): Likewise.
6079 * symtab.c (default_collect_symbol_completion_matches): Delete.
6080 (collect_symbol_completion_matches): Update call to
6081 collect_symbol_completion_matches.
6082 (collect_symbol_completion_matches_type): Likewise.
6083 * symtab.h (default_collect_symbol_completion_matches): Delete
6084 declaration.
6085
53fc67f8
AB
60862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6087
6088 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6089 (ada_language_data): Delete la_word_break_characters initializer.
6090 (ada_language::word_break_characters): New member function.
6091 * c-lang.c (c_language_data): Delete la_word_break_characters
6092 initializer.
6093 (cplus_language_data): Likewise.
6094 (asm_language_data): Likewise.
6095 (minimal_language_data): Likewise.
6096 * completer.c: Update global comment.
6097 (advance_to_expression_complete_word_point): Update call to
6098 word_break_characters.
6099 (complete_files_symbols): Likewise.
6100 (complete_line_internal_1): Likewise.
6101 (default_completer_handle_brkchars): Likewise.
6102 (skip_quoted_chars): Likewise.
6103 * d-lang.c (d_language_data): Delete la_word_break_characters
6104 initializer.
6105 * f-lang.c (f_word_break_characters): Delete.
6106 (f_language_data): Delete la_word_break_characters initializer.
6107 (f_language::word_break_characters): New member function.
6108 * go-lang.c (go_language_data): Delete la_word_break_characters
6109 initializer.
6110 * language.c (unknown_language_data): Likewise.
6111 (auto_language_data): Likewise.
6112 * language.h (default_word_break_characters): Move declaration to
6113 earlier in the file.
6114 (language_data): Delete la_word_break_characters field.
6115 (language_defn::word_break_characters): New member function.
6116 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6117 initializer.
6118 * objc-lang.c (objc_language_data): Likewise.
6119 * opencl-lang.c (opencl_language_data): Likewise.
6120 * p-lang.c (pascal_language_data): Likewise.
6121 * rust-lang.c (rust_language_data): Likewise.
6122
c9debfb9
AB
61232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6124
6125 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6126 (ada_language_data): Delete la_get_symbol_name_matcher
6127 initializer.
6128 (language_defn::get_symbol_name_matcher_inner): New member
6129 function.
6130 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6131 initializer.
6132 (cplus_language_data): Likewise.
6133 (cplus_language::get_symbol_name_matcher_inner): New member
6134 function.
6135 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6136 (minimal_language_data): Likewise.
6137 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6138 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6139 initializer.
6140 * dictionary.c (iter_match_first_hashed): Update call to
6141 get_symbol_name_matcher.
6142 (iter_match_next_hashed): Likewise.
6143 (iter_match_next_linear): Likewise.
6144 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6145 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6146 initializer.
6147 (f_language::get_symbol_name_matcher_inner): New member function.
6148 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6149 initializer.
6150 * language.c (default_symbol_name_matcher): Update header comment,
6151 make static.
6152 (language_defn::get_symbol_name_matcher): New definition.
6153 (language_defn::get_symbol_name_matcher_inner): Likewise.
6154 (get_symbol_name_matcher): Delete.
6155 (unknown_language_data): Delete la_get_symbol_name_matcher
6156 initializer.
6157 (auto_language_data): Likewise.
6158 * language.h (language_data): Delete la_get_symbol_name_matcher
6159 field.
6160 (language_defn::get_symbol_name_matcher): New member function.
6161 (language_defn::get_symbol_name_matcher_inner): Likewise.
6162 (default_symbol_name_matcher): Delete declaration.
6163 * linespec.c (find_methods): Update call to
6164 get_symbol_name_matcher.
6165 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6166 initializer.
6167 * minsyms.c (lookup_minimal_symbol): Update call to
6168 get_symbol_name_matcher.
6169 (iterate_over_minimal_symbols): Likewise.
6170 * objc-lang.c (objc_language_data): Delete
6171 la_get_symbol_name_matcher initializer.
6172 * opencl-lang.c (opencl_language_data): Likewise.
6173 * p-lang.c (pascal_language_data): Likewise.
6174 * psymtab.c (psymbol_name_matches): Update call to
6175 get_symbol_name_matcher.
6176 * rust-lang.c (rust_language_data): Delete
6177 la_get_symbol_name_matcher initializer.
6178 * symtab.c (symbol_matches_search_name): Update call to
6179 get_symbol_name_matcher.
6180 (compare_symbol_name): Likewise.
6181
9a49ad8c
AB
61822020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6183
6184 * ada-lang.c (ada_language_data): Delete la_compute_program
6185 initializer.
6186 * c-lang.c (c_language_data): Likewise.
6187 (c_language::compute_program): New member function.
6188 (cplus_language_data): Delete la_compute_program initializer.
6189 (cplus_language::compute_program): New member function.
6190 (asm_language_data): Delete la_compute_program initializer.
6191 (minimal_language_data): Likewise.
6192 * c-lang.h (c_compute_program): Update comment.
6193 (cplus_compute_program): Likewise.
6194 * compile/compile-c-support.c (c_compute_program): Likewise.
6195 (cplus_compute_program): Likewise.
6196 * compile/compile.c (compile_to_object): Update call to
6197 la_compute_program.
6198 * d-lang.c (d_language_data): Delete la_compute_program
6199 initializer.
6200 * f-lang.c (f_language_data): Likewise.
6201 * go-lang.c (go_language_data): Likewise.
6202 * language.c (unknown_language_data): Likewise.
6203 (auto_language_data): Likewise.
6204 * language.h (language_data): Delete la_compute_program field.
6205 (language_defn::compute_program): New member function.
6206 * m2-lang.c (m2_language_data): Delete la_compute_program
6207 initializer.
6208 * objc-lang.c (objc_language_data): Likewise.
6209 * opencl-lang.c (opencl_language_data): Likewise.
6210 * p-lang.c (pascal_language_data): Likewise.
6211 * rust-lang.c (rust_language_data): Likewise.
6212
eff93b4d
AB
62132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6214
6215 * ada-lang.c (ada_language_data) Delete
6216 la_class_name_from_physname initializer.
6217 * c-lang.c (c_language_data): Likewise.
6218 (cplus_language_data): Likewise.
6219 (cplus_language::class_name_from_physname): New member function.
6220 (asm_language_data): Delete la_class_name_from_physname
6221 initializer.
6222 (minimal_language_data): Likewise.
6223 * d-lang.c (d_language_data): Likewise.
6224 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6225 method on language_defn class.
6226 (guess_full_die_structure_name): Likewise.
6227 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6228 initializer.
6229 * go-lang.c (go_language_data): Likewise.
6230 * language.c (language_class_name_from_physname): Delete.
6231 (unk_lang_class_name): Delete.
6232 (unknown_language_data): Delete la_class_name_from_physname
6233 initializer.
6234 (auto_language_data): Likewise.
6235 * language.h (language_data): Delete la_class_name_from_physname
6236 field.
6237 (language_defn::class_name_from_physname): New function.
6238 (language_class_name_from_physname): Delete declaration.
6239 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6240 initializer.
6241 * objc-lang.c (objc_language_data): Likewise.
6242 * opencl-lang.c (opencl_language_data): Likewise.
6243 * p-lang.c (pascal_language_data): Likewise.
6244 * rust-lang.c (rust_language_data): Likewise.
6245
de543742
TT
62462020-06-16 Tom Tromey <tom@tromey.com>
6247
6248 * tui/tui-data.h (STATUS_NAME): New macro.
6249 * tui/tui-layout.c (tui_remove_some_windows)
6250 (initialize_known_windows, tui_register_window)
6251 (tui_layout_split::remove_windows, initialize_layouts)
6252 (tui_new_layout_command): Don't use hard-coded window names.
6253
a350efd4
TT
62542020-06-16 Tom Tromey <tom@tromey.com>
6255
6256 PR tui/25348:
6257 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6258 tui_initialize_readline. Only run once. Call rl_initialize.
6259 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6260 tui_initialize_readline.
6261 * tui/tui-io.c (tui_setup_io): Call
6262 tui_ensure_readline_initialized.
6263 * tui/tui-interp.c (tui_interp::init): Update.
6264
39ec0490
TT
62652020-06-16 Tom Tromey <tom@tromey.com>
6266
6267 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6268 Also preserve the status window.
6269
d2d1ea20
TT
62702020-06-16 Tom Tromey <tom@tromey.com>
6271
6272 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6273 where m_window==nullptr.
6274
66920317
TT
62752020-06-15 Tom Tromey <tromey@adacore.com>
6276
6277 * windows-nat.c (windows_nat::handle_output_debug_string):
6278 Update.
6279 (windows_nat::handle_ms_vc_exception): Update.
6280 * target.h (target_read_string): Change API.
6281 * target.c (target_read_string): Change API.
6282 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6283 Update.
6284 * solib-frv.c (frv_current_sos): Update.
6285 * solib-dsbt.c (dsbt_current_sos): Update.
6286 * solib-darwin.c (darwin_current_sos): Update.
6287 * linux-thread-db.c (inferior_has_bug): Update.
6288 * expprint.c (print_subexp_standard): Update.
6289 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6290 (ada_exception_message_1): Update.
6291
a5d871dd
TT
62922020-06-15 Tom Tromey <tromey@adacore.com>
6293
6294 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6295
670e35fa
TT
62962020-06-15 Tom Tromey <tromey@adacore.com>
6297
6298 * valprint.c (read_string): Update comment.
6299 * target.c (MIN): Remove.
6300 (target_read_string): Rewrite.
6301
f5272a3b
TT
63022020-06-15 Tom Tromey <tromey@adacore.com>
6303
6304 * corefile.c (read_memory_string): Remove.
6305 * ada-valprint.c (ada_value_print_ptr): Update.
6306 * ada-lang.h (ada_tag_name): Change return type.
6307 * ada-lang.c (type_from_tag): Update.
6308 (ada_tag_name_from_tsd): Change return type. Use
6309 target_read_string.
6310 (ada_tag_name): Likewise.
6311 * gdbcore.h (read_memory_string): Don't declare.
6312
2c074f49
HD
63132020-06-14 Hannes Domani <ssbssa@yahoo.de>
6314
6315 * symtab.c (rbreak_command): Ignore Windows drive colon.
6316
6a17d503
SM
63172020-06-12 Simon Marchi <simon.marchi@efficios.com>
6318
6319 * NEWS: Mention removed GDBserver host support.
6320
453c733f
NC
63212020-06-12 Nelson Chu <nelson.chu@sifive.com>
6322
6323 * features/riscv/rebuild-csr-xml.sh: Updated.
6324
2b4e6a3f
TT
63252020-06-11 Tom Tromey <tom@tromey.com>
6326
6327 PR gdb/18318:
6328 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6329
4412332f
JG
63302020-06-09 Jonny Grant <jg@jguk.org>
63312020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6332
6333 * main.c (captured_main_1): Don't print new line after help.
6334 (print_gdb_help): add mailing list and IRC channel information
6335 to --help. Add new lines between items in the footer. Remove
6336 quotes around bug url.
6337
2f33032a
KS
63382020-06-11 Keith Seitz <keiths@redhat.com>
6339
6340 PR gdb/21356
6341 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6342 Resolve typedefs for type length calculations.
6343
7ab96794
TV
63442020-06-10 Tom de Vries <tdevries@suse.de>
6345
6346 PR ada/24713
6347 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6348 (write_psymbols): Enable .gdb_index for ada.
6349 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6350 ada.
6351
e5f3ece2
TV
63522020-06-10 Tom de Vries <tdevries@suse.de>
6353
6354 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6355 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6356 namei" instead of "const char *name" argument.
6357 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6358 dw2_symtab_iter_init.
6359
940da03e
SM
63602020-06-08 Simon Marchi <simon.marchi@efficios.com>
6361
6362 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6363 to use type::field and field::type instead.
6364
b6cdac4b
SM
63652020-06-08 Simon Marchi <simon.marchi@efficios.com>
6366
6367 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6368 to use field::type instead.
6369
5d14b6e5
SM
63702020-06-08 Simon Marchi <simon.marchi@efficios.com>
6371
6372 * gdbtypes.h (struct field) <type, set_type>: New methods.
6373 Rename `type` field to...
6374 <m_type>: ... this. Change references throughout to use type or
6375 set_type methods.
6376 (FIELD_TYPE): Use field::type. Change call sites that modify
6377 the field's type to use field::set_type instead.
6378
3d967001
SM
63792020-06-08 Simon Marchi <simon.marchi@efficios.com>
6380
6381 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6382 to use type::index_type instead.
6383
262abc0d
SM
63842020-06-08 Simon Marchi <simon.marchi@efficios.com>
6385
6386 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6387 methods.
6388 (TYPE_INDEX_TYPE): Use type::index_type.
6389 * gdbtypes.c (create_array_type_with_stride): Likewise.
6390
82836c92
TT
63912020-06-07 Tom Tromey <tom@tromey.com>
6392
6393 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6394 parameter.
6395 (generic_value_print): Update.
6396
940dace9
AB
63972020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6398
6399 Revert commit 982a38f60b0.
6400 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6401
982a38f6
AB
64022020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6403
6404 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6405 avoid use after free.
6406
82f06518
TV
64072020-06-05 Tom de Vries <tdevries@suse.de>
6408
6409 * NEWS: Fix typos.
6410
f8c41851
SM
64112020-06-04 Simon Marchi <simon.marchi@efficios.com>
6412
6413 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6414 the per_bfd object.
6415 (dwarf2_read_debug_names): Likewise.
6416 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6417 object when re-using a per_bfd object with an index.
6418
f9b5d5ea
TV
64192020-06-03 Tom de Vries <tdevries@suse.de>
6420
6421 PR symtab/26046
6422 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6423 children for C++.
6424 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6425 DW_TAG_subprogram.
6426
f6eee2d0
AB
64272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6428
6429 * ada-lang.c (ada_language_data): Delete skip_trampoline
6430 initializer.
6431 * c-lang.c (c_language_data): Likewise.
6432 (cplus_language_data): Likewise.
6433 (cplus_language::skip_trampoline): New member function.
6434 (asm_language_data): Delete skip_trampoline initializer.
6435 (minimal_language_data): Likewise.
6436 * d-lang.c (d_language_data): Likewise.
6437 * f-lang.c (f_language_data): Likewise.
6438 * go-lang.c (go_language_data): Likewise.
6439 * language.c (unk_lang_trampoline): Delete function.
6440 (skip_language_trampoline): Update.
6441 (unknown_language_data): Delete skip_trampoline initializer.
6442 (auto_language_data): Likewise.
6443 * language.h (language_data): Delete skip_trampoline field.
6444 (language_defn::skip_trampoline): New function.
6445 * m2-lang.c (m2_language_data): Delete skip_trampoline
6446 initializer.
6447 * objc-lang.c (objc_skip_trampoline): Delete function, move
6448 implementation to objc_language::skip_trampoline.
6449 (objc_language_data): Delete skip_trampoline initializer.
6450 (objc_language::skip_trampoline): New member function with
6451 implementation from objc_skip_trampoline.
6452 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6453 initializer.
6454 * p-lang.c (pascal_language_data): Likewise.
6455 * rust-lang.c (rust_language_data): Likewise.
6456
0a50df5d
AB
64572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6458
6459 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6460 (ada_language::demangle): New member function.
6461 * c-lang.c (c_language_data): Delete la_demangle initializer.
6462 (cplus_language_data): Delete la_demangle initializer.
6463 (cplus_language::demangle): New member function.
6464 (asm_language_data): Delete la_demangle initializer.
6465 (minimal_language_data): Delete la_demangle initializer.
6466 * d-lang.c (d_language_data): Delete la_demangle initializer.
6467 (d_language::demangle): New member function.
6468 * f-lang.c (f_language_data): Delete la_demangle initializer.
6469 (f_language::demangle): New member function.
6470 * go-lang.c (go_language_data): Delete la_demangle initializer.
6471 (go_language::demangle): New member function.
6472 * language.c (language_demangle): Update.
6473 (unk_lang_demangle): Delete.
6474 (unknown_language_data): Delete la_demangle initializer.
6475 (unknown_language::demangle): New member function.
6476 (auto_language_data): Delete la_demangle initializer.
6477 (auto_language::demangle): New member function.
6478 * language.h (language_data): Delete la_demangle field.
6479 (language_defn::demangle): New function.
6480 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6481 * objc-lang.c (objc_language_data): Delete la_demangle
6482 initializer.
6483 (objc_language::demangle): New member function.
6484 * opencl-lang.c (opencl_language_data): Delete la_demangle
6485 initializer.
6486 * p-lang.c (pascal_language_data): Likewise.
6487 * rust-lang.c (rust_language_data): Likewise.
6488 (rust_language::demangle): New member function.
6489
fbfb0a46
AB
64902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6491
6492 * ada-lang.c (ada_language_data): Delete la_print_type
6493 initializer.
6494 (ada_language::print_type): New member function.
6495 * c-lang.c (c_language_data): Delete la_print_type initializer.
6496 (c_language::print_type): New member function.
6497 (cplus_language_data): Delete la_print_type initializer.
6498 (cplus_language::print_type): New member function.
6499 (asm_language_data): Delete la_print_type initializer.
6500 (asm_language::print_type): New member function.
6501 (minimal_language_data): Delete la_print_type initializer.
6502 (minimal_language::print_type): New member function.
6503 * d-lang.c (d_language_data): Delete la_print_type initializer.
6504 (d_language::print_type): New member function.
6505 * f-lang.c (f_language_data): Delete la_print_type initializer.
6506 (f_language::print_type): New member function.
6507 * go-lang.c (go_language_data): Delete la_print_type initializer.
6508 (go_language::print_type): New member function.
6509 * language.c (unk_lang_print_type): Delete.
6510 (unknown_language_data): Delete la_print_type initializer.
6511 (unknown_language::print_type): New member function.
6512 (auto_language_data): Delete la_print_type initializer.
6513 (auto_language::print_type): New member function.
6514 * language.h (language_data): Delete la_print_type field.
6515 (language_defn::print_type): New function.
6516 (LA_PRINT_TYPE): Update.
6517 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6518 (m2_language::print_type): New member function.
6519 * objc-lang.c (objc_language_data): Delete la_print_type
6520 initializer.
6521 (objc_language::print_type): New member function.
6522 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6523 to opencl_language::print_type.
6524 (opencl_language_data): Delete la_print_type initializer.
6525 (opencl_language::print_type): New member function, implementation
6526 from opencl_print_type.
6527 * p-lang.c (pascal_language_data): Delete la_print_type
6528 initializer.
6529 (pascal_language::print_type): New member function.
6530 * rust-lang.c (rust_print_type): Delete, implementation moved to
6531 rust_language::print_type.
6532 (rust_language_data): Delete la_print_type initializer.
6533 (rust_language::print_type): New member function, implementation
6534 from rust_print_type.
6535
6f827019
AB
65362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6537
6538 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6539 implementation moves to...
6540 (ada_language::sniff_from_mangled_name): ...here. Update return
6541 type.
6542 (ada_language_data): Delete la_sniff_from_mangled_name
6543 initializer.
6544 * c-lang.c (c_language_data): Likewise.
6545 (cplus_language_data): Likewise.
6546 (cplus_language::sniff_from_mangled_name): New member function,
6547 implementation taken from gdb_sniff_from_mangled_name.
6548 (asm_language_data): Delete la_sniff_from_mangled_name
6549 initializer.
6550 (minimal_language_data): Likewise.
6551 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6552 implementation moves to cplus_language::sniff_from_mangled_name.
6553 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6554 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6555 moves to...
6556 (d_language::sniff_from_mangled_name): ...here.
6557 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6558 * f-lang.c (f_language_data): Likewise.
6559 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6560 moves to...
6561 (go_language::sniff_from_mangled_name): ...here.
6562 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6563 * language.c (language_sniff_from_mangled_name): Delete.
6564 (unknown_language_data): Delete la_sniff_from_mangled_name
6565 initializer.
6566 (auto_language_data): Likewise.
6567 * language.h (language_data): Delete la_sniff_from_mangled_name
6568 field.
6569 (language_defn::sniff_from_mangled_name): New function.
6570 (language_sniff_from_mangled_name): Delete declaration.
6571 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6572 field.
6573 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6574 implementation moves to...
6575 (objc_language::sniff_from_mangled_name): ...here.
6576 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6577 * opencl-lang.c (opencl_language_data): Likewise.
6578 * p-lang.c (pascal_language_data): Likewise.
6579 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6580 implementation moves to...
6581 (rust_language::sniff_from_mangled_name): ...here.
6582 (rust_language_data): Delete la_sniff_from_mangled_name
6583 initializer.
6584 * symtab.c (symbol_find_demangled_name): Call
6585 sniff_from_mangled_name member function.
6586
fb8006fd
AB
65872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6588
6589 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6590 initializer.
6591 * c-lang.c (c_language_data): Likewise.
6592 (cplus_language_data): Likewise.
6593 (cplus_language::search_name_hash): New member function.
6594 (asm_language_data): Delete la_search_name_hash initializer.
6595 (minimal_language_data): Likewise.
6596 * d-lang.c (d_language_data): Likewise.
6597 * dictionary.c (default_search_name_hash): Rename to...
6598 (language_defn::search_name_hash): ...this.
6599 * f-lang.c (f_language_data): Likewise.
6600 (f_language::search_name_hash): New member function.
6601 * go-lang.c (go_language_data): Delete la_search_name_hash
6602 initializer.
6603 * language.c (unknown_language_data): Likewise.
6604 (auto_language_data): Likewise.
6605 * language.h (struct language_data): Delete la_search_name_hash
6606 field.
6607 (language_defn::search_name_hash): Declare new member function.
6608 (default_search_name_hash): Delete declaration.
6609 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6610 initializer.
6611 * objc-lang.c (objc_language_data): Likewise.
6612 * opencl-lang.c (opencl_language_data): Likewise.
6613 * p-lang.c (pascal_language_data): Likewise.
6614 * rust-lang.c (rust_language_data): Likewise.
6615 * symtab.c (search_name_hash): Update call.
6616
8e25bafe
AB
66172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6618
6619 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6620 initializer.
6621 * c-lang.c (class compile_instance): Declare.
6622 (c_language_data): Delete la_get_compile_instance initializer.
6623 (c_language::get_compile_instance): New member function.
6624 (cplus_language_data): Delete la_get_compile_instance initializer.
6625 (cplus_language::get_compile_instance): New member function.
6626 (asm_language_data): Delete la_get_compile_instance initializer.
6627 (minimal_language_data): Likewise.
6628 * c-lang.h (c_get_compile_context): Update comment.
6629 (cplus_get_compile_context): Update comment.
6630 * compile/compile.c (compile_to_object): Update calls, don't rely
6631 on function pointer being NULL.
6632 * d-lang.c (d_language_data): Delete la_get_compile_instance
6633 initializer.
6634 * f-lang.c (f_language_data): Likewise.
6635 * go-lang.c (go_language_data): Likewise.
6636 * language.c (unknown_language_data): Likewise.
6637 (auto_language_data): Likewise.
6638 * language.h (language_data): Delete la_get_compile_instance field.
6639 (language_defn::get_compile_instance): New member function.
6640 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6641 initializer.
6642 * objc-lang.c (objc_language_data): Likewise.
6643 * opencl-lang.c (opencl_language_data): Likewise.
6644 * p-lang.c (pascal_language_data): Likewise.
6645 * rust-lang.c (rust_language_data): Likewise.
6646
4009ee92
AB
66472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6648
6649 * ada-lang.c (ada_add_all_symbols): Update comment.
6650 (ada_iterate_over_symbols): Delete, move implementation to...
6651 (ada_language::iterate_over_symbols): ...here, a new member
6652 function, rewrite to use range based for loop.
6653 (ada_language_data): Delete la_iterate_over_symbols initializer.
6654 * c-lang.c (c_language_data): Likewise.
6655 (cplus_language_data): Likewise.
6656 (asm_language_data): Likewise.
6657 (minimal_language_data): Likewise.
6658 * d-lang.c (d_language_data): Likewise.
6659 * f-lang.c (f_language_data): Likewise.
6660 * go-lang.c (go_language_data): Likewise.
6661 * language.c (unknown_language_data): Likewise.
6662 (auto_language_data): Likewise.
6663 * language.h (language_data): Delete la_iterate_over_symbols field.
6664 (language_defn::iterate_over_symbols): New member function.
6665 (LA_ITERATE_OVER_SYMBOLS): Update.
6666 * linespec.c (iterate_over_all_matching_symtabs): Update.
6667 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6668 initializer.
6669 * objc-lang.c (objc_language_data): Likewise.
6670 * opencl-lang.c (opencl_language_data): Likewise.
6671 * p-lang.c (pascal_language_data): Likewise.
6672 * rust-lang.c (rust_language_data): Likewise.
6673
54f4ca46
AB
66742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6675
6676 * ada-lang.c (ada_language_data): Delete
6677 la_lookup_transparent_type initializer.
6678 * c-lang.c (c_language_data): Likewise.
6679 (cplus_language_data): Likewise.
6680 (cplus_language::lookup_transparent_type): New member function.
6681 (asm_language_data): Delete la_lookup_transparent_type
6682 initializer.
6683 (minimal_language_data): Likewise.
6684 * d-lang.c (d_language_data): Likewise.
6685 * f-lang.c (f_language_data): Likewise.
6686 * go-lang.c (go_language_data): Likewise.
6687 * language.c (unknown_language_data): Likewise.
6688 (auto_language_data): Likewise.
6689 * language.h (struct language_data): Delete
6690 la_lookup_transparent_type field.
6691 (language_defn::lookup_transparent_type): New member function.
6692 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6693 initializer.
6694 * objc-lang.c (objc_language_data): Likewise.
6695 * opencl-lang.c (opencl_language_data): Likewise.
6696 * p-lang.c (pascal_language_data): Likewise.
6697 * rust-lang.c (rust_language_data): Likewise.
6698 * symtab.c (symbol_matches_domain): Update call.
6699
1fb314aa
AB
67002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6701
6702 * ada-lang.c (ada_language_arch_info): Delete function, move
6703 implementation to...
6704 (ada_language::language_arch_info): ...here, a new member
6705 function.
6706 (ada_language_data): Delete la_language_arch_info.
6707 * c-lang.c (c_language_data): Likewise.
6708 (c_language::language_arch_info): New member function.
6709 (cplus_language_arch_info): Delete function, move
6710 implementation to...
6711 (cplus_language::language_arch_info): ...here, a new member
6712 function.
6713 (cplus_language_data): Delete la_language_arch_info.
6714 (asm_language_data): Likewise.
6715 (asm_language::language_arch_info): New member function.
6716 (minimal_language_data): Delete la_language_arch_info.
6717 (minimal_language::language_arch_info): New member function.
6718 * d-lang.c (d_language_arch_info): Delete function, move
6719 implementation to...
6720 (d_language::language_arch_info): ...here, a new member
6721 function.
6722 (d_language_data): Delete la_language_arch_info.
6723 * f-lang.c (f_language_arch_info): Delete function, move
6724 implementation to...
6725 (f_language::language_arch_info): ...here, a new member
6726 function.
6727 (f_language_data): Delete la_language_arch_info.
6728 * go-lang.c (go_language_arch_info): Delete function, move
6729 implementation to...
6730 (go_language::language_arch_info): ...here, a new member
6731 function.
6732 (go_language_data): Delete la_language_arch_info.
6733 * language.c (unknown_language_data): Likewise.
6734 (unknown_language::language_arch_info): New member function.
6735 (auto_language_data): Delete la_language_arch_info.
6736 (auto_language::language_arch_info): New member function.
6737 (language_gdbarch_post_init): Update call to
6738 la_language_arch_info.
6739 * language.h (language_data): Delete la_language_arch_info
6740 function pointer.
6741 (language_defn::language_arch_info): New function.
6742 * m2-lang.c (m2_language_arch_info): Delete function, move
6743 implementation to...
6744 (m2_language::language_arch_info): ...here, a new member
6745 function.
6746 (m2_language_data): Delete la_language_arch_info.
6747 * objc-lang.c (objc_language_arch_info): Delete function, move
6748 implementation to...
6749 (objc_language::language_arch_info): ...here, a new member
6750 function.
6751 (objc_language_data): Delete la_language_arch_info.
6752 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6753 implementation to...
6754 (opencl_language::language_arch_info): ...here, a new member
6755 function.
6756 (opencl_language_data): Delete la_language_arch_info.
6757 * p-lang.c (pascal_language_arch_info): Delete function, move
6758 implementation to...
6759 (pascal_language::language_arch_info): ...here, a new member
6760 function.
6761 (pascal_language_data): Delete la_language_arch_info.
6762 * rust-lang.c (rust_language_arch_info): Delete function, move
6763 implementation to...
6764 (rust_language::language_arch_info): ...here, a new member
6765 function.
6766 (rust_language_data): Delete la_language_arch_info.
6767
48448202
AB
67682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6769
6770 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6771 initializer.
6772 * c-lang.c (c_language_data): Likewise.
6773 (cplus_language_data): Likewise.
6774 (cplus_language::pass_by_reference_info): New method.
6775 (asm_language_data): Delete la_pass_by_reference initializer.
6776 (minimal_language_data): Likewise.
6777 * cp-abi.c (cp_pass_by_reference): Remove use of
6778 default_pass_by_reference.
6779 * d-lang.c (d_language_data): Likewise.
6780 * f-lang.c (f_language_data): Likewise.
6781 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6782 default_pass_by_reference.
6783 * go-lang.c (go_language_data): Likewise.
6784 * language.c (language_pass_by_reference): Update.
6785 (default_pass_by_reference): Delete.
6786 (unknown_language_data): Delete la_pass_by_reference
6787 initializer.
6788 (auto_language_data): Likewise.
6789 * language.h (struct language_data): Delete la_pass_by_reference
6790 field.
6791 (language_defn::pass_by_reference_info): New member function.
6792 (default_pass_by_reference): Delete declaration.
6793 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6794 initializer.
6795 * objc-lang.c (objc_language_data): Likewise.
6796 * opencl-lang.c (opencl_language_data): Likewise.
6797 * p-lang.c (pascal_language_data): Likewise.
6798 * rust-lang.c (rust_language_data): Likewise.
6799
15e5fd35
AB
68002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6801
6802 * ada-lang.c (ada_read_var_value): Delete function, move
6803 implementation to...
6804 (ada_language::read_var_value): ...here.
6805 (ada_language_data): Delete la_read_var_value initializer.
6806 * c-lang.c (c_language_data): Likewise.
6807 (cplus_language_data): Likewise.
6808 (minimal_language_data): Likewise.
6809 * d-lang.c (d_language_data): Likewise.
6810 * f-lang.c (f_language_data): Likewise.
6811 * findvar.c (default_read_var_value): Rename to...
6812 (language_defn::read_var_value): ...this.
6813 * findvar.c (read_var_value): Update header comment, and change to
6814 call member function instead of function pointer.
6815 * go-lang.c (go_language_data): Likewise.
6816 * language.c (unknown_language_data): Delete la_read_var_value
6817 initializer.
6818 (auto_language_data): Likewise.
6819 * language.h (struct language_data): Delete la_read_var_value
6820 field.
6821 (language_defn::read_var_value): New member function.
6822 (default_read_var_value): Delete declaration.
6823 * m2-lang.c (m2_language_data): Delete la_read_var_value
6824 initializer.
6825 * objc-lang.c (objc_language_data): Likewise.
6826 * opencl-lang.c (opencl_language_data): Likewise.
6827 * p-lang.c (pascal_language_data): Likewise.
6828 * rust-lang.c (rust_language_data): Likewise.
6829 * value.h (default_read_var_value): Delete declaration.
6830
5bd40f2a
AB
68312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6832
6833 * ada-lang.c (ada_print_array_index): Delete function, move
6834 implementation to...
6835 (ada_language::print_array_index): ...here.
6836 (ada_language_data): Delete la_print_array_index initializer.
6837 * c-lang.c (c_language_data): Likewise.
6838 (cplus_language_data): Likewise.
6839 (minimal_language_data): Likewise.
6840 * d-lang.c (d_language_data): Likewise.
6841 * f-lang.c (f_language_data): Likewise.
6842 * go-lang.c (go_language_data): Likewise.
6843 * language.c (default_print_array_index): Delete function, move
6844 implementation to...
6845 (language_defn::print_array_index): ...here.
6846 (unknown_language_data): Delete la_print_array_index initializer.
6847 (auto_language_data): Likewise.
6848 * language.h (struct language_data): Delete la_print_array_index
6849 field.
6850 (language_defn::print_array_index): New member function.
6851 (LA_PRINT_ARRAY_INDEX): Update.
6852 (default_print_array_index): Delete declaration.
6853 * m2-lang.c (m2_language_data): Delete la_print_array_index
6854 initializer.
6855 * objc-lang.c (objc_language_data): Likewise.
6856 * opencl-lang.c (opencl_language_data): Likewise.
6857 * p-lang.c (pascal_language_data): Likewise.
6858 * rust-lang.c (rust_language_data): Likewise.
6859
0874fd07
AB
68602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6861
6862 * gdb/ada-lang.c (ada_language_defn): Convert to...
6863 (ada_language_data): ...this.
6864 (class ada_language): New class.
6865 (ada_language_defn): New static global.
6866 * gdb/c-lang.c (c_language_defn): Convert to...
6867 (c_language_data): ...this.
6868 (class c_language): New class.
6869 (c_language_defn): New static global.
6870 (cplus_language_defn): Convert to...
6871 (cplus_language_data): ...this.
6872 (class cplus_language): New class.
6873 (cplus_language_defn): New static global.
6874 (asm_language_defn): Convert to...
6875 (asm_language_data): ...this.
6876 (class asm_language): New class.
6877 (asm_language_defn): New static global.
6878 (minimal_language_defn): Convert to...
6879 (minimal_language_data): ...this.
6880 (class minimal_language): New class.
6881 (minimal_language_defn): New static global.
6882 * gdb/d-lang.c (d_language_defn): Convert to...
6883 (d_language_data): ...this.
6884 (class d_language): New class.
6885 (d_language_defn): New static global.
6886 * gdb/f-lang.c (f_language_defn): Convert to...
6887 (f_language_data): ...this.
6888 (class f_language): New class.
6889 (f_language_defn): New static global.
6890 * gdb/go-lang.c (go_language_defn): Convert to...
6891 (go_language_data): ...this.
6892 (class go_language): New class.
6893 (go_language_defn): New static global.
6894 * gdb/language.c (unknown_language_defn): Remove declaration.
6895 (current_language): Initialize to nullptr, real initialization is
6896 moved to _initialize_language.
6897 (languages): Delete global.
6898 (language_defn::languages): Define.
6899 (set_language_command): Use language_defn::languages.
6900 (set_language): Likewise.
6901 (range_error): Likewise.
6902 (language_enum): Likewise.
6903 (language_def): Likewise.
6904 (add_set_language_command): Use language_def::languages for the
6905 language list, and language_def to lookup language pointers.
6906 (skip_language_trampoline): Use language_defn::languages.
6907 (unknown_language_defn): Convert to...
6908 (unknown_language_data): ...this.
6909 (class unknown_language): New class.
6910 (unknown_language_defn): New static global.
6911 (auto_language_defn): Convert to...
6912 (auto_language_data): ...this.
6913 (class auto_language): New class.
6914 (auto_language_defn): New static global.
6915 (language_gdbarch_post_init): Use language_defn::languages.
6916 (_initialize_language): Initialize current_language.
6917 * gdb/language.h (struct language_defn): Rename to...
6918 (struct language_data): ...this.
6919 (struct language_defn): New.
6920 (auto_language_defn): Delete.
6921 (unknown_language_defn): Delete.
6922 (minimal_language_defn): Delete.
6923 (ada_language_defn): Delete.
6924 (asm_language_defn): Delete.
6925 (c_language_defn): Delete.
6926 (cplus_language_defn): Delete.
6927 (d_language_defn): Delete.
6928 (f_language_defn): Delete.
6929 (go_language_defn): Delete.
6930 (m2_language_defn): Delete.
6931 (objc_language_defn): Delete.
6932 (opencl_language_defn): Delete.
6933 (pascal_language_defn): Delete.
6934 (rust_language_defn): Delete.
6935 * gdb/m2-lang.c (m2_language_defn): Convert to...
6936 (m2_language_data): ...this.
6937 (class m2_language): New class.
6938 (m2_language_defn): New static global.
6939 * gdb/objc-lang.c (objc_language_defn): Convert to...
6940 (objc_language_data): ...this.
6941 (class objc_language): New class.
6942 (objc_language_defn): New static global.
6943 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6944 (opencl_language_data): ...this.
6945 (class opencl_language): New class.
6946 (opencl_language_defn): New static global.
6947 * gdb/p-lang.c (pascal_language_defn): Convert to...
6948 (pascal_language_data): ...this.
6949 (class pascal_language): New class.
6950 (pascal_language_defn): New static global.
6951 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6952 language pointer, update comment format.
6953 * gdb/rust-lang.c (rust_language_defn): Convert to...
6954 (rust_language_data): ...this.
6955 (class rust_language): New class.
6956 (rust_language_defn): New static global.
6957
1313c56e
AB
69582020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6959
6960 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6961 member variable.
6962 <m_stmt_at_address>: New member variable.
6963 (lnp_state_machine::record_line): Don't record some lines, update
6964 tracking of is_stmt at the same address.
6965 (lnp_state_machine::lnp_state_machine): Initialise new member
6966 variables.
6967
b7ed9f3d
ST
69682020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6969
6970 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6971 "-include gnu-nat-mig.h".
6972 * gnu-nat-mig.h: New file.
6973 * gnu-nat.c: Include "gnu-nat-mig.h".
6974 (exc_server, msg_reply_server, notify_server,
6975 process_reply_server): Remove declarations.
6976
14a8ad62
ST
69772020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6978
6979 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6980 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6981 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6982 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6983 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6984 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6985 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6986 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6987 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6988 to gnu_nat_target class.
6989 * gnu-nat.c: Likewise.
6990 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6991 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6992 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6993 object.
6994 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6995 instead of `gnu_target'.
6996
0af5e106
ST
69972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6998
6999 * i386-gnu-tdep.c: Include "gdbcore.h"
7000 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7001 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7002 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7003 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7004 i386_gnu_sigcontext_addr): New functions
7005 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7006 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7007 tdep.
7008
078f2fc9
ST
70092020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7010
7011 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7012 before fork_inferior call. Avoid calling it if target_is_pushed returns
7013 true.
7014
53dff92c
ST
70152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7016
7017 * gnu-nat.h (gnu_target): New variable declaration.
7018 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7019 gnu_target.
7020 * gnu-nat.c (gnu_target): New variable.
7021 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7022 add_thread_silent, and add_thread calls.
7023 (gnu_nat_target::create_inferior): Pass gnu_target to
7024 add_thread_silent, thread_change_ptid call.
7025 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7026 call.
7027
5a8b8627
ST
70282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7029
7030 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7031 (gnu_nat_target::find_memory_regions): Remove unused
7032 `old_address' variable.
7033
366f550a
ST
70342020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7035
7036 * gnu-nat.c: Include "gdbarch.h".
7037
f14871bf
ST
70382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7039
7040 * reply_mig_hack.awk (Error return): Cast function through
7041 void *, to bypass compiler function call check.
7042
c6887cfb
ST
70432020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7044
7045 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7046 $(srcdir)/reply_mig_hack.awk.
7047
6930bffe
ST
70482020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7049
7050 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7051
112c22ed
JG
70522020-05-30 Jonny Grant <jg@jguk.org>
7053
7054 * configure.ac (ACX_BUGURL): change bug URL to https.
7055
f68f85b5
PA
70562020-05-30 Pedro Alves <palves@redhat.com>
7057
7058 * cp-support.c (replace_typedefs_template): New.
7059 (replace_typedefs_qualified_name): Handle
7060 DEMANGLE_COMPONENT_TEMPLATE.
7061
976ca316
SM
70622020-05-29 Simon Marchi <simon.marchi@efficios.com>
7063
7064 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7065 dwarf2/index-cache.h, dwarf2/index-write.c,
7066 dwarf2/index-write.h, dwarf2/line-header.c,
7067 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7068 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7069 variables and fields from `dwarf2_per_objfile` to just
7070 `per_objfile` throughout.
7071
989ade05
SM
70722020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7073
7074 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7075 <push_dwarf_reg_entry_value>: Add comment.
7076
c47bae85
KB
70772020-05-28 Kevin Buettner <kevinb@redhat.com>
7078 Keith Seitz <keiths@redhat.com>
7079
7080 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7081 instead of PyEval_ReleaseLock.
7082 (class gdbpy_gil): Move to earlier in file.
7083 (finalize_python): Set gdb_python_initialized.
7084 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7085 when not initialized.
7086
44486dcf
SM
70872020-05-28 Simon Marchi <simon.marchi@efficios.com>
7088
7089 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7090 <push_dwarf_reg_entry_value>: Remove assert. Override
7091 per_objfile with caller_per_objfile.
7092
f030440d
TV
70932020-05-28 Tom de Vries <tdevries@suse.de>
7094
7095 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7096 PR gold/15646 workaround to symbol kind "type".
7097
f0fbb768
TT
70982020-05-27 Tom Tromey <tromey@adacore.com>
7099
7100 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7101
af0b2a3e
TT
71022020-05-27 Tom Tromey <tromey@adacore.com>
7103
7104 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7105 Use htab_find_with_hash.
7106 <add_abbrev>: Remove "abbrev_number" parameter.
7107 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7108 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7109 (hash_abbrev): Add comment.
7110 (abbrev_table::lookup_abbrev): Move to header file.
7111 (abbrev_table::read): Update.
7112
7d00ffec
TT
71132020-05-27 Tom Tromey <tromey@adacore.com>
7114
7115 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7116 method.
7117 <canonical_name>: New member.
7118 <raw_name>: Rename from "name".
7119 (partial_die_info): Initialize canonical_name.
7120 (scan_partial_symbols): Check raw_name.
7121 (partial_die_parent_scope, partial_die_full_name)
7122 (add_partial_symbol, add_partial_subprogram)
7123 (add_partial_enumeration, load_partial_dies): Use "name" method.
7124 (partial_die_info::name): New method.
7125 (partial_die_info::read, guess_partial_die_structure_name)
7126 (partial_die_info::fixup): Update.
7127
697bba18
TT
71282020-05-27 Tom Tromey <tromey@adacore.com>
7129
7130 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7131 <get_ref_die_offset>: Inline.
7132 <get_ref_die_offset_complaint>: New method.
7133 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7134 (attribute::get_ref_die_offset_complaint): Rename from
7135 get_ref_die_offset. Just issue complaint.
7136
c17ace43
HD
71372020-05-27 Hannes Domani <ssbssa@yahoo.de>
7138
7139 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7140
96445f0b
HD
71412020-05-27 Hannes Domani <ssbssa@yahoo.de>
7142
7143 * exec.c (exec_file_attach): Use errno value of first openp failure.
7144
ac637ec3
HD
71452020-05-27 Hannes Domani <ssbssa@yahoo.de>
7146
7147 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7148 Don't close thread handle.
7149
17ee85fc
TT
71502020-05-27 Tom Tromey <tom@tromey.com>
7151 Simon Marchi <simon.marchi@efficios.com>
7152
7153 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7154 shared_ptr.
7155 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7156 member.
7157 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7158 dwarf2_per_bfd_objfile_data_key>: New globals.
7159 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7160 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7161 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7162 shared.
7163 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7164 short-circuit when sharing.
7165 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7166 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7167
39b16f87
SM
71682020-05-27 Simon Marchi <simon.marchi@efficios.com>
7169
7170 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7171 to...
7172 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7173 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7174
fcf23d5b
SM
71752020-05-27 Simon Marchi <simon.marchi@efficios.com>
7176
7177 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7178 build_name_components, find_name_components_bounds>:
7179 Add per_objfile parameter.
7180 (struct mapped_index) <symbol_name_at>: Likewise.
7181 (struct mapped_debug_names): Remove constructor.
7182 <dwarf2_per_objfile>: Remove field.
7183 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7184 (mapped_index_base::find_name_components_bounds,
7185 mapped_index_base::build_name_components,
7186 dw2_expand_symtabs_matching_symbol): Likewise.
7187 (class mock_mapped_index) <symbol_name_at>: Likewise.
7188 (check_match): Likewise.
7189 (check_find_bounds_finds): Likewise.
7190 (test_mapped_index_find_name_component_bounds): Update.
7191 (CHECK_MATCH): Update.
7192 (dw2_expand_symtabs_matching): Update.
7193 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7194 per_objfile parameter.
7195 <find_vec_in_debug_names>: Likewise.
7196 <m_per_objfile>: New field.
7197 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7198 parameter.
7199 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7200 (dw2_debug_names_iterator::next): Update.
7201 (dw2_debug_names_lookup_symbol): Update.
7202 (dw2_debug_names_expand_symtabs_for_function): Update.
7203 (dw2_debug_names_map_matching_symbols): Update.
7204 (dw2_debug_names_expand_symtabs_matching): Update.
7205 (dwarf2_read_debug_names): Update.
7206
7188ed02
SM
72072020-05-27 Simon Marchi <simon.marchi@efficios.com>
7208
7209 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7210 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7211 move to dwarf2_per_objfile.
7212 <read_in_chain>: Remove.
7213 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7214 remove_all_cus, age_comp_units>: New methods.
7215 <m_dwarf2_cus>: New member.
7216 (struct dwarf2_per_cu_data) <cu>: Remove.
7217 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7218 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7219 moved to methods of dwarf2_per_objfile.
7220 (dwarf2_clear_marks): Remove.
7221 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7222 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7223 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7224 (dwarf2_per_objfile::remove_all_cus): New.
7225 (class free_cached_comp_units) <~free_cached_comp_units>:
7226 Update.
7227 (load_cu): Update.
7228 (dw2_do_instantiate_symtab): Adjust.
7229 (fill_in_sig_entry_from_dwo_entry): Adjust.
7230 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7231 (cutu_reader::cutu_reader): Likewise.
7232 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7233 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7234 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7235 and dwarf2_per_objfile::age_comp_units.
7236 (load_partial_comp_unit): Update.
7237 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7238 (process_queue): Likewise.
7239 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7240 backlink.
7241 (dwarf2_read_addr_index): Likewise.
7242 (follow_die_offset): Likewise.
7243 (dwarf2_fetch_die_loc_sect_off): Likewise.
7244 (dwarf2_fetch_constant_bytes): Likewise.
7245 (dwarf2_fetch_die_type_sect_off): Likewise.
7246 (follow_die_sig_1): Likewise.
7247 (load_full_type_unit): Likewise.
7248 (read_signatured_type): Likewise.
7249 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7250 (dwarf2_cu::~dwarf2_cu): Remove.
7251 (dwarf2_per_objfile::get_cu): New.
7252 (dwarf2_per_objfile::set_cu): New.
7253 (age_cached_comp_units): Rename to...
7254 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7255 to std::unordered_map.
7256 (free_one_cached_comp_unit): Rename to...
7257 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7258 to std::unordered_map.
7259 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7260 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7261 a dwarf2_per_objfile in data.
7262 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7263 (dwarf2_clear_marks): Remove.
7264
2e671100
SM
72652020-05-27 Simon Marchi <simon.marchi@efficios.com>
7266
7267 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7268 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7269 (init_tu_and_read_dwo_dies): Likewise.
7270 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7271 (cutu_reader::cutu_reader): Likewise.
7272 (load_partial_comp_unit): Likewise.
7273 (process_psymtab_comp_unit): Update.
7274 (build_type_psymtabs_1): Update.
7275 (process_skeletonless_type_unit): Update.
7276 (load_full_comp_unit): Update.
7277 (find_partial_die): Update.
7278 (dwarf2_read_addr_index): Update.
7279 (read_signatured_type): Update.
7280
2e6a9f79
SM
72812020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7282
7283 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7284 m_header_read_in>: New fields.
7285 <get_header>: New method.
7286 * dwarf2/read.c (per_cu_header_read_in): Remove.
7287 (dwarf2_per_cu_data::get_header): New.
7288 (dwarf2_per_cu_data::addr_size): Update.
7289 (dwarf2_per_cu_data::offset_size): Update.
7290 (dwarf2_per_cu_data::ref_addr_size): Update.
7291
1b555f17
SM
72922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7293
7294 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7295 (dw2_do_instantiate_symtab): Update.
7296 (queue_and_load_all_dwo_tus): Change parameter from
7297 dwarf2_per_cu_data to dwarf2_cu.
7298 (dwarf2_fetch_die_loc_sect_off): Update.
7299 (dwarf2_fetch_constant_bytes): Update.
7300 (dwarf2_fetch_die_type_sect_off): Update.
7301
8fc0b21d
SM
73022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7303
7304 * dwarf2/read.c (process_full_comp_unit,
7305 process_full_type_unit): Remove per_cu, per_objfile paramters.
7306 Add dwarf2_cu parameter.
7307 (process_queue): Update.
7308
168c9250
SM
73092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7310
7311 * dwarf2/read.c (create_cu_from_index_list): Replace
7312 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7313 (create_cus_from_index_list): Likewise.
7314 (create_cus_from_index): Likewise.
7315 (create_signatured_type_table_from_index): Likewise.
7316 (create_cus_from_debug_names_list): Likewise.
7317 (create_cus_from_debug_names): Likewise.
7318 (dwarf2_read_gdb_index): Update.
7319 (dwarf2_read_debug_names): Update.
7320
e286671b
TT
73212020-05-27 Tom Tromey <tom@tromey.com>
7322 Simon Marchi <simon.marchi@efficios.com>
7323
7324 * dwarf2/read.h (struct dwarf2_per_objfile)
7325 <get_type_for_signatured_type, set_type_for_signatured_type>:
7326 New methods.
7327 <m_type_map>: New member.
7328 (struct signatured_type) <type>: Remove.
7329 * dwarf2/read.c
7330 (dwarf2_per_objfile::get_type_for_signatured_type,
7331 dwarf2_per_objfile::set_type_for_signatured_type): New.
7332 (get_signatured_type): Use new methods.
7333
8adb8487
TT
73342020-05-27 Tom Tromey <tom@tromey.com>
7335 Simon Marchi <simon.marchi@efficios.com>
7336
7337 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7338 (struct dwarf2_per_objfile) <type_units>: New member.
7339 <get_type_unit_group_unshareable>: New method.
7340 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7341 num_symtabs, symtabs>: Remove; move to
7342 type_unit_group_unshareable.
7343 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7344 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7345 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7346
127bbf4b
SM
73472020-05-27 Simon Marchi <simon.marchi@efficios.com>
7348
7349 * dwarf2/read.h (struct dwarf2_per_cu_data):
7350 <dwarf2_per_objfile>: Remove.
7351 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7352 dwarf2_per_objfile.
7353 (create_signatured_type_table_from_index): Likewise.
7354 (create_signatured_type_table_from_debug_names): Likewise.
7355 (create_debug_type_hash_table): Likewise.
7356 (fill_in_sig_entry_from_dwo_entry): Likewise.
7357 (create_type_unit_group): Likewise.
7358 (read_comp_units_from_section): Likewise.
7359 (create_cus_hash_table): Likewise.
7360
f6e649dd
SM
73612020-05-27 Simon Marchi <simon.marchi@efficios.com>
7362
7363 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7364 dwarf2_per_cu_data::dwarf2_per_objfile.
7365 (compute_compunit_symtab_includes): Likewise.
7366 (dwarf2_cu::start_symtab): Likewise.
7367
aa66c379
SM
73682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7369
7370 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7371 parameter.
7372 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7373 (read_namespace_alias): Update.
7374 (lookup_die_type): Update.
7375 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7376 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7377 Update.
7378 (disassemble_dwarf_expression): Update.
7379
120ce1b5
SM
73802020-05-27 Simon Marchi <simon.marchi@efficios.com>
7381
7382 * dwarf2/read.h (struct dwarf2_queue_item): Add
7383 dwarf2_per_objfile parameter, assign new parameter.
7384 <per_objfile>: New field.
7385 * dwarf2/read.c (free_one_cached_comp_unit): Add
7386 dwarf2_per_objfile parameter.
7387 (queue_comp_unit): Likewise.
7388 (dw2_do_instantiate_symtab): Update.
7389 (process_psymtab_comp_unit): Update.
7390 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7391 (process_imported_unit_die): Update.
7392 (queue_and_load_dwo_tu): Update.
7393 (follow_die_offset): Update.
7394 (follow_die_sig_1): Update.
7395
9f47c707
SM
73962020-05-27 Simon Marchi <simon.marchi@efficios.com>
7397
7398 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7399 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7400 (read_call_site_scope): Assign per_objfile.
7401 (dwarf2_per_cu_data::objfile): Remove.
7402 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7403 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7404 dwarf2_per_objfile parameter.
7405 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7406 dwarf2_per_objfile parameter.
7407 (dwarf_expr_reg_to_entry_parameter): Add output
7408 dwarf2_per_objfile parameter.
7409 (locexpr_get_frame_base): Update.
7410 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7411 <push_dwarf_reg_entry_value>: Update.
7412 <call_site_to_target_addr>: Update.
7413 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7414 parameter.
7415 (value_of_dwarf_reg_entry): Update.
7416 (rw_pieced_value): Update.
7417 (indirect_synthetic_pointer): Update.
7418 (dwarf2_evaluate_property): Update.
7419 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7420 parameter.
7421 (locexpr_read_variable): Update.
7422 (locexpr_get_symbol_read_needs): Update.
7423 (loclist_read_variable): Update.
7424
14095eb3
SM
74252020-05-27 Simon Marchi <simon.marchi@efficios.com>
7426
7427 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7428 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7429 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7430 parameter.
7431 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7432 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7433 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7434 parameter.
7435 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7436 sect_variable_value): Add dwarf2_per_objfile parameter.
7437 (class dwarf_evaluate_loc_desc) <dwarf_call,
7438 dwarf_variable_value>: Update.
7439 (fetch_const_value_from_synthetic_pointer): Add
7440 dwarf2_per_objfile parameter.
7441 (fetch_const_value_from_synthetic_pointer): Update.
7442 (coerced_pieced_ref): Update.
7443 (class symbol_needs_eval_context) <dwarf_call,
7444 dwarf_variable_value>: Update.
7445 (dwarf2_compile_expr_to_ax): Update.
7446
3c3cd3d4
SM
74472020-05-27 Simon Marchi <simon.marchi@efficios.com>
7448
7449 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7450 parameter.
7451 (dwarf2_evaluate_loc_desc_full): Update.
7452
82ca3f51
SM
74532020-05-27 Simon Marchi <simon.marchi@efficios.com>
7454
7455 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7456 parameter.
7457 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7458 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7459 dwarf2_per_objfile parameter.
7460 (decode_debug_loc_dwo_addresses): Likewise.
7461 (dwarf2_find_location_expression): Update.
7462 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7463 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7464 parameter.
7465 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7466 parameter.
7467 (locexpr_describe_location_1): Likewise.
7468 (locexpr_describe_location): Update.
7469
4b167ea1
SM
74702020-05-27 Simon Marchi <simon.marchi@efficios.com>
7471
7472 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7473 Remove.
7474 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7475 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7476 (dwarf2_compile_property_to_c): Update.
7477 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7478 use text offset from objfile.
7479 (locexpr_tracepoint_var_ref): Update.
7480 (locexpr_generate_c_location): Update.
7481 (loclist_describe_location): Update.
7482 (loclist_tracepoint_var_ref): Update.
7483 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7484 dwarf2_per_objfile parameter.
7485 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7486 use text offset from objfile.
7487 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7488
89b07335
SM
74892020-05-27 Simon Marchi <simon.marchi@efficios.com>
7490
7491 * dwarf2/expr.h (struct dwarf_expr_context)
7492 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7493 <offset>: Remove.
7494 <per_objfile>: New member.
7495 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7496 dwarf2_per_objfile parameter. Don't set offset, set
7497 per_objfile.
7498 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7499 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7500 a dwarf2_per_objfile object instead of an offset.
7501 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7502 constructor.
7503 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7504 to dwarf2_expr_executor constructor. Don't set offset.
7505 (dwarf2_fetch_cfa_info): Update.
7506 (struct dwarf2_frame_cache) <text_offset>: Remove.
7507 <per_objfile>: New field.
7508 (dwarf2_frame_cache): Update.
7509 (dwarf2_frame_prev_register): Update.
7510 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7511 <dwarf_evaluate_loc_desc>: Add constructor.
7512 (dwarf2_evaluate_loc_desc_full): Update.
7513 (dwarf2_locexpr_baton_eval): Update.
7514 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7515 Add constructor.
7516 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7517
293e7e51
SM
75182020-05-27 Simon Marchi <simon.marchi@efficios.com>
7519
7520 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7521 addr_sized_int_type>: Move to dwarf2_cu.
7522 <int_type>: Move to dwarf2_per_objfile.
7523 (struct dwarf2_per_objfile) <int_type>: Move here.
7524 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7525 addr_sized_int_type>: Move here.
7526 (read_func_scope): Update.
7527 (read_array_type): Update.
7528 (read_tag_string_type): Update.
7529 (attr_to_dynamic_prop): Update.
7530 (dwarf2_per_cu_data::int_type): Rename to...
7531 (dwarf2_per_objfile::int_type): ... this.
7532 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7533 (dwarf2_cu::addr_sized_int_type): ... this.
7534 (read_subrange_type): Update.
7535 (dwarf2_per_cu_data::addr_type): Rename to...
7536 (dwarf2_cu::addr_type): ... this.
7537 (set_die_type): Update.
7538
64874a40
SM
75392020-05-27 Simon Marchi <simon.marchi@efficios.com>
7540
7541 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7542 data through per_cu->cu.
7543
4ab09049
SM
75442020-05-27 Simon Marchi <simon.marchi@efficios.com>
7545
7546 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7547 dwarf2_per_cu_data parameter fo dwarf2_cu.
7548 (lookup_dwo_type_unit): Likewise.
7549 (read_cutu_die_from_dwo): Likewise.
7550 (lookup_dwo_unit): Likewise.
7551 (open_and_init_dwo_file): Likewise.
7552 (lookup_dwo_cutu): Likewise.
7553 (lookup_dwo_comp_unit): Likewise.
7554 (lookup_dwo_type_unit): Likewise.
7555 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7556 (cutu_reader::cutu_reader): Update.
7557
47b14e86
SM
75582020-05-27 Simon Marchi <simon.marchi@efficios.com>
7559
7560 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7561 parameter.
7562 (process_full_type_unit): Likewise.
7563 (process_queue): Update.
7564
43182c09
SM
75652020-05-27 Simon Marchi <simon.marchi@efficios.com>
7566
7567 * dwarf2/read.c (recursively_compute_inclusions): Add
7568 dwarf2_per_objfile parameter.
7569 (compute_compunit_symtab_includes): Likewise.
7570 (process_cu_includes): Update.
7571
7aa104c4
SM
75722020-05-27 Simon Marchi <simon.marchi@efficios.com>
7573
7574 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7575 parameter.
7576 (create_type_unit_group): Update.
7577 (process_psymtab_comp_unit_reader): Update.
7578 (build_type_psymtabs_reader): Update.
7579
e3beb21d
SM
75802020-05-27 Simon Marchi <simon.marchi@efficios.com>
7581
7582 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7583 object through m_this_cu->cu.
7584
d460f660
SM
75852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7586
7587 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7588 the info parameter.
7589 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7590
ab432490
SM
75912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7592
7593 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7594 per_objfile parameter.
7595 (load_full_type_unit): Add per_objfile parameter.
7596 (read_signatured_type): Likewise.
7597 (load_full_comp_unit): Likewise.
7598 (load_cu): Likewise.
7599 (dw2_do_instantiate_symtab): Likewise.
7600 (dw2_get_file_names): Likewise.
7601 (dw2_map_symtabs_matching_filename): Update.
7602 (dw_expand_symtabs_matching_file_matcher): Update.
7603 (dw2_map_symbol_filenames): Update.
7604 (process_psymtab_comp_unit): Add per_objfile parameter.
7605 (build_type_psymtabs_1): Update.
7606 (process_skeletonless_type_unit): Update.
7607 (dwarf2_build_psymtabs_hard): Update.
7608 (load_partial_comp_unit): Add per_objfile parameter.
7609 (scan_partial_symbols): Update.
7610 (load_full_comp_unit): Add per_objfile parameter.
7611 (process_imported_unit_die): Update.
7612 (create_cus_hash_table): Update.
7613 (find_partial_die): Update.
7614 (dwarf2_read_addr_index): Update.
7615 (follow_die_offset): Update.
7616 (dwarf2_fetch_die_loc_sect_off): Update.
7617 (dwarf2_fetch_constant_bytes): Update.
7618 (dwarf2_fetch_die_type_sect_off): Update.
7619 (follow_die_sig_1): Update.
7620 (load_full_type_unit): Add per_objfile parameter.
7621 (read_signatured_type): Likewise.
7622
313bad1b
SM
76232020-05-27 Simon Marchi <simon.marchi@efficios.com>
7624
7625 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7626 of objfile_name.
7627
c3699833
SM
76282020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7629
7630 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7631 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7632 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7633 field.
7634 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7635 (create_cus_from_index): Update.
7636 (dwarf2_read_gdb_index): Update.
7637 (create_cus_from_debug_names): Update.
7638 (dwarf2_read_debug_names): Update.
7639 (get_abbrev_section_for_cu): Update.
7640 (create_all_comp_units): Update.
7641 (read_attribute_value): Update.
7642 (get_debug_line_section): Update.
7643 * dwarf2/index-cache.c (index_cache::store): Update.
7644 * dwarf2/index-write.c (save_gdb_index_command): Update.
7645 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7646
1859c670
SM
76472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7648
7649 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7650 member.
7651 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7652 dwarf2_per_cu_data::per_bfd.
7653 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7654 (create_type_unit_group): Likewise.
7655 (queue_comp_unit): Remove reference to
7656 per_cu->dwarf2_per_objfile.
7657 (maybe_queue_comp_unit): Likewise.
7658 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7659 (create_cus_hash_table): Assign new field.
7660
5e22e966
SM
76612020-05-27 Simon Marchi <simon.marchi@efficios.com>
7662
7663 * dwarf2/read.c: Replace
7664 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7665 dwarf2_cu->per_objfile throughout.
7666
97a1449a
SM
76672020-05-27 Simon Marchi <simon.marchi@efficios.com>
7668
7669 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7670 parameter, don't use per_cu->dwarf2_per_objfile.
7671 (dw2_instantiate_symtab): Likewise.
7672 (dw2_find_last_source_symtab): Update.
7673 (dw2_map_expand_apply): Update.
7674 (dw2_lookup_symbol): Update.
7675 (dw2_expand_symtabs_for_function): Update.
7676 (dw2_expand_all_symtabs): Update.
7677 (dw2_expand_symtabs_with_fullname): Update.
7678 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7679 don't use per_cu->dwarf2_per_objfile.
7680 (dw2_expand_marked_cus): Update.
7681 (dw2_find_pc_sect_compunit_symtab): Update.
7682 (dw2_debug_names_lookup_symbol): Update.
7683 (dw2_debug_names_expand_symtabs_for_function): Update.
7684 (dw2_debug_names_map_matching_symbols): Update.
7685 (dwarf2_psymtab::expand_psymtab): Update.
7686
9e021579
SM
76872020-05-27 Simon Marchi <simon.marchi@efficios.com>
7688
7689 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7690 <per_objfile>: New member.
7691 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7692 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7693 call to dwarf2_cu.
7694 (cutu_reader::cutu_reader): Update.
7695 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7696
ae090bdb
SM
76972020-05-27 Simon Marchi <simon.marchi@efficios.com>
7698
7699 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7700 struct dwarf2_per_objfile.
7701 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7702 dwarf2_per_bfd.
7703 * dwarf2/read.c (set_die_type): Update.
7704 (get_die_type_at_offset): Update.
7705
af758d11
SM
77062020-05-27 Tom Tromey <tom@tromey.com>
7707 Simon Marchi <simon.marchi@efficios.com>
7708
7709 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7710 method.
7711 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7712 get_symtab, set_symtab>: New methods.
7713 <m_symtabs>: New field.
7714 (struct dwarf2_psymtab): Derive from partial_symtab.
7715 <readin_p, get_compunit_symtab>: Declare methods.
7716 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7717 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7718 New methods.
7719 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7720 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7721 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7722 (dw2_symtab_iter_next, dw2_print_stats)
7723 (dw2_expand_symtabs_with_fullname)
7724 (dw2_expand_symtabs_matching_one)
7725 (dw_expand_symtabs_matching_file_matcher)
7726 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7727 (dw2_debug_names_iterator::next)
7728 (dw2_debug_names_map_matching_symbols)
7729 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7730 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7731 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7732 New methods.
7733 (get_compunit_symtab, process_full_comp_unit)
7734 (process_full_type_unit): Update.
7735 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7736
5989a64e
SM
77372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7738
7739 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7740 then introduce a new dwarf2_per_objfile type.
7741 <read_line_string>: Move to the new dwarf2_per_objfile type.
7742 <objfile>: Likewise.
7743 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7744 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7745 dwarf2_per_objfile->per_bfd.
7746 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7747 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7748 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7749 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7750 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7751 (dwarf2_per_objfile::locate_sections): Rename to...
7752 (dwarf2_per_bfd::locate_sections): ... this.
7753 (dwarf2_per_objfile::get_cutu): Rename to...
7754 (dwarf2_per_bfd::get_cutu): ... this.
7755 (dwarf2_per_objfile::get_cu): Rename to...
7756 (dwarf2_per_bfd::get_cu): ... this.
7757 (dwarf2_per_objfile::get_tu): Rename to...
7758 (dwarf2_per_bfd::get_tu): ... this.
7759 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7760 (dwarf2_per_bfd::allocate_per_cu): ... this.
7761 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7762 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7763 (get_gdb_index_contents_ftype): Change parameter from
7764 dwarf2_per_objfile to dwarf2_per_bfd.
7765 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7766 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7767
a50264ba
TT
77682020-05-27 Tom Tromey <tom@tromey.com>
7769 Simon Marchi <simon.marchi@efficios.com>
7770
7771 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7772 (allocate_piece_closure): Set "per_objfile" member.
7773 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7774 (locexpr_describe_location, loclist_describe_location): Use new
7775 member.
7776 * dwarf2/read.c (read_call_site_scope)
7777 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7778 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7779 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7780 handle_data_member_location): Set per_objfile member.
7781 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7782 member.
7783 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7784
d3473f0c
TT
77852020-05-27 Tom Tromey <tom@tromey.com>
7786
7787 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7788 allocate_signatured_type>: Declare new methods.
7789 <m_num_psymtabs>: New member.
7790 (struct dwarf2_per_cu_data) <index>: New member.
7791 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7792 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7793 (create_cu_from_index_list): Use allocate_per_cu.
7794 (create_signatured_type_table_from_index)
7795 (create_signatured_type_table_from_debug_names)
7796 (create_debug_type_hash_table, add_type_unit)
7797 (read_comp_units_from_section): Use allocate_signatured_type.
7798
5717c425
TT
77992020-05-27 Tom Tromey <tom@tromey.com>
7800
7801 * psymtab.c (partial_map_expand_apply)
7802 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7803 (psym_lookup_global_symbol_language)
7804 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7805 (psym_print_stats, psym_expand_symtabs_for_function)
7806 (psym_map_symbol_filenames, psym_map_matching_symbols)
7807 (psym_expand_symtabs_matching)
7808 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7809 (maintenance_check_psymtabs): Update.
7810 * psympriv.h (struct partial_symtab) <readin_p,
7811 get_compunit_symtab>: Add objfile parameter.
7812 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7813 Likewise.
7814 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7815 get_compunit_symtab>: Likewise.
7816 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7817
45940949
TT
78182020-05-27 Tom Tromey <tom@tromey.com>
7819
7820 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7821 member.
7822 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7823 (create_cu_from_index_list)
7824 (create_signatured_type_table_from_index)
7825 (create_signatured_type_table_from_debug_names)
7826 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7827 (dwarf2_create_include_psymtab)
7828 (create_debug_type_hash_table, add_type_unit)
7829 (create_type_unit_group, read_comp_units_from_section)
7830 (dwarf2_compute_name, create_cus_hash_table)
7831 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7832 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7833 obstack.
7834 (dw2_get_real_path): Likewise. Change argument to
7835 dwarf2_per_objfile.
7836
f8c6d152
LM
78372020-05-27 Luis Machado <luis.machado@linaro.org>
7838
7839 PR tdep/26000
7840 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7841 for ldrd (immediate).
7842
e98d2e6d
PW
78432020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7844
7845 * command.h: Add comment giving the name of class_tui.
7846 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7847 create the fake command for the help for class_tui.
7848
53a47a3e
TT
78492020-05-26 Tom Tromey <tromey@adacore.com>
7850
7851 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7852 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7853 (val_atr): New function.
7854 (value_val_atr): Use it.
7855 * ada-valprint.c (print_optional_low_bound): Change low bound
7856 handling for enums.
7857 (val_print_packed_array_elements): Don't call discrete_position.
7858 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7859 discrete_position for enum types.
7860 * language.c (default_print_array_index): Change type.
7861 * language.h (struct language_defn) <la_print_array_index>: Add
7862 index_type parameter, change type of index_value.
7863 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7864 (default_print_array_index): Update.
7865 * valprint.c (maybe_print_array_index): Don't call
7866 value_from_longest. Update.
7867 (value_print_array_elements): Don't call discrete_position.
7868
0bc2354b
TT
78692020-05-26 Tom Tromey <tromey@adacore.com>
7870
7871 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7872 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7873
1218a4bf
CDA
78742020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7875
7876 PR gdb/13519
7877 * avr-tdep.c (avr_integer_to_address): Return data or code
7878 address accordingly to the second 'type' argument of the
7879 function.
7880
92651b1d
MW
78812020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7882
7883 * infcmd.c, inferior.h: (construct_inferior_arguments):
7884 Moved function from here to gdbsupport/common-inferior.{h,cc}
7885
0a4f5f8c
TT
78862020-05-23 Tom Tromey <tom@tromey.com>
7887
7888 Revert commit eca1f90c:
7889 * NEWS: Remove entry for completion styling.
7890 * completer.c (_rl_completion_prefix_display_length): Move
7891 declaration later.
7892 (gdb_fnprint): Revert.
7893 (gdb_display_match_list_1): Likewise.
7894 * cli/cli-style.c (completion_prefix_style)
7895 (completion_difference_style, completion_suffix_style): Remove.
7896 (_initialize_cli_style): Revert.
7897 * cli/cli-style.h (completion_prefix_style)
7898 (completion_difference_style, completion_suffix_style): Don't
7899 declare.
7900
e08bd6c5
PA
79012020-05-24 Pedro Alves <palves@redhat.com>
7902
7903 * symtab.c (completion_list_add_name): Return boolean indication
7904 of whether the symbol matched.
7905 (completion_list_add_symbol): Don't try to remove C++ aliases if
7906 the symbol didn't match in the first place.
7907 * symtab.h (completion_list_add_name): Return bool.
7908
ceacbf6e
SM
79092020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7910
7911 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7912 type::field.
7913
26f16254
JB
79142020-05-23 Joel Brobecker <brobecker@adacore.com>
7915
7916 GDB 9.2 released.
7917
eca1f90c
TT
79182020-05-23 Tom Tromey <tom@tromey.com>
7919
7920 * NEWS: Add entry for completion styling.
7921 * completer.c (_rl_completion_prefix_display_length): Move
7922 declaration earlier.
7923 (gdb_fnprint): Use completion_style.
7924 (gdb_display_match_list_1): Likewise.
7925 * cli/cli-style.c (completion_prefix_style)
7926 (completion_difference_style, completion_suffix_style): New
7927 globals.
7928 (_initialize_cli_style): Register new globals.
7929 * cli/cli-style.h (completion_prefix_style)
7930 (completion_difference_style, completion_suffix_style): Declare.
7931
51e2cfa2
PA
79322020-05-23 Pedro Alves <palves@redhat.com>
7933
7934 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7935 (parse_escape): Use ISDIGIT instead of isdigit.
7936 (puts_debug): Use gdb_isprint instead of isprint.
7937 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7938 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7939 ISSPACE instead of isspace.
7940 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7941 instead of isspace.
7942 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7943 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7944 instead of isxdigit and ISDIGIT instead of isdigit.
7945
80fc5e77
SM
79462020-05-22 Simon Marchi <simon.marchi@efficios.com>
7947
7948 * gdbtypes.h (struct type) <field>: New method.
7949 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7950 or type::field.
7951
3cabb6b0
SM
79522020-05-22 Simon Marchi <simon.marchi@efficios.com>
7953
7954 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7955 (TYPE_FIELDS): Use type::fields. Change all call sites that
7956 modify the propery to use type::set_fields instead.
7957
1f704f76
SM
79582020-05-22 Simon Marchi <simon.marchi@efficios.com>
7959
7960 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7961 type::num_fields instead.
7962
5e33d5f4
SM
79632020-05-22 Simon Marchi <simon.marchi@efficios.com>
7964
7965 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7966 methods.
7967 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7968 that modify the number of fields to use type::set_num_fields
7969 instead.
7970
9392ebb3
TT
79712020-05-22 Tom Tromey <tromey@adacore.com>
7972
7973 * compile/compile-object-load.h (munmap_list_free): Don't
7974 declare.
7975
7c13f4e8
AB
79762020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7977
7978 * annotate.c (annotate_source_line): Update return type, add call
7979 to update current symtab and line.
7980 * annotate.h (annotate_source_line): Update return type, and
7981 extend header comment.
7982 * source.c (info_line_command): Check annotation_level before
7983 calling annotate_source_line.
7984 * stack.c (print_frame_info): If calling annotate_source_line
7985 returns true, then don't print any other source line information.
7986
aa370940
SM
79872020-05-21 Simon Marchi <simon.marchi@efficios.com>
7988
7989 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7990
84d53fa9
SM
79912020-05-21 Simon Marchi <simon.marchi@efficios.com>
7992
7993 * coffread.c (patch_type): Remove NULL check before xfree.
7994 * corefile.c (set_gnutarget): Likewise.
7995 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7996 * exec.c (build_section_table): Likewise.
7997 * remote.c (remote_target::pass_signals): Likewise.
7998 * utils.c (n_spaces): Likewise.
7999 * cli/cli-script.c (document_command): Likewise.
8000 * i386-windows-tdep.c (core_process_module_section): Likewise.
8001 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8002
9d428aae
SM
80032020-05-20 Simon Marchi <simon.marchi@efficios.com>
8004
8005 * symfile.c (reread_symbols): Clear objfile's section_offsets
8006 vector and section indices, re-compute them by calling
8007 sym_offsets.
8008
250106a7
TT
80092020-05-20 Tom Tromey <tromey@adacore.com>
8010
8011 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 8012 (desc_one_bound, desc_index_type): Compute field name.
250106a7 8013
9a0bacfb
TV
80142020-05-20 Tom de Vries <tdevries@suse.de>
8015
8016 PR symtab/25833
8017 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8018
7b958a48
AM
80192020-05-20 Alan Modra <amodra@gmail.com>
8020
8021 PR 25993
8022 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8023 bfd_set_filename.
8024 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8025 passed to bfd_set_filename.
8026 * symfile-mem.c (add_vsyscall_page): Likewise for string
8027 passed to symbol_file_add_from_memory.
8028 (symbol_file_add_from_memory): Make name param a const char* and
8029 don't strdup.
8030
c7e97679
AM
80312020-05-20 Alan Modra <amodra@gmail.com>
8032
8033 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8034 rather than accessing bfd->filename directly.
8035 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8036 and use bfd_section_name.
8037 * dwarf2/frame.c (decode_frame_entry): Likewise.
8038 * exec.c (exec_set_section_address): Likewise.
8039 * solib-aix.c (solib_aix_bfd_open): Likewise.
8040 * stap-probe.c (get_stap_base_address): Likewise.
8041 * symfile.c (reread_symbols): Likewise.
8042
563c591b
TT
80432020-05-19 Tom Tromey <tromey@adacore.com>
8044
8045 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8046
f408d82c
SM
80472020-05-19 Simon Marchi <simon.marchi@efficios.com>
8048
8049 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8050
98c59b52
PA
80512020-05-19 Pedro Alves <palves@redhat.com>
8052
8053 * NEWS (set exec-file-mismatch): Adjust entry.
8054 * exec.c: Include "build-id.h".
8055 (validate_exec_file): Try to match build IDs instead of filenames.
8056 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8057 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8058 and pass down 'warn_if_slow'.
8059 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8060 gdb_bfd_open_closure to pass it down.
8061 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8062
4111f652
PA
80632020-05-19 Pedro Alves <palves@redhat.com>
8064
8065 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8066 * target.c (target_fileio_open_1): Rename to target_fileio_open
8067 and make extern. Use bool.
8068 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8069 (target_fileio_read_alloc_1): Adjust.
8070 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8071 (target_fileio_open_warn_if_slow): Delete declaration.
8072
ad80db5b
PA
80732020-05-19 Pedro Alves <palves@redhat.com>
8074
8075 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8076 Adjust all callers.
8077
1d6ce4d3
YS
80782020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8079
8080 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8081 whether disp is negative.
8082
9005fbbb
SM
80832020-05-19 Simon Marchi <simon.marchi@efficios.com>
8084
8085 * symfile.h (struct symfile_segment_data)
8086 <~symfile_segment_data>: Remove.
8087 <segment_info>: Change to std::vector.
8088 * symfile.c (default_symfile_segments): Update.
8089 * elfread.c (elf_symfile_segments): Update.
8090
68b888ff
SM
80912020-05-19 Simon Marchi <simon.marchi@efficios.com>
8092
8093 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8094 <segments>: New.
8095 <segment_bases, segment_sizes>: Remove.
8096 * symfile.c (default_symfile_segments): Update.
8097 * elfread.c (elf_symfile_segments): Update.
8098 * remote.c (remote_target::get_offsets): Update.
8099 * solib-target.c (solib_target_relocate_section_addresses):
8100 Update.
8101
62982abd
SM
81022020-05-19 Simon Marchi <simon.marchi@efficios.com>
8103
8104 * symfile.h (struct symfile_segment_data): Initialize fields.
8105 <~symfile_segment_data>: Add.
8106 (symfile_segment_data_up): New.
8107 (struct sym_fns) <sym_segments>: Return a
8108 symfile_segment_data_up.
8109 (default_symfile_segments): Return a symfile_segment_data_up.
8110 (free_symfile_segment_data): Remove.
8111 (get_symfile_segment_data): Return a symfile_segment_data_up.
8112 * symfile.c (default_symfile_segments): Likewise.
8113 (get_symfile_segment_data): Likewise.
8114 (free_symfile_segment_data): Remove.
8115 (symfile_find_segment_sections): Update.
8116 * elfread.c (elf_symfile_segments): Return a
8117 symfile_segment_data_up.
8118 * remote.c (remote_target::get_offsets): Update.
8119 * solib-target.c (solib_target_relocate_section_addresses):
8120 Update.
8121 * symfile-debug.c (debug_sym_segments): Return a
8122 symfile_segment_data_up.
8123
7f204339
RO
81242020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8125
e52a0f1b
RO
8126 PR build/25981
8127 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8128 Hardcode register numbers.
8129
7f204339
RO
8130 PR build/25981
8131 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8132 procfs_find_LDT_entry): Remove.
8133 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8134 procfs_find_LDT_entry): Remove.
8135 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8136 Remove.
8137
7f32a4d5
PA
81382020-05-17 Pedro Alves <palves@redhat.com>
8139 Andrew Burgess <andrew.burgess@embecosm.com>
8140 Keno Fischer <keno@juliacomputing.com>
8141
8142 PR gdb/25741
8143 * breakpoint.c (build_target_condition_list): Update comments.
8144 (build_target_command_list): Update comments and skip matching
8145 locations.
8146 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8147 a separate function. Simplify "set breakpoint auto-hw off"
8148 handling.
8149 (insert_breakpoints): Update comment.
8150 (tracepoint_locations_match): New parameter. For breakpoints,
8151 compare location types too, if the caller wants to.
8152 (handle_automatic_hardware_breakpoints): New functions.
8153 (bp_location_is_less_than): Also sort by location type and
8154 hardware breakpoint length.
8155 (update_global_location_list): Handle "set breakpoint auto-hw on"
8156 here.
8157 (update_breakpoint_locations): Ask breakpoint_locations_match to
8158 ignore location types.
8159
7d93a1e0
SM
81602020-05-16 Simon Marchi <simon.marchi@efficios.com>
8161
8162 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8163 type::name instead.
8164
d0e39ea2
SM
81652020-05-16 Simon Marchi <simon.marchi@efficios.com>
8166
8167 * gdbtypes.h (struct type) <name, set_name>: New methods.
8168 (TYPE_CODE): Use type::name. Change all call sites used to set
8169 the name to use type::set_name instead.
8170
2dab0c7b
TT
81712020-05-16 Tom Tromey <tom@tromey.com>
8172
8173 * top.c (quit_force): Update.
8174 * infrun.c (handle_no_resumed): Update.
8175 * top.h (all_uis): New function.
8176 (ALL_UIS): Remove.
8177
59f7bd8d
SM
81782020-05-16 Simon Marchi <simon.marchi@efficios.com>
8179
8180 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8181
9bf058f0
PA
81822020-05-16 Pedro Alves <palves@redhat.com>
8183
8184 * ia64-linux-nat.c
8185 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8186 Declare method.
8187 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8188
8f86ae1a
SM
81892020-05-15 Simon Marchi <simon.marchi@efficios.com>
8190
8191 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8192 (sparc64_adi_info): Likewise.
8193
d6bc0792
TT
81942020-05-15 Tom Tromey <tom@tromey.com>
8195
8196 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8197 block_objfile.
8198 (lookup_objfile_from_block): Remove.
8199 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8200 (lookup_global_symbol): Use block_objfile.
8201 * symtab.h (lookup_objfile_from_block): Don't declare.
8202 * printcmd.c (clear_dangling_display_expressions): Use
8203 block_objfile.
8204 * parse.c (operator_check_standard): Use block_objfile.
8205
8c14c3a3
TT
82062020-05-15 Tom Tromey <tom@tromey.com>
8207
8208 * language.c (language_alloc_type_symbol): Set
8209 SYMBOL_SECTION.
8210 * symtab.c (initialize_objfile_symbol): Remove.
8211 (allocate_symbol): Remove.
8212 (allocate_template_symbol): Remove.
8213 * dwarf2/read.c (fixup_go_packaging): Use "new".
8214 (new_symbol): Use "new".
8215 (read_variable): Don't call initialize_objfile_symbol. Use
8216 "new".
8217 (read_func_scope): Use "new".
8218 * xcoffread.c (process_xcoff_symbol): Don't call
8219 initialize_objfile_symbol.
8220 (SYMBOL_DUP): Remove.
8221 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8222 "new".
8223 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8224 (allocate_template_symbol): Don't declare.
8225 (struct symbol): Add copy constructor. Change defaults.
8226 * jit.c (finalize_symtab): Use "new".
8227 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8228 Use "new".
8229 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8230 (common_block_end): Use "new".
8231 * mdebugread.c (parse_symbol): Use "new".
8232 (new_symbol): Likewise.
8233
5b4a1a8d
PW
82342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8235
8236 * NEWS: Mention changes to help and apropos.
8237
57b4f16e
PW
82382020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8239
8240 * command.h (enum command_class): Improve comments, document
8241 that class_alias is for user-defined aliases, give the class
8242 name for each class, remove unused class_xdb.
8243 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8244 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8245 by a precise class.
8246 * infcmd.c (_initialize_infcmd): Likewise.
8247 * reverse.c (_initialize_reverse): Likewise.
8248 * stack.c (_initialize_stack): Likewise.
8249 * symfile.c (_initialize_symfile): Likewise.
8250 * tracepoint.c (_initialize_tracepoint): Likewise.
8251
7c05caf7
PW
82522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8253
8254 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8255 when their aliased command is traversed.
8256 (help_cmd): Add fput_command_names_styled call to
8257 output command name and aliases when command has an alias.
8258
3b3aaacb
PW
82592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8260
8261 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8262 * cli/cli-decode.c (help_cmd_list): Declare as static,
8263 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8264 a command together with the command.
8265 (fput_command_name_styled, fput_command_names_styled): New functions.
8266 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8267 fput_command_name_styled.
8268 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8269 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8270
7aa1b46f
PW
82712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8272
8273 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8274 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8275 * command.h (cmd_show_list): Likewise.
8276 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8277 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8278
89bcba74
PW
82792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8280
8281 * unittests/command-def-selftests.c (traverse_command_structure):
8282 Verify all commands of a list have the same prefix command and
8283 that only the top cmdlist commands have a null prefix.
8284
3f4d92eb
PW
82852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8286
8287 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8288 as prefix, not one of its aliases.
8289 (set_cmd_prefix): Remove.
8290 (do_add_cmd): Centralize the setting of the prefix of a command, when
8291 command is defined after its full chain of prefix commands.
8292 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8293 (add_setshow_cmd_full): Likewise.
8294 (update_prefix_field_of_prefixed_commands): New function.
8295 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8296 update_prefix_field_of_prefixed_commands.
8297 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8298 addresses of remote_set_cmdlist and remote_show_cmdlist given
8299 as argument, not the address of an argument.
8300 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8301 * gdb/remote.c (_initialize_remote): Likewise.
8302
0605465f
PW
83032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8304
8305 * cli/cli-cmds.c (alias_command): Check for an existing alias
8306 using lookup_cmd_composition, as valid_command_p is too strict
8307 and forbids aliases that are the prefix of an existing alias
8308 or command.
8309 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8310 command is properly recognised as a valid command.
8311
58e6ac70
PW
83122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8313
8314 * unittests/help-doc-selftests.c: Rename to
8315 unittests/command-def-selftests.c
8316 * unittests/command-def-selftests.c (help_doc_tests): Update some
8317 comments.
8318 (command_structure_tests, traverse_command_structure): New namespace
8319 and function.
8320 (command_structure_invariants_tests): New function.
8321 (_initialize_command_def_selftests) Renamed from
8322 _initialize_help_doc_selftests, register command_structure_invariants
8323 selftest.
8324
a7b9ceb8
PW
83252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8326
8327 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8328 an alias of 'show'.
8329
b2188a06
JB
83302020-05-15 Joel Brobecker <brobecker@adacore.com>
8331
8332 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8333 ada_is_fixed_point_type. Update all callers.
8334 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8335 all callers.
8336 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8337 Update all callers.
8338 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8339 print_fixed_point_type. Update all callers.
8340 * ada-valprint.c (ada_value_print_num): Replace call to
8341 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8342
a51951c2
KB
83432020-05-14 Kevin Buettner <kevinb@redhat.com>
8344
8345 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8346 processors.
8347 (cpu_supports_bts): Add CV_AMD case.
8348
29d6859f
LM
83492020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8350 Simon Marchi <simon.marchi@efficios.com>
8351
8352 * infrun.c (stop_all_threads): Collect multiple wait events at
8353 each pass.
8354
78134374
SM
83552020-05-14 Simon Marchi <simon.marchi@efficios.com>
8356
8357 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8358 type::code instead.
8359
67607e24
SM
83602020-05-14 Simon Marchi <simon.marchi@efficios.com>
8361
8362 * gdbtypes.h (struct type) <code, set_code>: New methods.
8363 (TYPE_CODE): Use type::code. Change all call sites used to set
8364 the code to use type::set_code instead.
8365
a05575d3
TBA
83662020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8367 Tom de Vries <tdevries@suse.de>
8368 Pedro Alves <palves@redhat.com>
8369
8370 PR threads/25478
8371 * infrun.c (stop_all_threads): Do NOT ignore
8372 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8373 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8374 received.
8375 (handle_no_resumed): Remove code handling a live inferior with no
8376 threads.
8377 * remote.c (has_single_non_exited_thread): New.
8378 (remote_target::update_thread_list): Do not delete a thread if is
8379 the last thread of the process.
8380 * thread.c (thread_select): Call delete_exited_threads instead of
8381 prune_threads.
8382
6ad82919
TBA
83832020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8384
8385 * infrun.c (stop_all_threads): Enable/disable thread events of all
8386 targets. Move a debug message denoting the end of the function
8387 into the SCOPED_EXIT block.
8388
d890404b
TBA
83892020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8390
8391 * process-stratum-target.h: Include <set>.
8392 (all_non_exited_process_targets, switch_to_target_no_thread): New
8393 function declarations.
8394 * process-stratum-target.c (all_non_exited_process_targets)
8395 (switch_to_target_no_thread): New function implementations.
8396
293b3ebc
TBA
83972020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8398
8399 * infrun.c (handle_inferior_event): Extract out a piece of code
8400 into...
8401 (mark_non_executing_threads): ...this new function.
8402
7ca9b62a
TBA
84032020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8404
8405 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8406 use.
8407
fc75c28b
TBA
84082020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8409
8410 * regcache.c (regcache_read_pc_protected): New function
8411 implementation that returns 0 if the PC cannot read via
8412 'regcache_read_pc'.
8413 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8414 instead of 'regcache_read_pc'.
8415 (keep_going_pass_signal): Ditto.
8416
a89febbd
TT
84172020-05-13 Tom Tromey <tromey@adacore.com>
8418
8419 * ada-lang.c (align_value): Remove.
8420 (ada_template_to_fixed_record_type_1): Use align_up.
8421
f7e23710
TBA
84222020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8423
8424 * async-event.c: Update the copyright year.
8425 * async-event.h: Update the copyright year.
8426
02ff80c2
SM
84272020-05-12 Simon Marchi <simon.marchi@efficios.com>
8428
8429 * objfiles.h (is_addr_in_objfile,
8430 shared_objfile_contains_address_p): Return bool.
8431 * objfile.c (is_addr_in_objfile,
8432 shared_objfile_contains_address_p): Return bool.
8433
4fd6c7e8
TT
84342020-05-11 Tom Tromey <tromey@adacore.com>
8435
8436 * cli/cli-cmds.c (info_command): Restore.
8437 (_initialize_cli_cmds): Use add_prefix_command for "info".
8438 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8439
5eb68a39
TT
84402020-05-11 Tom Tromey <tromey@adacore.com>
8441
8442 * ada-lang.c (ada_value_primitive_field): Now public.
8443 * ada-lang.h (ada_value_primitive_field): Declare.
8444 * ada-valprint.c (print_field_values): Use
8445 ada_value_primitive_field for wrapper fields.
8446
7666722f
TV
84472020-05-11 Tom de Vries <tdevries@suse.de>
8448
8449 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8450 MODULE_DOMAIN.
8451
3ee6bb11
TV
84522020-05-11 Tom de Vries <tdevries@suse.de>
8453
8454 PR symtab/25941
8455 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8456 with length 0, if not gdb-produced.
8457 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8458
43434996
TV
84592020-05-09 Tom de Vries <tdevries@suse.de>
8460
8461 PR gdb/25955
8462 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8463 calculation.
8464
2f78cffc
TT
84652020-05-09 Tom Tromey <tom@tromey.com>
8466
8467 * top.c (server_command): Now bool.
8468 * top.h (server_command): Now bool.
8469
4f7bc5ed
TT
84702020-05-08 Tom Tromey <tromey@adacore.com>
8471
8472 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8473 already being processed.
8474
8be4b118
TT
84752020-05-08 Tom Tromey <tom@tromey.com>
8476
8477 * printcmd.c (struct display) <next>: Remove.
8478 <display>: New constructor.
8479 <exp_string>: Now a std::string.
8480 <enabled_p>: Now a bool.
8481 (display_number): Move definition earlier.
8482 (displays): Rename from display_chain. Now a std::vector.
8483 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8484 (display_command): Update.
8485 (do_one_display, disable_display)
8486 (enable_disable_display_command, do_enable_disable_display):
8487 Update.
8488 (free_display): Remove.
8489 (clear_displays): Rewrite.
8490 (delete_display): Update.
8491 (map_display_numbers): Use function_view. Remove "data"
8492 parameter. Update.
8493 (do_delete_display): Remove.
8494 (undisplay_command): Update.
8495 (do_one_display, do_displays, disable_display)
8496 (info_display_command): Update.
8497 (do_enable_disable_display): Remove.
8498 (enable_disable_display_command)
8499 (clear_dangling_display_expressions): Update.
8500
94c93c35
TT
85012020-05-08 Tom Tromey <tom@tromey.com>
8502
8503 * symtab.c (set_symbol_cache_size)
8504 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8505 (maintenance_print_symbol_cache_statistics): Update.
8506 * symmisc.c (print_symbol_bcache_statistics)
8507 (print_objfile_statistics, maintenance_print_objfiles)
8508 (maintenance_info_symtabs, maintenance_check_symtabs)
8509 (maintenance_expand_symtabs, maintenance_info_line_tables):
8510 Update.
8511 * symfile-debug.c (set_debug_symfile): Update.
8512 * source.c (forget_cached_source_info): Update.
8513 * python/python.c (gdbpy_progspaces): Update.
8514 * psymtab.c (maintenance_info_psymtabs): Update.
8515 * probe.c (parse_probes): Update.
8516 * linespec.c (iterate_over_all_matching_symtabs)
8517 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8518 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8519 * exec.c (exec_target::close): Update.
8520 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8521 * breakpoint.c (print_one_breakpoint_location)
8522 (create_longjmp_master_breakpoint)
8523 (create_std_terminate_master_breakpoint): Update.
8524 * progspace.c (program_spaces): Now a std::vector.
8525 (maybe_new_address_space): Update.
8526 (add_program_space): Remove.
8527 (program_space::program_space): Update.
8528 (remove_program_space): Update.
8529 (number_of_program_spaces): Remove.
8530 (print_program_space, update_address_spaces): Update.
8531 * progspace.h (program_spaces): Change type.
8532 (ALL_PSPACES): Remove.
8533 (number_of_program_spaces): Don't declare.
8534 (struct program_space) <next>: Remove.
8535
a1fd1ac9
TT
85362020-05-08 Tom Tromey <tom@tromey.com>
8537
8538 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8539 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8540 (enable_break): Update.
8541 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8542 (frv_fdpic_find_canonical_descriptor): Update.
8543 (frv_fetch_objfile_link_map): Update.
8544 * progspace.c (program_space::free_all_objfiles): Update.
8545 (program_space::solibs): New method.
8546 * progspace.h (struct program_space) <solibs>: New method.
8547 * solist.h (master_so_list): Don't declare.
8548 (ALL_SO_LIBS): Remove.
8549 * solib.h (so_list_head): Remove.
8550 (update_solib_list): Update comment.
8551 * solib.c (master_so_list): Remove.
8552 (solib_used, update_solib_list, solib_add)
8553 (info_sharedlibrary_command, clear_solib)
8554 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8555
38eae084
TT
85562020-05-08 Tom Tromey <tom@tromey.com>
8557
8558 * extension.c (extension_languages): Now a std::array.
8559 (ALL_EXTENSION_LANGUAGES): Remove.
8560 (get_ext_lang_defn, get_ext_lang_of_file)
8561 (eval_ext_lang_from_control_command): Update.
8562 (finish_ext_lang_initialization)
8563 (auto_load_ext_lang_scripts_for_objfile)
8564 (ext_lang_type_printers::ext_lang_type_printers)
8565 (apply_ext_lang_type_printers)
8566 (ext_lang_type_printers::~ext_lang_type_printers)
8567 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8568 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8569 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8570 (get_matching_xmethod_workers, ext_lang_colorize)
8571 (ext_lang_before_prompt): Update.
8572 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8573
596dc4ad
TT
85742020-05-08 Tom Tromey <tom@tromey.com>
8575
8576 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8577 overload.
8578 <swap_string, m_string>: Remove.
8579 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8580 Update.
8581 * stabsread.c (define_symbol, read_type): Update.
8582 * linespec.c (find_linespec_symbols): Update.
8583 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8584 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8585 * dbxread.c (read_dbx_symtab): Update.
8586 * cp-support.h (cp_canonicalize_string_full)
8587 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8588 Return unique_xmalloc_ptr.
8589 * cp-support.c (inspect_type): Update.
8590 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8591 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8592 Likewise.
8593 * c-typeprint.c (print_name_maybe_canonical): Update.
8594 * break-catch-throw.c (check_status_exception_catchpoint):
8595 Update.
8596
bf4cb9be
TV
85972020-05-08 Tom de Vries <tdevries@suse.de>
8598
8599 * infrun.c (follow_fork): Copy current_line and current_symtab to
8600 child thread.
8601
a1b68f28
SM
86022020-05-07 Simon Marchi <simon.marchi@efficios.com>
8603
8604 * async-event.c (struct async_signal_handler, struct
8605 async_event_handler): Reformat, remove typedef.
8606
98d48915
SM
86072020-05-07 Simon Marchi <simon.marchi@efficios.com>
8608
8609 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8610 access thistype->main_type->dyn_prop_list directly.
8611
7aa91313
SM
86122020-05-07 Simon Marchi <simon.marchi@efficios.com>
8613
8614 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8615 (remove_dyn_prop): Remove. Update all users to use
8616 type::remove_dyn_prop.
8617 * gdbtypes.c (remove_dyn_prop): Rename to...
8618 (type::remove_dyn_prop): ... this.
8619
5c54719c
SM
86202020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8621
8622 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8623 (add_dyn_prop): Remove. Update all users to use
8624 type::add_dyn_prop.
8625 * gdbtypes.c (add_dyn_prop): Rename to...
8626 (type::add_dyn_prop): ... this.
8627
24e99c6c
SM
86282020-05-07 Simon Marchi <simon.marchi@efficios.com>
8629
8630 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8631 (get_dyn_prop): Remove. Update all users to use
8632 type::dyn_prop.
8633 * gdbtypes.c (get_dyn_prop): Rename to...
8634 (type::dyn_prop): ... this.
8635
0d4bf016
SM
86362020-05-06 Simon Marchi <simon.marchi@efficios.com>
8637
8638 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8639
ac4a4f1c
SM
86402020-05-06 Simon Marchi <simon.marchi@efficios.com>
8641
8642 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8643 instruction, skip it if it's there.
8644
a3bbacc1
SM
86452020-05-05 Simon Marchi <simon.marchi@efficios.com>
8646
8647 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8648
c3236f84
SM
86492020-05-04 Simon Marchi <simon.marchi@efficios.com>
8650
8651 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8652 * gdbtypes.c (recursive_dump_type): Remove use of
8653 TYPE_INCOMPLETE.
8654
3b6acaee
TT
86552020-05-03 Tom Tromey <tom@tromey.com>
8656
8657 * breakpoint.c (catch_command, tcatch_command): Remove.
8658 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8659 add_show_prefix_cmd.
8660 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8661 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8662 Remove.
8663 (add_internal_problem_command): Use add_basic_prefix_cmd,
8664 add_show_prefix_cmd.
8665 * mips-tdep.c (set_mipsfpu_command): Remove.
8666 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8667 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8668 (_initialize_index_cache): Use add_basic_prefix_cmd.
8669 * memattr.c (dummy_cmd): Remove.
8670 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8671 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8672 (_initialize_tui_win): Use add_basic_prefix_cmd,
8673 add_show_prefix_cmd.
8674 * cli/cli-logging.c (set_logging_command): Remove.
8675 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8676 add_show_prefix_cmd.
8677 (show_logging_command): Remove.
8678 * target.c (target_command): Remove.
8679 (add_target): Use add_basic_prefix_cmd.
8680
a51119cd
HD
86812020-05-02 Hannes Domani <ssbssa@yahoo.de>
8682
8683 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8684
652fc23a 86852020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8686
652fc23a
PW
8687 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8688 info_command.
8689
117539e6
KR
86902020-04-30 Kamil Rytarowski <n54@gmx.com>
8691
8692 * nbsd-nat.c (nbsd_enable_proc_events)
8693 (nbsd_nat_target::post_startup_inferior): Add.
8694 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8695 (nbsd_nat_target::update_thread_list): Rewrite.
8696 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8697 "PTRACE_LWP_CREATE".
8698 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8699
102e38eb 87002020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8701
102e38eb
PW
8702 * stack.c (_initialize_stack): Remove duplicated creation
8703 of "frame" command and "f" alias.
8704
ee9d1e5f
HD
87052020-04-30 Hannes Domani <ssbssa@yahoo.de>
8706
8707 PR gdb/18706
8708 * gdbtypes.c (check_typedef): Calculate size of array of
8709 stubbed type.
8710
627c7fb8
HD
87112020-04-30 Hannes Domani <ssbssa@yahoo.de>
8712
8713 PR gdb/15559
8714 * i386-tdep.c (i386_push_dummy_call): Call
8715 i386_thiscall_push_dummy_call.
8716 (i386_thiscall_push_dummy_call): New function.
8717 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8718 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8719 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8720
ffc2844e
SM
87212020-04-29 Simon Marchi <simon.marchi@efficios.com>
8722
8723 * gdbarch.sh (do_read): Add shellcheck disable directive for
8724 warning SC2162.
8725
1207375d
SM
87262020-04-29 Simon Marchi <simon.marchi@efficios.com>
8727
8728 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8729 "referenced but not assigned" warning.
8730
9fdb2916
SM
87312020-04-29 Simon Marchi <simon.marchi@efficios.com>
8732
8733 * gdbarch.sh: Remove code that sets fallbackdefault.
8734
759cea5e
SM
87352020-04-29 Simon Marchi <simon.marchi@efficios.com>
8736
8737 * gdbarch.sh: Use shell operators && and || instead of
8738 -a and -o.
8739
cb02ab24
SM
87402020-04-29 Simon Marchi <simon.marchi@efficios.com>
8741
8742 * gdbarch.sh: Use $(...) instead of `...`.
8743
a6fc5ffc
SM
87442020-04-29 Simon Marchi <simon.marchi@efficios.com>
8745
8746 * gdbarch.sh: Use double quotes around variables.
8747
8d113d13
SM
87482020-04-29 Simon Marchi <simon.marchi@efficios.com>
8749
8750 * gdbarch.sh: Use %s with printf, instead of variables in the
8751 format string.
8752
ed6acedd
TT
87532020-04-29 Tom Tromey <tromey@adacore.com>
8754
8755 PR ada/25875:
8756 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8757 type fields here.
8758 (read_enumeration_type): Call
8759 update_enumeration_type_from_children later. Update comments.
8760 (process_enumeration_scope): Don't create type fields.
8761
b68b1b58
KR
87622020-04-29 Kamil Rytarowski <n54@gmx.com>
8763
8764 * nbsd-tdep.c: Include "xml-syscall.h".
8765 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8766
f94b2e03
KR
87672020-04-29 Kamil Rytarowski <n54@gmx.com>
8768
8769 * nbsd-nat.c: Include "sys/wait.h".
8770 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8771 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8772 (nbsd_nat_target::remove_exec_catchpoint)
8773 (nbsd_nat_target::set_syscall_catchpoint): Add.
8774 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8775 (nbsd_nat_target::insert_exec_catchpoint)
8776 (nbsd_nat_target::remove_exec_catchpoint)
8777 (nbsd_nat_target::set_syscall_catchpoint): Add.
8778 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8779 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8780 `nbsd_get_syscall_number'.
8781
fc49bc72
TT
87822020-04-29 Tom Tromey <tom@tromey.com>
8783
8784 * stack.c (print_block_frame_labels): Remove.
8785
d642b692
HD
87862020-04-29 Hannes Domani <ssbssa@yahoo.de>
8787
8788 PR gdb/17320
8789 * ada-valprint.c (val_print_packed_array_elements): Move array
8790 end bracket to new line.
8791 (ada_val_print_string): Remove extra spaces before first array
8792 element.
8793 * c-valprint.c (c_value_print_array): Likewise.
8794 * m2-valprint.c (m2_print_array_contents): Likewise.
8795 (m2_value_print_inner): Likewise.
8796 * p-valprint.c (pascal_value_print_inner): Likewise.
8797 * valprint.c (generic_val_print_array): Likewise.
8798 (value_print_array_elements): Move first array element and array
8799 end bracket to new line.
8800
ea90f227
TV
88012020-04-29 Tom de Vries <tdevries@suse.de>
8802
8803 PR symtab/25889
8804 * linespec.c (find_method): Fix ix calculation.
8805
4498ef4f
KR
88062020-04-28 Kamil Rytarowski <n54@gmx.com>
8807
8808 * syscalls/update-netbsd.sh: New file.
8809 * syscalls/netbsd.xml: Regenerate.
8810 * data-directory/Makefile.in: Register `netbsd.xml' in
8811 `SYSCALLS_FILES'.
8812
a55e30b5
SM
88132020-04-28 Simon Marchi <simon.marchi@efficios.com>
8814
8815 * syscalls/update-freebsd.sh: Add double quotes.
8816
2b2fbab8
TT
88172020-04-28 Tom Tromey <tom@tromey.com>
8818
8819 * NEWS: Update.
8820 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8821 (cmdpy_init): Allow class_tui.
8822
a65189c9
TV
88232020-04-28 Mark Williams <mark@myosotissp.com>
8824
8825 PR gdb/24480
8826 * dwarf2read.c: Add missing assingments to list_in_scope when
8827 start_symtab was already called.
8828
1b95cdb7
SM
88292020-04-28 Simon Marchi <simon.marchi@efficios.com>
8830
8831 PR gdb/25881
8832 * dwarf2/read.c (offset_map_type): Use
8833 gdb:hash_enum<sect_offset> as hash function.
8834
15cd93d0
TV
88352020-04-28 Tom de Vries <tdevries@suse.de>
8836
8837 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8838 with DW_AT_signature.
8839
1eb39914
SM
88402020-04-27 Simon Marchi <simon.marchi@efficios.com>
8841
8842 * configure.ac: Remove check for fs_base/gs_base in
8843 user_regs_struct.
8844 * configure: Re-generate.
8845 * config.in: Re-generate.
8846 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8847 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8848 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8849
991a3e2e
LM
88502020-04-27 Luis Machado <luis.machado@linaro.org>
8851
8852 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8853 problematic inline frame unwinding situation.
8854 * frame.c (frame_id_computed_p): New function.
8855 * frame.h (frame_id_computed_p): New prototype.
8856
361ba0e8
TT
88572020-04-26 Tom Tromey <tom@tromey.com>
8858
8859 * command.h (enum command_class) <class_pseudo>: Remove.
8860
bc3609fd
PW
88612020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8862
8863 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8864 and whitespace.
8865
b9771db7
KR
88662020-04-25 Kamil Rytarowski <n54@gmx.com>
8867
ec16513e
SM
8868 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8869 `PT_GET_PROCESS_STATE' block.
b9771db7 8870
7151c1af
TT
88712020-04-24 Tom Tromey <tom@tromey.com>
8872
8873 * symtab.h (symbol_get_demangled_name): Don't declare.
8874 * symtab.c (symbol_get_demangled_name): Remove.
8875 (general_symbol_info::natural_name)
8876 (general_symbol_info::demangled_name): Update.
8877
906bb4c5
TT
88782020-04-24 Tom Tromey <tom@tromey.com>
8879
8880 PR rust/25025:
8881 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8882
bcfe6157
TT
88832020-04-24 Tom Tromey <tom@tromey.com>
8884
8885 PR symtab/12707:
8886 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8887 exists.
8888 (new_symbol): Likewise.
8889 * compile/compile-object-load.c (get_out_value_type): Use
8890 symbol_matches_search_name.
8891
f049a313
TT
88922020-04-24 Tom Tromey <tom@tromey.com>
8893
8894 * dwarf2/read.c (add_partial_symbol): Do not call
8895 compute_and_set_names.
8896
76e288d1
TT
88972020-04-24 Tom Tromey <tom@tromey.com>
8898
8899 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8900 overload.
8901
2467f4f6
TT
89022020-04-24 Tom Tromey <tom@tromey.com>
8903
8904 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8905 (add_psymbol_to_list): New overload. Make old overload call new
8906 one.
8907 * psympriv.h (add_psymbol_to_list): New overload.
8908
e61108c9
TT
89092020-04-24 Tom Tromey <tom@tromey.com>
8910
8911 * dwarf2/read.c (partial_die_info::read) <case
8912 DW_AT_linkage_name>: Use value_as_string.
8913 (dwarf2_string_attr): Use value_as_string.
8914 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8915 method.
8916 * dwarf2/attribute.c (attribute::value_as_string): New method.
8917
8c87a452
TT
89182020-04-24 Tom Tromey <tom@tromey.com>
8919
8920 * symtab.c (general_symbol_info::natural_name)
8921 (general_symbol_info::demangled_name): Check for language_rust.
8922
787de330
TT
89232020-04-24 Tom Tromey <tom@tromey.com>
8924
8925 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8926 (dwarf2_physname): ... from here.
8927 (partial_die_info::read): Add Rust "{" hack.
8928
ff985671
TT
89292020-04-24 Tom Tromey <tom@tromey.com>
8930
8931 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8932 method.
8933 (symbol_set_demangled_name): Don't declare.
8934 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8935 symbol_set_demangled_name.
8936 (general_symbol_info::set_language)
8937 (general_symbol_info::compute_and_set_names): Update.
8938 * minsyms.c (minimal_symbol_reader::install): Update.
8939 * dwarf2/read.c (new_symbol): Update.
8940
1acda803
TT
89412020-04-24 Tom Tromey <tromey@adacore.com>
8942
8943 PR python/23662:
8944 * python/py-type.c (convert_field): Handle
8945 FIELD_LOC_KIND_DWARF_BLOCK.
8946 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8947 (typy_get_dynamic): Nw function.
8948 (type_object_getset): Add "dynamic".
8949 * NEWS: Add entry.
8950
d656f129
TT
89512020-04-24 Tom Tromey <tromey@adacore.com>
8952
8953 * ada-typeprint.c (print_choices, print_variant_part)
8954 (print_record_field_types_dynamic): New functions.
8955 (print_record_field_types): Use print_record_field_types_dynamic.
8956
7d79de9a
TT
89572020-04-24 Tom Tromey <tromey@adacore.com>
8958
8959 * dwarf2/read.c (handle_data_member_location): New overload.
8960 (dwarf2_add_field): Use it.
8961 (decode_locdesc): Add "computed" parameter. Update comment.
8962 * gdbtypes.c (is_dynamic_type_internal): Also look for
8963 FIELD_LOC_KIND_DWARF_BLOCK.
8964 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8965 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8966 virtual base classes.
8967 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8968 FIELD_LOC_KIND_DWARF_BLOCK.
8969
f8e89861
TT
89702020-04-24 Tom Tromey <tromey@adacore.com>
8971
8972 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8973 * gdbtypes.c (is_dynamic_type_internal): Check
8974 TYPE_HAS_DYNAMIC_LENGTH.
8975 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8976 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8977 New macros.
8978 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8979 constant.
8980
9c6a1327
TT
89812020-04-24 Tom Tromey <tromey@adacore.com>
8982
8983 * dwarf2/read.c (struct variant_field): Rewrite.
8984 (struct variant_part_builder): New.
8985 (struct nextfield): Remove "variant" field. Add "offset".
8986 (struct field_info): Add "current_variant_part" and
8987 "variant_parts".
8988 (alloc_discriminant_info): Remove.
8989 (alloc_rust_variant): New function.
8990 (quirk_rust_enum): Update.
8991 (dwarf2_add_field): Set "offset" member. Don't handle
8992 DW_TAG_variant_part.
8993 (offset_map_type): New typedef.
8994 (convert_variant_range, create_one_variant)
8995 (create_one_variant_part, create_variant_parts)
8996 (add_variant_property): New functions.
8997 (dwarf2_attach_fields_to_type): Call add_variant_property.
8998 (read_structure_type): Don't handle DW_TAG_variant_part.
8999 (handle_variant_part, handle_variant): New functions.
9000 (handle_struct_member_die): Use them.
9001 (process_structure_scope): Don't handle variant parts.
9002 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9003 (struct discriminant_info): Remove.
9004 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9005 (struct main_type) <flag_discriminated_union>: Remove.
9006 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9007 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9008 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9009 Update.
9010 * valops.c (value_union_variant): Remove.
9011 * value.h (value_union_variant): Don't declare.
9012
b249d2c2
TT
90132020-04-24 Tom Tromey <tromey@adacore.com>
9014
9015 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9016 (ada_value_primitive_packed_val): Update.
9017 * ada-valprint.c (ada_value_print_1): Update.
9018 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9019 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9020 just an address. Use evaluate_for_locexpr_baton.
9021 (dwarf2_evaluate_property): Update.
9022 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9023 array_view.
9024 * findvar.c (default_read_var_value): Update.
9025 * gdbtypes.c (compute_variant_fields_inner)
9026 (resolve_dynamic_type_internal): Update.
9027 (resolve_dynamic_type): Change type of valaddr parameter.
9028 * gdbtypes.h (resolve_dynamic_type): Update.
9029 * valarith.c (value_subscripted_rvalue): Update.
9030 * value.c (value_from_contents_and_address): Update.
9031
61122aa9
TT
90322020-04-24 Tom Tromey <tromey@adacore.com>
9033
9034 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9035 "push_initial_value" parameter.
9036 (dwarf2_evaluate_property): Likewise.
9037 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9038
ef83a141
TT
90392020-04-24 Tom Tromey <tromey@adacore.com>
9040
9041 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9042 (variant::matches, compute_variant_fields_recurse)
9043 (compute_variant_fields_inner, compute_variant_fields): New
9044 functions.
9045 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9046 Use resolved_type after type is made.
9047 (operator==): Add new cases.
9048 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9049 (struct discriminant_range, struct variant, struct variant_part):
9050 New.
9051 (union dynamic_prop_data) <variant_parts, original_type>: New
9052 members.
9053 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9054 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9055 constants.
9056 * value.c (unpack_bits_as_long): Now public.
9057 * value.h (unpack_bits_as_long): Declare.
9058
675127ec
TT
90592020-04-24 Tom Tromey <tromey@adacore.com>
9060
9061 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9062 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9063
9852ceef
HD
90642020-04-24 Hannes Domani <ssbssa@yahoo.de>
9065
9066 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9067
7632c6ce
KR
90682020-04-24 Kamil Rytarowski <n54@gmx.com>
9069
9070 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9071 (remove_fork_catchpoint, post_startup_inferior)
9072 (post_attach): Move...
9073 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9074 (remove_fork_catchpoint, post_startup_inferior)
9075 (post_attach): ...here.
9076 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9077 (remove_fork_catchpoint, post_startup_inferior)
9078 (post_attach): Move...
9079 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9080 (remove_fork_catchpoint, post_startup_inferior)
9081 (post_attach): ...here.
9082
7be2bb4f
TT
90832020-04-24 Tom Tromey <tromey@adacore.com>
9084
9085 * nat/windows-nat.h (struct windows_thread_info)
9086 <pc_adjusted>: New member.
9087 * windows-nat.c (windows_fetch_one_register): Check
9088 pc_adjusted.
9089 (windows_nat_target::get_windows_debug_event)
9090 (windows_nat_target::wait): Set pc_adjusted.
9091
f80cb3b4
TV
90922020-04-24 Tom de Vries <tdevries@suse.de>
9093
9094 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9095 Run gdb-add-index inside temp dir.
9096
29514b87
TT
90972020-04-23 Tom Tromey <tromey@adacore.com>
9098
9099 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9100 in loop.
9101
5939967b
LM
91022020-04-23 Luis Machado <luis.machado@linaro.org>
9103
9104 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9105 get_frame_register instead of gdbarch_unwind_pc.
9106
70bc38f5
TV
91072020-04-23 Tom de Vries <tdevries@suse.de>
9108
9109 * symtab.c (lookup_global_symbol): Prefer def over decl.
9110
de82891c
TV
91112020-04-23 Tom de Vries <tdevries@suse.de>
9112
9113 PR symtab/25807
9114 * block.c (best_symbol, better_symbol): Promote to external.
9115 * block.h (best_symbol, better_symbol): Declare.
9116 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9117 decl.
9118
ecc6c606
TT
91192020-04-23 Tom Tromey <tromey@adacore.com>
9120
9121 PR ada/25837:
9122 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9123 "const char *", not a "const std::string &".
9124 <name_and_matcher::operator==>: Update.
9125 * unittests/lookup_name_info-selftests.c: Change type of
9126 "result".
9127
740480b8
TT
91282020-04-23 Tom Tromey <tom@tromey.com>
9129
9130 * inferior.h (iterate_over_inferiors): Don't declare.
9131 * inferior.c (iterate_over_inferiors): Remove.
9132 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9133 Remove.
9134 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9135 use iterate_over_inferiors.
9136 (darwin_resume_inferior_it)
9137 (struct resume_inferior_threads_param)
9138 (darwin_resume_inferior_threads_it): Remove.
9139 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9140
ae3ab1f0
TV
91412020-04-23 Tom de Vries <tdevries@suse.de>
9142
9143 * blockframe.c (find_pc_partial_function): Use
9144 find_pc_sect_compunit_symtab rather than
9145 objfile->sf->qf->find_pc_sect_compunit_symtab.
9146
317d2668
TV
91472020-04-22 Tom de Vries <tdevries@suse.de>
9148
9149 PR symtab/25764
9150 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9151 in psymtabs.
9152
eea9e357
TV
91532020-04-22 Tom de Vries <tdevries@suse.de>
9154
9155 PR symtab/25801
9156 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9157 symtabs.
9158
3d5afab3
TV
91592020-04-22 Tom de Vries <tdevries@suse.de>
9160
9161 PR symtab/25700
9162 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9163 CU if already created.
9164
d43b7a2d
TBA
91652020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9166
9167 * infrun.c (displaced_step_fixup): Switch to the event_thread
9168 before calling displaced_step_restore, not after.
9169
d89edf9b
MM
91702020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9171
9172 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9173 its inferior is not recorded by us.
9174 (record_btrace_target_open): Replace call to
9175 all_non_exited_threads () with call to current_inferior
9176 ()->non_exited_threads ().
9177 (record_btrace_target::stop_recording): Likewise.
9178 (record_btrace_target::close): Likewise.
9179 (record_btrace_target::wait): Likewise.
9180 (record_btrace_target::record_stop_replaying): Likewise.
9181
5897fd49
MM
91822020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9183
9184 * btrace.c (btrace_enable): Throw an error on double enables and
9185 when enabling recording fails.
9186 (btrace_disable): Throw an error if the thread is not recorded.
9187
1a476b6d
MM
91882020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9189
9190 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9191 request if we do not have a thread_info.
9192
4778a5f8
TV
91932020-04-21 Tom de Vries <tdevries@suse.de>
9194
9195 PR gdb/25471
9196 * thread.c
9197 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9198 exception in get_frame_id.
9199
0fa7617d
TT
92002020-04-20 Tom Tromey <tromey@adacore.com>
9201
9202 * python/python.c (struct gdbpy_event): Mark move constructor as
9203 noexcept.
9204 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9205 constructor as noexcept.
9206 * completer.h (struct completion_result): Mark move constructor as
9207 noexcept.
9208 * completer.c (completion_result::completion_result): Use
9209 initialization style. Don't call reset_match_list.
9210
ad23bda0
MS
92112020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9212
9213 * MAINTAINERS (Write After Approval): Add myself.
9214
45e1f031
TT
92152020-04-18 Tom Tromey <tom@tromey.com>
9216
9217 * windows-tdep.c (init_w32_command_list)
9218 (w32_prefix_command_valid): Restore.
9219 (_initialize_windows_tdep): Call init_w32_command_list.
9220
08feed99
TT
92212020-04-18 Tom Tromey <tom@tromey.com>
9222
9223 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9224 * value.c (value_fn_field): Update.
9225 * valops.c (find_function_in_inferior)
9226 (value_allocate_space_in_inferior): Update.
9227 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9228 Update.
9229 * tui/tui-source.c (tui_source_window::set_contents): Update.
9230 * symtab.c (lookup_global_or_static_symbol)
9231 (find_function_start_sal_1, skip_prologue_sal)
9232 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9233 * symmisc.c (dump_msymbols, dump_symtab_1)
9234 (maintenance_print_one_line_table): Update.
9235 * symfile.c (init_entry_point_info, section_is_mapped)
9236 (list_overlays_command, simple_read_overlay_table)
9237 (simple_overlay_update_1): Update.
9238 * stap-probe.c (handle_stap_probe): Update.
9239 * stabsread.c (dbx_init_float_type, define_symbol)
9240 (read_one_struct_field, read_enum_type, read_range_type): Update.
9241 * source.c (info_line_command): Update.
9242 * python/python.c (gdbpy_source_objfile_script)
9243 (gdbpy_execute_objfile_script): Update.
9244 * python/py-type.c (save_objfile_types): Update.
9245 * python/py-objfile.c (py_free_objfile): Update.
9246 * python/py-inferior.c (python_new_objfile): Update.
9247 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9248 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9249 (maintenance_check_psymtabs): Update.
9250 * printcmd.c (info_address_command): Update.
9251 * objfiles.h (struct objfile) <arch>: New method, from
9252 get_objfile_arch.
9253 (get_objfile_arch): Don't declare.
9254 * objfiles.c (get_objfile_arch): Remove.
9255 (filter_overlapping_sections): Update.
9256 * minsyms.c (msymbol_is_function): Update.
9257 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9258 (output_nondebug_symbol): Update.
9259 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9260 (mdebug_expand_psymtab): Update.
9261 * machoread.c (macho_add_oso_symfile): Update.
9262 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9263 Update.
9264 * linux-fork.c (checkpoint_command): Update.
9265 * linespec.c (convert_linespec_to_sals): Update.
9266 * jit.c (finalize_symtab): Update.
9267 * infrun.c (insert_exception_resume_from_probe): Update.
9268 * ia64-tdep.c (ia64_find_unwind_table): Update.
9269 * hppa-tdep.c (internalize_unwinds): Update.
9270 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9271 Update.
9272 * gcore.c (call_target_sbrk): Update.
9273 * elfread.c (record_minimal_symbol, elf_symtab_read)
9274 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9275 (elf_gnu_ifunc_resolve_by_got): Update.
9276 * dwarf2/read.c (create_addrmap_from_index)
9277 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9278 (read_debug_names_from_section)
9279 (process_psymtab_comp_unit_reader, add_partial_symbol)
9280 (add_partial_subprogram, process_full_comp_unit)
9281 (read_file_scope, read_func_scope, read_lexical_block_scope)
9282 (read_call_site_scope, dwarf2_ranges_read)
9283 (dwarf2_record_block_ranges, dwarf2_add_field)
9284 (mark_common_block_symbol_computed, read_tag_pointer_type)
9285 (read_tag_string_type, dwarf2_init_float_type)
9286 (dwarf2_init_complex_target_type, read_base_type)
9287 (partial_die_info::read, partial_die_info::read)
9288 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9289 (dwarf2_fetch_die_loc_sect_off): Update.
9290 * dwarf2/loc.c (dwarf2_find_location_expression)
9291 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9292 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9293 (dwarf2_loc_desc_get_symbol_read_needs)
9294 (locexpr_describe_location_piece, locexpr_describe_location_1)
9295 (loclist_describe_location): Update.
9296 * dwarf2/index-write.c (write_debug_names): Update.
9297 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9298 * dtrace-probe.c (dtrace_process_dof): Update.
9299 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9300 (process_one_symbol): Update.
9301 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9302 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9303 (coff_read_enum_type): Update.
9304 * cli/cli-cmds.c (edit_command, list_command): Update.
9305 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9306 * breakpoint.c (create_overlay_event_breakpoint)
9307 (create_longjmp_master_breakpoint)
9308 (create_std_terminate_master_breakpoint)
9309 (create_exception_master_breakpoint, get_sal_arch): Update.
9310 * block.c (block_gdbarch): Update.
9311 * annotate.c (annotate_source_line): Update.
9312
0743fc83
TT
93132020-04-17 Tom Tromey <tromey@adacore.com>
9314
9315 * auto-load.c (show_auto_load_cmd): Remove.
9316 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9317 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9318 (maintenance_print_arc_command): Remove.
9319 * tui/tui-win.c (tui_command): Remove.
9320 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9321 * tui/tui-layout.c (tui_layout_command): Remove.
9322 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9323 * python/python.c (user_set_python, user_show_python): Remove.
9324 (_initialize_python): Use add_basic_prefix_cmd,
9325 add_show_prefix_cmd.
9326 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9327 (install_gdb_commands): Use add_basic_prefix_cmd,
9328 add_show_prefix_cmd.
9329 (info_guile_command): Remove.
9330 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9331 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9332 add_show_prefix_cmd.
9333 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9334 Remove do_set and do_show parameters.
9335 * cli/cli-style.c (set_style, show_style): Remove.
9336 (_initialize_cli_style): Use add_basic_prefix_cmd,
9337 add_show_prefix_cmd.
9338 (cli_style_option::add_setshow_commands): Remove do_set and
9339 do_show parameters.
9340 (cli_style_option::add_setshow_commands): Use
9341 add_basic_prefix_cmd, add_show_prefix_cmd.
9342 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9343 (set_style_name): Remove.
9344 * cli/cli-dump.c (dump_command, append_command): Remove.
9345 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9346 (tekhex_dump_command, binary_dump_command)
9347 (binary_append_command): Remove.
9348 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9349 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9350 (init_w32_command_list): Remove; move into ...
9351 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9352 * valprint.c (set_print, show_print, set_print_raw)
9353 (show_print_raw): Remove.
9354 (_initialize_valprint): Use add_basic_prefix_cmd,
9355 add_show_prefix_cmd.
9356 * typeprint.c (set_print_type, show_print_type): Remove.
9357 (_initialize_typeprint): Use add_basic_prefix_cmd,
9358 add_show_prefix_cmd.
9359 * record.c (set_record_command, show_record_command): Remove.
9360 (_initialize_record): Use add_basic_prefix_cmd,
9361 add_show_prefix_cmd.
9362 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9363 add_show_prefix_cmd.
9364 (info_command, show_command, set_debug, show_debug): Remove.
9365 * top.h (set_history, show_history): Don't declare.
9366 * top.c (set_history, show_history): Remove.
9367 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9368 (unset_tdesc_cmd): Remove.
9369 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9370 add_show_prefix_cmd.
9371 * symtab.c (info_module_command): Remove.
9372 (_initialize_symtab): Use add_basic_prefix_cmd.
9373 * symfile.c (overlay_command): Remove.
9374 (_initialize_symfile): Use add_basic_prefix_cmd.
9375 * sparc64-tdep.c (info_adi_command): Remove.
9376 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9377 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9378 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9379 add_show_prefix_cmd.
9380 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9381 (_initialize_serial): Use add_basic_prefix_cmd,
9382 add_show_prefix_cmd.
9383 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9384 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9385 add_show_prefix_cmd.
9386 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9387 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9388 add_show_prefix_cmd.
9389 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9390 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9391 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9392 add_show_prefix_cmd.
9393 * remote.c (remote_command, set_remote_cmd): Remove.
9394 (_initialize_remote): Use add_basic_prefix_cmd.
9395 * record-full.c (set_record_full_command)
9396 (show_record_full_command): Remove.
9397 (_initialize_record_full): Use add_basic_prefix_cmd,
9398 add_show_prefix_cmd.
9399 * record-btrace.c (cmd_set_record_btrace)
9400 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9401 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9402 (cmd_show_record_btrace_pt): Remove.
9403 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9404 add_show_prefix_cmd.
9405 * ravenscar-thread.c (set_ravenscar_command)
9406 (show_ravenscar_command): Remove.
9407 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9408 add_show_prefix_cmd.
9409 * mips-tdep.c (show_mips_command, set_mips_command)
9410 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9411 add_show_prefix_cmd.
9412 * maint.c (maintenance_command, maintenance_info_command)
9413 (maintenance_check_command, maintenance_print_command)
9414 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9415 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9416 add_show_prefix_cmd.
9417 (show_per_command_cmd): Remove.
9418 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9419 Remove.
9420 (maintenance_show_test_settings_cmd): Remove.
9421 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9422 add_show_prefix_cmd.
9423 * maint-test-options.c (maintenance_test_options_command):
9424 Remove.
9425 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9426 * macrocmd.c (macro_command): Remove
9427 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9428 * language.c (set_check, show_check): Remove.
9429 (_initialize_language): Use add_basic_prefix_cmd,
9430 add_show_prefix_cmd.
9431 * infcmd.c (unset_command): Remove.
9432 (_initialize_infcmd): Use add_basic_prefix_cmd.
9433 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9434 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9435 add_show_prefix_cmd.
9436 * go32-nat.c (go32_info_dos_command): Remove.
9437 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9438 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9439 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9440 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9441 (_initialize_frame): Use add_basic_prefix_cmd,
9442 add_show_prefix_cmd.
9443 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9444 (_initialize_dcache): Use add_basic_prefix_cmd,
9445 add_show_prefix_cmd.
9446 * cp-support.c (maint_cplus_command): Remove.
9447 (_initialize_cp_support): Use add_basic_prefix_cmd.
9448 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9449 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9450 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9451 add_basic_prefix_cmd, add_show_prefix_cmd.
9452 * breakpoint.c (save_command): Remove.
9453 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9454 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9455 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9456 add_show_prefix_cmd.
9457 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9458 (set_ada_command, show_ada_command): Remove.
9459 (_initialize_ada_language): Use add_basic_prefix_cmd,
9460 add_show_prefix_cmd.
9461 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9462
3557f442
KR
94632020-04-16 Kamil Rytarowski <n54@gmx.com>
9464
9465 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9466 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9467
16197208
SM
94682020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9469
9470 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9471 warning messages.
9472
00ac85d3
SM
94732020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9474
9475 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9476 import table is not at beginning of .idata section.
9477
381ce63f
PA
94782020-04-16 Pedro Alves <palves@redhat.com>
9479
9480 * inferior.c (delete_inferior): Use delete operator directly
9481 instead of delete_program_space.
9482 * progspace.c (add_program_space): New, factored out from
9483 program_space::program_space.
9484 (remove_program_space): New, factored out from
9485 delete_program_space.
9486 (program_space::program_space): Remove intro comment. Rewrite.
9487 (program_space::~program_space): Remove intro comment. Call
9488 remove_program_space.
9489 (delete_program_space): Delete.
9490 * progspace.h (program_space::program_space): Make explicit. Move
9491 intro comment here, adjusted.
9492 (program_space::~program_space): Move intro comment here,
9493 adjusted.
9494 (delete_program_space): Remove.
9495
a010605f
TT
94962020-04-16 Tom Tromey <tromey@adacore.com>
9497
9498 * windows-nat.c (windows_nat::handle_access_violation): New
9499 function.
9500 * nat/windows-nat.h (handle_access_violation): Declare.
9501 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9502 windows-nat.c. Call handle_access_violation.
9503
efba5c23
TV
95042020-04-16 Tom de Vries <tdevries@suse.de>
9505
9506 PR symtab/25791
9507 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9508 CUs without psymtab.
9509
97ed802d
KB
95102020-04-16 Kevin Buettner <kevinb@redhat.com>
9511
9512 * python/python.c (do_start_initialization): Don't call
9513 PyEval_InitThreads for Python 3.9 and beyond.
9514
c7d64809
KR
95152020-04-15 Kamil Rytarowski <n54@gmx.com>
9516
9517 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9518 thread functions.
9519 (obsd_nat_target::wait): Likewise.
9520
ce127a96
TT
95212020-04-15 Tom Tromey <tromey@adacore.com>
9522
9523 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9524 (DEBUG_EXCEPT): Use debug_printf.
9525
99f1bc6a
AB
95262020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9527
9528 * completer.c (class completion_tracker::completion_hash_entry)
9529 <hash_name>: New member function.
9530 (completion_tracker::discard_completions): New callback to hash a
9531 completion_hash_entry, pass this to htab_create_alloc.
9532
a0e9b532
JT
95332016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9534
9535 * windows-nat.c (windows_make_so): Warn rather than stopping with
9536 an error if realpath() fails.
9537
06ca5dd4
KR
95382020-04-14 Kamil Rytarowski <n54@gmx.com>
9539
9540 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9541 (nbsd_nat_target::info_proc): Add do_status.
9542
194d088f
TV
95432020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9544 Tom de Vries <tdevries@suse.de>
9545
9546 PR symtab/25718
9547 * psympriv.h (struct partial_symtab::read_symtab)
9548 (struct partial_symtab::expand_psymtab)
9549 (struct partial_symtab::read_dependencies): Update comments.
9550 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9551 read_symtab for includer.
9552 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9553 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9554 (struct dwarf2_include_psymtab::m_readin): Remove.
9555 (struct dwarf2_include_psymtab::includer): New member function.
9556 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9557
c1a66c06
TV
95582020-04-14 Tom de Vries <tdevries@suse.de>
9559
9560 PR symtab/25720
9561 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9562 with NULL symbol_matcher and lookup_name.
9563 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9564 and lookup_name.
9565 * dwarf2/read.c (dw2_expand_symtabs_matching)
9566 (dw2_debug_names_expand_symtabs_matching): Same.
9567 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9568 Make lookup_name a pointer. Update comment.
9569 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9570 lookup_name being a pointer.
9571 * symfile.c (expand_symtabs_matching): Same.
9572 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9573 * linespec.c (iterate_over_all_matching_symtabs): Same.
9574
400b5eca
TT
95752020-04-13 Tom Tromey <tom@tromey.com>
9576
9577 * run-on-main-thread.c: Update include.
9578 * unittests/main-thread-selftests.c: Update include.
9579 * tui/tui-win.c: Update include.
9580 * tui/tui-io.c: Update include.
9581 * tui/tui-interp.c: Update include.
9582 * tui/tui-hooks.c: Update include.
9583 * top.h: Update include.
9584 * top.c: Update include.
9585 * ser-base.c: Update include.
9586 * remote.c: Update include.
9587 * remote-notif.c: Update include.
9588 * remote-fileio.c: Update include.
9589 * record-full.c: Update include.
9590 * record-btrace.c: Update include.
9591 * python/python.c: Update include.
9592 * posix-hdep.c: Update include.
9593 * mingw-hdep.c: Update include.
9594 * mi/mi-main.c: Update include.
9595 * mi/mi-interp.c: Update include.
9596 * main.c: Update include.
9597 * linux-nat.c: Update include.
9598 * interps.c: Update include.
9599 * infrun.c: Update include.
9600 * inf-loop.c: Update include.
9601 * event-top.c: Update include.
9602 * event-loop.c: Move to ../gdbsupport/.
9603 * event-loop.h: Move to ../gdbsupport/.
9604 * async-event.h: Update include.
9605 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9606
93b54c8e
TT
96072020-04-13 Tom Tromey <tom@tromey.com>
9608
9609 * tui/tui-win.c: Include async-event.h.
9610 * remote.c: Include async-event.h.
9611 * remote-notif.c: Include async-event.h.
9612 * record-full.c: Include async-event.h.
9613 * record-btrace.c: Include async-event.h.
9614 * infrun.c: Include async-event.h.
9615 * event-top.c: Include async-event.h.
9616 * event-loop.h: Move some declarations to async-event.h.
9617 * event-loop.c: Don't include ser-event.h or top.h. Move some
9618 code to async-event.c.
9619 * async-event.h: New file.
9620 * async-event.c: New file.
9621 * Makefile.in (COMMON_SFILES): Add async-event.c.
9622 (HFILES_NO_SRCDIR): Add async-event.h.
9623
c1cd3163
TT
96242020-04-13 Tom Tromey <tom@tromey.com>
9625
9626 * utils.c (flush_streams): New function.
9627 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9628
29f2bf4f
TT
96292020-04-13 Tom Tromey <tom@tromey.com>
9630
9631 * event-loop.c (handle_file_event): Use warning, not
9632 printf_unfiltered.
9633
98029d02
TT
96342020-04-13 Tom Tromey <tom@tromey.com>
9635
9636 * event-loop.c: Include <chrono>.
9637
06cc9596
TT
96382020-04-13 Tom Tromey <tom@tromey.com>
9639
9640 * gdb_select.h: Move to ../gdbsupport/.
9641 * event-loop.c: Update include path.
9642 * top.c: Update include path.
9643 * ser-base.c: Update include path.
9644 * ui-file.c: Update include path.
9645 * ser-tcp.c: Update include path.
9646 * guile/scm-ports.c: Update include path.
9647 * posix-hdep.c: Update include path.
9648 * ser-unix.c: Update include path.
9649 * gdb_usleep.c: Update include path.
9650 * mingw-hdep.c: Update include path.
9651 * inflow.c: Update include path.
9652 * infrun.c: Update include path.
9653 * event-top.c: Update include path.
9654
8ae8e197
TT
96552020-04-13 Tom Tromey <tom@tromey.com>
9656
9657 * configure: Rebuild.
9658 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9659
58cf28e8
TT
96602020-04-13 Tom Tromey <tom@tromey.com>
9661
9662 * event-loop.h (start_event_loop): Don't declare.
9663 * event-loop.c (start_event_loop): Move...
9664 * main.c (start_event_loop): ...here. Now static.
9665
b7f999ae
SDJ
96662020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9667
9668 * MAINTAINERS: Update my email address.
9669
1085dfd4
KR
96702020-04-12 Kamil Rytarowski <n54@gmx.com>
9671
9672 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9673 IP_ALL.
9674
49d1d1f5
KR
96752020-04-12 Kamil Rytarowski <n54@gmx.com>
9676
9677 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9678 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9679
b4848d2a
KR
96802020-04-12 Kamil Rytarowski <n54@gmx.com>
9681
9682 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9683 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9684
51c133d5
KR
96852020-04-12 Kamil Rytarowski <n54@gmx.com>
9686
9687 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9688
54b8cbd0
KR
96892020-04-11 Kamil Rytarowski <n54@gmx.com>
9690
9691 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9692 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9693 (nbsd_nat_target::info_proc): New functions.
9694 * nbsd-nat.c (kinfo_get_vmmap): New function.
9695 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9696 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9697 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9698 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9699 functions.
9700 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9701 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9702 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9703 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9704 (KINFO_VME_FLAG_GROWS_DOWN): New.
9705
cf83625d
AS
97062020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9707
9708 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9709 bit shift.
9710
0c4311ab
TT
97112020-04-10 Tom Tromey <tromey@adacore.com>
9712
9713 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9714
3e65b3e9
TT
97152020-04-10 Tom Tromey <tromey@adacore.com>
9716
9717 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9718 separate debug files.
9719
13302e95
HD
97202020-04-10 Hannes Domani <ssbssa@yahoo.de>
9721
9722 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9723 Move to...
9724 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9725 ... here.
9726 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9727 Check for STATUS_WX86_BREAKPOINT.
9728 (windows_nat_target::wait): Same.
9729
bdfc1e8a
TV
97302020-04-10 Tom de Vries <tdevries@suse.de>
9731
9732 PR cli/25808
9733 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9734
f4460aec
SM
97352020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9736
9737 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9738 (Write After Approval): Remove Tom de Vries.
9739
a25198bb
BE
97402020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9741
9742 revert partially:
9743 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9744
aac66a4c
SM
9745 * buildsym.c (record_line): Fix undefined behavior and preserve
9746 lines at eof.
a25198bb 9747
206c98a6
KR
97482020-04-09 Kamil Rytarowski <n54@gmx.com>
9749
9750 * auxv.h (svr4_auxv_parse): New.
9751 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9752 and generic_auxv_parse.
9753 (svr4_auxv_parse): Add.
9754 * obsd-tdep.c: Include "auxv.h".
9755 (obsd_auxv_parse): Remove.
9756 (obsd_init_abi): Remove comment.
9757 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9758 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9759 * nbsd-tdep.c: Include "auxv.h".
9760 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9761
71fbdbaf
TT
97622020-04-08 Tom Tromey <tromey@adacore.com>
9763
9764 * nat/windows-nat.h (last_wait_event): Don't declare.
9765 (wait_for_debug_event): Update comment.
9766 * nat/windows-nat.c (last_wait_event): Now static.
9767
2c1d95e8
TT
97682020-04-08 Tom Tromey <tromey@adacore.com>
9769
9770 * windows-nat.c (wait_for_debug_event): Move to
9771 nat/windows-nat.c.
9772 * nat/windows-nat.h (wait_for_debug_event): Declare.
9773 * nat/windows-nat.c (wait_for_debug_event): Move from
9774 windows-nat.c. No longer static.
9775
d2977bc4
TT
97762020-04-08 Tom Tromey <tromey@adacore.com>
9777
9778 * windows-nat.c (get_windows_debug_event): Use
9779 fetch_pending_stop.
9780 * nat/windows-nat.h (fetch_pending_stop): Declare.
9781 * nat/windows-nat.c (fetch_pending_stop): New function.
9782
e758e19c
TT
97832020-04-08 Tom Tromey <tromey@adacore.com>
9784
9785 * windows-nat.c (windows_continue): Use matching_pending_stop and
9786 continue_last_debug_event.
9787 * nat/windows-nat.h (matching_pending_stop)
9788 (continue_last_debug_event): Declare.
9789 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9790 (matching_pending_stop, continue_last_debug_event): New
9791 functions.
9792
8d30e395
TT
97932020-04-08 Tom Tromey <tromey@adacore.com>
9794
9795 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9796 (handle_exception_result): Move to nat/windows-nat.h.
9797 (DEBUG_EXCEPTION_SIMPLE): Remove.
9798 (windows_nat::handle_ms_vc_exception): New function.
9799 (handle_exception): Move to nat/windows-nat.c.
9800 (get_windows_debug_event): Update.
9801 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9802 nat/windows-nat.c.
9803 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9804 (handle_exception_result): Move from windows-nat.c.
9805 (handle_exception): Declare.
9806 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9807 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9808 windows-nat.c.
9809
29de418d
TT
98102020-04-08 Tom Tromey <tromey@adacore.com>
9811
9812 * windows-nat.c (exception_count, event_count): Remove.
9813 (handle_exception, get_windows_debug_event)
9814 (do_initial_windows_stuff): Update.
9815
a816ba18
TT
98162020-04-08 Tom Tromey <tromey@adacore.com>
9817
9818 * windows-nat.c (windows_nat::handle_load_dll)
9819 (windows_nat::handle_unload_dll): Rename. No longer static.
9820 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9821 Declare.
9822
a00caa12
TT
98232020-04-08 Tom Tromey <tromey@adacore.com>
9824
9825 * complaints.h (stop_whining): Declare at top-level.
9826 (complaint): Don't declare stop_whining.
9827
d41b524f
TT
98282020-04-08 Tom Tromey <tromey@adacore.com>
9829
9830 * windows-nat.c (windows_nat::handle_output_debug_string):
9831 Rename. No longer static.
9832 * nat/windows-nat.h (handle_output_debug_string): Declare.
9833
3c76026d
TT
98342020-04-08 Tom Tromey <tromey@adacore.com>
9835
9836 * windows-nat.c (current_process_handle, current_process_id)
9837 (main_thread_id, last_sig, current_event, last_wait_event)
9838 (current_windows_thread, desired_stop_thread_id, pending_stops)
9839 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9840 (display_selectors, fake_create_process)
9841 (get_windows_debug_event): Update.
9842 * nat/windows-nat.h (current_process_handle, current_process_id)
9843 (main_thread_id, last_sig, current_event, last_wait_event)
9844 (current_windows_thread, desired_stop_thread_id, pending_stops)
9845 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9846 * nat/windows-nat.c (current_process_handle, current_process_id)
9847 (main_thread_id, last_sig, current_event, last_wait_event)
9848 (current_windows_thread, desired_stop_thread_id, pending_stops)
9849 (siginfo_er): New globals. Move from windows-nat.c.
9850
9d8679cc
TT
98512020-04-08 Tom Tromey <tromey@adacore.com>
9852
9853 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9854 (handle_load_dll): Update.
9855 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9856
28688adf
TT
98572020-04-08 Tom Tromey <tromey@adacore.com>
9858
9859 * windows-nat.c (enum thread_disposition_type): Move to
9860 nat/windows-nat.h.
9861 (windows_nat::thread_rec): Rename from thread_rec. No longer
9862 static.
9863 (windows_add_thread, windows_nat_target::fetch_registers)
9864 (windows_nat_target::store_registers, handle_exception)
9865 (windows_nat_target::resume, get_windows_debug_event)
9866 (windows_nat_target::get_tib_address)
9867 (windows_nat_target::thread_name)
9868 (windows_nat_target::thread_alive): Update.
9869 * nat/windows-nat.h (enum thread_disposition_type): Move from
9870 windows-nat.c.
9871 (thread_rec): Declare.
9872
4834dad0
TT
98732020-04-08 Tom Tromey <tromey@adacore.com>
9874
9875 * windows-nat.c: Add "using namespace".
9876 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9877 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9878
65bafd5b
TT
98792020-04-08 Tom Tromey <tromey@adacore.com>
9880
9881 * nat/windows-nat.h (struct windows_thread_info): Declare
9882 destructor.
9883 * nat/windows-nat.c (~windows_thread_info): New.
9884
0a4afda3
TT
98852020-04-08 Tom Tromey <tromey@adacore.com>
9886
9887 PR gdb/22992
9888 * windows-nat.c (current_event): Update comment.
9889 (last_wait_event, desired_stop_thread_id): New globals.
9890 (struct pending_stop): New.
9891 (pending_stops): New global.
9892 (windows_nat_target) <stopped_by_sw_breakpoint>
9893 <supports_stopped_by_sw_breakpoint>: New methods.
9894 (windows_fetch_one_register): Add assertions. Adjust PC.
9895 (windows_continue): Handle pending stops. Suspend other threads
9896 when stepping. Use last_wait_event
9897 (wait_for_debug_event): New function.
9898 (get_windows_debug_event): Use wait_for_debug_event. Handle
9899 pending stops. Queue spurious stops.
9900 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9901 (windows_nat_target::kill): Use wait_for_debug_event.
9902 * nat/windows-nat.h (struct windows_thread_info)
9903 <stopped_at_software_breakpoint>: New field.
9904 * nat/windows-nat.c (windows_thread_info::resume): Clear
9905 stopped_at_software_breakpoint.
9906
8e61ebec
TT
99072020-04-08 Tom Tromey <tromey@adacore.com>
9908
9909 * windows-nat.c (enum thread_disposition_type): New.
9910 (thread_rec): Replace "get_context" parameter with "disposition";
9911 change type.
9912 (windows_add_thread, windows_nat_target::fetch_registers)
9913 (windows_nat_target::store_registers, handle_exception)
9914 (windows_nat_target::resume, get_windows_debug_event)
9915 (windows_nat_target::get_tib_address)
9916 (windows_nat_target::thread_name)
9917 (windows_nat_target::thread_alive): Update.
9918
98a03287
TT
99192020-04-08 Tom Tromey <tromey@adacore.com>
9920
9921 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9922 (windows_continue): Use windows_continue::resume.
9923 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9924 resume>: Declare new methods.
9925 * nat/windows-nat.c: New file.
9926 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9927
7c7411bc
TT
99282020-04-08 Tom Tromey <tromey@adacore.com>
9929
9930 * windows-nat.c (windows_add_thread, windows_delete_thread)
9931 (windows_nat_target::fetch_registers)
9932 (windows_nat_target::store_registers, fake_create_process)
9933 (windows_nat_target::resume, windows_nat_target::resume)
9934 (get_windows_debug_event, windows_nat_target::wait)
9935 (windows_nat_target::pid_to_str)
9936 (windows_nat_target::get_tib_address)
9937 (windows_nat_target::get_ada_task_ptid)
9938 (windows_nat_target::thread_name)
9939 (windows_nat_target::thread_alive): Use lwp, not tid.
9940
2950fdf7
TT
99412020-04-08 Tom Tromey <tromey@adacore.com>
9942
9943 * windows-nat.c (handle_exception)
9944 (windows_nat_target::thread_name): Update.
9945 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9946 <name>: Now unique_xmalloc_ptr.
9947
62fe396b
TT
99482020-04-08 Tom Tromey <tromey@adacore.com>
9949
9950 * windows-nat.c (thread_rec)
9951 (windows_nat_target::fetch_registers): Update.
9952 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9953 Update comment.
9954 <debug_registers_changed, reload_context>: Now bool.
9955
e9534bd2
TT
99562020-04-08 Tom Tromey <tromey@adacore.com>
9957
9958 * windows-nat.c (windows_add_thread): Use new.
9959 (windows_init_thread_list, windows_delete_thread): Use delete.
9960 (get_windows_debug_event): Update.
9961 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9962 destructor, and initializers.
9963
ae1f8880
TT
99642020-04-08 Tom Tromey <tromey@adacore.com>
9965
9966 * windows-nat.c (struct windows_thread_info): Remove.
9967 * nat/windows-nat.h: New file.
9968
55a1e039
TT
99692020-04-08 Tom Tromey <tromey@adacore.com>
9970
9971 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9972 (thread_rec, windows_add_thread, windows_delete_thread)
9973 (windows_continue): Update.
9974
93366324
TT
99752020-04-08 Tom Tromey <tromey@adacore.com>
9976
9977 * windows-nat.c (struct windows_thread_info): Remove typedef.
9978 (thread_head): Remove.
9979 (thread_list): New global.
9980 (thread_rec, windows_add_thread, windows_init_thread_list)
9981 (windows_delete_thread, windows_continue): Update.
9982
0f2265e2
SM
99832020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9984
9985 * windows-tdep.h (windows_init_abi): Add comment.
9986 (cygwin_init_abi): New declaration.
9987 * windows-tdep.c: Split signal enumeration in two, one for
9988 Windows and one for Cygwin.
9989 (windows_gdb_signal_to_target): Only deal with signal of the
9990 Windows OS ABI.
9991 (cygwin_gdb_signal_to_target): New function.
9992 (windows_init_abi): Rename to windows_init_abi_common, don't set
9993 gdb_signal_to_target gdbarch method. Add new new function with
9994 this name.
9995 (cygwin_init_abi): New function.
9996 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9997 comment. Don't call windows_init_abi.
9998 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9999 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10000 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10001 i386_windows_init_abi_common, don't call windows_init_abi. Add
10002 a new function of this name.
10003 (i386_cygwin_init_abi): New function.
10004 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10005 OS ABI Cygwin.
10006
3810f182
SM
100072020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10008
10009 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10010 parameter.c.
10011 (dwarf2_read_gdb_index): Update.
10012
063f8e80
KR
100132020-04-07 Kamil Rytarowski <n54@gmx.com>
10014
10015 * nbsd-tdep.c: Include "objfiles.h".
10016 (nbsd_skip_solib_resolver): New.
10017 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10018
85a9510c 100192020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10020
10021 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10022 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10023 with DW_LLE_base_addressx are being emitted in DWARFv5.
10024 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10025 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10026 unsigned integer.
10027
9fc3eaae 100282020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10029
10030 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10031 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10032 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10033 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10034 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10035 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10036 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10037
10038
41144253 100392020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10040
10041 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10042 (read_loclist_index): New function definition.
10043 (lookup_loclist_base): New function definition.
10044 (read_loclist_header): New function definition.
10045 (dwarf2_cu): Add loclist_base and loclist_header field.
10046 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10047 (read_full_die_1): Read the value of DW_AT_loclists_base.
10048 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10049 (read_attribute_value): Handle DW_FORM_loclistx.
10050 (skip_one_die): Handle DW_FORM_loclistx.
10051 (loclist_header): New structure declaration.
10052 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10053
9f4e76a4
SM
100542020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10055
10056 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10057 constructor. Remove `addr` parameter from other constructor and
10058 add `per_cu` parameter.
10059 * dwarf2/read.c (create_partial_symtab): Update.
10060
25c11aca
TV
100612020-04-07 Tom de Vries <tdevries@suse.de>
10062
10063 PR symtab/25796
10064 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10065 (partial_die_info::fixup): Inherit has_const_value.
10066
5707e24b
TV
100672020-04-07 Tom de Vries <tdevries@suse.de>
10068
10069 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10070 symbols without address.
10071
05f00e22
KR
100722020-04-06 Kamil Rytarowski <n54@gmx.com>
10073
10074 * nbsd-nat.h (struct thread_info): Add forward declaration.
10075 (nbsd_nat_target::thread_alive): Add.
10076 (nbsd_nat_target::thread_name): Likewise.
10077 (nbsd_nat_target::update_thread_list): Likewise.
10078 (update_thread_list::post_attach): Likewise.
10079 (post_attach::pid_to_str): Likewise.
10080 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10081 (nbsd_thread_lister): Add.
10082 (nbsd_nat_target::thread_alive): Likewise.
10083 (nbsd_nat_target::thread_name): Likewise.
10084 (nbsd_add_threads): Likewise.
10085 (update_thread_list::post_attach): Likewise.
10086 (nbsd_nat_target::update_thread_list): Likewise.
10087 (post_attach::pid_to_str): Likewise.
10088
6ee448cc
TT
100892020-04-06 Tom Tromey <tromey@adacore.com>
10090
10091 * ada-valprint.c (print_variant_part): Extract the variant field.
10092 (print_field_values): Use the field as the outer value when
10093 recursing.
10094
dea34e8c
TT
100952020-04-06 Tom Tromey <tromey@adacore.com>
10096
10097 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10098 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10099 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10100 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10101 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10102
93689ce9
TT
101032020-04-06 Tom Tromey <tromey@adacore.com>
10104
10105 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10106 TYPE_CODE_ERROR.
10107
79743962
KR
101082020-04-06 Kamil Rytarowski <n54@gmx.com>
10109
10110 * nbsd-tdep.c: Include "gdbarch.h".
10111 Define enum with NetBSD signal numbers.
10112 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10113 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10114 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10115 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10116 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10117 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10118 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10119 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10120 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10121 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10122 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10123 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10124
9e7c9a03
HD
101252020-04-03 Hannes Domani <ssbssa@yahoo.de>
10126
10127 PR gdb/25325
10128 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10129
d9e49b61
TT
101302020-04-03 Tom Tromey <tromey@adacore.com>
10131
10132 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10133 Read constant block.
10134
e0fc5c3f
SM
101352020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10136
10137 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10138 (gdb_bfd_get_full_section_contents): New declaration.
10139 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10140 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10141 gdb_bfd_get_full_section_contents.
10142
e2ff18a0
SM
101432020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10144
10145 * exec.c (build_section_table): Replace internal_error with
10146 gdb_assert.
10147 (section_table_xfer_memory_partial): Likewise.
10148 * mdebugread.c (parse_partial_symbols): Likewise.
10149 * psymtab.c (lookup_partial_symbol): Likewise.
10150 * utils.c (wrap_here): Likewise.
10151
0830d301
TT
101522020-04-02 Tom Tromey <tromey@adacore.com>
10153
10154 * f-lang.c (build_fortran_types): Use arch_type to initialize
10155 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10156
e7da7f8f
TT
101572020-04-02 Tom Tromey <tromey@adacore.com>
10158
10159 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10160 of attributes.
10161
c90d28ac
AB
101622020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10163 Bernd Edlinger <bernd.edlinger@hotmail.de>
10164 Tom Tromey <tromey@adacore.com>
10165
10166 * buildsym.c (buildsym_compunit::record_line): Remove
10167 deduplication code.
10168
1aa98955
TV
101692020-04-02 Tom de Vries <tdevries@suse.de>
10170
10171 PR ada/24671
10172 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10173
d3214198
TV
101742020-04-02 Tom de Vries <tdevries@suse.de>
10175
10176 * dwarf2/read.c (dwarf2_gdb_index_functions,
10177 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10178 NULL.
10179 * psymtab.c (psym_lookup_global_symbol_language): New function.
10180 (psym_functions): Init psym_lookup_global_symbol_language with
10181 psym_lookup_global_symbol_language.
10182 * symfile-debug.c (debug_sym_quick_functions): Init
10183 lookup_global_symbol_language with NULL.
10184 * symfile.c (set_initial_language): Remove fixme comment.
10185 * symfile.h (struct quick_symbol_functions): Add
10186 lookup_global_symbol_language.
10187 * symtab.c (find_quick_global_symbol_language): New function.
10188 (find_main_name): Use find_quick_global_symbol_language.
10189
2836752f
SM
101902020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10191
10192 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10193
64dc2d4b
BE
101942020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10195
10196 * buildsym.c (record_line): Fix undefined behavior and preserve
10197 lines at eof.
10198
bbe3dc41
BE
101992020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10200
10201 * buildsym.c (record_line): Fix the resizing condition.
10202
6b4a335b
TT
102032020-04-01 Tom Tromey <tom@tromey.com>
10204
10205 * value.h (value_literal_complex): Add comment.
10206 * valops.c (value_literal_complex): Refer to value.h.
10207
3638a098
TT
102082020-04-01 Tom Tromey <tom@tromey.com>
10209
10210 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10211 (scalar_type): New rule, from typebase.
10212 (typebase): Use scalar_type. Recognize complex types.
10213 (field_name): Handle FLOAT_KEYWORD.
10214 (ident_tokens): Add _Complex and __complex__.
10215
c34e8714
TT
102162020-04-01 Tom Tromey <tom@tromey.com>
10217
10218 PR exp/25299:
10219 * valarith.c (promotion_type, complex_binop): New functions.
10220 (scalar_binop): Handle complex numbers. Use promotion_type.
10221 (value_pos, value_neg, value_complement): Handle complex numbers.
10222
fa649bb7
TT
102232020-04-01 Tom Tromey <tom@tromey.com>
10224
10225 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10226 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10227 (parse_number): Handle complex numbers.
10228
981c08ce
TT
102292020-04-01 Tom Tromey <tom@tromey.com>
10230
10231 * c-valprint.c (c_decorations): Change complex suffix to "i".
10232
4c99290d
TT
102332020-04-01 Tom Tromey <tom@tromey.com>
10234
10235 * valprint.c (generic_value_print_complex): Use accessors.
10236 * value.h (value_real_part, value_imaginary_part): Declare.
10237 * valops.c (value_real_part, value_imaginary_part): New
10238 functions.
10239 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10240
5b930b45
TT
102412020-04-01 Tom Tromey <tom@tromey.com>
10242
10243 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10244 (read_range_type): Update.
10245 * mdebugread.c (basic_type): Update.
10246 * go-lang.c (build_go_types): Use init_complex_type.
10247 * gdbtypes.h (struct main_type) <complex_type>: New member.
10248 (init_complex_type): Update.
10249 (arch_complex_type): Don't declare.
10250 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10251 Make name if none given. Use alloc_type_copy. Look for cached
10252 complex type.
10253 (arch_complex_type): Remove.
10254 (gdbtypes_post_init): Use init_complex_type.
10255 * f-lang.c (build_fortran_types): Use init_complex_type.
10256 * dwarf2/read.c (read_base_type): Update.
10257 * d-lang.c (build_d_types): Use init_complex_type.
10258 * ctfread.c (read_base_type): Update.
10259
53cccef1
TBA
102602020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10261
10262 * infrun.c (stop_all_threads): Update assertion, plus when
10263 stopping threads, take into account that we might be trying
10264 to stop an all-stop target.
10265 (stop_waiting): Call 'stop_all_threads' if there exists a
10266 non-stop target.
10267
a0714d30
TBA
102682020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10269
10270 * target.h (exists_non_stop_target): New function declaration.
10271 * target.c (exists_non_stop_target): New function.
10272
60e22c1e
HD
102732020-04-01 Hannes Domani <ssbssa@yahoo.de>
10274
10275 PR gdb/24789
10276 * eval.c (is_integral_or_integral_reference): New function.
10277 (evaluate_subexp_standard): Allow integer references in
10278 pointer arithmetic.
10279
e139a727
TBA
102802020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10281
10282 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10283 check for no ptid in the stop reply when the target is non-stop.
10284
e0802d59
TT
102852020-04-01 Tom Tromey <tromey@adacore.com>
10286
10287 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10288 "name" parameter to rvalue reference. Initialize m_name_holder.
10289 <lookup_name_info>: New overloads.
10290 <name>: Return gdb::string_view.
10291 <c_str>: New method.
10292 <make_ignore_params>: Update.
10293 <search_name_hash>: Update.
10294 <language_lookup_name>: Return const char *.
10295 <m_name>: Change type.
10296 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10297 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10298 (lookup_name_info::match_any): Update.
10299 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10300 Update.
10301 * minsyms.c (linkage_name_str): Update.
10302 * language.c (default_symbol_name_matcher): Update.
10303 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10304 Update.
10305 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10306 (ada_lookup_name_info::ada_lookup_name_info): Update.
10307 (literal_symbol_name_matcher): Update.
10308
8c072cb6
TT
103092020-04-01 Tom Tromey <tromey@adacore.com>
10310
10311 * psymtab.c (psymtab_search_name): Remove function.
10312 (psym_lookup_symbol): Create search name and lookup name here.
10313 (lookup_partial_symbol): Remove "name" parameter; add
10314 lookup_name.
10315 (psym_expand_symtabs_for_function): Update.
10316
6f29a534
TT
103172020-03-31 Joel Jones <joelkevinjones@gmail.com>
10318
10319 PR tui/25597:
10320 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10321
af62665e
TT
103222020-03-31 Tom Tromey <tromey@adacore.com>
10323
10324 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10325 memcpy.
10326
d1a89da5
NC
103272020-03-30 Nelson Chu <nelson.chu@sifive.com>
10328
10329 * features/riscv/32bit-csr.xml: Regenerated.
10330 * features/riscv/64bit-csr.xml: Regenerated.
10331
d8af9068
TT
103322020-03-30 Tom Tromey <tromey@adacore.com>
10333
10334 * ada-valprint.c (print_variant_part): Update.
10335 * ada-lang.h (ada_which_variant_applies): Update.
10336 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10337 outer_valaddr parameters; replace with "outer" value parameter.
10338 (to_fixed_variant_branch_type): Update.
10339
227c0bf4
PFC
103402020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10341
10342 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10343 <list>. Remove inclusion of observable.h.
10344 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10345 (struct arch_lwp_info): New struct.
10346 (class ppc_linux_dreg_interface): New class.
10347 (struct ppc_linux_process_info): New struct.
10348 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10349 <low_new_clone, low_forget_process, low_prepare_to_resume>
10350 <copy_thread_dreg_state, mark_thread_stale>
10351 <mark_debug_registers_changed, register_hw_breakpoint>
10352 <clear_hw_breakpoint, register_wp, clear_wp>
10353 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10354 <num_memory_accesses, get_trigger_type>
10355 <create_watchpoint_request, hwdebug_point_cmp>
10356 <init_arch_lwp_info, get_arch_lwp_info>
10357 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10358 methods.
10359 <struct ptid_hash>: New inner struct.
10360 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10361 members.
10362 (saved_dabr_value, hwdebug_info, max_slots_number)
10363 (struct hw_break_tuple, struct thread_points, ppc_threads)
10364 (have_ptrace_hwdebug_interface)
10365 (hwdebug_find_thread_points_by_tid)
10366 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10367 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10368 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10369 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10370 use m_dreg_interface.
10371 (hwdebug_point_cmp): Change to...
10372 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10373 reference arguments instead of pointers.
10374 (ppc_linux_nat_target::ranged_break_num_registers): Use
10375 m_dreg_interface.
10376 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10377 m_dreg_interface. Call register_hw_breakpoint.
10378 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10379 m_dreg_interface. Call clear_hw_breakpoint.
10380 (get_trigger_type): Change to...
10381 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10382 comment.
10383 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10384 use m_dreg_interface. Call register_hw_breakpoint.
10385 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10386 use m_dreg_interface. Call clear_hw_breakpoint.
10387 (can_use_watchpoint_cond_accel): Change to...
10388 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10389 method. Update comment, use m_dreg_interface and
10390 m_process_info.
10391 (calculate_dvc): Change to...
10392 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10393 m_dreg_interface.
10394 (num_memory_accesses): Change to...
10395 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10396 (check_condition): Change to...
10397 (ppc_linux_nat_target::check_condition): ...this method.
10398 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10399 comment, use m_dreg_interface.
10400 (create_watchpoint_request): Change to...
10401 (ppc_linux_nat_target::create_watchpoint_request): ...this
10402 method. Use m_dreg_interface.
10403 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10404 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10405 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10406 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10407 (ppc_linux_nat_target::low_forget_process)
10408 (ppc_linux_nat_target::low_new_fork)
10409 (ppc_linux_nat_target::low_new_clone)
10410 (ppc_linux_nat_target::low_delete_thread)
10411 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10412 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10413 only call mark_thread_stale.
10414 (ppc_linux_thread_exit): Remove.
10415 (ppc_linux_nat_target::stopped_data_address): Change to...
10416 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10417 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10418 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10419 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10420 comment. Call low_stopped_data_address.
10421 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10422 m_dreg_interface.
10423 (ppc_linux_nat_target::masked_watch_num_registers): Use
10424 m_dreg_interface.
10425 (ppc_linux_nat_target::copy_thread_dreg_state)
10426 (ppc_linux_nat_target::mark_thread_stale)
10427 (ppc_linux_nat_target::mark_debug_registers_changed)
10428 (ppc_linux_nat_target::register_hw_breakpoint)
10429 (ppc_linux_nat_target::clear_hw_breakpoint)
10430 (ppc_linux_nat_target::register_wp)
10431 (ppc_linux_nat_target::clear_wp)
10432 (ppc_linux_nat_target::init_arch_lwp_info)
10433 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10434 (_initialize_ppc_linux_nat): Remove observer callback.
10435
4db10d8f
PFC
104362020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10437
10438 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10439 (ppc_linux_nat_target::auxv_parse)
10440 (ppc_linux_nat_target::read_description)
10441 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10442 Move up.
10443
1310c1b0
PFC
104442020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10445
10446 * linux-nat.h (low_new_clone): New method.
10447 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10448
69b037c3
SM
104492020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10450
10451 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10452 (dbx_expand_psymtab): ... this.
10453 (start_psymtab): Update.
10454 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10455 (mdebug_expand_psymtab): ... this.
10456 (parse_partial_symbols): Update.
10457 (new_psymtab): Update.
10458 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10459 (xcoff_expand_psymtab): ... this.
10460 (xcoff_start_psymtab): Update.
10461
48993951
SM
104622020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10463
10464 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10465 <expand_dependencies>: ... this.
10466 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10467 (partial_symtab::expand_dependencies): ... this.
10468 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10469 Update.
10470 (dwarf2_psymtab::expand_psymtab): Update.
10471 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10472 * mdebugread.c (psymtab_to_symtab_1): Update.
10473 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10474
3ad83046
SM
104752020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10476
10477 * psympriv.h (discard_psymtab): Remove.
10478 * dbxread.c (dbx_end_psymtab): Update.
10479 * xcoffread.c (xcoff_end_psymtab): Update.
10480
4d1b9ab6
TT
104812020-03-28 Tom Tromey <tom@tromey.com>
10482
10483 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10484 comment.
10485
f1749218
TT
104862020-03-28 Tom Tromey <tom@tromey.com>
10487
10488 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10489
ebea7626
HD
104902020-03-27 Hannes Domani <ssbssa@yahoo.de>
10491
10492 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10493
a879b4d5
JB
104942020-03-26 John Baldwin <jhb@FreeBSD.org>
10495
10496 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10497
0826b30a
TT
104982020-03-26 Tom Tromey <tom@tromey.com>
10499
10500 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10501 (mark_common_block_symbol_computed, read_tag_string_type)
10502 (attr_to_dynamic_prop, read_subrange_type): Update.
10503 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10504 to be methods on struct attribute.
10505 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10506 (read_call_site_scope, partial_die_info::read)
10507 (partial_die_info::read, lookup_die_type, follow_die_ref):
10508 Update.
10509 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10510 from dwarf2_get_ref_die_offset.
10511 (attribute::constant_value): New method, from
10512 dwarf2_get_attr_constant_value.
10513 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10514 Declare method.
10515 <constant_value>: New method.
10516
2b2558bf
TT
105172020-03-26 Tom Tromey <tom@tromey.com>
10518
10519 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10520 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10521 (dwarf_type_encoding_name): Move to stringify.c.
10522 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10523 * dwarf2/stringify.c: New file.
10524 * dwarf2/stringify.h: New file.
10525
eeb64781
TT
105262020-03-26 Tom Tromey <tom@tromey.com>
10527
10528 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10529 Rewrite.
10530
a39fdb41
TT
105312020-03-26 Tom Tromey <tom@tromey.com>
10532
10533 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10534 methods.
10535 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10536 (lookup_ranges_base): Likewise.
10537 (read_cutu_die_from_dwo, read_full_die_1): Update.
10538
436c571c
TT
105392020-03-26 Tom Tromey <tom@tromey.com>
10540
10541 * dwarf2/read.c (read_import_statement, read_file_scope)
10542 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10543 (read_lexical_block_scope, read_call_site_scope)
10544 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10545 (handle_struct_member_die, process_structure_scope)
10546 (update_enumeration_type_from_children)
10547 (process_enumeration_scope, read_array_type, read_common_block)
10548 (read_namespace, read_module, read_subroutine_type): Update.
10549 (sibling_die): Remove.
10550
052c8bb8
TT
105512020-03-26 Tom Tromey <tom@tromey.com>
10552
10553 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10554 (build_type_psymtabs_reader, read_structure_type)
10555 (read_enumeration_type, read_full_die_1): Update.
10556 (dwarf2_attr_no_follow): Move to die.h.
10557 * dwarf2/die.h (struct die_info) <attr>: New method.
10558
2b24b6e4
TT
105592020-03-26 Tom Tromey <tom@tromey.com>
10560
10561 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10562 <base_address>: Now an optional.
10563 (dwarf2_find_base_address, dwarf2_rnglists_process)
10564 (dwarf2_ranges_process, fill_in_loclist_baton)
10565 (dwarf2_symbol_mark_computed): Update.
10566
c2d50fd0
TT
105672020-03-26 Tom Tromey <tom@tromey.com>
10568
10569 * dwarf2/read.c (struct die_info): Move to die.h.
10570 * dwarf2/die.h: New file.
10571
0df7ad3a
TT
105722020-03-26 Tom Tromey <tom@tromey.com>
10573
10574 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10575 * dwarf2/read.c
10576 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10577 Move to line-header.c.
10578 (read_checked_initial_length_and_offset, read_formatted_entries):
10579 Likewise.
10580 (dwarf_decode_line_header): Split into two.
10581 * dwarf2/line-header.c
10582 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10583 Move from read.c.
10584 (read_checked_initial_length_and_offset, read_formatted_entries):
10585 Likewise.
10586 (dwarf_decode_line_header): New function, split from read.c.
10587
86c0bb4c
TT
105882020-03-26 Tom Tromey <tom@tromey.com>
10589
10590 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10591 Declare method.
10592 * dwarf2/read.c (read_attribute_value): Update.
10593 (dwarf2_per_objfile::read_line_string): Rename from
10594 read_indirect_line_string.
10595 (read_formatted_entries): Update.
10596
2ef46c2f
TT
105972020-03-26 Tom Tromey <tom@tromey.com>
10598
10599 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10600 variable.
10601
4f9c1eda
TT
106022020-03-26 Tom Tromey <tom@tromey.com>
10603
10604 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10605 const.
10606 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10607 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10608 parameter const.
10609
5a0e026f
TT
106102020-03-26 Tom Tromey <tom@tromey.com>
10611
10612 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10613 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10614 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10615 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10616
8844c11b
TT
106172020-03-26 Tom Tromey <tom@tromey.com>
10618
10619 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10620 file_names_size, file_full_name, file_file_name>: Use const.
10621 <file_name_at, file_names>: Add const overload.
10622 * dwarf2/line-header.c (line_header::file_file_name)
10623 (line_header::file_full_name): Update.
10624
c90ec28a
TT
106252020-03-26 Tom Tromey <tom@tromey.com>
10626
10627 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10628 (macro_start_file, consume_improper_spaces)
10629 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10630 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10631 (dwarf_decode_macros): Move to macro.c.
10632 * dwarf2/macro.c: New file.
10633 * dwarf2/macro.h: New file.
10634 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10635
4f44ae6c
TT
106362020-03-26 Tom Tromey <tom@tromey.com>
10637
10638 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10639 method.
10640 * dwarf2/section.c: New method. From
10641 read_indirect_string_at_offset_from.
10642 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10643 (read_indirect_string_at_offset_from): Move to section.c.
10644 (read_indirect_string_at_offset): Rewrite.
10645 (read_indirect_line_string_at_offset): Remove.
10646 (read_indirect_string, read_indirect_line_string)
10647 (dwarf_decode_macro_bytes): Update.
10648
a0194fa8
TT
106492020-03-26 Tom Tromey <tom@tromey.com>
10650
10651 * dwarf2/section.h (struct dwarf2_section_info)
10652 <overload_complaint>: Declare.
10653 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10654 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10655 Rename from dwarf2_section_buffer_overflow_complaint.
10656 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10657 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10658
3d27bbdb
TT
106592020-03-26 Tom Tromey <tom@tromey.com>
10660
10661 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10662 Declare.
10663 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10664 Move from read.c.
10665 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10666 to section.c.
10667
9eac9650
TT
106682020-03-26 Tom Tromey <tom@tromey.com>
10669
10670 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10671
bf80d710
TT
106722020-03-26 Tom Tromey <tom@tromey.com>
10673
10674 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10675 "builder".
10676 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10677 parameter.
10678 (dwarf_decode_macros): Update.
10679
0314b390
TT
106802020-03-26 Tom Tromey <tom@tromey.com>
10681
10682 * dwarf2/read.c (read_attribute_value): Update.
10683 (read_indirect_string_from_dwz): Move to dwz.c; change into
10684 method.
10685 (dwarf_decode_macro_bytes): Update.
10686 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10687 * dwarf2/dwz.c: New file.
10688 * Makefile.in (COMMON_SFILES): Add dwz.c.
10689
9fda78b6
TT
106902020-03-26 Tom Tromey <tom@tromey.com>
10691
10692 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10693 * dwarf2/read.c: Add include.
10694 * dwarf2/index-write.c: Add include.
10695 * dwarf2/index-cache.c: Add include.
10696 * dwarf2/dwz.h: New file.
10697
33aa3c10
TT
106982020-03-25 Tom Tromey <tom@tromey.com>
10699
10700 * compile/compile-object-load.c (get_out_value_type): Mention
10701 correct symbol name in error message.
10702
d503b685
HD
107032020-03-25 Hannes Domani <ssbssa@yahoo.de>
10704
10705 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10706
7b1eff95
TV
107072020-03-25 Tom de Vries <tdevries@suse.de>
10708
10709 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10710 * symmisc.c (dump_symtab_1): Print user and includes fields.
10711 (maintenance_info_symtabs): Same.
10712
dd895392
AB
107132020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10714
10715 PR gdb/25534
10716 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10717 (riscv_regcache_cooked_write): New function.
10718 (riscv_push_dummy_call): Use new function.
10719 (riscv_return_value): Likewise.
10720
5ab2fbf1
SM
107212020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10722
10723 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10724 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10725 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10726 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10727 * infrun.c (follow_fork): Likewise.
10728 (follow_fork_inferior): Likewise.
10729 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10730 * linux-nat.h (class linux_nat_target): Likewise.
10731 * remote.c (class remote_target) <follow_fork>: Likewise.
10732 (remote_target::follow_fork): Likewise.
10733 * target-delegates.c: Re-generate.
10734 * target.c (default_follow_fork): Likewise.
10735 (target_follow_fork): Likewise.
10736 * target.h (struct target_ops) <follow_fork>: Likewise.
10737 (target_follow_fork): Likewise.
10738
a64fafb5
TV
107392020-03-24 Tom de Vries <tdevries@suse.de>
10740
10741 * psymtab.c (maintenance_info_psymtabs): Print user field.
10742
fe26d3a3
TT
107432020-03-20 Tom Tromey <tromey@adacore.com>
10744
10745 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10746 const.
10747 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10748 const.
10749
c884cc46
SM
107502020-03-20 Simon Marchi <simon.marchi@efficios.com>
10751
10752 * ptrace.m4: Don't check for ptrace declaration.
10753 * config.in: Re-generate.
10754 * configure: Re-generate.
10755 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10756 not defined.
10757
1ff700c2
KR
107582020-03-20 Kamil Rytarowski <n54@gmx.com>
10759
10760 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10761 `PTRACE_TYPE_RET'.
10762 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10763 * sparc-nat.c (gdb_ptrace): Likewise.
10764 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10765
f7d4f0b1
TT
107662020-03-20 Tom Tromey <tromey@adacore.com>
10767
10768 * c-exp.y (lex_one_token): Fix assert.
10769
f67210ff
TT
107702020-03-20 Tom Tromey <tromey@adacore.com>
10771
10772 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10773 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10774 strncpy call.
10775
1773be9e
TT
107762020-03-20 Tom Tromey <tromey@adacore.com>
10777
10778 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10779
70304be9
TT
107802020-03-20 Tom Tromey <tromey@adacore.com>
10781
10782 * ada-valprint.c (print_variant_part): Remove parameters; switch
10783 to value-based API.
10784 (print_field_values): Likewise.
10785 (ada_val_print_struct_union): Likewise.
10786 (ada_value_print_1): Update.
10787
9faa006d
KR
107882020-03-20 Kamil Rytarowski <n54@gmx.com>
10789
10790 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10791 nbsd_nat_target instead of inf_ptrace_target.
10792 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10793 nbsd_nat_target.
10794
4a90f062
KR
107952020-03-20 Kamil Rytarowski <n54@gmx.com>
10796
10797 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10798 it to the ptrace call.
10799 * (store_registers): Likewise.
10800
108012020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10802
10803 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10804 it to the ptrace call.
10805 * (store_registers): Likewise.
10806
2d07da27
LM
108072020-03-19 Luis Machado <luis.machado@linaro.org>
10808
10809 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10810 valid, fetch vg value from ptrace.
10811
f09db380
KR
108122020-03-19 Kamil Rytarowski <n54@gmx.com>
10813 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10814 * inf-ptrace.c: Likewise.
10815 * (gdb_ptrace): Add.
10816 * (inf_ptrace_target::resume): Update.
10817 * (inf_ptrace_target::xfer_partial): Likewise.
10818 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10819 * (inf_ptrace_peek_poke): Update.
10820
fcc7376e
KR
108212020-03-19 Kamil Rytarowski <n54@gmx.com>
10822
10823 * x86-bsd-nat.c (gdb_ptrace): New.
10824 * (x86bsd_dr_set): Add new argument `ptid'.
10825 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10826 x86bsd_dr_set_addr): Update.
10827
cada5fc9
AB
108282020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10829
10830 * remote.c (remote_target::process_stop_reply): Handle events for
10831 all threads differently.
10832
19a2740f
AB
108332020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10834
10835 * completer.c (completion_tracker::remove_completion): Define new
10836 function.
10837 * completer.h (completion_tracker::remove_completion): Declare new
10838 function.
10839 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10840 when adding a C++ function symbol.
10841
724fd9ba
AB
108422020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10843
10844 * completer.c (completion_tracker::completion_hash_entry): Define
10845 new class.
10846 (advance_to_filename_complete_word_point): Call
10847 recompute_lowest_common_denominator.
10848 (completion_tracker::completion_tracker): Call discard_completions
10849 to setup the hash table.
10850 (completion_tracker::discard_completions): Allow for being called
10851 from the constructor, pass new equal function, and element deleter
10852 when constructing the hash table. Initialise new class member
10853 variables.
10854 (completion_tracker::maybe_add_completion): Remove use of
10855 m_entries_vec, and store more information into m_entries_hash.
10856 (completion_tracker::recompute_lcd_visitor): New function, most
10857 content taken from...
10858 (completion_tracker::recompute_lowest_common_denominator):
10859 ...here, this now just visits each item in the hash calling the
10860 above visitor.
10861 (completion_tracker::build_completion_result): Remove use of
10862 m_entries_vec, call recompute_lowest_common_denominator.
10863 * completer.h (completion_tracker::have_completions): Remove use
10864 of m_entries_vec.
10865 (completion_tracker::completion_hash_entry): Declare new class.
10866 (completion_tracker::recompute_lowest_common_denominator): Change
10867 function signature.
10868 (completion_tracker::recompute_lcd_visitor): Declare new function.
10869 (completion_tracker::m_entries_vec): Delete.
10870 (completion_tracker::m_entries_hash): Initialize to NULL.
10871 (completion_tracker::m_lowest_common_denominator_valid): New
10872 member variable.
10873 (completion_tracker::m_lowest_common_denominator_max_length): New
10874 member variable.
10875
5a82b8a1
KR
108762020-03-17 Kamil Rytarowski <n54@gmx.com>
10877
10878 * regformats/regdef.h: Put reg in gdb namespace.
10879
fb516a69
KR
108802020-03-17 Kamil Rytarowski <n54@gmx.com>
10881
10882 * i386-bsd-nat.c (gdb_ptrace): New.
10883 * (i386bsd_fetch_inferior_registers,
10884 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10885 * (i386bsd_fetch_inferior_registers,
10886 i386bsd_store_inferior_registers) Use gdb_ptrace.
10887
1c0aa1fb
KR
108882020-03-17 Kamil Rytarowski <n54@gmx.com>
10889
10890 * amd64-bsd-nat.c (gdb_ptrace): New.
10891 * (amd64bsd_fetch_inferior_registers,
10892 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10893 * (amd64bsd_fetch_inferior_registers,
10894 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10895
5ccd2fb7
KR
108962020-03-17 Kamil Rytarowski <n54@gmx.com>
10897
10898 * user-regs.c (user_reg::read): Rename to...
10899 (user_reg::xread): ...this.
10900 * (append_user_reg): Rename argument `read' to `xread'.
10901 * (user_reg_add_builtin): Likewise.
10902 * (user_reg_add): Likewise.
10903 * (value_of_user_reg): Likewise.
10904
2108a63a
KR
109052020-03-17 Kamil Rytarowski <n54@gmx.com>
10906
10907 * sparc-nat.c (gdb_ptrace): New.
10908 * sparc-nat.c (sparc_fetch_inferior_registers)
10909 (sparc_store_inferior_registers) Remove obsolete comment.
10910 * sparc-nat.c (sparc_fetch_inferior_registers)
10911 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10912 * sparc-nat.c (sparc_fetch_inferior_registers)
10913 (sparc_store_inferior_registers) Use gdb_ptrace.
10914
a225c9a8
KR
109152020-03-17 Kamil Rytarowski <n54@gmx.com>
10916
10917 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10918 it to the ptrace call.
10919 * sh-nbsd-nat.c (store_registers): Likewise.
10920
98097623
KR
109212020-03-17 Kamil Rytarowski <n54@gmx.com>
10922
10923 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10924 nbsd_nat_target instead of inf_ptrace_target.
10925 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10926 nbsd_nat_target.
10927
9e38d619
KR
109282020-03-17 Kamil Rytarowski <n54@gmx.com>
10929
10930 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10931
a2ecbe9f
KR
109322020-03-17 Kamil Rytarowski <n54@gmx.com>
10933
10934 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10935 <sys/sysctl.h>.
10936 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10937
58990295
TV
109382020-03-17 Tom de Vries <tdevries@suse.de>
10939
10940 PR gdb/23710
10941 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10942 fields.
10943 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10944 fields.
10945 (process_imported_unit_die): Skip import of c++ CUs.
10946
771dd3a8
TT
109472020-03-16 Tom Tromey <tom@tromey.com>
10948
10949 * p-valprint.c (pascal_object_print_value): Initialize
10950 base_value.
10951
817a7585
AK
109522020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10953 Shahab Vahedi <shahab@synopsys.com>
10954
10955 * Makefile.in: Add arch/arc.o
10956 * configure.tgt: Likewise.
10957 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10958 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 10959 (arc_read_description): New function to cache target descriptions.
817a7585
AK
10960 * arc-tdep.h (arc_read_description): Add proto type.
10961 * arch/arc.c: New file.
10962 * arch/arc.h: Likewise.
10963 * features/Makefile: Replace old target descriptions with new.
10964 * features/arc-arcompact.c: Remove.
10965 * features/arc-arcompact.xml: Likewise.
10966 * features/arc-v2.c: Likewise
10967 * features/arc-v2.xml: Likewise
10968 * features/arc/aux-arcompact.xml: New file.
10969 * features/arc/aux-v2.xml: Likewise.
10970 * features/arc/core-arcompact.xml: Likewise.
10971 * features/arc/core-v2.xml: Likewise.
10972 * features/arc/aux-arcompact.c: Generate.
10973 * features/arc/aux-v2.c: Likewise.
10974 * features/arc/core-arcompact.c: Likewise.
10975 * features/arc/core-v2.c: Likewise.
10976 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10977
67430cd0
TT
109782020-03-16 Tom Tromey <tromey@adacore.com>
10979
10980 PR gdb/25663:
10981 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10982 putting value into bcache.
10983
30efb6c7
SM
109842020-03-16 Simon Marchi <simon.marchi@efficios.com>
10985
10986 PR gdb/21500
10987 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10988 to...
10989 (amd64_windows_init_abi_common): ... this. Don't set size of
10990 long type.
10991 (amd64_windows_init_abi): New function.
10992 (amd64_cygwin_init_abi): New function.
10993 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10994 the Cygwin OS ABI.
10995 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10996 comment.
10997
8db52437
SM
109982020-03-16 Simon Marchi <simon.marchi@efficios.com>
10999
11000 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11001 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11002 (pe_import_directory_entry): New struct type.
11003 (is_linked_with_cygwin_dll): New function.
11004 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11005 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11006 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11007
5982a56a
SM
110082020-03-16 Simon Marchi <simon.marchi@efficios.com>
11009
11010 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11011 i386_cygwin_core_osabi_sniffer.
11012
7a1998df
SM
110132020-03-16 Simon Marchi <simon.marchi@efficios.com>
11014
11015 * i386-cygwin-tdep.c: Rename to...
11016 * i386-windows-tdep.c: ... this.
11017 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11018 i386-windows-tdep.c.
11019 * configure.tgt: Likewise.
11020
053205cc
SM
110212020-03-16 Simon Marchi <simon.marchi@efficios.com>
11022
11023 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11024 * osabi.c (gdb_osabi_names): Add "Windows".
11025 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11026 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11027 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11028 i386_cygwin_osabi_sniffer.
11029 (_initialize_i386_cygwin_tdep): Register OS ABI
11030 GDB_OSABI_WINDOWS for i386.
11031 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11032 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11033 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11034 for x86-64.
11035 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11036 when the target matches '*-*-mingw*'.
11037
fe4b2ee6
SM
110382020-03-16 Simon Marchi <simon.marchi@efficios.com>
11039
11040 * defs.h (enum gdb_osabi): Move to...
11041 * osabi.h (enum gdb_osabi): ... here.
11042 * gdbarch.sh: Include osabi.h in gdbarch.h.
11043 * gdbarch.h: Re-generate.
11044
cb9b645d
SM
110452020-03-16 Simon Marchi <simon.marchi@efficios.com>
11046
11047 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11048 function.
11049 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11050
3293bbaf
TT
110512020-03-14 Tom Tromey <tom@tromey.com>
11052
11053 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11054 for C++.
11055 (c_type_print_modifier): Likewise. Add "language" parameter.
11056 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11057 (c_type_print_base_1): Update.
11058 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11059 constants.
11060 * type-stack.c (type_stack::insert): Handle tp_atomic and
11061 tp_restrict.
11062 (type_stack::follow_type_instance_flags): Likewise.
11063 (type_stack::follow_types): Likewise. Merge type-following code.
11064 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11065 (space_identifier, cv_with_space_id)
11066 (const_or_volatile_or_space_identifier_noopt)
11067 (const_or_volatile_or_space_identifier): Remove.
11068 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11069 rules.
11070 (ptr_operator, typebase): Update.
11071 (enum token_flag) <FLAG_C>: New constant.
11072 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11073 "_Atomic".
11074 (lex_one_token): Handle FLAG_C.
11075
154151a6
KR
110762020-03-14 Kamil Rytarowski <n54@gmx.com>
11077
11078 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11079 it to the ptrace call.
11080 * m68k-bsd-nat.c (store_registers): Likewise.
11081
bc107784
KR
110822020-03-14 Kamil Rytarowski <n54@gmx.com>
11083
11084 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11085 gdb_byte *.
11086 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11087 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11088 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11089
01a80117
KR
110902020-03-14 Kamil Rytarowski <n54@gmx.com>
11091
11092 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11093 nbsd_nat_target instead of inf_ptrace_target.
11094 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11095 nbsd_nat_target.
11096
f90280ca
KR
110972020-03-14 Kamil Rytarowski <n54@gmx.com>
11098
11099 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11100 register_t.
11101
6def66f1
KR
111022020-03-14 Kamil Rytarowski <n54@gmx.com>
11103
11104 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11105 it to the ptrace call.
11106 * alpha-bsd-nat.c (store_registers): Likewise.
11107
66eaca97
KR
111082020-03-14 Kamil Rytarowski <n54@gmx.com>
11109
11110 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11111 includes.
11112 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11113 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11114 fill_fpregset): Likewise.
11115
4fed520b
KR
111162020-03-14 Kamil Rytarowski <n54@gmx.com>
11117
11118 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11119 nbsd_nat_target instead of inf_ptrace_target.
11120 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11121 nbsd_nat_target.
11122
2190cf06
KR
111232020-03-14 Kamil Rytarowski <n54@gmx.com>
11124
11125 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11126 register_t.
11127
75c56d3d
KR
111282020-03-14 Kamil Rytarowski <n54@gmx.com>
11129
11130 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11131 it to the ptrace call.
11132 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11133 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11134 * arm-nbsd-nat.c (store_register): Likewise.
11135 * arm-nbsd-nat.c (store_regs): Likewise.
11136 * arm-nbsd-nat.c (store_fp_register): Likewise.
11137 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11138
6018d381
KR
111392020-03-14 Kamil Rytarowski <n54@gmx.com>
11140
11141 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11142 nbsd_nat_target instead of inf_ptrace_target.
11143 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11144 nbsd_nat_target.
11145
013f99f0
KR
111462020-03-14 Kamil Rytarowski <n54@gmx.com>
11147
11148 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11149 it to the ptrace call.
11150 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11151
12753073
KR
111522020-03-14 Kamil Rytarowski <n54@gmx.com>
11153
6227b330
KR
11154 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11155 it to the ptrace call.
11156 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11157
111582020-03-14 Kamil Rytarowski <n54@gmx.com>
11159
11160 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11161 gdb_byte *.
12753073
KR
11162 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11163
d5be5fa4
KR
111642020-03-14 Kamil Rytarowski <n54@gmx.com>
11165
11166 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11167 instead of inf_ptrace_target.
11168 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11169 nbsd_nat_target.
11170
8110f842
KR
111712020-03-14 Kamil Rytarowski <n54@gmx.com>
11172
11173 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11174 register_t.
11175
52feded7
KR
111762020-03-14 Kamil Rytarowski <n54@gmx.com>
11177
11178 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11179 register_t.
11180
25567eee
KR
111812020-03-14 Kamil Rytarowski <n54@gmx.com>
11182
11183 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11184 register_t.
11185
426a9c18
TT
111862020-03-13 Tom Tromey <tom@tromey.com>
11187
11188 * value.h (val_print): Don't declare.
11189 * valprint.h (val_print_array_elements)
11190 (val_print_scalar_formatted, generic_val_print): Don't declare.
11191 * valprint.c (generic_val_print_array): Take a struct value.
11192 (generic_val_print_ptr, generic_val_print_memberptr)
11193 (generic_val_print_bool, generic_val_print_int)
11194 (generic_val_print_char, generic_val_print_complex)
11195 (generic_val_print): Remove.
11196 (generic_value_print): Update.
11197 (do_val_print): Remove unused parameters. Don't call
11198 la_val_print.
11199 (val_print): Remove.
11200 (common_val_print): Update. Don't call value_check_printable.
11201 (val_print_scalar_formatted, val_print_array_elements): Remove.
11202 * rust-lang.c (rust_val_print): Remove.
11203 (rust_language_defn): Update.
11204 * p-valprint.c (pascal_val_print): Remove.
11205 (pascal_value_print_inner): Update.
11206 (pascal_object_print_val_fields, pascal_object_print_val):
11207 Remove.
11208 (pascal_object_print_static_field): Update.
11209 * p-lang.h (pascal_val_print): Don't declare.
11210 * p-lang.c (pascal_language_defn): Update.
11211 * opencl-lang.c (opencl_language_defn): Update.
11212 * objc-lang.c (objc_language_defn): Update.
11213 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11214 * m2-lang.h (m2_val_print): Don't declare.
11215 * m2-lang.c (m2_language_defn): Update.
11216 * language.h (struct language_defn) <la_val_print>: Remove.
11217 * language.c (unk_lang_value_print_inner): Rename. Change
11218 argument types.
11219 (unknown_language_defn, auto_language_defn): Update.
11220 * go-valprint.c (go_val_print): Remove.
11221 * go-lang.h (go_val_print): Don't declare.
11222 * go-lang.c (go_language_defn): Update.
11223 * f-valprint.c (f_val_print): Remove.
11224 * f-lang.h (f_value_print): Don't declare.
11225 * f-lang.c (f_language_defn): Update.
11226 * d-valprint.c (d_val_print): Remove.
11227 * d-lang.h (d_value_print): Don't declare.
11228 * d-lang.c (d_language_defn): Update.
11229 * cp-valprint.c (cp_print_value_fields)
11230 (cp_print_value_fields_rtti, cp_print_value): Remove.
11231 (cp_print_static_field): Update.
11232 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11233 (c_val_print_struct, c_val_print_union, c_val_print_int)
11234 (c_val_print_memberptr, c_val_print): Remove.
11235 * c-lang.h (c_val_print_array, cp_print_value_fields)
11236 (cp_print_value_fields_rtti): Don't declare.
11237 * c-lang.c (c_language_defn, cplus_language_defn)
11238 (asm_language_defn, minimal_language_defn): Update.
11239 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11240 (ada_val_print_enum): Take a struct value.
11241 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11242 (ada_val_print): Remove.
11243 (ada_value_print_1): Update.
11244 (printable_val_type): Remove.
11245 * ada-lang.h (ada_val_print): Don't declare.
11246 * ada-lang.c (ada_language_defn): Update.
11247
42331a1e
TT
112482020-03-13 Tom Tromey <tom@tromey.com>
11249
11250 * valprint.c (do_val_print): Update.
11251 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11252 a struct value.
11253 (value_to_value_object_no_release): Declare.
11254 * python/py-value.c (value_to_value_object_no_release): New
11255 function.
11256 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11257 struct value.
11258 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11259 function.
11260 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11261 a struct value.
11262 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11263 Declare.
11264 (gdbscm_apply_val_pretty_printer): Take a struct value.
11265 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11266 value.
11267 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11268 value.
11269 * extension-priv.h (struct extension_language_ops)
11270 <apply_val_pretty_printer>: Take a struct value.
11271 * cp-valprint.c (cp_print_value): Create a struct value.
11272 (cp_print_value): Update.
11273
3a916a97
TT
112742020-03-13 Tom Tromey <tom@tromey.com>
11275
11276 * ada-valprint.c (print_field_values): Call common_val_print.
11277
b59eac37
TT
112782020-03-13 Tom Tromey <tom@tromey.com>
11279
11280 * ada-valprint.c (val_print_packed_array_elements): Remove
11281 bitoffset and val parameters. Call common_val_print.
11282 (ada_val_print_string): Remove offset, address, and original_value
11283 parameters.
11284 (ada_val_print_array): Update.
11285 (ada_value_print_array): New function.
11286 (ada_value_print_1): Call it.
11287
03371129
TT
112882020-03-13 Tom Tromey <tom@tromey.com>
11289
11290 * ada-valprint.c (ada_value_print): Use common_val_print.
11291
2e088f8b
TT
112922020-03-13 Tom Tromey <tom@tromey.com>
11293
11294 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11295
39ef85a8
TT
112962020-03-13 Tom Tromey <tom@tromey.com>
11297
11298 * ada-valprint.c (ada_value_print_num): New function.
11299 (ada_value_print_1): Use it.
11300
b9fa6e07
TT
113012020-03-13 Tom Tromey <tom@tromey.com>
11302
11303 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11304
416595d6
TT
113052020-03-13 Tom Tromey <tom@tromey.com>
11306
11307 * ada-valprint.c (ada_value_print_ptr): New function.
11308 (ada_value_print_1): Use it.
11309
5b5e15ec
TT
113102020-03-13 Tom Tromey <tom@tromey.com>
11311
11312 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11313 call common_val_print.
11314 (ada_val_print_1): Update.
11315 (ada_value_print_1): New function.
11316 (ada_value_print_inner): Rewrite.
11317
fbf54e75
TT
113182020-03-13 Tom Tromey <tom@tromey.com>
11319
11320 * cp-valprint.c (cp_print_value_fields): Update.
11321 (cp_print_value): New function.
11322
64b653ca
TT
113232020-03-13 Tom Tromey <tom@tromey.com>
11324
11325 * m2-valprint.c (m2_value_print_inner): Use
11326 cp_print_value_fields.
11327 * cp-valprint.c (cp_print_value_fields): New function.
11328 * c-valprint.c (c_value_print_struct): New function.
11329 (c_value_print_inner): Use c_value_print_struct.
11330 * c-lang.h (cp_print_value_fields): Declare.
11331
6999f067
TT
113322020-03-13 Tom Tromey <tom@tromey.com>
11333
11334 * c-valprint.c (c_value_print_array): New function.
11335 (c_value_print_inner): Use it.
11336
ce80b8bd
TT
113372020-03-13 Tom Tromey <tom@tromey.com>
11338
11339 * c-valprint.c (c_value_print_memberptr): New function.
11340 (c_value_print_inner): Use it.
11341
2faac269
TT
113422020-03-13 Tom Tromey <tom@tromey.com>
11343
11344 * c-valprint.c (c_value_print_int): New function.
11345 (c_value_print_inner): Use it.
11346
da3e2c29
TT
113472020-03-13 Tom Tromey <tom@tromey.com>
11348
11349 * c-valprint.c (c_value_print_ptr): New function.
11350 (c_value_print_inner): Use it.
11351
50836231
TT
113522020-03-13 Tom Tromey <tom@tromey.com>
11353
11354 * c-valprint.c (c_value_print_inner): Rewrite.
11355
4f412b6e
TT
113562020-03-13 Tom Tromey <tom@tromey.com>
11357
11358 * valprint.c (generic_value_print_complex): New function.
11359 (generic_value_print): Use it.
11360
f5354008
TT
113612020-03-13 Tom Tromey <tom@tromey.com>
11362
11363 * valprint.c (generic_val_print_float): Don't call
11364 val_print_scalar_formatted.
11365 (generic_val_print, generic_value_print): Update.
11366
3eec3b05
TT
113672020-03-13 Tom Tromey <tom@tromey.com>
11368
11369 * valprint.c (generic_value_print_char): New function
11370 (generic_value_print): Use it.
11371
fdddfccb
TT
113722020-03-13 Tom Tromey <tom@tromey.com>
11373
11374 * valprint.c (generic_value_print_int): New function.
11375 (generic_value_print): Use it.
11376
6dde7521
TT
113772020-03-13 Tom Tromey <tom@tromey.com>
11378
11379 * valprint.c (generic_value_print_bool): New function.
11380 (generic_value_print): Use it.
11381
4112d2e6
TT
113822020-03-13 Tom Tromey <tom@tromey.com>
11383
11384 * valprint.c (generic_val_print_func): Simplify.
11385 (generic_val_print, generic_value_print): Update.
11386
65786af6
TT
113872020-03-13 Tom Tromey <tom@tromey.com>
11388
11389 * valprint.c (generic_val_print_flags): Remove.
11390 (generic_val_print, generic_value_print): Update.
11391 (val_print_type_code_flags): Add original_value parameter.
11392
40f3ce18
TT
113932020-03-13 Tom Tromey <tom@tromey.com>
11394
11395 * valprint.c (generic_val_print): Update.
11396 (generic_value_print): Update.
11397 * valprint.c (generic_val_print_enum): Don't call
11398 val_print_scalar_formatted.
11399
2a5b130b
TT
114002020-03-13 Tom Tromey <tom@tromey.com>
11401
11402 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11403 * valprint.c (generic_value_print_ptr): New function.
11404
abc66ce9
TT
114052020-03-13 Tom Tromey <tom@tromey.com>
11406
11407 * valprint.c (generic_value_print): Rewrite.
11408
07a32858
TT
114092020-03-13 Tom Tromey <tom@tromey.com>
11410
11411 * p-valprint.c (pascal_object_print_value_fields)
11412 (pascal_object_print_value): New functions.
11413
64d64d3a
TT
114142020-03-13 Tom Tromey <tom@tromey.com>
11415
11416 * p-valprint.c (pascal_value_print_inner): Rewrite.
11417
6a95a1f5
TT
114182020-03-13 Tom Tromey <tom@tromey.com>
11419
11420 * f-valprint.c (f_value_print_innner): Rewrite.
11421
59fcdac6
TT
114222020-03-13 Tom Tromey <tom@tromey.com>
11423
11424 * m2-valprint.c (m2_print_unbounded_array): New overload.
11425 (m2_print_unbounded_array): Update.
11426 (m2_print_array_contents): Take a struct value.
11427 (m2_value_print_inner): Rewrite.
11428
d133c3e1
TT
114292020-03-13 Tom Tromey <tom@tromey.com>
11430
11431 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11432 (d_value_print_inner): New function.
11433 * d-lang.h (d_value_print_inner): Declare.
11434 * d-lang.c (d_language_defn): Use d_value_print_inner.
11435
23b0f06b
TT
114362020-03-13 Tom Tromey <tom@tromey.com>
11437
11438 * go-valprint.c (go_value_print_inner): New function.
11439 * go-lang.h (go_value_print_inner): Declare.
11440 * go-lang.c (go_language_defn): Use go_value_print_inner.
11441
5f56f7cb
TT
114422020-03-13 Tom Tromey <tom@tromey.com>
11443
11444 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11445 API.
11446 (rust_val_print): Rewrite.
11447 (rust_value_print_inner): New function, from rust_val_print.
11448 (rust_language_defn): Use rust_value_print_inner.
11449
26792ee0
TT
114502020-03-13 Tom Tromey <tom@tromey.com>
11451
11452 * ada-valprint.c (ada_value_print_inner): New function.
11453 * ada-lang.h (ada_value_print_inner): Declare.
11454 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11455
24051bbe
TT
114562020-03-13 Tom Tromey <tom@tromey.com>
11457
11458 * f-valprint.c (f_value_print_innner): New function.
11459 * f-lang.h (f_value_print_innner): Declare.
11460 * f-lang.c (f_language_defn): Use f_value_print_innner.
11461
c0941be6
TT
114622020-03-13 Tom Tromey <tom@tromey.com>
11463
11464 * p-valprint.c (pascal_value_print_inner): New function.
11465 * p-lang.h (pascal_value_print_inner): Declare.
11466 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11467
62c4663d
TT
114682020-03-13 Tom Tromey <tom@tromey.com>
11469
11470 * m2-valprint.c (m2_value_print_inner): New function.
11471 * m2-lang.h (m2_value_print_inner): Declare.
11472 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11473
62182190
TT
114742020-03-13 Tom Tromey <tom@tromey.com>
11475
11476 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11477 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11478 * c-valprint.c (c_value_print_inner): New function.
11479 * c-lang.h (c_value_print_inner): Declare.
11480 * c-lang.c (c_language_defn, cplus_language_defn)
11481 (asm_language_defn, minimal_language_defn): Use
11482 c_value_print_inner.
11483
1e592a8a
TT
114842020-03-13 Tom Tromey <tom@tromey.com>
11485
11486 * p-valprint.c (pascal_object_print_value_fields): Now static.
11487 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11488
7fe471e9
TT
114892020-03-13 Tom Tromey <tom@tromey.com>
11490
11491 * c-valprint.c (c_val_print_array): Simplify.
11492
d121c6ce
TT
114932020-03-13 Tom Tromey <tom@tromey.com>
11494
11495 * valprint.c (value_print_array_elements): New function.
11496 * valprint.h (value_print_array_elements): Declare.
11497
4dba70ee
TT
114982020-03-13 Tom Tromey <tom@tromey.com>
11499
11500 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11501 * mips-tdep.c (mips_print_register): Use
11502 value_print_scalar_formatted.
11503
4f9ae810
TT
115042020-03-13 Tom Tromey <tom@tromey.com>
11505
11506 * valprint.h (value_print_scalar_formatted): Declare.
11507 * valprint.c (value_print_scalar_formatted): New function.
11508
156bfec9
TT
115092020-03-13 Tom Tromey <tom@tromey.com>
11510
11511 * valprint.h (generic_value_print): Declare.
11512 * valprint.c (generic_value_print): New function.
11513
2b4e573d
TT
115142020-03-13 Tom Tromey <tom@tromey.com>
11515
11516 * valprint.c (do_val_print): Call la_value_print_inner, if
11517 available.
11518 * rust-lang.c (rust_language_defn): Update.
11519 * p-lang.c (pascal_language_defn): Update.
11520 * opencl-lang.c (opencl_language_defn): Update.
11521 * objc-lang.c (objc_language_defn): Update.
11522 * m2-lang.c (m2_language_defn): Update.
11523 * language.h (struct language_defn) <la_value_print_inner>: New
11524 member.
11525 * language.c (unknown_language_defn, auto_language_defn): Update.
11526 * go-lang.c (go_language_defn): Update.
11527 * f-lang.c (f_language_defn): Update.
11528 * d-lang.c (d_language_defn): Update.
11529 * c-lang.c (c_language_defn, cplus_language_defn)
11530 (asm_language_defn, minimal_language_defn): Update.
11531 * ada-lang.c (ada_language_defn): Update.
11532
a1f6a07c
TT
115332020-03-13 Tom Tromey <tom@tromey.com>
11534
11535 * c-valprint.c (c_value_print): Use common_val_print.
11536
410cf315
TT
115372020-03-13 Tom Tromey <tom@tromey.com>
11538
11539 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11540
72a45c93
TT
115412020-03-13 Tom Tromey <tom@tromey.com>
11542
11543 * f-valprint.c (f77_print_array_1, f_val_print): Use
11544 common_val_print.
11545
040f66bd
TT
115462020-03-13 Tom Tromey <tom@tromey.com>
11547
11548 * riscv-tdep.c (riscv_print_one_register_info): Use
11549 common_val_print.
11550
a6e05a6c
TT
115512020-03-13 Tom Tromey <tom@tromey.com>
11552
11553 * mi/mi-main.c (output_register): Use common_val_print.
11554
3444c526
TT
115552020-03-13 Tom Tromey <tom@tromey.com>
11556
11557 * infcmd.c (default_print_one_register_info): Use
11558 common_val_print.
11559
c2a44efe
TT
115602020-03-13 Tom Tromey <tom@tromey.com>
11561
11562 * valprint.h (common_val_print_checked): Declare.
11563 * valprint.c (common_val_print_checked): New function.
11564 * stack.c (print_frame_arg): Use common_val_print_checked.
11565
b0c26e99
TT
115662020-03-13 Tom Tromey <tom@tromey.com>
11567
11568 * valprint.c (do_val_print): New function, from val_print.
11569 (val_print): Use do_val_print.
11570 (common_val_print): Use do_val_print.
11571
ce3acbe9
TT
115722020-03-13 Tom Tromey <tom@tromey.com>
11573
11574 * valprint.c (value_print): Use scoped_value_mark.
11575
96c7f873
TV
115762020-03-13 Tom de Vries <tdevries@suse.de>
11577
11578 PR symtab/25646
11579 * psymtab.c (partial_symtab::partial_symtab): Don't set
11580 globals_offset and statics_offset. Push element onto
11581 current_global_psymbols and current_static_psymbols stacks.
11582 (concat): New function.
11583 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11584 element from current_global_psymbols and current_static_psymbols
11585 stacks. Concat popped elements to global_psymbols and
11586 static_symbols.
11587 (add_psymbol_to_list): Use current_global_psymbols and
11588 current_static_psymbols stacks.
11589 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11590 current_static_psymbols fields.
11591
6ba0a321
CB
115922020-03-12 Christian Biesinger <cbiesinger@google.com>
11593
11594 * corelow.c (sniff_core_bfd): Remove.
11595 (class core_target) <m_core_vec>: Remove.
11596 (core_target::core_target): Update.
11597 (core_file_fns): Remove.
11598 (deprecated_add_core_fns): Remove.
11599 (default_core_sniffer): Remove.
11600 (sniff_core_bfd): Remove.
11601 (default_check_format): Remove.
11602 (gdb_check_format): Remove.
11603 (core_target_open): Update.
11604 (core_target::get_core_register_section): Update.
11605 (get_core_registers_cb): Update.
11606 (core_target::fetch_registers): Update.
11607 * gdbcore.h (struct core_fns): Remove.
11608 (deprecated_add_core_fns): Remove.
11609 (default_core_sniffer): Remove.
11610 (default_check_format): Remove.
11611
227031b2
TT
116122020-03-12 Tom Tromey <tom@tromey.com>
11613
11614 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11615 CORE_ADDR.
11616 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11617
53807e9f
TT
116182020-03-12 Tom Tromey <tom@tromey.com>
11619
11620 * remote.c (remote_target::download_tracepoint)
11621 (remote_target::enable_tracepoint)
11622 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11623 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11624 sprintf_vma.
11625
64f25102
TT
116262020-03-12 Tom Tromey <tom@tromey.com>
11627
11628 * symfile-mem.c: Update CORE_ADDR size assert.
11629
272cd5a3
SM
116302020-03-12 Simon Marchi <simon.marchi@efficios.com>
11631
11632 * selftest.m4: Move to gdbsupport/.
11633 * acinclude.m4: Update path to selftest.m4.
11634
74cd3f9d
SM
116352020-03-12 Simon Marchi <simon.marchi@efficios.com>
11636
11637 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11638 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11639 gdbarch-selfselftests.c and selftest-arch.c.
11640 (SUBDIR_UNITTESTS_OBS): Rename to...
11641 (SELFTESTS_OBS): ... this.
11642 (COMMON_SFILES): Remove disasm-selftests.c and
11643 gdbarch-selftests.c.
11644 * configure.ac: Don't add selftest-arch.{c,o} to
11645 CONFIG_{SRCS,OBS}.
11646 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11647 preprocessor conditions.
11648
db6878ac
SM
116492020-03-12 Simon Marchi <simon.marchi@efficios.com>
11650
11651 * configure.ac: Don't source bfd/development.sh.
11652 * selftest.m4: Modify comment.
11653 * configure: Re-generate.
11654
4d696a5c
SM
116552020-03-12 Simon Marchi <simon.marchi@efficios.com>
11656
11657 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11658 not "true" or "false".
11659 * configure: Re-generate.
11660
8dd8e1c7
CB
116612020-03-12 Christian Biesinger <cbiesinger@google.com>
11662
11663 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11664 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11665 renamed to arm_nbsd_supply_gregset.
11666 (fetch_register): Update to call arm_nbsd_supply_gregset.
11667 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11668 (arm_netbsd_nat_target::fetch_registers): Update.
11669 (fetch_elfcore_registers): Removed.
11670 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11671 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11672 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11673 not require NetBSD system headers.
11674 (arm_nbsd_regset): New struct.
11675 (arm_nbsd_iterate_over_regset_sections): New function.
11676 (arm_netbsd_init_abi_common): Updated to call
11677 set_gdbarch_iterate_over_regset_sections.
11678 * arm-nbsd-tdep.h: New file.
11679
dd69bf7a
KB
116802020-03-11 Kevin Buettner <kevinb@redhat.com>
11681
11682 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11683 recursion.
11684
a0761e34
SM
116852020-03-11 Simon Marchi <simon.marchi@efficios.com>
11686
11687 * configure: Re-generate.
11688
e7a82140
TT
116892020-03-11 Tom Tromey <tromey@adacore.com>
11690
11691 * ada-typeprint.c (print_choices): Fix comment.
11692
dcc050c8
AB
116932020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11694
11695 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11696 previous item in the list, when the list has no items.
11697
1c33af77
TV
116982020-03-11 Tom de Vries <tdevries@suse.de>
11699
11700 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11701 PROP_LOCLIST handling code.
11702
8c95582d
AB
117032020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11704
11705 * buildsym-legacy.c (record_line): Pass extra parameter to
11706 record_line.
11707 * buildsym.c (buildsym_compunit::record_line): Take an extra
11708 parameter, reduce duplication in the line table, and record the
11709 is_stmt flag in the line table.
11710 * buildsym.h (buildsym_compunit::record_line): Add extra
11711 parameter.
11712 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11713 non-statement lines.
11714 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11715 this to the symtab builder.
11716 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11717 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11718 through to dwarf_record_line_1.
11719 * infrun.c (process_event_stop_test): When stepping, don't stop at
11720 a non-statement instruction, and only refresh the step info when
11721 we land in the middle of a line's range. Also add an extra
11722 comment.
11723 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11724 field.
11725 * record-btrace.c (btrace_find_line_range): Only record lines
11726 marked as is-statement.
11727 * stack.c (frame_show_address): Show the frame address if we are
11728 in a non-statement sal.
11729 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11730 (maintenance_print_one_line_table): Print a header for the is_stmt
11731 column, and include is_stmt information in the output.
11732 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11733 preference to non-statements.
11734 (find_pcs_for_symtab_line): Prefer is-statement entries.
11735 (find_line_common): Likewise.
11736 * symtab.h (struct linetable_entry): Add is_stmt field.
11737 (struct symtab_and_line): Likewise.
11738 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11739 arranging the line table.
11740
e4003a34
TV
117412020-03-07 Tom de Vries <tdevries@suse.de>
11742
11743 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11744 DIE.
11745
e8932576
TT
117462020-03-07 Tom Tromey <tom@tromey.com>
11747
11748 * valops.c (value_literal_complex): Remove obsolete comment.
11749 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11750 comment.
11751
29734269
SM
117522020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11753
11754 * infrun.h: Forward-declare thread_info.
11755 (set_step_info): Add thread_info parameter, add doc.
11756 * infrun.c (set_step_info): Add thread_info parameter, move doc
11757 to header.
11758 * infrun.c (process_event_stop_test): Pass thread to
11759 set_step_info call.
11760 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11761 set_step_info.
11762 (prepare_one_step): Add thread_info parameter, pass it to
11763 set_step_frame and prepare_one_step (recursive) call.
11764 (step_1): Pass thread to prepare_one_step call.
11765 (step_command_fsm::should_stop): Pass thread to
11766 prepare_one_step.
11767 (until_next_fsm): Pass thread to set_step_frame call.
11768 (finish_command): Pass thread to set_step_info call.
11769
b7d64b29
HD
117702020-03-06 Hannes Domani <ssbssa@yahoo.de>
11771
11772 * windows-tdep.c (windows_solib_create_inferior_hook):
11773 Check if inferior is running.
11774
09f2921c
TV
117752020-03-06 Tom de Vries <tdevries@suse.de>
11776
11777 * NEWS: Fix "the the".
11778 * ctfread.c: Same.
11779
fd760e79
TV
117802020-03-06 Tom de Vries <tdevries@suse.de>
11781
11782 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11783
20ea4a60
AB
117842020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11785
11786 * .dir-locals.el: Add a comment referencing the other copies of
11787 this file.
11788
0afbabf0
JB
117892020-03-05 John Baldwin <jhb@FreeBSD.org>
11790
11791 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11792 psargs.
11793
842806cb
TBA
117942020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11795
11796 * .gitattributes: New file.
11797
be1e3d3e
TT
117982020-03-04 Tom Tromey <tom@tromey.com>
11799
11800 * symmisc.c (print_symbol_bcache_statistics)
11801 (print_objfile_statistics): Update.
11802 * symfile.c (allocate_symtab): Use intern.
11803 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11804 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11805 macro_cache>: Remove.
11806 <string_cache>: New member.
11807 (struct objfile) <intern>: New methods.
11808 * elfread.c (elf_symtab_read): Use intern.
11809 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11810 (dwarf2_compute_name, dwarf2_physname)
11811 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11812 names.
11813 (guess_partial_die_structure_name): Update.
11814 (partial_die_info::fixup): Intern name.
11815 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11816 name.
11817 (dwarf2_name): Intern name. Update.
11818 * buildsym.c (buildsym_compunit::get_macro_table): Use
11819 string_cache.
11820
4e7625fd
TT
118212020-03-04 Tom Tromey <tom@tromey.com>
11822
11823 * jit.c (bfd_open_from_target_memory): Make "target" const.
11824 * corefile.c (gnutarget): Now const.
11825 * gdbcore.h (gnutarget): Now const.
11826
46f9f931
HD
118272020-03-04 Hannes Domani <ssbssa@yahoo.de>
11828
11829 * NEWS: Mention support for WOW64 processes.
11830 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11831 (amd64_windows_segment_register_p): Remove static.
11832 (_initialize_amd64_windows_nat): Update.
11833 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11834 * i386-windows-nat.c (context_offset): Update.
11835 (i386_mappings): Rename and remove static.
11836 (i386_windows_segment_register_p): Remove static.
11837 (_initialize_i386_windows_nat): Update.
11838 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11839 (STATUS_WX86_SINGLE_STEP): New macro.
11840 (EnumProcessModulesEx): New macro.
11841 (Wow64SuspendThread): New macro.
11842 (Wow64GetThreadContext): New macro.
11843 (Wow64SetThreadContext): New macro.
11844 (Wow64GetThreadSelectorEntry): New macro.
11845 (windows_set_context_register_offsets): Add static.
11846 (windows_set_segment_register_p): Likewise.
11847 (windows_add_thread): Adapt for WOW64 processes.
11848 (windows_fetch_one_register): Likewise.
11849 (windows_nat_target::fetch_registers): Likewise.
11850 (windows_store_one_register): Likewise.
11851 (display_selector): Likewise.
11852 (display_selectors): Likewise.
11853 (handle_exception): Likewise.
11854 (windows_continue): Likewise.
11855 (windows_nat_target::resume): Likewise.
11856 (windows_add_all_dlls): Likewise.
11857 (do_initial_windows_stuff): Likewise.
11858 (windows_nat_target::attach): Likewise.
11859 (windows_get_exec_module_filename): Likewise.
11860 (windows_nat_target::create_inferior): Likewise.
11861 (windows_xfer_siginfo): Likewise.
11862 (_initialize_loadable): Initialize Wow64SuspendThread,
11863 Wow64GetThreadContext, Wow64SetThreadContext,
11864 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11865 * windows-nat.h (windows_set_context_register_offsets):
11866 Remove declaration.
11867 (windows_set_segment_register_p): Likewise.
11868 (i386_windows_segment_register_p): Add declaration.
11869 (amd64_windows_segment_register_p): Likewise.
11870
440cf44e
LM
118712020-03-04 Luis Machado <luis.machado@linaro.org>
11872
11873 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11874 in "info registers" for AArch64/ARM.
11875
11876 The change caused "info registers" to not print GPR's.
11877
11878 gdb/ChangeLog:
11879
11880 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11881
11882 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11883 when reg->group is empty and reggroup is not.
11884
1009d92f
TT
118852020-03-03 Tom Tromey <tromey@adacore.com>
11886
11887 * dwarf2/frame.c (struct dwarf2_frame_cache)
11888 <checked_tailcall_bottom, entry_cfa_sp_offset,
11889 entry_cfa_sp_offset_p>: Remove members.
11890 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11891 (dwarf2_frame_prev_register): Don't call
11892 dwarf2_tailcall_sniffer_first.
11893 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11894 * frame-unwind.c (add_unwinder): New fuction.
11895 (frame_unwind_init): Use it. Add tailcall unwinder.
11896
5e5d66b6
AB
118972020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11898 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11899
11900 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11901 value should be printed as true.
11902
584cf46d
HD
119032020-03-03 Hannes Domani <ssbssa@yahoo.de>
11904
11905 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11906 (windows_init_abi): Set and use windows_so_ops.
11907
7b973adc
SDJ
119082020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11909
11910 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11911 when verifying if dealing with a convenience variable.
11912
bb7b70ab
LM
119132020-03-03 Luis Machado <luis.machado@linaro.org>
11914
11915 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11916
9822cb57
SM
119172020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11918
11919 * infrun.c (gdbarch_supports_displaced_stepping): New.
11920 (use_displaced_stepping): Break up conditions in smaller pieces.
11921 Use gdbarch_supports_displaced_stepping.
11922 (displaced_step_prepare_throw): Use
11923 gdbarch_supports_displaced_stepping.
11924
63e163f2
AB
119252020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11926
11927 * NEWS: Mention new behaviour of the history filename.
11928 * top.c (write_history_p): Add comment.
11929 (show_write_history_p): Add header comment, give a different
11930 message when history writing is on, but the history filename is
11931 empty.
11932 (history_filename): Add comment.
11933 (history_filename_empty): New function.
11934 (show_history_filename): Add header comment, give a different
11935 message when the filename is empty.
11936 (init_history): Compare history_filename against nullptr, and only
11937 read history if the filename is not empty.
11938 (set_history_filename): Add header comment, and only make
11939 non-empty filenames absolute.
11940 (init_main): Make the filename argument to 'set history filename'
11941 optional.
11942
81b86b97
CB
119432020-03-02 Christian Biesinger <cbiesinger@google.com>
11944
11945 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11946 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11947 (fetch_fp_register): Update.
11948 (fetch_fp_regs): Update.
11949 (store_fp_register): Update.
11950 (store_fp_regs): Update.
11951 (arm_netbsd_nat_target::read_description): New function.
11952 (fetch_elfcore_registers): Update.
11953
24ed6739
AB
119542020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11955
11956 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11957 general_thread if the stop reply is missing a thread-id.
11958 (remote_target::process_stop_reply): Use the first non-exited
11959 thread if the target didn't pass a thread-id.
11960 * infrun.c (do_target_wait): Move call to
11961 switch_to_inferior_no_thread to ....
11962 (do_target_wait_1): ... here.
11963
a84bb2a0
JT
119642020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11965
11966 * debuginfod-support.c: Include defs.h first.
11967
658dadf0
TV
119682020-02-28 Tom de Vries <tdevries@suse.de>
11969
11970 * symfile.c (set_initial_language): Use default language for lookup.
11971
4ebe4877
SM
119722020-02-28 Simon Marchi <simon.marchi@efficios.com>
11973
11974 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11975 reader variable, pass `this` to read_cutu_die_from_dwo.
11976
e5da1139
AM
119772020-02-27 Aaron Merey <amerey@redhat.com>
11978
11979 * source.c (open_source_file): Check for nullptr when computing
11980 srcpath.
11981
317f7127
TT
119822020-02-27 Tom Tromey <tromey@adacore.com>
11983
11984 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11985 member.
11986 (dwarf2_add_field): Don't update nfields.
11987 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11988
3104d9ee
AB
119892020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11990
11991 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11992 abs.
11993
b83470bf
TT
119942020-02-26 Tom Tromey <tom@tromey.com>
11995
11996 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11997 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11998 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11999 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12000 per_cu_data.
12001
edfe0a0c
TT
120022020-02-26 Tom Tromey <tom@tromey.com>
12003
12004 * dwarf2/index-write.c (psym_index_map): Change type.
12005 (add_address_entry_worker, write_one_signatured_type)
12006 (recursively_count_psymbols, recursively_write_psymbols)
12007 (class debug_names, psyms_seen_size, write_gdbindex)
12008 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12009
0d79cdc4
AM
120102020-02-26 Aaron Merey <amerey@redhat.com>
12011
12012 * Makefile.in: Handle optional debuginfod support.
12013 * NEWS: Update.
12014 * README: Add --with-debuginfod summary.
12015 * config.in: Regenerate.
12016 * configure: Regenerate.
12017 * configure.ac: Handle optional debuginfod support.
12018 * debuginfod-support.c: debuginfod helper functions.
12019 * debuginfod-support.h: Ditto.
12020 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12021 summary.
12022 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12023 when a dwz file cannot be found.
12024 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12025 debuginfo file cannot be found.
12026 * source.c (open_source_file): Query debuginfod servers when a
12027 source file cannot be found.
12028 * top.c (print_gdb_configuration): Include
12029 --{with,without}-debuginfod in the output.
12030
b65ce565
JG
120312020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12032
12033 * thread.c (thr_try_catch_cmd): Print thread name.
12034
d4c9a4f8
SM
120352020-02-26 Simon Marchi <simon.marchi@efficios.com>
12036
12037 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12038 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12039 dwarf2_fetch_die_type_sect_off): Move to...
12040 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12041 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12042 dwarf2_fetch_die_type_sect_off): ... here.
12043 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12044 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12045 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12046
0dce4280
TV
120472020-02-26 Tom de Vries <tdevries@suse.de>
12048
12049 PR gdb/25603
12050 * symfile.c (set_initial_language): Exit-early if
12051 language_mode == language_mode_manual.
12052
450a1bfc
SM
120532020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12054
12055 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12056 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12057 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12058
9e80cfa1
AB
120592020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12060
12061 * gdbtypes.c (create_array_type_with_stride): Handle negative
12062 array strides.
12063 * valarith.c (value_subscripted_rvalue): Likewise.
12064
09624f1f
LM
120652020-02-25 Luis Machado <luis.machado@linaro.org>
12066
12067 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12068
8cb5117c
SM
120692020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12070
12071 * loc.h (dwarf2_get_die_type): Move to...
12072 * read.h (dwarf2_get_die_type): ... here.
12073 * read.c (dwarf2_get_die_type): Move doc to header.
12074
c325c44e
JB
120752020-02-25 Joel Brobecker <brobecker@adacore.com>
12076
12077 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12078 'gnulib/Makefile.in' to the list.
12079
4ac93832
TT
120802020-02-24 Tom Tromey <tom@tromey.com>
12081
12082 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12083 Remove.
12084 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12085 XOBNEWVEC.
12086
197400e8
TT
120872020-02-24 Tom Tromey <tom@tromey.com>
12088
12089 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12090 New method.
12091 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12092 (dw2_do_instantiate_symtab, dw2_get_file_names)
12093 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12094
76935768
TT
120952020-02-24 Tom Tromey <tom@tromey.com>
12096
12097 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12098 make_scoped_restore.
12099 (dwarf2_psymtab::read_symtab): Don't clear
12100 reading_partial_symbols.
12101
a88ef40d
TV
121022020-02-24 Tom de Vries <tdevries@suse.de>
12103
12104 PR gdb/25592
12105 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12106
c9af6521
TV
121072020-02-24 Tom de Vries <tdevries@suse.de>
12108
12109 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12110 commands layout next/prev/regs.
12111
5707a07a
TT
121122020-02-22 Tom Tromey <tom@tromey.com>
12113
12114 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12115 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12116
3b0fb49e
TT
121172020-02-22 Tom Tromey <tom@tromey.com>
12118
12119 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12120
283be8bf
TT
121212020-02-22 Tom Tromey <tom@tromey.com>
12122
12123 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12124 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12125 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12126 * tui/tui.c (_initialize_tui): Add usage text.
12127
ca793b96
TT
121282020-02-22 Tom Tromey <tom@tromey.com>
12129
12130 * tui/tui-win.c (tui_set_focus_command)
12131 (tui_set_win_height_command): Use error_no_arg.
12132 (_initialize_tui_win): Update help text.
12133 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12134
432b5c40
TT
121352020-02-22 Tom Tromey <tom@tromey.com>
12136
12137 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12138 * tui/tui-disasm.h (struct tui_disasm_window)
12139 <display_start_addr>: Declare.
12140 * tui/tui-source.h (struct tui_source_window)
12141 <display_start_addr>: Declare.
12142 * tui/tui-winsource.h (struct tui_source_window_base)
12143 <show_source_line, display_start_addr>: New methods.
12144 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12145 Rename and move to protected section.
12146 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12147 (tui_source_window_base::do_erase_source_content): Update.
12148 (tui_source_window_base::show_source_line): Now a method.
12149 (tui_source_window_base::show_source_content)
12150 (tui_source_window_base::tui_source_window_base)
12151 (tui_source_window_base::rerender)
12152 (tui_source_window_base::refill)
12153 (tui_source_window_base::do_scroll_horizontal)
12154 (tui_source_window_base::set_is_exec_point_at)
12155 (tui_source_window_base::update_breakpoint_info)
12156 (tui_source_window_base::update_exec_info): Update.
12157 * tui/tui-source.c (tui_source_window::set_contents)
12158 (tui_source_window::showing_source_p)
12159 (tui_source_window::do_scroll_vertical)
12160 (tui_source_window::location_matches_p)
12161 (tui_source_window::line_is_displayed): Update.
12162 (tui_source_window::display_start_addr): New method.
12163 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12164 (tui_disasm_window::do_scroll_vertical)
12165 (tui_disasm_window::location_matches_p): Update.
12166 (tui_disasm_window::display_start_addr): New method.
12167
01b1af32
TT
121682020-02-22 Tom Tromey <tom@tromey.com>
12169
12170 * NEWS: Add entry for gdb.register_window_type.
12171 * tui/tui-layout.h (window_factory): New typedef.
12172 (tui_register_window): Declare.
12173 * tui/tui-layout.c (saved_tui_windows): New global.
12174 (tui_apply_current_layout): Use it.
12175 (tui_register_window): New function.
12176 * python/python.c (do_start_initialization): Call
12177 gdbpy_initialize_tui.
12178 (python_GdbMethods): Add "register_window_type" function.
12179 * python/python-internal.h (gdbpy_register_tui_window)
12180 (gdbpy_initialize_tui): Declare.
12181 * python/py-tui.c: New file.
12182 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12183
fc96d20b
TT
121842020-02-22 Tom Tromey <tom@tromey.com>
12185
12186 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12187
935c78c0
TT
121882020-02-22 Tom Tromey <tom@tromey.com>
12189
12190 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12191 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12192 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12193 (tui_set_win_focus_to): Move from tui-win.c.
12194
0240c8f1
TT
121952020-02-22 Tom Tromey <tom@tromey.com>
12196
12197 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12198 functions.
12199 (known_window_types): New global.
12200 (tui_get_window_by_name): Reimplement.
12201 (initialize_known_windows): New function.
12202 (validate_window_name): Rewrite.
12203 (_initialize_tui_layout): Call initialize_known_windows.
12204
fdb01f0c
TT
122052020-02-22 Tom Tromey <tom@tromey.com>
12206
12207 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12208 Remove constants.
12209 * tui/tui-winsource.h (struct tui_source_window_base)
12210 <tui_source_window_base>: Remove parameter.
12211 * tui/tui-winsource.c
12212 (tui_source_window_base::tui_source_window_base): Remove
12213 parameter.
12214 (tui_source_window_base::refill): Update.
12215 * tui/tui-stack.h (struct tui_locator_window)
12216 <tui_locator_window>: Update.
12217 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12218 Default the constructor.
12219 * tui/tui-regs.h (struct tui_data_item_window)
12220 <tui_data_item_window>: Default the constructor.
12221 (struct tui_data_window) <tui_data_window>: Likewise.
12222 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12223 Default the constructor.
12224 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12225 Default the constructor.
12226 <type>: Remove.
12227 (struct tui_win_info) <tui_win_info>: Default the constructor.
12228 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12229 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12230 Default the constructor.
12231
865a5aec
TT
122322020-02-22 Tom Tromey <tom@tromey.com>
12233
12234 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12235 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12236 * tui/tui-win.c (tui_resize_all): Don't call
12237 tui_delete_invisible_windows.
12238 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12239 done.
12240 (tui_set_layout): Update.
12241 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12242 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12243 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12244
e098d18c
TT
122452020-02-22 Tom Tromey <tom@tromey.com>
12246
12247 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12248 correctly.
12249
eb9c8874
TT
122502020-02-22 Tom Tromey <tom@tromey.com>
12251
12252 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12253
7eed1a8e
TT
122542020-02-22 Tom Tromey <tom@tromey.com>
12255
12256 * tui/tui-winsource.h (struct tui_source_window_iterator)
12257 <inner_iterator>: New etytypedef.
12258 <tui_source_window_iterator>: Take "end" parameter.
12259 <tui_source_window_iterator>: Take iterator.
12260 <operator*, advance>: Update.
12261 <m_iter>: Change type.
12262 <m_end>: New field.
12263 (struct tui_source_windows) <begin, end>: Update.
12264 * tui/tui-layout.c (tui_windows): New global.
12265 (tui_apply_current_layout): Clear tui_windows.
12266 (tui_layout_window::apply): Update tui_windows.
12267 * tui/tui-data.h (tui_windows): Declare.
12268 (all_tui_windows): Now inline function.
12269 (class tui_window_iterator, struct all_tui_windows): Remove.
12270
7c043ba6
TT
122712020-02-22 Tom Tromey <tom@tromey.com>
12272
12273 PR tui/17850:
12274 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12275 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12276 "height" argument.
12277 (class tui_layout_window) <get_sizes>: Likewise.
12278 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12279 argument.
12280 <get_sizes>: Add "height" argument.
12281 <m_vertical>: New field.
12282 * tui/tui-layout.c (tui_layout_split::clone): Update.
12283 (tui_layout_split::get_sizes): Add "height" argument.
12284 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12285 (tui_new_layout_command): Parse "-horizontal".
12286 (_initialize_tui_layout): Update help string.
12287 (tui_layout_split::specification): Add "-horizontal" when needed.
12288 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12289 argument.
12290 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12291 New methods.
12292
6bc56648
TT
122932020-02-22 Tom Tromey <tom@tromey.com>
12294
12295 * tui/tui-layout.h (enum tui_adjust_result): New.
12296 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12297 (class tui_layout_window) <adjust_size>: Return
12298 tui_adjust_result. Rewrite.
12299 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12300 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12301
c22fef7e
TT
123022020-02-22 Tom Tromey <tom@tromey.com>
12303
12304 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12305 parameter and return types.
12306 (class tui_layout_base) <specification>: Add "depth".
12307 (class tui_layout_window) <specification>: Add "depth".
12308 (class tui_layout_split) <specification>: Add "depth".
12309 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12310 and return types.
12311 (tui_new_layout_command): Parse sub-layouts.
12312 (_initialize_tui_layout): Update help string.
12313 (tui_layout_window::specification): Add "depth".
12314 (add_layout_command): Update.
12315
ee325b61
TT
123162020-02-22 Tom Tromey <tom@tromey.com>
12317
12318 * NEWS: Add "tui new-layout" item.
12319 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12320 Add new-layout command to help text.
12321 (validate_window_name): New function.
12322 (tui_new_layout_command): New function.
12323 (_initialize_tui_layout): Register "new-layout".
12324 (tui_layout_window::specification): New method.
12325 (tui_layout_window::specification): New method.
12326 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12327 method.
12328 (class tui_layout_window) <specification>: New method.
12329 (class tui_layout_split) <specification>: New method.
12330
416eb92d
TT
123312020-02-22 Tom Tromey <tom@tromey.com>
12332
12333 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12334 * tui/tui-win.c (window_name_completer): Update comment.
12335 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12336 Declare method.
12337 (class tui_layout_window) <replace_window>: Likewise.
12338 (class tui_layout_split) <replace_window>: Likewise.
12339 (tui_set_layout): Don't declare.
12340 (tui_set_initial_layout): Declare function.
12341 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12342 (asm_regs_layout): New globals.
12343 (tui_current_layout, show_layout): Remove.
12344 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12345 (find_layout, tui_apply_layout): New function.
12346 (layout_completer): Remove.
12347 (tui_next_layout): Reimplement.
12348 (tui_next_layout_command): New function.
12349 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12350 (tui_regs_layout): Reimplement.
12351 (tui_regs_layout_command): New function.
12352 (extract_display_start_addr): Rewrite.
12353 (next_layout, prev_layout): Remove.
12354 (tui_layout_window::replace_window): New method.
12355 (tui_layout_split::replace_window): New method.
12356 (destroy_layout): New function.
12357 (layout_list): New global.
12358 (add_layout_command): New function.
12359 (initialize_layouts): Update.
12360 (tui_layout_command): New function.
12361 (_initialize_tui_layout): Install "layout" commands.
12362 * tui/tui-data.h (enum tui_layout_type): Remove.
12363 (tui_current_layout): Don't declare.
12364
0dbc2fc7
TT
123652020-02-22 Tom Tromey <tom@tromey.com>
12366
12367 * tui/tui-regs.c (tui_reg_layout): Remove.
12368 (tui_reg_command): Use tui_regs_layout.
12369 * tui/tui-layout.h (tui_reg_command): Declare.
12370 * tui/tui-layout.c (tui_reg_command): New function.
12371
5afe342e
TT
123722020-02-22 Tom Tromey <tom@tromey.com>
12373
12374 * tui/tui.c (tui_rl_delete_other_windows): Call
12375 tui_remove_some_windows.
12376 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12377 Declare method.
12378 (class tui_layout_window) <remove_windows>: New method.
12379 (class tui_layout_split) <remove_windows>: Declare.
12380 (tui_remove_some_windows): Declare.
12381 * tui/tui-layout.c (tui_remove_some_windows): New function.
12382 (tui_layout_split::remove_windows): New method.
12383
427326a8
TT
123842020-02-22 Tom Tromey <tom@tromey.com>
12385
12386 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12387 * tui/tui-layout.h (tui_next_layout): Declare.
12388 * tui/tui-layout.c (tui_next_layout): New function.
12389
3fe12b6d
TT
123902020-02-22 Tom Tromey <tom@tromey.com>
12391
12392 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12393 correct coordinates.
12394
59b8b5d2
TT
123952020-02-22 Tom Tromey <tom@tromey.com>
12396
12397 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12398 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12399 DATA_WIN case.
12400
2a3d458b
TT
124012020-02-22 Tom Tromey <tom@tromey.com>
12402
12403 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12404 TUI_DISASM_WIN, not tui_win_list.
12405
3f0cbb04
TT
124062020-02-22 Tom Tromey <tom@tromey.com>
12407
12408 * valprint.c (generic_val_print_enum_1)
12409 (val_print_type_code_flags): Style member names.
12410 * rust-lang.c (val_print_struct, rust_print_enum)
12411 (rust_print_struct_def, rust_internal_print_type): Style member
12412 names.
12413 * p-valprint.c (pascal_object_print_value_fields): Style member
12414 names. Only call fprintf_symbol_filtered for static members.
12415 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12416 * f-valprint.c (f_val_print): Style member names.
12417 * f-typeprint.c (f_type_print_base): Style member names.
12418 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12419 call fprintf_symbol_filtered for static members.
12420 (cp_print_class_member): Style member names.
12421 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12422 member names.
12423 * ada-valprint.c (ada_print_scalar): Style enum names.
12424 (ada_val_print_enum): Likewise.
12425 * ada-typeprint.c (print_enum_type): Style enum names.
12426
d4d947ae
TT
124272020-02-21 Tom Tromey <tom@tromey.com>
12428
12429 * psympriv.h (struct partial_symtab): Update comment.
12430
e94e944b
TT
124312020-02-21 Tom Tromey <tromey@adacore.com>
12432
12433 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12434 type is CORE_ADDR.
12435
1eb73179
TV
124362020-02-21 Tom de Vries <tdevries@suse.de>
12437
12438 PR gdb/25534
12439 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12440 if dependencies[i]->user != NULL.
12441
4f180d53
AT
124422020-02-21 Ali Tamur <tamur@google.com>
12443
12444 * dwarf2/read.c (dwarf2_name): Add null check.
12445
22b6cd70
TT
124462020-02-20 Tom Tromey <tom@tromey.com>
12447
12448 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12449 ">=", in binary search.
12450 (dwarf2_find_containing_comp_unit): New overload.
12451 (run_test): New self-test.
12452 (_initialize_dwarf2_read): Register new test.
12453
bd0cf5a6
NC
124542020-02-20 Nelson Chu <nelson.chu@sifive.com>
12455
12456 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12457 * riscv-tdep.h: Likewise.
12458 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12459 rv32-only CSR.
12460 * features/riscv/64bit-csr.xml: Regenerated.
12461
3f702acd
SDJ
124622020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12463 Tom Tromey <tom@tromey.com>
12464
12465 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12466 of 'fputc_unfiltered'.
12467 (putchar_unfiltered): Call 'fputc_unfiltered'.
12468 (fputc_unfiltered): Call 'fputs_unfiltered'.
12469
d13c7322
AB
124702020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12471
12472 * config.in: Regenerate.
12473 * configure: Regenerate.
12474 * configure.ac: Add --with-python-libdir option.
12475 * main.c: Use WITH_PYTHON_LIBDIR.
12476
869d8950
TT
124772020-02-19 Tom Tromey <tom@tromey.com>
12478
12479 * symtab.c (general_symbol_info::compute_and_set_names): Use
12480 obstack_strndup. Simplify call to symbol_set_demangled_name.
12481
298e9637
SM
124822020-02-19 Simon Marchi <simon.marchi@efficios.com>
12483
12484 * dwarf2/read.c (allocate_signatured_type_table,
12485 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12486 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12487 Remove objfile parameter, update all callers.
12488
08410482
DE
124892020-02-19 Doug Evans <dje@google.com>
12490
12491 PR rust/25535
12492 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12493 rust_enum_variant calculation.
12494
dfdeeca1
TT
124952020-02-19 Tom Tromey <tromey@adacore.com>
12496
12497 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12498
2ef5453b
TT
124992020-02-19 Tom Tromey <tromey@adacore.com>
12500
12501 * ada-lang.c (cache_symbol): Use obstack_strdup.
12502
9f1528a1
AB
125032020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12504
12505 * configure: Regenerate.
12506
d3c22fa8
TT
125072020-02-19 Tom Tromey <tromey@adacore.com>
12508
12509 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12510 NULL check.
12511
bf84f706
MR
125122020-02-19 Maciej W. Rozycki <macro@wdc.com>
12513
12514 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12515
d1c9b20f
AB
125162020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12517
12518 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12519 if GDBSERVER is not defined.
12520 (riscv_tdesc_cache): Likewise, also store const target_desc.
12521 (STATIC_IN_GDB): Define.
12522 (riscv_create_target_description): Update declaration with
12523 STATIC_IN_GDB.
12524 (riscv_lookup_target_description): New function, only define if
12525 GDBSERVER is not defined.
12526 * arch/riscv.h (riscv_create_target_description): Declare only
12527 when GDBSERVER is defined.
12528 (riscv_lookup_target_description): New declaration when GDBSERVER
12529 is not defined.
12530 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12531 (riscv_linux_read_features): ...this, and return
12532 riscv_gdbarch_features instead of target_desc.
12533 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12534 (riscv_linux_read_description): Rename to...
12535 (riscv_linux_read_features): ...this.
12536 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12537 Update to use riscv_gdbarch_features and
12538 riscv_lookup_target_description.
12539 * riscv-tdep.c (riscv_find_default_target_description): Use
12540 riscv_lookup_target_description instead of
12541 riscv_create_target_description.
12542
373d7ac0
SM
125432020-02-18 Simon Marchi <simon.marchi@efficios.com>
12544
12545 * valprint.c (generic_val_print_enum_1): When printing a flag
12546 enum with value 0 and there is no enumerator with value 0, print
12547 just "0" instead of "(unknown: 0x0)".
12548
b29a2df0
SM
125492020-02-18 Simon Marchi <simon.marchi@efficios.com>
12550
12551 * valprint.c (generic_val_print_enum_1): Print unknown part of
12552 flag enum in hex.
12553
6740f0cc
SM
125542020-02-18 Simon Marchi <simon.marchi@efficios.com>
12555
12556 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12557 flag enums to contain duplicate enumerators.
12558 * valprint.c (generic_val_print_enum_1): Update comment.
12559
edd45eb0
SM
125602020-02-18 Simon Marchi <simon.marchi@efficios.com>
12561
12562 * dwarf2/read.c: Include "count-one-bits.h".
12563 (update_enumeration_type_from_children): If an enumerator has
12564 multiple bits set, don't treat the enumeration as a "flag enum".
12565 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12566 of flag enums have 0 or 1 bit set.
12567
6d0cf446
BE
125682020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12569
12570 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12571 conversion.
12572 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12573 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12574 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12575 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12576 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12577
7001c1b7
SM
125782020-02-18 Simon Marchi <simon.marchi@efficios.com>
12579
12580 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12581
fdb61c6c
SM
125822020-02-14 Simon Marchi <simon.marchi@efficios.com>
12583
12584 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12585 displaced_step_closure_up.
12586 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12587 (struct displaced_step_closure_up):
12588 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12589 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12590 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12591 Likewise.
12592 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12593 * gdbarch.c, gdbarch.h: Re-generate.
12594 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12595 displaced_step_closure_up.
12596 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12597 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12598 * infrun.h (displaced_step_closure_up): New type alias.
12599 (struct displaced_step_inferior_state) <step_closure>: Change
12600 type to displaced_step_closure_up.
12601 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12602 displaced_step_closure_up.
12603 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12604
a4a38eb4
TT
126052020-02-14 Tom Tromey <tom@tromey.com>
12606
12607 * minidebug.c (gnu_debug_key): New global.
12608 (find_separate_debug_file_in_section): Use it.
12609
e8217e61
SM
126102020-02-14 Simon Marchi <simon.marchi@efficios.com>
12611
12612 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12613 std::unique_ptr.
12614 * gdbarch.c: Re-generate.
12615 * gdbarch.h: Re-generate.
12616 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12617 change.
12618 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12619 type to std::unique_ptr.
12620 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12621 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12622 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12623 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12624 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12625 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12626 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12627 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12628 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12629
d8d83535
SM
126302020-02-14 Simon Marchi <simon.marchi@efficios.com>
12631
12632 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12633 std::unique_ptr.
12634 (displaced_step_clear): Rename to...
12635 (displaced_step_reset): ... this. Just call displaced->reset ().
12636 (displaced_step_clear_cleanup): Rename to...
12637 (displaced_step_reset_cleanup): ... this.
12638 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12639 (displaced_step_fixup): Likewise.
12640 (resume_1): Likewise.
12641 (handle_inferior_event): Restore child's memory before calling
12642 displaced_step_fixup on the parent.
12643 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12644 to std::unique_ptr.
12645 <step_closure>: Change type to std::unique_ptr.
12646
5f661e03
SM
126472020-02-14 Simon Marchi <simon.marchi@efficios.com>
12648
12649 * arm-tdep.c: Include count-one-bits.h.
12650 (cleanup_block_store_pc): Use count_one_bits.
12651 (cleanup_block_load_pc): Use count_one_bits.
12652 (arm_copy_block_xfer): Use count_one_bits.
12653 (thumb2_copy_block_xfer): Use count_one_bits.
12654 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12655 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12656 (thumb_get_next_pcs_raw): Use count_one_bits.
12657 (arm_get_next_pcs_raw): Use count_one_bits_l.
12658 * arch/arm.c (bitcount): Remove.
12659 * arch/arm.h (bitcount): Remove.
12660
8084e579
TT
126612020-02-14 Tom Tromey <tromey@adacore.com>
12662
12663 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12664 Update.
12665 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12666 * dwarf2/loc.c (call_site_find_chain_1): Return
12667 unique_xmalloc_ptr.
12668 (call_site_find_chain): Likewise.
12669
258bf0ee
RB
126702020-02-14 Richard Biener <rguenther@suse.de>
12671
12672 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12673 on expression with division operators.
12674
f98a8458
AKS
126752020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12676
12677 * MAINTAINERS (Write After Approval): Adding myself.
12678
d1437c0e
TT
126792020-02-12 Tom Tromey <tom@tromey.com>
12680
12681 * event-loop.c (event_data, gdb_event, event_handler_func):
12682 Remove.
12683
3d4560f7
TT
126842020-02-12 Tom Tromey <tom@tromey.com>
12685
12686 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12687 (dwarf2_frame_objfile_data): Add comment.
12688 (find_comp_unit, set_comp_unit): New functions.
12689 (dwarf2_frame_find_fde): Use find_comp_unit.
12690 (dwarf2_build_frame_info): Use set_comp_unit.
12691
21982304
TT
126922020-02-12 Tom Tromey <tom@tromey.com>
12693
12694 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12695 (comp_unit): Don't initialize objfile.
12696 (execute_cfa_program): Add text_offset parameter.
12697 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12698 (dwarf2_frame_cache): Update.
12699 (dwarf2_build_frame_info): Don't set "objfile" member.
12700
4debb237
TT
127012020-02-12 Tom Tromey <tom@tromey.com>
12702
12703 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12704 (decode_frame_entry): Likewise.
12705 (dwarf2_build_frame_info): Update.
12706
0d404d44
TT
127072020-02-12 Tom Tromey <tom@tromey.com>
12708
12709 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12710 (decode_frame_entry_1): Use the comp_unit obstack.
12711
a7a3ae5c
TT
127122020-02-12 Tom Tromey <tom@tromey.com>
12713
12714 * dwarf2/frame.c (struct comp_unit): Add initializers and
12715 constructor.
12716 (dwarf2_frame_objfile_data): Store a comp_unit.
12717 (dwarf2_frame_find_fde): Update.
12718 (dwarf2_build_frame_info): Use "new".
12719
a9d65418
TT
127202020-02-12 Tom Tromey <tom@tromey.com>
12721
12722 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12723 (dwarf2_fde_table): Typedef for std::vector.
12724 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12725 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12726 (decode_frame_entry): Update.
12727 (dwarf2_build_frame_info): Use "new".
12728
7559c217
CB
127292020-02-12 Christian Biesinger <cbiesinger@google.com>
12730
12731 * arm-tdep.c (arm_gdbarch_init): Update.
12732 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12733 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12734 have_neon, is_m>: Change to bool.
12735
aeefc73c
CB
127362020-02-12 Christian Biesinger <cbiesinger@google.com>
12737
12738 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12739
d27b8e5f
TT
127402020-02-12 Tom Tromey <tom@tromey.com>
12741
12742 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12743
cd5900f3
HD
127442020-02-12 Hannes Domani <ssbssa@yahoo.de>
12745
12746 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12747 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12748
f056b22b
TT
127492020-02-11 Tom Tromey <tom@tromey.com>
12750
12751 * psymtab.h: Update comment.
12752
f92ff6b5
TT
127532020-02-11 Tom Tromey <tom@tromey.com>
12754
12755 * gdb_obstack.h (struct auto_obstack): Use
12756 DISABLE_COPY_AND_ASSIGN.
12757
3fd6912b
TT
127582020-02-11 Tom Tromey <tom@tromey.com>
12759
12760 * dwarf2/frame.h (struct objfile): Don't forward declare.
12761
69ed9b74
CB
127622020-02-11 Christian Biesinger <cbiesinger@google.com>
12763
12764 * cris-tdep.c (cris_supply_gregset): Change signature to match
12765 what struct regset expects.
12766 (cris_regset): New struct.
12767 (fetch_core_registers): Remove.
12768 (cris_iterate_over_regset_sections): New function.
12769 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12770 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12771
bda874f6
CB
127722020-02-11 Christian Biesinger <cbiesinger@google.com>
12773
12774 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12775 registers.
12776
754e1564
CB
127772020-02-11 Christian Biesinger <cbiesinger@google.com>
12778
12779 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12780
8ddd8e0e
SM
127812020-02-11 Simon Marchi <simon.marchi@efficios.com>
12782
12783 * configure: Re-generate.
12784
898e7f60
SM
127852020-02-11 Simon Marchi <simon.marchi@efficios.com>
12786
12787 * configure: Re-generate.
12788
58df732b
SM
127892020-02-11 Simon Marchi <simon.marchi@efficios.com>
12790
12791 * acinclude: Update warning.m4 path.
12792 * warning.m4: Move to gdbsupport.
12793
da5bd37e
TT
127942020-02-11 Tom Tromey <tromey@adacore.com>
12795
12796 * remote.c (remote_console_output): Update.
12797 * printcmd.c (printf_command): Update.
12798 * event-loop.c (gdb_wait_for_event): Update.
12799 * linux-nat.c (sigchld_handler): Update.
12800 * remote-sim.c (gdb_os_write_stdout): Update.
12801 (gdb_os_flush_stdout): Update.
12802 (gdb_os_flush_stderr): Update.
12803 (gdb_os_write_stderr): Update.
12804 * exceptions.c (print_exception): Update.
12805 * remote-fileio.c (remote_fileio_func_read): Update.
12806 (remote_fileio_func_write): Update.
12807 * tui/tui.c (tui_enable): Update.
12808 * tui/tui-interp.c (tui_interp::init): Update.
12809 * utils.c (init_page_info): Update.
12810 (putchar_unfiltered, fputc_unfiltered): Update.
12811 (gdb_flush): Update.
12812 (emit_style_escape): Update.
12813 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12814 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12815 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12816 (stderr_file::write): Update.
12817 (stderr_file::puts): Update.
12818 * ui-file.h (ui_file_isatty, ui_file_write)
12819 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12820 (ui_file_puts): Don't declare.
12821
85f0dd3c
TV
128222020-02-10 Tom de Vries <tdevries@suse.de>
12823
12824 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12825 sentinel to char *.
12826
2e927613
TV
128272020-02-09 Tom de Vries <tdevries@suse.de>
12828
12829 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12830 filename if it matches "<artificial>".
12831
6bafc845
HD
128322020-02-09 Hannes Domani <ssbssa@yahoo.de>
12833
12834 * windows-tdep.c (struct enum_value_name): New struct.
12835 (create_enum): New function.
12836 (windows_get_siginfo_type): Create and use enum types.
12837
7928d571
HD
128382020-02-09 Hannes Domani <ssbssa@yahoo.de>
12839
12840 * NEWS: Mention $_siginfo support for Windows.
12841 * windows-nat.c (handle_exception): Set siginfo_er.
12842 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12843 (windows_xfer_siginfo): New function.
12844 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12845 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12846 (init_windows_gdbarch_data): New function.
12847 (get_windows_gdbarch_data): New function.
12848 (windows_get_siginfo_type): New function.
12849 (windows_init_abi): Register windows_get_siginfo_type.
12850 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12851
6751ebae
TT
128522020-02-08 Tom Tromey <tom@tromey.com>
12853
12854 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12855 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12856 <keep>: Declare method.
12857 <m_keep>: Remove member.
12858 <~cutu_reader>: Remove.
12859 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12860 (cutu_reader::cutu_reader): Update.
12861 (cutu_reader::keep): Rename from ~cutu_reader.
12862 (process_psymtab_comp_unit, build_type_psymtabs_1)
12863 (process_skeletonless_type_unit, load_partial_comp_unit)
12864 (load_full_comp_unit, dwarf2_read_addr_index)
12865 (read_signatured_type): Update.
12866
135f5437
TT
128672020-02-08 Tom Tromey <tom@tromey.com>
12868
12869 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12870 "want_partial_unit" parameter.
12871 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12872 Inline check for DW_TAG_partial_unit.
12873 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12874
9f66ff1c
TT
128752020-02-08 Tom Tromey <tom@tromey.com>
12876
12877 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12878 read.c.
12879 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12880 read.c.
12881
c8a7a66f
TT
128822020-02-08 Tom Tromey <tom@tromey.com>
12883
12884 * dwarf2/read.c (read_address): Move to comp-unit.c.
12885 (dwarf2_rnglists_process, dwarf2_ranges_process)
12886 (read_attribute_value, dwarf_decode_lines_1)
12887 (var_decode_location, decode_locdesc): Update.
12888 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12889 read.c. Remove "cu" parameter.
12890 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12891 method.
12892
8266302d
TT
128932020-02-08 Tom Tromey <tom@tromey.com>
12894
12895 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12896 (read_indirect_line_string): Update.
12897 * dwarf2/comp-unit.c (read_offset): Remove.
12898 (read_comp_unit_head): Update.
12899 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12900 method.
12901 (read_offset): Don't declare.
12902
4057dfde
TT
129032020-02-08 Tom Tromey <tom@tromey.com>
12904
12905 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12906 * dwarf2/read.c (struct comp_unit_head): Move to
12907 dwarf2/comp-unit.h.
12908 (enum class rcuh_kind): Move to comp-unit.h.
12909 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12910 (read_comp_unit_head, error_check_comp_unit_head)
12911 (read_and_check_comp_unit_head): Move to comp-unit.c.
12912 (read_offset, dwarf_unit_type_name): Likewise.
12913 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12914 (cutu_reader::cutu_reader, read_call_site_scope)
12915 (find_partial_die, follow_die_offset): Update.
12916 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12917
24aa364d
TT
129182020-02-08 Tom Tromey <tom@tromey.com>
12919
12920 * dwarf2/read.c (read_offset_1): Move to leb.c.
12921 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12922 (dwarf_decode_macro_bytes): Update.
12923 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12924 * dwarf2/leb.h (read_offset): Declare.
12925
2c7d5afc
TT
129262020-02-08 Tom Tromey <tom@tromey.com>
12927
12928 * dwarf2/read.c (dwarf2_section_size): Remove.
12929 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12930 Update.
12931 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12932
4075cb26
TT
129332020-02-08 Tom Tromey <tom@tromey.com>
12934
12935 * dwarf2/read.c (read_initial_length): Move to leb.c.
12936 * dwarf2/leb.h (read_initial_length): Declare.
12937 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12938 handle_nonstd parameter.
12939 * dwarf2/frame.c (read_initial_length): Remove.
12940 (decode_frame_entry_1): Update.
12941
09ba997f
TT
129422020-02-08 Tom Tromey <tom@tromey.com>
12943
12944 * dwarf2/loc.c (dwarf2_find_location_expression)
12945 (dwarf_evaluate_loc_desc::get_tls_address)
12946 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12947 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12948 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12949 (dwarf2_compile_property_to_c)
12950 (dwarf2_loc_desc_get_symbol_read_needs)
12951 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12952 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12953 (loclist_describe_location, loclist_tracepoint_var_ref)
12954 (loclist_generate_c_location): Update.
12955 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12956 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12957 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12958 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12959 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12960 (dwarf2_per_cu_data::addr_size)
12961 (dwarf2_per_cu_data::ref_addr_size)
12962 (dwarf2_per_cu_data::text_offset)
12963 (dwarf2_per_cu_data::addr_type): Now methods.
12964 (per_cu_header_read_in): Make per_cu "const".
12965 (dwarf2_version): Remove.
12966 (dwarf2_per_cu_data::int_type): Now a method.
12967 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12968 (set_die_type, read_array_type, read_subrange_index_type)
12969 (read_tag_string_type, read_subrange_type): Update.
12970 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12971 offset_size, ref_addr_size, text_offset, addr_type, version,
12972 objfile, int_type, addr_sized_int_type>: Declare methods.
12973
96c738c0
TT
129742020-02-08 Tom Tromey <tom@tromey.com>
12975
12976 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12977 Move earlier.
12978
8fdd972c
TT
129792020-02-08 Tom Tromey <tom@tromey.com>
12980
12981 * dwarf2/read.h (dwarf_line_debug): Declare.
12982 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12983 * dwarf2/read.c: Move line_header code to new files.
12984 (dwarf_line_debug): No longer static.
12985 * dwarf2/line-header.c: New file.
12986 * dwarf2/line-header.h: New file.
12987
03075812
TT
129882020-02-08 Tom Tromey <tom@tromey.com>
12989
12990 * dwarf2/read.c (struct line_header) <file_full_name,
12991 file_file_name>: Return unique_xmalloc_ptr.
12992 (line_header::file_file_name): Update.
12993 (line_header::file_full_name): Update.
12994 (dw2_get_file_names_reader): Update.
12995 (macro_start_file): Update.
12996
bb822404
TT
129972020-02-08 Tom Tromey <tom@tromey.com>
12998
12999 * dwarf2/read.c (struct line_header) <file_full_name,
13000 file_file_name>: Declare methods.
13001 (dw2_get_file_names_reader): Update.
13002 (file_file_name): Now a method.
13003 (file_full_name): Likewise.
13004 (macro_start_file): Update.
13005
009b64fc
TT
130062020-02-08 Tom Tromey <tom@tromey.com>
13007
13008 * dwarf2/read.c (dwarf_always_disassemble)
13009 (show_dwarf_always_disassemble): Move to loc.c.
13010 (_initialize_dwarf2_read): Move "always-disassemble" registration
13011 to loc.c.
13012 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13013 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13014 static.
13015 (show_dwarf_always_disassemble): Move from read.c.
13016 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13017
5895093f
TT
130182020-02-08 Tom Tromey <tom@tromey.com>
13019
13020 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13021 (create_quick_file_names_table): Return htab_up.
13022 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13023 Update.
13024 * dwarf2/read.h (struct dwarf2_per_objfile)
13025 <quick_file_names_table>: Now htab_up.
13026
b3b32279
TT
130272020-02-08 Tom Tromey <tom@tromey.com>
13028
13029 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13030
1d33d811
TT
130312020-02-08 Tom Tromey <tom@tromey.com>
13032
13033 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13034 Rewrite.
13035 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13036 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13037 (abbrev_table::abbrev_table): No longer inline.
13038 (ABBREV_HASH_SIZE): Remove.
13039 (abbrev_table::m_abbrevs): Now an htab_up.
13040
86de1d91
TT
130412020-02-08 Tom Tromey <tom@tromey.com>
13042
13043 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13044 (cutu_reader): Update.
13045 (build_type_psymtabs_1): Update.
13046 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13047 (abbrev_table::alloc_abbrev): Update.
13048 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13049 (abbrev_table::read): New static method, renamed from
13050 abbrev_table_read_table.
13051 (abbrev_table::alloc_abbrev)
13052 (abbrev_table::add_abbrev): Now private.
13053 (abbrev_table::abbrev_table): Now private.
13054 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13055
0335378b
TT
130562020-02-08 Tom Tromey <tom@tromey.com>
13057
13058 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13059 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13060 htab_up.
13061
48b490f2
TT
130622020-02-08 Tom Tromey <tom@tromey.com>
13063
13064 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13065 htab_up.
13066 (lookup_dwo_unit_in_dwp): Update.
13067 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13068 on obstack.
13069
bc68fb19
TT
130702020-02-08 Tom Tromey <tom@tromey.com>
13071
13072 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13073 obstack.
13074
d15acc42
TT
130752020-02-08 Tom Tromey <tom@tromey.com>
13076
13077 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13078 line_header_hash.
13079 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13080 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13081 Change type to htab_up.
13082
eaa5fa8b
TT
130832020-02-08 Tom Tromey <tom@tromey.com>
13084
13085 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13086 htab_up. Don't allocate on obstack.
13087 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13088 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13089 Change type to htab_up.
13090
b0b6a987
TT
130912020-02-08 Tom Tromey <tom@tromey.com>
13092
13093 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13094 Change type to htab_up.
13095 * dwarf2/read.c (create_signatured_type_table_from_index)
13096 (create_signatured_type_table_from_debug_names)
13097 (create_all_type_units, add_type_unit)
13098 (lookup_dwo_signatured_type, lookup_signatured_type)
13099 (process_skeletonless_type_unit): Update.
13100 (create_debug_type_hash_table, create_debug_types_hash_table):
13101 Change type of types_htab.
13102 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13103 htab_up. Don't allocate on obstack.
13104 (create_cus_hash_table): Change type of cus_htab parameter.
13105 (struct dwo_file) <cus, tus>: Now htab_up.
13106 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13107 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13108 (queue_and_load_all_dwo_tus): Update.
13109 * dwarf2/index-write.c (write_gdbindex): Update.
13110 (write_debug_names): Update.
13111
39856def
TT
131122020-02-08 Tom Tromey <tom@tromey.com>
13113
13114 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13115 dwarf2/read.c. Remove "next" member. Add constructor ntad
13116 destructor.
13117 (struct dwarf2_per_objfile) <queue>: New member.
13118 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13119 dwarf2/read.h.
13120 (dwarf2_queue, dwarf2_queue_tail): Remove.
13121 (class dwarf2_queue_guard): Add parameter to constructor. Use
13122 DISABLE_COPY_AND_ASSIGN.
13123 <m_per_objfile>: New member.
13124 <~dwarf2_queue_guard>: Rewrite.
13125 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13126 Update.
13127 (~dwarf2_queue_item): New.
13128
3e225074
TT
131292020-02-08 Tom Tromey <tom@tromey.com>
13130
13131 * dwarf2/read.c (struct die_info) <has_children>: New member.
13132 (dw2_get_file_names_reader): Remove has_children.
13133 (dw2_get_file_names): Update.
13134 (read_cutu_die_from_dwo): Remove has_children.
13135 (cutu_reader::init_tu_and_read_dwo_dies)
13136 (cutu_reader::cutu_reader): Update.
13137 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13138 Remove has_children.
13139 (build_type_psymtabs_1, process_skeletonless_type_unit)
13140 (load_partial_comp_unit, load_full_comp_unit): Update.
13141 (create_dwo_cu_reader): Remove has_children.
13142 (create_cus_hash_table, read_die_and_children): Update.
13143 (read_full_die_1,read_full_die): Remove has_children.
13144 (read_signatured_type): Update.
13145 (class cutu_reader) <has_children>: Remove.
13146
82ca8957
TT
131472020-02-08 Tom Tromey <tom@tromey.com>
13148
13149 * dwarf2/expr.c: Rename from dwarf2expr.c.
13150 * dwarf2/expr.h: Rename from dwarf2expr.h.
13151 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13152 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13153 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13154 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13155 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13156 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13157 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13158 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13159 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13160 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13161 * dwarf2/loc.c: Rename from dwarf2loc.c.
13162 * dwarf2/loc.h: Rename from dwarf2loc.h.
13163 * dwarf2/read.c: Rename from dwarf2read.c.
13164 * dwarf2/read.h: Rename from dwarf2read.h.
13165 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13166 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13167 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13168 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13169 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13170 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13171 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13172 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13173 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13174 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13175 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13176 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13177 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13178 Update.
13179 * Makefile.in (COMMON_SFILES): Update.
13180 (HFILES_NO_SRCDIR): Update.
13181
9e35d499
TT
131822020-02-08 Tom Tromey <tom@tromey.com>
13183
13184 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13185 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13186
1eba2311
TT
131872020-02-08 Tom Tromey <tom@tromey.com>
13188
13189 * dwarf2read.h (struct die_info): Don't declare.
13190
e41c2da2
TT
131912020-02-08 Tom Tromey <tom@tromey.com>
13192
13193 * dwarf2read.h (die_info_ptr): Remove typedef.
13194
4fc6c0d5
TT
131952020-02-08 Tom Tromey <tom@tromey.com>
13196
13197 * dwarf2read.c (read_call_site_scope)
13198 (handle_data_member_location, dwarf2_add_member_fn)
13199 (mark_common_block_symbol_computed, read_common_block)
13200 (attr_to_dynamic_prop, partial_die_info::read)
13201 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13202 (dwarf2_symbol_mark_computed, set_die_type): Update.
13203 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13204 method.
13205 (attr_form_is_block): Don't declare.
13206 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13207
cd6c91b4
TT
132082020-02-08 Tom Tromey <tom@tromey.com>
13209
13210 * dwarf2read.c (dwarf2_find_base_address, )
13211 (read_call_site_scope, rust_containing_type)
13212 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13213 (handle_data_member_location, dwarf2_add_member_fn)
13214 (get_alignment, read_structure_type, process_structure_scope)
13215 (mark_common_block_symbol_computed, read_common_block)
13216 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13217 (partial_die_info::read, read_attribute_value, new_symbol)
13218 (lookup_die_type, dwarf2_get_ref_die_offset)
13219 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13220 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13221 (dwarf2_symbol_mark_computed): Update.
13222 * dwarf2/attribute.h (struct attribute) <value_as_address,
13223 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13224 methods.
13225 (value_as_address, attr_form_is_section_offset)
13226 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13227 * dwarf2/attribute.c (attribute::value_as_address)
13228 (attribute::form_is_section_offset, attribute::form_is_constant)
13229 (attribute::form_is_ref): Now methods.
13230
162dce55
TT
132312020-02-08 Tom Tromey <tom@tromey.com>
13232
13233 * dwarf2read.c (struct attribute, DW_STRING)
13234 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13235 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13236 (attr_form_is_block, attr_form_is_section_offset)
13237 (attr_form_is_constant, attr_form_is_ref): Move.
13238 * dwarf2/attribute.h: New file.
13239 * dwarf2/attribute.c: New file, from dwarf2read.c.
13240 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13241
3054dd54
TT
132422020-02-08 Tom Tromey <tom@tromey.com>
13243
13244 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13245 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13246 Move.
13247 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13248 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13249 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13250 abbrev.c.
13251 * dwarf2/abbrev.h: New file.
13252 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13253 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13254
96b79293
TT
132552020-02-08 Tom Tromey <tom@tromey.com>
13256
13257 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13258 (dwarf2_section_size, dwarf2_get_section_info)
13259 (create_signatured_type_table_from_debug_names)
13260 (create_addrmap_from_aranges, read_debug_names_from_section)
13261 (get_gdb_index_contents_from_section, read_comp_unit_head)
13262 (error_check_comp_unit_head, read_abbrev_offset)
13263 (create_debug_type_hash_table, init_cu_die_reader)
13264 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13265 (read_comp_units_from_section, create_cus_hash_table)
13266 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13267 (create_dwp_v2_section, dwarf2_rnglists_process)
13268 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13269 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13270 (read_indirect_string_from_dwz, read_addr_index_1)
13271 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13272 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13273 (fill_in_loclist_baton): Update.
13274 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13275 get_containing_section, get_bfd_owner, get_bfd_section,
13276 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13277 (dwarf2_read_section, get_section_name, get_section_file_name)
13278 (get_containing_section, get_section_bfd_owner)
13279 (get_section_bfd_section, get_section_name, get_section_file_name)
13280 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13281 declare.
13282 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13283 (dwarf2_section_info::get_bfd_owner)
13284 (dwarf2_section_info::get_bfd_section)
13285 (dwarf2_section_info::get_name)
13286 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13287 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13288 (dwarf2_section_info::read): Now methods.
13289 * dwarf-index-write.c (class debug_names): Update.
13290
2c86cff9
TT
132912020-02-08 Tom Tromey <tom@tromey.com>
13292
13293 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13294 Move to dwarf2/section.h.
13295 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13296 (get_section_bfd_section, get_section_name)
13297 (get_section_file_name, get_section_id, get_section_flags)
13298 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13299 dwarf2/section.c.
13300 * dwarf2/section.h: New file.
13301 * dwarf2/section.c: New file, from dwarf2read.c.
13302 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13303
f4382c45
TT
133042020-02-08 Tom Tromey <tom@tromey.com>
13305
13306 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13307 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13308 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13309 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13310 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13311 * dwarf2/leb.h: New file, from dwarf2read.c.
13312 * dwarf2/leb.c: New file, from dwarf2read.c.
13313 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13314 Remove.
13315 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13316 (COMMON_SFILES): Add dwarf2/leb.c.
13317
01840b7a
JB
133182020-02-08 Joel Brobecker <brobecker@adacore.com>
13319
13320 GDB 9.1 released.
13321
dfcb27e4
IB
133222020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13323
13324 PR gdb/25190:
aac66a4c
SM
13325 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13326 * gdb/remote.c (remote_console_output): Update.
13327 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13328 (ui_file_puts): ...this.
13329 * gdb/ui-file.h (ui_file_puts): Add declaration.
13330 * gdb/utils.c (emit_style_escape): Update.
13331 (flush_wrap_buffer): Update.
13332 (fputs_maybe_filtered): Update.
13333 (fputs_unfiltered): Add function.
dfcb27e4 13334
faa17681
IB
133352020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13336
aac66a4c
SM
13337 * gdb/event-loop.c (gdb_wait_for_event): Update.
13338 * gdb/printcmd.c (printf_command): Update.
13339 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13340 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13341 (gdb_os_flush_stderr): Update.
13342 * gdb/remote.c (remote_console_output): Update.
13343 * gdb/ui-file.c (gdb_flush): Rename to...
13344 (ui_file_flush): ...this.
13345 (stderr_file::write): Update.
13346 (stderr_file::puts): Update.
13347 * gdb/ui-file.h (gdb_flush): Rename to...
13348 (ui_file_flush): ...this.
13349 * gdb/utils.c (gdb_flush): Add function.
13350 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13351
5abbbe1d
TT
133522020-02-07 Tom Tromey <tromey@adacore.com>
13353
13354 PR breakpoints/24915:
13355 * source.c (find_and_open_source): Do not check basenames_may_differ.
13356
919adfe8
TT
133572020-02-07 Tom Tromey <tom@tromey.com>
13358
13359 * README: Update gdbserver documentation.
13360 * gdbserver: Move to top level.
13361 * configure.tgt (build_gdbserver): Remove.
13362 * configure.ac: Remove --enable-gdbserver.
13363 * configure: Rebuild.
13364 * Makefile.in (distclean): Don't mention gdbserver.
13365
1d5d29e7
SV
133662020-02-06 Shahab Vahedi <shahab@synopsys.com>
13367
13368 * source-cache.c (source_cache::ensure): Surround
13369 get_plain_source_lines with a try/catch.
13370 (source_cache::get_line_charpos): Get rid of try/catch
13371 and only check for the return value of "ensure".
13372 * tui/tui-source.c (tui_source_window::set_contents):
13373 Simplify "nlines" calculation.
13374
6eb1129c
SV
133752020-02-06 Shahab Vahedi <shahab@synopsys.com>
13376
13377 * MAINTAINERS (Write After Approval): Add myself.
13378
c6a42d11
CB
133792020-02-05 Christian Biesinger <cbiesinger@google.com>
13380
13381 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13382 function call.
13383
c8ecdda6
CB
133842020-02-05 Christian Biesinger <cbiesinger@google.com>
13385
13386 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13387
f6480e70
MR
133882020-02-05 Maciej W. Rozycki <macro@wdc.com>
13389
13390 * nat/riscv-linux-tdesc.h: New file.
13391 * nat/riscv-linux-tdesc.c: New file, taking code from...
13392 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13393 ... here.
13394 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13395 NATDEPFILES.
13396
dcc9fbc6
AB
133972020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13398
13399 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13400 we don't set the fake simulator ptid to the null_ptid.
13401
719546c4
SM
134022020-02-03 Simon Marchi <simon.marchi@efficios.com>
13403
13404 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13405 * gdbthread.h (class thread_info) <resumed>: Likewise.
13406 * infrun.c (resume_1): Likewise.
13407 (proceed): Likewise.
13408 (infrun_thread_stop_requested): Likewise.
13409 (stop_all_threads): Likewise.
13410 (handle_inferior_event): Likewise.
13411 (restart_threads): Likewise.
13412 (finish_step_over): Likewise.
13413 (keep_going_stepped_thread): Likewise.
13414 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13415 (linux_handle_extended_wait): Likewise.
13416 * record-btrace.c (get_thread_current_frame_id): Likewise.
13417 * record-full.c (record_full_wait_1): Likewise.
13418 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13419 * target.c (target_resume): Likewise.
13420 * thread.c (set_running_thread): Likewise.
13421
e409c542
AKS
134222020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13423
13424 * f-valprint.c (f77_print_array_1): Changed datatype of index
13425 variable to LONGEST from int to enable it to contain bound
13426 values correctly.
13427
ee98c0da
MR
134282020-02-03 Maciej W. Rozycki <macro@wdc.com>
13429
13430 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13431 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13432 offsets according to FLEN determined.
13433 (riscv_linux_nat_target::read_description): Determine FLEN
13434 dynamically.
13435 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13436 according to FLEN determined.
13437 (riscv_linux_nat_target::store_registers): Likewise.
13438
aa66aac4
SV
134392020-02-01 Shahab Vahedi <shahab@synopsys.com>
13440
13441 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13442 when reg->group is empty and reggroup is not.
13443
fd9faca8
TT
134442020-01-31 Tom Tromey <tromey@adacore.com>
13445
13446 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13447 Call beneath target's mourn_inferior after unpushing.
13448
42330a68
AB
134492020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13450
13451 PR tui/9765
13452 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13453 have enough lines to fill the screen, still return the lowest
13454 address we found.
13455
7a27a45b
AB
134562020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13457
13458 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13459 '-', '<', and '>' commands.
13460
c47f70e2
PA
134612020-01-29 Pedro Alves <palves@redhat.com>
13462 Sergio Durigan Junior <sergiodj@redhat.com>
13463
13464 * infcmd.c (construct_inferior_arguments): Assert that
13465 'argc' is greater than 0.
13466
5133a315
LM
134672020-01-29 Luis Machado <luis.machado@linaro.org>
13468
13469 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13470 (BRK_INSN_MASK): Define to 0xd4200000.
13471 (aarch64_program_breakpoint_here_p): New function.
13472 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13473 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13474 breakpoint.c.
13475 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13476 breakpoint.h
13477 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13478 call gdbarch_program_breakpoint_here_p.
13479 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13480 default_program_breakpoint_here_p, changed return type to bool and
13481 simplified.
13482 * breakpoint.h (program_breakpoint_here): Moved prototype to
13483 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13484 return type to bool.
13485 * gdbarch.c: Regenerate.
13486 * gdbarch.h: Regenerate.
13487 * gdbarch.sh (program_breakpoint_here_p): New method.
13488 * infrun.c (handle_signal_stop): Call
13489 gdbarch_program_breakpoint_here_p.
13490
168f8c6b
TT
134912020-01-26 Tom Tromey <tom@tromey.com>
13492
13493 * ctfread.c (struct ctf_fp_info): Reindent.
13494 (_initialize_ctfread): Remove.
13495
128a391f
TT
134962020-01-26 Tom Tromey <tom@tromey.com>
13497
13498 * psymtab.c (partial_map_expand_apply)
13499 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13500 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13501 (psym_print_stats, psym_expand_symtabs_for_function)
13502 (psym_map_symbol_filenames, psym_map_matching_symbols)
13503 (psym_expand_symtabs_matching)
13504 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13505 (maintenance_check_psymtabs): Use new methods.
13506 * psympriv.h (struct partial_symtab) <readin_p,
13507 get_compunit_symtab>: New methods.
13508 <readin, compunit_symtab>: Remove members.
13509 (struct standard_psymtab): New.
13510 (struct legacy_psymtab): Derive from standard_psymtab.
13511 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13512 standard_psymtab.
13513 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13514
0494dbec
TT
135152020-01-26 Tom Tromey <tom@tromey.com>
13516
13517 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13518 read_dependencies. Add assert.
13519 * psymtab.c (partial_symtab::read_dependencies): New method.
13520 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13521 method.
13522 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13523 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13524 read_dependencies.
13525 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13526 Add assert.
13527
8566b89b
TT
135282020-01-26 Tom Tromey <tom@tromey.com>
13529
13530 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13531 Call expand_psymtab.
13532 (xcoff_read_symtab): Call expand_psymtab.
13533 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13534 legacy_expand_psymtab.
13535 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13536 method.
13537 (struct legacy_psymtab) <expand_psymtab>: Implement.
13538 <legacy_expand_psymtab>: New member.
13539 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13540 (parse_partial_symbols): Set legacy_expand_psymtab.
13541 (psymtab_to_symtab_1): Change argument order. Call
13542 expand_psymtab.
13543 (new_psymtab): Set legacy_expand_psymtab.
13544 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13545 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13546 expand_psymtab.
13547 (dwarf2_psymtab::expand_psymtab): Rename from
13548 psymtab_to_symtab_1. Call expand_psymtab.
13549 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13550 (dbx_end_psymtab): Likewise.
13551 (dbx_psymtab_to_symtab_1): Change argument order. Call
13552 expand_psymtab.
13553 (dbx_read_symtab): Call expand_psymtab.
13554 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13555 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13556 (ctf_psymtab::read_symtab): Call expand_psymtab.
13557
077cbab2
TT
135582020-01-26 Tom Tromey <tom@tromey.com>
13559
13560 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13561 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13562 messages.
13563 * mdebugread.c (mdebug_read_symtab): Remove prints.
13564 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13565 assert.
13566 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13567
891813be
TT
135682020-01-26 Tom Tromey <tom@tromey.com>
13569
13570 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13571 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13572 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13573 legacy_symtab.
13574 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13575 * psymtab.c (psymtab_to_symtab): Call method.
13576 (dump_psymtab): Update.
13577 * psympriv.h (struct partial_symtab): Add virtual destructor.
13578 <read_symtab>: New method.
13579 (struct legacy_symtab): New.
13580 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13581 (struct pst_map) <pst>: Now a legacy_psymtab.
13582 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13583 (new_psymtab): Use legacy_psymtab.
13584 * dwarf2read.h (struct dwarf2_psymtab): New.
13585 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13586 * dwarf2read.c (dwarf2_create_include_psymtab)
13587 (dwarf2_build_include_psymtabs, create_type_unit_group)
13588 (create_partial_symtab, process_psymtab_comp_unit_reader)
13589 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13590 (set_partial_user): Use dwarf2_psymtab.
13591 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13592 (psymtab_to_symtab_1, process_full_comp_unit)
13593 (process_full_type_unit, dwarf2_ranges_read)
13594 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13595 (dwarf_decode_lines): Use dwarf2_psymtab.
13596 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13597 (add_address_entry_worker, write_one_signatured_type)
13598 (recursively_count_psymbols, recursively_write_psymbols)
13599 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13600 (write_debug_names): Likewise.
13601 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13602 <pst>: Now a legacy_psymtab.
13603 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13604 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13605 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13606 * ctfread.c (struct ctf_psymtab): New.
13607 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13608 ctf_psymtab.
13609 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13610 (create_partial_symtab): Return a ctf_psymtab.
13611 (scan_partial_symbols): Update.
13612
c3693a1d
TT
136132020-01-26 Tom Tromey <tom@tromey.com>
13614
13615 * xcoffread.c (xcoff_start_psymtab): Use new.
13616 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13617 renamed from start_psymtab_common.
13618 * psympriv.h (struct partial_symtab): Add new constructor.
13619 (start_psymtab_common): Don't declare.
13620 * mdebugread.c (parse_partial_symbols): Use new.
13621 * dwarf2read.c (create_partial_symtab): Use new.
13622 * dbxread.c (start_psymtab): Use new.
13623 * ctfread.c (create_partial_symtab): Use new.
13624
32caafd0
TT
136252020-01-26 Tom Tromey <tom@tromey.com>
13626
13627 * xcoffread.c (xcoff_end_psymtab): Use new.
13628 * psymtab.c (start_psymtab_common): Use new.
13629 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13630 Update.
13631 * psympriv.h (struct partial_symtab): Add parameters to
13632 constructor. Don't inline.
13633 (allocate_psymtab): Don't declare.
13634 * mdebugread.c (new_psymtab): Use new.
13635 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13636 * dbxread.c (dbx_end_psymtab): Use new.
13637
abaa2f23
TT
136382020-01-26 Tom Tromey <tom@tromey.com>
13639
13640 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13641 allocate_psymtab. Update documentation.
13642 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13643 allocate_psymtab. Do not use new.
13644 (allocate_psymtab): Use new. Update.
13645
6d94535f
TT
136462020-01-26 Tom Tromey <tom@tromey.com>
13647
13648 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13649 * psymtab.c (psym_print_stats): Update.
13650 * psympriv.h (struct partial_symtab) <readin,
13651 psymtabs_addrmap_supported, anonymous>: Now bool.
13652 * mdebugread.c (psymtab_to_symtab_1): Update.
13653 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13654 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13655 (process_full_comp_unit, process_full_type_unit): Update.
13656 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13657 * ctfread.c (psymtab_to_symtab): Update.
13658
6f17252b
TT
136592020-01-26 Tom Tromey <tom@tromey.com>
13660
13661 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13662 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13663 * psymtab.c (psymtab_storage): Delete psymtabs.
13664 (psymtab_storage::allocate_psymtab): Use new.
13665 (psymtab_storage::discard_psymtab): Use delete.
13666 * psympriv.h (struct partial_symtab): Add constructor and
13667 initializers.
13668
f6f1cebc
TT
136692020-01-26 Tom Tromey <tom@tromey.com>
13670
13671 * machoread.c: Do not include psympriv.h.
13672
e47e48f6
PW
136732020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13674
13675 * NEWS: Mention the new option and the set/show commands.
13676
a2fedca9
PW
136772020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13678
13679 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13680 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13681 (validate_exec_file): New variables, enums, functions.
13682 (exec_file_locate_attach, print_section_info): Style the filenames.
13683 (_initialize_exec): Install show_exec_file_mismatch_command and
13684 set_exec_file_mismatch_command.
13685 * gdbcore.h (validate_exec_file): Declare.
13686 * infcmd.c (attach_command): Call validate_exec_file.
13687 * remote.c ( remote_target::remote_add_inferior): Likewise.
13688
7ffa82e1
AB
136892020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13690
13691 * frame.c (find_frame_sal): Move call to get_next_frame into more
13692 inner scope.
13693 * inline-frame.c (inilne_state) <inline_state>: Update argument
13694 types.
13695 (inilne_state) <skipped_symbol>: Rename to...
13696 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13697 (skip_inline_frames): Build vector of skipped symbols and use this
13698 to reate the inline_state.
13699 (inline_skipped_symbol): Add a comment and some assertions, fetch
13700 skipped symbol from the list.
13701
3d92a3e3
AB
137022020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13703
13704 * buildsym.c (lte_is_less_than): Delete.
13705 (buildsym_compunit::end_symtab_with_blockvector): Create local
13706 lambda function to sort line table entries, and use
13707 std::stable_sort instead of std::sort.
13708 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13709 markers when looking for a previous line.
13710
94a72be7
AB
137112020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13712
13713 * dwarf2read.c (lnp_state_machine::record_line): Include
13714 end_sequence parameter in debug print out. Record the line if we
13715 are at an end_sequence marker even if it's not the start of a
13716 statement.
13717 * symmisc.c (maintenance_print_one_line_table): Print end of
13718 sequence markers with 'END' not '0'.
13719
53af73bf
PA
137202020-01-24 Pedro Alves <palves@redhat.com>
13721
13722 PR gdb/25410
13723 * thread.c (scoped_restore_current_thread::restore): Use
13724 switch_to_inferior_no_thread.
13725 * exec.c: Include "progspace-and-thread.h".
13726 (add_target_sections, remove_target_sections):
13727 scoped_restore_current_pspace_and_thread instead of
13728 scoped_restore_current_thread.
13729 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13730 and aspace to the inferior before calling clone_program_space.
13731 Remove stale comment.
13732
3050c6f4
CB
137332020-01-24 Christian Biesinger <cbiesinger@google.com>
13734
13735 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13736 (arm_netbsd_nat_target::fetch_registers): ...this.
13737 (arm_nbsd_nat_target::store_registers): Rename to...
13738 (arm_netbsd_nat_target::store_registers): ...this.
13739
73685c7e
CB
137402020-01-24 Christian Biesinger <cbiesinger@google.com>
13741
13742 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13743 register_t.
13744
89203d40
CB
137452020-01-24 Christian Biesinger <cbiesinger@google.com>
13746
13747 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13748 Update comment.
13749 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13750 Likewise.
13751 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13752 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13753 the correct replacement (iterate_over_regset_sections).
13754 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13755 Update comment.
13756
1ba1ac88
AB
137572020-01-24 Graham Markall <graham.markall@embecosm.com>
13758
13759 PR gdb/23718
13760 * gdb/python/python.c (execute_gdb_command): Call
13761 async_enable_stdin in catch block.
13762
f3364a6d
AB
137632020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13764
13765 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13766 SWITCH_THRU_ALL_UIS.
13767
733d0a67
AB
137682020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13769
13770 PR tui/9765
13771 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13772 comment, add extra parameter, and update to store previous symbol
13773 when appropriate.
13774 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13775 add extra parameter.
13776 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13777 remove unneeded parameter, add try/catch around gdb_print_insn,
13778 rewrite to add items to asm_lines vector.
13779 (tui_find_backward_disassembly_start_address): New function.
13780 (tui_find_disassembly_address): Updated throughout.
13781 (tui_disasm_window::set_contents): Update for changes to
13782 tui_disassemble.
13783 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13784 number of lines to scroll.
13785
b3b3bada
SM
137862020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13787
13788 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13789 (SECT_OFF_DATA): Likewise.
13790 (SECT_OFF_RODATA): Likewise.
13791 (SECT_OFF_TEXT): Likewise.
13792 (SECT_OFF_BSS): Likewise.
13793 (struct objfile) <text_section_offset, data_section_offset>: New
13794 methods.
13795 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13796 objfile::text_section_offset.
13797 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13798 * coffread.c (coff_symtab_read): Likewise.
13799 (enter_linenos): Likewise.
13800 (process_coff_symbol): Likewise.
13801 * ctfread.c (get_objfile_text_range): Likewise.
13802 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13803 Use objfile::data_section_offset.
13804 * dwarf2-frame.c (execute_cfa_program): Use
13805 objfile::text_section_offset.
13806 (dwarf2_frame_find_fde): Likewise.
13807 * dwarf2read.c (create_addrmap_from_index): Likewise.
13808 (create_addrmap_from_aranges): Likewise.
13809 (dw2_find_pc_sect_compunit_symtab): Likewise.
13810 (process_psymtab_comp_unit_reader): Likewise.
13811 (add_partial_symbol): Likewise.
13812 (add_partial_subprogram): Likewise.
13813 (process_full_comp_unit): Likewise.
13814 (read_file_scope): Likewise.
13815 (read_func_scope): Likewise.
13816 (read_lexical_block_scope): Likewise.
13817 (read_call_site_scope): Likewise.
13818 (dwarf2_rnglists_process): Likewise.
13819 (dwarf2_ranges_process): Likewise.
13820 (dwarf2_ranges_read): Likewise.
13821 (dwarf_decode_lines_1): Likewise.
13822 (new_symbol): Likewise.
13823 (dwarf2_fetch_die_loc_sect_off): Likewise.
13824 (dwarf2_per_cu_text_offset): Likewise.
13825 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13826 * hppa-tdep.c (read_unwind_info): Likewise.
13827 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13828 * psympriv.h (struct partial_symtab): Likewise.
13829 * psymtab.c (find_pc_sect_psymtab): Likewise.
13830 * solib-svr4.c (enable_break): Likewise.
13831 * stap-probe.c (relocate_address): Use
13832 objfile::data_section_offset.
13833 * xcoffread.c (enter_line_range): Use
13834 objfile::text_section_offset.
13835 (read_xcoff_symtab): Likewise.
13836
ab53f382
SM
138372020-01-23 Simon Marchi <simon.marchi@efficios.com>
13838
13839 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13840 declaration to narrower scopes.
13841
e7eee665
SM
138422020-01-23 Simon Marchi <simon.marchi@efficios.com>
13843
13844 * darwin-nat.h (struct darwin_exception_msg, enum
13845 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13846 Move up.
13847 (class darwin_nat_target) <wait_1, check_new_threads,
13848 decode_exception_message, decode_message, stop_inferior,
13849 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13850 * darwin-nat.c (darwin_check_new_threads): Rename to...
13851 (darwin_nat_target::check_new_threads): ... this.
13852 (darwin_suspend_inferior_it): Remove.
13853 (darwin_decode_exception_message): Rename to...
13854 (darwin_nat_target::decode_exception_message): ... this.
13855 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13856 (darwin_decode_message): Rename to...
13857 (darwin_nat_target::decode_message): ... this.
13858 (cancel_breakpoint): Rename to...
13859 (darwin_nat_target::cancel_breakpoint): ... this.
13860 (darwin_wait): Rename to...
13861 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13862 instead of iterate_over_inferiors.
13863 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13864 (darwin_stop_inferior): Rename to...
13865 (darwin_nat_target::stop_inferior): ... this.
13866 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13867 (darwin_init_thread_list): Rename to...
13868 (darwin_nat_target::init_thread_list): ... this.
13869 (darwin_ptrace_him): Rename to...
13870 (darwin_nat_target::ptrace_him): ... this.
13871 (darwin_nat_target::create_inferior): Pass lambda function to
13872 fork_inferior.
13873 (darwin_nat_target::detach): Call stop_inferior instead of
13874 darwin_stop_inferior.
13875 * fork-inferior.h (fork_inferior): Change init_trace_fun
13876 parameter to gdb::function_view.
13877 * fork-inferior.c (fork_inferior): Likewise.
13878
c162ed3e
HD
138792020-01-23 Hannes Domani <ssbssa@yahoo.de>
13880
13881 * i386-cygwin-tdep.c (core_process_module_section): Update.
13882 * windows-nat.c (struct lm_info_windows): Add text_offset.
13883 (windows_xfer_shared_libraries): Update.
13884 * windows-tdep.c (windows_xfer_shared_library):
13885 Add text_offset_cached argument.
13886 * windows-tdep.h (windows_xfer_shared_library): Update.
13887
a1237872
SM
138882020-01-21 Simon Marchi <simon.marchi@efficios.com>
13889
13890 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13891
b3ee6dd9
SM
138922020-01-21 Simon Marchi <simon.marchi@efficios.com>
13893
13894 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13895 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13896 replace with range-based for.
13897 (gdbsim_interrupt_inferior): Remove.
13898 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13899 with a range-based for. Inline code from
13900 gdbsim_interrupt_inferior.
13901
f9fac3c8
SM
139022020-01-21 Simon Marchi <simon.marchi@efficios.com>
13903
13904 * infrun.c (proceed): Fix indentation.
13905
f6474de9
TT
139062020-01-21 Tom Tromey <tromey@adacore.com>
13907
13908 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13909 * python/python.c (python_extension_ops): Update.
13910 (gdbpy_colorize): New function.
13911 * python/lib/gdb/__init__.py (colorize): New function.
13912 * extension.h (ext_lang_colorize): Declare.
13913 * extension.c (ext_lang_colorize): New function.
13914 * extension-priv.h (struct extension_language_ops) <colorize>: New
13915 member.
13916 * cli/cli-style.c (_initialize_cli_style): Update help text.
13917
f0c702d4
LM
139182020-01-21 Luis Machado <luis.machado@linaro.org>
13919
13920 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13921 <cond>: Change type to bool.
13922 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13923 (aarch64_displaced_step_cb): Likewise.
13924 (aarch64_displaced_step_tb): Likewise.
13925
1ab139e5
LM
139262020-01-21 Luis Machado <luis.machado@linaro.org>
13927
13928 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13929 output.
13930
0c271889
LM
139312020-01-21 Luis Machado <luis.machado@linaro.org>
13932
13933 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13934 <pc_adjust>: Adjust the documentation.
13935 (aarch64_displaced_step_fixup): Check if PC really moved before
13936 adjusting it.
13937
4d89c1c7
TT
139382020-01-19 Tom Tromey <tom@tromey.com>
13939
13940 * disasm.c (~gdb_disassembler): New destructor.
13941 (gdb_buffered_insn_length): Call disassemble_free_target.
13942 * disasm.h (class gdb_disassembler): Declare destructor. Use
13943 DISABLE_COPY_AND_ASSIGN.
13944
c0ab21c2
TT
139452020-01-19 Tom Tromey <tom@tromey.com>
13946
13947 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13948 (die_reader_func_ftype): Remove.
13949 (cutu_reader): New class.
13950 (dw2_get_file_names_reader): Remove "data" parameter.
13951 (dw2_get_file_names): Use cutu_reader.
13952 (create_debug_type_hash_table): Update.
13953 (read_cutu_die_from_dwo): Update comment.
13954 (lookup_dwo_unit): Add dwo_name parameter.
13955 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13956 die_reader_func_ftype and data parameters.
13957 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13958 Remove die_reader_func_ftype and data parameters.
13959 (~cutu_reader): New; from init_cutu_and_read_dies.
13960 (cutu_reader::cutu_reader): Rename from
13961 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13962 and data parameters.
13963 (init_cutu_and_read_dies_simple): Remove.
13964 (struct process_psymtab_comp_unit_data): Remove.
13965 (process_psymtab_comp_unit_reader): Remove data parameter; add
13966 want_partial_unit and pretend_language parameters.
13967 (process_psymtab_comp_unit): Use cutu_reader.
13968 (build_type_psymtabs_reader): Remove data parameter.
13969 (build_type_psymtabs_1): Use cutu_reader.
13970 (process_skeletonless_type_unit): Likewise.
13971 (load_partial_comp_unit_reader): Remove.
13972 (load_partial_comp_unit): Use cutu_reader.
13973 (load_full_comp_unit_reader): Remove.
13974 (load_full_comp_unit): Use cutu_reader.
13975 (struct create_dwo_cu_data): Remove.
13976 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13977 dwo_unit parameters.
13978 (create_cus_hash_table): Use cutu_reader.
13979 (struct dwarf2_read_addr_index_data): Remove.
13980 (dwarf2_read_addr_index_reader): Remove.
13981 (dwarf2_read_addr_index): Use cutu_reader.
13982 (read_signatured_type_reader): Remove.
13983 (read_signatured_type): Use cutu_reader.
13984
45bbae5c
TT
139852020-01-19 Tom Tromey <tom@tromey.com>
13986
13987 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13988 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13989 (tui_wrefresh): Declare.
13990 * tui/tui-wingeneral.c (suppress_output): New global.
13991 (tui_suppress_output, ~tui_suppress_output): New constructor and
13992 destructor.
13993 (tui_wrefresh): New function.
13994 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13995 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13996 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13997 method.
13998 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13999 tui_wrefresh.
14000 (tui_data_window::no_refresh): New method.
14001 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14002 (tui_reg_command): Use tui_suppress_output
14003 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14004 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14005 method.
14006 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14007
4f13c1c0
TT
140082020-01-19 Tom Tromey <tom@tromey.com>
14009
14010 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14011 Handle case where symtab is null.
14012
fa47e446
SM
140132020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14014
14015 * linux-fork.c (one_fork_p): Simplify.
14016
26f42329
SM
140172020-01-17 Simon Marchi <simon.marchi@efficios.com>
14018
14019 * top.c (struct qt_args): Remove.
14020 (kill_or_detach): Change return type to void, replace `void *`
14021 parameter with a proper one.
14022 (print_inferior_quit_action): Likewise.
14023 (quit_confirm): Use range-based for loop to iterate over inferiors.
14024 (quit_force): Likewise.
14025
a9ac81b1
SM
140262020-01-17 Simon Marchi <simon.marchi@efficios.com>
14027
14028 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14029 `void *` parameter with proper parameters.
14030 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14031 (print_one_inferior): Change return type to void, replace `void *`
14032 parameter with proper parameters.
14033 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14034 inferiors.
14035 (get_other_inferior): Remove.
14036 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14037 inferiors.
14038
788eca49
SM
140392020-01-17 Simon Marchi <simon.marchi@efficios.com>
14040
14041 * mi/mi-interp.c (report_initial_inferior): Remove.
14042 (mi_interp::init): Use range-based for to iterate over inferiors.
14043
d9bc85b6
SM
140442020-01-17 Simon Marchi <simon.marchi@efficios.com>
14045
14046 * python/py-inferior.c (build_inferior_list): Remove.
14047 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14048
40c94099
CB
140492020-01-16 Christian Biesinger <cbiesinger@google.com>
14050
14051 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14052 (btrace_stitch_trace): Likewise.
14053 * charset.c (intermediate_encoding): Likewise (vaild).
14054 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14055 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14056 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14057
e0cdfe3c
HD
140582020-01-16 Hannes Domani <ssbssa@yahoo.de>
14059
14060 * windows-tdep.c (windows_get_tlb_type):
14061 Add rtl_user_process_parameters type.
14062
790f1718 140632020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 14064 Norbert Lange <nolange79@gmail.com>
790f1718
PA
14065
14066 PR build/24805
14067 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14068 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14069 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14070 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14071 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14072 (ps_plog): Redeclare exported functions with default visibility.
14073
3112ed97
NA
140742020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14075
14076 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14077 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14078
8dc3273e
SM
140792020-01-15 Simon Marchi <simon.marchi@efficios.com>
14080
14081 * infcmd.c (post_create_inferior): Use get_thread_regcache
14082 instead of get_current_regcache.
14083
ff47f4f0
TT
140842020-01-14 Tom Tromey <tom@tromey.com>
14085
14086 PR symtab/12535:
14087 * python/python.c (gdbpy_decode_line): Treat empty string the same
14088 as no argument.
14089
975f45b7
TT
140902020-01-14 Tom Tromey <tom@tromey.com>
14091
14092 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14093
25e57356
TT
140942020-01-14 Tom Tromey <tom@tromey.com>
14095
14096 * nat/linux-btrace.c: Don't include <config.h>.
14097 * nat/linux-ptrace.c: Don't include <config.h>.
14098 * nat/x86-linux-dregs.c: Don't include <config.h>.
14099
05ea2a05
TT
141002020-01-14 Tom Tromey <tom@tromey.com>
14101
14102 * configure: Rebuild.
14103 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14104
01027315
TT
141052020-01-14 Tom Tromey <tom@tromey.com>
14106
14107 * nat/x86-linux-dregs.c: Include configh.h.
14108 * nat/linux-ptrace.c: Include configh.h.
14109 * nat/linux-btrace.c: Include configh.h.
14110 * defs.h: Include config.h, bfd.h.
14111 * configure.ac: Don't source common.host.
14112 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14113 * configure: Rebuild.
14114 * acinclude.m4: Update path.
14115 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14116 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14117 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14118 (CLIBS): Add LIBSUPPORT.
14119 (CDEPS): Likewise.
14120 (COMMON_SFILES): Remove gdbsupport files.
14121 (HFILES_NO_SRCDIR): Likewise.
14122 (stamp-version): Update path to create-version.sh.
14123 (ALLDEPFILES): Remove gdbsupport files.
14124
b2ceabe8
TT
141252020-01-14 Tom Tromey <tom@tromey.com>
14126
14127 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14128 USE_WIN32API when needed.
14129 * configure.ac (USE_WIN32API): Don't define.
14130 (WIN32LIBS): Use WIN32APILIBS.
14131 * configure: Rebuild.
14132
25c51f71
TT
141332020-01-14 Tom Tromey <tom@tromey.com>
14134
14135 * configure: Rebuild.
14136 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14137
717c684d
BE
141382020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14139
14140 * skip.c (skip_function_command): Make skip w/o arguments use the
14141 name of the inlined function if pc is inside any inlined function.
14142
7da6a5b9
LM
141432020-01-14 Luis Machado <luis.machado@linaro.org>
14144
14145 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14146 * infrun.c (resume_1): Likewise.
14147 (handle_inferior_event): Remove stale comment.
14148 * linux-nat.c (linux_nat_target::resume): Update comments.
14149 (save_stop_reason): Likewise.
14150 (linux_nat_filter_event): Likewise.
14151 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14152
44e4c775
AB
141532020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14154
14155 * elfread.c (record_minimal_symbol): Set section index to 0 for
14156 non-allocatable sections.
14157
18a8505e
AT
14158
141592020-01-13 Ali Tamur <tamur@google.com>
14160
14161 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14162 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14163 to gdb::optional. Update comments.
14164 (dwo_file): Update comments.
14165 (read_attribute): Update API to take an additional out parameter,
14166 need_reprocess. This is used to mark attributes that need other
14167 attributes (e.g. str_offsets_base) for correct computation which may not
14168 have been read yet.
14169 (read_attribute_reprocess): New function declaration.
14170 (read_addr_index): Likewise.
14171 (read_dwo_str_index): Likewise.
14172 (read_stub_str_index): Likewise.
14173 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14174 (lookup_addr_base): New function definition.
14175 (lookup_ranges_base): Likewise.
14176 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14177 lookup_ranges_base.
14178 (init_cutu_and_read_dies): Update comments.
14179 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14180 unit. This is used to inherit parent's str_offsets_base and addr_base.
14181 Update comments.
14182 (init_cutu_and_read_dies_simple): Reflect API changes.
14183 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14184 (create_cus_hash_table): Change API to take parent compile unit.
14185 Reflect API changes.
14186 (open_and_init_dwo_file): Reflect API changes.
14187 (dwarf2_get_pc_bounds): Update comments.
14188 (dwarf2_record_block_ranges): Likewise.
14189 (read_full_die_1): Change implementation to reprocess attributes that
14190 need str_offsets_base and addr_base.
14191 (partial_die_info::read): Likewise.
14192 (read_attribute_reprocess): New function definition.
14193 (read_attribute_value): Change API to take an additional out parameter,
14194 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14195 when a non-dwo compile unit has index based attributes.
14196 (read_attribute): Reflect API changes.
14197 (read_addr_index_1): Reflect API changes. Update comments.
14198 (dwarf2_read_addr_index_data): Reflect API changes.
14199 (dwarf2_read_addr_index): Likewise.
14200 (read_str_index): Change API and implementation. This becomes a helper
14201 to be used by the new string index related methods. Update error
14202 message and comments.
14203 (read_dwo_str_index): New function definition.
14204 (read_stub_str_index): Likewise.
14205 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14206 * symfile.h (dwarf2_debug_sections): Likewise.
14207 * xcoffread.c (dwarf2_debug_sections): Likewise.
14208
0cac9354
SM
142092020-01-13 Simon Marchi <simon.marchi@efficios.com>
14210
14211 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14212 core_reg_sect type to gdb_byte *.
14213 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14214 * cris-tdep.c (fetch_core_registers): Likewise.
14215 * corelow.c (core_target::get_core_register_section): Change
14216 type of `contents` to gdb::byte_vector.
14217
9a6d629c
AB
142182020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14219
14220 * tui/tui-wingeneral.c (box_win): Position the title in the center
14221 of the border.
14222
d8b2f9e3
SM
142232020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14224
14225 * corelow.c (core_target::get_core_register_section): Use
14226 std::vector instead of alloca.
14227
bb564c58
SM
142282020-01-13 Simon Marchi <simon.marchi@efficios.com>
14229
14230 * warning.m4: Add -Wmissing-declarations to build_warnings.
14231 * configure: Re-generate.
14232
6b366111
SM
142332020-01-13 Simon Marchi <simon.marchi@efficios.com>
14234
14235 * python/python.c (init__gdb_module): Add declaration.
14236
6c265988
SM
142372020-01-13 Simon Marchi <simon.marchi@efficios.com>
14238
14239 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14240 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14241 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14242 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14243 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14244 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14245 * ada-exp.y (_initialize_ada_exp): Add declaration.
14246 * ada-lang.c (_initialize_ada_language): Add declaration.
14247 * ada-tasks.c (_initialize_tasks): Add declaration.
14248 * agent.c (_initialize_agent): Add declaration.
14249 * aix-thread.c (_initialize_aix_thread): Add declaration.
14250 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14251 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14252 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14253 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14254 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14255 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14256 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14257 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14258 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14259 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14260 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14261 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14262 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14263 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14264 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14265 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14266 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14267 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14268 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14269 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14270 * annotate.c (_initialize_annotate): Add declaration.
14271 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14272 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14273 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14274 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14275 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14276 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14277 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14278 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14279 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14280 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14281 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14282 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14283 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14284 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14285 * auto-load.c (_initialize_auto_load): Add declaration.
14286 * auxv.c (_initialize_auxv): Add declaration.
14287 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14288 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14289 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14290 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14291 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14292 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14293 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14294 * breakpoint.c (_initialize_breakpoint): Add declaration.
14295 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14296 * btrace.c (_initialize_btrace): Add declaration.
14297 * charset.c (_initialize_charset): Add declaration.
14298 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14299 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14300 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14301 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14302 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14303 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14304 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14305 * coffread.c (_initialize_coffread): Add declaration.
14306 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14307 * compile/compile.c (_initialize_compile): Add declaration.
14308 * complaints.c (_initialize_complaints): Add declaration.
14309 * completer.c (_initialize_completer): Add declaration.
14310 * copying.c (_initialize_copying): Add declaration.
14311 * corefile.c (_initialize_core): Add declaration.
14312 * corelow.c (_initialize_corelow): Add declaration.
14313 * cp-abi.c (_initialize_cp_abi): Add declaration.
14314 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14315 * cp-support.c (_initialize_cp_support): Add declaration.
14316 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14317 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14318 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14319 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14320 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14321 * ctfread.c (_initialize_ctfread): Add declaration.
14322 * d-lang.c (_initialize_d_language): Add declaration.
14323 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14324 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14325 * dbxread.c (_initialize_dbxread): Add declaration.
14326 * dcache.c (_initialize_dcache): Add declaration.
14327 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14328 * disasm.c (_initialize_disasm): Add declaration.
14329 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14330 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14331 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14332 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14333 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14334 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14335 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14336 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14337 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14338 * elfread.c (_initialize_elfread): Add declaration.
14339 * exec.c (_initialize_exec): Add declaration.
14340 * extension.c (_initialize_extension): Add declaration.
14341 * f-lang.c (_initialize_f_language): Add declaration.
14342 * f-valprint.c (_initialize_f_valprint): Add declaration.
14343 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14344 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14345 * filesystem.c (_initialize_filesystem): Add declaration.
14346 * findcmd.c (_initialize_mem_search): Add declaration.
14347 * findvar.c (_initialize_findvar): Add declaration.
14348 * fork-child.c (_initialize_fork_child): Add declaration.
14349 * frame-base.c (_initialize_frame_base): Add declaration.
14350 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14351 * frame.c (_initialize_frame): Add declaration.
14352 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14353 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14354 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14355 * gcore.c (_initialize_gcore): Add declaration.
14356 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14357 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14358 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14359 * gdbarch.c (_initialize_gdbarch): Add declaration.
14360 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14361 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14362 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14363 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14364 * go-lang.c (_initialize_go_language): Add declaration.
14365 * go32-nat.c (_initialize_go32_nat): Add declaration.
14366 * guile/guile.c (_initialize_guile): Add declaration.
14367 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14368 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14369 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14370 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14371 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14372 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14373 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14374 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14375 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14376 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14377 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14378 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14379 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14380 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14381 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14382 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14383 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14384 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14385 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14386 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14387 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14388 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14389 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14390 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14391 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14392 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14393 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14394 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14395 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14396 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14397 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14398 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14399 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14400 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14401 * infcall.c (_initialize_infcall): Add declaration.
14402 * infcmd.c (_initialize_infcmd): Add declaration.
14403 * inflow.c (_initialize_inflow): Add declaration.
14404 * infrun.c (_initialize_infrun): Add declaration.
14405 * interps.c (_initialize_interpreter): Add declaration.
14406 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14407 * jit.c (_initialize_jit): Add declaration.
14408 * language.c (_initialize_language): Add declaration.
14409 * linux-fork.c (_initialize_linux_fork): Add declaration.
14410 * linux-nat.c (_initialize_linux_nat): Add declaration.
14411 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14412 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14413 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14414 * m2-lang.c (_initialize_m2_language): Add declaration.
14415 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14416 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14417 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14418 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14419 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14420 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14421 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14422 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14423 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14424 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14425 * machoread.c (_initialize_machoread): Add declaration.
14426 * macrocmd.c (_initialize_macrocmd): Add declaration.
14427 * macroscope.c (_initialize_macroscope): Add declaration.
14428 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14429 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14430 * maint.c (_initialize_maint_cmds): Add declaration.
14431 * mdebugread.c (_initialize_mdebugread): Add declaration.
14432 * memattr.c (_initialize_mem): Add declaration.
14433 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14434 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14435 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14436 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14437 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14438 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14439 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14440 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14441 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14442 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14443 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14444 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14445 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14446 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14447 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14448 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14449 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14450 * mipsread.c (_initialize_mipsread): Add declaration.
14451 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14452 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14453 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14454 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14455 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14456 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14457 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14458 * nto-procfs.c (_initialize_procfs): Add declaration.
14459 * objc-lang.c (_initialize_objc_language): Add declaration.
14460 * observable.c (_initialize_observer): Add declaration.
14461 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14462 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14463 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14464 * osabi.c (_initialize_gdb_osabi): Add declaration.
14465 * osdata.c (_initialize_osdata): Add declaration.
14466 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14467 * parse.c (_initialize_parse): Add declaration.
14468 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14469 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14470 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14471 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14472 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14473 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14474 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14475 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14476 * printcmd.c (_initialize_printcmd): Add declaration.
14477 * probe.c (_initialize_probe): Add declaration.
14478 * proc-api.c (_initialize_proc_api): Add declaration.
14479 * proc-events.c (_initialize_proc_events): Add declaration.
14480 * proc-service.c (_initialize_proc_service): Add declaration.
14481 * procfs.c (_initialize_procfs): Add declaration.
14482 * producer.c (_initialize_producer): Add declaration.
14483 * psymtab.c (_initialize_psymtab): Add declaration.
14484 * python/python.c (_initialize_python): Add declaration.
14485 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14486 * record-btrace.c (_initialize_record_btrace): Add declaration.
14487 * record-full.c (_initialize_record_full): Add declaration.
14488 * record.c (_initialize_record): Add declaration.
14489 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14490 * regcache.c (_initialize_regcache): Add declaration.
14491 * reggroups.c (_initialize_reggroup): Add declaration.
14492 * remote-notif.c (_initialize_notif): Add declaration.
14493 * remote-sim.c (_initialize_remote_sim): Add declaration.
14494 * remote.c (_initialize_remote): Add declaration.
14495 * reverse.c (_initialize_reverse): Add declaration.
14496 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14497 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14498 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14499 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14500 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14501 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14502 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14503 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14504 Add declaration.
14505 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14506 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14507 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14508 * rust-exp.y (_initialize_rust_exp): Add declaration.
14509 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14510 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14511 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14512 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14513 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14514 * score-tdep.c (_initialize_score_tdep): Add declaration.
14515 * ser-go32.c (_initialize_ser_dos): Add declaration.
14516 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14517 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14518 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14519 * ser-uds.c (_initialize_ser_socket): Add declaration.
14520 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14521 * serial.c (_initialize_serial): Add declaration.
14522 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14523 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14524 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14525 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14526 * skip.c (_initialize_step_skip): Add declaration.
14527 * sol-thread.c (_initialize_sol_thread): Add declaration.
14528 * solib-aix.c (_initialize_solib_aix): Add declaration.
14529 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14530 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14531 * solib-frv.c (_initialize_frv_solib): Add declaration.
14532 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14533 * solib-target.c (_initialize_solib_target): Add declaration.
14534 * solib.c (_initialize_solib): Add declaration.
14535 * source-cache.c (_initialize_source_cache): Add declaration.
14536 * source.c (_initialize_source): Add declaration.
14537 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14538 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14539 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14540 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14541 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14542 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14543 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14544 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14545 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14546 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14547 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14548 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14549 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14550 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14551 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14552 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14553 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14554 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14555 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14556 * stabsread.c (_initialize_stabsread): Add declaration.
14557 * stack.c (_initialize_stack): Add declaration.
14558 * stap-probe.c (_initialize_stap_probe): Add declaration.
14559 * std-regs.c (_initialize_frame_reg): Add declaration.
14560 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14561 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14562 * symfile.c (_initialize_symfile): Add declaration.
14563 * symmisc.c (_initialize_symmisc): Add declaration.
14564 * symtab.c (_initialize_symtab): Add declaration.
14565 * target.c (_initialize_target): Add declaration.
14566 * target-connection.c (_initialize_target_connection): Add
14567 declaration.
14568 * target-dcache.c (_initialize_target_dcache): Add declaration.
14569 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14570 * thread.c (_initialize_thread): Add declaration.
14571 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14572 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14573 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14574 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14575 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14576 * tracectf.c (_initialize_ctf): Add declaration.
14577 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14578 * tracefile.c (_initialize_tracefile): Add declaration.
14579 * tracepoint.c (_initialize_tracepoint): Add declaration.
14580 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14581 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14582 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14583 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14584 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14585 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14586 * tui/tui.c (_initialize_tui): Add declaration.
14587 * typeprint.c (_initialize_typeprint): Add declaration.
14588 * ui-style.c (_initialize_ui_style): Add declaration.
14589 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14590 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14591 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14592 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14593 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14594 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14595 * unittests/filtered_iterator-selftests.c
14596 (_initialize_filtered_iterator_selftests): Add declaration.
14597 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14598 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14599 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14600 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14601 * unittests/main-thread-selftests.c
14602 (_initialize_main_thread_selftests): Add declaration.
14603 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14604 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14605 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14606 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14607 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14608 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14609 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14610 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14611 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14612 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14613 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14614 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14615 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14616 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14617 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14618 declaration.
14619 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14620 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14621 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14622 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14623 * user-regs.c (_initialize_user_regs): Add declaration.
14624 * utils.c (_initialize_utils): Add declaration.
14625 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14626 * valops.c (_initialize_valops): Add declaration.
14627 * valprint.c (_initialize_valprint): Add declaration.
14628 * value.c (_initialize_values): Add declaration.
14629 * varobj.c (_initialize_varobj): Add declaration.
14630 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14631 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14632 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14633 * windows-nat.c (_initialize_windows_nat): Add declaration.
14634 (_initialize_check_for_gdb_ini): Add declaration.
14635 (_initialize_loadable): Add declaration.
14636 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14637 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14638 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14639 * xcoffread.c (_initialize_xcoffread): Add declaration.
14640 * xml-support.c (_initialize_xml_support): Add declaration.
14641 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14642 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14643 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14644 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14645
e2de1eec
SM
146462020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14647
14648 * regformats/regdat.sh: Generate declaration for init function.
14649
e0037b4c
SM
146502020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14651
14652 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14653 up.
14654 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14655 close_one_inferior>: New methods.
14656 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14657 pass down target to find_inferior_pid.
14658 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14659 Pass down target to find_inferior_ptid.
14660 (gdbsim_target::create_inferior): Pass down target to
14661 add_thread_silent.
14662 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14663 target down to find_inferior_ptid and switch_to_thread.
14664 (gdbsim_target::close): Update to call close_one_inferior.
14665 (struct resume_data): Remove.
14666 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14667 directly, rather than through a void pointer.
14668 (gdbsim_target::resume): Update to call resume_one_inferior.
14669
58920b5b
SM
146702020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14671
14672 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14673
4ec89149
PA
146742020-01-12 Pedro Alves <palves@redhat.com>
14675
14676 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14677 directly for the current inferior instead of
14678 discard_all_inferiors.
14679 (discard_all_inferiors): Delete.
14680
7c392d1d
TT
146812020-01-11 Tom Tromey <tom@tromey.com>
14682
14683 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14684 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14685 deprecated_safe_get_selected_frame.
14686
d9ebdab7
TBA
146872020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14688
14689 * inferior.c (print_inferior): Switch inferior before printing it.
14690
f3c469b9
PA
146912020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14692 Pedro Alves <palves@redhat.com>
14693
14694 * progspace-and-thread.c (switch_to_program_space_and_thread):
14695 Assert there's an inferior for PSPACE. Use
14696 switch_to_inferior_no_thread to switch the inferior too.
14697 * progspace.c (program_space::~program_space): Call
14698 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14699 (program_space::free_all_objfiles): Don't call clear_symtab_users
14700 here.
14701 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14702
65c574f6
PA
147032020-01-10 Pedro Alves <palves@redhat.com>
14704
14705 * NEWS: Mention multi-target debugging, "info connections", and
14706 "add-inferior -no-connection".
14707
2f4fcf00
PA
147082020-01-10 Pedro Alves <palves@redhat.com>
14709
14710 * infrun.c: Include "target-connection.h".
14711 (check_multi_target_resumption): New.
14712 (proceed): Call it.
14713 * target-connection.c (make_target_connection_string): Make
14714 extern.
14715 * target-connection.h (make_target_connection_string): Declare.
14716
121b3efd
PA
147172020-01-10 Pedro Alves <palves@redhat.com>
14718
14719 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14720 * inferior.c (uiout_field_connection): New function.
14721 (print_inferior): Add new "connection-id" column.
14722 (add_inferior_command): Show connection number/string of added
14723 inferior.
14724 * process-stratum-target.h
14725 (process_stratum_target::connection_string): New virtual method.
14726 (process_stratum_target::connection_number): New field.
14727 * remote.c (remote_target::connection_string): New override.
14728 * target-connection.c: New file.
14729 * target-connection.h: New file.
14730 * target.c (decref_target): Remove process_stratum targets from
14731 the connection list.
14732 (target_stack::push): Add process_stratum targets to the
14733 connection list.
14734
4f837581
PA
147352020-01-10 Pedro Alves <palves@redhat.com>
14736
14737 Revert:
14738 2016-04-12 Pedro Alves <palves@redhat.com>
14739 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14740 Remove references to name.
14741 * serial.h (struct serial) <name>: Delete.
14742
f4ec508e
PA
147432020-01-10 Pedro Alves <palves@redhat.com>
14744
14745 * gdbarch-selftests.c (register_to_value_test): Remove "target
14746 already pushed" check.
14747
5b6d1e4f
PA
147482020-01-10 Pedro Alves <palves@redhat.com>
14749 John Baldwin <jhb@FreeBSD.org>
14750
14751 * aarch64-linux-nat.c
14752 (aarch64_linux_nat_target::thread_architecture): Adjust.
14753 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14754 (task_command_1): Likewise.
14755 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14756 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14757 (aix_thread_target::store_registers)
14758 (aix_thread_target::thread_alive): Adjust.
14759 * amd64-fbsd-tdep.c: Include "inferior.h".
14760 (amd64fbsd_get_thread_local_address): Pass down target.
14761 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14762 thread's gdbarch instead of target_gdbarch.
14763 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14764 get_last_target_status.
14765 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14766 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14767 inferiors.
14768 (update_inserted_breakpoint_locations): Skip if inferiors with no
14769 execution.
14770 (update_global_location_list): When handling moribund locations,
14771 find representative inferior for location's pspace, and use thread
14772 count of its process_stratum target.
14773 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14774 * bsd-uthread.c (bsd_uthread_target::wait): Use
14775 as_process_stratum_target and adjust thread_change_ptid and
14776 add_thread calls.
14777 (bsd_uthread_target::update_thread_list): Use
14778 as_process_stratum_target and adjust find_thread_ptid,
14779 thread_change_ptid and add_thread calls.
14780 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14781 find_thread_ptid call.
14782 * corelow.c (add_to_thread_list): Adjust add_thread call.
14783 (core_target_open): Adjust add_thread_silent and thread_count
14784 calls.
14785 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14786 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14787 * event-top.c (async_disconnect): Pop targets from all inferiors.
14788 * exec.c (add_target_sections): Push exec target on all inferiors
14789 sharing the program space.
14790 (remove_target_sections): Remove the exec target from all
14791 inferiors sharing the program space.
14792 (exec_on_vfork): New.
14793 * exec.h (exec_on_vfork): Declare.
14794 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14795 Pass it down.
14796 (fbsd_nat_target::update_thread_list): Adjust.
14797 (fbsd_nat_target::resume): Adjust.
14798 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14799 down.
14800 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14801 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14802 get_thread_arch_regcache call.
14803 * fork-child.c (gdb_startup_inferior): Pass target down to
14804 startup_inferior and set_executing.
14805 * gdbthread.h (struct process_stratum_target): Forward declare.
14806 (add_thread, add_thread_silent, add_thread_with_info)
14807 (in_thread_list): Add process_stratum_target parameter.
14808 (find_thread_ptid(inferior*, ptid_t)): New overload.
14809 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14810 parameter.
14811 (all_threads()): Delete overload.
14812 (all_threads, all_non_exited_threads): Add process_stratum_target
14813 parameter.
14814 (all_threads_safe): Use brace initialization.
14815 (thread_count): Add process_stratum_target parameter.
14816 (set_resumed, set_running, set_stop_requested, set_executing)
14817 (threads_are_executing, finish_thread_state): Add
14818 process_stratum_target parameter.
14819 (switch_to_thread): Use is_current_thread.
14820 * i386-fbsd-tdep.c: Include "inferior.h".
14821 (i386fbsd_get_thread_local_address): Pass down target.
14822 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14823 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14824 have_inferiors check.
14825 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14826 (inf_ptrace_target::attach): Adjust.
14827 * infcall.c (run_inferior_call): Adjust.
14828 * infcmd.c (run_command_1): Pass target to
14829 scoped_finish_thread_state.
14830 (proceed_thread_callback): Skip inferiors with no execution.
14831 (continue_command): Rename 'all_threads' local to avoid hiding
14832 'all_threads' function. Adjust get_last_target_status call.
14833 (prepare_one_step): Adjust set_running call.
14834 (signal_command): Use user_visible_resume_target. Compare thread
14835 pointers instead of inferior_ptid.
14836 (info_program_command): Adjust to pass down target.
14837 (attach_command): Mark target's 'thread_executing' flag.
14838 (stop_current_target_threads_ns): New, factored out from ...
14839 (interrupt_target_1): ... this. Switch inferior before making
14840 target calls.
14841 * inferior-iter.h
14842 (struct all_inferiors_iterator, struct all_inferiors_range)
14843 (struct all_inferiors_safe_range)
14844 (struct all_non_exited_inferiors_range): Filter on
14845 process_stratum_target too. Remove explicit.
14846 * inferior.c (inferior::inferior): Push dummy target on target
14847 stack.
14848 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14849 Add process_stratum_target parameter, and pass it down.
14850 (have_live_inferiors): Adjust.
14851 (switch_to_inferior_and_push_target): New.
14852 (add_inferior_command, clone_inferior_command): Handle
14853 "-no-connection" parameter. Use
14854 switch_to_inferior_and_push_target.
14855 (_initialize_inferior): Mention "-no-connection" option in
14856 the help of "add-inferior" and "clone-inferior" commands.
14857 * inferior.h: Include "process-stratum-target.h".
14858 (interrupt_target_1): Use bool.
14859 (struct inferior) <push_target, unpush_target, target_is_pushed,
14860 find_target_beneath, top_target, process_target, target_at,
14861 m_stack>: New.
14862 (discard_all_inferiors): Delete.
14863 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14864 (all_inferiors, all_non_exited_inferiors): Add
14865 process_stratum_target parameter.
14866 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14867 (target_last_proc_target): New global.
14868 (follow_fork_inferior): Push target on new inferior. Pass target
14869 to add_thread_silent. Call exec_on_vfork. Handle target's
14870 reference count.
14871 (follow_fork): Adjust get_last_target_status call. Also consider
14872 target.
14873 (follow_exec): Push target on new inferior.
14874 (struct execution_control_state) <target>: New field.
14875 (user_visible_resume_target): New.
14876 (do_target_resume): Call target_async.
14877 (resume_1): Set target's threads_executing flag. Consider resume
14878 target.
14879 (commit_resume_all_targets): New.
14880 (proceed): Also consider resume target. Skip threads of inferiors
14881 with no execution. Commit resumtion in all targets.
14882 (start_remote): Pass current inferior to wait_for_inferior.
14883 (infrun_thread_stop_requested): Consider target as well. Pass
14884 thread_info pointer to clear_inline_frame_state instead of ptid.
14885 (infrun_thread_thread_exit): Consider target as well.
14886 (random_pending_event_thread): New inferior parameter. Use it.
14887 (do_target_wait): Rename to ...
14888 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14889 down.
14890 (threads_are_resumed_pending_p, do_target_wait): New.
14891 (prepare_for_detach): Adjust calls.
14892 (wait_for_inferior): New inferior parameter. Handle it. Use
14893 do_target_wait_1 instead of do_target_wait.
14894 (fetch_inferior_event): Adjust. Switch to representative
14895 inferior. Pass target down.
14896 (set_last_target_status): Add process_stratum_target parameter.
14897 Save target in global.
14898 (get_last_target_status): Add process_stratum_target parameter and
14899 handle it.
14900 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14901 (context_switch): Check inferior_ptid == null_ptid before calling
14902 inferior_thread().
14903 (get_inferior_stop_soon): Pass down target.
14904 (wait_one): Rename to ...
14905 (poll_one_curr_target): ... this.
14906 (struct wait_one_event): New.
14907 (wait_one): New.
14908 (stop_all_threads): Adjust.
14909 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14910 event's target.
14911 (switch_back_to_stepped_thread): Also consider target.
14912 (print_stop_event): Update.
14913 (normal_stop): Update. Also consider the resume target.
14914 * infrun.h (wait_for_inferior): Remove declaration.
14915 (user_visible_resume_target): New declaration.
14916 (get_last_target_status, set_last_target_status): New
14917 process_stratum_target parameter.
14918 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14919 process_stratum_target parameter, and use it.
14920 (clear_inline_frame_state (thread_info*)): New.
14921 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14922 process_stratum_target parameter.
14923 (clear_inline_frame_state (thread_info*)): Declare.
14924 * linux-fork.c (delete_checkpoint_command): Pass target down to
14925 find_thread_ptid.
14926 (checkpoint_command): Adjust.
14927 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14928 instead of just tweaking inferior_ptid.
14929 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14930 (exit_lwp): Pass target down to find_thread_ptid.
14931 (attach_proc_task_lwp_callback): Pass target down to
14932 add_thread/set_running/set_executing.
14933 (linux_nat_target::attach): Pass target down to
14934 thread_change_ptid.
14935 (get_detach_signal): Pass target down to find_thread_ptid.
14936 Consider last target status's target.
14937 (linux_resume_one_lwp_throw, resume_lwp)
14938 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14939 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14940 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14941 (linux_nat_target::async_wait_fd): New.
14942 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14943 target down.
14944 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14945 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14946 * linux-thread-db.c (struct thread_db_info::process_target): New
14947 field.
14948 (add_thread_db_info): Save target.
14949 (get_thread_db_info): New process_stratum_target parameter. Also
14950 match target.
14951 (delete_thread_db_info): New process_stratum_target parameter.
14952 Also match target.
14953 (thread_from_lwp): Adjust to pass down target.
14954 (thread_db_notice_clone): Pass down target.
14955 (check_thread_db_callback): Pass down target.
14956 (try_thread_db_load_1): Always push the thread_db target.
14957 (try_thread_db_load, record_thread): Pass target down.
14958 (thread_db_target::detach): Pass target down. Always unpush the
14959 thread_db target.
14960 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14961 target down. Always unpush the thread_db target.
14962 (find_new_threads_callback, thread_db_find_new_threads_2)
14963 (thread_db_target::update_thread_list): Pass target down.
14964 (thread_db_target::pid_to_str): Pass current inferior down.
14965 (thread_db_target::get_thread_local_address): Pass target down.
14966 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14967 target down.
14968 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14969 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14970 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14971 (procfs_init_inferior): Rename to ...
14972 (procfs_target::procfs_init_inferior): ... this and adjust.
14973 (procfs_target::create_inferior, procfs_notice_thread)
14974 (procfs_do_thread_registers): Adjust.
14975 * ppc-fbsd-tdep.c: Include "inferior.h".
14976 (ppcfbsd_get_thread_local_address): Pass down target.
14977 * proc-service.c (ps_xfer_memory): Switch current inferior and
14978 program space as well.
14979 (get_ps_regcache): Pass target down.
14980 * process-stratum-target.c
14981 (process_stratum_target::thread_address_space)
14982 (process_stratum_target::thread_architecture): Pass target down.
14983 * process-stratum-target.h
14984 (process_stratum_target::threads_executing): New field.
14985 (as_process_stratum_target): New.
14986 * ravenscar-thread.c
14987 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14988 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14989 down.
14990 * record-btrace.c (record_btrace_target::info_record): Adjust.
14991 (record_btrace_target::record_method)
14992 (record_btrace_target::record_is_replaying)
14993 (record_btrace_target::fetch_registers)
14994 (get_thread_current_frame_id, record_btrace_target::resume)
14995 (record_btrace_target::wait, record_btrace_target::stop): Pass
14996 target down.
14997 * record-full.c (record_full_wait_1): Switch to event thread.
14998 Pass target down.
14999 * regcache.c (regcache::regcache)
15000 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15001 process_stratum_target parameter and handle it.
15002 (current_thread_target): New global.
15003 (get_thread_regcache): Add process_stratum_target parameter and
15004 handle it. Switch inferior before calling target method.
15005 (get_thread_regcache): Pass target down.
15006 (get_thread_regcache_for_ptid): Pass target down.
15007 (registers_changed_ptid): Add process_stratum_target parameter and
15008 handle it.
15009 (registers_changed_thread, registers_changed): Pass target down.
15010 (test_get_thread_arch_aspace_regcache): New.
15011 (current_regcache_test): Define a couple local test_target_ops
15012 instances and use them for testing.
15013 (readwrite_regcache): Pass process_stratum_target parameter.
15014 (cooked_read_test, cooked_write_test): Pass mock_target down.
15015 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15016 (get_thread_arch_aspace_regcache): Add process_stratum_target
15017 parameter.
15018 (regcache::target): New method.
15019 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15020 (regcache::registers_changed_ptid): Add process_stratum_target
15021 parameter.
15022 (regcache::m_target): New field.
15023 (registers_changed_ptid): Add process_stratum_target parameter.
15024 * remote.c (remote_state::supports_vCont_probed): New field.
15025 (remote_target::async_wait_fd): New method.
15026 (remote_unpush_and_throw): Add remote_target parameter.
15027 (get_current_remote_target): Adjust.
15028 (remote_target::remote_add_inferior): Push target.
15029 (remote_target::remote_add_thread)
15030 (remote_target::remote_notice_new_inferior)
15031 (get_remote_thread_info): Pass target down.
15032 (remote_target::update_thread_list): Skip threads of inferiors
15033 bound to other targets. (remote_target::close): Don't discard
15034 inferiors. (remote_target::add_current_inferior_and_thread)
15035 (remote_target::process_initial_stop_replies)
15036 (remote_target::start_remote)
15037 (remote_target::remote_serial_quit_handler): Pass down target.
15038 (remote_target::remote_unpush_target): New remote_target
15039 parameter. Unpush the target from all inferiors.
15040 (remote_target::remote_unpush_and_throw): New remote_target
15041 parameter. Pass it down.
15042 (remote_target::open_1): Check whether the current inferior has
15043 execution instead of checking whether any inferior is live. Pass
15044 target down.
15045 (remote_target::remote_detach_1): Pass down target. Use
15046 remote_unpush_target.
15047 (extended_remote_target::attach): Pass down target.
15048 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15049 (remote_target::append_resumption): Pass down target.
15050 (remote_target::append_pending_thread_resumptions)
15051 (remote_target::remote_resume_with_hc, remote_target::resume)
15052 (remote_target::commit_resume): Pass down target.
15053 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15054 (remote_target::interrupt_query)
15055 (remote_target::remove_new_fork_children)
15056 (remote_target::check_pending_events_prevent_wildcard_vcont)
15057 (remote_target::remote_parse_stop_reply)
15058 (remote_target::process_stop_reply): Pass down target.
15059 (first_remote_resumed_thread): New remote_target parameter. Pass
15060 it down.
15061 (remote_target::wait_as): Pass down target.
15062 (unpush_and_perror): New remote_target parameter. Pass it down.
15063 (remote_target::readchar, remote_target::remote_serial_write)
15064 (remote_target::getpkt_or_notif_sane_1)
15065 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15066 down target.
15067 (remote_target::mourn_inferior): Pass down target. Use
15068 remote_unpush_target.
15069 (remote_target::core_of_thread)
15070 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15071 (remote_target::pid_to_exec_file)
15072 (remote_target::thread_handle_to_thread_info): Pass down target.
15073 (remote_target::async_wait_fd): New.
15074 * riscv-fbsd-tdep.c: Include "inferior.h".
15075 (riscv_fbsd_get_thread_local_address): Pass down target.
15076 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15077 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15078 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15079 Adjust.
15080 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15081 * solib-svr4.c (enable_break): Pass down target.
15082 * spu-multiarch.c (parse_spufs_run): Pass down target.
15083 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15084 * target-delegates.c: Regenerate.
15085 * target.c (g_target_stack): Delete.
15086 (current_top_target): Return the current inferior's top target.
15087 (target_has_execution_1): Refer to the passed-in inferior's top
15088 target.
15089 (target_supports_terminal_ours): Check whether the initial
15090 inferior was already created.
15091 (decref_target): New.
15092 (target_stack::push): Incref/decref the target.
15093 (push_target, push_target, unpush_target): Adjust.
15094 (target_stack::unpush): Defref target.
15095 (target_is_pushed): Return bool. Adjust to refer to the current
15096 inferior's target stack.
15097 (dispose_inferior): Delete, and inline parts ...
15098 (target_preopen): ... here. Only dispose of the current inferior.
15099 (target_detach): Hold strong target reference while detaching.
15100 Pass target down.
15101 (target_thread_name): Add assertion.
15102 (target_resume): Pass down target.
15103 (target_ops::beneath, find_target_at): Adjust to refer to the
15104 current inferior's target stack.
15105 (get_dummy_target): New.
15106 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15107 has a thread running.
15108 (initialize_targets): Rename to ...
15109 (_initialize_target): ... this.
15110 * target.h: Include "gdbsupport/refcounted-object.h".
15111 (struct target_ops): Inherit refcounted_object.
15112 (target_ops::shortname, target_ops::longname): Make const.
15113 (target_ops::async_wait_fd): New method.
15114 (decref_target): Declare.
15115 (struct target_ops_ref_policy): New.
15116 (target_ops_ref): New typedef.
15117 (get_dummy_target): Declare function.
15118 (target_is_pushed): Return bool.
15119 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15120 (all_matching_threads_iterator::all_matching_threads_iterator):
15121 Handle filter target.
15122 * thread-iter.h (struct all_matching_threads_iterator, struct
15123 all_matching_threads_range, class all_non_exited_threads_range):
15124 Filter by target too. Remove explicit.
15125 * thread.c (threads_executing): Delete.
15126 (inferior_thread): Pass down current inferior.
15127 (clear_thread_inferior_resources): Pass down thread pointer
15128 instead of ptid_t.
15129 (add_thread_silent, add_thread_with_info, add_thread): Add
15130 process_stratum_target parameter. Use it for thread and inferior
15131 searches.
15132 (is_current_thread): New.
15133 (thread_info::deletable): Use it.
15134 (find_thread_ptid, thread_count, in_thread_list)
15135 (thread_change_ptid, set_resumed, set_running): New
15136 process_stratum_target parameter. Pass it down.
15137 (set_executing): New process_stratum_target parameter. Pass it
15138 down. Adjust reference to 'threads_executing'.
15139 (threads_are_executing): New process_stratum_target parameter.
15140 Adjust reference to 'threads_executing'.
15141 (set_stop_requested, finish_thread_state): New
15142 process_stratum_target parameter. Pass it down.
15143 (switch_to_thread): Also match inferior.
15144 (switch_to_thread): New process_stratum_target parameter. Pass it
15145 down.
15146 (update_threads_executing): Reimplement.
15147 * top.c (quit_force): Pop targets from all inferior.
15148 (gdb_init): Don't call initialize_targets.
15149 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15150 Declare.
15151 (windows_add_thread, windows_delete_thread): Adjust.
15152 (get_windows_debug_event): Rename to ...
15153 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15154 * tracefile-tfile.c (tfile_target_open): Pass down target.
15155 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15156 Forward declare.
15157 (switch_to_thread): Add process_stratum_target parameter.
15158 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15159 parameter. Use it.
15160 (mi_on_resume): Pass target down.
15161 * nat/fork-inferior.c (startup_inferior): Add
15162 process_stratum_target parameter. Pass it down.
15163 * nat/fork-inferior.h (startup_inferior): Add
15164 process_stratum_target parameter.
15165 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15166
75c6c844
PA
151672020-01-10 Pedro Alves <palves@redhat.com>
15168
15169 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15170 directly. Instead find the first thread in the thread list and
15171 use switch_to_thread.
15172
78f2c40a
PA
151732020-01-10 Pedro Alves <palves@redhat.com>
15174
15175 * remote.c (remote_target::remote_add_inferior): Don't bind a
15176 process to the current inferior if the current inferior is already
15177 bound to a process.
15178
e7af6c70
TBA
151792020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15180 Pedro Alves <palves@redhat.com>
15181
15182 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15183 If no process is specified, return null_ptid instead of
15184 inferior_ptid.
15185 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15186 TARGET_WAITKIND_SIGNALLED with no pid.
15187
31ba933e
PA
151882020-01-10 Pedro Alves <palves@redhat.com>
15189
15190 * remote.c (first_remote_resumed_thread): New.
15191 (remote_target::wait_as): Use it as default event_ptid instead of
15192 inferior_ptid.
15193
735fc2ca
PA
151942020-01-10 Pedro Alves <palves@redhat.com>
15195
15196 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15197
c17e02e1
PA
151982020-01-10 Pedro Alves <palves@redhat.com>
15199
15200 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15201 not -1.
15202
ab1ddbcf
PA
152032020-01-10 Pedro Alves <palves@redhat.com>
15204
15205 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15206 ptid to get_last_target_status.
15207 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15208 ptid to get_last_target_status.
15209 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15210 get_last_target_status.
15211 (info_program_command): Don't pass a target_waitstatus to
15212 get_last_target_status.
15213 * infrun.c (init_wait_for_inferior): Use
15214 nullify_last_target_wait_ptid.
15215 (get_last_target_status): Handle nullptr arguments.
15216 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15217 (print_stop_event): Don't pass a ptid to get_last_target_status.
15218 (normal_stop): Don't pass a ptid to get_last_target_status.
15219 * infrun.h (get_last_target_status, set_last_target_status): Move
15220 comments here and update.
15221 (nullify_last_target_wait_ptid): Declare.
15222 * linux-fork.c (fork_load_infrun_state): Remove local extern
15223 declaration of nullify_last_target_wait_ptid.
15224 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15225 to get_last_target_status.
15226
f3f8ece4
PA
152272020-01-10 Pedro Alves <palves@redhat.com>
15228
15229 * gdbthread.h (scoped_restore_current_thread)
15230 <dont_restore, restore, m_dont_restore>: Declare.
15231 * thread.c (thread_alive): Add assertion. Return bool.
15232 (switch_to_thread_if_alive): New.
15233 (prune_threads): Switch inferior/thread.
15234 (print_thread_info_1): Switch thread before calling target methods.
15235 (scoped_restore_current_thread::restore): New, factored out from
15236 ...
15237 (scoped_restore_current_thread::~scoped_restore_current_thread):
15238 ... this.
15239 (scoped_restore_current_thread::scoped_restore_current_thread):
15240 Add assertion.
15241 (thread_apply_all_command, thread_select): Use
15242 switch_to_thread_if_alive.
15243 * infrun.c (proceed, restart_threads, handle_signal_stop)
15244 (switch_back_to_stepped_thread): Switch current thread before
15245 calling target methods.
15246
db2d40f7
PA
152472020-01-10 Pedro Alves <palves@redhat.com>
15248
15249 * inferior.c (switch_to_inferior_no_thread): New function,
15250 factored out from ...
15251 (inferior_command): ... here.
15252 * inferior.h (switch_to_inferior_no_thread): Declare.
15253 * mi/mi-main.c (run_one_inferior): Use
15254 switch_to_inferior_no_thread.
15255
bd420a2d
PA
152562020-01-10 Pedro Alves <palves@redhat.com>
15257
15258 * infcmd.c (kill_command): Remove dead code.
15259
ddf5db90
PA
152602020-01-10 Pedro Alves <palves@redhat.com>
15261
15262 * remote.c (remote_target::mourn_inferior): No longer check
15263 whether the target is running.
15264
5018ce90
PA
152652020-01-10 Pedro Alves <palves@redhat.com>
15266
15267 * corelow.c (core_target::has_execution): Change parameter type to
15268 inferior pointer.
15269 * inferior.c (number_of_live_inferiors): Use
15270 inferior::has_execution instead of target_has_execution_1.
15271 * inferior.h (inferior::has_execution): New.
15272 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15273 inferior::has_execution instead of target_has_execution_1.
15274 * process-stratum-target.c
15275 (process_stratum_target::has_execution): Change parameter type to
15276 inferior pointer. Check the inferior's PID instead of
15277 inferior_ptid.
15278 * process-stratum-target.h
15279 (process_stratum_target::has_execution): Change parameter type to
15280 inferior pointer.
15281 * record-full.c (record_full_core_target::has_execution): Change
15282 parameter type to inferior pointer.
15283 * target.c (target_has_execution_1): Change parameter type to
15284 inferior pointer.
15285 (target_has_execution_current): Adjust.
15286 * target.h (target_ops::has_execution): Change parameter type to
15287 inferior pointer.
15288 (target_has_execution_1): Change parameter type to inferior
15289 pointer. Change return type to bool.
15290 * tracefile.h (tracefile_target::has_execution): Change parameter
15291 type to inferior pointer.
15292
74375d18
PA
152932020-01-10 Pedro Alves <palves@redhat.com>
15294
15295 * exceptions.c (print_flush): Remove current_top_target() check.
15296
acdf84a6
PA
152972020-01-10 Pedro Alves <palves@redhat.com>
15298
15299 * remote.c (show_remote_exec_file): Show the current inferior's
15300 exec-file instead of the command variable's value.
15301
ec506636
PA
153022020-01-10 Pedro Alves <palves@redhat.com>
15303
15304 * record-full.c (record_full_resume_ptid): New global.
15305 (record_full_target::resume): Set it.
15306 (record_full_wait_1): Use record_full_resume_ptid instead of
15307 inferior_ptid.
15308
873657b9
PA
153092020-01-10 Pedro Alves <palves@redhat.com>
15310
15311 * gdbthread.h (scoped_restore_current_thread)
15312 <dont_restore, restore, m_dont_restore>: Declare.
15313 * thread.c (thread_alive): Add assertion. Return bool.
15314 (switch_to_thread_if_alive): New.
15315 (prune_threads): Switch inferior/thread.
15316 (print_thread_info_1): Switch thread before calling target methods.
15317 (scoped_restore_current_thread::restore): New, factored out from
15318 ...
15319 (scoped_restore_current_thread::~scoped_restore_current_thread):
15320 ... this.
15321 (scoped_restore_current_thread::scoped_restore_current_thread):
15322 Add assertion.
15323 (thread_apply_all_command, thread_select): Use
15324 switch_to_thread_if_alive.
15325
7f0ae84c
GB
153262020-01-10 George Barrett <bob@bob131.so>
15327
15328 * stap-probe.c (stap_modify_semaphore): Don't check for null
15329 semaphores.
15330 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15331 for null semaphores.
15332
f5a7c406
AB
153332020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15334
15335 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15336 all source windows, and maintain horizontal scroll status while
15337 doing so.
15338
9ae6bf64
TT
153392020-01-09 Tom Tromey <tom@tromey.com>
15340
15341 PR tui/18932:
15342 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15343 update_source_window, not print_source_lines.
15344
b2efe70c
AB
153452020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15346
15347 * tui/tui.c (tui_enable): Register tui hooks after calling
15348 tui_display_main.
15349
5f23a082
CB
153502020-01-09 Christian Biesinger <cbiesinger@google.com>
15351
15352 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15353
3061113b
SM
153542020-01-08 Simon Marchi <simon.marchi@efficios.com>
15355
15356 * thread.c (print_thread_info_1): Fix indentation.
15357
57d75002
CB
153582020-01-09 Christian Biesinger <cbiesinger@google.com>
15359
15360 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15361 unique_xmalloc_ptr outside the if to always free the demangled name.
15362
6a053cb1
TT
153632020-01-08 Tom Tromey <tromey@adacore.com>
15364
15365 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15366 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15367 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15368 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15369 Remove.
15370 (section_offsets): New typedef.
15371 * symtab.c (fixup_section, get_msymbol_address): Update.
15372 * symmisc.c (dump_msymbols): Update.
15373 * symfile.h (relative_addr_info_to_section_offsets)
15374 (symfile_map_offsets_to_segments): Update.
15375 * symfile.c (build_section_addr_info_from_objfile)
15376 (init_objfile_sect_indices): Update.
15377 (struct place_section_arg): Change type of "offsets".
15378 (place_section): Update.
15379 (relative_addr_info_to_section_offsets): Change type of
15380 "section_offsets". Remove "num_sections" parameter.
15381 (default_symfile_offsets, syms_from_objfile_1)
15382 (set_objfile_default_section_offset): Update.
15383 (reread_symbols): No need to preserve section offsets by hand.
15384 (symfile_map_offsets_to_segments): Change type of "offsets".
15385 * stap-probe.c (relocate_address): Update.
15386 * stabsread.h (process_one_symbol): Update.
15387 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15388 (solib_target_relocate_section_addresses): Update.
15389 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15390 Update.
15391 * solib-frv.c (frv_relocate_main_executable): Update.
15392 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15393 * solib-aix.c (solib_aix_get_section_offsets): Change return
15394 type.
15395 (solib_aix_solib_create_inferior_hook): Update.
15396 * remote.c (remote_target::get_offsets): Update.
15397 * psymtab.c (find_pc_sect_psymtab): Update.
15398 * psympriv.h (struct partial_symbol) <address, text_low,
15399 text_high>: Update.
15400 * objfiles.h (obj_section_offset): Update.
15401 (struct objfile) <section_offsets>: Change type.
15402 <num_sections>: Remove.
15403 (objfile_relocate): Update.
15404 * objfiles.c (entry_point_address_query): Update
15405 (relocate_one_symbol): Change type of "section_offsets".
15406 (objfile_relocate1, objfile_relocate1): Change type of
15407 "new_offsets".
15408 (objfile_rebase1): Update.
15409 * mipsread.c (mipscoff_symfile_read): Update.
15410 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15411 parameter.
15412 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15413 (parse_external, psymtab_to_symtab_1): Update.
15414 * machoread.c (macho_symfile_offsets): Update.
15415 * ia64-tdep.c (ia64_find_unwind_table): Update.
15416 * hppa-tdep.c (read_unwind_info): Update.
15417 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15418 * dwarf2read.c (create_addrmap_from_index)
15419 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15420 (process_psymtab_comp_unit_reader, add_partial_symbol)
15421 (add_partial_subprogram, process_full_comp_unit)
15422 (read_file_scope, read_func_scope, read_lexical_block_scope)
15423 (read_call_site_scope, dwarf2_rnglists_process)
15424 (dwarf2_ranges_process, dwarf2_ranges_read)
15425 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15426 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15427 Update.
15428 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15429 Update.
15430 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15431 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15432 (process_one_symbol): Change type of "section_offsets".
15433 * ctfread.c (get_objfile_text_range): Update.
15434 * coffread.c (coff_symtab_read, enter_linenos)
15435 (process_coff_symbol): Update.
15436 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15437 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15438
456e800a
TT
154392020-01-08 Tom Tromey <tromey@adacore.com>
15440
15441 * dwarf2read.c (parse_macro_definition): Use std::string.
15442 (parse_macro_definition): Likewise.
15443
6dfa2fc2
TT
154442020-01-08 Tom Tromey <tromey@adacore.com>
15445
15446 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15447 (ATTR_ALLOC_CHUNK): Remove.
15448
421d1616
TT
154492020-01-08 Tom Tromey <tromey@adacore.com>
15450
15451 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15452
43816ebc
TT
154532020-01-08 Tom Tromey <tromey@adacore.com>
15454
15455 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15456 (dwarf2_compute_name, open_dwo_file): Likewise.
15457 (process_enumeration_scope): Use std::vector.
15458 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15459 (partial_die_info::fixup, dwarf2_start_subfile)
15460 (guess_full_die_structure_name, dwarf2_name): Likewise.
15461 (determine_prefix): Update.
15462 (guess_full_die_structure_name): Make return type const.
15463 (partial_die_full_name): Return unique_xmalloc_ptr.
15464 (DW_FIELD_ALLOC_CHUNK): Remove.
15465
4212d509
TT
154662020-01-07 Tom Tromey <tromey@adacore.com>
15467
15468 PR build/24937:
15469 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15470
06a6207a
JT
154712020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15472
15473 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15474
153d79c4
AB
154752020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15476
15477 * stack.c (print_frame_info): Move disassemble_next_line code
15478 inside source_print block.
15479
66182876
EZ
154802020-01-06 Eli Zaretskii <eliz@gnu.org>
15481
15482 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15483 gdb/signals.h, as we are now using native signal symbols.
15484
cbfa8581
SV
154852020-01-06 Shahab Vahedi <shahab@synopsys.com>
15486
15487 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15488 overflow by an early check of content vs threshold.
aac66a4c 15489 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15490 Likewise.
15491
3f602821
EZ
154922020-01-06 Eli Zaretskii <eliz@gnu.org>
15493
15494 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15495
a08c904d
JT
154962020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15497
15498 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15499 export table if no section contains it's RVA.
15500
89a65580
EZ
155012020-01-06 Eli Zaretskii <eliz@gnu.org>
15502
15503 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15504
8b7fcda2
HD
155052020-01-06 Hannes Domani <ssbssa@yahoo.de>
15506
15507 * source.c (print_source_lines_base): Set last_line_listed.
15508
a61b4f69
SV
155092020-01-06 Shahab Vahedi <shahab@synopsys.com>
15510
15511 * tui/tui-disasm.c: Remove trailing spaces.
15512
559e7e50
EZ
155132020-01-06 Eli Zaretskii <eliz@gnu.org>
15514 Pedro Alves <palves@redhat.com>
15515
15516 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15517 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15518 (windows_gdb_signal_to_target): New function, uses the above
15519 enumeration to convert GDB internal signal codes to equivalent
15520 Windows codes.
15521 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15522 * windows-nat.c: Include "gdb_wait.h".
15523 (get_windows_debug_event): Extract the fatal exception from the
15524 exit status and convert to the equivalent Posix signal number.
15525 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15526 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15527 * gdbsupport/gdb_wait.c: New file, implements
15528 windows_status_to_termsig.
15529 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15530 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15531
f2302a34
AB
155322020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15533
15534 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15535 show_layout.
15536
6a5206eb
LM
155372020-01-05 Luis Machado <luis.machado@linaro.org>
15538
15539 * aarch64-linux-nat.c
15540 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15541 and bfd_mach_aarch64.
15542
6ec1d75e
PW
155432020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15544
15545 * ui-file.c (stdio_file::can_emit_style_escape)
15546 (tee_file::can_emit_style_escape): Ensure style is used also on
15547 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15548 to gdb_stdout.
15549 * main.c (set_gdb_data_directory): Use file style to output the
15550 warning that the given pathname is not a directory.
15551 * top.c (show_history_filename, gdb_safe_append_history)
15552 (show_gdb_datadir): Use file style.
15553
44f81a76
HD
155542020-01-03 Hannes Domani <ssbssa@yahoo.de>
15555
15556 * solib-target.c (struct lm_info_target):
15557 Change offsets to be a unique_xmalloc_ptr.
15558 (solib_target_relocate_section_addresses): Update.
15559
25057eb0
HD
155602020-01-03 Hannes Domani <ssbssa@yahoo.de>
15561
15562 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15563
6e2118f5
BE
155642020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15565
15566 * MAINTAINERS (Write After Approval): Add myself.
15567
8133c7dc
LM
155682020-01-02 Luis Machado <luis.machado@linaro.org>
15569
15570 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15571 Cell BE architecture.
15572 * target.h (struct target_ops) <thread_architecture>: Likewise.
15573
48189bec
HD
155742020-01-01 Hannes Domani <ssbssa@yahoo.de>
15575
15576 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15577
ead1063b
HD
155782020-01-01 Hannes Domani <ssbssa@yahoo.de>
15579
15580 * MAINTAINERS (Write After Approval): Add myself.
15581
e5d78223
JB
155822020-01-01 Joel Brobecker <brobecker@adacore.com>
15583
15584 * gdbarch.sh: Update copyright year range of generated files.
15585
b811d2c2
JB
155862020-01-01 Joel Brobecker <brobecker@adacore.com>
15587
15588 Update copyright year range in all GDB files.
15589
5f4def5c
JB
155902020-01-01 Joel Brobecker <brobecker@adacore.com>
15591
15592 * copyright.py: Convert to Python 3.
15593
51fd4002
JB
155942020-01-01 Joel Brobecker <brobecker@adacore.com>
15595
15596 * copyright.py: Adapt after move of gnulib directory from gdb
15597 directory to toplevel directory.
15598
5fb651f2
JB
155992020-01-01 Joel Brobecker <brobecker@adacore.com>
15600
15601 * copyright.py (main): Exit if run from the wrong directory.
15602
5dd8bf88
JB
156032020-01-01 Joel Brobecker <brobecker@adacore.com>
15604
15605 * top.c (print_gdb_version): Change copyright year to 2020.
15606
9f71dacb 156072020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15608
9f71dacb 15609 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15610
9f71dacb 15611For older changes see ChangeLog-2019.
c906108c
SS
15612\f
15613Local Variables:
15614mode: change-log
15615left-margin: 8
15616fill-column: 74
15617version-control: never
57da7796 15618coding: utf-8
c906108c 15619End:
This page took 3.808231 seconds and 4 git commands to generate.